/* ==========================================================================
   Qyppo — qyppo.com
   Eine Datei, keine Abhängigkeiten. Tokens oben, Komponenten darunter.

   Die Tokens spiegeln bewusst apps/ios/Qyppo/Core/DesignSystem/Theme.swift,
   damit sich die Website wie eine Fortsetzung der App anfühlt.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Marke — Palette des App-Icons (brand/AppIcon/) */
  --brand-teal:  #0A9581;
  --brand-coral: #FF5240;
  --brand-blue:  #0C48A1;

  /* Akzent in drei Rollen, weil eine einzige Teal-Nuance nicht überall
     kontraststark genug ist:
     --accent        dekorativ (Flächen, Rahmen, große Grafik)
     --accent-text   Text/Links auf Hintergrund (min. 4.5:1)
     --accent-solid  Button-Fläche mit weißer Schrift (4.9:1) */
  --accent:       #0A9581;
  --accent-text:  #06695A;
  --accent-solid: #07816F;
  --accent-hover: #066354;
  --accent-soft:  rgba(10, 149, 129, 0.12);   /* = Theme.Colors.accentSoft */

  /* Flächen — spiegeln iOS systemGroupedBackground / secondarySystemGrouped */
  --bg:          #F2F2F7;
  --card:        #FFFFFF;
  --card-inset:  #F7F7FA;
  --ink:         #111114;
  --muted:       #55555C;
  --line:        rgba(0, 0, 0, 0.10);
  --line-soft:   rgba(0, 0, 0, 0.06);
  --shadow:      0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --shadow-lg:   0 2px 4px rgba(0,0,0,.04), 0 24px 60px rgba(0,0,0,.10);

  /* Raster — = Theme.Spacing, plus zwei Sektionswerte, die eine App nicht braucht */
  --space-xs: 4px;
  --space-s:  8px;
  --space-m:  12px;
  --space-l:  16px;
  --space-xl: 24px;
  --space-2xl: 40px;
  --space-section: 96px;

  /* Formen — = Theme.Radius */
  --radius-card: 16px;
  --radius-control: 10px;
  --radius-pill: 999px;

  --content: 1100px;
  --prose: 720px;

  /* Typografie — System-Stack. Auf Apple-Geräten exakt die SF Pro der App,
     kein Webfont-Download, keine Google-Fonts-DSGVO-Frage. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent:       #0A9581;
    --accent-text:  #3DD9BE;
    --accent-solid: #07816F;
    --accent-soft:  rgba(10, 149, 129, 0.18);

    --bg:         #000000;
    --card:       #1C1C1E;
    --card-inset: #2C2C2E;
    --ink:        #F5F5F7;
    --muted:      #A1A1A8;
    --line:       rgba(255, 255, 255, 0.14);
    --line-soft:  rgba(255, 255, 255, 0.08);
    --shadow:     none;
    --shadow-lg:  none;

    --brand-blue: #4B87E8;   /* #0C48A1 ist auf Schwarz zu dunkel */
  }
}

/* --------------------------------------------------------------------------
   2. Basis
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;              /* iOS-Body-Größe */
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 {
  margin: 0 0 var(--space-l);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.028em; }
h3 { font-size: 1.3125rem; letter-spacing: -0.015em; }

p { margin: 0 0 var(--space-l); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-l); top: -100px;
  z-index: 100; padding: var(--space-m) var(--space-l);
  background: var(--card); color: var(--ink);
  border-radius: var(--radius-control); box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-l); }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.section { padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) * 0.6); }
.section--alt { background: var(--card); border-block: 1px solid var(--line-soft); }

