/* ============================================================
   FitYourHealth — fityourhealth.app
   v3 · Das Nachtprotokoll: Der Scroll-Film etabliert die Nacht,
   die Seite danach IST das Protokoll dieser Nacht — eine Zeit-
   Spine führt von 00:12 (tiefe Nacht) bis 08:00 (Morgenpapier),
   die Farbtemperatur hellt sektionsweise auf. Bernstein = Licht
   und Zeit (die Pendelleuchte des Films), Grün = Marke/Aktion.
   Abgeleitet aus den iOS-App-Tokens (AppTheme.swift).
   ============================================================ */

/* ---------- Fonts (selbst gehostet, DSGVO-sauber) ---------- */
@font-face {
  font-family: 'Gabarito';
  src: url('../fonts/gabarito.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('../fonts/spline-sans-mono.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Nacht → Morgen (Phasen des Protokolls) */
  --night: #050806;        /* 23:58 — Film, Finale, Footer */
  --night-2: #0a1410;
  --nacht: #081911;        /* 00:12 — tiefe Nacht */
  --daemmer: #0c2718;      /* 02:47 — Dämmerung */
  --deep: #0e3b1c;         /* 04:30 — letztes Dunkel */
  --paper: #f8f6f2;        /* 07:04 — Morgen (App-Token warmWhite) */
  --paper-2: #f1ede6;
  --card: #ffffff;
  --bon: #fdfcf6;          /* Kassenbon-Papier */
  /* Marke */
  --green: #16a34a;
  --green-deep: #0e7f3a;
  --green-bright: #4ade80;
  /* Licht (Pendelleuchte im Film) */
  --amber: #d97706;
  --amber-bright: #f0a44a;
  /* Tinte */
  --ink: #0a0a0a;
  --ink-70: rgba(10, 10, 10, 0.74);
  --ink-50: rgba(10, 10, 10, 0.6);
  --ink-40: rgba(10, 10, 10, 0.45);
  --hairline: rgba(10, 10, 10, 0.08);
  --hairline-dark: rgba(255, 255, 255, 0.1);
  --white-70: rgba(248, 246, 242, 0.78);
  --white-50: rgba(248, 246, 242, 0.55);
  /* Typo */
  --font-display: 'Gabarito', 'Avenir Next', ui-rounded, system-ui, sans-serif;
  --font-body: 'Instrument Sans', -apple-system, 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* Geometrie (App-Radii) */
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;
  --container: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
  /* Protokoll-Spine */
  --spine-w: clamp(64px, 8vw, 108px);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--night); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  /* Die Film-Engine setzt body{overflow-x:hidden} — das machte body zum
     Scroll-Container und legte position:sticky lahm. clip clippt ohne
     Scroll-Kontext; unlayered schlägt die @layer-Regel der Engine. */
  overflow-x: visible;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--green); color: #fff; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

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

[id] { scroll-margin-top: 84px; }

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

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--green); color: #fff; font-weight: 600;
  padding: 10px 18px; border-radius: var(--r-pill);
  transition: top 0.2s; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep);
}
.on-dark .eyebrow { color: var(--green-bright); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.06; letter-spacing: -0.022em; text-wrap: balance; }
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 800;
  margin: 10px 0 16px;
}
.section-lede {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--ink-70);
  max-width: 58ch;
  text-wrap: pretty;
}
.on-dark .section-lede { color: var(--white-70); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: var(--r-pill);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); }
/* Signatur-Hover: die Scan-Linie streift über den primären CTA */
.btn--primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-110%);
}
.btn--primary:hover::after { animation: btn-scan 0.7s cubic-bezier(0.5, 0, 0.3, 1); }
@keyframes btn-scan {
  from { transform: translateX(-110%); }
  to { transform: translateX(110%); }
}
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.18); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--green); color: var(--green-deep); }
.on-dark .btn--ghost { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(248, 246, 242, 0.28); }
.on-dark .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--green-bright); color: var(--green-bright); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  color: var(--paper);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 14px;
  max-width: none;
}
.site-header.is-solid {
  background: rgba(248, 246, 242, 0.92);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
  color: var(--ink);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  text-decoration: none; letter-spacing: -0.01em;
}
.brand__mark { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  font-weight: 500; font-size: 0.94rem; text-decoration: none;
  padding: 9px 13px; border-radius: var(--r-pill); opacity: 0.85;
  transition: opacity 0.15s, background-color 0.15s;
}
.site-nav a:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.header-cta { margin-left: 8px; padding: 10px 20px; min-height: 42px; font-size: 0.92rem; opacity: 1 !important; }
@media (max-width: 760px) {
  .site-nav a:not(.header-cta) { display: none; }
}

