/* website/styles.css — Marketing-Website school alarm
 *
 * Ein Design-System, zwei Orte: die Tokens hier sind dieselben wie in
 * school-alarm/public/_theme.css (Nunito, 4pt-Grid, iOS-Radien, Spring-Easings,
 * Signatur-Türkis #0d847b) und die Bühne ist dieselbe wie im Portal
 * (mobile-app/www/portal.css). Wer die App kennt, erkennt die Seite.
 *
 * Ändert sich ein Token in der App, gehört es hier nachgezogen — die Seite
 * liegt bewusst als eigenständige statische Datei außerhalb der App-Bundles,
 * damit sie ohne Node/Build auf jedem Webspace liegen kann.
 */

/* ===========================================================================
   FONT — Nunito Variable, selbst gehostet (OFL, siehe assets/fonts/OFL.txt)
=========================================================================== */
@font-face {
  font-family: "Nunito";
  /* WOFF2 zuerst: dieselbe Schrift wie in der App, nur komprimiert — 101 statt
     269 KB. Die TTF bleibt als Rückfall für sehr alte Browser stehen; geladen
     wird immer nur eine der beiden. */
  src: url("assets/fonts/Nunito-Variable.woff2") format("woff2"),
       url("assets/fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* ===========================================================================
   TOKENS — 1:1 aus _theme.css
=========================================================================== */
:root {
  --font-system:
    "Nunito", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, system-ui, sans-serif;

  /* Typo-Skala (iOS Type Ramp) + Display-Größen für die Seite */
  --text-11: 11px;
  --text-12: 12px;
  --text-13: 13px;
  --text-14: 14px;
  --text-15: 15px;
  --text-17: 17px;
  --text-20: 20px;
  --text-22: 22px;
  --text-28: 28px;
  --text-display: clamp(34px, 6.2vw, 62px);
  --text-section: clamp(26px, 3.6vw, 40px);

  --leading-tight: 1.2;
  --leading-normal: 1.38;
  --leading-body: 1.47;
  --tracking-tight: -0.022em;
  --tracking-normal: -0.01em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* 4pt-Grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radien */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-stage: 22px;  /* Portal-Karte */
  --radius-pill: 9999px;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 0 0 .5px rgba(0,0,0,.04);
  --shadow-md: 0 1px 3px rgba(0,0,0,.06), 0 0 0 .5px rgba(0,0,0,.05);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.05);
  --shadow-popover: 0 8px 24px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.08);
  --shadow-stage: 0 16px 40px rgba(31,89,88,.16);
  --shadow-focus-ring: 0 0 0 3px rgba(13,132,123,.32);

  /* Easings + Dauern */
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-decelerate: cubic-bezier(0, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-snappy: cubic-bezier(.4, .6, .3, 1);
  --ease-out-quint: cubic-bezier(.22, 1, .36, 1);
  --dur-120: 120ms;
  --dur-200: 200ms;
  --dur-250: 250ms;
  --dur-400: 400ms;
  --dur-700: 700ms;

  /* iOS System-Colors — für die Feature-Symbole, gleiche Palette wie die App */
  --system-blue: #007aff;
  --system-red: #ef4444;
  --system-green: #16813e;
  --system-orange: #ff9500;
  --system-yellow: #ffcc00;
  --system-purple: #af52de;
  --system-pink: #ec4899;
  --system-indigo: #6366f1;
  --system-cyan: #06b6d4;
  --system-lime: #65a30d;

  /* Marke — ein Türkis für alles (weiß darauf 4.56:1) */
  --brand: #0d847b;
  --brand-strong: #0b6f68;
  --brand-deep: #095d56;
  --brand-dark: #095d56;
  --brand-ink: #0b6f68;
  --brand-press: #0b6f68;
  --brand-tint: rgba(13,132,123,.14);
  --brand-tint-strong: rgba(13,132,123,.26);
  --on-brand: #ffffff;
  --on-brand-soft: rgba(255,255,255,.9);

  /* Semantisch — Light (Default) */
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --fg: #1c1c1e;
  --fg-secondary: rgba(60,60,67,.60);
  --card: #ffffff;
  --muted: rgba(60,60,67,.72);
  /* Leiser als --muted wirkt, aber messbar über 4.5:1 — --fg-secondary (.60)
     kam auf der Seitenfläche nur auf 3.3:1 und fiel im axe-Lauf durch. */
  --fg-quiet: rgba(60,60,67,.78);
  --separator: rgba(60,60,67,.12);
  --border: var(--separator);
  --control-fill: rgba(120,120,128,.08);
  --control-fill-strong: rgba(120,120,128,.12);

  /* Layout */
  --wrap: 1140px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 116px);
  --topbar-h: 62px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-system);
  font-size: var(--text-17);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-bold);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
/* ol muss mit: die Ablauf-Sektion nutzt eine geordnete Liste und stand
   sonst mit 40px Einzug und Dezimal-Markern neben dem Rest der Seite. */
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
.stage :focus-visible { outline-color: #fff; }

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

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -160%);
  z-index: 200;
  background: var(--card);
  color: var(--fg);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
  font-weight: var(--weight-bold);
  font-size: var(--text-14);
  transition: transform var(--dur-200) var(--ease-decelerate);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ===========================================================================
   LOGO — Maske statt <img>: die Farbe folgt currentColor und lässt sich
   animieren. Der Schriftzug kommt IMMER aus der Vektordatei, nie als
   gesetzter Text (die Logo-Schrift ist nicht Nunito).
