/* Lab Rat — Landing Page
 * Farben und Formen aus der App: labPageBackground / labSurface
 * (LabPalette.swift), Hairline primary 5 %, Kartenradius 20 / Zeilen 16,
 * Eck-Aussparungen (notch.js ← NotchedCard.swift), Seitenrand 20,
 * Titel-Stil 12 bold primary 70 % (labTitleStyle). Monochrom; Farbe tragen
 * nur die Substanzfarben (MedicationColorPalette) und das Maskottchen. */

@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --page: #f8f8f8;
  --surface: #ffffff;
  --ink: #0b0b0c;
  --ink-2: rgba(11, 11, 12, 0.6);
  --ink-3: rgba(11, 11, 12, 0.36);
  --ink-t3: rgba(11, 11, 12, 0.57); /* tertiärer TEXT: 4,5:1 auf --page (--ink-3 bleibt für Linien/Flächen) */
  --hair: rgba(0, 0, 0, 0.07);
  --fill: rgba(0, 0, 0, 0.06);
  --grey-card: #ebebeb;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 50px -20px rgba(0, 0, 0, 0.16);
  --red: #ef4444;
  --mouse: #ef6437;
  --dot: rgba(11, 11, 12, 0.16);
  --glow-a: 0.7;
  --curve-a: 0.38;
  --bezel: #0b0b0c;
  --bezel-edge: #3a3a3e;
  --night: #07070c;
  --gutter: 20px;
  --max: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #000000;
    --surface: #0e0e10;
    --ink: #f5f5f7;
    --ink-2: rgba(245, 245, 247, 0.62);
    --ink-3: rgba(245, 245, 247, 0.38);
    --ink-t3: rgba(245, 245, 247, 0.5);
    --hair: rgba(255, 255, 255, 0.08);
    --fill: rgba(255, 255, 255, 0.08);
    --grey-card: #212123;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 50px -20px rgba(0, 0, 0, 0.9);
    --night: #05050a;
    --dot: rgba(255, 255, 255, 0.14);
    --glow-a: 0.44;
    --curve-a: 0.5;
    --bezel: #1c1c1f;
    --bezel-edge: #4a4a50;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #000000; --surface: #0e0e10; --ink: #f5f5f7;
  --ink-2: rgba(245, 245, 247, 0.62); --ink-3: rgba(245, 245, 247, 0.38); --ink-t3: rgba(245, 245, 247, 0.5);
  --hair: rgba(255, 255, 255, 0.08); --fill: rgba(255, 255, 255, 0.08);
  --grey-card: #212123; --night: #05050a; color-scheme: dark;
  --dot: rgba(255, 255, 255, 0.14); --glow-a: 0.44; --curve-a: 0.5; --bezel: #1c1c1f; --bezel-edge: #4a4a50;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.5 "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
img, svg { display: block; }
/* Betonung: dieselbe Schrift und Farbe, darunter ein gezeichneter Strich in
 * der Farbe der Maus. --u (0…1) ist der gezeichnete Anteil; main.js
 * animiert ihn bei jedem Auftauchen neu. */
em { font-style: normal; }
.display em, .display-2 em, .hero-q em { position: relative; display: inline-block; --u: 0; }
.display em::after, .display-2 em::after, .hero-q em::after {
  content: ""; position: absolute; left: -0.02em; right: -0.02em; bottom: -0.13em; height: 0.18em;
  background: var(--mouse);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M4 8C48 4.2 118 3 196 5.6' fill='none' stroke='%23000' stroke-width='7.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M4 8C48 4.2 118 3 196 5.6' fill='none' stroke='%23000' stroke-width='7.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  clip-path: inset(0 calc((1 - var(--u)) * 100%) 0 0);
  pointer-events: none;
}

/* ── Typo ─────────────────────────────────────── */
.display {
  font-size: clamp(46px, 6.4vw, 104px);
  line-height: 0.94;
  font-weight: 720;
  letter-spacing: -0.048em;
  margin: 0;
}
.display-2 {
  font-size: clamp(38px, 5.8vw, 88px);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.042em;
  margin: 0;
  text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; margin: 24px 0 0; text-wrap: pretty; }
.fine { font-size: 13px; color: var(--ink-t3); margin-top: 18px; }
.muted { color: var(--ink-2); }
.kicker { font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--ink) 70%, transparent); margin: 0 0 18px; }

/* Wörter fürs Hochschieben (main.js splitWords) */
.w { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; will-change: transform; }

