/*
 * Joli Website (Entwurf 29.10.2026). Farben aus src/theme/lichtkammer.ts (Creme, Joli-Ink,
 * Pflaume, Korallrosa) und dem Logo-Bogen (assets/brand/joli-logo.svg). Hell oder dunkel
 * entscheidet allein die Systemeinstellung, nie die Uhrzeit. Bewegung nur ohne
 * "Bewegung reduzieren". Keine fremden Server: Schrift Nunito liegt unter /fonts/.
 */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/nunito-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/nunito-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/nunito-800.woff2") format("woff2"); }

@property --winkel { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  color-scheme: light dark;
  /* Raum hell (LICHTKAMMER_LIGHT) */
  --grund: #FAF4EF;
  --grund-oben: #FCF8F4;
  --grund-unten: #F4EBE4;
  --text: #241914;
  --leise: #654C42;
  --zart: #7A5D52;
  --akzent: #AD433C;
  --akzent-a: #C2453C;
  --akzent-b: #9A3F78;
  --knopf: #2B1424;
  --auf-knopf: #FAF4EF;
  --knopf-druck: #45263A;
  --flaeche: #FFFCF9;
  --flaeche-hoch: #FFFFFF;
  --flaeche-tief: #F4E2D8;
  --glas: rgba(255, 252, 249, 0.66);
  --glas-stark: rgba(255, 252, 249, 0.86);
  --glas-rand: rgba(255, 255, 255, 0.85);
  --glas-kante: rgba(43, 20, 36, 0.07);
  --linie: rgba(43, 20, 36, 0.10);
  --schatten-farbe: rgba(122, 69, 54, 0.22);
  --schatten: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 60px -28px var(--schatten-farbe), 0 8px 20px -12px rgba(122, 69, 54, 0.14);
  --spot: rgba(255, 183, 175, 0.38);
  --fokus: #AD433C;
  /* Zeichenfarben (glyphTones hell) */
  --ton-lila: #E6DCF5; --ton-lila-z: #5E449A;
  --ton-pfirsich: #FBDCC8; --ton-pfirsich-z: #9E5D0E;
  --ton-mint: #D7EEE4; --ton-mint-z: #08695A;
  --ton-rosa: #F9D3D6; --ton-rosa-z: #B2427D;
  --ton-butter: #FBEFC9; --ton-butter-z: #96690A;
  --ton-himmel: #DCE6F5; --ton-himmel-z: #3F5F8C;
  /* Bogen */
  --spur: #E6D8CF;
  --bogenpunkt: #FFFFFF;
  /* wie der App-Bogen (src/theme/sleepArc.ts LIGHT): Tag dayFrom/dayTo, Kapsel capsuleFill/-Ring, Nacht night/nightEnd */
  --tag-von: #F6C46F;
  --tag: #F3B486;
  --schlaf: #2B1424;
  --schlaf-ring: #FFFFFF;
  --nacht: #2B1424;
  --nacht-ende: #2B1424;
  --jetzt: #2B1424;
  --hof: rgba(217, 100, 91, 0.22);
  /* Geraet: neutral, ohne Marke */
  --rahmen-a: #4A3F46;
  --rahmen-b: #1B1418;
  /* Licht im Hero */
  --licht-1: rgba(245, 154, 135, 0.38);
  --licht-2: rgba(166, 220, 192, 0.34);
  --licht-3: rgba(169, 182, 232, 0.34);
  --r-gross: 28px;
  --r-mittel: 20px;
  --r-klein: 14px;
  --breite: 1200px;
  /* Seitlicher Rand: auf jedem Geraet fest und links wie rechts gleich, quer am iPhone nie unter der Notch */
  --rand: max(clamp(20px, 5vw, 40px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --abstand: clamp(72px, 8.5vw, 124px);
  --sanft: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Raum dunkel (LICHTKAMMER_DARK): Pflaume, nie Navy */
    --grund: #1F121A;
    --grund-oben: #33202C;
    --grund-unten: #12090F;
    --text: #EBDDD6;
    --leise: #CDB8B1;
    --zart: #AA9490;
    --akzent: #F0A896;
    --akzent-a: #FFB7AF;
    --akzent-b: #E6B9EE;
    --knopf: #FFB7AF;
    --auf-knopf: #1F121A;
    --knopf-druck: #EFA08F;
    --flaeche: #2A1D25;
    --flaeche-hoch: #3C2532;
    --flaeche-tief: #170D13;
    --glas: rgba(52, 33, 45, 0.55);
    --glas-stark: rgba(52, 33, 45, 0.82);
    --glas-rand: rgba(255, 220, 210, 0.12);
    --glas-kante: rgba(255, 220, 210, 0.06);
    --linie: rgba(255, 220, 210, 0.12);
    --schatten-farbe: rgba(0, 0, 0, 0.55);
    --schatten: 0 1px 0 rgba(255, 230, 220, 0.08) inset, 0 30px 70px -30px var(--schatten-farbe), 0 10px 24px -14px rgba(0, 0, 0, 0.5);
    --spot: rgba(255, 183, 175, 0.16);
    --fokus: #FFB7AF;
    --ton-lila: #33283F; --ton-lila-z: #BBA8DC;
    --ton-pfirsich: #3D2A26; --ton-pfirsich-z: #EDB797;
    --ton-mint: #1E322E; --ton-mint-z: #9CCFBC;
    --ton-rosa: #3B2331; --ton-rosa-z: #EDA6BC;
    --ton-butter: #3A3122; --ton-butter-z: #E6CB8A;
    --ton-himmel: #232B3B; --ton-himmel-z: #A9C0E6;
    --spur: #3B2733;
    --bogenpunkt: #2A1520;
    --tag-von: #FBC478;
    --tag: #F8C982;
    --schlaf: #FFF1EC;
    --schlaf-ring: #3A2230;
    --nacht: #E8A39C;
    --nacht-ende: #F6BD9F;
    --jetzt: #FFF1E9;
    --hof: rgba(255, 183, 175, 0.24);
    --rahmen-a: #5A4A54;
    --rahmen-b: #120C10;
    --licht-1: rgba(245, 154, 135, 0.22);
    --licht-2: rgba(120, 190, 165, 0.14);
    --licht-3: rgba(150, 140, 220, 0.20);
    --logo-wm-oben: #FFF1E9; --logo-wm-unten: #F6B096; --logo-unterzeile: #F2A99A; --logo-bogenpunkt: #2A1520; --logo-ring: #2A1520;
  }
}

/* ------------------------------------------------------------------ Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--grund);
  background-image: linear-gradient(180deg, var(--grund-oben) 0, var(--grund) 40rem, var(--grund) calc(100% - 40rem), var(--grund-unten) 100%);
  overflow-x: clip;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--akzent); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
@media (max-width: 599px) { p, li { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; } h1, h2 { -webkit-hyphens: manual; hyphens: manual; } }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
h1 em, h2 em {
  background: linear-gradient(100deg, var(--akzent-a) 10%, var(--akzent-b) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.04em;
}
.unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--knopf); color: var(--auf-knopf); font-weight: 700; text-decoration: none; }
.sprung:focus { top: 12px; color: var(--auf-knopf); }
.zeichenvorrat { position: absolute; width: 0; height: 0; overflow: hidden; }
.zeichen { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zeichen .voll, .zeichen.funkeln { fill: currentColor; stroke: none; }
.zeichen.gross { width: 30px; height: 30px; }
.anker { position: relative; top: -84px; display: block; height: 0; }
.rahmen { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
/* Jeder Abschnitt schneidet waagrecht an der Bildschirmkante ab, was trotzdem hinausragt
   (gedrehte Geraete, Lichter). clip statt hidden: kein eigener Scrollbereich, sticky bleibt. */
main > section, .fuss { overflow-x: clip; }
/* Einspaltige Raster duerfen nie breiter werden als der Bildschirm (minmax statt auto) */
.hero-raster, .bogen-raster, .alltag-raster, .familie-raster, .joli-raster, .vergleich, .warum, .daten-raster,
.laden-raster, .fragen-raster, .hilfe-raster, .fuss-oben, .karten-liste, .faq { grid-template-columns: minmax(0, 1fr); }
.hero-raster > *, .bogen-raster > *, .alltag-raster > *, .familie-raster > *, .joli-raster > *, .laden-raster > *, .hilfe-raster > *, .fragen-raster > * { min-width: 0; }
.klein { font-size: 0.92rem; color: var(--leise); }

/* ------------------------------------------------------------------ Knoepfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--knopf); color: var(--auf-knopf); font: inherit; font-weight: 800; font-size: 1.02rem;
  text-decoration: none; cursor: pointer; letter-spacing: -0.005em;
  box-shadow: 0 14px 30px -14px var(--schatten-farbe);
  transition: transform 0.25s var(--sanft), background-color 0.2s, box-shadow 0.25s;
}
.knopf:hover { color: var(--auf-knopf); background: var(--knopf-druck); transform: translateY(-1px); }
.knopf:active { transform: translateY(1px) scale(0.99); }
.knopf .zeichen { width: 20px; height: 20px; transition: transform 0.25s var(--sanft); }
.knopf:hover .zeichen { transform: translateX(3px); }
.knopf-klein { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.knopf-breit { width: 100%; }
.knopf-zart { background: var(--flaeche-tief); color: var(--text); box-shadow: none; }
.knopf-zart:hover { background: var(--linie); color: var(--text); }
.rund {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--knopf); color: var(--auf-knopf); transition: transform 0.25s var(--sanft);
}
.rund:hover { transform: scale(1.06); }
.rund .zeichen { width: 22px; height: 22px; }

/* Offizielle Store-Badges: unveraendert, gleiche sichtbare Hoehe. Das Google-Bild traegt oben
   und unten je 29 von 250 px Schutzraum, der hier mit negativem Rand ausgeglichen wird. */
.stores { --bh: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.store { display: block; border-radius: 9px; transition: transform 0.25s var(--sanft), filter 0.25s; }
.store:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 16px var(--schatten-farbe)); }
.store img { height: var(--bh); width: auto; }
.store-play img { height: calc(var(--bh) * 250 / 192); margin: calc(var(--bh) * -29 / 192) 0; }
.stores-gross { --bh: 56px; }
/* Google Play noch nicht live (14.11.2026): Abzeichen ohne Link, blass, mit Datum darunter */
.store-ab { position: relative; cursor: default; }
.store-ab:hover { transform: none; filter: none; }
.store-ab img { filter: grayscale(1); opacity: 0.5; }
.store-ab small { position: absolute; left: 0; right: 0; bottom: calc(var(--bh) * -0.42); text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--leise); white-space: nowrap; }
.stores:has(.store-ab) { padding-bottom: 14px; }
@media (max-width: 359px) { .stores { --bh: 42px; gap: 10px; } .stores-gross { --bh: 48px; } }

/* ------------------------------------------------------------------ Glas und Spotlicht */
.glas {
  position: relative;
  background: var(--glas);
  border: 1px solid var(--glas-rand);
  border-radius: var(--r-gross);
  box-shadow: var(--schatten);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}
[data-spot] { --mx: 50%; --my: 0%; isolation: isolate; }
[data-spot]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--spot), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
[data-spot]:hover::after { opacity: 1; }

/* ------------------------------------------------------------------ Kopf */
.kopf { position: sticky; top: 0; z-index: 50; padding: max(10px, env(safe-area-inset-top, 0px)) 0 10px; }
.kopf::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--grund) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--linie);
}
@supports (animation-timeline: scroll()) {
  .kopf::before { opacity: 0; animation: kopf-ein linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
  @keyframes kopf-ein { to { opacity: 1; } }
}
.kopf-innen { display: flex; align-items: center; gap: 18px; min-height: 52px; }
.marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; margin-right: auto; }
.marke img { width: 36px; height: 36px; border-radius: 9px; } /* App-Symbol wie auf dem Handy (14.11.2026) */
.kopf-nav { display: none; gap: 4px; }
.kopf-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.95rem; color: var(--leise); transition: background 0.2s, color 0.2s; }
.kopf-nav a:hover { background: var(--linie); color: var(--text); }
.kopf .knopf-klein { display: none; }
.menue { position: relative; }
.menue summary { list-style: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; background: var(--glas-stark); border: 1px solid var(--linie); }
.menue summary::-webkit-details-marker { display: none; }
.menue summary .zeichen { width: 24px; height: 24px; stroke-width: 2.2; }
.menue[open] summary { background: var(--knopf); color: var(--auf-knopf); }
.menue-liste {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(calc(100vw - var(--rand) * 2), 320px); padding: 10px;
  max-height: calc(100svh - 96px); overflow-y: auto; overscroll-behavior: contain;
  display: grid; gap: 2px; border-radius: var(--r-mittel);
  background: var(--glas-stark); border: 1px solid var(--glas-rand); box-shadow: var(--schatten);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.menue-liste a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.menue-liste a:hover { background: var(--linie); color: var(--text); }
.menue-liste .knopf { margin-top: 8px; color: var(--auf-knopf); }
@media (min-width: 600px) { .kopf .knopf-klein { display: inline-flex; } }
@media (min-width: 1040px) { .kopf-nav { display: flex; } .menue { display: none; } }

/* ------------------------------------------------------------------ Abschnitte allgemein */
.abschnitt { position: relative; padding: var(--abstand) 0; }
.kopfzeile { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.kopfzeile.mittig { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.98rem; color: var(--akzent); }
.kicker .zeichen { width: 20px; height: 20px; }
h2 { font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.4rem); }
/* Hilfe-Seite: dieselbe Ueberschrift als h1 (14.11.2026) */
.hilfe-text h1 { font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.4rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.015em; line-height: 1.2; }
.einleitung { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.32rem); color: var(--leise); line-height: 1.55; max-width: 40rem; }
.karte { padding: 26px; display: grid; gap: 10px; align-content: start; }
.karte .zeichen.gross { color: var(--akzent); margin-bottom: 6px; }
.karte p { color: var(--leise); }
.haken-liste { display: grid; gap: 14px; }
.haken-liste li { display: flex; gap: 12px; align-items: flex-start; }
.haken-liste .zeichen { width: 22px; height: 22px; margin-top: 2px; color: var(--akzent); }

/* ------------------------------------------------------------------ Geraet */
.handy {
  --b: 300px;
  position: relative; width: var(--b); max-width: 100%;
  padding: calc(var(--b) * 0.034); border-radius: calc(var(--b) * 0.164);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.16)),
    linear-gradient(160deg, var(--rahmen-a), var(--rahmen-b));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 calc(var(--b) * 0.009) rgba(8, 4, 6, 0.85),
    0 50px 90px -36px var(--schatten-farbe),
    0 24px 40px -24px rgba(43, 20, 36, 0.35);
}
.handy::before, .handy::after { content: ""; position: absolute; width: calc(var(--b) * 0.011); border-radius: calc(var(--b) * 0.01); background: linear-gradient(90deg, var(--rahmen-b), var(--rahmen-a)); }
.handy::before { right: calc(var(--b) * -0.009); top: 26%; height: 15%; }
.handy::after { left: calc(var(--b) * -0.009); top: 20%; height: 8%; box-shadow: 0 calc(var(--b) * 0.13) 0 var(--rahmen-a); }
.handy-glas { position: relative; overflow: hidden; border-radius: calc(var(--b) * 0.138); background: #0E0A0C; }
.handy-glas img { width: 100%; height: auto; }
/* Stufen einer Abfolge: deckungsgleich ueber dem ersten Bild, sichtbar mit .an (joli.js) */
.handy-glas .stufe { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.35s ease; }
.handy-glas .stufe.an { opacity: 1; }

/* Mitteilung wie auf dem iPhone (hell, Glas): App-Symbol, Titel fett, "jetzt", Text. Die Worte
   kommen aus der App (de.ts notifications), gezeichnet ist nur die Mitteilung selbst. */
.push {
  position: absolute; left: 3%; right: 3%; top: 5.4%; z-index: 2;
  display: flex; align-items: center; gap: 0.7em;
  padding: 0.8em 0.95em 0.8em 0.75em; border-radius: 1.7em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: max(var(--push-min, 11px), calc(var(--b) * 0.043)); line-height: 1.25; letter-spacing: -0.01em; text-align: left;
  color: #111014; background: rgba(246, 243, 242, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8);
  box-shadow: 0 0.7em 1.8em -0.7em rgba(0, 0, 0, 0.32), inset 0 0 0 0.5px rgba(255, 255, 255, 0.7);
}
/* Im kleinen Geraet der Familie (ab 150 px breit) passt die Mitteilung nur etwas kleiner ins Glas */
.push-duo { --push-min: clamp(7.5px, calc(var(--b) * 0.065), 9.5px); }
.handy-glas .push-symbol { width: 2.65em; height: 2.65em; border-radius: 0.6em; flex: none; }
.push-text { flex: 1; min-width: 0; display: grid; gap: 0.08em; }
.push-text p { margin: 0; }
.push-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5em; }
.push-kopf b { font-weight: 600; }
.push-kopf span { flex: none; font-size: 0.88em; color: rgba(60, 60, 67, 0.62); }

/* Tipp-Kreis wie die Beruehrungen im Simulator, an der Mitte des echten Knopfs */
.tipp { position: absolute; z-index: 3; width: 15%; aspect-ratio: 1; margin: -7.5% 0 0 -7.5%; border-radius: 50%; opacity: 0; pointer-events: none; }
.tipp-hell { background: rgba(255, 255, 255, 0.42); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75); }
.tipp-dunkel { background: rgba(43, 20, 36, 0.18); box-shadow: 0 0 0 2px rgba(43, 20, 36, 0.4); }
.tipp.an { animation: tippen 0.7s ease-out both; }
@keyframes tippen { 0% { opacity: 0; transform: scale(0.55); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
.handy-glas::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 26%, rgba(255, 255, 255, 0) 42%);
}

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; padding: clamp(16px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); overflow: clip; }
.hero-licht { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none; }
.hero-licht::before, .hero-licht::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px);
}
.hero-licht::before { width: 62vw; height: 62vw; max-width: 820px; max-height: 820px; right: -8%; top: 4%; background: radial-gradient(circle, var(--licht-1), transparent 65%); }
.hero-licht::after { width: 54vw; height: 54vw; max-width: 700px; max-height: 700px; left: -14%; top: 28%; background: radial-gradient(circle, var(--licht-3), transparent 65%); }
.hero-raster { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-text { display: grid; gap: 22px; padding-top: clamp(12px, 3vw, 40px); }
/* Dachzeile im Hero auf ganz schmalen Handys in einer Zeile */
@media (max-width: 374px) { .hero .kicker { font-size: 0.84rem; gap: 6px; } .hero .kicker .zeichen { width: 16px; height: 16px; } }
.hero h1 { font-size: clamp(2.9rem, 1.5rem + 5.4vw, 5.1rem); line-height: 0.98; letter-spacing: -0.045em; }
.hero-lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.36rem); color: var(--leise); max-width: 34rem; line-height: 1.55; }
.hero-laden { display: grid; gap: 12px; margin-top: 6px; }
.laden-titel { font-weight: 800; font-size: 0.98rem; display: flex; align-items: center; gap: 10px; }
.laden-titel::after { content: ""; height: 1px; width: 48px; background: var(--linie); }
.fakten { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fakten li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--glas); border: 1px solid var(--glas-rand); font-weight: 700; font-size: 0.92rem; color: var(--leise); }
.fakten .zeichen { width: 18px; height: 18px; color: var(--akzent); }

.hero-buehne { --b-hero: clamp(220px, 34vw, 290px); position: relative; margin: 0; display: grid; place-items: center; padding: 150px 0 60px; min-height: calc(var(--b-hero) * 2.17 + 210px); }
/* Der Bogen umschliesst das Geraet wie im Logo den Mond: Mittelpunkt = Mitte des Geraets */
.herobogen { position: absolute; left: 50%; top: calc(50% - var(--b-hero) * 0.42); width: min(calc(var(--b-hero) * 2.5), calc(100vw + 60px)); transform: translate(-50%, -95.8%); max-width: none; overflow: visible; z-index: 0; pointer-events: none; }
.hb-schein { fill: none; stroke-width: 70; stroke-linecap: round; opacity: 0.55; }
.hb-spur { fill: none; stroke: var(--spur); stroke-width: 26; stroke-linecap: round; opacity: 0.6; }
.hb-linie { fill: none; stroke-width: 26; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hb-punkt { fill: var(--bogenpunkt); }
.hb-marke { fill: #F49A8E; stroke: var(--grund); stroke-width: 8; }
.hb-jetzt { fill: var(--jetzt); stroke: #FFB7AF; stroke-width: 5; }
.hb-hof { transform-box: fill-box; transform-origin: center; }
.hb-sonne { fill: none; stroke: #E0A040; stroke-width: 3.5; stroke-linecap: round; }
.hb-sonne circle { fill: #F9BC3A; stroke: none; }
.hb-mond { fill: #A99BC4; }
.kippen { position: relative; z-index: 1; transform-style: preserve-3d; transition: transform 0.6s var(--sanft); }
.handy-hero { --b: var(--b-hero); }
.zaehler {
  position: absolute; z-index: 2; left: max(0px, calc(50% - 300px)); bottom: 92px;
  display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 22px;
}
.zaehler-ring { width: 44px; height: 44px; flex: none; }
.zaehler-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.zr-spur { fill: none; stroke: var(--linie); stroke-width: 4; }
.zr-wert { fill: none; stroke: #F59A87; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 60; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s linear; }
.zaehler-text { display: grid; line-height: 1.1; }
.zaehler-text small { font-size: 0.82rem; font-weight: 700; color: var(--leise); }
.zaehler-zahl { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zaehler-zahl i { font-style: normal; font-size: 0.9rem; font-weight: 700; color: var(--leise); margin-left: 1px; }
.zaehler-zahl .sek { color: var(--zart); font-size: 1rem; }
.zaehler-zahl i.sek { font-size: 0.8rem; }
.plakette { position: absolute; z-index: 2; right: max(0px, calc(50% - 290px)); top: 64px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; font-size: 0.82rem; font-weight: 700; color: var(--leise); }
.plakette .zeichen { width: 26px; height: 26px; color: #A99BC4; fill: currentColor; stroke: none; }
.plakette b { display: block; font-size: 1.05rem; color: var(--text); }
.bildzeile { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 0.85rem; color: var(--zart); font-weight: 700; }
.weiter { display: none; }

@media (min-width: 1000px) {
  .hero-raster { grid-template-columns: 1.12fr 1fr; }
  .hero-buehne { --b-hero: clamp(220px, 21vw, 290px); }
  .zaehler { left: -4%; bottom: 120px; }
  .plakette { right: -4%; top: 120px; }
  .weiter { display: inline-flex; align-items: center; gap: 8px; margin: 12px auto 0; width: max-content; position: relative; left: 50%; transform: translateX(-50%); text-decoration: none; font-weight: 700; color: var(--leise); }
  .weiter .zeichen { width: 18px; height: 18px; }
}

/* ------------------------------------------------------------------ Tagesbogen-Demo */
.bogen-raster { display: grid; gap: 22px; }
.demo { padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; }
.tb { position: relative; }
.tb-svg { width: 100%; height: auto; overflow: visible; }
/* Alles auf dem Bogen ist derselbe Pfad wie die Spur (bauen.py tagesbogen): nur Strichbreite und Striche unterscheiden sich.
   Keine Uebergaenge auf Pfad oder Strichen - joli.js setzt jeden Zustand direkt (ein animiertes "d" verliess den Kreis). */
.tb-spur, .tb-nacht, .tb-vergangen, .tb-ring, .tb-kapsel { fill: none; stroke-linecap: round; }
.tb-spur { stroke: var(--spur); stroke-width: 18; }
.tb-nacht { stroke: url(#tb-nacht); stroke-width: 18; }
.tb-vergangen { stroke: url(#tb-tag); stroke-width: 18; }
.tb-tag-von { stop-color: var(--tag-von); }
.tb-tag-bis { stop-color: var(--tag); }
.tb-nacht-von { stop-color: var(--spur); }
.tb-nacht-voll { stop-color: var(--nacht); }
.tb-nacht-bis { stop-color: var(--nacht-ende); }
.tb-ring { stroke: var(--schlaf-ring); stroke-width: 15; }
.tb-kapsel { stroke: var(--schlaf); stroke-width: 12; }
.tb-schlaf.plan .tb-ring { visibility: hidden; }
.tb-schlaf.plan .tb-kapsel { stroke-opacity: 0.3; }
.tb-ende { fill: var(--bogenpunkt); stroke: var(--spur); stroke-width: 2; }
.tb-jetzt { fill: var(--jetzt); stroke: #FFB7AF; stroke-width: 3.5; }
.tb-hof { fill: var(--hof); }
.tb-mitte { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); text-align: center; display: grid; gap: 2px; width: 70%; }
.tb-kicker { font-weight: 800; font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.05rem); color: var(--leise); }
.tb-zahl { font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.2rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tb-zahl small { font-size: 0.42em; letter-spacing: 0; margin-left: 2px; color: var(--leise); font-weight: 700; }
.tb-unter { font-weight: 700; color: var(--zart); font-size: 0.98rem; }
.tb-enden { display: flex; justify-content: space-between; margin-top: -4px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tb-enden span { display: grid; text-align: center; font-size: 0.98rem; }
.tb-enden small { font-weight: 700; color: var(--zart); font-size: 0.8rem; }
.demo-steuer { display: flex; align-items: center; gap: 16px; }
.regler { flex: 1; display: block; }
.regler input { width: 100%; -webkit-appearance: none; appearance: none; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.regler input::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #F3C39E, #F59A87 40%, #C99CDB); }
.regler input::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #F3C39E, #F59A87 40%, #C99CDB); }
.regler input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--flaeche-hoch); border: 3px solid var(--knopf); box-shadow: 0 6px 16px -4px var(--schatten-farbe); }
.regler input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--flaeche-hoch); border: 3px solid var(--knopf); }
.tb-uhr { font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: right; }
.demo-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.88rem; color: var(--leise); font-weight: 700; }
.punkt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: -8px; background: var(--schlaf); vertical-align: -1px; }
.punkt.plan { opacity: 0.3; }
.demo-name { margin-left: auto; color: var(--zart); }
.karten-liste { display: grid; gap: 14px; }
.hinweiszeile { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--leise); font-size: 0.98rem; max-width: 60rem; }
.marke-premium {
  display: inline-flex; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 0.82rem; color: var(--auf-knopf);
  background: linear-gradient(100deg, #B8463F, #8E3A6E); white-space: nowrap;
}
@media (prefers-color-scheme: dark) { .marke-premium { background: linear-gradient(100deg, #FFB7AF, #E6B9EE); } }
@media (min-width: 900px) {
  .bogen-raster { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
  .karten-liste { align-content: stretch; }
}

/* ------------------------------------------------------------------ Alltag */
.alltag-raster { display: grid; gap: 48px; align-items: center; }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kachel {
  position: relative; padding: 18px; border-radius: var(--r-mittel); background: var(--flaeche); display: grid; gap: 6px; align-content: start;
  box-shadow: 0 1px 0 var(--glas-kante), 0 10px 24px -18px var(--schatten-farbe);
  transition: transform 0.35s var(--sanft);
}
.kachel:hover { transform: translateY(-3px); }
.kachel h3 { font-size: 1.04rem; }
.kachel p { font-size: 0.9rem; color: var(--leise); line-height: 1.45; }
.kachel-zeichen { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 6px; }
.kachel-zeichen .zeichen { width: 24px; height: 24px; }
.ton-lila { background: var(--ton-lila); color: var(--ton-lila-z); }
.ton-pfirsich { background: var(--ton-pfirsich); color: var(--ton-pfirsich-z); }
.ton-mint { background: var(--ton-mint); color: var(--ton-mint-z); }
.ton-rosa { background: var(--ton-rosa); color: var(--ton-rosa-z); }
.ton-butter { background: var(--ton-butter); color: var(--ton-butter-z); }
.ton-himmel { background: var(--ton-himmel); color: var(--ton-himmel-z); }
.paar { position: relative; display: flex; justify-content: center; padding: 20px 0 40px; }
.paar .handy { --b: clamp(150px, 46vw, 300px); }
/* Die beiden Geraete bilden zusammen eine Gruppe von 1,62 Geraetebreiten, die mittig in ihrer
   Spalte steht. Die Breite richtet sich nach der Spalte selbst (cqi), nicht nach dem Fenster,
   damit nichts seitlich hinausragt. */
@supports (container-type: inline-size) {
  .paar { container-type: inline-size; }
  .paar .handy { --b: min(300px, 54cqi); }
}
.handy-hinten { position: absolute; left: calc(50% - var(--b) * 0.19); top: calc(var(--b) * 0.24); transform: rotate(5deg); opacity: 0.98; z-index: 0; }
.handy-vorn { position: relative; z-index: 1; transform: translateX(calc(var(--b) * -0.31)) rotate(-3deg); margin-bottom: calc(var(--b) * 0.24); }
@media (min-width: 1000px) {
  .alltag-raster { grid-template-columns: 1.15fr 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alltag-bild { position: sticky; top: 110px; }
}
@media (min-width: 640px) and (max-width: 999px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Unter 360 px: eine Spalte, Zeichen links neben dem Text (sonst wird jedes Wort getrennt) */
@media (max-width: 359px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .kachel { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; }
  .kachel-zeichen { grid-row: span 2; margin-bottom: 0; }
}

/* ------------------------------------------------------------------ Familie */
.familie { background: linear-gradient(180deg, transparent, var(--flaeche-tief) 30%, var(--flaeche-tief) 70%, transparent); }
.familie-raster { display: grid; gap: 48px; align-items: center; }
.duo { position: relative; display: flex; justify-content: center; gap: clamp(14px, 5vw, 90px); padding: 90px 0 20px; }
.duo .handy { --b: clamp(124px, 38vw, 260px); }
/* Zwei Geraete nebeneinander, so breit wie die Spalte es zulaesst (auch bei 320 px ohne Ueberstand) */
@supports (container-type: inline-size) {
  .duo { container-type: inline-size; gap: clamp(12px, 5cqi, 90px); }
  .duo .handy { --b: min(260px, 43cqi); }
}
.duo-geraet { position: relative; z-index: 1; }
.duo-a { transform: rotate(-4deg) translateY(24px); }
.duo-b { transform: rotate(4deg); }
.duo-bogen { position: absolute; left: 12%; right: 12%; top: 10px; width: 76%; height: auto; overflow: visible; z-index: 0; }
.duo-spur { fill: none; stroke: var(--linie); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.duo-licht { fill: none; stroke: url(#duo-verlauf); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0.16 1; stroke-dashoffset: 0.16; filter: drop-shadow(0 0 8px rgba(245, 154, 135, 0.7)); }
/* Ohne Skript (und mit "Bewegung reduzieren") steht der Endzustand: Nickerchen laeuft, Hinweis ist da */
.duo:not(.spielt) [data-stufe="familie-laeuft"] { opacity: 1; }
.tipp-nickerchen { left: 19.2%; top: 53.1%; }
.tipp-start { left: 50%; top: 42.6%; }
.familie-bild { margin: 0; }
.duo-zeile, .joli-zeile { position: static; margin-top: 18px; }
@media (min-width: 1000px) { .familie-raster { grid-template-columns: 1.1fr 1fr; } }

/* ------------------------------------------------------------------ Drei Bereiche (Anker #lebensphasen) */
.phasen-liste {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% - 36px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rand); padding: 4px var(--rand) 24px; margin: 0 calc(var(--rand) * -1);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.phasen-liste::-webkit-scrollbar { display: none; }
.phase { scroll-snap-align: start; scroll-snap-stop: always; display: grid; gap: 20px; padding: 28px 22px; border-radius: var(--r-gross); background: var(--flaeche); box-shadow: var(--schatten); align-content: start; }
.phase-bild { display: grid; place-items: center; padding: 8px 0; border-radius: var(--r-mittel); background: radial-gradient(circle at 50% 30%, var(--flaeche-tief), transparent 70%); }
.handy-phase { --b: clamp(180px, 56vw, 240px); }
.phase-text { display: grid; gap: 10px; }
.phase-name { font-weight: 800; color: var(--akzent); font-size: 0.92rem; }
.phase-text h3 { font-size: 1.5rem; }
.phase-text p:not(.phase-name):not(.klein):not(.phase-plus) { color: var(--leise); }
.phase-plus { padding: 12px 14px; border-radius: var(--r-klein); background: var(--flaeche-tief); font-weight: 700; font-size: 0.95rem; }
@media (min-width: 600px) and (max-width: 899px) { .phasen-liste { grid-auto-columns: calc((100% - 14px) / 2 - 18px); } }
@media (min-width: 900px) {
  .phasen-liste { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
}
/* ------------------------------------------------------------------ Frag Joli */
.joli-raster { display: grid; gap: 48px; align-items: center; }
.joli-text { display: grid; gap: 22px; }
.joli-text .kopfzeile { margin-bottom: 0; }
.notfall { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-mittel); }
.notfall .zeichen { width: 26px; height: 26px; color: var(--akzent); }
.notfall p { font-weight: 700; }
.zahlen { display: flex; gap: 14px; flex-wrap: wrap; }
.zahlen li { flex: 1 1 160px; padding: 18px 20px; border-radius: var(--r-mittel); background: var(--flaeche); display: grid; gap: 2px; box-shadow: 0 10px 24px -18px var(--schatten-farbe); }
.zahlen b { font-size: 2.6rem; line-height: 1; letter-spacing: -0.04em; }
.zahlen span { color: var(--leise); font-weight: 700; font-size: 0.92rem; }
.joli-bild { position: relative; display: grid; place-items: center; padding: 40px 0; }
.handy-joli { --b: clamp(230px, 62vw, 310px); }
.joli-ablauf { position: relative; }
.joli-ablauf:not(.spielt) [data-stufe="joli-antwort"] { opacity: 1; }
[data-stufe="joli-getippt"] { transition-duration: 0.12s; }
[data-stufe="joli-antwort"] { transition-duration: 0.6s; }
/* Deckt im Bild mit der getippten Frage den Text ab, joli.js gibt ihn Zeichen fuer Zeichen frei
   (die Buchstaben sind die der Aufnahme). Weiss wie das Eingabefeld der App. */
.deckel { position: absolute; z-index: 2; left: 9.6%; top: 77.6%; width: 57.2%; height: 2.1%; background: #FFFFFF; opacity: 0; }
.deckel.an { opacity: 1; }
.tipp-senden { left: 88.9%; top: 78.35%; }
.ki-zeile {
  position: absolute; right: 0; bottom: 6%; z-index: 2; max-width: 78%; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-radius: 18px; font-size: 0.84rem; color: var(--leise); font-weight: 700; line-height: 1.4;
}
.ki-zeile .zeichen { width: 18px; height: 18px; color: var(--akzent); margin-top: 1px; }
.joli-ablauf .ki-zeile { position: relative; right: auto; bottom: auto; max-width: 100%; margin: -34px 8px 0; }
/* Handy und Hinweis mittig in der Spalte (sonst zieht der lange Hinweis den Ablauf auf volle Breite und das Geraet steht links) */
@media (max-width: 999px) { .joli-ablauf { display: grid; justify-items: center; width: 100%; } .joli-ablauf .ki-zeile { max-width: min(calc(100% - 16px), 440px); } }
@media (min-width: 1000px) { .joli-raster { grid-template-columns: 1fr 1fr; } .joli-ablauf .ki-zeile { position: absolute; margin: 0; right: -22%; bottom: 2.5%; max-width: 92%; } }

/* ------------------------------------------------------------------ Premium */
.premium { background: radial-gradient(ellipse 60% 34% at 50% 22%, var(--licht-1), transparent 72%); }
.warum { display: grid; gap: 14px; margin-bottom: clamp(40px, 6vw, 72px); }
.warum-karte { padding: 28px; display: grid; gap: 12px; align-content: start; }
.warum-zahl { font-weight: 800; font-size: 0.9rem; color: var(--akzent); }
.warum-karte h3 { font-size: 1.5rem; }
.warum-karte p { color: var(--leise); }
.vergleich { display: grid; gap: 18px; align-items: stretch; }
.spalte { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; }
/* Beide Spalten gleich hoch (Grid stretch); der Preisblock sitzt in beiden unten buendig */
.spalte > .preis { margin-top: auto; min-height: 88px; align-content: center; }
.spalte h3 { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; }
.spalte h3 .zeichen { width: 26px; height: 26px; color: var(--akzent); }
.spalte-premium { overflow: hidden; }
.spalte-premium::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--winkel), #F59A87, #F3C39E, #A6DCC0, #94D2DC, #A9B6E8, #C99CDB, #E68BBE, #F59A87);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spalte-schein { position: absolute; inset: -40% -20% auto auto; width: 70%; height: 80%; background: radial-gradient(circle, var(--licht-3), transparent 65%); filter: blur(30px); pointer-events: none; z-index: -1; }
.spalte-premium .haken-liste .zeichen { color: var(--akzent); }
.preis { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 18px 20px; border-radius: var(--r-mittel); background: var(--glas-stark); border: 1px solid var(--linie); }
.preis-zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.preis-zeile b { white-space: nowrap; }
.preis-zeile b { font-size: 2rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.preis-zeile span, .preis-oder { color: var(--leise); font-weight: 700; }
.preis-test { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.preis-test .zeichen { color: var(--akzent); margin-top: 2px; }
.preis-familie { color: var(--leise); }
.zyklusabo { margin-top: 18px; display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: var(--r-mittel); }
.ohne-umbruch { white-space: nowrap; }
.zyklusabo .zeichen { color: var(--ton-rosa-z); }
.versprechen { display: grid; gap: 14px; margin-top: 36px; }
.versprechen li { display: flex; gap: 12px; align-items: flex-start; color: var(--leise); }
.versprechen b { color: var(--text); }
.versprechen .zeichen { width: 24px; height: 24px; color: var(--akzent); margin-top: 1px; }
.kleingedruckt { margin-top: 28px; font-size: 0.84rem; color: var(--zart); max-width: 62rem; line-height: 1.55; }
@media (min-width: 860px) {
  .warum { grid-template-columns: repeat(3, 1fr); }
  .vergleich { grid-template-columns: 1fr 1.1fr; }
  .versprechen { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .spalte-premium::before { animation: drehen 14s linear infinite; }
  @keyframes drehen { to { --winkel: 360deg; } }
}

/* ------------------------------------------------------------------ Daten */
.daten-raster { display: grid; gap: 14px; }
@media (min-width: 700px) { .daten-raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .daten-raster { grid-template-columns: repeat(4, 1fr); } }
.wichtig { margin-top: 28px; padding: 24px 26px; border-radius: var(--r-mittel); background: var(--flaeche); border-left: 4px solid var(--akzent); display: grid; gap: 8px; }
.wichtig h3 { font-size: 1.05rem; }
.wichtig p { color: var(--leise); }
.webseite-satz { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--leise); font-weight: 700; }
.webseite-satz .zeichen { color: var(--ton-mint-z); }

/* ------------------------------------------------------------------ Laden */
.laden-raster {
  position: relative; display: grid; gap: 24px; align-items: center; overflow: hidden;
  border-radius: clamp(28px, 4vw, 44px); padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 72px) 0;
  background:
    radial-gradient(circle at 85% 15%, var(--licht-3), transparent 50%),
    radial-gradient(circle at 10% 90%, var(--licht-1), transparent 55%),
    var(--flaeche);
  box-shadow: var(--schatten);
  width: calc(100% - var(--rand) * 2);
}
.laden-text { display: grid; gap: 20px; padding-bottom: 8px; }
@media (max-width: 899px) { .laden-text { justify-items: center; text-align: center; } .laden-text .stores { justify-content: center; } .laden-text .einleitung { margin-inline: auto; } }
.laden h2 { font-size: clamp(3rem, 2rem + 5vw, 6rem); }
.laden-bild { position: relative; display: grid; place-items: center; align-self: end; height: clamp(300px, 46vw, 460px); }
.handy-laden { --b: clamp(230px, 30vw, 320px); position: absolute; top: 24px; }
.laden-ring { position: absolute; top: 4%; width: 120%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 200deg, #F59A87, #F3C39E, #A6DCC0, #94D2DC, #A9B6E8, #C99CDB, #E68BBE, #F59A87); filter: blur(60px); opacity: 0.45; }
@media (min-width: 900px) { .laden-raster { grid-template-columns: 1.1fr 1fr; padding-bottom: 0; } .laden-text { padding-bottom: clamp(32px, 6vw, 72px); } .laden-bild { height: 100%; min-height: 460px; } }

/* ------------------------------------------------------------------ Fragen */
.fragen-raster { display: grid; gap: 12px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-mittel); background: var(--flaeche); box-shadow: 0 1px 0 var(--glas-kante), 0 10px 24px -20px var(--schatten-farbe); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 800; font-size: 1.08rem; position: relative; border-radius: var(--r-mittel); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; color: var(--akzent); transition: transform 0.3s var(--sanft); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 24px 22px; color: var(--leise); max-width: 52rem; }
@media (min-width: 1000px) { .fragen-raster { grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; } .fragen .kopfzeile { position: sticky; top: 120px; } }

/* ------------------------------------------------------------------ Hilfe */
.hilfe-raster { display: grid; gap: 36px; align-items: start; }
.hilfe-text { display: grid; gap: 18px; }
.formular-karte { padding: clamp(22px, 3.4vw, 40px); }
.formular { display: grid; gap: 18px; }
.feld { display: grid; gap: 8px; }
.feld label { font-weight: 800; }
.freiwillig { font-weight: 700; color: var(--zart); font-size: 0.86rem; margin-left: 6px; }
.feld input, .feld textarea {
  width: 100%; font: inherit; font-size: max(16px, 1em); min-height: 52px; color: var(--text); padding: 14px 16px; border-radius: 16px;
  background: var(--glas-stark); border: 1.5px solid var(--linie); transition: border-color 0.2s, box-shadow 0.2s;
}
.feld textarea { resize: vertical; min-height: 150px; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--fokus); box-shadow: 0 0 0 4px var(--hof); }
.feld [aria-invalid="true"] { border-color: #C2453C; }
.feld-hinweis { font-size: 0.86rem; color: var(--leise); }
.feld-fehler, .formular-fehler { font-size: 0.9rem; font-weight: 700; color: #B0372F; }
@media (prefers-color-scheme: dark) { .feld-fehler, .formular-fehler { color: #FF9C93; } }
.falle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.falle input { font-size: 16px; }
.formular [data-senden][disabled] { opacity: 0.6; cursor: progress; }
.bestaetigung { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 24px 8px; }
.bestaetigung:focus { outline: none; }
.bestaetigung-haken { width: 76px; height: 76px; }
.bestaetigung-haken circle { fill: var(--ton-mint); stroke: var(--ton-mint-z); stroke-width: 2.5; }
.bestaetigung-haken path { fill: none; stroke: var(--ton-mint-z); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
.bestaetigung h3 { font-size: 1.5rem; }
.bestaetigung p { color: var(--leise); }
@media (min-width: 900px) { .hilfe-raster { grid-template-columns: 0.9fr 1.1fr; gap: 60px; } }

/* ------------------------------------------------------------------ Meldungsseiten */
.unterseite .abschnitt.meldung { padding-top: clamp(40px, 8vw, 100px); }
.meldung-karte { max-width: 44rem; margin: 0 auto; padding: clamp(28px, 5vw, 56px); display: grid; gap: 18px; text-align: center; justify-items: center; }
.meldung-karte h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 3.6rem); }
.meldung-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.unterseite .hilfe { padding-top: clamp(40px, 7vw, 90px); }
.hilfe-mehr { padding-top: 0; }

/* ------------------------------------------------------------------ Fuss */
.fuss { padding: 72px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linie); font-size: 0.95rem; }
.fuss-oben { display: grid; gap: 32px; }
.fuss-logo { width: 150px; height: auto; }
.fuss-nav { display: grid; gap: 0; align-content: start; justify-items: start; }
.fuss-nav p { font-weight: 800; margin-bottom: 4px; }
.fuss-nav a { display: flex; align-items: center; min-height: 44px; color: var(--leise); text-decoration: none; }
@media (min-width: 800px) and (hover: hover) { .fuss-nav a { min-height: 36px; } }
.fuss-nav a:hover { color: var(--akzent); text-decoration: underline; }
.notruf { margin-top: 40px; padding: 16px 20px; border-radius: var(--r-klein); background: var(--flaeche); font-weight: 700; }
.fuss-unten { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--leise); }
.marken { margin-top: 18px; font-size: 0.78rem; color: var(--zart); max-width: 60rem; }
@media (min-width: 800px) { .fuss-oben { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ------------------------------------------------------------------ Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .hb-linie { animation: zeichnen 2.2s var(--sanft) 0.2s both; }
  @keyframes zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  .hb-schein { animation: atmen 7s ease-in-out infinite alternate; }
  @keyframes atmen { from { opacity: 0.35; } to { opacity: 0.7; } }
  .hb-hof { animation: puls 2.6s ease-in-out infinite; }
  @keyframes puls { 0%, 100% { transform: scale(0.8); opacity: 0.9; } 50% { transform: scale(1.25); opacity: 0.45; } }
  .hb-punkt { animation: auftauchen-p 0.6s var(--sanft) both; }
  .hb-punkt:nth-child(1) { animation-delay: 0.6s; } .hb-punkt:nth-child(2) { animation-delay: 0.9s; } .hb-punkt:nth-child(3) { animation-delay: 1.3s; } .hb-punkt:nth-child(4) { animation-delay: 1.6s; }
  @keyframes auftauchen-p { from { opacity: 0; } }
  .hero-licht::before { animation: treiben 18s ease-in-out infinite alternate; }
  .hero-licht::after { animation: treiben 22s ease-in-out -6s infinite alternate-reverse; }
  @keyframes treiben { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6%, 5%) scale(1.12); } }
  .kippen-hero { animation: schweben 7s ease-in-out infinite; }
  /* DIE MITTEILUNG KOMMT VON OBEN (eine Bewegung fuer Hero und Familie): faellt in 0,72 s aus dem
     oberen Rand des Glases herunter, faehrt in 0,84 s wieder hoch, beides mit var(--sanft). */
  @keyframes push-rein { from { transform: translateY(-150%); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes push-raus { from { transform: none; opacity: 1; } to { transform: translateY(-150%); opacity: 0; } }
  /* Hero ohne Skript: nach dem Bogen (2,4 s) herunter, rund 5 s sichtbar, hoch, alle 12 s.
     Dieselben Zeiten wie push-rein/push-raus: 6 % von 12 s = 0,72 s, 46 % bis 53 % = 0,84 s. */
  .push-hero { animation: push-kommt 12s var(--sanft) 2.8s infinite both; }
  @keyframes push-kommt {
    0% { transform: translateY(-150%); opacity: 0; }
    6% { transform: none; opacity: 1; }
    46% { transform: none; opacity: 1; }
    53%, 100% { transform: translateY(-150%); opacity: 0; }
  }
  /* Familie: joli.js setzt .an nach dem Lichtpunkt und nimmt sie wieder weg */
  .duo.spielt .push-duo { animation: push-raus 0.84s var(--sanft) both; }
  .duo.spielt .push-duo.an { animation: push-rein 0.72s var(--sanft) both; }
  @keyframes schweben { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
  .zaehler { animation: schweben 8s ease-in-out -2s infinite; }
  .plakette { animation: schweben 9s ease-in-out -4s infinite; }
  .hero-text > * { animation: hoch 0.9s var(--sanft) both; }
  .hero-text > :nth-child(2) { animation-delay: 0.08s; } .hero-text > :nth-child(3) { animation-delay: 0.16s; } .hero-text > :nth-child(4) { animation-delay: 0.24s; } .hero-text > :nth-child(5) { animation-delay: 0.32s; }
  @keyframes hoch { from { opacity: 0; transform: translateY(22px); } }
  .duo:not(.spielt) .duo-licht { animation: fliegen 3.6s var(--sanft) infinite; }
  .duo.spielt .duo-licht { opacity: 0; }
  .duo.spielt.licht .duo-licht { animation: fliegen 1.9s var(--sanft) both; }
  @keyframes fliegen { 0% { stroke-dashoffset: 0.16; opacity: 0; } 10% { opacity: 1; } 70% { opacity: 1; } 85%, 100% { stroke-dashoffset: -1; opacity: 0; } }
  .bestaetigung:not([hidden]) .bestaetigung-haken path { animation: haken 0.7s var(--sanft) 0.15s both; }
  @keyframes haken { from { stroke-dashoffset: 40; } }
  @supports (animation-timeline: view()) {
    .zeige { animation: auftauchen linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes auftauchen { from { opacity: 0; transform: translateY(36px) scale(0.985); } to { opacity: 1; transform: none; } }
  }
  /* Ohne scroll-getriebene Animation: das Skript markiert, was noch unter dem Bild liegt */
  .zeige.warten { opacity: 0; transform: translateY(36px); }
  .zeige.da { opacity: 1; transform: none; transition: opacity 0.9s var(--sanft), transform 0.9s var(--sanft); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .duo-licht { stroke-dasharray: none; opacity: 0.6; }
  .handy-glas .stufe, .push { transition: none; }
}

/* Leiste fuer Android (joli.js, 14.11.2026): wie die Safari-Leiste auf dem iPhone, ueber dem Kopf */
.android-leiste { display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top, 0px)); background: var(--flaeche-hoch); border-bottom: 1px solid var(--linie); position: relative; z-index: 60; }
.android-leiste img { border-radius: 9px; flex: none; }
.android-leiste p { margin: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.android-leiste p span { color: var(--leise); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.android-leiste .knopf-klein { min-height: 38px; padding: 0 14px; font-size: 0.9rem; white-space: nowrap; }
.android-leiste-zu { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--flaeche-tief); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.android-leiste-zu .zeichen { width: 18px; height: 18px; }
