/* ==========================================================================
   Bahnpech – Website
   Alles hier folgt dem Design-System der App (lib/theme/app_tokens.dart):
   gleiche Farben, Schrift (Nunito Sans), Radien und Bausteine.
   ========================================================================== */

:root {
  /* Marke */
  --primary: #0891b2;
  --primary-strong: #0e7490;
  --primary-soft: #e7f6fa;
  --on-primary: #ffffff;
  --brand: #0a87a3;          /* Oberkante des Verlaufs, dunkel genug für Weiß */
  --brand-light: #1fc2d6;    /* Verlauf App-Icon oben */

  /* Flächen */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f3f5f7;
  --border: #e3e7eb;
  --divider: #edf0f3;

  /* Schrift */
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #8a94a1;
  --ink: #000000;

  /* Dunkle Knöpfe und Pillen */
  --inverse: #111827;
  --on-inverse: #ffffff;
  --shadow-c: #0000001f;

  /* Signale */
  --on-signal: #ffffff;
  --success: #16a34a;
  --success-strong: #166534;
  --success-soft: #eaf7e3;
  --warning: #d97706;
  --warning-strong: #9a3412;
  --warning-soft: #fef3e2;
  --danger: #dc2626;
  --danger-strong: #b91c1c;
  --danger-soft: #feecec;

  /* Pastellkarten (Erstattung) */
  --card-green: #eaf7e3;
  --card-peach: #fdede1;
  --card-lavender: #efeaff;

  /* Schrift-Skala der App: 11 · 12 · 14 · 16 · 20 · 28 · 46 – fürs Web hochgezogen */
  --font: "Nunito Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Radien der App */
  --r-xs: 6px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow: 0 1px 2px #0000000d, 0 10px 30px -12px var(--shadow-c);
  --phone-shadow: 0 40px 80px -30px #0b3a4766, 0 16px 32px -18px #0b3a4733;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 72rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #22c3e0;
    --primary-strong: #67dcf0;
    --primary-soft: #102a31;
    --on-primary: #042229;
    --brand: #0b4a59;

    --bg: #0b0f14;
    --surface: #161b22;
    --surface-alt: #1f252d;
    --border: #2c333d;
    --divider: #242a33;

    --text: #f1f3f5;
    --text-2: #a3abb5;
    --text-3: #6b7480;
    --ink: #ffffff;

    --inverse: #f1f3f5;
    --on-inverse: #111827;
    --shadow-c: #00000066;

    --on-signal: #0b0f14;
    --success: #4ade80;
    --success-strong: #bbf7d0;
    --success-soft: #14271a;
    --warning: #fbbf24;
    --warning-strong: #fed7aa;
    --warning-soft: #2b2113;
    --danger: #f87171;
    --danger-strong: #fca5a5;
    --danger-soft: #2c1517;

    --card-green: #14271a;
    --card-peach: #2c1e15;
    --card-lavender: #1e1a2d;

    --phone-shadow: 0 40px 80px -30px #000000e6, 0 16px 32px -18px #000000b3;
  }
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
strong { color: var(--text); font-weight: 700; }
h1, h2, h3, h4 { color: var(--text); margin: 0; text-wrap: balance; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.ico { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* Seitentitel wie in der App (heavy), Abschnittstitel wie „Deine Erstattung“ */
.h-page { font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.h-section { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-2); margin: 16px 0 0; max-width: 36rem; text-wrap: pretty; }

/* Kleine Marke über Überschriften – wie die Chips der App */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px 0 10px;
  border-radius: var(--r-pill);
  background: var(--primary-soft); color: var(--primary-strong);
  font-size: 14px; font-weight: 700;
  margin-bottom: 18px;
}
.chip .ico { width: 18px; height: 18px; }

/* ---------- Knöpfe (wie in der App) ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--r-pill);
  font: 700 16px/1.2 var(--font);
  text-decoration: none; cursor: pointer;
  transition: transform .14s var(--ease), opacity .14s;
}
.btn:active { transform: scale(.97); }      /* PressScale */
.btn .ico { width: 20px; height: 20px; }
.btn-dark { background: var(--inverse); color: var(--on-inverse); }
.btn-white { background: #f3f4f6; color: #111827; }  /* „Mehr Infos“ */
.btn-green { background: var(--success); color: var(--on-signal); }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------- Navigation: die schwebende Pille der App ---------- */

.nav {
  position: fixed; z-index: 50;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 28px), 980px);
  display: flex; align-items: center; gap: 8px;
  height: 60px; padding: 0 8px 0 18px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
          backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 0 0 1px var(--border), 0 12px 32px -14px var(--shadow-c);
}
.nav-logo { display: block; margin-right: auto; }
.nav-logo img { height: 24px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 14px; border-radius: var(--r-pill);
  text-decoration: none; color: var(--text-2);
  font-size: 15px; font-weight: 600;
  transition: background .14s, color .14s;
}
.nav-links a:hover { background: var(--surface-alt); color: var(--text); }
.nav-links .ico { width: 20px; height: 20px; }
.nav .btn { min-height: 44px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Hero: der Cyan-Verlauf oben aus der App ---------- */

.hero {
  position: relative;
  padding: 140px 0 0;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg,
      var(--brand-light) 0%,
      var(--brand) 34%,
      color-mix(in srgb, var(--brand) 55%, var(--bg)) 58%,
      var(--bg) 82%);
}
@media (prefers-color-scheme: dark) {
  .hero {
    background: linear-gradient(180deg, #1fc2d6 0%, #0b4a59 32%, var(--bg) 70%);
  }
}
.hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 4.6rem); max-width: 15ch; margin: 0 auto; }
.hero .lede { color: #ffffffe6; margin: 20px auto 0; max-width: 36rem; }
.hero-sub {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: #fff;
  margin-bottom: 18px;
}
.hero-sub .ico { width: 20px; height: 20px; }

/* Store-Knöpfe – weiß auf dem Verlauf */
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px;
  border-radius: var(--r-md);
  background: #fff; color: #111827;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px #00000059;
  transition: transform .14s var(--ease);
}
.store:active { transform: scale(.97); }
.store .ico { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 600; color: #4b5563; }
.store b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.store.dark { background: var(--inverse); color: var(--on-inverse); }
.store.dark small { color: inherit; opacity: .75; }

/* Drei Kacheln wie „Fahrten · Pendeln · Anträge“ */
.tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: 560px; margin: 30px auto 0;
}
.tile-link {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1.5px #ffffff59;
  background: #ffffff14;
  color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 700;
  transition: background .14s, transform .14s var(--ease);
}
.tile-link:hover { background: #ffffff26; }
.tile-link:active { transform: scale(.97); }
.tile-link .ico { width: 26px; height: 26px; }

.hero-phones {
  display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end;
  gap: clamp(14px, 3vw, 40px);
  max-width: 960px;
  margin: clamp(48px, 7vw, 76px) auto 0;
  padding: 0 8px;
}
.hero-phones .phone:nth-child(1), .hero-phones .phone:nth-child(3) { transform: translateY(7%); }
@media (max-width: 640px) {
  .hero-phones { grid-template-columns: 1fr; max-width: 290px; }
  .hero-phones .phone:nth-child(1), .hero-phones .phone:nth-child(3) { display: none; }
  .tiles .tile-link { font-size: 14px; }
}
.caption { font-size: 13px; color: var(--text-3); margin: 36px 0 0; text-align: center; }

/* ---------- Phone mit echtem App-Screenshot ---------- */

.phone { container-type: inline-size; width: 100%; }
.phone-body {
  position: relative;
  padding: 3cqw;
  border-radius: 17.6cqw;
  background: linear-gradient(145deg, #f5f5f7 0%, #c8c8cd 24%, #ececef 50%, #b8b8be 78%, #efeff2 100%);
  box-shadow: inset 0 0 0 .3cqw #00000024, inset 0 .4cqw .6cqw #ffffffb3, var(--phone-shadow);
}
@media (prefers-color-scheme: dark) {
  .phone-body {
    background: linear-gradient(145deg, #4a4a4f 0%, #2a2a2e 30%, #3c3c41 55%, #1f1f23 80%, #4a4a50 100%);
    box-shadow: inset 0 0 0 .3cqw #ffffff14, var(--phone-shadow);
  }
}
.phone-body::before, .phone-body::after {
  content: ""; position: absolute; width: .8cqw; border-radius: .8cqw;
  background: linear-gradient(90deg, #a9a9ae, #d9d9dd);
}
.phone-body::before { left: -.6cqw; top: 24%; height: 9%; }
.phone-body::after { right: -.6cqw; top: 30%; height: 12%; }
@media (prefers-color-scheme: dark) { .phone-body::before, .phone-body::after { background: #3a3a3f; } }
.phone-screen {
  position: relative;
  aspect-ratio: 1206 / 2622;
  border-radius: 14.6cqw;
  overflow: hidden;
  background: var(--bg);
}
.phone-screen img, .phone-screen picture { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Kennzahlen (Regeln) ---------- */

.facts {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin-top: clamp(56px, 8vw, 88px);
}
.fact {
  padding: 18px 18px 16px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
}
.fact b { display: block; font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -.02em; line-height: 1.1; }
.fact span { display: block; font-size: 14px; color: var(--text-2); margin-top: 4px; line-height: 1.35; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } .fact:last-child { grid-column: span 2; } }

/* ---------- Abschnitte ---------- */

.section { padding: clamp(80px, 10vw, 128px) 0; }
.section.tight { padding-top: 0; }
.section-head { max-width: 42rem; }
.section-head.center { text-align: center; margin: 0 auto; }
.section-head.center .lede { margin-inline: auto; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.feature.flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip > :first-child { order: 0; }
}
.feature-phone { max-width: 320px; margin: 0 auto; width: 100%; }

/* Zeilen mit Symbol – wie `_IconLine` in der App */
.lines { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.lines li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16px; color: var(--text-2); }
.lines .ico { color: var(--primary); margin-top: 1px; }

/* ---------- Pastellkarten wie auf „Erstattung“ ---------- */

.pastels { display: grid; gap: 16px; margin-top: 48px; max-width: 920px; }
.pastel {
  display: grid; grid-template-columns: 1fr clamp(180px, 30%, 300px);
  min-height: 320px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pastel.green { background: var(--card-green); }
.pastel.peach { background: var(--card-peach); }
.pastel.lavender { background: var(--card-lavender); }
.pastel-text { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pastel-label { font-size: 16px; font-weight: 700; color: var(--success-strong); }
.pastel.peach .pastel-label { color: var(--warning-strong); }
.pastel.lavender .pastel-label { color: #5b21b6; }
@media (prefers-color-scheme: dark) { .pastel.lavender .pastel-label { color: #c4b5fd; } }
.pastel h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pastel p { margin: 0; font-size: 16px; color: var(--text-2); max-width: 30rem; }
.pastel .amount { font-size: clamp(3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--success); }
.pastel .btn { margin-top: auto; }
.pastel-art { position: relative; min-height: 220px; }
.pastel-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-color-scheme: dark) { .pastel-art img { filter: brightness(.82) saturate(.9); } }  /* wie `_Dimmed` */
.pastel .lines { margin-top: 6px; gap: 6px; }
.pastel .lines li { font-size: 15px; grid-template-columns: 20px 1fr; gap: 8px; }
.pastel .lines .ico { width: 20px; height: 20px; color: var(--text-2); }
@media (max-width: 640px) {
  .pastel { grid-template-columns: 1fr; }
  .pastel-art { min-height: 200px; order: -1; }
}

/* Fortschritt bis zur Auszahlungsgrenze */
.progress { width: 100%; max-width: 360px; height: 10px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--success) 20%, transparent); overflow: hidden; margin: 6px 0 2px; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--success); width: var(--p, 75%); transition: width .6s var(--ease); }

/* ---------- In drei Schritten (wie die Anleitung) ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 36px); margin-top: 56px; }
.step { text-align: center; }
.step .phone { max-width: 290px; margin: 0 auto; }
.step-num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary);
  font-weight: 800; font-size: 15px;
  margin: 28px 0 10px;
}
.step h3 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.step p { margin: 6px auto 0; font-size: 16px; max-width: 22rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step .phone { max-width: 260px; }
}

/* ---------- Sperrbildschirm (nachgebaut, Live-Aktivität) ---------- */

.lock-stage {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface-alt);
  padding: clamp(28px, 5vw, 48px) 20px 0;
  overflow: hidden;
}
.lock-stage .phone { max-width: 300px; margin: 0 auto -20%; }
.lock {
  --pt: .239cqw;
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 20% 10%, #1fc2d6 0%, transparent 55%),
    radial-gradient(90% 60% at 90% 80%, #0b4a59 0%, transparent 60%),
    linear-gradient(180deg, #0a6e85, #062a35);
  color: #fff;
  font-family: var(--font);
  text-align: left;
}
.lock-island { position: absolute; top: 2.7cqw; left: 50%; transform: translateX(-50%); width: 29.5cqw; height: 8.6cqw; border-radius: 999px; background: #000; }
.lock-date { text-align: center; margin-top: calc(80 * var(--pt)); font-size: calc(19 * var(--pt)); font-weight: 700; opacity: .9; }
.lock-time { text-align: center; font-size: calc(92 * var(--pt)); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.lock-stack { position: absolute; left: calc(10 * var(--pt)); right: calc(10 * var(--pt)); bottom: calc(86 * var(--pt)); display: grid; gap: calc(8 * var(--pt)); }
.glass { background: #ffffff2e; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: calc(22 * var(--pt)); padding: calc(14 * var(--pt)); }
.glass.solid { background: #0b0f14d1; }
.la-top { display: flex; align-items: center; gap: calc(8 * var(--pt)); font-size: calc(12 * var(--pt)); font-weight: 700; opacity: .85; }
.la-top img { width: calc(18 * var(--pt)); height: calc(18 * var(--pt)); border-radius: calc(5 * var(--pt)); }
.la-main { display: flex; justify-content: space-between; align-items: flex-end; margin-top: calc(8 * var(--pt)); }
.la-main b { font-size: calc(17 * var(--pt)); font-weight: 800; }
.la-eta { text-align: right; }
.la-eta small { display: block; font-size: calc(11 * var(--pt)); opacity: .8; }
.la-eta strong { color: #fff; font-size: calc(26 * var(--pt)); font-weight: 800; line-height: 1; }
.la-eta em { font-style: normal; display: block; color: #fca5a5; font-weight: 800; font-size: calc(13 * var(--pt)); }
.la-track { position: relative; height: calc(6 * var(--pt)); border-radius: 99px; background: #ffffff38; margin-top: calc(12 * var(--pt)); }
.la-track i { position: absolute; inset: 0 38% 0 0; border-radius: inherit; background: #22c3e0; }
.la-track b { position: absolute; left: 62%; top: 50%; transform: translate(-50%, -50%); width: calc(14 * var(--pt)); height: calc(14 * var(--pt)); border-radius: 50%; background: #fff; box-shadow: 0 0 0 calc(3 * var(--pt)) #22c3e0; }
.la-foot { display: flex; justify-content: space-between; margin-top: calc(8 * var(--pt)); font-size: calc(11 * var(--pt)); opacity: .8; }
.la-chip { display: inline-block; margin-top: calc(4 * var(--pt)); padding: calc(2 * var(--pt)) calc(8 * var(--pt)); border-radius: 99px; background: #4ade8040; color: #bbf7d0; font-weight: 800; font-size: calc(11 * var(--pt)); }
.n-title { margin-top: calc(6 * var(--pt)); font-weight: 800; font-size: calc(15 * var(--pt)); }
.n-text { font-size: calc(13 * var(--pt)); opacity: .9; }
.n-actions { display: grid; grid-template-columns: 1fr 1fr; gap: calc(6 * var(--pt)); margin-top: calc(10 * var(--pt)); }
.n-actions span { display: grid; place-items: center; height: calc(34 * var(--pt)); border-radius: calc(12 * var(--pt)); background: #ffffff2e; font-size: calc(13 * var(--pt)); font-weight: 700; }
.lock-home { position: absolute; bottom: calc(8 * var(--pt)); left: 50%; transform: translateX(-50%); width: calc(134 * var(--pt)); height: calc(5 * var(--pt)); border-radius: 99px; background: #fff; }
.line-badge {
  display: inline-grid; place-items: center;
  height: 1.5em; padding: 0 .45em; border-radius: var(--r-xs);
  background: #e2001a; color: #fff;
  font-size: .78em; font-weight: 800; letter-spacing: .02em;
}
.di-float {
  position: absolute; z-index: 2; top: 20px; right: 20px;
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px 0 8px;
  border-radius: var(--r-pill); background: #000; color: #fff;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 16px 36px -16px #0009;
}
.di-float em { font-style: normal; color: #fca5a5; }
@media (max-width: 480px) { .di-float { display: none; } }

/* ---------- Kacheln „Kleine Dinge“ ---------- */

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 48px;
}
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--border);
  padding: 24px;
}
.card .icon-box {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-strong);
  margin-bottom: 16px;
}
.card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.card p { margin: 6px 0 0; font-size: 15.5px; color: var(--text-2); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* ---------- Rechner ---------- */

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; align-items: stretch; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-in { display: grid; gap: 26px; align-content: start; }
.field label { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 700; color: var(--text); }
.field output { font-weight: 800; color: var(--primary-strong); }
.field small { display: block; font-size: 14px; color: var(--text-3); margin-top: 2px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 30px; margin: 6px 0 0;
  background: transparent; cursor: pointer;
  --p: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--primary) var(--p), var(--surface-alt) var(--p));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--surface-alt); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--primary); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%; margin-top: -10px;
  background: #fff; box-shadow: 0 0 0 1px #0000001a, 0 3px 8px #00000033;
}
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 1px #0000001a, 0 3px 8px #00000033; }
input[type="range"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 6px; }

/* Auswahl-Chips wie „Klasse“ in „Meine Daten“ */
.choices { display: flex; gap: 8px; margin-top: 10px; }
.choices button {
  height: 40px; padding: 0 16px;
  border: 0; border-radius: var(--r-pill);
  background: var(--surface-alt); color: var(--text-2);
  font: 700 15px/1 var(--font); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.choices button .ico { width: 18px; height: 18px; display: none; }
.choices button[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-strong); }
.choices button[aria-pressed="true"] .ico { display: block; }

.result { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 100%; }
.result .pastel-label { margin-bottom: 0; }
.rows { width: 100%; margin: 14px 0 0; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--success) 18%, transparent); font-size: 15px; }
.rows dt { color: var(--text-2); }
.rows dd { margin: 0; color: var(--text); font-weight: 700; text-align: right; }
.hint { margin: 10px 0 0; font-size: 15px; color: var(--text); font-weight: 600; }
.note { margin: auto 0 0; padding-top: 16px; font-size: 13px; color: var(--text-3); }

/* ---------- FAQ wie die FAQ-Seite der App ---------- */

.faq { max-width: 48rem; margin: 48px auto 0; padding: 4px 22px; }
.faq details + details { border-top: 1px solid var(--divider); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0;
  font-size: 17px; font-weight: 700; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 6px; }
.faq summary .ico { width: 22px; height: 22px; color: var(--text-3); transition: transform .25s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq .answer { padding: 0 34px 20px 0; font-size: 16px; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- Abschluss ---------- */

.closing {
  text-align: center; color: #fff;
  padding: clamp(80px, 10vw, 120px) 0 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--brand) 9%, var(--brand) 50%, var(--brand-light) 100%);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) { .closing { background: linear-gradient(180deg, var(--bg) 0%, #0b4a59 12%, #0b4a59 50%, #0e7490 100%); } }
.closing h2 { color: #fff; font-size: clamp(2.3rem, 5.5vw, 3.8rem); max-width: 16ch; margin: 0 auto; }
.closing .lede { color: #ffffffe6; margin-inline: auto; }
.closing-phones {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 36px);
  max-width: 820px; margin: 64px auto 0; padding: 0 8px;
  height: clamp(220px, 36vw, 380px); overflow: hidden;
  align-items: start;
}
@media (max-width: 640px) {
  .closing-phones { grid-template-columns: 1fr; max-width: 260px; }
  .closing-phones .phone:not(:nth-child(2)) { display: none; }
}

/* ---------- Footer ---------- */

.footer { padding: 56px 0 40px; font-size: 15px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img { height: 24px; width: auto; }
.footer-brand p { color: var(--text-2); max-width: 22rem; margin: 14px 0 0; }
.footer h4 { font-size: 14px; font-weight: 800; margin: 2px 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--text-2); text-decoration: none; }
.footer ul a:hover { color: var(--text); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--divider);
  color: var(--text-3); font-size: 13px;
}

/* ---------- Rechtliches ---------- */

.legal { padding: 130px 0 96px; }
.legal .wrap { max-width: 46rem; }
.crumbs { font-size: 15px; color: var(--text-3); margin-bottom: 14px; }
.crumbs a { color: var(--text-3); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.legal h2 { font-size: 20px; font-weight: 800; margin: 36px 0 8px; }
.todo { background: var(--warning-soft); color: var(--warning-strong); padding: 1px 6px; border-radius: var(--r-xs); font-size: .92em; font-weight: 600; }

/* ---------- Bewegung ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rise { animation: none; }
}
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }
