/* ─────────────────────────────────────────────────────────────────────────
   lifeos.tech — Licht
   Die Seite hat keine Farbe. Sie hat Licht — und das folgt der Uhr des Besuchers,
   berechnet aus der Sonne wie in der App. Die Lichtwerte stehen NICHT hier: sie
   kommen aus licht-tokens.css, erzeugt aus LifeOS/Services/LightPlan.swift,
   SunPlan.swift und Views/Dashboard/SkyView.swift (website/tools/licht-tokens.py).
   Hier stehen Schrift, Maße, Aufbau und Bewegung — nach design/licht/LICHT_DESIGN.md
   und design/web-licht/WEB_LICHT.md. Wo das Web abweicht, steht der Grund.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Schrift: Source Serif 4 aus dem App-Bundle, selbst gehostet (kein Google-Server) ── */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/source-serif-4-400.woff2") format("woff2"), url("fonts/source-serif-4-400.woff") format("woff"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/source-serif-4-600.woff2") format("woff2"), url("fonts/source-serif-4-600.woff") format("woff"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/source-serif-4-400i.woff2") format("woff2"), url("fonts/source-serif-4-400i.woff") format("woff"); }
/* Rückfall mit angeglichenen Maßen, damit beim Nachladen nichts springt */
@font-face { font-family: "Serif Rueckfall"; src: local("Georgia"), local("Times New Roman");
  size-adjust: 98.5%; ascent-override: 103.6%; descent-override: 33.5%; line-gap-override: 0%; }

/* ── Was nicht aus der App kommt: Schriftstapel, Kurve, Raster, Korn ── */
:root {
  --serif: "Source Serif 4", "Serif Rueckfall", Georgia, "Times New Roman", serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rise: cubic-bezier(.2, .7, .2, 1);   /* Nacht.Motion.curve — die Hauskurve */
  --gutter: clamp(24px, 4.4vw, 64px);    /* 24 wie screenPadding, auf großen Schirmen mehr Luft */
  --max: 1200px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* Abgeleitete Farben — überall neu gerechnet, wo ein eigener Stand gesetzt wird */
:root, .lit, .phone {
  --ink: rgb(var(--ink-rgb));
  --ink-2: rgb(var(--ink-rgb) / var(--sec));
  --ink-3: rgb(var(--ink-rgb) / var(--ter));
  --hair: rgb(var(--ink-rgb) / var(--hair-a));
  --hair-strong: rgb(var(--ink-rgb) / var(--hair-strong-a));
  --surface: rgb(var(--ink-rgb) / var(--surface-a));
  --light: rgb(var(--light-rgb));
}

/* ── Grundlage ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/27px var(--ui);
  letter-spacing: -.005em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern"; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p, h1, h2, h3, h4, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: rgb(var(--light-rgb) / .28); color: var(--ink); }
:focus-visible { outline: 1px solid var(--light); outline-offset: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--light); color: var(--on-light);
  padding: 10px 16px; border-radius: 20px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Der Raum: genau eine Lichtquelle, fest am Fenster, plus Korn ── */
.room { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(var(--rw, var(--lw)) var(--rh, var(--lh)) at var(--rx, var(--lx)) var(--ry, var(--ly)),
    rgb(var(--light-rgb) / calc(var(--rs, var(--ls)) * var(--ls-k) * var(--rise-k, 1))), transparent 72%); }
.room::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: var(--grain-a); }
.page { position: relative; z-index: 1; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Schrift ── */
.caps { font: 400 11px/14px var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.caps .lit-text, .lit-text { color: var(--light); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.014em; text-wrap: balance;
  hyphens: manual; overflow-wrap: break-word; }
.doc h1 { hyphens: auto; -webkit-hyphens: auto; }
h1 { font-size: clamp(44px, 6.1vw, 84px); line-height: 1.03; letter-spacing: -.024em; }
h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: clamp(23px, 2.1vw, 28px); line-height: 1.2; }
.lede { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5;
  color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.text { color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.meta { font-size: 13px; line-height: 19px; color: var(--ink-3); }
.num { font-family: var(--serif); font-weight: 400; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.03em; }
.inline-link { color: var(--light); text-decoration: none; border-bottom: 1px solid rgb(var(--light-rgb) / .32); }
.inline-link:hover { border-bottom-color: var(--light); }

/* ── Knöpfe: ein gefüllter, ein stiller. Radius = halbe Höhe. ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding-inline: 28px;
  border-radius: 27px; border: 0; font: 600 17px/1 var(--ui); letter-spacing: -.01em; text-decoration: none;
  cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--light); color: var(--on-light); }
.btn-primary:hover { background: color-mix(in srgb, var(--light) 88%, #fff); }
.btn-quiet { background: transparent; color: var(--ink-2); font-weight: 500; box-shadow: inset 0 0 0 1px var(--hair-strong); }
.btn-quiet:hover { color: var(--ink); background: var(--surface); }
.btn-sm { height: 40px; padding-inline: 18px; border-radius: 20px; font-size: 15px; }
.actions { display: flex; gap: 12px; max-width: 470px; }
.actions .btn-primary { flex: 1.6 1 0; }   /* 1,6 : 1 — Haupt- zu Nebenknopf */
.actions .btn-quiet { flex: 1 1 0; }

/* ── Kopf ── */
.top { position: sticky; top: 0; z-index: 30; }
.top::before { content: ""; position: absolute; inset: 0; background: rgb(var(--ground-rgb) / .78);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--hair);
  opacity: 0; transition: opacity .25s linear; }
.top.is-scrolled::before { opacity: 1; }
.top .wrap { position: relative; display: flex; align-items: center; gap: 32px; height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.mark svg, .mark img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px var(--hair-strong); }
.mark span { font: 600 21px/1 var(--serif); letter-spacing: -.015em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font: 400 11px/14px var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
  text-decoration: none; padding-block: 6px; }
.nav a:hover { color: var(--ink); }
.top .btn { margin-left: 8px; }

/* ── Anfang ── */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: clamp(40px, 6vw, 104px); row-gap: 56px; padding-block: clamp(36px, 5vw, 64px) clamp(96px, 10vw, 150px); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; max-width: 660px; }
.hero-copy .lightnote { font-size: 13px; line-height: 19px; color: var(--ink-3); max-width: 44ch; }
.hero-copy .lightnote b { font-weight: 500; color: var(--ink-2); }

/* ── Der Himmel (SkyView / SkyField): Horizont, Bahn, Marken, Sonne, Mond — gezeichnet von sonne.js ──
   Deckkräfte und Radien kommen aus licht-tokens.css; hier nur Lage und Bewegung. */
.sky { position: relative; height: var(--sky-h); }
.sky svg, .phone .psky svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sky::before, .phone .psky::before { content: ""; position: absolute; top: var(--sky-horizon); height: 1px; background: var(--hair); }  /* ohne Skript: nur der Horizont */
.sky::before { left: 0; right: 0; }
.phone .psky::before { left: 24px; right: 24px; }
.sky.is-drawn::before, .phone .psky.is-drawn::before { display: none; }
.sky .sky-date { position: absolute; left: 0; top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.sky .sky-next { position: absolute; right: 0; bottom: 10px; }
.sk-horizon { stroke: var(--hair); stroke-width: 1; }
.sk-behind, .sk-ahead { fill: none; stroke-width: 1; }
.sk-mark { stroke-width: 1; }
.sk-outer { transform-box: fill-box; transform-origin: center;
  animation: atmen calc(var(--t-sun-breath) / 2) ease-in-out infinite alternate; }   /* 6 s hin und zurück: ±10 %, 0,14 → 0,11 */
.is-night .sk-outer, .sky:not(.is-breathing) .sk-outer, .psky:not(.is-breathing) .sk-outer { animation: none; }
.is-fading svg { animation: skyfade var(--t-reduced) linear both; }
@keyframes skyfade { from { opacity: 0; } }

/* ── Das Telefon: 393 × 852 pt, 1 px = 1 pt, skaliert über --s. Die Stände der Telefone: licht-tokens.css ── */
.device { --s: .84; width: calc(411px * var(--s)); height: calc(870px * var(--s)); flex: none; position: relative; }
.phone { position: absolute; left: 0; top: 0; width: 393px; height: 852px; box-sizing: content-box;
  border: 9px solid #050505; border-radius: 65px; overflow: hidden; transform: scale(var(--s)); transform-origin: 0 0;
  background: var(--ground); color: var(--ink); font-family: var(--ui); letter-spacing: -.01em;
  box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / .10); isolation: isolate; }
.phone::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: var(--grain-a); pointer-events: none; z-index: 9; }
.phone .gl { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(var(--pw, var(--lw)) var(--ph, var(--lh)) at var(--plx, var(--lx)) var(--ply, var(--ly)),
    rgb(var(--light-rgb) / calc(var(--ps, var(--ls)) * var(--ls-k) * var(--rise-k, 1))), transparent 72%); }
/* Erledigt: das Licht geht einmal über den ganzen Bildschirm — LightPlan.Mode.done, 900 ms (wachsen + halten) */
.phone .pulse { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(var(--done-w) var(--done-h) at var(--done-x) var(--done-y), rgb(var(--light-rgb) / var(--done-s)), transparent 72%); }
.phone .pulse.is-on { animation: puls calc(var(--t-done-grow) + var(--t-done-hold)) var(--rise) both; }
@keyframes puls { 28% { opacity: 1; } to { opacity: 0; } }
.phone .isl { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 126px; height: 37px;
  border-radius: 19px; background: #000; z-index: 20; }
.phone .hom { position: absolute; left: 50%; transform: translateX(-50%); bottom: 9px; width: 139px; height: 5px;
  border-radius: 3px; background: var(--ink); opacity: .24; z-index: 20; }
.phone .scr { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; }
.phone .sb { height: 60px; flex: none; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 32px 7px 40px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.phone .sb .rr { display: flex; gap: 6px; align-items: center; opacity: .85; }
.phone .sb .rr i { display: block; background: currentColor; }
.phone .sb .rr .sig { width: 17px; height: 11px; clip-path: polygon(0 100%, 0 70%, 22% 70%, 22% 100%, 26% 100%, 26% 48%, 48% 48%, 48% 100%, 52% 100%, 52% 24%, 74% 24%, 74% 100%, 78% 100%, 78% 0, 100% 0, 100% 100%); }
.phone .sb .rr .w { width: 16px; height: 12px; clip-path: polygon(0 38%, 50% 0, 100% 38%, 86% 56%, 50% 30%, 14% 56%, 0 38%, 22% 66%, 50% 48%, 78% 66%, 64% 82%, 50% 72%, 36% 82%, 22% 66%); }
.phone .sb .rr .b { width: 25px; height: 12px; border-radius: 4px; }
.phone .bd { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0 24px; }
.phone .dsp { font-family: var(--serif); font-weight: 600; letter-spacing: -.014em; }
.phone .d27 { font-size: 27px; line-height: 34px; }
.phone .d34 { font-size: 34px; line-height: 41px; }
.phone .d22 { font-size: 22px; line-height: 28px; }
.phone .d60 { font-size: 60px; line-height: 62px; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.phone .d92 { font-size: 92px; line-height: 92px; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.phone .cap { font-size: 11px; line-height: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.phone .cap.l { color: var(--light); }
.phone .b16 { font-size: 16px; line-height: 23px; }
.phone .b14 { font-size: 14.5px; line-height: 21px; color: var(--ink-2); }
.phone .b13 { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.phone .it { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; line-height: 25px; color: var(--ink-2); }
.phone .hr { height: 1px; background: var(--hair); flex: none; }
.phone .pbtn { height: 54px; border-radius: 27px; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em; background: var(--light); color: var(--on-light); }
.phone .pbtn.gh { background: transparent; color: var(--ink-2); font-weight: 500; box-shadow: inset 0 0 0 1px var(--hair-strong); }
.phone .pbtn.sm { height: 46px; border-radius: 23px; font-size: 15.5px; }
.phone .row2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 11px; }
.phone .tabs { flex: none; display: flex; padding: 14px 24px 30px; border-top: 1px solid var(--hair); position: relative; z-index: 3; }
.phone .tabs div { flex: 1; text-align: center; font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3); padding-bottom: 6px; }
.phone .tabs div.on { color: var(--light); box-shadow: inset 0 -1px 0 var(--light); }
.phone .seg { align-self: center; display: flex; gap: 2px; height: 40px; padding: 3px; margin-top: 4px; border-radius: 20px;
  background: rgb(var(--ink-rgb) / .045); box-shadow: inset 0 0 0 1px var(--hair); }
.phone .seg span { display: flex; align-items: center; padding: 0 17px; border-radius: 17px; font-size: 15px; color: var(--ink-2); }
.phone .seg span.on { background: rgb(var(--light-rgb) / .15); color: var(--light); font-weight: 600; }
/* Der Himmel auf Heute: 132 pt, randlos (die Bahn hält 24 pt Rand), beginnt bei 71 pt — SkyGeometry.stripTop */
.phone .psky { position: relative; flex: none; height: var(--sky-h-app); margin: 11px -24px 0; }
.phone .psky-date { position: absolute; left: 24px; top: 18px; }
.phone .psky .me { position: absolute; right: 24px; top: 4px; }
.phone .psky-next { position: absolute; right: 24px; bottom: 10px; }
.phone .psky + .seg { margin-top: 16px; }
.phone .me { width: 40px; height: 40px; border-radius: 20px; background: rgb(var(--ink-rgb) / .06);
  box-shadow: inset 0 0 0 1px var(--hair); display: grid; place-items: center; color: var(--ink-2); }
.phone .line { height: 2px; background: var(--hair-strong); border-radius: 1px; position: relative; overflow: hidden; }
.phone .line i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--light); border-radius: 1px; display: block; }
.phone .dots { display: flex; gap: 7px; align-items: center; }
.phone .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--light); display: block; }
.phone .dots i.free { background: transparent; box-shadow: inset 0 0 0 1px var(--hair-strong); }
.phone .dots i.now { background: transparent; box-shadow: inset 0 0 0 1px var(--light); }
.phone .dots i.ember { background: var(--ember); }
.phone .rowl { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.phone .rowl .v { margin-left: auto; color: var(--ink-3); font-size: 14.5px; }
.phone .pill { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px;
  border-radius: 20px; font-size: 15px; box-shadow: inset 0 0 0 1px var(--hair-strong); color: var(--ink-2); }
.phone .pill.on { background: var(--light); color: var(--on-light); box-shadow: none; font-weight: 600; }
.phone .emb { width: 10px; height: 10px; border-radius: 5px; background: var(--ember); display: block;
  box-shadow: 0 0 14px 3px rgb(232 179 106 / .45); animation: glimmen 3s ease-in-out infinite alternate; }
@keyframes glimmen { from { opacity: .72; } to { opacity: 1; } }   /* die Glut des Deals — die einzige Endlosbewegung neben dem Atmen */
.phone .grow { flex: 1; min-height: 12px; }

/* ── Abschnitte ── */
.sec { position: relative; padding-block: clamp(96px, 12vw, 176px); }
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.sec-head .text { margin-top: 4px; }

/* ── Nachrechnen ── */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); margin-top: 64px; align-items: start; }
.calc-in { display: flex; flex-direction: column; }
.field { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 16px; padding-block: 15px;
  border-top: 1px solid var(--hair); min-height: 72px; }