.section__head { max-width: var(--prose); margin-bottom: var(--space-2xl); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-m);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--accent-solid); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  align-items: center;
}
.btn-note { font-size: 0.9375rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   5. Kopfzeile
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.brand__mark { width: 22px; color: var(--accent); flex: none; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin: 0; padding: 0; list-style: none;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .site-nav { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 104px) var(--space-section);
  text-align: center;
}

/* Farbecho des App-Icons: drei weiche Lichtkegel in den Markenfarben.
   Rein dekorativ, deshalb aria-hidden im Markup. */
.hero__glow {
  position: absolute;
  /* Fester Pixel-Versatz, kein Prozentwert: Prozente beziehen sich auf die
     Höhe des Hero, und die wächst mit dem Geräte-Screenshot darin — der Schein
     rutschte dadurch fast vollständig über den sichtbaren Bereich hinaus. */
  inset: -220px -10% auto;
  height: 620px;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 22% 42%, color-mix(in srgb, var(--brand-coral) 26%, transparent), transparent 70%),
    radial-gradient(40% 48% at 50% 30%, color-mix(in srgb, var(--brand-teal) 30%, transparent), transparent 70%),
    radial-gradient(38% 46% at 78% 44%, color-mix(in srgb, var(--brand-blue) 24%, transparent), transparent 70%);
  filter: blur(28px);
  opacity: .55;
}
@media (prefers-color-scheme: dark) {
  /* Auf Schwarz verschluckt der Hintergrund die weichen Kegel — hier darf der
     Schein deutlich kräftiger sein als auf Hellgrau. */
  .hero__glow { opacity: .8; }
}

.hero > .wrap { position: relative; }

/* Radius = 220/1024 des Icon-SVG, damit der Schatten der eingebauten
   Eckenrundung folgt statt eckig darunter hervorzustehen. */
.hero__icon {
  width: 96px; height: 96px;
  margin: 0 auto var(--space-xl);
  border-radius: 20.6px;
  box-shadow: var(--shadow-lg);
}
@media (prefers-color-scheme: dark) {
  .hero__icon { box-shadow: 0 0 0 1px var(--line); }
}

.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lead { max-width: 52ch; margin-inline: auto; margin-bottom: var(--space-xl); }
.hero .btn-row { justify-content: center; }

/* Faktenzeile unter dem Hero */
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s) var(--space-xl);
  margin-top: var(--space-2xl);
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--muted);
}
.facts li { display: inline-flex; align-items: center; gap: var(--space-s); }
.facts li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* --------------------------------------------------------------------------
   7. Geräte-Rahmen für App-Screenshots
   -------------------------------------------------------------------------- */

/* Echtes Apple-Gerätebild statt CSS-Nachbau (drei Anläufe mit Farbverläufen/box-shadow
   konnten nicht überzeugen - "sieht aus wie ein iPhone" braucht eine echte Fotografie/
   Vektorgrafik, keine Annäherung). Quelle: fastlane/frameit-frames (MIT-lizenziert, offizielle
   Apple-Gerätebilder für genau diesen Zweck - App-Screenshots rahmen). Datei
   "Apple iPhone 17 White.png", Screen-Offset lt. offsets.json +72+69 bei 1206px Breite; unsere
   Screenshots sind exakt 1206×2622 (native 3×-Simulator-Auflösung), liegen also unskaliert
   exakt richtig - das Kompositieren (Screenshot hinter das Rahmenbild mit Alpha-Loch legen)
   ist deshalb schon in jeder PNG unter assets/screens/*.png fest eingebacken. Das Bild bringt
   Gehäuse, Kamerainsel, Seitentasten und Schatten selbst mit; hier bleibt nur noch die Größe
   und ein leichter Boden-Schatten fürs "Schweben" auf der Seite übrig. */
.device {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .28));
}

/* --------------------------------------------------------------------------
   7.1 Scroll-Reveal
   Sichtbar per Default (kein FOUC ohne JS); erst wenn das Inline-Script im
   <head> die Klasse .js auf <html> setzt, startet der Blender-Zustand, den
   assets/js/home.js dann per IntersectionObserver auflöst. */
/* -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   7.2 Chat-Verlauf
   Ohne JS ein normaler, ruhiger Block (Grundzustand). Erst mit .js wird
   .chat-section künstlich hoch (Scroll-Weg) und .chat-pin bleibt per
   position: sticky stehen, während assets/js/home.js anhand des
   Scroll-Fortschritts eine Sprechblase nach der anderen einblendet.
   -------------------------------------------------------------------------- */

.chat-section { position: relative; padding-block: var(--space-section); }
.js .chat-section {
  padding-block: 0;
  /* --n = Anzahl reveal-Schritte, von home.js gesetzt; 7 ist nur der
     Fallback, falls das Script aus irgendeinem Grund nicht läuft. */
  height: calc(var(--n, 7) * 32vh + 100vh);
}

.js .chat-pin {
  position: sticky;
  top: 65px; /* Höhe der .site-header (min-height 64px + 1px Rand) */
  padding-top: clamp(32px, 8vh, 96px);
}

.chat {
  max-width: 860px;
  margin: 0 auto var(--space-2xl);
}
/* Jede Nachricht steckt in einer eigenen Grid-Zeile, deren Höhe (0fr ↔ 1fr)
   animiert wird — nicht nur die Deckkraft. So reserviert eine noch nicht
   gezeigte Nachricht keinen Leerraum: ohne das blieb beim Sticky-Reveal die
   volle Höhe aller sieben Nachrichten stehen, auch wenn erst zwei sichtbar
   waren, was wie ein großer Abstand zwischen den Blasen aussah. */
.chat__row {
  display: grid;
  grid-template-rows: 1fr;
  margin-top: var(--space-l);
}
.chat__row:first-child { margin-top: 0; }
.js .chat__row {
  grid-template-rows: 0fr;
  margin-top: 0;
  transition: grid-template-rows .45s ease, margin-top .45s ease;
}
.js .chat__row.is-visible {
  grid-template-rows: 1fr;
  margin-top: var(--space-l);
}
.js .chat__row:first-child.is-visible { margin-top: 0; }

.chat__bubble {
  min-height: 0;
  overflow: hidden;
  max-width: 82%;
  padding: var(--space-l) var(--space-xl);
  border-radius: var(--radius-card);
  font-size: clamp(1.0625rem, 2.4vw, 1.3125rem);
}
.chat__bubble p { margin: 0; }
.chat__author {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}
.chat__bubble--a {
  margin-right: auto;
  background: color-mix(in srgb, var(--brand-coral) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--brand-coral) 26%, transparent);
}
.chat__bubble--b {
  margin-left: auto;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.chat__bubble--brand { font-weight: 600; }

.chat__punchline {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.375rem, 3.4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.chat__punchline span { color: var(--accent-text); }

@media (max-width: 640px) {
  .chat__bubble { max-width: 88%; }
}

/* --------------------------------------------------------------------------
   7.3 Topspiel der Woche
   -------------------------------------------------------------------------- */

.matchup {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  text-align: center;
}
.matchup__time { margin: 0 0 var(--space-l); font-size: 0.875rem; color: var(--muted); }
.matchup__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.matchup__team { display: grid; justify-items: center; gap: var(--space-s); font-weight: 600; }
.matchup__crest {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.875rem;
  overflow: hidden;
}
.matchup__crest img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}
.matchup__vs { color: var(--muted); font-size: 0.875rem; }
.matchup__picks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s);
}
.matchup__pick {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.matchup__pick:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }

.matchup__results { text-align: left; }
.matchup__bars { display: grid; gap: var(--space-m); }
.matchup__bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px var(--space-m);
}
.matchup__bar-label { font-size: 0.875rem; font-weight: 600; }
.matchup__bar-value { font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.matchup__bar-track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--card-inset);
  overflow: hidden;
}
.matchup__bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent-solid);
  transition: width .6s ease;
}
.matchup__bar-row--own .matchup__bar-label { color: var(--accent-text); }
.matchup__bar-row--own .matchup__bar-fill { background: var(--brand-coral); }
.matchup__own-tag {
  margin-left: var(--space-s);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.matchup__cta {
  display: flex;
  width: fit-content;
  margin: var(--space-l) auto 0;
}

.matchup__demo-note {
  margin-top: var(--space-l);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   7.4 Spieltagsverlauf
   -------------------------------------------------------------------------- */

.timeline {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.timeline__item {
  display: grid;
  grid-template-columns: 64px 24px 1fr;
  column-gap: var(--space-l);
}
.timeline__item:not(:last-child) { padding-bottom: var(--space-2xl); }
.timeline__time {
  padding-top: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}
.timeline__line {
  position: relative;
  display: flex;
  justify-content: center;
}
.timeline__line::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: calc(var(--space-2xl) * -1);
  width: 1px;
  background: var(--line);
}
.timeline__item:last-child .timeline__line::before { display: none; }
.timeline__dot {
  position: relative;
  z-index: 1;
  width: 10px; height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent-solid);
}
.timeline__item h3 { margin-bottom: 2px; font-size: 1.0625rem; }
.timeline__item p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 560px) {
  .timeline__item { grid-template-columns: 44px 20px 1fr; }
  .timeline__time { font-size: 0.75rem; }
}

