/* ============================================================
   Wahibs Fahrschule – Styles
   Design-Tokens im :root-Block. Markenfarbe = --green
   ============================================================ */

:root {
  /* Marke */
  --green:        #1a9e59;
  --green-bright: #24c26e;
  --green-dark:   #147a44;
  --green-deep:   #0b3d24;
  --green-soft:   #eafaf1;

  /* Neutral */
  --ink:      #0d1a13;
  --ink-2:    #33413a;
  --muted:    #6a7a72;
  --line:     #e3eae6;
  --bg:       #ffffff;
  --bg-soft:  #f5f9f7;
  --dark:     #0b1712;
  --dark-2:   #10221a;
  --on-dark:  #eaf3ee;
  --on-dark-muted: #9fb6aa;
  --header-bg: rgba(255,255,255,.88);
  --icon-bg:   #fff;

  /* System */
  --radius:   18px;
  --radius-sm: 12px;
  --shadow:   0 18px 45px -20px rgba(11,61,36,.35);
  --shadow-sm: 0 8px 24px -14px rgba(11,61,36,.30);
  --container: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Poppins", var(--font);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ===== Dark Mode – drei Zustände =====================================
   Weiche, nicht ganz schwarze Dunkeltöne (dunkles Grün-Grau). Nur die
   neutralen Tokens werden umgeschaltet; die Markenfarben bleiben.
   - Ohne manuelle Wahl folgt die Seite dem System (funktioniert auch ohne JS).
   - [data-theme="dark"] / ="light" erzwingen den jeweiligen Modus (per Schalter).
   Die beiden Dark-Token-Blöcke müssen inhaltlich synchron bleiben. */
:root[data-theme="dark"] {
  --ink:      #eef4f0;
  --ink-2:    #c8d5ce;
  --muted:    #97a89f;
  --line:     #33413a;
  --bg:       #1a2621;
  --bg-soft:  #212e28;
  --dark:     #141d18;
  --dark-2:   #121a15;
  --green-soft: rgba(36,194,110,.18);
  --header-bg: rgba(26,38,33,.85);
  --icon-bg:   var(--green-soft);
  --shadow:    0 18px 45px -20px rgba(0,0,0,.55);
  --shadow-sm: 0 8px 24px -14px rgba(0,0,0,.45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --ink:      #eef4f0;
    --ink-2:    #c8d5ce;
    --muted:    #97a89f;
    --line:     #33413a;
    --bg:       #1a2621;
    --bg-soft:  #212e28;
    --dark:     #141d18;
    --dark-2:   #121a15;
    --green-soft: rgba(36,194,110,.18);
    --header-bg: rgba(26,38,33,.85);
    --icon-bg:   var(--green-soft);
    --shadow:    0 18px 45px -20px rgba(0,0,0,.55);
    --shadow-sm: 0 8px 24px -14px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--green); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head);
  font-weight: 600; font-size: .98rem;
  padding: .85em 1.6em; border-radius: 999px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(26,158,89,.75);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(26,158,89,.85); }