.field:last-of-type { border-bottom: 1px solid var(--hair); }
.field > .caps { align-self: center; }
.scale { display: flex; flex-wrap: wrap; gap: 6px; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scale span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-inline: 14px; border-radius: 18px;
  font-size: 14px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair-strong); cursor: pointer; }
.scale span small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.scale input:checked + span { background: rgb(var(--light-rgb) / .15); color: var(--light); box-shadow: none; font-weight: 600; }
.scale input:checked + span small { color: rgb(var(--light-rgb) / .72); }
.scale input:focus-visible + span { outline: 1px solid var(--light); outline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; height: 44px; border-radius: 22px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hair); padding-left: 4px; }
.chip input { width: 2.7em; height: 44px; background: transparent; border: 0; color: var(--ink); text-align: center;
  font: 600 19px/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.01em; padding: 0; border-radius: 22px; }
.chip input:focus { outline: none; }
.chip:focus-within { box-shadow: inset 0 0 0 1px var(--light); }
.chip .x { width: 26px; height: 44px; border: 0; background: transparent; color: var(--ink-3); font: 400 17px/1 var(--ui); cursor: pointer; padding: 0 8px 0 0; }
.chip .x:hover { color: var(--ink); }
.chip.is-off input { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.add { height: 44px; padding-inline: 16px; border-radius: 22px; border: 0; background: transparent; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--hair-strong); font: 500 15px/1 var(--ui); cursor: pointer; }
.add:hover { color: var(--ink); background: var(--surface); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 22px; border: 0; background: transparent; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--hair-strong); font: 400 22px/1 var(--ui); cursor: pointer; }
.stepper button:hover { color: var(--ink); background: var(--surface); }
.stepper output { min-width: 3.4em; text-align: center; font: 600 22px/1 var(--serif); font-variant-numeric: tabular-nums; }
.textin, .datein { height: 44px; border: 0; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--ink); font: 400 16px/1 var(--ui); padding-inline: 16px; width: 100%; max-width: 260px; }
.textin:focus, .datein:focus { outline: none; box-shadow: inset 0 0 0 1px var(--light); }
.datein::-webkit-calendar-picker-indicator { filter: invert(.8); opacity: .6; }
.weights { font-size: 13px; line-height: 19px; color: var(--ink-3); margin-top: 14px; max-width: 52ch; }
.calc-out { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.calc-out .big { font-family: var(--serif); font-weight: 400; font-size: clamp(96px, 11vw, 148px); line-height: .86;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums lining-nums; color: var(--light); }
.calc-out .big.is-quiet { color: var(--ink-3); }
.calc-out .say { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.3vw, 30px); line-height: 1.22;
  letter-spacing: -.014em; text-wrap: balance; max-width: 22em; }