/* --------------------------------------------------------------------------
   7.5 Charaktere
   -------------------------------------------------------------------------- */

.cast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
}
.cast__card { perspective: 1200px; cursor: pointer; }
.cast__card-inner {
  position: relative;
  min-height: 240px;
  transition: transform .55s cubic-bezier(.4, .2, .2, 1);
  transform-style: preserve-3d;
}
/* :hover für Maus, .is-flipped fuer Tap (per JS gesetzt, siehe home.js) —
   ohne Maus gibt es kein :hover, also braucht es auf Touch-Geraeten einen
   eigenen Umschalter, damit die Karten dort ueberhaupt aufgehen. */
.cast__card:hover .cast__card-inner,
.cast__card:focus-within .cast__card-inner,
.cast__card.is-flipped .cast__card-inner {
  transform: rotateY(180deg);
}
.cast__face {
  position: absolute;
  inset: 0;
  padding: var(--space-xl);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.section--alt .cast__face { background: var(--bg); }
.cast__face--front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cast__face--front .cast__icon { margin-bottom: var(--space-m); }
.cast__face--front h3 { margin: 0; }
.cast__face--back { transform: rotateY(180deg); }
.cast__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: var(--space-l);
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 1.25rem;
}
.cast__card h3 { margin-bottom: var(--space-s); font-size: 1.1875rem; }
.cast__card p { margin: 0 0 var(--space-s); color: var(--muted); font-size: 1.0625rem; }
.cast__quote { font-style: italic; color: var(--ink); }

@media (max-width: 860px) {
  .cast { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cast { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   8. Feature-Blöcke
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-2xl), 7vw, 88px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 80px);
}
.feature + .feature { border-top: 1px solid var(--line-soft); }
/* nth-child(odd), nicht (even): .section__head ist das erste Kind von .wrap,
   die Feature-Blöcke sind also die Kinder 2, 3, 4 … Ohne das startet die
   Reihe mit Bild links statt mit Text links. */
.feature:nth-child(odd) .feature__media { order: -1; }
/* In den Feature-Blöcken kleiner als im Hero — fünf Geräte in voller Größe
   erschlagen den Text, den sie eigentlich illustrieren sollen. */
.feature .device { max-width: 250px; }

.feature__body { max-width: 46ch; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: var(--space-l);
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.feature__icon svg { width: 22px; }

.feature__list {
  margin: var(--space-l) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-s);
  color: var(--muted);
  font-size: 0.9375rem;
}
.feature__list li { display: flex; gap: var(--space-m); }
.feature__list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230A9581' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .feature:nth-child(even) .feature__media { order: 0; }
}

/* --------------------------------------------------------------------------
   9. Schritte
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  padding: 0; margin: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  padding: var(--space-xl);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}
.section--alt .step { background: var(--card-inset); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: var(--space-l);
  border-radius: 50%;
  background: var(--accent-solid);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
}
.step h3 { margin-bottom: var(--space-s); font-size: 1.125rem; }
.step p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */

.faq { max-width: var(--prose); margin-inline: auto; }

.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  padding: var(--space-xl) 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details > div { padding-bottom: var(--space-xl); color: var(--muted); max-width: 62ch; }

.faq-tail {
  max-width: var(--prose);
  margin: var(--space-2xl) auto 0;
  text-align: center;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. Datenquellen
   -------------------------------------------------------------------------- */

.sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-l);
  padding: 0; margin: 0;
  list-style: none;
}
.source {
  padding: var(--space-l) var(--space-xl);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}
