/* ============================================================
   Athlete App — Website Design System
   Farben = echte App-Palette (lib/theme/colors/athlete_palette.dart)
   Akzent-Ökonomie: BLAU = Daten/UI/Links · GOLD = nur Haupt-CTA,
   Coach-Premium und Announcement-Link. Makro-Farben nur in
   Ernährungs-Grafiken.
   ============================================================ */

/* ---------- Fonts (selbst gehostet, DSGVO-sauber) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Flächen */
  --navy-975: #050B18;
  --navy-950: #071122;
  --navy-900: #0C1628;
  --navy-800: #0E1B31;
  --navy-600: #31496F;
  /* Blau = Daten/UI */
  --blue-700: #1A4F9E;
  --blue-500: #4B7BFF;
  --blue-400: #7AA7FF;
  --blue-300: #9EC0FF;
  /* Gold = nur CTA / Coach-Premium */
  --gold-600: #BF9A5E;
  --gold-300: #E4C78F;
  /* Makros (nur Ernährungs-Grafiken) */
  --protein: #3FB97A;
  --carbs: #D4732A;
  --fat: #E8B547;
  --hydration: #4FB3FF;
  /* Text */
  --ink: #EAF3FF;
  --ink-mid: #BAC7D8;
  --ink-faint: #7B8CA8;
  /* Glas */
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(158, 192, 255, 0.14);
  /* Geometrie */
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1160px;
  --container-narrow: 760px;
  --section-y: clamp(72px, 10vw, 128px);
  --nav-h: 64px;
  /* Schrift */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-950);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }

a { color: var(--blue-400); text-decoration: none; }
a:hover { color: var(--blue-300); }

:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(122, 167, 255, 0.35); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}
.container--narrow { max-width: var(--container-narrow); }

section { position: relative; }
.section { padding-block: var(--section-y); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--blue-400); color: var(--navy-975);
  padding: 10px 18px; font-weight: 700; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typografie ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--ink);
}

h1 { font-size: clamp(40px, 7vw, 82px); }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; }

.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-mid);
  max-width: 56ch;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-400);
}
/* Gold-Eyebrow: nur für Coach-Premium-Kontext (Akzent-Ökonomie) */
.eyebrow--gold { color: var(--gold-300); }

.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Announcement-Bar ---------- */
.announce {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800));
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-mid);
}
.announce a { color: var(--gold-300); font-weight: 700; }
.announce a:hover { color: var(--gold-600); }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 17, 34, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: var(--nav-h);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-family: var(--font-display); font-stretch: 125%;
  font-weight: 800; font-size: 17px; letter-spacing: -0.01em;
}
.nav-logo:hover { color: var(--ink); }
.nav-logo img { width: 34px; height: 34px; border-radius: 9px; }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
.nav-links > a {
  color: var(--ink-mid); font-size: 14.5px; font-weight: 600;
  transition: color 0.15s;
}
.nav-links > a:hover { color: var(--ink); }
.nav-links > a[aria-current="page"] { color: var(--ink); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }

/* Auf Desktop existiert kein Burger — Checkbox aus der Tab-Reihenfolge nehmen */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

@media (max-width: 899px) {
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; cursor: pointer;
    border: 1px solid var(--glass-border); border-radius: 10px;
    background: var(--glass);
  }
  .nav-burger span {
    display: block; height: 2px; width: 100%;
    background: var(--ink); border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--blue-400); outline-offset: 3px; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 17, 34, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 20px 20px;
  }
  .nav-links > a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(158, 192, 255, 0.08); }
  .nav-links > a:last-child { border-bottom: 0; margin-top: 12px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 800; font-size: 15px; letter-spacing: 0.01em;
  padding: 15px 28px; border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-600) 100%);
  color: var(--navy-975);
  box-shadow: 0 10px 32px rgba(191, 154, 94, 0.28);
}
.btn-gold:hover { color: var(--navy-975); box-shadow: 0 14px 40px rgba(191, 154, 94, 0.4); transform: translateY(-1px); }

.btn-ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--glass-strong); color: var(--ink); }

.btn-blue {
  background: var(--blue-400);
  color: var(--navy-975);
}
.btn-blue:hover { background: var(--blue-300); color: var(--navy-975); }