=========================================================================== */
.mark, .wordmark {
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
  transition: background-color var(--dur-250) var(--ease-standard);
}
.mark {
  -webkit-mask-image: url("assets/icons/logo-mark.svg");
  mask-image: url("assets/icons/logo-mark.svg");
  aspect-ratio: 1130 / 1225;
}
.wordmark {
  -webkit-mask-image: url("assets/icons/logo-wordmark.svg");
  mask-image: url("assets/icons/logo-wordmark.svg");
  aspect-ratio: 1177 / 635;
}
/* Lockup: beide Teile werden über die HÖHE bemessen, nicht über die Breite —
   nur so steht die Glocke exakt so hoch wie der Schriftzug. Die Breite fällt
   aus dem jeweiligen Seitenverhältnis. */
.lockup { display: flex; align-items: center; gap: .34em; }
.lockup .mark,
.lockup .wordmark { height: 1em; width: auto; }

/* ===========================================================================
   TOPBAR — dieselbe Anatomie wie die App-Topbar: Glocke links, Aktionen
   rechts, Hairline unten. Über der Bühne transparent, danach als Fläche.
=========================================================================== */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  color: var(--on-brand);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur-250) var(--ease-standard),
    color var(--dur-250) var(--ease-standard),
    border-color var(--dur-250) var(--ease-standard),
    box-shadow var(--dur-250) var(--ease-standard);
}
.topbar.is-stuck {
  /* Deckend statt weichgezeichnet: ein backdrop-filter auf einem fixierten
     Element laesst den Compositor bei JEDEM Scroll-Frame den Untergrund neu
     filtern — die haeufigste Ursache fuer stockendes Scrollen. */
  background: var(--card);
  color: var(--fg);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.topbar-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
}
.topbar-brand { font-size: 38px; }   /* 1em = Höhe des Lockups */
.topbar.is-stuck .topbar-brand { color: var(--brand-ink); }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.topbar-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-14);
  font-weight: var(--weight-semibold);
  transition: background-color var(--dur-120) var(--ease-standard);
}
.topbar-nav a:hover { background: rgba(255,255,255,.18); }
.topbar.is-stuck .topbar-nav a:hover { background: var(--control-fill); }
/* Wo man gerade steht — sonst verliert man auf einer langen Seite die Spur. */
.topbar-nav a[aria-current="true"] { background: rgba(255,255,255,.22); }
.topbar.is-stuck .topbar-nav a[aria-current="true"] {
  background: var(--brand-tint);
  color: var(--brand-ink);
}

.topbar-actions { display: flex; align-items: center; gap: var(--space-2); }
/* Über der Bühne trug der gefüllte Knopf die Markenfarbe — auf der Marke.
   Er verschwand darin. Solange die Leiste transparent ist, dreht er sich um:
   weiße Fläche, Text im tiefen Markenton (7.7:1). */
/* Im Kopf ohne weiten Schatten — der lag als Hof unter der Leiste. */
.topbar .btn-primary { box-shadow: 0 1px 2px rgba(0,0,0,.10); }
.topbar:not(.is-stuck) .btn-primary {
  background: #fff;
  color: var(--brand-deep);
}
.topbar:not(.is-stuck) .btn-primary:hover { background: #eefaf8; }


/* Scroll-Fortschritt in Markenfarbe */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 101;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand), #4fc3b8);
  pointer-events: none;
  will-change: transform;
}

/* ===========================================================================
   BUTTONS — Maße und Verhalten aus _components.css
=========================================================================== */
.btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 20px;
  min-height: 46px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: var(--text-15);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  background: transparent;
  color: var(--fg);
  transition:
    transform var(--dur-120) var(--ease-snappy),
    background-color var(--dur-200) var(--ease-standard),
    box-shadow var(--dur-200) var(--ease-standard),
    opacity var(--dur-120) var(--ease-standard);
}
.btn:active { transform: scale(.97); opacity: .92; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(13,132,123,.32);
}
.btn-primary:hover { background: var(--brand-press); }

.btn-secondary {
  background: var(--control-fill);
  color: var(--fg);
}
.btn-secondary:hover { background: var(--control-fill-strong); }

/* Auf farbigem Grund (Bühne, Kontaktkarte): heller Knopf auf Türkis */
.stage .btn-primary,
.contact-card .btn-primary {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 10px 30px rgba(4,44,41,.28);
}
.stage .btn-primary:hover,
.contact-card .btn-primary:hover { background: #eefaf8; }
.stage .btn-secondary,
.contact-card .btn-secondary {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.34);
}
.stage .btn-secondary:hover,
.contact-card .btn-secondary:hover { background: rgba(255,255,255,.24); }

.btn-sm { min-height: 38px; padding: 0 14px; font-size: var(--text-14); border-radius: var(--radius-md); }

/* ===========================================================================
   KARTE + Abschnitts-Typografie
=========================================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

section { position: relative; }
.section { padding-block: var(--section-y); }
/* Abschnitt schließt direkt an den vorherigen an — der bringt seinen Abstand
   schon mit.

   ACHTUNG, das gilt nur, solange der vorherige Abschnitt KEINE eigene Fläche
   hat. `.channels` trägt einen weißen Grund mit Rahmen; dessen padding-bottom
   liegt damit innerhalb dieser Fläche und wird nie zum Abstand zwischen den
   Abschnitten. Nach einem `.channels`-Abschnitt darf `--tight` deshalb nicht
   stehen — der nächste Abschnitt klebte sonst an der Kante des weißen Blocks.
   Genau das war beim Kontakt-Kasten der Fall: oben 0 Pixel Luft, unten 90. */