/* ---------- Scroll-Film (#film) — Engine-Theme ---------- */
#film {
  /* Reserviert den ersten Viewport vor dem JS-Mount (CLS) */
  min-height: 100vh;
  --sw-bg: var(--night);
  --sw-ink: var(--paper);
  --sw-ink-soft: var(--white-50);
  --sw-accent: var(--green-bright);
  --sw-font-display: var(--font-display);
  --sw-font-body: var(--font-body);
}
#film .sw-copy__eyebrow { font-family: var(--font-mono); letter-spacing: 0.18em; }
#film .sw-copy__num { font-family: var(--font-mono); }
#film .sw-topbar { display: none; }
/* Unsichtbare Film-CTAs auch aus der Tab-Reihenfolge nehmen
   (Engine schreibt pointer-events inline) */
#film .sw-copy[style*="pointer-events: none"] { visibility: hidden; }
#film .sw-btn--primary { background: var(--green); color: #fff; }
@media (max-width: 860px) {
  #film .sw-hint span { display: none; }
}
main.page-after-film { position: relative; z-index: 130; background: var(--paper); }
body.film-done #film .sw-route,
body.film-done #film .sw-hint,
body.film-done #film .sw-scrollbar,
body.film-done #film .sw-copylayer,
body.film-done #film .sw-stage {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s 0.35s;
}

/* ============================================================
   PROTOKOLL-EINTRÄGE (Sektionen mit Zeit-Spine)
   ============================================================ */
.entry {
  position: relative;
  --entry-pad: clamp(84px, 10vw, 140px);
  padding-block: var(--entry-pad);
}

/* Phasen: die Nacht hellt Eintrag für Eintrag auf */
.entry--nacht   { background: var(--nacht);   color: var(--paper); }
.entry--daemmer { background: var(--daemmer); color: var(--paper); }
.entry--deep    { background: var(--deep);    color: var(--paper); }
.entry--morgen  { background: var(--paper); }
.entry--morgen2 { background: var(--paper-2); }

.entry__grid {
  display: grid;
  grid-template-columns: var(--spine-w) minmax(0, 1fr);
  gap: 0 clamp(20px, 3vw, 44px);
}

/* Die Spine: durchgehende Linie in der Meta-Spalte */
.entry__meta { position: relative; }
.entry__meta::before {
  content: '';
  /* Overshoot = Sektions-Padding: die Linie endet exakt an den
     Sektionsgrenzen und läuft so lückenlos von Eintrag zu Eintrag,
     ohne in Dawn-Band oder Finale zu bluten. */
  position: absolute;
  top: calc(-1 * var(--entry-pad));
  bottom: calc(-1 * var(--entry-pad));
  left: 7px;
  width: 1px;
  background: currentColor;
  opacity: 0.14;
}
/* Spine beginnt erst bei der ersten Zeitmarke */
#nach-dem-film > .entry:first-of-type .entry__meta::before { top: 4px; }
.entry--morgen .entry__meta::before,
.entry--morgen2 .entry__meta::before { opacity: 0.1; }

/* Zeitmarke: Punkt + Uhrzeit; „zündet" beim Erscheinen wie die Leuchte im Film */
.entry__time {
  position: sticky; top: 96px;
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.entry__time::before {
  content: '';
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--amber-bright);
  box-shadow: 0 0 0 0 rgba(240, 164, 74, 0);
  transform: scale(0.45);
  opacity: 0.4;
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.5, 1), opacity 0.5s ease, box-shadow 0.7s ease;
}
.entry.in-view .entry__time::before {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 0 22px 4px rgba(240, 164, 74, 0.35);
}
.entry--morgen .entry__time::before,
.entry--morgen2 .entry__time::before { background: var(--green); }
.entry--morgen.in-view .entry__time::before,
.entry--morgen2.in-view .entry__time::before { box-shadow: 0 0 18px 3px rgba(22, 163, 74, 0.25); }
.entry__time .t { opacity: 0.9; }
.entry__time .n {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.55; max-width: 9ch; line-height: 1.5;
}
/* Auf hellem Grund braucht das Label mehr Deckkraft (WCAG AA) */
.entry--morgen .entry__time .n,
.entry--morgen2 .entry__time .n { opacity: 0.7; }

/* Signatur-Mechanismus: EIN ausgezeichnetes Wort pro Headline
   in der Lichtfarbe des Films (Bernstein) */
.section-title .hl { color: var(--amber); }

.entry__body { min-width: 0; }
.entry--nacht .section-lede,
.entry--daemmer .section-lede,
.entry--deep .section-lede { color: var(--white-70); }

@media (max-width: 720px) {
  .entry__grid { grid-template-columns: 1fr; }
  .entry__meta::before { display: none; }
  .entry__time {
    position: static;
    flex-direction: row; align-items: center; gap: 10px;
    margin-bottom: 22px;
  }
  .entry__time .n { max-width: none; }
}

/* Scroll-Reveals (dezent) */
.reveal, .reveal-stagger > * { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view, .reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .entry__time::before { transform: scale(1); opacity: 1; }
}

/* ============================================================
   00:12 — DIE BILANZ ALS KASSENBON
   Das einzige Licht in der tiefen Nacht ist ein Stück Papier.
   ============================================================ */
.bilanz__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .bilanz__layout { grid-template-columns: 1fr; } }

.receipt {
  background: var(--bon);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  padding: 26px 26px 30px;
  max-width: 420px;
  justify-self: center;
  position: relative;
  transform: rotate(-1.1deg);
  /* Schatten von den Kanten weggezogen, damit die Perforations-Notches
     auf sauberem Nachtgrün sitzen */
  box-shadow:
    0 34px 60px -18px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(240, 164, 74, 0.07);
}
@media (max-width: 380px) {
  .receipt { font-size: 0.74rem; padding: 22px 18px 26px; }
}
/* Perforierte Kanten: Wellenrand in der Hintergrundfarbe der Nacht-Sektion —
   robuster als Masken-Compositing und in jedem Browser identisch. */
.receipt::before, .receipt::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 10px;
  background: radial-gradient(circle at 8px 5px, var(--nacht) 4.5px, transparent 5px) 0 0 / 16px 10px repeat-x;
}
.receipt::before { top: -1px; }
.receipt::after { bottom: -1px; transform: scaleY(-1); }
.receipt__head {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1.5px dashed var(--ink-40);
  margin-bottom: 14px;
}
.receipt__head .shop { font-weight: 700; font-size: 0.92rem; letter-spacing: 0.14em; }
.receipt__head .sub { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--ink-50); margin-top: 4px; }
.receipt__rows { list-style: none; padding: 0; margin: 0; }
.receipt__rows li {
  display: flex; align-items: baseline; gap: 8px;
  padding-block: 3px;
}
.receipt__rows .art { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt__rows .dots { flex: 1; border-bottom: 1.5px dotted var(--ink-40); transform: translateY(-4px); min-width: 20px; }
.receipt__rows .prc { white-space: nowrap; font-weight: 500; }
.receipt__sum {
  margin-top: 14px; padding-top: 12px;
  border-top: 1.5px dashed var(--ink-40);
}
.receipt__sum .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.receipt__sum .row.total { font-weight: 700; font-size: 1.05rem; }
.receipt__sum .row .src { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-50); }
.receipt__foot {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--ink-50);
}
/* Der Stempel: FitYourHealth storniert die Verschwendung */
.receipt__stamp {
  position: absolute;
  right: 14px; bottom: 52px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  border: 3px solid var(--green-deep);
  border-radius: 6px;
  padding: 6px 12px;
  transform: rotate(-8deg) scale(1.6);
  opacity: 0;
  mix-blend-mode: multiply;
}
.entry.in-view .receipt__stamp {
  animation: stamp-in 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) 0.7s forwards;
}
@keyframes stamp-in {
  from { transform: rotate(-8deg) scale(1.6); opacity: 0; }
  60% { transform: rotate(-8deg) scale(0.94); opacity: 1; }
  to { transform: rotate(-8deg) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .receipt { transform: none; }
  .receipt__stamp { opacity: 1; transform: rotate(-8deg); animation: none; }
}

/* ============================================================
   02:47 — NACHTSCHICHT ALS PROTOKOLLZEILEN
   ============================================================ */
.proto-rows { margin-top: clamp(30px, 4vw, 48px); }
.proto-row {
  display: grid;
  grid-template-columns: minmax(96px, 150px) minmax(0, 1fr);
  gap: 10px clamp(18px, 3vw, 40px);
  padding-block: 22px;
  border-top: 1px solid var(--hairline-dark);
  align-items: baseline;
}
.proto-row:last-child { border-bottom: 1px solid var(--hairline-dark); }
.proto-row .when {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-bright);
}
.proto-row h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.proto-row p { color: var(--white-70); max-width: 56ch; margin-top: 6px; }
.premium-chip {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white-50); border: 1px solid var(--hairline-dark);
  padding: 3px 9px; border-radius: var(--r-pill);
  transform: translateY(-3px);
}
@media (max-width: 640px) {
  .proto-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   04:30 — PRIVAT-KI (Statement + Protokollzeilen, keine Icon-Karten)
   ============================================================ */
.privacy-statement h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  max-width: 20ch;
  margin: 10px 0 18px;
}
.privacy-statement > p { color: var(--white-70); max-width: 54ch; font-size: clamp(1.02rem, 1.5vw, 1.16rem); }
.privacy-facts { margin-top: clamp(26px, 3.5vw, 40px); }
.privacy-fact {
  display: grid;
  grid-template-columns: minmax(96px, 150px) minmax(0, 1fr);
  gap: 8px clamp(18px, 3vw, 40px);
  padding-block: 16px;
  border-top: 1px solid var(--hairline-dark);
  align-items: baseline;
}
.privacy-fact:last-child { border-bottom: 1px solid var(--hairline-dark); }
.privacy-fact .k {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-bright);
}
.privacy-fact strong { font-size: 1rem; font-family: var(--font-display); font-weight: 700; }
.privacy-fact span { display: block; color: var(--white-70); font-size: 0.92rem; }
@media (max-width: 640px) { .privacy-fact { grid-template-columns: 1fr; gap: 2px; } }