.btn--nav { padding: 10px 20px; font-size: 13.5px; border-radius: 10px; }
.btn--lg { padding: 18px 34px; font-size: 16px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Hero (Foto, Full-Bleed) ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(88vh, 860px);
  overflow: hidden;
}
.hero--sub { min-height: min(56vh, 560px); }

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, var(--navy-950) 4%, rgba(7, 17, 34, 0.62) 42%, rgba(7, 17, 34, 0.18) 78%),
    linear-gradient(100deg, rgba(5, 11, 24, 0.66) 0%, transparent 60%);
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  display: grid; gap: 22px; justify-items: start;
  padding-block: clamp(56px, 9vw, 110px);
}
.hero-content .lead { max-width: 46ch; }

/* ---------- Pillar-Sektionen ---------- */
.pillar {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .pillar { grid-template-columns: 1fr 1fr; }
  .pillar--flip > .pillar-media { order: 2; }
}
/* Grid-Kinder dürfen unter ihre Content-Breite schrumpfen (kein Overflow) */
.pillar > *, .split > *, .card-grid > *, .footer-grid > *, .pillar-copy > * { min-width: 0; }

.pillar-copy { display: grid; gap: 16px; justify-items: start; }
.pillar-copy .lead { font-size: clamp(15.5px, 1.8vw, 18px); }
.pillar + .pillar { margin-top: var(--section-y); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 600; color: var(--ink-mid);
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 6px 14px;
}

.more-link { font-weight: 700; font-size: 14.5px; }

/* ---------- Say-More: Fließtext hinter einem Chevron ----------
   Startzustand zeigt nur die Überschrift; der Erklärtext fährt per Klick
   aus. Natives <details> — ohne JS bleibt der Text zugänglich (SEO). */
details.say-more { margin-block: -2px; }

details.say-more > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  margin-left: -11px;               /* Chevron optisch auf die Textkante */
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: background 0.15s, border-color 0.15s;
}
details.say-more > summary::-webkit-details-marker { display: none; }
details.say-more > summary::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 2px solid var(--blue-400);
  border-bottom: 2px solid var(--blue-400);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}
details.say-more > summary:hover { background: var(--glass-strong); }
details.say-more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }

details.say-more > .lead { margin-top: 12px; }