.section--tight { padding-top: 0; }

/* Kontakt: halbe Abschnittsluft, oben wie unten. Der Kasten bringt mit seinem
   Innenabstand schon einen Rand mit, und direkt darunter beginnt die Fußzeile
   — die volle Höhe ließ ihn zwischen beidem verloren stehen. Über `calc` auf
   das Token statt als fester Wert, damit der Abstand mit dem `clamp()` in
   `--section-y` weiter mitwächst. */
.section--contact { padding-block: calc(var(--section-y) / 2); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 52px); }
h2.section-title { font-size: var(--text-section); }
.section-lead {
  margin-top: var(--space-4);
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  line-height: var(--leading-body);
}

/* ===========================================================================
   BÜHNE — derselbe Verlauf wie das Portal der Store-App
=========================================================================== */
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--topbar-h) + clamp(28px, 5vw, 62px));
  padding-bottom: clamp(52px, 7vw, 88px);
  color: var(--on-brand);
  /* Wortgleich mit mobile-app/www/portal.css: reine Markenfarbe oben, zum
     tieferen Ton hin auslaufend. Keine Overlays — jede zusätzliche Fläche
     würde das Türkis verfälschen. */
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand) 8%, var(--brand-deep) 100%);
}

.stage-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
/* Fehlerseite füllt den Schirm — sonst stünde unter der Bühne ein grauer
   Streifen ohne Inhalt. */
.stage--full {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  padding-block: var(--space-16);
}
/* Fehlerseite: eine Spalte, mittig — dort gibt es keine Geräte-Attrappe. */
.stage-inner--single { grid-template-columns: 1fr; text-align: center; place-items: center; }
.stage-inner--single .stage-brand { justify-content: center; }
.stage-inner--single .stage-sub { margin-inline: auto; }
.stage-inner--single .stage-cta { justify-content: center; }

.stage-brand { font-size: clamp(52px, 6.4vw, 76px); margin-bottom: var(--space-6); }

.stage h1 {
  font-size: var(--text-display);
  letter-spacing: -0.03em;
}
.stage h1 .accent {
  display: block;
  color: rgba(255,255,255,.72);
}
.stage-sub {
  margin-top: var(--space-5);
  max-width: 46ch;
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: var(--weight-semibold);
  color: var(--on-brand-soft);
  line-height: 1.5;
}
.stage-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.stage-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-6);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  font-size: var(--text-13);
  font-weight: var(--weight-semibold);
}
.live-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #7ff0d8;
  flex: 0 0 auto;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #7ff0d8;
  animation: ping 2s var(--ease-decelerate) infinite;
}
@keyframes ping {
  0%   { transform: scale(.6); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ===========================================================================
   TELEFON — Nachbau der App-Startseite

   Vorlage ist der Simulator-Screenshot der laufenden App: Topbar mit
   Schul-Kürzel, „Infos" und „Schule wechseln"; Alarm als doppelt hohe Karte;
   „Erweiterter Alarm" in Markenfarbe (infoButtonBlue) mit Chevron; vier
   Schnell-Auslöse-Buttons; Mikro-Bubble; schwebende Tab-Bar mit vier Zielen.
   Die Statuskarte erscheint erst bei laufendem Alarm — im Ruhezustand blendet
   _alarm-state-box.js sie aus.
=========================================================================== */
.phone-col { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 300 / 634;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2b3a39, #101d1c);
  box-shadow:
    0 40px 80px rgba(3, 40, 37, .45),
    0 0 0 1px rgba(255,255,255,.10) inset;
  transform: rotate(-1.4deg);
}
.phone-screen {
  /* Der Screen zeigt die App im hellen Erscheinungsbild — unabhängig davon,
     in welchem die Website gerade läuft. */
  --scr-bg: #ffffff;
  --scr-fg: #1c1c1e;
  --scr-fill: rgba(120,120,128,.10);
  --scr-border: rgba(60,60,67,.12);
  /* Symbolfarbe der Schnell-Auslöse-Buttons. In der App ist das --cab-tint,
     die pro Knopf gewählte Akzentfarbe; die Standardbelegung nutzt den
     neutralen Ton --accent-gray. Das Etikett bleibt dunkel und lesbar. */
  --scr-icon: #8e8e93;
  --scr-muted: #4a4a4f;
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--scr-bg);
  color: var(--scr-fg);
  transition: background-color var(--dur-400) var(--ease-standard);
}
/* Voll-Tint wie body.sa-alarm-alarm / .sa-alarm-ok (_topbar.js) */
.phone.is-alarm .phone-screen { --scr-bg: #f5c2c2; }
.phone.is-clear .phone-screen { --scr-bg: #bedcc9; }

/* --- iOS-Statusleiste ---------------------------------------------------- */
.scr-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
/* Nur die Batterie: Netz- und WLAN-Balken lenkten in der kleinen Attrappe
   mehr ab, als sie zur Wirkung beitrugen. */
.scr-status-icons { display: flex; align-items: center; opacity: .8; }
.scr-status-icons i.bat {
  position: relative;
  width: 15px; height: 7.5px;
  border: 1.2px solid currentColor;
  border-radius: 2.5px;
  background: none;
}
.scr-status-icons i.bat::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 1px;
  background: currentColor;
}
.scr-status-icons i.bat::after {
  content: "";
  position: absolute;
  right: -3px; top: 2px;
  width: 1.5px; height: 3px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
}

/* --- Topbar -------------------------------------------------------------- */
.scr-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 9px;
  border-bottom: 1px solid var(--scr-border);
  flex-shrink: 0;
}
.scr-top .mark { width: 17px; color: var(--scr-fg); flex: 0 0 auto; }
.scr-school {
  font-size: 10.5px;
  font-weight: 600;
  font-style: italic;
  color: var(--scr-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: auto;
}
.scr-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--scr-fill);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}
.scr-top-btn svg { width: 10px; height: 10px; color: var(--brand); }
/* FEAT-006: Während eines Alarms mit Standort wird „Schule wechseln" zu
   „Wo ist der Alarm?" — rot, fett, sanft pulsierend (siehe _topbar.css). */