/* ============================================================
   05:12 — ERSTES LICHT (der eine Übergang Nacht → Morgen)
   ============================================================ */
.dawn {
  height: clamp(120px, 16vh, 200px);
  background:
    radial-gradient(60% 90% at 50% 100%, rgba(240, 164, 74, 0.3), transparent 70%),
    linear-gradient(180deg, var(--deep) 0%, #27431f 35%, #7a6742 62%, #c9a06a 80%, var(--paper-2) 100%);
  position: relative;
}
.dawn span {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(248, 246, 242, 0.75);
}

/* ============================================================
   07:04 — FEATURES ALS MORGEN-KOMPOSITIONEN
   ============================================================ */
.features-head {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
  margin-bottom: clamp(44px, 6vw, 72px);
}
@media (max-width: 820px) { .features-head { grid-template-columns: 1fr; } }

.morning-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(32px, 4.5vw, 56px);
  border-top: 1px solid var(--hairline);
}
.morning-row:nth-child(even) { grid-template-columns: minmax(260px, 400px) minmax(0, 1fr); }
.morning-row:nth-child(even) .morning-row__text { order: 2; }
.morning-row h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; margin-bottom: 10px; }
.morning-row p { color: var(--ink-70); max-width: 52ch; }
.morning-row .mini-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; padding: 0; list-style: none; }
.morning-row .mini-tags li {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.07em;
  padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline); color: var(--ink-50);
}
@media (max-width: 820px) {
  .morning-row, .morning-row:nth-child(even) { grid-template-columns: 1fr; }
  .morning-row:nth-child(even) .morning-row__text { order: 0; }
}

/* App-UI-Miniaturen (gleiche Technik wie das Phone-Mockup) */
.ui-frag {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 14px;
  font-size: 12px;
  box-shadow: 0 16px 40px rgba(16, 40, 20, 0.08);
  max-width: 400px;
  justify-self: center;
  width: 100%;
}
.ui-frag + .ui-frag { margin-top: 10px; }
.ui-frag__label {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-40); margin-bottom: 8px;
}
/* Push-Mitteilung */
.ui-push {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--paper);
  border-radius: 14px;
  padding: 11px 12px;
}
.ui-push .ic {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--deep); color: #fff;
}
.ui-push .tt { font-weight: 600; font-size: 11.5px; }
.ui-push .tx { font-size: 10.5px; color: var(--ink-50); }
.ui-push .tm { margin-left: auto; font-size: 9px; color: var(--ink-40); }
/* Wochenplan-Streifen */
.ui-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ui-week .d {
  border: 1px solid var(--hairline); border-radius: 9px;
  padding: 7px 4px; text-align: center;
  min-width: 0; overflow: hidden;
}
.ui-week .d .k { display: block; font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.1em; color: var(--ink-40); text-transform: uppercase; }
.ui-week .d .v { display: block; font-size: 9px; font-weight: 600; margin-top: 3px; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.ui-week .d--active { background: color-mix(in srgb, var(--green) 8%, transparent); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
/* Barcode-Deko im Scan-Fragment */
.barcode-motif { display: flex; align-items: flex-end; gap: 3px; height: 30px; opacity: 0.3; }
.barcode-motif span { display: block; width: 2.5px; background: var(--ink); border-radius: 1px; }
.barcode-motif span:nth-child(odd) { height: 100%; }
.barcode-motif span:nth-child(even) { height: 60%; }
.barcode-motif span:nth-child(3n) { width: 5px; }
.barcode-motif span:nth-child(5n) { height: 78%; }
/* Scan-Zeile */
.ui-scan-row { display: flex; align-items: center; gap: 9px; padding-block: 6px; }
.ui-scan-row + .ui-scan-row { border-top: 1px solid var(--hairline); }
.ui-scan-row .p-dot { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--deep); }
.ui-scan-row .nm { font-weight: 600; font-size: 11.5px; }
.ui-scan-row .sb { font-size: 9.5px; color: var(--ink-50); }
.ui-scan-row .tg { margin-left: auto; font-family: var(--font-mono); font-size: 8.5px; padding: 3px 8px; border-radius: var(--r-pill); }
.tg--ok { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--deep); }
.tg--warn { background: color-mix(in srgb, var(--amber) 13%, transparent); color: #8a4d02; }

/* ---------- Telefon-Mockup (nachgebautes App-UI) ---------- */
.phone {
  width: min(300px, 76vw);
  margin-inline: auto;
  background: var(--ink);
  border-radius: 48px;
  padding: 9px;
  box-shadow: 0 24px 48px rgba(16, 40, 20, 0.14);
}
.phone__screen {
  background: var(--paper);
  border-radius: 40px;
  overflow: hidden;
  aspect-ratio: 9 / 19.2;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone__notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px; background: var(--ink); border-radius: var(--r-pill);
}
.app-ui { padding: 50px 15px 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; font-size: 12px; }
.app-ui__greet .t { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--deep); }
.app-ui__greet .h { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.app-card { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 12px 13px; }
.app-card--hero { background: linear-gradient(150deg, var(--deep), #145c2c); color: #fff; border: none; }
.app-card--hero .n { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1; }
.app-card--hero .l { font-size: 10.5px; opacity: 0.85; margin-top: 2px; }
.app-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 600;
  background: rgba(255, 255, 255, 0.16); border-radius: var(--r-pill);
  padding: 4px 9px; margin-top: 9px;
}
.app-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.app-row { display: flex; align-items: center; gap: 9px; padding: 7px 2px; }
.app-row + .app-row { border-top: 1px solid var(--hairline); }
.app-row .p-dot { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--deep); font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.02em; }
.app-row .p-name { font-weight: 600; font-size: 11.5px; }
.app-row .p-sub { font-size: 9.5px; color: var(--ink-50); }
.app-row .p-tag { margin-left: auto; font-family: var(--font-mono); font-size: 8.5px; padding: 3px 8px; border-radius: var(--r-pill); }
.p-tag--warn { background: color-mix(in srgb, var(--amber) 13%, transparent); color: #8a4d02; }
.p-tag--ok { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--deep); }
.app-stats { display: flex; gap: 8px; }
.app-stats .s { flex: 1; text-align: center; padding: 8px 4px; }
.app-stats .s .v { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.app-stats .s .k { font-size: 8.5px; color: var(--ink-50); }
.app-tabbar {
  margin-top: auto;
  display: flex; justify-content: space-around; align-items: center;
  border-top: 1px solid var(--hairline);
  padding: 8px 4px 4px;
  color: var(--ink-40);
}
.app-tabbar .active { color: var(--deep); }

/* ============================================================
   05:58 — DIE BOX
   ============================================================ */
.box-section .grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
@media (max-width: 880px) { .box-section .grid { grid-template-columns: 1fr; } }
.box-visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
  position: relative;
}
.box-visual img { width: 100%; height: 100%; object-fit: cover; }
.spec-list { list-style: none; padding: 0; margin: 24px 0 0; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 12px 2px; border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
}
.spec-list li:last-child { border-bottom: 1px solid var(--hairline); }
.spec-list .k { color: var(--ink-50); }
.spec-list .v { font-weight: 600; text-align: right; }
.box-price { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.box-price .p { font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.box-price .note { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-50); }

/* ============================================================
   07:31 — FAMILIE (editoriale Liste statt Icon-Karten)
   ============================================================ */
.family-list {
  margin-top: clamp(30px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(28px, 4vw, 64px);
}
.family-item { border-top: 1px solid var(--hairline); padding-block: 22px 26px; }
.family-item h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.family-item p { color: var(--ink-70); font-size: 0.96rem; max-width: 44ch; }
.family-item em { font-style: italic; }
@media (max-width: 720px) { .family-list { grid-template-columns: 1fr; } }

/* ============================================================
   08:00 — PREISE
   ============================================================ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 430px));
  gap: 16px; margin-top: clamp(36px, 5vw, 56px);
}
@media (max-width: 820px) { .pricing-grid { grid-template-columns: minmax(0, 430px); } }
.price-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-xl);
  padding: clamp(26px, 3.2vw, 40px);
  display: flex; flex-direction: column;
}
.price-card--premium { background: var(--deep); color: var(--paper); border-color: var(--deep); }
.price-card .plan { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--deep); }
.price-card--premium .plan { color: var(--green-bright); }
.price-card .amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 3.6vw, 3rem); letter-spacing: -0.02em; margin-top: 12px; line-height: 1; }
.price-card .amount small { font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; letter-spacing: 0; color: var(--ink-50); }
.price-card--premium .amount small { color: var(--white-70); }
.price-card .plan-note { margin-top: 8px; font-size: 0.92rem; color: var(--ink-50); }
.price-card--premium .plan-note { color: var(--white-70); }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.price-card li svg { flex: none; color: var(--green); margin-top: 3px; }
.price-card--premium li svg { color: var(--green-bright); }
.price-card .btn { margin-top: auto; }
.price-card--premium .btn--primary { background: var(--green); }
.price-card--premium .btn--primary:hover { background: var(--green-bright); color: var(--night); }

/* ---------- FAQ ---------- */
.faq { max-width: 740px; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-x { flex: none; width: 24px; height: 24px; position: relative; }
.faq summary .faq-x::before, .faq summary .faq-x::after {
  content: ''; position: absolute; inset: 0; margin: auto; background: var(--ink-50); border-radius: 2px;
  transition: transform 0.25s ease;
}
.faq summary .faq-x::before { width: 14px; height: 2px; }
.faq summary .faq-x::after { width: 2px; height: 14px; }
.faq details[open] summary .faq-x::after { transform: rotate(90deg); }
.faq .faq-a { padding: 0 4px 22px; color: var(--ink-70); max-width: 62ch; }

/* ---------- Finale (Bookend, Nacht) ---------- */
.finale {
  background: var(--night);
  color: var(--paper);
  text-align: center;
  padding-block: clamp(96px, 12vw, 160px);
}
.finale .eyebrow { color: var(--amber-bright); }
.finale h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; max-width: 22ch; margin: 16px auto 16px; }
.finale p { color: var(--white-70); max-width: 46ch; margin: 0 auto 32px; }
.finale .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.finale .small-print { margin-top: 26px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-50); max-width: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--white-70);
  border-top: 1px solid var(--hairline-dark);
  padding-block: 42px;
  font-size: 0.92rem;
  position: relative;
  z-index: 130;
}
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer .brand { color: var(--paper); font-size: 1rem; }
.site-footer a.brand { opacity: 1; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .meta {
  width: 100%; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--hairline-dark);
  font-size: 0.84rem; color: var(--white-70);
}

/* ---------- Legal-Seiten ---------- */
.legal-page { background: var(--paper); min-height: 100vh; }
.legal-body { max-width: 760px; margin-inline: auto; padding: 140px var(--gutter) 90px; }
.legal-body h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 10px; }
.legal-body h2 { font-size: 1.26rem; font-weight: 700; margin: 34px 0 10px; }
.legal-body p, .legal-body li { color: var(--ink-70); margin-bottom: 10px; }
.legal-body ul { padding-left: 22px; }
.legal-body .lede { font-size: 1.04rem; }
.legal-body .todo-note {
  font-family: var(--font-mono); font-size: 0.78rem;
  background: color-mix(in srgb, var(--amber) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 28%, transparent);
  border-radius: var(--r-md);
  padding: 12px 16px; margin: 18px 0;
  color: #7c4a08;
}
