:root {
  --bg: #ffffff;
  --ink: #14161c;
  --muted: #5b6270;
  --lila: #9b82ff;
  --blau: #2a3fb8;
  --font: 'Poppins', system-ui, Segoe UI, sans-serif;
  --surface: #f7f7fb;
  --line: #e6e6ee;
  --stern: #d99a1e;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(20, 22, 28, .08);
  --mobile: 0;
}
/* Einzige Wahrheit fuer "mobil" -> JS liest diese Variable ab (siehe js/env.js), statt eigene
   matchMedia-Checks zu pflegen, die gegenueber dieser Query auseinanderlaufen koennen.
   "and (max-width: 1024px)" haengt an orientation:portrait, damit ein hochkant gezogenes
   Desktop-Fenster (z.B. 1400x1600) nicht faelschlich das Handy-Layout bekommt -- ein
   Tablet im Hochformat (1024px) bleibt bewusst mobil, ein Desktop-Fenster nicht mehr. */
@media (max-width: 768px), (orientation: portrait) and (max-width: 1024px) {
  :root { --mobile: 1; }
}

/* Lokal gehostet statt Google-Fonts-CDN: kein DSGVO-Datentransfer, kein externer Roundtrip. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--font); }
body { overflow-x: hidden; overflow-wrap: break-word; }

/* Globaler Fokus-Ersatz: greift ueberall ohne eigene :focus-visible-Regel (Nav-Links,
   Overlay-Links, Footer-Links, CTA-Buttons, Burger). Komponenten mit eigener Regel
   (Formularfelder, FAQ, Consent) ueberschreiben das per hoeherer Spezifitaet. */
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }

/* ---------- Skip-Link (Tastatur/Screenreader) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: #fff; color: var(--ink); padding: 12px 18px;
  border-radius: 0 0 10px 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Sichtbar nur für Screenreader (Heading-Hierarchie ohne optische Änderung) ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .6s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-brand { font-weight: 700; font-size: 28px; letter-spacing: .5px;
  background: linear-gradient(90deg, var(--lila), var(--blau)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#loader-bar { width: 220px; height: 3px; background: #e9e9ef; border-radius: 3px; overflow: hidden; }
#loader-fill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--lila), var(--blau)); }
#loader-percent { font-size: 13px; color: var(--muted); }

/* ---------- Header: schwebende Pill-Navigation ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: env(safe-area-inset-top) calc(clamp(20px, 5vw, 60px) + env(safe-area-inset-right)) 0 calc(clamp(20px, 5vw, 60px) + env(safe-area-inset-left));
  pointer-events: none;               /* volle Breite darf den Hero nicht blockieren */
}
body.nav-open .site-header { z-index: 50; }  /* ueber .page-content (30) und #hero-top (20), unter Loader (100) und Consent-Modal (120) */

.nav-pill {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center;
  width: 100%; max-width: 1040px;
  height: 66px;
  margin-top: clamp(14px, 2.2vh, 24px);
  padding: 0 20px 0 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 8px 30px rgba(20, 22, 28, .08);
  overflow: visible;
  opacity: 0; transform: translateY(-60px);   /* Einblenden erst ueber body.hero-revealed, gleiche Choreografie wie die Inspo */
  transition:
    max-width .5s cubic-bezier(.16, 1, .3, 1),
    height .4s cubic-bezier(.16, 1, .3, 1),
    padding .4s cubic-bezier(.16, 1, .3, 1),
    background .35s ease, box-shadow .35s ease,
    opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}
body.hero-revealed .nav-pill { opacity: 1; transform: translateY(0); }
@media (min-width: 769px) {
  /* Blur kostet GPU-Zeit, die auf Mobile beim Frame-Scrubbing fehlt -> nur Desktop */
  .nav-pill { backdrop-filter: blur(14px); }
}