.phone.is-alarm .scr-top-btn--geo {
  /* Einen Tick dunkler als --dangerBg (#ef4444): der Chip trägt in der
     verkleinerten Attrappe nur 9px, und weiß darauf käme auf 3.76:1. #d92828
     bringt 4.90:1 bei praktisch gleichem Farbeindruck. Der große Alarm-Knopf
     bleibt beim Original-Rot — dort zählt die Large-Text-Schwelle. */
  background: #d92828;
  color: #fff;
  font-weight: 700;
  letter-spacing: -.012em;
  animation: geo-pulse 1.6s ease-in-out infinite;
}
@keyframes geo-pulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.12); }
}

/* --- Inhalt -------------------------------------------------------------- */
.scr-body {
  flex: 1;
  min-height: 0;
  padding: 9px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Statuskarte (#alarm-state-box) — nur bei laufendem Alarm */
.scr-state {
  flex-shrink: 0;
  border-radius: 11px;
  border: 1px solid var(--scr-border);
  background: #fff;
  padding: 8px 10px;
  text-align: left;
  display: none;
}
.phone.is-alarm .scr-state,
.phone.is-clear .scr-state { display: block; animation: pop-in .34s var(--ease-spring) both; }
.scr-state-title { font-size: 11.5px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 2px; }
.scr-state-row { font-size: 9.5px; font-weight: 500; line-height: 1.35; }
.scr-state-foot { margin-top: 4px; font-size: 8.5px; font-weight: 500; color: var(--scr-muted); }

/* Alarm-Grid */
.scr-actions { display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; }
.scr-btn {
  position: relative;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: -.015em;
  color: #fff;
  overflow: hidden;
  transition: transform var(--dur-200) var(--ease-spring);
}
/* Doppelt hoch — .sa-alarm-grid-tall in der App */
.scr-alarm {
  min-height: 92px;
  font-size: 21px;
  background: #ef4444;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 16px rgba(239,68,68,.22);
}
.scr-clear {
  min-height: 44px;
  font-size: 17px;
  background: #16813e;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 16px rgba(22,129,62,.22);
  display: none;
}
.phone.is-alarm .scr-clear,
.phone.is-clear .scr-clear { display: flex; animation: pop-in .34s var(--ease-spring) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }

/* Erweiterter Alarm — .btn-info-blue: Markenfarbe, weißer Text, Chevron */
.scr-more {
  min-height: 46px;
  font-size: 15px;
  background: var(--brand);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 14px rgba(13,132,123,.22);
}
.scr-chevron {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  opacity: .7;
}

.phone.is-pressing .scr-alarm { transform: scale(.98); }
.scr-ripple {
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  opacity: 0;
  pointer-events: none;
}
.phone.is-pressing .scr-ripple { animation: ripple .62s var(--ease-decelerate) forwards; }
@keyframes ripple {
  from { opacity: .7; transform: scale(1); }
  to   { opacity: 0;  transform: scale(24); }
}

/* Schnell-Auslöse-Buttons — .custom-alarm-buttons-grid, vier Spalten */
.scr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex-shrink: 0; }
.scr-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 3px;
  min-height: 56px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--scr-fill);
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}
.scr-tile svg { width: 18px; height: 18px; color: var(--scr-icon); }

/* Mikro-Bubble (_voice-bubble.css) — mittig wie im Auslieferungszustand der
   App: dort startet sie unten in der Mitte und ist von dort verschiebbar. */
.scr-bubble {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 78px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--scr-border);
  background: #fff;
  color: var(--scr-fg);
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
}
.scr-bubble svg { width: 18px; height: 18px; }
.scr-bubble::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  opacity: 0;
  animation: bubble-pulse 2.8s var(--ease-decelerate) infinite;
  animation-delay: 1.2s;
}
/* Eigener Takt statt des kräftigen `ping` aus der Bühne: die Blase soll
   atmen, nicht auf das Doppelte anwachsen. */
@keyframes bubble-pulse {
  0%   { transform: scale(.94); opacity: .4; }
  100% { transform: scale(1.2);  opacity: 0; }
}

/* Tab-Bar (_layout.css) — schwebende Pille, vier Ziele, aktiver Unterstrich */
.scr-tabbar {
  position: absolute;
  left: 9px; right: 9px;
  bottom: 8px;
  height: 52px;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 4px 5px;
  border-radius: 15px;
  border: 1px solid var(--scr-border);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.08);
}
.scr-tab {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding-bottom: 7px;
  color: var(--scr-muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.scr-tab svg { width: 17px; height: 17px; }
.scr-tab.is-active { color: var(--brand); }
.scr-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 12px; height: 2px;
  border-radius: 999px;
  background: currentColor;
}

/* --- Zustell-Karten ----------------------------------------------------- */
.deliveries {
  position: absolute;
  left: 50%;
  /* Auf schmalen Schirmen liegen die Karten im freien Feld zwischen
     Schnellwahl und Tab-Bar — dort verdecken sie nichts Wesentliches. */
  bottom: 22%;
  width: max-content;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transform: translateX(-48%);
  pointer-events: none;
  z-index: 3;
}
@media (min-width: 900px) {
  /* Mittlere Breiten: die Karten treten seitlich aus und liegen im freien
     Feld zwischen Schnellwahl und Tab-Bar. */
  .deliveries { left: auto; right: -58px; bottom: 20%; transform: none; align-items: flex-end; gap: 7px; }
  .delivery:nth-child(1) { margin-right: 16px; }
  .delivery:nth-child(2) { margin-right: 5px; }
  .delivery:nth-child(4) { margin-right: -9px; }
}
/* Breite Schirme: das Telefon rückt in seiner Spalte nach links, die Karten
   stehen als saubere Liste daneben — kein Überlappen mehr, jede Zeile mit
   einem kurzen Anschluss zum Gerät. */
@media (min-width: 1120px) {
  .phone-col { justify-content: flex-start; }
  .deliveries {
    left: 100%;
    right: auto;
    top: 46%;
    bottom: auto;
    margin-left: 26px;
    transform: translateY(-50%);
    align-items: flex-start;
    gap: 10px;
  }
  .delivery:nth-child(n) { margin-right: 0; }
  .delivery {
    padding: 8px 12px;
    font-size: var(--text-12);
  }
  /* Anschlussstrich zum Telefon */
  .delivery::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: rgba(255,255,255,.42);
  }
  .delivery { position: relative; }
}
.delivery {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.96);
  color: #12403c;
  font-size: var(--text-12);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(3,40,37,.28);
  opacity: 0;
  transform: translateY(10px) scale(.94);
}
.delivery svg { width: 15px; height: 15px; color: var(--brand); }
.delivery.is-in { animation: fly-in .5s var(--ease-spring) forwards; }
.delivery.is-out { animation: fly-out .35s ease-in forwards; }
@keyframes fly-in  { to { opacity: 1; transform: none; } }
@keyframes fly-out { to { opacity: 0; transform: translateY(-8px) scale(.96); } }
.delivery .tick {
  margin-left: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--system-green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
}

/* ===========================================================================
   VERTRAUENSLEISTE — läuft als endloses Band
=========================================================================== */
.trust {
  border-block: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  padding-block: var(--space-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trust-track {
  display: flex;
  width: max-content;
  gap: clamp(24px, 4vw, 56px);
  animation: marquee 34s linear infinite;
  /* Eigene Ebene: die Bewegung laeuft dann im Compositor statt im Haupt-Thread. */
  will-change: transform;
}
.trust:hover .trust-track { animation-play-state: paused; }
/* Ausserhalb des Sichtfelds steht das Band still — app.js setzt die Klasse.
   Ein Laufband, das man nicht sieht, muss nicht gerechnet werden. */
.trust.is-off .trust-track { animation-play-state: paused; will-change: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-14);
  font-weight: var(--weight-bold);
  color: var(--muted);
  white-space: nowrap;
}
.trust-item svg { width: 17px; height: 17px; color: var(--brand-ink); flex: 0 0 auto; }

/* ===========================================================================
   FEATURE-RASTER
=========================================================================== */
.grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
}
.feature {
  position: relative;
  overflow: hidden;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-250) var(--ease-out-quint),
    box-shadow var(--dur-250) var(--ease-standard),
    border-color var(--dur-250) var(--ease-standard);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}
/* Weicher Lichtschein, der dem Zeiger folgt (Koordinaten aus app.js) */
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), var(--brand-tint), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-250) var(--ease-standard);
  pointer-events: none;
  /* content-box statt der ganzen Karte neu zeichnen */
  contain: paint;
}
.feature:hover::before { opacity: 1; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--brand-tint);
  color: var(--brand-ink);
  transition: transform var(--dur-250) var(--ease-spring);
}
.feature:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: var(--text-17); margin-bottom: var(--space-2); }
.feature p { font-size: var(--text-14); color: var(--muted); line-height: 1.55; }
/* Ein Ton für alle Symbole: das Signatur-Türkis. Bunte Kacheln zogen den
   Blick auf die Symbole statt auf die Überschriften — und ein zweites
   Farbsystem neben der Marke gibt es in diesem Design nicht. */