@media (prefers-reduced-motion: no-preference) {
  details.say-more[open] > .lead {
    animation: say-more-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes say-more-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- Foto-Slot ---------- */
.photo-slot {
  position: relative;
  aspect-ratio: var(--ar, 16 / 9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(150deg, var(--navy-900) 0%, var(--navy-975) 55%, #10254d 100%);
  border: 1px solid var(--glass-border);
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot--portrait { --ar: 4 / 5; }

/* ---------- Phone-Frame ---------- */
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 46px;
  background: var(--navy-975);
  border: 2px solid rgba(158, 192, 255, 0.22);
  box-shadow:
    0 42px 90px rgba(0, 0, 0, 0.55),
    inset 0 0 0 3px rgba(5, 11, 24, 0.9);
  overflow: hidden;
  margin-inline: auto;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone::after {
  content: '';
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 26px; border-radius: 999px;
  background: var(--navy-975);
  border: 1px solid rgba(158, 192, 255, 0.1);
}

/* ---------- Schwebende UI-Karte ---------- */
.ui-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  background: var(--navy-900);
  transform: rotate(-2.5deg);
}
.ui-card img { width: 100%; }
.ui-card--tilt-right { transform: rotate(2deg); }

.hero .ui-card {
  position: absolute; z-index: 2;
  right: clamp(16px, 6vw, 96px); bottom: clamp(40px, 9vw, 120px);
  width: clamp(230px, 24vw, 330px);
}
@media (max-width: 1080px) { .hero .ui-card { display: none; } }

/* UI-Karte als echtes HTML (gestochen scharf) statt Bitmap-Screenshot */
.ui-card--stats {
  display: grid; gap: 13px;
  padding: 15px 17px 17px;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
}
.ui-card--stats .mini-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; letter-spacing: -0.01em;
}
.ui-card--stats .mini-metric { display: grid; gap: 6px; }
.ui-card--stats .mini-lbl {
  font-size: 12px; font-weight: 600; color: var(--ink-mid);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ui-card--stats .mini-lbl b {
  color: var(--ink); font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ui-card--stats .mini-bar {
  display: block; height: 7px; border-radius: 999px;
  background: rgba(158, 192, 255, 0.12);
  overflow: hidden;
}
.ui-card--stats .mini-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500) 0%, var(--blue-300) 100%);
}

/* Count-Up-Balken: Engine setzt width 0 → Zielwert, Transition macht den Fill */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-countbar] { transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
}

/* ---------- Glas-Karten ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 40px);
}

.card-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Split (Athleten / Coaches) ---------- */
.split { display: grid; gap: 18px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.split-card {
  display: grid; gap: 14px; align-content: start; justify-items: start;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.6vw, 44px);
}
.split-card--coach { border-color: rgba(191, 154, 94, 0.35); }
.split-card--coach .eyebrow { color: var(--gold-300); }
.split-card .btn { margin-top: 10px; }

.check-list { list-style: none; display: grid; gap: 11px; }
.check-list li {
  display: flex; gap: 11px; align-items: flex-start;
  color: var(--ink-mid); font-size: 15px; line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  color: var(--blue-400);
  font-weight: 800; font-size: 14px;
  margin-top: 2px; flex-shrink: 0;
}
.split-card--coach .check-list li::before { color: var(--gold-300); }

/* ---------- Stat-Tiles / Makros ---------- */
.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); width: 100%; }
.stat-tile {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid; gap: 2px;
}
.stat-tile .num {
  font-family: var(--font-display); font-stretch: 125%;
  font-weight: 900; font-size: clamp(22px, 2.6vw, 30px);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-tile .lbl { font-size: 12.5px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.02em; }
.stat-tile--protein .num { color: var(--protein); }
.stat-tile--carbs .num { color: var(--carbs); }
.stat-tile--fat .num { color: var(--fat); }
.stat-tile--hydration .num { color: var(--hydration); }
.stat-tile--blue .num { color: var(--blue-400); }
.stat-tile--gold .num { color: var(--gold-300); }

/* ---------- Activity-Card (GPS) ---------- */
.activity-card {
  background: var(--navy-900);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  max-width: 520px;
}
.activity-map { display: block; width: 100%; height: auto; background: var(--navy-975); }
.activity-meta { padding: 18px 22px 20px; display: grid; gap: 12px; }
.activity-title { font-weight: 700; font-size: 15px; }
.activity-title small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.activity-stats { display: flex; gap: clamp(18px, 4vw, 36px); }
.activity-stats div { display: grid; gap: 1px; }
.activity-stats .num {
  font-family: var(--font-display); font-stretch: 125%;
  font-weight: 900; font-size: 20px; font-variant-numeric: tabular-nums;
  color: var(--blue-400);
}
.activity-stats .lbl { font-size: 11.5px; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Chat-Bubbles (KI-Coach) ---------- */
.chat-mock { display: grid; gap: 12px; max-width: 460px; }
.chat-bubble {
  padding: 13px 18px; border-radius: 18px;
  font-size: 14.5px; line-height: 1.5; color: var(--ink);
  max-width: 88%;
}
.chat-bubble--user {
  background: var(--blue-700);
  border-bottom-right-radius: 6px;
  justify-self: end;
}
.chat-bubble--ai {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 6px;
  justify-self: start;
}
.chat-bubble--ai b { color: var(--blue-300); }

/* ---------- Trust-Row ---------- */
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 14px;
}
.trust-badge {
  font-size: 13px; font-weight: 700; color: var(--ink-mid);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: 999px; padding: 8px 18px;
  white-space: nowrap;
}
.trust-note { text-align: center; font-size: 13px; color: var(--ink-faint); margin-top: 18px; }

/* ---------- Zahlen-Schritte ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  counter-increment: step;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid; gap: 10px; align-content: start;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-stretch: 125%;
  font-weight: 900; font-size: 30px;
  color: var(--blue-400);
}
.step h3 { font-size: 18px; }
.step p { color: var(--ink-mid); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-group { display: grid; gap: 10px; }
.faq-group + .faq-group { margin-top: 44px; }
.faq-group > h2 { font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 8px; }

details.faq {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
}
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-weight: 700; font-size: 15.5px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; line-height: 1;
  color: var(--blue-400);
  transition: transform 0.2s;
  flex-shrink: 0;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body { padding: 0 22px 20px; color: var(--ink-mid); font-size: 14.5px; display: grid; gap: 10px; }
details.faq .faq-body a { font-weight: 600; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 90% 130% at 50% -20%, rgba(26, 79, 158, 0.35) 0%, transparent 60%),
    var(--navy-900);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 84px) clamp(24px, 5vw, 64px);
  text-align: center;
  display: grid; gap: 20px; justify-items: center;
}
.cta-band .lead { margin-inline: auto; }
.cta-band--coach { border-color: rgba(191, 154, 94, 0.3); }
.cta-note { font-size: 13px; color: var(--ink-faint); }

/* ---------- Coach-Dashboard-Mock ---------- */
.dash-mock {
  background: var(--navy-900);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid; gap: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  font-size: 13px;
}
.dash-mock .dash-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 700; font-size: 14px;
}
.dash-mock .dash-head small { color: var(--ink-faint); font-weight: 500; }
.dash-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  background: var(--glass);
  border: 1px solid rgba(158, 192, 255, 0.08);
  border-radius: 12px; padding: 11px 14px;
}
.dash-row .who { display: grid; gap: 1px; }
.dash-row .who b { font-size: 13.5px; }
.dash-row .who small { color: var(--ink-faint); font-size: 11.5px; }
.dash-bar {
  width: 96px; height: 7px; border-radius: 999px;
  background: rgba(158, 192, 255, 0.14);
  position: relative; overflow: hidden;
}
.dash-bar i { position: absolute; inset: 0; right: auto; border-radius: inherit; background: var(--blue-400); }
.dash-pill {
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 4px 11px;
  background: rgba(63, 185, 122, 0.14); color: var(--protein);
}
.dash-pill--warn { background: rgba(232, 181, 71, 0.13); color: var(--fat); }
.dash-pill--low { background: rgba(212, 115, 42, 0.15); color: var(--carbs); }