.calc-out .now { font-size: 15px; line-height: 23px; color: var(--ink-2); }
.calc-out .fine { font-size: 13px; line-height: 20px; color: var(--ink-3); max-width: 50ch; padding-top: 18px; border-top: 1px solid var(--hair); margin-top: 8px; }
.school { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); margin-top: clamp(80px, 9vw, 128px); }
.school div { border-top: 1px solid var(--hair-strong); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.school h3 { font-size: 22px; }
.school p { font-size: 15px; line-height: 23px; color: var(--ink-2); }

/* ── Ein Tag, gescrollt ──
   Breit: der Rahmen steht (sticky), vier Takte liegen übereinander, der Tag läuft mit dem Scrollen.
   Schmal und ohne JavaScript: die vier Takte untereinander, das Licht wandert trotzdem mit. */
.day .sec-head { padding-top: clamp(96px, 12vw, 176px); }
.stage { position: relative; margin-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(96px, 12vw, 176px); }
.beats { display: flex; flex-direction: column; gap: clamp(88px, 11vw, 144px); }
.beat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: clamp(40px, 6vw, 104px); row-gap: 36px; }
.beat-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.beat .clock { font-family: var(--serif); font-weight: 400; font-size: clamp(60px, 8.4vw, 128px); line-height: .9;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums lining-nums; }
.beat h3 { font-size: clamp(26px, 2.9vw, 40px); line-height: 1.1; letter-spacing: -.018em; max-width: 15em; }
.beat .text { font-size: 17px; line-height: 27px; max-width: 46ch; }
.beat .device { --s: .74; }
.ticks { display: none; }
@media (min-width: 961px) {
  .stage.is-live { height: 440vh; padding-bottom: 0; }
  .stage.is-live .stage-frame { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column;
    justify-content: center; padding-top: 68px; }
  .stage.is-live .beats { display: grid; gap: 0; }
  .stage.is-live .beat { grid-area: 1 / 1; visibility: hidden; }
  .stage.is-live .beat.is-on { visibility: visible; }
  .stage.is-live .beat .device { --s: var(--stage-s, .76); }
  .stage.is-live .ticks { display: flex; position: relative; margin-top: 30px; max-width: 460px; }
}
.ticks::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--hair-strong); }
.ticks::after { content: ""; position: absolute; left: 0; top: 3px; height: 2px; width: var(--fill, 0%); background: var(--light); border-radius: 1px; }
.ticks li { flex: 1; position: relative; padding-top: 20px; font: 400 11px/14px var(--ui); letter-spacing: .12em; color: var(--ink-3);
  font-variant-numeric: tabular-nums; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; z-index: 1;
  background: var(--ground); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.ticks li.is-past::before { background: var(--light); box-shadow: none; }
.ticks li.is-on { color: var(--light); }
.ticks li.is-on::before { background: var(--light); box-shadow: 0 0 0 5px rgb(var(--light-rgb) / .16); }

/* ── Der Weg ── */
.path { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 32px); margin-top: 72px; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--hair-strong); }
.path::after { content: ""; position: absolute; left: 0; top: 4px; height: 2px; width: 8.5%; background: var(--light); border-radius: 1px; }
.stop { position: relative; padding-top: 34px; display: flex; flex-direction: column; gap: 8px; }
.stop::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ground); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.stop.now::before { background: var(--light); box-shadow: 0 0 0 6px rgb(var(--light-rgb) / .16); }
.stop .caps { font-size: 10.5px; }
.stop h3 { font-size: clamp(22px, 1.9vw, 26px); }
.stop p { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.stop.now h3 { color: var(--ink); }
.stop:not(.now) h3 { color: var(--ink-2); }
.path-foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px;
  border-top: 1px solid var(--hair); }