/* ===== Eyebrow ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head);
  font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin: 0 0 .9rem;
}
.eyebrow.accent { color: var(--green-bright); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px rgba(36,194,110,.2); }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(0,0,0,.4);
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), box-shadow .3s var(--ease);
}
.brand-name { transition: color .3s var(--ease); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
/* Grüner Glow hinter dem Logo – gleicher Effekt wie in den Sektionen. */
.brand-logo-wrap { position: relative; display: inline-flex; }
.brand-logo-wrap::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 210%; height: 210%; border-radius: 50%;
  background: radial-gradient(circle, rgba(36,194,110,.55), transparent 65%);
  filter: blur(15px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.brand:hover .brand-logo-wrap::before { transform: translate(-50%, -50%) scale(1.15); }
.brand-logo { height: 46px; width: auto; position: relative; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 600; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav > a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  color: var(--ink-2); padding: .55em .9em; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav > a:hover { color: var(--green); background: var(--green-soft); }
.nav .nav-cta {
  background: var(--green); color: #fff; margin-left: .4rem;
  box-shadow: 0 10px 22px -12px rgba(26,158,89,.8);
}
.nav .nav-cta:hover { background: var(--green-dark); color: #fff; }

/* Menü-Umschalter: Öffnen/Schließen über :target (rein per CSS, schließt beim
   Auswählen einer Kategorie, da sich dann das :target-Ziel ändert). */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; text-decoration: none;
}
.nav-toggle span { width: 24px; height: 3px; background: var(--ink); border-radius: 999px; transition: .3s var(--ease); }

/* Header oben transparent über dem Hero, wird beim Scrollen weiß.
   Der Zustand oben wird per JS über die Klasse .at-top gesetzt (siehe index.html)
   und funktioniert damit in allen Browsern gleich. Ohne JS bleibt der solide
   weiße Header aktiv – überall lesbar. */
.site-header.at-top {
  background: transparent; backdrop-filter: none; box-shadow: none;
}
.site-header.at-top .brand-name { color: #fff; }
/* Nav-Links nur auf dem Desktop umfärben – auf Mobil liegen sie im dunklen
   Dropdown und bleiben ohnehin hell. */
@media (min-width: 761px) {
  .site-header.at-top .nav > a:not(.nav-cta) { color: rgba(255,255,255,.85); }
}
.site-header.at-top .nav-toggle span { background: #fff; }

/* Header in der Desktop-/Browseransicht zentriert (Logo oben, Nav darunter) */
@media (min-width: 761px) {
  .nav-wrap { flex-direction: column; justify-content: center; gap: .55rem; height: auto; padding-top: 14px; padding-bottom: 14px; }
  .nav { justify-content: center; flex-wrap: wrap; }
  html { scroll-padding-top: 132px; }

  /* Hero-Inhalt zentriert */
  .hero .hero-inner { margin-left: auto; margin-right: auto; text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero .hero-lead { margin-left: auto; margin-right: auto; }
  .hero .hero-actions { justify-content: center; }
  .hero .hero-stats { justify-content: center; text-align: center; }
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  /* Füllt immer die volle Bildschirmhöhe, Inhalt vertikal zentriert. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center;
  /* Foto-Hintergrund mit vertikalem Schleier (wie in der mobilen Ansicht). */
  background:
    linear-gradient(180deg, rgba(8,23,15,.82) 0%, rgba(8,23,15,.55) 42%, rgba(8,23,15,.80) 100%),
    url("images/background.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  color: #fff; padding: 120px 0 80px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; top: -20%; right: -10%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(36,194,110,.42), transparent 62%);
  filter: blur(20px);
}
.hero-glow--left { top: auto; right: auto; bottom: -20%; left: -10%; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 85%);
}
.hero-inner { position: relative; max-width: 780px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 800; margin-bottom: 1.1rem; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--on-dark); max-width: 620px; margin: 0 0 2rem; }
.hero-lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.4rem; margin: 3.2rem 0 0; padding-top: 2rem;
}
.hero-stats div { margin: 0; }
.hero-stats dt { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--green-bright); }
.hero-stats dd { margin: 0; font-size: .9rem; color: var(--on-dark-muted); }

/* ===== Trust bar ===== */
.trust-bar { background: var(--green); color: #fff; }
.trust-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .5rem 1.1rem; padding: 16px 24px; font-size: .9rem; font-weight: 500;
  text-align: center;
}
.trust-inner i { color: rgba(255,255,255,.6); font-style: normal; }

/* Die Trust-Leiste nur in der Desktop-/Browseransicht (eine Zeile mit Trennpunkten)
   anzeigen. Sobald sie umbrechen würde (unter ~1140px), komplett ausblenden. */
@media (max-width: 1140px) {
  .trust-bar { display: none; }
}

/* ===== Sections ===== */
.section { padding: 92px 0; position: relative; }
.section-dark { background: var(--dark); color: #fff; overflow: hidden; }
.section-dark .hero-bg { z-index: 0; }
.section-dark .container { position: relative; z-index: 1; }
.section-head { max-width: 640px; margin: 0 auto 3.2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; margin-bottom: .8rem; }
.section-dark .section-head h2 { color: #fff; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-dark .section-lead { color: var(--on-dark-muted); }

/* ===== Dekorative grüne Glows (wie im Kontakt-Bereich) =====
   Weiche, grüne Leucht-Blobs als Akzent. Für helle Sektionen dezenter. */
.has-glow { overflow: hidden; }
.has-glow > .container { position: relative; z-index: 1; }
.deco-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(36,194,110,.18), transparent 62%);
  filter: blur(26px);
}
.deco-glow--tr { top: -150px; right: -130px; }
.deco-glow--tl { top: -150px; left: -130px; }
.deco-glow--bl { bottom: -170px; left: -130px; }
@media (max-width: 560px) {
  .deco-glow { width: 340px; height: 340px; filter: blur(20px); }
}

/* ===== Grids ===== */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Cards ===== */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: .55rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

.service-card { background: var(--bg-soft); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  font-size: 1.7rem; border-radius: 16px; margin-bottom: 1.2rem;
  background: var(--icon-bg); box-shadow: var(--shadow-sm);
}

.benefit-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-color: rgba(255,255,255,.10); color: #fff;
}
.benefit-card h3 { color: #fff; }
.benefit-card p { color: var(--on-dark-muted); }
.benefit-card:hover { transform: translateY(-6px); border-color: var(--green-bright); box-shadow: 0 24px 50px -26px rgba(0,0,0,.6); }
.card-num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  color: var(--green-bright); margin-bottom: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid rgba(36,194,110,.35);
}

/* ===== Team ===== */
.team-grid { max-width: 760px; margin: 0 auto; }
.team-card { padding: 0; overflow: hidden; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-soft); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-info { padding: 1.3rem 1.6rem 1.6rem; }
.team-info h3 { margin-bottom: .2rem; }
.team-role { color: var(--green); font-weight: 600; font-size: .95rem; margin: 0; }

/* ===== Video ===== */
.section-video { background: var(--bg-soft); position: relative; overflow: hidden; }
.video-split {
  display: grid; grid-template-columns: 1fr 330px; gap: 3.5rem; align-items: center;
}
.video-text { max-width: 520px; }
.video-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .8rem; }
.video-text > p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.video-wrap { position: relative; display: flex; justify-content: center; }
.video-frame {
  position: relative; z-index: 1; width: 100%; max-width: 330px;
  aspect-ratio: 397 / 510;
  border-radius: 22px; overflow: hidden; background: #000;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 820px) {
  .video-split { grid-template-columns: 1fr; gap: 2.2rem; text-align: center; }
  .video-text { max-width: 560px; margin: 0 auto; }
}