/* ===========================================================================
   KANÄLE — ein Alarm, vier Wege
=========================================================================== */
.channels { background: var(--card); border-block: 1px solid var(--border); }
.fan {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.fan-source {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--brand), var(--brand-deep));
  color: #fff;
  text-align: center;
  padding: var(--space-6);
  box-shadow: 0 18px 40px rgba(9,93,86,.28);
  overflow: hidden;
}
.fan-source .mark { width: 54px; margin: 0 auto var(--space-3); }
.fan-source strong { display: block; font-size: var(--text-20); }
.fan-source span { font-size: var(--text-13); color: var(--on-brand-soft); font-weight: 600; }
.fan-source .wave {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 100px; height: 100px;
  margin: -50px 0 0 -50px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  opacity: 0;
  animation: wave 3.2s var(--ease-decelerate) infinite;
}
.fan-source .wave:nth-child(2) { animation-delay: 1.05s; }
.fan-source .wave:nth-child(3) { animation-delay: 2.1s; }
@keyframes wave {
  0%   { transform: scale(.5); opacity: .65; }
  100% { transform: scale(3.6); opacity: 0; }
}
.fan-targets { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* Zwei mal zwei statt drei plus einer: die vier Wege sind gleichrangig und
   sollen auch so aussehen. */
@media (min-width: 981px) { .fan-targets { grid-template-columns: repeat(2, 1fr); } }
.channel {
  position: relative;
  display: flex;
  /* Mittig statt oben: die Karten sind im Raster gleich hoch, der Text aber
     mal zwei- mal dreizeilig. Oben bündig hing der Inhalt kürzerer Karten
     am Deckel und ließ unten Luft. */
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.channel-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.channel-icon svg { width: 19px; height: 19px; }
.channel h3 { font-size: var(--text-15); margin-bottom: 2px; }
.channel p { font-size: var(--text-13); color: var(--muted); line-height: 1.5; }
/* Ein Lichtstrich läuft durch die Karte, wenn der Alarm „ankommt" */
.channel::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--brand-tint), transparent);
  transform: translateX(0);
  opacity: 0;
}
.channel.is-hit::after { animation: sweep .9s var(--ease-standard); }
@keyframes sweep {
  0%   { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(360%); }
}

/* ===========================================================================
   SICHERHEIT — zweispaltig mit Prüfliste
=========================================================================== */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 60px);
  /* Mittig statt oben bündig: die Prüfliste links ist deutlich höher als
     Nutzlast und Hinweis rechts — oben bündig ließ die rechte Spalte oben
     kleben und unten ein großes Loch. */
  align-items: center;
}
.checklist { display: grid; gap: var(--space-3); }
.check {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color var(--dur-200) var(--ease-standard), transform var(--dur-200) var(--ease-out-quint);
}
.check:hover { border-color: color-mix(in srgb, var(--brand) 34%, transparent); transform: translateX(3px); }
.check-mark {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
}
.check-mark svg { width: 13px; height: 13px; }
.check strong { display: block; font-size: var(--text-15); margin-bottom: 2px; }
.check span { font-size: var(--text-13); color: var(--muted); line-height: 1.5; }

/* Code-Karte für die Webhook-Nutzlast */
.code {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1f1e;
  box-shadow: var(--shadow-lg);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: var(--text-12);
  font-weight: 700;
  color: rgba(255,255,255,.62);
}
.code-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: #d7e7e5;
  tab-size: 2;
}
.code .k { color: #7ddad0; }
.code .s { color: #f0c48a; }
.code .p { color: rgba(215,231,229,.45); }

/* Rechtlicher Hinweis unter der Nutzlast */
.legal-note { margin-top: var(--space-4); }
.legal-note h3 { font-size: var(--text-15); margin-bottom: var(--space-2); }
.legal-note p { font-size: var(--text-14); color: var(--muted); line-height: 1.55; }
.legal-note strong { color: var(--fg); }

/* Verweis im Fließtext */
.link { color: var(--brand-ink); font-weight: var(--weight-bold); }
.link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ===========================================================================
   PLATTFORMEN
=========================================================================== */
.platforms { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* Gleiche Kartensprache wie .feature: Symbol oben links, Text darunter.
   Zentrierte Kacheln neben linksbündigen sahen aus wie zwei Bausätze. */
.platform {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform var(--dur-250) var(--ease-out-quint), box-shadow var(--dur-250) var(--ease-standard);
}
.platform:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.platform-icon {
  width: 46px; height: 46px;
  margin: 0 0 var(--space-4);
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.platform-icon svg { width: 23px; height: 23px; }
/* Apple- und Android-Marke sind Flächen, keine Strichzeichnungen. Etwas
   kleiner gesetzt, damit sie neben den Lucide-Symbolen nicht schwerer wirken. */
.platform-icon svg.is-mark { width: 20px; height: 20px; }
.platform h3 { font-size: var(--text-17); margin-bottom: var(--space-2); }
.platform p { font-size: var(--text-14); color: var(--muted); line-height: 1.55; }

/* ===========================================================================
   UPDATES — Zeitstrahl
=========================================================================== */
.timeline { position: relative; display: grid; gap: var(--space-6); padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 12%, transparent));
  border-radius: 2px;
}
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--brand);
  transition: transform var(--dur-250) var(--ease-spring);
}
/* Nur der oberste Eintrag des Strahls trägt den Ring. Ohne den
   Kind-Kombinator bekäme ihn auch der erste Eintrag im aufgeklappten
   <details> — dann leuchteten zwei Punkte als „der neueste". */