/* Fortschrittslinie: reine Scroll-getriebene CSS-Animation (compositor, kein JS/Scroll-Listener).
   Feste Einrueckung statt voller Breite, damit die Linie nicht in die volle Pill-Rundung (999px)
   an den Enden hineinlaeuft. body.nav-open blendet die Pill ohnehin per opacity aus (siehe unten). */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .nav-pill::after {
      content: '';
      position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px;
      background: linear-gradient(90deg, var(--lila), var(--blau));
      transform-origin: left; transform: scaleX(0);
      animation: sv-nav-progress linear both;
      animation-timeline: scroll(root);
      pointer-events: none;
    }
  }
}
@keyframes sv-nav-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.site-header .brand { font-weight: 700; font-size: 20px; text-decoration: none; white-space: nowrap; flex: none;
  background: linear-gradient(90deg, var(--lila), var(--blau)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* AP2.1: dauerhafter Erstgespraech-CTA in der Pill, Desktop-only -- auf Mobile uebernimmt
   die per JS injizierte .mobile-cta-Leiste (sections.js) den dauerhaften Kontakt-Zugriff. */
.nav-cta {
  display: none;
  margin-left: auto;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lila), var(--blau));
  color: #fff;
  font-weight: 600; font-size: .88rem;
  text-decoration: none; white-space: nowrap; flex: none;
  transition: opacity .35s ease;
}
@media (min-width: 769px) {
  .nav-cta { display: inline-flex; align-items: center; justify-content: center; }
}
@media (hover: hover) { .nav-cta:hover { opacity: .92; } }
.nav-cta + .nav-toggle { margin-left: 14px; }
/* Collapse-Zustand: Pill schrumpft auf Logo + Burger (siehe body.nav-collapsed .nav-pill unten) --
   der CTA muss dabei mit ausblenden, sonst stimmen die festen 210px/54px-Masse nicht mehr. */
body.nav-collapsed .nav-cta { display: none; }
body.nav-collapsed .nav-cta + .nav-toggle { margin-left: auto; }

.nav-toggle {
  /* align-items: flex-end statt center -- Striche sollen buendig an die rechte Tippflaeche
     rutschen (Pill-Rand), nicht mittig in den 48px-Button gerueckt sein. Tippflaeche bleibt 48x48. */
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px;
  width: 48px; height: 48px; margin-left: auto; margin-right: -4px; flex: none;
  padding: 0; background: none; border: none; cursor: pointer;
  opacity: 1; pointer-events: auto;
  transition: opacity .25s ease;
}
.nav-toggle span { display: block; height: 2px; width: 20px; border-radius: 2px;
  background: var(--ink); transition: transform .28s cubic-bezier(.16,1,.3,1), opacity .2s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header-Scrolled-State: sobald .page-content den Viewport erreicht (Hero-Sentinel), Pill lesbar auf hellem Grund */
body.past-hero .nav-pill {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(20, 22, 28, .06);
}

/* .page-content (opak, z-index 30) verdeckt beides ohnehin -> Paint/Compositing sparen */
body.past-hero .canvas-wrap,
body.past-hero #hero-top { visibility: hidden; }

/* ---------- Collapse-on-Scroll: Pill zieht sich auf Logo + Burger zusammen ----------
   Hysterese (COLLAPSE_AT/EXPAND_AT) sitzt in sections.js, verhindert Flackern am Schwellwert. */
body.nav-collapsed .nav-pill { max-width: 210px; height: 54px; padding: 0 16px 0 26px; }

/* Pill (samt eigenem Burger/X darin) waere sonst schwach sichtbar hinter dem Overlay --
   auf Mobile ohne Blur (siehe .nav-overlay unten) faellt das Ghosting besonders auf. */
body.nav-open .nav-pill { opacity: 0; pointer-events: none; transition: opacity .2s ease; }

/* ---------- Fullscreen-Nav-Overlay (Burger-Klick, Desktop wie Mobile) ---------- */
.nav-overlay {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .97);
  opacity: 0; visibility: hidden; pointer-events: auto;
  transition: opacity .4s ease, visibility .4s;
}
@media (min-width: 769px) {
  .nav-overlay { backdrop-filter: blur(16px); }
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }

.nav-overlay-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(22px + env(safe-area-inset-top)) calc(clamp(20px, 5vw, 60px) + env(safe-area-inset-right)) 22px calc(clamp(20px, 5vw, 60px) + env(safe-area-inset-left));
}
.nav-overlay-close {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; background: none; border: none; cursor: pointer; color: var(--ink);
}
.nav-overlay-close svg { width: 26px; height: 26px; }

.nav-overlay-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 0 calc(clamp(20px, 5vw, 60px) + env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) calc(clamp(20px, 5vw, 60px) + env(safe-area-inset-left));
  overflow-y: auto; overscroll-behavior: contain;
}
.nav-overlay-links { display: flex; flex-direction: column; }
.nav-overlay-link, .nav-overlay-sublink, .nav-overlay-chevron {
  color: var(--ink); text-decoration: none; font-weight: 600;
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s cubic-bezier(.16,1,.3,1), transform .4s cubic-bezier(.16,1,.3,1);
}
.nav-overlay-link { font-size: clamp(1.7rem, 5vw, 2.6rem); padding: 9px 0; }
.nav-overlay-sublink { font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 500; padding: 5px 0 5px 1.4em; }
body.nav-open .nav-overlay-link { opacity: 1; transform: translateY(0); }
body.nav-open .nav-overlay-sublink { opacity: .75; transform: translateY(0); }
@media (hover: hover) {
  body.nav-open .nav-overlay-sublink:hover { opacity: 1; }
}
body.nav-open .nav-overlay-chevron { opacity: 1; transform: translateY(0); }

/* Zeile "Leistungen": Link + Chevron nebeneinander, Sub-Dropdown darunter -- ein Block,
   damit die Stagger-Zaehlung auf .nav-overlay-links weiterhin bei 6 sichtbaren Zeilen bleibt. */