/* ---------- Prose (Legal) ---------- */
.prose { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.prose h1, .prose h2, .prose h3 { hyphens: auto; }
.prose h1 { font-size: clamp(28px, 5vw, 52px); margin-bottom: 10px; }
.prose h2 { font-size: clamp(20px, 2.6vw, 26px); margin-top: 26px; }
.prose h3 { font-size: 16.5px; margin-top: 14px; }
.prose p, .prose li { color: var(--ink-mid); font-size: 15px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }
.prose em { color: var(--ink-faint); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--glass-border); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgba(158, 192, 255, 0.1); color: var(--ink-mid); }
.prose th { background: var(--glass-strong); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  background: var(--navy-975);
  padding: clamp(48px, 6vw, 72px) 0 36px;
  margin-top: var(--section-y);
}
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand { display: grid; gap: 12px; align-content: start; justify-items: start; }
.footer-brand .nav-logo { font-size: 16px; }
.footer-brand p { color: var(--ink-faint); font-size: 13.5px; max-width: 30ch; }

.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h2 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); font-family: var(--font-body); font-weight: 700;
}
.footer-col a { color: var(--ink-mid); font-size: 14px; }
.footer-col a:hover { color: var(--ink); }

.footer-base {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(158, 192, 255, 0.08);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  color: var(--ink-faint); font-size: 13px;
}

/* ---------- Scroll-Reveal (nur mit JS + ohne reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  html.js [data-reveal].in-view { opacity: 1; transform: none; }
}

/* ---------- Journey-Intro (Home) ----------
   Scroll-gescrubbte Kamerafahrt vor dem Hero. Alle Regeln greifen nur,
   wenn die Engine in site.js initialisiert hat (.journey--live) — ohne JS,
   bei reduzierter Bewegung oder bei einem JS-Fehler bleibt der normale
   Foto-Hero vollständig erhalten. */
.journey-canvas, .journey-hint { display: none; }