.path-foot p { font-size: 15px; line-height: 23px; color: var(--ink-2); max-width: 56ch; }
.remain { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2vw, 26px); line-height: 1.25; letter-spacing: -.014em; }

/* ── Privat ── */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); margin-top: 64px; }
.fact { border-top: 1px solid var(--hair-strong); padding-block: 22px 30px; display: flex; flex-direction: column; gap: 8px; }
.fact h3 { font-size: 24px; }
.fact p { color: var(--ink-2); font-size: 16px; line-height: 25px; max-width: 44ch; }
.exception { margin-top: 36px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding-top: 22px;
  border-top: 1px solid var(--hair); }
.exception p { color: var(--ink-2); max-width: 64ch; }

/* ── Stimme ── */
.voice blockquote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.42; letter-spacing: -.01em; max-width: 30em; text-wrap: pretty; }
.voice figcaption { margin-top: 28px; }

/* ── Anfangen ── */
.start { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.start .sec-head { gap: 22px; }
.start .actions { margin-top: 12px; }
.steps { counter-reset: s; display: flex; flex-direction: column; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding-block: 20px;
  border-top: 1px solid var(--hair); }
.steps li:last-child { border-bottom: 1px solid var(--hair); }
.steps li::before { content: counter(s); font: 400 28px/1 var(--serif); color: var(--light); grid-row: span 2; padding-top: 2px; }
.steps b { font-weight: 600; font-size: 17px; }
.steps span { color: var(--ink-2); font-size: 15px; line-height: 23px; }

/* ── Fragen ── */
.faq { margin-top: 56px; max-width: 860px; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px; padding-block: 22px;
  font: 600 clamp(19px, 1.7vw, 22px)/1.3 var(--serif); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font: 300 24px/1 var(--ui); color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 26px; color: var(--ink-2); max-width: 64ch; display: flex; flex-direction: column; gap: 12px; }
.status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 4px; }
.status h4 { margin: 0 0 8px; font: 400 11px/14px var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.status ul { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 22px; }

/* ── Fuß ── */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--hair); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; padding-block: 40px 56px; }
.foot p { font-size: 14px; line-height: 22px; color: var(--ink-3); max-width: 70ch; }
.foot .legal { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.foot .legal a { font: 400 11px/14px var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; }
.foot .legal a:hover { color: var(--ink); }
.foot .fine { grid-column: 1 / -1; font-size: 12px; line-height: 18px; }

/* ── Unterseiten ── */
.solo { min-height: 100svh; display: flex; flex-direction: column; }
.solo main { flex: 1; display: flex; align-items: center; }
.solo .wrap.narrow { max-width: 760px; }
.doc { padding-block: clamp(48px, 7vw, 96px) clamp(80px, 10vw, 140px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(34px, 5vw, 64px); margin-top: 18px; }
.doc .lede { margin-top: 22px; }
.doc section { border-top: 1px solid var(--hair); margin-top: 48px; padding-top: 28px; }
.doc h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 14px; }
.doc h3 { font-size: clamp(20px, 1.8vw, 23px); margin: 24px 0 10px; }
.doc h4 { font-family: var(--serif); font-weight: 600; font-size: 18px; margin: 18px 0 8px; }
.doc p, .doc li { color: var(--ink-2); max-width: 68ch; }
.doc p + p { margin-top: 12px; }
.doc ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.doc li { padding-left: 22px; position: relative; }
.doc li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 7px; height: 1px; background: var(--ink-3); }
.doc address { font-style: normal; color: var(--ink); margin-top: 12px; line-height: 27px; }
.doc code { font: 400 .92em/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--light); text-decoration: none; border-bottom: 1px solid rgb(var(--light-rgb) / .32); }
.doc a:hover { border-bottom-color: var(--light); }
.invite { width: 100%; max-width: 460px; margin-inline: auto; display: flex; flex-direction: column; gap: 22px; text-align: left; }
.invite .code { font: 600 44px/1 var(--serif); letter-spacing: .14em; font-variant-numeric: tabular-nums; padding: 22px 0 20px;
  border-block: 1px solid var(--hair-strong); }