.nav-overlay-row-main { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nav-overlay-row .nav-overlay-link { flex: 1; min-width: 0; }
.nav-overlay-chevron {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; margin-right: -4px; padding: 0; background: none; border: none; cursor: pointer;
}
.nav-overlay-chevron svg { width: 22px; height: 22px; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.nav-overlay-chevron[aria-expanded="true"] svg { transform: rotate(180deg); }

/* grid-template-rows-Trick statt max-height: Hoehe des Sub-Menues ist unbekannt (Sprachlaenge,
   Viewport), max-height-Guessing wuerde ruckeln oder abschneiden. */
.nav-overlay-sub {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows .45s cubic-bezier(.16,1,.3,1), opacity .35s cubic-bezier(.16,1,.3,1), visibility 0s linear .45s;
}
.nav-overlay-sub.is-open { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
.nav-overlay-sub-inner { overflow: hidden; display: flex; flex-direction: column; }

.nav-overlay-links > *:nth-child(1),
.nav-overlay-links > *:nth-child(1) .nav-overlay-link,
.nav-overlay-links > *:nth-child(1) .nav-overlay-chevron { transition-delay: .084s; }
.nav-overlay-links > *:nth-child(2),
.nav-overlay-links > *:nth-child(2) .nav-overlay-link,
.nav-overlay-links > *:nth-child(2) .nav-overlay-chevron { transition-delay: .108s; }
.nav-overlay-links > *:nth-child(3),
.nav-overlay-links > *:nth-child(3) .nav-overlay-link,
.nav-overlay-links > *:nth-child(3) .nav-overlay-chevron { transition-delay: .132s; }
.nav-overlay-links > *:nth-child(4),
.nav-overlay-links > *:nth-child(4) .nav-overlay-link,
.nav-overlay-links > *:nth-child(4) .nav-overlay-chevron { transition-delay: .156s; }
.nav-overlay-links > *:nth-child(5),
.nav-overlay-links > *:nth-child(5) .nav-overlay-link,
.nav-overlay-links > *:nth-child(5) .nav-overlay-chevron { transition-delay: .180s; }
.nav-overlay-links > *:nth-child(6),
.nav-overlay-links > *:nth-child(6) .nav-overlay-link,
.nav-overlay-links > *:nth-child(6) .nav-overlay-chevron { transition-delay: .204s; }

.nav-overlay-cta {
  align-self: flex-start; margin-top: 26px; padding: 13px 26px; border-radius: 999px;
  background: linear-gradient(90deg, var(--lila), var(--blau));
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s cubic-bezier(.16,1,.3,1) .34s, transform .4s cubic-bezier(.16,1,.3,1) .34s;
}
body.nav-open .nav-overlay-cta { opacity: 1; transform: translateY(0); }

.nav-overlay-contact {
  margin-top: 22px; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s cubic-bezier(.16,1,.3,1) .38s, transform .4s cubic-bezier(.16,1,.3,1) .38s;
}
body.nav-open .nav-overlay-contact { opacity: 1; transform: translateY(0); }
.nav-overlay-contact a { color: var(--muted); text-decoration: none; font-size: .92rem; }
@media (hover: hover) {
  .nav-overlay-contact a:hover { color: var(--ink); }
}

/* ---------- Fixed background canvas ---------- */
/* Start-Poster: sofort sichtbares erstes Frame als CSS-Background, bevor JS/Canvas uebernimmt */
.canvas-wrap {
  position: fixed; inset: 0; z-index: 1; background: #fff;
  background-image: url('../poster/poster-16x9.webp');
  background-size: cover; background-position: center;
}
#canvas { width: 100%; height: 100%; display: block; }

/* ---------- Hero-Headline (linke Spalte, vertikal zentriert) ---------- */
#hero-top {
  position: fixed; inset: 0; z-index: 20;
  pointer-events: none;
  /* Scroll-gescrubbt per JS (--outro) -> multipliziert sich ueber die Inline-Opacities der Stationen,
     blendet Station 03 (persist:true) und den Scrim in den letzten Scroll-Prozenten weich aus. */
  opacity: calc(1 - var(--outro, 0));
}
/* Weicher Mehrfach-Verlauf: laeuft bis 100% aus, keine sichtbare Scrim-Kante mehr ueber dem Video.
   Opacity wird scroll-gescrubbt per JS gesetzt (--scrim) -> keine Transition, sonst laeuft sie nach. */
#hero-top::before {
  content: ''; position: absolute; inset: 0;
  background:
    /* flaches Fussband fuer das Zitat unten links */
    linear-gradient(to top,
      rgba(255,255,255,.86)  0%,
      rgba(255,255,255,.72) 16%,
      rgba(255,255,255,.44) 34%,
      rgba(255,255,255,.16) 52%,
      rgba(255,255,255,0)   68%),
    /* weiche Ellipse hinter der Headline, jetzt oben statt mittig */
    radial-gradient(ellipse 74% 34% at 50% 19%,
      rgba(255,255,255,.90)   0%,
      rgba(255,255,255,.84)  34%,
      rgba(255,255,255,.62)  58%,
      rgba(255,255,255,.30)  78%,
      rgba(255,255,255,.08)  92%,
      rgba(255,255,255,0)   100%);
  opacity: var(--scrim, 1);
  pointer-events: none;
}
.top-station {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding-top: clamp(220px, 42vh, 560px);
  padding-left: clamp(16px, 8.5vw, 140px); padding-right: 44vw;
  opacity: 0;
}
/* Station 01 steht als einzige mittig — 02/03 bleiben linksbuendig */
.top-station--lead {
  opacity: 1;                 /* sichtbar, bevor JS den ersten Scroll-Tick verarbeitet */
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding-top: clamp(100px, 15vh, 170px);
  padding-left: clamp(16px, 3vw, 48px);
  padding-right: clamp(16px, 3vw, 48px);
}

/* ---------- Logo-Outro: Text bleibt stehen (sitzt jetzt schon tief genug, ueberdeckt das Logo nicht mehr) ---------- */
.top-inner { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
#hero-top.logo-phase .top-inner { transform: none; }

/* ---------- Scroll container ---------- */
/* Scrollhöhe erzeugt die Scrub-Distanz fuer das Frame-Scrubbing.
   dvh nach vh: unterstuetzende Browser ueberschreiben mit der dynamischen (Toolbar-bereinigten)
   Viewport-Hoehe, sonst bleibt die vh-Deklaration als Fallback stehen. */
#scroll-container { position: relative; z-index: 10; width: 100%; height: 300vh; height: 300dvh; }

.label { display: inline-block; font-size: clamp(13px, 1.1vw, 16px); font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blau); margin-bottom: 18px; }
.headline { font-size: clamp(2.8rem, 6.2vw, 5.2rem); line-height: 1.04; font-weight: 700; letter-spacing: -.02em; }
.headline .grad { background: linear-gradient(90deg, var(--lila), var(--blau)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Eine Zeile: "Websites, die mitdenken." = 24 Zeichen, in Poppins Bold ca. 13.2em breit.
   6.6vw ergibt ~87vw Textbreite bei 94vw Freiraum. Der vw-Faktor ist der Stellknopf,
   falls die Zeile je umbricht. */
.top-station--lead .headline {
  white-space: nowrap;
  font-size: clamp(2rem, 6.6vw, 6.5rem);
}

/* ---------- Zitat + Trust-Zeile (Station 01) ---------- */
.quote {
  position: relative;
  margin-top: 26px; padding-left: 20px;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.5;
  color: rgba(20, 22, 28, .82);
  max-width: 34ch;
}
.quote::before {
  content: ''; position: absolute; left: 0; top: .15em; bottom: .15em; width: 3px;
  background: linear-gradient(180deg, var(--lila), var(--blau)); border-radius: 2px;
}
.trust {
  margin-top: 18px; font-size: 13.5px; letter-spacing: .5px; color: var(--muted);
}

/* AP2.1: Hero-CTAs -- #hero-top hat pointer-events:none (siehe Kommentar bei .review-widget--hero
   oben), hier gezielt wieder aktivieren, sonst klickbar tot trotz sichtbarer Buttons.
   Compound-Selektor (.hero-cta-actions.faq-actions) noetig, um .faq-actions aus sections.css zu
   schlagen -- das Stylesheet laedt NACH style.css und wuerde bei gleicher Spezifitaet gewinnen. */
.hero-cta-actions.faq-actions { margin: 22px 0 0; pointer-events: auto; }

/* ---------- Zitat unten links, als ruhige zweite Ebene unter der zentrierten Headline ---------- */
.hero-quote {
  position: absolute;
  left: clamp(24px, 6vw, 110px);
  bottom: clamp(40px, 9vh, 110px);
  text-align: left;                    /* gegen das geerbte text-align: center */
  max-width: min(34ch, 42vw);
}
.top-station--lead .quote { margin-top: 0; }   /* war Abstand zur Headline, entfaellt */
.scroll-hint { display: none; }   /* nur mobil sichtbar (siehe Mobile-Block), Desktop hat genug visuelle Scroll-Cues */

/* ---------- Review-Widget: Karten-Styles vs. Positionierung getrennt (zwei Mount-Punkte: Hero + Content-Block) ---------- */
/* pan-y: vertikales Scrollen bleibt nativ, horizontale Geste steuert die Swipe-Logik in reviews-widget.js */
.review-widget { text-align: left; touch-action: pan-y; }

/* #hero-top hat pointer-events:none -> hier gezielt wieder aktivieren, gleiches Muster wie .beat .inner */
.review-widget--hero {
  position: absolute;
  right: clamp(24px, 6vw, 110px);
  bottom: clamp(40px, 9vh, 110px);
  width: min(360px, 32vw);
  pointer-events: auto;
  opacity: 0;
}
.review-widget--block { max-width: 560px; margin: 0 auto; }

/* will-change nur waehrend der aktiven Scrub-Phase: dauerhaft promotete Layer kosten auf Mobile
   Speicher/GPU-Budget, das der Hero nach body.past-hero (Content deckt Video/Overlays ohnehin ab,
   siehe visibility-Regel oben) nicht mehr braucht. */
body:not(.past-hero) .top-station,
body:not(.past-hero) .hero-quote,
body:not(.past-hero) .review-widget--hero {
  will-change: opacity, transform;
}

.review-badge { display: none; }
.review-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(20, 22, 28, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
@media (min-width: 769px) {
  /* Gleiche Regel wie .nav-pill: Blur kostet GPU-Zeit, die auf Mobile beim Frame-Scrubbing fehlt */
  .review-card { backdrop-filter: blur(10px); }
}
.review-head {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--ink);
  margin-bottom: 10px;
}
.review-head svg { width: 18px; height: 18px; flex: none; }
.review-head .review-stars { margin-left: auto; display: flex; gap: 2px; }
.review-head .review-stars svg { width: 13px; height: 13px; color: var(--stern); }
.review-head .review-score { font-weight: 700; margin-left: 4px; }
.review-divider { height: 1px; background: var(--line); margin: 4px 0 12px; }
.review-body { position: relative; min-height: 6.4em; }
.review-slide .review-stars { display: flex; gap: 2px; margin-bottom: 6px; }
.review-slide .review-stars svg { width: 11px; height: 11px; color: var(--stern); }
.review-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s cubic-bezier(.16, 1, .3, 1), transform .4s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.review-slide.is-active {
  position: relative;
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.review-quote {
  font-size: .88rem; line-height: 1.5; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.review-meta { margin-top: 8px; font-size: .78rem; color: var(--muted); }
.review-note { margin-top: 10px; font-size: .7rem; line-height: 1.4; color: var(--muted); }
.review-controls {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.review-arrow {
  background: none; border: none; cursor: pointer; padding: 14px;
  color: var(--muted); display: flex; align-items: center; justify-content: center;
}
@media (hover: hover) {
  .review-arrow:hover { color: var(--ink); }
}
.review-arrow svg { width: 16px; height: 16px; }
.review-dots { display: flex; }
.review-dot {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border: none; padding: 0; cursor: pointer; background: none; position: relative;
}
.review-dot::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--line);
}
.review-dot.is-active::after { background: var(--blau); }

/* ---------- Lesbarkeit: weiches Halo gegen unruhige Video-Frames ---------- */
.headline, .quote { text-shadow: 0 1px 24px rgba(255, 255, 255, .6); }
.headline .grad { text-shadow: none; } /* Shadow würde hinter dem transparenten Gradient-Text sichtbar werden */

/* ---------- Einmaliger Reveal beim Seitenaufruf: Headline -> Zitat -> Trust ----------
   Auf #hero-top beschraenkt: sonst haengen die Sektions-Ueberschriften (.headline in
   .section-head, ab Sektion 04) am Erfolg des Hero-Preloads -- faellt der aus, bleibt
   body.hero-revealed unerreicht und der gesamte restliche Inhalt unsichtbar. */
#hero-top .headline, #hero-top .quote, #hero-top .trust {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
#hero-top .headline { transition-delay: 0s; }
#hero-top .quote { transition-delay: .45s; }
#hero-top .trust { transition-delay: .75s; }

body.hero-revealed #hero-top .headline,
body.hero-revealed #hero-top .quote,
body.hero-revealed #hero-top .trust {
  opacity: 1; transform: translateY(0);
}

/* Reload mitten auf der Seite: Reveal überspringen statt Text einblenden zu lassen, der schon sichtbar sein soll */
body.no-reveal-transition #hero-top .headline,
body.no-reveal-transition #hero-top .quote,
body.no-reveal-transition #hero-top .trust {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  #hero-top .headline, #hero-top .quote, #hero-top .trust { transition-duration: 0s; transition-delay: 0s; }
  .nav-pill, .nav-toggle, .nav-toggle span,
  .nav-overlay, .nav-overlay-link, .nav-overlay-sublink, .nav-overlay-cta, .nav-overlay-contact,
  .nav-overlay-chevron, .nav-overlay-chevron svg, .nav-overlay-sub {
    transition-duration: 0s; transition-delay: 0s;
  }
}

/* Press-State (Touch): Gegenstueck zu @media (hover: hover) -- siehe sections.css fuer die
   uebrigen Karten/Buttons, hier nur die Overlay-Links, die eigene Reveal-Transitions haben. */
@media (hover: none) {
  .nav-overlay-link { transition: opacity .4s cubic-bezier(.16,1,.3,1), transform .4s cubic-bezier(.16,1,.3,1), color .12s ease; }
  body.nav-open .nav-overlay-link:active { color: var(--blau); }
}
@media (prefers-reduced-motion: reduce) {
  /* Muss NACH dem hover:none-Block oben stehen (Quellreihenfolge-Regel, siehe
     landing_page_sections.md #22) -- sonst gewinnt dessen transition-Deklaration auf
     einem Geraet mit hover:none UND reduced-motion trotz gleicher Spezifitaet. */
  .nav-overlay-link { transition-duration: 0s; transition-delay: 0s; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px), (orientation: portrait) and (max-width: 1024px) {
  .canvas-wrap { background-image: url('../poster/poster-9x16.webp'); }
}

@media (max-width: 768px), (orientation: portrait) and (max-width: 1024px) {
  /* Kuerzere Scrub-Distanz mobil: weniger Wischer bis zur ersten echten Sektion. Nur halb so viele
     Frames sind ohnehin geladen (FRAME_STEP=2 in app.js), ein kuerzerer Container passt die
     Scrub-Geschwindigkeit wieder an -- ScrollTrigger.refresh() beim Flip in app.js. */
  #scroll-container { height: 180vh; height: 180dvh; }

  /* Portrait: Fussband (Zitat unten) + Ellipse oben (Headline), da Headline nicht mehr im selben Block sitzt */
  #hero-top::before {
    background:
      linear-gradient(to top,
        rgba(255,255,255,.90) 0%,
        rgba(255,255,255,.89) 18%,
        rgba(255,255,255,.85) 34%,
        rgba(255,255,255,.76) 46%,
        rgba(255,255,255,.62) 56%,
        rgba(255,255,255,.44) 65%,
        rgba(255,255,255,.26) 74%,
        rgba(255,255,255,.12) 82%,
        rgba(255,255,255,.04) 90%,
        rgba(255,255,255,0)  100%),
      radial-gradient(ellipse 90% 22% at 50% 15%,
        rgba(255,255,255,.92)   0%,
        rgba(255,255,255,.84)  40%,
        rgba(255,255,255,.55)  68%,
        rgba(255,255,255,.18)  88%,
        rgba(255,255,255,0)   100%);
  }
  /* Text durchgehend unten statt oben */
  .top-station { justify-content: flex-end; padding-top: 0; padding-bottom: clamp(48px, 12vh, 120px); padding-left: clamp(20px, 6vw, 40px); padding-right: clamp(20px, 6vw, 40px); }
  .top-station .headline { font-size: clamp(2rem, 8.5vw, 3rem); }
  .top-station .quote { font-size: clamp(1.05rem, 4.2vw, 1.25rem); }
  .top-station .trust { font-size: 12.5px; }
  .quote-br { display: none; }
  /* Logo sitzt hochformat mittig -> Text unten kollidiert nicht, Desktop-Verschiebung waere hier schaedlich */
  #hero-top.logo-phase .top-inner { transform: none; }

  /* Station 01 mobil: Headline oben (unter dem Header), Zitat bleibt unten -> space-between statt flex-end */
  .top-station--lead {
    justify-content: space-between;
    align-items: stretch;
    padding-top: clamp(90px, 18vh, 140px);
    padding-bottom: clamp(28px, 7vh, 70px);
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }
  .top-station--lead .headline { white-space: normal; font-size: clamp(2rem, 8.5vw, 3rem); }
  .hero-quote { position: static; max-width: none; margin-top: 26px; }

  /* Hero-CTA mobil: auto-breit statt full-width. Muss .faq-actions/.faq-btn aus
     sections.css:1132-1133 schlagen (dort fuer Sektion 08/FAQ gedacht, aber unscoped). */
  #hero-top .hero-cta-actions { flex-direction: row; justify-content: flex-start; }
  #hero-top .hero-cta-actions .faq-btn { width: auto; }

  .review-widget--hero { display: none; }   /* Karte nur noch als Content-Block */
  .review-widget--block { max-width: none; }
  .review-card { padding: 16px 18px; }
  .review-quote { font-size: .9rem; }
  .review-note { font-size: .68rem; }

  .review-badge {
    display: inline-flex; align-items: center; gap: 7px;
    align-self: flex-start;              /* gegen align-items: stretch der Station */
    margin-top: 14px; padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(20,22,28,.08);
    box-shadow: 0 4px 14px rgba(20,22,28,.07);
    font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none;
    pointer-events: auto;                /* #hero-top hat pointer-events: none */
  }
  .review-badge svg { width: 15px; height: 15px; flex: none; }
  .review-badge .review-stars { display: flex; gap: 1px; }
  .review-badge .review-stars svg { width: 11px; height: 11px; color: var(--stern); }
  .review-badge-label { font-weight: 500; color: var(--muted); }

  /* ---------- Scroll-Hinweis: dezenter Chevron, blendet ueber --scrollhint (app.js) in den
     ersten ~6% Scroll-Progress aus statt hart mit dem ersten Scroll-Pixel zu verschwinden ---------- */
  .scroll-hint {
    display: flex; justify-content: center;
    margin-top: 22px;
    color: var(--muted);
    opacity: var(--scrollhint, 1);
    animation: scroll-hint-bounce 1.6s cubic-bezier(.45, 0, .55, 1) infinite;
  }
  .scroll-hint svg { width: 22px; height: 22px; }
}
@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
}
