/* Reset & Grundlayout */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif; color: #111; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }

.container { width: min(1100px, 90%); margin: 0 auto; padding: 40px 0; }
h1, h2, h3 { margin-bottom: 20px; }

/* Sticky Header / Navigation */
:root { --nav-h: 72px; }

.main-nav {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid #eee;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.logo { font-weight: 900; font-size: 1.5rem; color: #008bd2; letter-spacing: .5px; }

/* Desktop-Links */
.nav-links { list-style: none; display: flex; gap: 24px; }
.nav-links a { color: #222; font-weight: 700; transition: color .25s ease; }
.nav-links a:hover { color: #008bd2; }

/* Burger Button */
.nav-toggle {
  display: none; position: relative;
  width: 42px; height: 36px; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle:focus-visible { outline: 2px solid #008bd2; outline-offset: 2px; }
.nav-toggle .bar {
  position: absolute; left: 8px; right: 8px; height: 3px; background: #111; border-radius: 2px; transition: transform .25s, opacity .25s, top .25s;
}
.nav-toggle .bar:nth-child(1){ top: 10px; }
.nav-toggle .bar:nth-child(2){ top: 16px; }
.nav-toggle .bar:nth-child(3){ top: 22px; }

/* Mobile Panel (initial hidden) */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 998;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }

.nav-links {
  /* desktop default oben; mobil überschrieben */
}

/* Hero */
.hero {
  background: url('images/hero.jpg') center/cover no-repeat;
  padding: 120px 20px; text-align: center; color: #fff;
}
.hero-content {
  background: rgba(0,0,0,.6); padding: 40px; border-radius: 10px; display: inline-block;
}
.btn {
  display: inline-block; margin-top: 20px; background: #008bd2; color: #fff;
  padding: 12px 24px; border-radius: 5px; font-weight: bold;
}

/* Abschnitte + Offsets für Sticky Header */
section, footer { padding: 60px 0; }
section[id], header[id], footer[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* Services Grid */
.services { background: #f9f9f9; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; margin-top: 30px; }
.service { background: #f1f1f1; padding: 20px; border-left: 5px solid #008bd2; font-weight: bold; }

/* Detailblöcke */
.details .detail-block { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-bottom: 40px; }
.details .detail-block.reverse { flex-direction: row-reverse; }
.detail-text { flex: 1 1 50%; }
.detail-image { flex: 1 1 40%; }
.detail-image img { width: 100%; border-radius: 10px; }

/* Ablauf */
.ablauf ol { padding-left: 20px; margin-top: 20px; }
.ablauf li { margin-bottom: 15px; }

/* Vorteile */
.vorteile ul { list-style: none; margin-top: 20px; }
.vorteile li { margin: 10px 0; font-weight: bold; }

/* Galerie */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; margin-top: 30px; }
.gallery-grid img { width: 100%; border-radius: 10px; object-fit: cover; height: 180px; }

/* Footer */
footer { background: #111; color: #fff; text-align: center; }
footer a { color: #fff; text-decoration: underline; }
.impressum { margin-top: 30px; font-size: .9rem; color: #aaa; }
.impressum strong { color: #fff; }

/* To Top Button */
.to-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  background: #008bd2; color: #fff; padding: 12px 16px; border-radius: 50%;
  font-size: 20px; text-align: center; cursor: pointer;
  opacity: 0; transform: scale(.8); pointer-events: none; transition: all .3s ease;
}
.to-top.visible { opacity: 1; transform: scale(1); pointer-events: auto; }

/* Body Lock when mobile menu open */
body.no-scroll { overflow: hidden; }

/* -------- Responsive: Mobile Nav -------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  /* mobile panel */
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; bottom: 0;
    width: min(86vw, 360px);
    background: #fff; border-left: 1px solid #eee;
    display: flex; flex-direction: column; gap: 0;
    transform: translateX(100%); transition: transform .25s ease;
    padding: 16px 0; z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { border-bottom: 1px solid #f0f0f0; }
  .nav-links a { display: block; padding: 16px 24px; font-weight: 700; }
}

/* Optional: Burger-Icon animieren, wenn offen */
@media (max-width: 960px) {
  .nav-links.open ~ .nav-toggle .bar { /* (Fallback, falls Reihenfolge anders ist, Animation weggelassen) */ }
}