@media (prefers-reduced-motion: no-preference) {
  html.js .journey--live { height: 500vh; }

  html.js .journey--live .journey-stage {
    position: sticky; top: 0;
    height: 100vh; height: 100dvh;
    overflow: hidden;
    background: var(--navy-950);
  }

  html.js .journey--live .journey-canvas {
    display: block;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
  }

  html.js .journey--live .journey-hero {
    position: absolute; inset: 0;
    min-height: 0;
    opacity: 0;
    transform: translateY(26px);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  html.js .journey--live .journey-hero.on {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  html.js .journey--live .journey-hint {
    display: inline-flex; align-items: center; gap: 8px;
    position: absolute; left: 50%; bottom: 26px; z-index: 3;
    transform: translateX(-50%);
    font-size: 13px; font-weight: 600; color: var(--ink-mid);
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 999px; padding: 8px 18px;
    transition: opacity 0.5s ease;
    animation: journey-hint-pulse 2.4s ease-in-out infinite;
  }
  html.js .journey--live .journey-hint::after {
    content: '↓';
    color: var(--blue-400);
    font-weight: 800;
  }
  html.js .journey--live .journey-hint.gone { opacity: 0; }

  @keyframes journey-hint-pulse {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(5px); }
  }
}

/* ---------- KPI-Gate (Home-Hero) ----------
   Der Tagesfortschritts-Ring (Pendant zum Tages-Hero der App) lädt sich
   beim Scrollen voll; solange pinnt die Stage — erst bei 100 % scrollt
   die Seite weiter. Regeln greifen nur nach Engine-Init (.kpi-gate--live);
   ohne JS oder bei reduzierter Bewegung bleibt der normale Hero, der Ring
   bleibt verborgen. */
.kpi-ring-wrap { display: none; }

@media (prefers-reduced-motion: no-preference) {
  html.js .kpi-gate--live { height: 220vh; }

  html.js .kpi-gate--live .kpi-stage {
    position: sticky; top: 0;
    height: 100vh; height: 100dvh;
    overflow: hidden;
  }
  /* Höhenkette bis zum Hero durchreichen (Journey-Wrapper sind im
     deaktivierten Zustand normale Blöcke) */
  html.js .kpi-gate--live .kpi-stage .journey,
  html.js .kpi-gate--live .kpi-stage .journey-stage,
  html.js .kpi-gate--live .kpi-stage .hero { height: 100%; min-height: 0; }

  /* Riesen-Ring als atmosphärisches Hero-Element: liegt auf z-1 HINTER
     dem Hero-Content (z-2) — der untere Bogen läuft hinter den Slogan.
     Strokes/Glow bewusst zurückgenommen, damit der Text führt. */
  html.js .kpi-gate--live .kpi-ring-wrap {
    display: block;
    position: absolute; z-index: 1;
    left: 50%; top: clamp(40px, 10vh, 118px);
    transform: translateX(-50%);
    width: clamp(320px, 42vw, 540px);
  }
  /* Glow liegt auf dem SVG-Element (folgt der Ringform) statt auf dem
     inneren Kreis — dort würde ihn die SVG-Viewport-Box rechteckig
     abschneiden. Zwei Lagen für natürlichen Falloff. */
  html.js .kpi-gate--live .kpi-ring {
    width: 100%; height: auto;
    overflow: visible;
    transform: rotate(-90deg);
    filter:
      drop-shadow(0 0 10px rgba(75, 123, 255, 0.26))
      drop-shadow(0 0 34px rgba(75, 123, 255, 0.14));
  }
  html.js .kpi-gate--live .kpi-track {
    fill: none;
    stroke: rgba(158, 192, 255, 0.10);
    stroke-width: 10;
  }
  html.js .kpi-gate--live .kpi-fill {
    fill: none;
    stroke: url(#kpi-grad);
    stroke-opacity: 0.78;
    stroke-width: 10;
    stroke-linecap: round;
  }
  html.js .kpi-gate--live .kpi-center {
    position: absolute; inset: 0;
    display: grid; place-items: center; align-content: center; gap: 2px;
    text-align: center;
  }
  html.js .kpi-gate--live .kpi-num {
    font-family: var(--font-display); font-stretch: 125%;
    font-weight: 900;
    font-size: clamp(38px, 5.4vw, 74px);
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }
  html.js .kpi-gate--live .kpi-num small { font-size: 0.55em; font-weight: 800; margin-left: 2px; }
  html.js .kpi-gate--live .kpi-lbl {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-faint);
  }

  /* 100 % erreicht: Gold-Moment (Momentum-Semantik der Akzent-Ökonomie) */
  html.js .kpi-gate--live .kpi-ring-wrap.done .kpi-fill {
    stroke: url(#kpi-grad-gold);
  }
  html.js .kpi-gate--live .kpi-ring-wrap.done .kpi-ring {
    filter:
      drop-shadow(0 0 10px rgba(228, 199, 143, 0.3))
      drop-shadow(0 0 36px rgba(228, 199, 143, 0.16));
  }
  html.js .kpi-gate--live .kpi-ring-wrap.done .kpi-num { color: var(--gold-300); }
  html.js .kpi-gate--live .kpi-ring-wrap.done { animation: kpi-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1); }

  @keyframes kpi-pop {
    0%   { transform: translateX(-50%) scale(1); }
    45%  { transform: translateX(-50%) scale(1.06); }
    100% { transform: translateX(-50%) scale(1); }
  }
}

/* ---------- Media-Stack (Foto + überlappende UI-Karte) ---------- */
.media-stack { position: relative; }
.media-stack > .ui-card {
  position: absolute;
  width: min(56%, 300px);
  bottom: clamp(-28px, -2vw, -18px);
  left: clamp(-22px, -1.6vw, -12px);
}
@media (max-width: 899px) {
  .media-stack { margin-bottom: 34px; }
  .media-stack > .ui-card { left: 10px; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-lg { margin-top: clamp(36px, 5vw, 64px); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