/* ===== CTA / Online anmelden ===== */
.section-cta { background: var(--bg-soft); }
.cta-card {
  display: grid; grid-template-columns: 1.4fr .9fr; gap: 2.5rem; align-items: center;
  background: linear-gradient(135deg, var(--green-deep), #124a2b);
  border-radius: 28px; padding: 3rem 3.2rem; color: #fff;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta-text { position: relative; z-index: 1; }
.cta-text h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .8rem; }
.cta-text p { color: var(--on-dark); margin: 0 0 1.8rem; }

/* Kontakt-Buttons auf der grünen Karte */
.btn-call svg, .btn-mail svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-call, .btn-mail {
  min-width: 150px;
  background: rgba(255,255,255,.08); color: #fff;
  border-color: rgba(255,255,255,.55); backdrop-filter: blur(2px);
}
.btn-call:hover, .btn-mail:hover {
  background: #fff; color: var(--green-deep); border-color: #fff;
  transform: translateY(-2px);
}
.cta-qr {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .8rem;
  background: #fff; border-radius: 20px; padding: 1.4rem; color: #0d1a13;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cta-qr:hover, .cta-qr:focus-visible {
  transform: translateY(-4px); box-shadow: 0 22px 40px -18px rgba(0,0,0,.5); outline: none;
}
.cta-qr:hover span, .cta-qr:focus-visible span { color: var(--green); }
.cta-qr img { width: 190px; height: 190px; border-radius: 10px; }
.cta-qr span { font-size: .85rem; font-weight: 600; color: #33413a; text-align: center; transition: color .25s var(--ease); }

/* ===== Kontakt ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.contact-item { margin-bottom: 1.7rem; }
.contact-label {
  display: block; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-bright); margin-bottom: .5rem;
}
.contact-info p { margin: 0; color: var(--on-dark); }
.contact-info a { transition: color .2s; }
.contact-info a:hover { color: var(--green-bright); }

.contact-hours {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius); padding: 1.8rem;
}
.hours { width: 100%; border-collapse: collapse; margin-top: .3rem; }
.hours th, .hours td { text-align: left; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.09); vertical-align: top; }
.hours th { font-weight: 600; color: #fff; font-family: var(--font-head); width: 42%; }
.hours td { color: var(--on-dark); }
.hours-note { display: block; font-size: .82rem; color: var(--green-bright); margin-top: .2rem; }
.hours .hours-off th, .hours .hours-off td { color: var(--on-dark-muted); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours-hint { font-size: .85rem; color: var(--on-dark-muted); margin: 1rem 0 0; }

/* ===== Footer ===== */
.site-footer { background: var(--dark-2); color: var(--on-dark); padding: 56px 0 30px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { max-width: 460px; }
.footer-logo { height: 52px; margin: 0 auto 1rem; }
.footer-brand p { margin: 0; font-size: .95rem; color: var(--on-dark-muted); }
.footer-bottom { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .4rem 1.2rem; padding-top: 1.6rem; text-align: center; font-size: .86rem; color: var(--on-dark-muted); }
.footer-legal a:hover { color: var(--green-bright); }

/* ===== To-top ===== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow-sm);
  transition: background .3s var(--ease);
}
.to-top:hover { background: var(--green-dark); }
/* Nur einblenden, sobald gescrollt wird – per CSS Scroll-Timeline.
   Ohne Unterstützung bleibt der Button dauerhaft sichtbar. */
@supports (animation-timeline: scroll()) {
  .to-top {
    opacity: 0; pointer-events: none;
    animation: to-top-in linear both;
    animation-timeline: scroll(root);
    animation-range: 480px 640px;
  }
}
@keyframes to-top-in {
  from { opacity: 0; transform: translateY(12px); pointer-events: none; }
  to   { opacity: 1; transform: translateY(0);  pointer-events: auto; }
}

/* ===== Reveal beim Scrollen (CSS Scroll-Timeline) =====
   Standard = voll sichtbar. Nur wo Scroll-Timelines unterstützt werden und
   Animationen erwünscht sind, blenden die Elemente beim Hereinscrollen ein. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
    }
  }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* ===== Legal pages ===== */
.legal { max-width: 780px; margin: 0 auto; padding: 150px 24px 80px; overflow-wrap: break-word; hyphens: auto; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.4rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.legal h3 { font-size: 1.05rem; margin: 1.3rem 0 .4rem; color: var(--ink); }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { margin: .4rem 0 1rem; padding-left: 1.3rem; }
.legal li { margin-bottom: .35rem; }
.legal a { color: var(--green); word-break: break-word; }
.legal .back { display: inline-block; margin-bottom: 2rem; color: var(--green); font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cta-card { grid-template-columns: 1fr; text-align: center; }
  .cta-text .hero-actions { justify-content: center; }
  .cta-qr { justify-self: center; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 72px 12px auto 12px;
    flex-direction: column; align-items: stretch; gap: .18rem;
    background: linear-gradient(180deg, #123c28 0%, #0b2a1c 100%);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px; padding: .7rem;
    box-shadow: 0 28px 55px -18px rgba(0,0,0,.7);
    transform: translateY(-160%) scale(.98); transform-origin: top center; opacity: 0;
    pointer-events: none;
    transition: transform .38s var(--ease), opacity .28s var(--ease);
  }
  .nav:target { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

  /* Menüpunkte: helle Schrift, dezenter Hover, kleiner Chevron */
  .nav > a {
    display: flex; align-items: center; justify-content: space-between;
    color: var(--on-dark); background: transparent;
    padding: .9em 1em; border-radius: 12px;
    font-size: 1.04rem; font-weight: 500;
    transition: background .2s var(--ease), color .2s var(--ease);
  }
  .nav > a:not(.nav-cta)::after {
    content: "›"; color: var(--green-bright); font-size: 1.15rem;
    opacity: .5; transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .nav > a:not(.nav-cta):hover { background: rgba(255,255,255,.07); color: #fff; }
  .nav > a:not(.nav-cta):hover::after { opacity: 1; transform: translateX(3px); }

  /* CTA als grüner Button */
  .nav .nav-cta {
    justify-content: center; margin-top: .45rem;
    background: var(--green); color: #fff; font-weight: 600;
    padding: .95em 1em; border-radius: 12px;
    box-shadow: 0 12px 26px -12px rgba(26,158,89,.9);
  }
  .nav .nav-cta:hover { background: var(--green-bright); color: #fff; }

  /* Marke (Logo + Text) mittig, Menü-Button absolut am rechten Rand */
  .nav-wrap { position: relative; justify-content: center; }
  .nav-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }

  /* Öffnen-Button (☰) sichtbar, Schließen-Button (✕) versteckt … */
  .nav-toggle--open { display: flex; }
  .nav-toggle--close { display: none; }
  /* … und umgekehrt, sobald das Menü geöffnet ist (:target). */
  .nav:target ~ .nav-toggle--open { display: none; }
  .nav:target ~ .nav-toggle--close { display: flex; }

  /* Schließen-Button als X (Balken absolut innerhalb des Buttons) */
  .nav-toggle--close span { position: absolute; top: 50%; left: 50%; margin: 0; }
  .nav-toggle--close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
  .nav-toggle--close span:nth-child(2) { opacity: 0; }
  .nav-toggle--close span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

  .hero {
    padding: 120px 0 64px;
    background:
      linear-gradient(180deg, rgba(8,23,15,.82) 0%, rgba(8,23,15,.55) 42%, rgba(8,23,15,.80) 100%),
      url("images/background.jpg");
    background-size: cover, cover;
    background-position: center, center top;
    background-repeat: no-repeat;
  }
  .section { padding: 68px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }

  /* ===== Inhalte auf Mobil zentrieren ===== */
  .hero-inner { max-width: none; text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; text-align: center; }

  .contact-info { text-align: center; }
  .contact-hours { text-align: center; }
  .hours th, .hours td { text-align: center; }
  .hours th { width: auto; }

}

@media (max-width: 500px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-card { padding: 2rem 1.4rem; }
}

/* Sehr schmale Geräte: Marke etwas verkleinern, damit sie zentriert neben
   dem Menü-Button passt (keine Überlappung). */
@media (max-width: 360px) {
  .brand { gap: .5rem; }
  .brand-logo { height: 36px; }
  .brand-name { font-size: .9rem; }
  .brand-sub { font-size: .64rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ===== Theme-Umschalter (Hell/Dunkel) =====
   Fester Button unten links; spiegelt den „Nach oben"-Button unten rechts. */
.theme-toggle {
  position: fixed; left: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--bg-soft); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 1.2rem; line-height: 1;
  transition: background .3s var(--ease), color .3s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { transform: translateY(-2px); color: var(--green); }
/* Passendes Symbol je nach aktivem Modus einblenden. */
.theme-toggle .icon-dark { display: none; }
.theme-toggle .icon-light { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-dark { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-light { display: none; }
}