.timeline > .tl-item:first-child::before { box-shadow: 0 0 0 5px var(--brand-tint); }
.tl-item:hover::before { transform: scale(1.2); }
.tl-date {
  font-size: var(--text-12);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.tl-title { font-size: var(--text-17); margin: 4px 0 var(--space-3); }
.tl-list { display: grid; gap: 6px; }
.tl-list li {
  position: relative;
  padding-left: 18px;
  font-size: var(--text-14);
  color: var(--muted);
  line-height: 1.5;
}
/* Ältere Einträge — derselbe <details>-Baustein wie bei den häufigen Fragen,
   nur leiser: hier ist es ein Bedienelement im Zeitstrahl, keine Karte. Der
   Punkt am Strahl bleibt den echten Einträgen vorbehalten, deshalb trägt das
   <details> selbst kein ::before. Fokus kommt aus der globalen
   :focus-visible-Regel. */
.tl-more > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: var(--text-14);
  font-weight: var(--weight-bold);
  color: var(--brand-ink);
  cursor: pointer;
  list-style: none;
}
.tl-more > summary::-webkit-details-marker { display: none; }
.tl-more > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur-250) var(--ease-spring);
}
.tl-more[open] > summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.tl-more > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Der Abstand zwischen den Einträgen kommt sonst aus dem grid-gap der
   .timeline — im <details> sind sie keine Rasterkinder mehr. */
.tl-more-body { display: grid; gap: var(--space-6); padding-top: var(--space-6); }

.tl-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 55%, transparent);
}

/* ===========================================================================
   HÄUFIGE FRAGEN — <details>, damit es ohne JavaScript funktioniert
=========================================================================== */
/* Zwei Spalten ab Tablet: Überschrift links, Fragen rechts. Als schmale
   Spalte allein blieb die rechte Seitenhälfte leer und sah unfertig aus. */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq-layout .section-head { margin-bottom: 0; }
.faq { display: grid; gap: var(--space-3); }
@media (max-width: 880px) {
  .faq-layout { grid-template-columns: 1fr; gap: clamp(24px, 5vw, 40px); }
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--dur-200) var(--ease-standard);
}
.faq-item[open] { border-color: color-mix(in srgb, var(--brand) 34%, transparent); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-17);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--brand-ink);
  border-bottom: 2px solid var(--brand-ink);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur-250) var(--ease-spring);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-item summary:hover { background: var(--control-fill); }
.faq-answer {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-15);
  color: var(--muted);
  line-height: 1.6;
}
.faq-item[open] .faq-answer { animation: faq-in .28s var(--ease-out-quint); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ===========================================================================
   KONTAKT + FOOTER
=========================================================================== */
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: clamp(var(--radius-xl), 3vw, 30px);
  padding: clamp(32px, 5vw, 64px);
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 22px 50px rgba(9,93,86,.30);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 120%;
  background: radial-gradient(closest-side, rgba(255,255,255,.12), transparent);
  animation: contact-drift 18s var(--ease-standard) infinite alternate;
  pointer-events: none;
}
@keyframes contact-drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(3vw, 4vh, 0) scale(1.1); }
}
.contact-card h2 { font-size: var(--text-section); position: relative; }
.contact-card p { position: relative; margin: var(--space-4) auto 0; max-width: 52ch; color: var(--on-brand-soft); font-weight: 600; }
.contact-actions { position: relative; display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-8); }

.footer {
  padding-block: var(--space-10) var(--space-8);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  justify-content: space-between;
}
.footer-brand { color: var(--brand-ink); font-size: 40px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: var(--text-14);
  font-weight: var(--weight-semibold);
}
.footer-nav a { color: var(--muted); transition: color var(--dur-120) var(--ease-standard); }
.footer-nav a:hover { color: var(--brand-ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.footer-links button, .footer-links a {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--text-14);
  font-weight: var(--weight-semibold);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color var(--dur-120) var(--ease-standard), background-color var(--dur-120) var(--ease-standard);
}
.footer-links button:hover, .footer-links a:hover { color: var(--fg); background: var(--control-fill); }
.footer-note {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  font-size: var(--text-13);
  color: var(--fg-quiet);
}

/* ===========================================================================
   EINWILLIGUNG — bewusst nicht modal: die Seite bleibt lesbar, und die
   Entscheidung lässt sich später über die Fußzeile wieder ändern.
=========================================================================== */
.consent {
  position: fixed;
  left: 50%;
  bottom: clamp(12px, 3vw, 24px);
  z-index: 150;
  width: min(560px, calc(100vw - 24px));
  transform: translateX(-50%);
}
.consent[hidden] { display: none; }
.consent-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-popover);
  padding: var(--space-5);
  animation: consent-in .34s var(--ease-out-quint) both;
}
@keyframes consent-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.consent-title {
  font-size: var(--text-17);
  margin-bottom: var(--space-2);
}
.consent-text {
  font-size: var(--text-14);
  color: var(--muted);
  line-height: 1.55;
}
/* Sieht aus wie ein Verweis, ist aber ein Knopf — er öffnet den Dialog. */
.consent-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: var(--brand-ink);
  font-weight: var(--weight-bold);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
/* Beide Knöpfe gleich breit: Ablehnen darf nicht unscheinbarer wirken als
   Zustimmen, sonst ist die Einwilligung nicht freiwillig. */
.consent-actions .btn { flex: 1 1 0; min-width: 130px; }

@media (max-width: 480px) {
  .consent { left: 12px; right: 12px; width: auto; transform: none; }
}