.section--alt .source { background: var(--bg); }
.source strong { display: block; margin-bottom: 2px; }
.source span { font-size: 0.875rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   12. Fußzeile
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l) var(--space-xl);
}
.site-footer__brand { display: grid; gap: 2px; }
.site-footer__brand b { color: var(--ink); font-weight: 600; }
.site-footer nav ul {
  display: flex; flex-wrap: wrap;
  gap: var(--space-xl);
  margin: 0; padding: 0; list-style: none;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

.disclaimer {
  max-width: 70ch;
  margin-top: var(--space-xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Fließtext-Seiten (Impressum, Datenschutz, Support)
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: var(--space-2xl) var(--space-xl);
  border-bottom: 1px solid var(--line-soft);
}
/* Auf dieselbe Spalte wie .prose legen — sonst steht die Überschrift links am
   Seitenrand, während der Fließtext darunter mittig sitzt. */
.page-head > * { max-width: var(--prose); margin-inline: auto; }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.page-head__meta { font-size: 0.875rem; color: var(--muted); }

.prose {
  max-width: var(--prose);
  margin-inline: auto;
  padding-block: var(--space-2xl) var(--space-section);
}
.prose h2 {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line-soft);
  font-size: 1.5rem;
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: var(--space-xl); font-size: 1.125rem; }
.prose ul, .prose ol { margin: 0 0 var(--space-l); padding-left: 1.35em; }
.prose li { margin-bottom: var(--space-s); }
.prose li::marker { color: var(--accent); }
.prose dl { margin: 0 0 var(--space-l); }
.prose dt { font-weight: 600; margin-top: var(--space-m); }
.prose dd { margin: 0 0 0 0; color: var(--muted); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-l);
  font-size: 0.9375rem;
}
.prose th, .prose td {
  padding: var(--space-m);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.prose th { font-weight: 600; }
.prose td:last-child { color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Platzhalter in den Rechtstexten — soll unübersehbar sein, damit nichts
   davon versehentlich live geht. */
.todo {
  background: color-mix(in srgb, var(--brand-coral) 16%, transparent);
  border-bottom: 2px solid var(--brand-coral);
  border-radius: 3px;
  padding: 0 4px;
  font-weight: 600;
  font-style: normal;
}

.callout {
  margin: var(--space-xl) 0;
  padding: var(--space-l) var(--space-xl);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
}
.callout p { font-size: 0.9375rem; }

.callout--warn {
  background: color-mix(in srgb, var(--brand-coral) 12%, transparent);
  border-left-color: var(--brand-coral);
}

/* --------------------------------------------------------------------------
   14. Zentrierte Statusseiten (/invite, /auth/callback, 404)
   -------------------------------------------------------------------------- */

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  padding-block: var(--space-section);
  text-align: center;
}
.stage__card {
  width: 100%;
  max-width: 460px;
  padding: var(--space-2xl);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.stage__icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--space-xl);
  border-radius: 15.5px;   /* s. .hero__icon */
}
.stage h1 { font-size: clamp(1.6rem, 5vw, 2rem); }
.stage .btn-row { justify-content: center; margin-top: var(--space-xl); }
.stage .btn { width: 100%; }

/* Invite-Code */
.code-field {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  margin: var(--space-xl) 0 var(--space-s);
  padding: var(--space-l);
  background: var(--card-inset);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-control);
}
.code-field__value {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.code-field__copy {
  flex: none;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.code-field__copy:hover { border-color: var(--accent); color: var(--accent-text); }
.code-hint { font-size: 0.875rem; color: var(--muted); }

.spinner {
  width: 34px; height: 34px;
  margin: 0 auto var(--space-l);
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   15. Kleinere Viewports
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  :root { --space-section: 64px; }
  .wrap { padding-inline: var(--space-l); }
  .stage__card { padding: var(--space-xl); }
}

/* --------------------------------------------------------------------------
   16. Druck
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer nav, .hero__glow { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose { max-width: none; }
}