/* ── Knöpfe ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--page);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s cubic-bezier(.3, 1.6, .5, 1);
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--mouse); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair), inset 0 0 0 1px var(--fill); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-big { height: 64px; padding: 0 36px; font-size: 18px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--hair), var(--shadow);
  font-size: 13px; font-weight: 600; margin: 0 0 28px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px color-mix(in srgb, #10b981 22%, transparent); }

/* ── Fortschritt + Nav ────────────────────────── */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--page) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 0.5px 0 var(--hair);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -0.02em; }
.brand-mascot { width: 40px; height: 28px; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
body.night-nav .nav { background: color-mix(in srgb, var(--night) 72%, transparent); color: #f5f5f7; box-shadow: 0 0.5px 0 rgba(255,255,255,.08); }
body.night-nav .nav-links a { color: rgba(245,245,247,.62); }
body.night-nav .nav .btn { background: #f5f5f7; color: #000; }
.nav { transition: background-color .45s ease, color .45s ease; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn-small { margin-left: auto; } }

/* ── Layout ───────────────────────────────────── */
main > section { padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.section-head { max-width: 920px; margin-bottom: 72px; }

/* ── Notched cards (notch.js) ─────────────────── */
.notched { position: relative; isolation: isolate; }
.notch-bg { position: absolute; inset: 0; z-index: -1; overflow: visible; pointer-events: none; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.06)); }
.notch-bg path { fill: var(--surface); stroke: var(--hair); stroke-width: 1; }
.corner-btn {
  position: absolute; right: 0; width: var(--notch-btn); height: var(--notch-btn);
  border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--hair);
}
.notch-top > .corner-btn { top: 0; }
.notch-bottom > .corner-btn { bottom: 0; }
.corner-btn svg { width: 17px; height: 17px; fill: none; stroke: color-mix(in srgb, var(--ink) 75%, transparent); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.corner-btn[data-type="plus"] {
  --a: var(--accent, var(--ink));
  background: linear-gradient(135deg, color-mix(in srgb, var(--a) 28%, var(--surface)), color-mix(in srgb, var(--a) 14%, var(--surface)));
  box-shadow: none;
}
.corner-btn[data-type="plus"] svg { stroke: var(--a); }
.corner-btn[data-type="check"] { background: var(--ink); box-shadow: none; }
.corner-btn[data-type="check"] svg { stroke: var(--page); stroke-width: 2.8; }

.bar { width: 4px; align-self: stretch; min-height: 32px; border-radius: 2px; background: var(--accent, var(--ink)); flex: none; }

/* ── Screenshot-Platzhalter ───────────────────── */
.shot {
  position: relative; margin: 0;
  width: min(300px, 68vw); aspect-ratio: 1206 / 2622;
  border-radius: 46px; background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--hair), 0 0 0 9px var(--bezel), 0 0 0 10px var(--bezel-edge), 0 40px 90px -30px rgba(0, 0, 0, 0.45);
  display: grid; place-items: center; text-align: center; overflow: hidden;
}
.shot::before {
  content: ""; position: absolute; inset: 14px; border-radius: 34px;
  border: 1.5px dashed var(--ink-3);
  background: repeating-linear-gradient(-45deg, transparent 0 14px, var(--fill) 14px 15px);
}
.shot::after {
  content: attr(data-shot);
  position: relative; font: 600 13px/1.3 ui-monospace, "SF Mono", Menlo, monospace;
  padding: 7px 11px; border-radius: 8px; background: var(--page); box-shadow: inset 0 0 0 0.5px var(--hair);
  max-width: 82%; overflow-wrap: anywhere;
}
.shot figcaption {
  position: absolute; left: 28px; right: 28px; bottom: 30px;
  font-size: 12px; line-height: 1.35; color: var(--ink-2);
}
.shot.has-img::before, .shot.has-img::after, .shot.has-img figcaption { display: none; }
.shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot:not(.has-img) > img { visibility: hidden; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px;
  padding-top: 110px !important; padding-bottom: 60px !important;
  position: relative; isolation: isolate;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-stage { position: relative; display: grid; place-items: center; padding-top: 150px; }
.hero-stage > .shot { z-index: 2; transform-origin: 50% 100%; width: min(270px, 64vw); }
.hero-mascot-window {
  position: absolute; z-index: 1; top: 0; left: 50%;
  width: 300px; height: 210px; transform: translateX(-50%);
  clip-path: inset(-300px -300px 0 -300px); pointer-events: none;
}
.hero-mascot { position: absolute; left: 0; right: 0; bottom: -6px; height: 240px; }
.hero-mascot .mascot-svg, [data-mascot] > .mascot-svg { width: 100%; height: 100%; }
.float-card {
  position: absolute; z-index: 3; right: -6px; bottom: 90px;
  display: flex; gap: 12px; align-items: center;
  padding: 14px 52px 14px 14px; min-width: 210px;
}
.float-card strong { display: block; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.float-card .muted { font-size: 15px; font-weight: 500; color: var(--ink); }
.float-card .bar { min-height: 36px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 96px !important; }
  .hero-stage { margin-top: 10px; }
  .float-card { right: 0; bottom: 60px; }
}

/* ── Laufband ─────────────────────────────────── */
.marquee { overflow: clip; padding: 34px 0; border-block: 0.5px solid var(--hair); margin: 40px 0 0; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; will-change: transform; }
.marquee-track span { font-size: clamp(34px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; white-space: nowrap; }
.marquee-track i { width: 18px; height: 18px; border-radius: 50%; background: var(--mouse); flex: none; }
.marquee-track i:nth-of-type(3n+2) { background: #06b6d4; }
.marquee-track i:nth-of-type(3n) { background: #a855f7; }

/* ── Tagesablauf ──────────────────────────────── */
.story { height: 460vh; padding: 0 !important; position: relative; }
.story-sticky {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  padding: 64px max(var(--gutter), calc((100vw - var(--max)) / 2)) 0;
  /* Himmel: Farben setzt main.js je nach Scroll-Position (skyFrame) */
  background: linear-gradient(180deg, var(--sky-a, var(--page)), var(--sky-b, var(--page)));
  transition: color 0.45s ease;
}
.story-copy, .story-stage { position: relative; z-index: 1; }
.part-word { position: relative; height: 1.12em; font-size: clamp(56px, 8vw, 124px); line-height: 1; font-weight: 720; letter-spacing: -0.05em; overflow: clip; margin-bottom: -0.12em; }
.part { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(130%); }
.part-text { position: relative; height: 5.4em; margin-top: 26px; max-width: 26em; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); overflow: clip; }
.part-text p { position: absolute; inset: 0; margin: 0; transform: translateY(110%); }
.part-dots { display: flex; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.part-dots li { position: relative; width: 44px; height: 4px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.part-dots li::after { content: ""; position: absolute; inset: 0; background: currentColor; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.story-stage { position: relative; justify-self: center; width: min(380px, 100%); padding-top: 170px; }
.story-mascot { position: absolute; top: 0; left: 50%; width: 260px; height: 200px; margin-left: -130px; z-index: 0; }
.plan { position: relative; z-index: 1; display: grid; gap: 8px; }
.plan-head {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 14px;
  border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--hair);
}
.plan-head .notch-bg { opacity: 0; }
.plan-head .corner-btn { transform: scale(0); opacity: 0.55; }
.plan-head.done { background: transparent; box-shadow: none; }
.plan-head.done .notch-bg { opacity: 1; }
.plan-head.done .notch-bg path { fill: var(--grey-card); }
.plan-title { font-size: 15px; font-weight: 650; }
.plan-meta { font-size: 13px; color: var(--ink-2); }
.plan-rows { display: grid; gap: 8px; min-height: 140px; align-content: start; }
.row {
  display: flex; align-items: center; gap: 12px; min-height: 62px;
  padding: 12px calc(var(--notch-reserve, 34px) + 6px) 12px 14px;
}
.row .name { font-size: 16px; font-weight: 600; line-height: 1.2; }
.row .sub { font-size: 13px; color: var(--ink-2); }
.row.tracked > :not(.corner-btn):not(.notch-bg) { opacity: 0.55; }
.row.tracked > .corner-btn { opacity: 0.55; }
.row.tracked .notch-bg path { fill: color-mix(in srgb, var(--surface) 72%, var(--grey-card)); }

.zzz { position: absolute; top: 4px; left: 62%; z-index: 2; font-weight: 800; pointer-events: none; }
.zzz span { position: absolute; display: block; transform: scale(0); font-size: 30px; }
.zzz span:nth-child(2) { left: 28px; top: -26px; font-size: 22px; }
.zzz span:nth-child(3) { left: 50px; top: -48px; font-size: 16px; }

/* Himmel hinter dem Tagesablauf: Sonne, Mond, Wolken, Sterne */
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: clip; }
.stars { position: absolute; inset: 0; }
.sun, .moon { position: absolute; left: 0; top: 0; width: 150px; height: 150px; margin: -75px 0 0 -75px; will-change: transform; }
.sun svg, .moon svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sun-glow, .moon-glow { position: absolute; inset: -40%; border-radius: 50%; }
.sun-glow { background: radial-gradient(closest-side, rgba(255, 196, 64, .55), rgba(255, 196, 64, 0)); }
.sun-rays rect { fill: #ffc23d; }
.sun-core { fill: #ffb81c; }
.sun-shine { fill: #ffe08a; }
.moon { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
.moon-pop { position: absolute; inset: 0; transform: scale(0); }
.moon-glow { background: radial-gradient(closest-side, rgba(220, 228, 255, .35), rgba(220, 228, 255, 0)); }
.moon-core { fill: #eef0f8; }
.crater { fill: #d5daea; }
.cloud { position: absolute; left: 0; width: 220px; height: auto; fill: var(--cloud, #fff); opacity: var(--cloud-o, .9); will-change: transform; }
.cloud:nth-child(1) { top: 9%; width: 240px; }
.cloud:nth-child(2) { top: 22%; width: 150px; }
.cloud:nth-child(3) { top: 4%; width: 120px; }
.cloud:nth-child(4) { top: 31%; width: 200px; }
.cloud:nth-child(5) { top: 15%; width: 170px; }
.cloud:nth-child(6) { top: 70%; width: 260px; }
@media (max-width: 900px) {
  .sun { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
  .moon { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
  .cloud { width: 140px; }
}
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; transform: scale(0); }

.story.is-night .story-sticky { color: #f5f5f7; --ink: #f5f5f7; --ink-2: rgba(245,245,247,.62); --ink-3: rgba(245,245,247,.38); --surface: #121218; --hair: rgba(255,255,255,.08); --fill: rgba(255,255,255,.1); --grey-card: #1d1d25; --page: #05050a; }

@media (max-width: 900px) {
  .story-sticky { grid-template-columns: 1fr; align-content: center; gap: 4px; padding-top: 72px; }
  .part-word { font-size: 64px; }
  .part-text { height: 4.6em; margin-top: 14px; font-size: 16px; }
  .part-dots { margin-top: 6px; }
  .story-stage { padding-top: 118px; width: min(360px, 100%); }
  .story-mascot { width: 180px; height: 140px; margin-left: -90px; }
  .plan-rows { min-height: 136px; }
}

/* ── Funktionen ───────────────────────────────── */
.features { padding-top: 160px !important; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  padding: 80px 0;
}
.feature-flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; margin: 14px 0 18px; }
.feature-copy > p { color: var(--ink-2); font-size: 18px; max-width: 30em; margin: 0; }
.num { font: 600 13px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-t3); }
.feature-media { position: relative; display: grid; place-items: center; min-height: 600px; }
.feature-media .shot { width: min(280px, 64vw); z-index: 2; }
.feature-media .shot-back { position: absolute; z-index: 1; width: min(240px, 54vw); transform: translate(46%, 8%) rotate(8deg); }
.feature-flip .feature-media .shot-back { transform: translate(-46%, 8%) rotate(-8deg); }

.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.4 3.3 3.3L17 8.6' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.4 3.3 3.3L17 8.6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.ticks-big li { font-weight: 400; color: var(--ink-2); font-size: 18px; }
.ticks-big b { color: var(--ink); font-weight: 650; }

.heat { margin-top: 30px; display: grid; gap: 14px; max-width: 460px; }
.heat-row { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 14px; font-size: 14px; }
.heat-row i { display: block; height: 10px; border-radius: 5px; background: var(--fill); position: relative; overflow: hidden; }
.heat-row i::after {
  content: ""; position: absolute; inset: 0; border-radius: 5px; transform-origin: 0 50%;
  transform: scaleX(calc(var(--w) * var(--grow, 0)));
  background: color-mix(in srgb, var(--red) calc(var(--w) * 100%), #fbbf9a);
}
.heat-row em { font: 500 13px "Inter Tight", sans-serif; color: var(--ink-2); text-align: right; }

.runway { margin-top: 32px; padding: 20px; max-width: 360px; --accent: #10b981; }
.runway-top { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.runway-top .bar { min-height: 18px; }
.runway-num { font-size: 52px; font-weight: 700; letter-spacing: -0.04em; margin: 8px 0 12px; }
.runway-meter { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.runway-meter i { display: block; height: 100%; width: 63%; border-radius: 4px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }


@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 40px; padding: 50px 0; }
  .feature-flip .feature-copy { order: 0; }
  .feature-media { min-height: 520px; }
}

/* ── Kurven ───────────────────────────────────── */
.curve-section { padding-top: 140px !important; padding-bottom: 120px !important; }
.curve-wrap { position: relative; display: grid; grid-template-columns: 1fr 230px; align-items: end; gap: 10px; }
.curve-card { padding: 18px 18px 16px; }
.curve-head { display: flex; gap: 6px; align-items: baseline; min-height: 24px; padding-right: 24px; font-size: 12px; }
.curve-head .title { font-weight: 700; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.curve-head .meta { font-weight: 500; color: var(--ink-2); }
.curve { width: 100%; height: auto; margin: 14px 0 10px; overflow: visible; }
.curve path { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.curve .c1 { stroke: #f97316; }
.curve .c2 { stroke: #06b6d4; }
.curve .now { stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.curve .dot { fill: var(--surface); stroke: #f97316; stroke-width: 4; }
.curve-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; font-weight: 500; }
.curve-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.curve-legend .muted { margin-left: auto; font-weight: 400; }
.curve-mascot { height: 230px; transform-origin: 50% 100%; }
.curve-shots { display: grid; grid-template-columns: auto 1fr; gap: 80px; align-items: center; margin-top: 120px; }
@media (max-width: 900px) {
  .curve-wrap { grid-template-columns: 1fr; }
  .curve-mascot { order: -1; height: 170px; margin-bottom: -18px; }
  .curve-shots { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
}

/* ── Privat ───────────────────────────────────── */
.privacy { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 60px; padding-top: 120px !important; padding-bottom: 160px !important; }
.privacy-mascot, .never-mascot, .final-mascot, .pricing-mascot { position: relative; }
.privacy-mascot { height: 360px; }
.bubble {
  position: absolute; z-index: 2; margin: 0; padding: 12px 18px; border-radius: 20px;
  background: var(--ink); color: var(--page); font-weight: 650; font-size: 17px; white-space: nowrap;
  transform: scale(0); transform-origin: 0% 100%;
}
.bubble::after { content: ""; position: absolute; left: 22px; bottom: -7px; width: 16px; height: 16px; background: inherit; border-radius: 3px; transform: rotate(45deg); }
.privacy-mascot .bubble { top: 6%; left: 58%; }
@media (max-width: 900px) {
  .privacy { grid-template-columns: 1fr; gap: 10px; }
  .privacy-mascot { height: 260px; }
}

/* ── Rote Linie ───────────────────────────────── */
.never { padding-top: 60px !important; padding-bottom: 160px !important; position: relative; }
.never-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.strike { position: relative; display: inline-block; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.strike-line { position: absolute; left: -4px; right: -4px; top: 54%; height: 4px; border-radius: 2px; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.never-item p { color: var(--ink-2); margin: 14px 0 0; }
.never-mascot { position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2)); top: -40px; width: 220px; height: 180px; }
.never-mascot .bubble { top: -6px; left: 70%; }
@media (max-width: 900px) {
  .never-grid { grid-template-columns: 1fr; gap: 28px; }
  .never-mascot { position: relative; right: auto; top: auto; margin: 20px auto 0; }
}

/* ── Preise ───────────────────────────────────── */
.pricing { padding-top: 60px !important; padding-bottom: 140px !important; position: relative; }
.pricing-mascot { height: 170px; width: 220px; margin: -40px auto -22px; z-index: 0; }
.price-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price { padding: 26px 22px 28px; --accent: var(--ink); cursor: default; }
.price h3 { font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--ink) 70%, transparent); margin: 0; }
.amount { margin: 18px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.amount b { font-size: 42px; letter-spacing: -0.04em; font-weight: 720; }
.amount span { color: var(--ink-2); font-size: 14px; }
.price .ticks { margin-top: 22px; font-size: 15px; }
.price .ticks li::before { width: 20px; height: 20px; background-size: 13px; }
.price-hot { --surface: var(--ink); color: var(--page); --ink-2: color-mix(in srgb, var(--page) 62%, transparent); --hair: transparent; }
.price-hot h3 { color: color-mix(in srgb, var(--page) 70%, transparent); }
.price-hot .corner-btn[data-type="plus"] { --a: var(--mouse); }
.price-hot .ticks li::before { background-color: var(--page); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.4 3.3 3.3L17 8.6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .price-hot .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.4 3.3 3.3L17 8.6' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }
.tag { position: absolute; top: -12px; left: 18px; margin: 0; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--mouse) 80%, #000); color: #fff; font-size: 12px; font-weight: 700; }
@media (max-width: 1000px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────── */
.faq { padding-bottom: 160px !important; }
.faq .section-head { margin-bottom: 30px; }
.faq-list { max-width: 860px; }
.faq details { border-bottom: 0.5px solid var(--ink-3); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 24px 0; font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 400; line-height: 1; transition: transform 0.35s cubic-bezier(.3, 1.6, .5, 1); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: -8px 0 26px; color: var(--ink-2); max-width: 40em; }

/* ── Final ────────────────────────────────────── */
.final { text-align: center; padding-top: 110px !important; padding-bottom: 140px !important; display: grid; justify-items: center; }
.final-mascot { width: 320px; height: 290px; margin-bottom: -6px; }
.final .lead { margin-inline: auto; }
.countdown { display: grid; grid-template-columns: repeat(4, 86px); gap: 10px; margin: 38px 0 40px; }
.countdown div { padding: 14px 0 12px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--hair), var(--shadow); overflow: clip; }
.countdown b { display: block; font-size: 36px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--ink) 70%, transparent); }
@media (max-width: 420px) { .countdown { grid-template-columns: repeat(4, 72px); } .final-mascot { width: 260px; height: 236px; } }

.footer {
  display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between;
  padding: 30px max(var(--gutter), calc((100vw - var(--max)) / 2)) 40px;
  border-top: 0.5px solid var(--hair); font-size: 13px; color: var(--ink-2);
}
.footer a { text-decoration: none; }

/* ── Widgets ──────────────────────────────────────
 * Nachbau der echten Widget-Ansichten (LabRatWidgets/WidgetViews*.swift):
 * Maße in pt = px, Innenabstand 14/12, Fläche labSurface, Schrift SF.
 * Das Theme der Widgets ist eigenständig (data-wtheme), damit der
 * Umschalter beide Fassungen zeigen kann; Start = Theme der Seite. */
@property --w-wall-a { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --w-wall-b { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --w-wall-c { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --w-blob-1 { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --w-blob-2 { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --w-blob-3 { syntax: '<color>'; inherits: true; initial-value: transparent; }
.widgets { transition: --w-wall-a .7s ease, --w-wall-b .7s ease, --w-wall-c .7s ease, --w-blob-1 .7s ease, --w-blob-2 .7s ease, --w-blob-3 .7s ease; }
.widgets { padding-top: 40px !important; padding-bottom: 140px !important; }
.widgets[data-wtheme="light"] {
  --w-surface: #ffffff; --w-ink: #000000; --w-bg: #ffffff;
  --w-2: rgba(60, 60, 67, 0.72); --w-3: rgba(60, 60, 67, 0.3); --w-fill: rgba(0, 0, 0, 0.12);
  --w-wall-a: #ffe1cf; --w-wall-b: #e9ddff; --w-wall-c: #d4ecff;
  --w-blob-1: #ffb08f; --w-blob-2: #c9b2ff; --w-blob-3: #9fd8ff;
  --w-shadow: 0 1px 1px rgba(0,0,0,.03), 0 10px 30px -12px rgba(60, 30, 20, .28);
}
.widgets[data-wtheme="dark"] {
  --w-surface: #0e0e10; --w-ink: #ffffff; --w-bg: #000000;
  --w-2: rgba(235, 235, 245, 0.6); --w-3: rgba(235, 235, 245, 0.3); --w-fill: rgba(255, 255, 255, 0.16);
  --w-wall-a: #12091f; --w-wall-b: #0a0c1e; --w-wall-c: #1d0d12;
  --w-blob-1: #6b2a1c; --w-blob-2: #3a2a78; --w-blob-3: #12395c;
  --w-shadow: 0 1px 1px rgba(0,0,0,.4), 0 10px 30px -12px rgba(0, 0, 0, .8);
}

.wtheme-switch {
  position: absolute; z-index: 5; top: 18px; left: 50%; translate: -50% 0;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 3px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: color-mix(in srgb, var(--w-surface) 55%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 .5px var(--w-fill);
}
.wtheme-switch button {
  position: relative; z-index: 1; border: 0; background: none; font: inherit; color: var(--w-2);
  padding: 8px 22px; border-radius: 999px; cursor: pointer; transition: color .25s;
}
.wtheme-switch button[aria-checked="true"] { color: var(--w-ink); }
.wtheme-switch button:focus-visible { outline: 2px solid var(--w-ink); outline-offset: 1px; }
.wtheme-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--w-surface); box-shadow: 0 1px 3px rgba(0,0,0,.14);
}

.widget-stage {
  position: relative; isolation: isolate; container-type: inline-size;
  border-radius: 40px; overflow: hidden; padding: 92px 24px 56px;
  display: flex; justify-content: center;
}
.wallpaper { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(135deg, var(--w-wall-a), var(--w-wall-b) 55%, var(--w-wall-c));
  }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .85; transition: background .6s ease; }
.blob.b1 { width: 46%; aspect-ratio: 1; left: -8%; top: -14%; background: var(--w-blob-1); }
.blob.b2 { width: 52%; aspect-ratio: 1; right: -12%; top: 18%; background: var(--w-blob-2); }
.blob.b3 { width: 40%; aspect-ratio: 1; left: 30%; bottom: -24%; background: var(--w-blob-3); }

.widget-grid { position: relative; }
.wg { z-index: 1; }

.widget-fit { zoom: var(--wzoom, 1); width: max-content; max-width: 100%; margin-inline: auto; }
.widget-grid {
  display: grid; grid-template-columns: repeat(4, 170px); grid-auto-rows: 170px; gap: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Tight", system-ui, sans-serif;
  color: var(--w-ink); line-height: 1.2; letter-spacing: -0.01em;
}
@container (max-width: 760px) { .widget-grid { grid-template-columns: repeat(2, 170px); } }

.wg {
  position: relative; border-radius: 22px; background: var(--w-surface);
  box-shadow: var(--w-shadow); overflow: hidden; transition: background-color .5s ease;
}
.wg-m { grid-column: span 2; }
.wg-in { position: absolute; inset: 0; padding: 12px 14px; display: flex; flex-direction: column; }
.wg .sp { flex: 1; }
.wg .sp-v { flex: 1; min-height: 2px; }
.wg .dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; }
.wg .cap { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--w-2); }
.wg svg { fill: currentColor; }
.wg .chev { width: 9px; height: 9px; color: var(--w-3); flex: none; }

/* K2 Heute */
.heute { gap: 6px; }
.h-head { display: flex; align-items: baseline; }
.h-head b { font-size: 15px; font-weight: 700; }
.h-count { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--w-2); font-variant-numeric: tabular-nums; }
.h-sec { display: flex; flex-direction: column; gap: 2px; }
.h-cap { display: flex; align-items: center; gap: 5px; color: var(--w-2); font-size: 9.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.h-cap svg { width: 9px; height: 9px; }
.h-row { display: flex; align-items: center; gap: 7px; height: 15.5px; }
.h-row .nm { font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.h-row .ds { font-size: 11.5px; color: var(--w-2); font-variant-numeric: tabular-nums; }
.h-row .inj { width: 9px; height: 9px; color: var(--w-2); }
.h-row.is-done { opacity: .55; }
.tick { width: 14px; height: 14px; border-radius: 50%; background: var(--w-ink); color: var(--w-bg);
  display: grid; place-items: center; }
.tick svg { width: 8px; height: 8px; }

/* T1 Tracken */
.tracken { align-items: center; justify-content: center; gap: 6px; text-align: center; }
.t-plus { width: 54px; height: 54px; border-radius: 50%; background: var(--w-ink); color: var(--w-bg); display: grid; place-items: center; }
.t-plus svg { width: 24px; height: 24px; }
.tracken b { font-size: 16px; font-weight: 600; }
.t-lead { font-size: 12.5px; font-weight: 600; margin-bottom: -6px; }
.t-detail { font-size: 11px; color: var(--w-2); }

/* K3a Vorrat / N6 Cycle */
.vorrat, .cycle { gap: 3px; }
.v-top { display: flex; align-items: center; gap: 6px; min-height: 16px; }
.v-top .chev { width: 11px; height: 11px; }
.inv { font-size: 9.5px; font-weight: 600; color: var(--w-bg); background: var(--w-ink); padding: 3px 7px; border-radius: 999px; }
.v-name { font-size: 14px; font-weight: 600; }
.v-days, .c-big { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.c-big { font-size: 25px; }
.v-run { font-size: 10.5px; color: var(--w-2); }
.c-name { display: flex; align-items: center; gap: 6px; }
.c-name .dot { width: 8px; height: 8px; }
.c-name b { font-size: 13px; font-weight: 600; }
.c-sub { font-size: 11.5px; color: var(--w-2); }

/* K6 Spiegel */
.spiegel { gap: 6px; }
.s-head { display: flex; align-items: center; gap: 6px; }
.s-head .dot { width: 8px; height: 8px; }
.s-head b { font-size: 13.5px; font-weight: 600; }
.s-chart { position: relative; flex: 1; }
.s-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.s-chart path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.s-solid { stroke: color-mix(in srgb, var(--w-ink) 90%, transparent); }
.s-dash { stroke: color-mix(in srgb, var(--w-ink) 55%, transparent); stroke-dasharray: 4 3.5; }
.s-now { stroke: color-mix(in srgb, var(--w-ink) 30%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.s-peak { fill: var(--w-ink); }
.s-trough { fill: none; stroke: color-mix(in srgb, var(--w-ink) 85%, transparent); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.s-lbl, .s-unit { position: absolute; top: 1px; font-size: 8px; color: var(--w-2); }
.s-jetzt { left: calc(196 / 336 * 100% + 3px); top: 6px; }
.s-unit { right: 0; font-size: 9px; font-weight: 500; }
.s-foot { font-size: 10.5px; color: var(--w-2); }

/* K8 Symptom */
.symptom { gap: 8px; align-items: flex-start; }
.y-title { font-size: 13px; font-weight: 600; margin-bottom: -5px; }
.y-meta { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--w-2); }
.heart { width: 11px; height: 9px; color: #ff3b30; }
.y-btn { font-size: 12px; font-weight: 600; color: var(--w-bg); background: var(--w-ink); padding: 6px 13px; border-radius: 999px; }

/* Sperrbildschirm */
.lock {
  position: relative; margin-top: 22px; border-radius: 22px; padding: 18px 20px 20px; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #b8563a, #6d4aa8 70%, #314b8f);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Tight", system-ui, sans-serif;
  text-align: center; transition: background .6s ease;
}
.widgets[data-wtheme="dark"] .lock { background: linear-gradient(160deg, #3b1a12, #22183f 70%, #0d1631); }
.lock-date { font-size: 17px; font-weight: 600; opacity: .85; }
.lock-time { font-size: 76px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; margin: 2px 0 14px;
  font-family: "SF Pro Rounded", -apple-system, "Inter Tight", system-ui, sans-serif; }
.lock-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; text-align: left; }
.acc-c { position: relative; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: grid; place-items: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  font-family: "SF Pro Rounded", -apple-system, system-ui, sans-serif; }
.acc-c svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.acc-c circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: rgba(255,255,255,.22); }
.ring { stroke: #fff; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0.571; }
.acc-r { width: 184px; display: flex; flex-direction: column; gap: 1px; }
.acc-r b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-r span { font-size: 11px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.widget-note { font-size: 13px; color: var(--ink-t3); margin: 18px 0 0; text-align: center; }
@container (max-width: 760px) { .lock-time { font-size: 64px; } }
@media (max-width: 760px) { .widget-stage { padding: 76px 12px 32px; border-radius: 30px; } }
.wg.has-shot > .wg-in, .acc.has-shot > :not(img) { visibility: hidden; }
.wg .wshot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acc .wshot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.acc-r { position: relative; }

/* K3b Vorräte */
.vorraete { gap: 7px; }
.vr-row { display: flex; flex-direction: column; gap: 3px; }
.vr-line { display: flex; align-items: center; gap: 6px; }
.vr-line .nm { font-size: 12.5px; font-weight: 500; }
.vr-line .dd { font-size: 11px; color: var(--w-2); font-variant-numeric: tabular-nums; }
.vr-bar { position: relative; height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--w-ink) 12%, transparent); overflow: hidden; }
.vr-bar i { position: absolute; inset: 0 auto 0 0; width: max(3px, calc(var(--f) * 100%)); border-radius: 999px;
  background: color-mix(in srgb, var(--w-ink) 45%, transparent); transform-origin: 0 50%; }
.vr-more { font-size: 10px; color: var(--w-2); }

/* N3 Spotlight */
.spotlight { gap: 4px; padding-right: 54px; }
.sl-head { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.sl-head .dot { width: 9px; height: 9px; }
.sl-head b { font-size: 15px; font-weight: 700; }
.sl-head .chev { width: 10px; height: 10px; }
.sl-fact { display: flex; align-items: baseline; gap: 8px; }
.sl-fact span:first-child { font-size: 11.5px; color: var(--w-2); }
.sl-fact b { font-size: 12px; font-weight: 500; }
.sl-spark { width: 100%; height: 34px; margin-top: 3px; overflow: visible; }
.sl-spark path { fill: none; stroke: color-mix(in srgb, var(--w-ink) 70%, transparent); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sl-plus { position: absolute; right: 14px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--w-ink); color: var(--w-bg); display: grid; place-items: center; }
.sl-plus svg { width: 15px; height: 15px; }

/* Zwei-Spalten-Raster (Handy bis ~860 px Fenster): Raster und Lock immer
 * mittig in der Stage. Hängt an derselben Container-Breite wie der
 * Spaltenwechsel, nicht am Fenster, sonst klafft dazwischen eine Lücke. */
@container (max-width: 760px) {
  .widget-fit { width: 362px; }
  .widget-grid { justify-content: center; }
  .lock { margin-inline: auto; }
}

/* ── Hero: Fragen + Live-App ──────────────────────
 * Das iPhone zeigt keine Bilder, sondern die App selbst, nachgebaut aus
 * ihren Bausteinen (Plan-Zeile mit Eck-Kerbe, Tageszeit-Kopf, Logger-Sheet,
 * Graph, Stack-Karte, Tab-Leiste). Maße in pt auf 402 × 874, skaliert. */
.hero-pre { font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; color: var(--ink-2); margin: 0 0 14px; }
.hero-q {
  display: grid; margin: 0;
  font-size: clamp(44px, 5.4vw, 86px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800;
}
.hero-q .q { grid-area: 1 / 1; align-self: end; text-wrap: balance; }
.hero-q .q:not(.on) { visibility: hidden; }
.hero-a {
  display: flex; align-items: center; gap: 12px; margin-top: 26px; min-height: 40px;
  font-size: clamp(18px, 1.7vw, 22px); font-weight: 600;
}
.a-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.a-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--page); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.a-txt { display: inline-block; }
/* Startzustände des Auftritts schon im ersten Bild (main.js setzt dieselben
 * Werte inline und animiert von dort). Ohne JS nimmt der Kopf-Fallback .js weg. */
.js .hero [data-rise] { clip-path: inset(0% 0% 100% 0%); transform: translateY(28px); }
.js .hero .pill { transform: translateY(20px) scale(0.6); }
.js .hero .phone { transform: translateY(160px) rotate(-9deg) scale(0.86); }
.js .hero-mascot { transform: translateY(102%); }
/* Ohne JS steht die erste Frage statisch im HTML (SEO, Link-Vorschau); mit JS
 * bleibt sie verborgen, bis main.js den Wechsel übernimmt (kein Flash). */
.js:not(.hero-live) .hero-q .q { visibility: hidden; }
.js .hero-a .a-ico, .js .hero-a .a-txt { opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero-steps { display: flex; gap: 6px; margin-top: 22px; max-width: 240px; }
.hero-steps button { flex: 1; height: 18px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.hero-steps i { display: block; height: 4px; border-radius: 2px; background: var(--fill); overflow: hidden; position: relative; }
.hero-steps i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.hero .lead { margin-top: 26px; }

.phone {
  position: relative; z-index: 2; width: 280px; aspect-ratio: 402 / 874; border-radius: 48px;
  background: var(--page); overflow: hidden; transform-origin: 50% 100%;
  /* Rahmen + Kante + gestaffelter Schatten: nah hart, fern weich = Tiefe */
  box-shadow: inset 0 0 0 0.5px var(--hair),
    0 0 0 9px var(--bezel), 0 0 0 10px var(--bezel-edge),
    0 2px 4px 9px rgba(0, 0, 0, 0.08), 0 18px 36px 0 rgba(0, 0, 0, 0.16),
    0 50px 80px -10px rgba(0, 0, 0, 0.22), 0 90px 140px -30px rgba(40, 20, 60, 0.35);
}
.phone-floor {
  position: absolute; z-index: 1; bottom: -34px; left: 50%; width: 300px; height: 46px; margin-left: -150px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.32), transparent);
  filter: blur(6px); pointer-events: none;
}
.hero { perspective: 1600px; }
.hero-stage { will-change: transform; }

/* ── Hero-Hintergrund: Laborpapier, Substanz-Licht, Serum-Kurven ──
 * Alles aus der App: das Punktraster ist das Laborbuch, die Lichtflecken
 * tragen die hellen Farben der Maus (Creme, Pfirsich, Ohren), die Linien sind echte
 * Bateman-Kurven (wöchentlich, 2× pro Woche, täglich), die langsam
 * durchlaufen wie im Graph. */
.hero-bg { position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); overflow: hidden; pointer-events: none; }
.hb-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.4px);
  background-size: 26px 26px; background-position: 13px 13px;
  -webkit-mask: radial-gradient(ellipse 70% 75% at 68% 45%, #000 20%, transparent 75%);
  mask: radial-gradient(ellipse 70% 75% at 68% 45%, #000 20%, transparent 75%);
}
.hb-glow { position: absolute; inset: 0; filter: blur(70px); opacity: var(--glow-a); }
.hb-glow i { position: absolute; border-radius: 50%; }
.hb-glow .g1 { width: 460px; height: 460px; right: 13%; top: 14%; background: #fedfc3; } /* Fell, Creme */
.hb-glow .g2 { width: 360px; height: 360px; right: 3%; top: 42%; background: #ffc4a3; } /* Fell, Pfirsich */
.hb-glow .g3 { width: 300px; height: 300px; right: 27%; top: 56%; background: #ffb09c; } /* Ohren, hell */
.hb-curves {
  position: absolute; left: 0; bottom: 2%; width: 100%; height: 46%; overflow: visible;
  -webkit-mask: linear-gradient(90deg, transparent 36%, #000 62%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent 36%, #000 62%, #000 94%, transparent);
}
.hb-c { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: var(--curve-a); }
.c-semo { stroke: #8b5cf6; }
.c-testo { stroke: #f97316; }
.c-vit { stroke: #f59e0b; stroke-dasharray: 2 6; }
@media (max-width: 900px) {
  .hb-grid { -webkit-mask: radial-gradient(ellipse 90% 60% at 50% 70%, #000 20%, transparent 75%); mask: radial-gradient(ellipse 90% 60% at 50% 70%, #000 20%, transparent 75%); }
  .hb-glow .g1 { right: 10%; top: 52%; width: 300px; height: 300px; }
  .hb-glow .g2 { right: -10%; top: 66%; width: 260px; height: 260px; }
  .hb-glow .g3 { right: 50%; top: 74%; width: 240px; height: 240px; }
  .hb-curves { height: 46%; -webkit-mask: linear-gradient(180deg, transparent, #000 30%); mask: linear-gradient(180deg, transparent, #000 30%); }
}
.app {
  position: absolute; left: 0; top: 0; width: 402px; height: 874px; transform-origin: 0 0; transform: scale(var(--ps, 0.7463));
  background: var(--page); color: var(--ink); overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Tight", system-ui, sans-serif;
  letter-spacing: -0.01em; line-height: 1.25;
}
.app-status { position: absolute; z-index: 30; inset: 0 0 auto; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 46px; }
.app-status b { font-size: 17px; font-weight: 600; }
.island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.st-icons { display: flex; gap: 5px; align-items: flex-end; }
.st-icons i { width: 4px; border-radius: 1px; background: var(--ink); }
.st-icons i:nth-child(1) { height: 6px; } .st-icons i:nth-child(2) { height: 9px; } .st-icons i:nth-child(3) { width: 24px; height: 11px; border-radius: 3px; margin-left: 4px; }

.scene { position: absolute; inset: 0; padding: 60px 20px 0; background: var(--page); display: flex; flex-direction: column; gap: 12px; }
.app-h { font-size: 25.5px; font-weight: 700; margin: 6px 0 8px; letter-spacing: -0.02em; }
.a-card { position: relative; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--hair); padding: 16px; }
.a-card.notched { background: none; box-shadow: none; }
.a-title { font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.a-meta { font-weight: 500; color: var(--ink-2); }
.goal-num { margin-top: 8px; font-size: 16px; font-weight: 500; }
.goal-num b { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.goal-lbl { font-size: 13px; color: var(--ink-2); }
.goal-bar { margin-top: 10px; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.goal-bar i { display: block; height: 100%; width: 100%; background: var(--ink); border-radius: 3px; transform-origin: 0 50%; transform: scaleX(.5); }

.ph-line { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.ph-line .ph-c { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; }
.ph-open { padding: 6px 14px 0; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.ph-card { display: grid; gap: 4px; padding: 12px calc(var(--notch-reserve) + 4px) 12px 14px; }
.ph-card .notch-bg path { fill: color-mix(in srgb, var(--surface) 55%, var(--page)); }
.ph-card .corner-btn { opacity: 0.55; }
.ph-names { font-size: 10px; color: var(--ink-2); }
.app .row { min-height: 62px; }
.app .row .name { font-size: 16px; }
.app .row.tracked .bar { opacity: .55; }

.notif {
  position: absolute; z-index: 25; left: 10px; right: 10px; top: 58px; display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: 22px; transform: translateY(-240px);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 0 0 .5px var(--hair), 0 12px 30px -10px rgba(0,0,0,.3);
}
.notif-ico { flex: none; width: 38px; height: 38px; border-radius: 9px; background: #fff3ea; overflow: hidden; }
.notif b { display: block; font-size: 15px; font-weight: 600; }
.notif span { font-size: 15px; }
.notif time { margin-left: auto; align-self: flex-start; font-size: 13px; color: var(--ink-2); }

/* Tab-Leiste (iOS 26: Glaskapsel + abgesetzter Plus-Knopf) */
.tabbar { position: absolute; z-index: 20; left: 21px; right: 21px; bottom: 26px; display: flex; gap: 12px; align-items: center; }
.tabs {
  position: relative; flex: 1; height: 62px; border-radius: 31px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 0 0 .5px var(--hair), 0 10px 30px -12px rgba(0,0,0,.3);
}
.tab-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 27px; background: var(--fill); }
.tab { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 10px; font-weight: 600; color: var(--ink-2); }
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tab.on { color: var(--ink); }
.tab-plus { flex: none; width: 62px; height: 62px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.tab-plus svg { width: 26px; height: 26px; fill: none; stroke: var(--page); stroke-width: 2.6; stroke-linecap: round; }

/* Finger (Tipp-Anzeige wie bei Bildschirmaufnahmen) */
.finger {
  position: absolute; z-index: 40; left: 0; top: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgba(128, 128, 128, 0.35); box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 6px 20px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none;
}

@media (max-width: 900px) {
  .hero-q { font-size: clamp(40px, 10.5vw, 64px); }
  .phone { width: min(260px, 66vw); }
  /* Handy: das iPhone direkt unter Frage und Antwort, sonst läuft der Ablauf unter dem Fold */
  .hero { display: flex !important; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { display: contents; }
  .hero .pill { order: 1; align-self: flex-start; }
  .hero-pre { order: 2; }
  .hero-q { order: 3; }
  .hero-a { order: 4; min-height: 64px; align-items: flex-start; }
  .hero-steps { order: 5; }
  .hero-stage { order: 6; margin-top: 4px; padding-top: 120px; }
  .hero .lead { order: 7; }
  .hero-cta { order: 8; }
  .hero .fine { order: 9; }
}
.goal-done { display: inline-block; }

/* ── 04 Nebenwirkungen · 05 Kalender (Live-Nachbau statt Screenshot) ──
 * Nebenwirkung: SideEffectEditorSheet + Log (Schweregrad = ANZAHL gebrochener
 * roter Herzen, die einzige Rot-Ausnahme). Kalender: CalendarPageView
 * (großer Monat, Jahr klein, Wochentage in Großbuchstaben, Punkt = getrackt,
 * heute auf grauer Fläche, Auswahl als gefüllte Scheibe). */
#kalender { padding-bottom: 160px; }
.se, .cal {
  position: relative; width: min(360px, 100%); background: var(--surface); border-radius: 30px;
  box-shadow: var(--shadow); border: 0.5px solid var(--hair);
}
.se { padding: 22px 20px 18px; }
/* Ganze Maus, sitzt mit den Füßen auf der Oberkante der Karte (Füße bei
 * 96,5 % der Höhe des Ausschnitts CROPS.full); weg von der runden Ecke. */
.se-mascot { position: absolute; width: 84px; height: 86px; right: 46px; top: -83px; z-index: 0; }
.se-form { position: relative; z-index: 1; }
.se-cap { margin: 0; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.se-title { margin: 6px 0 14px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; min-height: 34px; display: flex; align-items: center; }
.se-caret { width: 2px; height: 26px; background: var(--mouse); margin-left: 2px; border-radius: 1px; }
.se-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 0.5px solid var(--hair); }
.se-l { font-size: 14px; color: var(--ink-2); }
.se-hearts { display: flex; gap: 4px; }
.hrt { width: 30px; height: 25px; overflow: visible; }
.hrt .h-o { fill: none; stroke: var(--ink-3); stroke-width: 1.4; transition: fill .2s, stroke .2s; }
.hrt .h-crack { fill: none; stroke: transparent; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hrt.on .h-o { fill: var(--red); stroke: var(--red); }
.hrt.on .h-crack { stroke: var(--surface); }
.se-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--fill); }
.se-chip i, .se-meta i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.se-save { display: block; margin-top: 12px; text-align: center; font-weight: 650; font-size: 15px; padding: 13px; border-radius: 16px; background: var(--ink); color: var(--page); }
.se-log { margin-top: 16px; display: grid; gap: 8px; }
.se-entry { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 16px; background: var(--fill); }
.se-entry b { font-size: 15px; letter-spacing: -0.01em; }
.se-meta { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.mh { display: flex; gap: 2px; align-self: center; }
.mh svg { width: 13px; height: 11px; }
.mh svg path:first-child { fill: var(--red); }
.mh .h-crack { fill: none; stroke: var(--fill-solid, var(--surface)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cal { padding: 24px 18px 18px; }
.cal-head { display: flex; flex-direction: column; padding: 0 6px; }
.cal-head b { font-size: 30px; letter-spacing: -0.035em; line-height: 1.05; }
.cal-head span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.cal-wd, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-wd { margin: 16px 0 6px; font-size: 11px; font-weight: 650; color: var(--ink-t3); letter-spacing: .02em; }
.cal-grid { row-gap: 4px; }
.cd { position: relative; height: 44px; display: grid; place-items: center; }
.cd b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 500; transition: background .2s, color .2s; }
.cd i { position: absolute; bottom: 1px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ink); transform: scale(0); }
.cd.today b { background: var(--fill); font-weight: 650; }
.cd.sel b { background: var(--ink); color: var(--page); font-weight: 650; }
.cd:not(.t):not(.today) b { color: var(--ink-2); }
.cal-day { margin-top: 10px; padding: 14px; border-radius: 18px; background: var(--fill); display: grid; gap: 8px; }
.cal-day-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.cal-day-h span { font-size: 12.5px; color: var(--ink-2); }
.cal-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 12px; background: var(--surface); }
.cal-row .bar { width: 4px; height: 18px; border-radius: 2px; }
.cal-row .ck { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.cal-row .ck svg { width: 13px; height: 13px; fill: none; stroke: var(--page); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.cal-finger { z-index: 5; }
@media (max-width: 900px) {
  .feature-live .feature-media { min-height: 0; padding-top: 30px; }
  #kalender { padding-bottom: 110px; }
}

/* ── Ladezeit: Sektionen unter dem Fold ──────────────────────
 * Layout und Paint erst, wenn sie in die Nähe des Viewports kommen. Das
 * erste Layout der ganzen Seite war der größte Einzelblock beim Laden.
 * `auto` merkt sich die echte Höhe nach dem ersten Rendern (kein Springen
 * beim Zurückscrollen). Die Story bleibt draußen (sticky, scroll-gekoppelt),
 * „Rote Linie“ auch: ihre Maus ragt über die Sektion hinaus, und die
 * Paint-Containment von content-visibility schnitt Kopf und „Nö.“ ab. */
.features, .curve-section, .widgets, .privacy, .pricing, .faq, .final, .footer {
  content-visibility: auto; contain-intrinsic-size: auto 900px;
}
/* Anker-Sprünge (Klick auf #… oder Aufruf mit #…) brauchen echte Höhen, sonst
 * landet der Sprung daneben: der Inline-Script im <head> setzt dann `cv-off`. */
.cv-off :is(.features, .curve-section, .widgets, .privacy, .pricing, .faq, .final, .footer) { content-visibility: visible; }