/* ===========================================================================
   DIALOG — Rechtstexte, in der Sheet-Optik der App
=========================================================================== */
dialog.sheet {
  width: min(640px, calc(100vw - 32px));
  max-height: min(80vh, 760px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--shadow-popover);
  overflow: hidden;
}
dialog.sheet::backdrop { background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* Ohne JavaScript öffnet der Anker den Text trotzdem — Rechtstexte müssen
   erreichbar bleiben, auch wenn ein Skript blockiert wird. */
dialog.sheet:target {
  display: block;
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 300;
}
dialog.sheet[open] { animation: sheet-in .28s var(--ease-out-quint); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.sheet-head h2 { font-size: var(--text-20); margin-right: auto; }
.sheet-close {
  appearance: none;
  border: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--control-fill);
  color: var(--fg);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur-120) var(--ease-standard), transform var(--dur-120) var(--ease-snappy);
}
.sheet-close:hover { background: var(--control-fill-strong); }
.sheet-close:active { transform: scale(.94); }
.sheet-body { padding: var(--space-5); overflow-y: auto; max-height: calc(80vh - 84px); }
.sheet-body p { margin-bottom: var(--space-4); font-size: var(--text-15); color: var(--muted); line-height: 1.6; }
.sheet-body p strong { color: var(--fg); }
.sheet-body h3 { font-size: var(--text-15); margin: var(--space-5) 0 var(--space-2); }
.sheet-body a { color: var(--brand-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ===========================================================================
   SCROLL-EINBLENDUNG
=========================================================================== */
/* Gestaffeltes Einblenden ohne style-Attribute: die Verzögerung kommt aus der
   Position im Container. Das erlaubt eine strikte CSP ohne
   style-src 'unsafe-inline' — dieselbe Linie wie in der App. */
.stagger > *:nth-child(2)  { --delay: 60ms; }
.stagger > *:nth-child(3)  { --delay: 120ms; }
.stagger > *:nth-child(4)  { --delay: 180ms; }
.stagger > *:nth-child(5)  { --delay: 240ms; }
.stagger > *:nth-child(n+6) { --delay: 300ms; }

.sprite { position: absolute; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-700) var(--ease-out-quint),
    transform var(--dur-700) var(--ease-out-quint);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Bühnen-Auftritt — dieselbe Kurve wie portal-in */
.stage-anim > * { animation: stage-in .6s var(--ease-out-quint) both; }
.stage-anim > *:nth-child(1) { animation-delay: .05s; }
.stage-anim > *:nth-child(2) { animation-delay: .12s; }
.stage-anim > *:nth-child(3) { animation-delay: .19s; }
.stage-anim > *:nth-child(4) { animation-delay: .26s; }
.stage-anim > *:nth-child(5) { animation-delay: .33s; }
.stage-anim > *:nth-child(6) { animation-delay: .40s; }
@keyframes stage-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.phone-wrap { animation: phone-in .8s var(--ease-out-quint) .28s both; }
@keyframes phone-in { from { opacity: 0; transform: translateY(28px) rotate(2deg) scale(.96); } to { opacity: 1; transform: none; } }

/* ===========================================================================
   RESPONSIVE
=========================================================================== */
@media (max-width: 980px) {
  .stage-inner { grid-template-columns: 1fr; text-align: center; }
  .stage-brand { justify-content: center; }
  .stage-sub { margin-inline: auto; }
  .stage-cta { justify-content: center; }
  .stage-brand { justify-content: center; }
  .phone-col { order: 2; margin-top: var(--space-6); }
  .fan { grid-template-columns: 1fr; }
  .fan-source { aspect-ratio: auto; min-height: 168px; padding: var(--space-6) var(--space-5); }
  .fan-source .mark { width: 36px; margin-bottom: var(--space-2); }
}
@media (max-width: 760px) {
  :root { --topbar-h: 56px; }
  .topbar-nav { display: none; }

  /* Auf einer Spalte wirkt gemischte Ausrichtung unruhig: Überschriften,
     Kachel-Inhalte und Fußzeile stehen mittig, nur Zeilen-Layouts mit Symbol
     links (Kanäle, Prüfliste, Zeitstrahl) behalten ihre Leserichtung. */
  .section-head { text-align: center; margin-inline: auto; }
  .feature, .platform { text-align: center; }
  .feature-icon, .platform-icon { margin-inline: auto; }
  .footer-top { align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-nav { justify-content: center; text-align: center; }
  .footer-note { justify-content: center; text-align: center; }
  .topbar-brand { font-size: 32px; }
  .topbar-inner { gap: var(--space-2); }
  .topbar-actions .btn-sm { padding: 0 12px; font-size: var(--text-13); white-space: nowrap; }
  .stage-note { font-size: var(--text-12); }
  .phone { width: min(290px, 80vw); }
  .stage-stats { gap: var(--space-6) var(--space-8); }
  .footer-top { flex-direction: column; }
  dialog.sheet { width: calc(100vw - 20px); max-height: 86vh; }
}
@media (max-width: 420px) {
  .stage-brand { font-size: 46px; }
}
/* Unter 360px reicht die Zeile für Lockup + Chip + Aktion nicht mehr. Der
   Umschalter entfällt zuerst — die Systemeinstellung greift weiterhin, und
   auch die App zeigt ihren Theme-Chip nur auf der Einstellungen-Seite. */
@media (max-width: 360px) {
  .topbar-brand { font-size: 28px; }
}

/* Zeigergeräte-only Effekte abschalten, wo es kein Hover gibt */
@media (hover: none) {
  .feature:hover { transform: none; box-shadow: var(--shadow-sm); }
  .feature:hover::before { opacity: 0; }
  .platform:hover { transform: none; }
}

/* ===========================================================================
   REDUZIERTE BEWEGUNG — alles Dekorative aus, nichts verschwindet
=========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .stage-anim > *, .phone-wrap { opacity: 1; transform: none; }
  .trust-track { animation: none; }
  .delivery { opacity: 1; transform: none; }
}