.invite .stack { display: flex; flex-direction: column; gap: 12px; }
.invite .stack .btn { width: 100%; }
.invite .hint { font-size: 14px; line-height: 22px; color: var(--ink-3); }
.invite .stack .hint { text-align: center; }
/* Die Rechtsseiten: die Nummern der Nutzungsbedingungen kommen aus einem Zähler, nicht aus dem Text */
.doc.numbered { counter-reset: abschnitt; }
.doc.numbered section > h2::before { counter-increment: abschnitt; content: counter(abschnitt) ". "; color: var(--ink-3); }
.doc h2.part { margin-top: 8px; }
/* Der Hinweis der Einladungsseite („Code kopiert") — dieselbe Fläche wie ein stiller Knopf, kein Schatten */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); z-index: 40;
  background: rgb(var(--ground-rgb) / .92); box-shadow: inset 0 0 0 1px var(--hair-strong); color: var(--ink);
  padding: 12px 18px; border-radius: 22px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s linear, transform .25s var(--rise); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Breiten ── */
@media (max-height: 860px) and (min-width: 961px) { .hero .device { --s: .74; } }
@media (max-height: 740px) and (min-width: 961px) { .hero .device { --s: .64; } }
@media (max-width: 1100px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .path::before, .path::after { display: none; }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .device { --s: .8; justify-self: center; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-out { position: static; }
  .school { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .start { grid-template-columns: minmax(0, 1fr); }
  .beat { grid-template-columns: minmax(0, 1fr); }
  .beat .device { justify-self: center; --s: .72; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .exception { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .status { grid-template-columns: minmax(0, 1fr); }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot .legal { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .field { grid-template-columns: minmax(0, 1fr); gap: 10px; min-height: 0; }
  .path { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-left: 30px; margin-top: 48px; }
  .path::before { display: block; left: 5px; right: auto; top: 6px; bottom: 30px; width: 1px; height: auto; }
  .stop { padding-top: 0; padding-bottom: 30px; }
  .stop::before { left: -30px; top: 8px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; line-height: 25px; }
  .actions { max-width: none; }
  .btn { padding-inline: 20px; }
  .hero .device { --s: .72; }
  .top .btn { height: 38px; font-size: 14px; }
  .mark span { font-size: 20px; }
  .calc-out .big { font-size: 104px; }
}

/* ── Bewegung reduzieren: keine Reise, nur Überblenden (250 ms) — LightMotion.reducedDuration ── */
@media (prefers-reduced-motion: reduce) {
  .phone .emb { animation: none; }
  .sk-outer { animation: none; }
  .phone .pulse.is-on { animation: none; }
  .sk-mark { transition: none; }
  .top::before { transition: none; }
}
