/* ============================================================================
   FamilyDash — Marketing-Website
   Implementiert BRAND.md (Farbe, Schrift, Elevation) und DESIGN.md (Aufbau).

   Reihenfolge: Tokens · Schriften · Basis · Layout · Komponenten · Sektionen ·
   Geräte-Rahmen · Mock-Innenleben · Motion · Dark Mode · Sonderfälle.

   Regeln, die hier durchgehend gelten und nicht verhandelbar sind:
   - Rohe Marken-Hexes sind FLÄCHEN. Text nimmt immer die *-ink-Variante.
   - Light = Schatten, kein Rand. Dark = Rand, kein Schatten. Nie beides.
     (Einzige Ausnahme: der Geräte-Rahmen in §Geräte — begründet an Ort.)
   - Schatten sind berry-getönt. rgba(0,0,0,…) kommt auf dieser Seite nicht vor.
   - font-weight nur 400 / 600 / 700 — für andere Werte gibt es keine Datei.
   ========================================================================== */

/* ── Tokens ───────────────────────────────────────────────────────────────── */

:root {
  /* Marken-Flächen — NIE als Textfarbe */
  --periwinkle: #777DA7;
  --coral: #FE5F55;
  --berry: #885053;
  --sage: #94C9A9;
  --mint: #C6ECAE;

  /* Vollflächen, die weißen Text tragen. #777DA7 schafft mit Weiß nur 3.98:1;
     #6A719F (aus AVATAR_COLOR_META) schafft 4.62:1, #626998 sogar 5.26:1. */
  --periwinkle-deep: #6A719F;
  --periwinkle-deeper: #626998;

  /* Flächen */
  --bg: #FDFAF9;
  --surface: #FFFFFF;
  --band: #F4EEEC;
  --bg-muted: #EFE8E6;
  --pressed: #F4EEEC;
  --border: #E8E0DE;

  /* Ink — die einzigen zulässigen Textfarben aus der Palette */
  --text: #2D2527;
  --text-muted: #6B5F62;
  --text-faint: #9C8F92;      /* nur Dekor / Mock-Innenleben, nie Seitentext */
  --ink-peri: #5F6591;
  --ink-berry: #7A474A;
  --ink-coral: #C9413A;
  --ink-sage: #3F7D5E;
  --ink-mint: #41763B;

  /* Washes (feste Prozente — die Kontraste in BRAND.md §2.3 hängen daran) */
  --wash-peri: #EDEBEF;
  --wash-berry: #F4ECEC;
  --wash-sage: #F5F6F3;
  --wash-mint: #F5F8EE;
  --wash-coral: #FDEEEC;

  /* Personenfarben (AVATAR_COLOR_META) — ausschließlich in Mocks */
  --p-coral: #F4685E;
  --p-peri: #6A719F;
  --p-sage: #7EC4A2;
  --p-amber: #D4956A;
  --p-lav: #9B8EC4;
  --p-teal: #5BA8A0;
  --p-gold: #C4A862;
  --p-mauve: #BC7D8C;

  /* Elevation */
  --shadow-card: 0 2px 16px rgba(136, 80, 83, 0.10);
  --shadow-raised: 0 6px 32px rgba(136, 80, 83, 0.16);
  --shadow-hover: 0 10px 40px rgba(136, 80, 83, 0.18);
  --shadow-float: 0 24px 60px rgba(136, 80, 83, 0.20), 0 6px 18px rgba(136, 80, 83, 0.10);

  /* Karten schalten zwischen Schatten (light) und Rand (dark) über diese zwei */
  --card-shadow: var(--shadow-card);
  --card-border: transparent;
  --raised-shadow: var(--shadow-raised);

  /* Radius */
  --r-control: 12px;
  --r-card: 16px;
  --r-sheet: 24px;
  --r-pill: 999px;

  /* Layout */
  --wrap: 1120px;
  --wrap-narrow: 720px;
  --gutter: 24px;
  --head-h: 68px;
  --sec: clamp(4rem, 8vw, 8rem);

  /* Motion */
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 480ms;
  --dur-signature: 900ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-std: cubic-bezier(0.40, 0, 0.20, 1);

  --focus: var(--periwinkle);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1718;
    --surface: #2A1E1F;
    --band: #2A1E1F;
    --bg-muted: #3A2B2D;
    --pressed: #33262A;
    --border: #3D2C2E;

    --text: #F0EBE9;
    --text-muted: #A09096;
    --text-faint: #6B5F62;
    --ink-peri: #A7ACCF;
    --ink-berry: #C89096;
    --ink-coral: #FF8F87;
    --ink-sage: #94C9A9;
    --ink-mint: #C6ECAE;

    --wash-peri: #2A252C;
    --wash-berry: #2D1F20;
    --wash-sage: #2F302C;
    --wash-mint: #36352D;
    --wash-coral: #3D2121;

    /* Dark: Rand statt Schatten. */
    --shadow-card: none;
    --shadow-raised: none;
    --shadow-hover: none;
    --card-shadow: none;
    --card-border: var(--border);
    --raised-shadow: none;
    /* Warmes Tiefschwarz, kein rgba(0,0,0,…) — siehe Kopfkommentar. */
    --shadow-float: 0 24px 60px rgba(20, 14, 15, 0.55);

    --focus: #A7ACCF;
  }
}

/* ── Schriften ────────────────────────────────────────────────────────────── */

@font-face { font-family: 'Poiret One'; src: url('assets/fonts/PoiretOne-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Josefin Sans'; src: url('assets/fonts/JosefinSans-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Josefin Sans'; src: url('assets/fonts/JosefinSans-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('assets/fonts/NunitoSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('assets/fonts/NunitoSans-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('assets/fonts/NunitoSans-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap; }

/* Web-Übersetzung der App-Regel „nie fontFamily mit fontWeight kombinieren":
   der Browser darf keinen Schnitt erfinden, für den es keine Datei gibt. */
html { font-synthesis: none; }

/* ── Basis ────────────────────────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 64rem) { body { font-size: 1.0625rem; } }

img, svg { max-width: 100%; }
img { height: auto; }

::selection { background: var(--wash-peri); color: var(--text); }

h1, h2, h3, h4 { margin: 0; font-family: 'Josefin Sans', system-ui, sans-serif; color: var(--text); }
h2 { font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.15; letter-spacing: 0.005em; max-width: 20ch; }
h3 { font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.3; letter-spacing: 0.01em; }
h4, .h4 { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; letter-spacing: 0.01em; }

p { margin: 0; max-width: 65ch; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--ink-peri); }

.display {
  font-family: 'Poiret One', 'Josefin Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--ink-peri);
  max-width: 16ch;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 45ch;
}

.small { font-size: 1rem; line-height: 1.6; color: var(--text-muted); }
.caption { font-size: 0.8125rem; line-height: 1.5; color: var(--text-muted); }
.note { margin-top: 1rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: 'Josefin Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.33;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow--rule::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  margin-right: 10px;
  vertical-align: 0.28em;
  background: var(--periwinkle);
}

.nowrap { white-space: nowrap; }

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

.skip {
  position: fixed; top: -100px; left: 12px; z-index: 100;
  padding: 0.75rem 1.25rem; border-radius: var(--r-control);
  background: var(--periwinkle-deep); color: #FFFFFF; text-decoration: none;
  font-family: 'Josefin Sans', sans-serif; font-weight: 600;
}
.skip:focus { top: 12px; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */

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

@media (min-width: 48rem) { :root { --gutter: 32px; } }

section { padding-block: var(--sec); }
section[id] { scroll-margin-top: calc(var(--head-h) + 16px); }

.band { background: var(--band); }

.intro { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.intro .lead { margin-top: 1rem; }

.grid { display: grid; gap: 1rem; }
@media (min-width: 40.0625rem) { .grid { gap: 1.25rem; } .grid--4, .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .grid { gap: 1.75rem; }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

.split { display: grid; gap: 2rem; }
@media (min-width: 64rem) {
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4.5rem; align-items: center; }
  .split--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .split--rev .slab { order: -1; }
}

/* ── Kopf ─────────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-std), box-shadow var(--dur) var(--ease-std);
}
.site-head.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-card); }

.head__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--head-h); }

.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup__icon { width: 36px; height: 36px; border-radius: var(--r-control); }
.lockup__word {
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 1.25rem;
  line-height: 1; letter-spacing: 0.02em; color: var(--text);
}

/* Unter 64rem trägt der Kopf nur das Lockup — kein Status, keine Navigation,
   kein CTA. Auf einem Telefon ist der Kopf dauerhaft sichtbar, und alles darin
   nimmt Platz vom Inhalt weg; Status und CTA stehen zwei Bildschirme weiter
   unten ohnehin ausführlich.

   Die drei Regeln hängen an `.site-head`, damit sie nicht von `.btn` überstimmt
   werden: `.head__cta` und `.btn` sind gleich spezifisch, und `.btn` steht
   weiter unten in der Datei — ohne den Vorfahren hätte der Knopf trotz
   `display: none` gewonnen. */
.site-head .head__status,
.site-head .head__nav,
.site-head .head__cta { display: none; }

/* Der Status steht neben dem Lockup, nicht darin — eine Zeile im Lockup
   verbietet BRAND.md. Er schiebt gleichzeitig die Navigation nach rechts. */
.head__status {
  align-items: center; flex: none;
  margin-right: auto; padding: 3px 0.625rem;
  border-radius: var(--r-pill);
  background: var(--wash-peri); border: 1px solid var(--periwinkle); color: var(--ink-peri);
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 0.6875rem;
  line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}

.head__nav { gap: 0.25rem; }
.head__nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding-inline: 0.75rem;
  border-radius: var(--r-control);
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 0.9375rem;
  letter-spacing: 0.01em; color: var(--text); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-std);
}
.head__nav a:hover { background: var(--pressed); }
.head__nav a[aria-current='true'] { color: var(--ink-peri); }

@media (min-width: 64rem) {
  .site-head .head__status { display: inline-flex; }
  .site-head .head__nav { display: flex; }
  .site-head .head__cta { display: inline-flex; }
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding-inline: 1.5rem;
  border: 1.5px solid transparent; border-radius: var(--r-control);
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 1.125rem;
  line-height: 1.25; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-std), border-color var(--dur-fast) var(--ease-std),
              transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn--sm { min-height: 48px; padding-inline: 1.125rem; font-size: 1rem; }

.btn--primary {
  background: var(--periwinkle-deep);
  background: linear-gradient(135deg, var(--periwinkle-deep) 0%, var(--periwinkle-deeper) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-card);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-raised); }
.btn--primary:active { transform: scale(0.985); }

.btn--secondary {
  background: var(--surface);
  color: var(--ink-peri);
  border-color: var(--periwinkle);
  box-shadow: var(--card-shadow);
}
.btn--secondary:hover { background: var(--wash-peri); transform: translateY(-1px); }
.btn--secondary:active { transform: scale(0.985); background: var(--pressed); }

.cta-row { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 40.0625rem) { .cta-row { flex-direction: row; flex-wrap: wrap; } }

/* ── Chips ────────────────────────────────────────────────────────────────── */

/* Der Stand der Dinge, ruhig gesetzt: Periwinkle-Wash, kein Coral. Coral heißt
   in diesem Produkt Feiertag oder Alarm — eine Testphase ist weder das eine
   noch das andere. */
.statusnote {
  margin-top: 1.75rem; padding: 1rem 1.125rem;
  border-radius: var(--r-card); border-left: 3px solid var(--periwinkle);
  background: var(--wash-peri); color: var(--text);
  max-width: 34rem;
}
.statusnote__pill {
  display: inline-block; margin-right: 0.5rem; padding: 2px 0.5rem;
  border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--periwinkle); color: var(--ink-peri);
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 0.6875rem;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}

.chiprow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding-inline: 0.875rem;
  border: 1.5px solid var(--border); border-radius: var(--r-pill);
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.02em; color: var(--text-muted);
}
.chip--static { border-color: var(--periwinkle); color: var(--ink-peri); background: var(--wash-peri); }

/* ── Karten ───────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  padding: 1.25rem;
}
@media (min-width: 40.0625rem) { .card { padding: 1.5rem; } }
@media (min-width: 64rem) { .card { padding: 1.75rem; } }

.card h3 { margin-top: 1rem; }
.card h3:first-child { margin-top: 0; }
.card .small { margin-top: 0.5rem; }

.grid--plain > li { padding: 0; }

.slab {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--r-sheet);
  box-shadow: var(--raised-shadow);
  overflow: hidden;
}
.slab--pad { padding: clamp(1.5rem, 3vw, 2rem); }

/* ── Icons ────────────────────────────────────────────────────────────────── */

.ic {
  width: 36px; height: 36px;
  fill: none; stroke: var(--ink-peri); stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic--sm { width: 28px; height: 28px; margin-bottom: 0.75rem; }
.ic--berry { stroke: var(--ink-berry); }
.ic--coral { stroke: var(--ink-coral); }
.ic--sage { stroke: var(--ink-sage); }

/* Gezeichnete Glyphen — wie in der App, wo Haken und Plus gezeichnet und nicht
   gesetzt sind: eine Schriftglyphe zentriert optisch nie sauber. */
.chev {
  display: inline-block; width: 9px; height: 9px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  border-radius: 0 0 2px 0;
  transform: rotate(-45deg);
}
.chev--l { transform: rotate(135deg); margin-left: 3px; }
.chev--r { transform: rotate(-45deg); margin-right: 3px; }
.chev--d { transform: rotate(45deg); margin-bottom: 4px; transition: transform var(--dur) var(--ease-out); }

.tick {
  display: block; width: 14px; height: 8px; margin-top: 0.45em; flex: none;
  border-left: 2px solid var(--ink-sage); border-bottom: 2px solid var(--ink-sage);
  border-radius: 0 0 0 1px;
  transform: rotate(-45deg);
}

.ticks { display: grid; gap: 0.75rem; margin-top: 1.75rem; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 0.75rem; align-items: start; }

/* ── NavGroup (Abbild der App-IA) ─────────────────────────────────────────── */

.navgroup {
  margin-top: 1.25rem;
  border-radius: var(--r-card);
  background: var(--bg);
  overflow: hidden;
}
.navrow {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 0.5rem 1rem;
  color: var(--text-faint);
}
.navrow + .navrow { border-top: 1px solid var(--border); }
.navrow b { display: block; font-weight: 600; font-size: 1rem; color: var(--text); }
.navrow em { display: block; font-style: normal; font-size: 0.8125rem; color: var(--text-muted); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 50% at 50% 0%, rgba(119, 125, 167, 0.14) 0%, rgba(119, 125, 167, 0) 70%),
    linear-gradient(160deg, var(--bg) 0%, var(--band) 55%, var(--wash-peri) 100%);
  padding-block: clamp(2.5rem, 5vw, 6rem) var(--sec);
}
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4rem; }
  .hero { min-height: min(46rem, calc(100vh - var(--head-h))); display: flex; align-items: center; }
  .hero .lead { max-width: 32rem; }
}
.hero .lead { margin-top: 1rem; }
.hero__stage { display: flex; justify-content: center; }
.brk { display: inline; }
@media (min-width: 64rem) { .brk { display: block; height: 0; } }

/* ── Geräte-Rahmen ────────────────────────────────────────────────────────── */

.shot { margin: 0; --phone-w: 15.5rem; }
.shot--hero { --phone-w: 17.5rem; }
@media (min-width: 40.0625rem) { .shot { --phone-w: 15rem; } .shot--hero { --phone-w: 17.5rem; } }
@media (min-width: 64rem) { .shot { --phone-w: 16.25rem; } .shot--hero { --phone-w: 20rem; } }

/* Fertig gerahmter Screenshot: das Bild bringt seinen eigenen Gerätrahmen mit,
   also KEIN .phone drumherum — sonst steckt ein Telefon in einem Telefon.
   Der Schatten ist drop-shadow, nicht box-shadow: er folgt der Alpha-Kante des
   PNG und nicht dem rechteckigen Kasten, falls die Ecken freigestellt sind. */
.shot__img {
  display: block;
  width: var(--phone-w);
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(136, 80, 83, 0.22)) drop-shadow(0 4px 10px rgba(136, 80, 83, 0.10));
}
@media (prefers-color-scheme: dark) {
  .shot__img { filter: drop-shadow(0 24px 44px rgba(20, 14, 15, 0.65)); }
}

.phone {
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 9 / 19.5;
  padding: 11px;
  border-radius: 44px;
  background: linear-gradient(155deg, #3A2E30 0%, #241C1D 46%, #403335 100%);
  /* Der Rahmen ist ein Objekt, keine Fläche: er behält seinen Schatten auch im
     Dark Mode, sonst löst sich ein dunkles Telefon auf dunklem Grund auf.
     Die Innenkante ist Teil der Zeichnung, kein Elevation-Rand. */
  box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone::after {
  content: ''; position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 24px; border-radius: var(--r-pill); background: #151011; z-index: 4;
}
.phone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 33px; overflow: hidden; isolation: isolate;
  background: var(--mock-bg, #FDFAF9);
}
.phone__status {
  position: relative; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between;
  height: 44px; padding: 0 20px 6px 22px;
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 11px; line-height: 1;
  color: #2D2527;
}
.stat__icons { display: inline-flex; align-items: flex-end; gap: 4px; opacity: 0.9; }
.ic-signal { width: 13px; height: 9px; background:
  linear-gradient(to top, currentColor 40%, transparent 40%) 0 0/3px 100% no-repeat,
  linear-gradient(to top, currentColor 62%, transparent 62%) 5px 0/3px 100% no-repeat,
  linear-gradient(to top, currentColor 100%, transparent 100%) 10px 0/3px 100% no-repeat; }
.ic-wifi { width: 11px; height: 9px; border: 2px solid currentColor; border-radius: 50%;
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 55%); }
.ic-batt { width: 16px; height: 9px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.ic-batt::before { content: ''; position: absolute; inset: 1.5px; width: 65%; background: currentColor; border-radius: 1px; }

.phone__home {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 5px; border-radius: var(--r-pill);
  background: rgba(45, 37, 39, 0.28); z-index: 3;
}

/* Austausch gegen echte PNGs: <div class="mock"> löschen, dieses <img> einsetzen
   und .phone--shot auf .phone setzen. Am Kasten ändert sich dabei nichts. */
.phone__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone--shot .phone__status, .phone--shot .phone__home { display: none; }

/* ── Mock-Innenleben ──────────────────────────────────────────────────────── */

.mock {
  position: absolute; inset: 0; overflow: hidden;
  padding: 44px 14px 0;
  display: flex; flex-direction: column; gap: 0.55em;
  /* 1em = 16dp der App, skaliert mit der Rahmenbreite. Alle Maße darin in em. */
  font-size: calc(var(--phone-w) * 16 / 390);
  font-family: 'Nunito Sans', sans-serif;
  line-height: 1.35;
  color: var(--mock-text);
  background: var(--mock-bg);
  user-select: none;

  --mock-bg: #FDFAF9;
  --mock-surface: #FFFFFF;
  --mock-text: #2D2527;
  --mock-muted: #6B5F62;
  --mock-faint: #9C8F92;
  --mock-border: #E8E0DE;
  --mock-shadow: 0 2px 16px rgba(136, 80, 83, 0.10);
}

.mk-greet { font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 1.5em; line-height: 1.15; color: var(--ink-peri); }
.mk-cap { font-size: 0.75em; color: var(--mock-muted); }
.mk-sec {
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 0.72em;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--mock-muted);
  margin-top: 0.3em; display: flex; gap: 0.5em;
}

.mk-card {
  background: var(--mock-surface); border-radius: 1em; box-shadow: var(--mock-shadow);
  padding: 0.7em 0.85em;
}

/* Kantenlänge in der EIGENEN em-Einheit, damit ein geerbter font-size die
   Kreisgröße nicht zweimal skaliert: 3.2em × 0.6 = 1.92em der Elternschrift. */
.mk-av {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 3.2em; height: 3.2em; border-radius: 50%;
  background: var(--c); color: #FFFFFF;
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 0.6em; letter-spacing: 0.02em;
}
.mk-av--sm { width: 2.9em; height: 2.9em; font-size: 0.55em; }

.mk-legend { display: flex; gap: 0.7em; overflow: hidden; }
.mk-legend li { display: flex; flex-direction: column; align-items: center; gap: 0.25em; font-size: 0.68em; color: var(--mock-muted); }

.mk-strip { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); padding: 0.5em 0.35em 0.8em; }
.mk-day { display: flex; flex-direction: column; align-items: center; gap: 0.15em; position: relative; z-index: 2; }
.mk-day b { font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 0.62em; color: var(--mock-muted); }
.mk-day span { font-size: 0.85em; font-weight: 600; }
.mk-dot { width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--c); }
.mk-strip__sel {
  position: absolute; top: 0.35em; bottom: 0.45em; left: 0.35em; z-index: 1;
  width: calc((100% - 0.7em) / 7); border-radius: 0.75em;
  background: rgba(119, 125, 167, 0.15); border: 1.5px solid var(--periwinkle);
  /* Ruhezustand = Donnerstag (Spalte 4). Ohne JS steht die Auswahl sofort richtig. */
  transform: translateX(300%);
  transition: transform var(--dur-signature) var(--ease-out);
}
.mk-hero { display: flex; flex-direction: column; gap: 0.55em; }
.mk-ev { display: flex; align-items: center; gap: 0.6em; }
.mk-rail { width: 0.2em; align-self: stretch; min-height: 2em; border-radius: 2px; background: var(--c); flex: none; }
.mk-ev__t { flex: 1; font-weight: 600; font-size: 0.85em; }
.mk-ev__t em { display: block; font-style: normal; font-weight: 400; font-size: 0.85em; color: var(--mock-muted); }
.mk-meal { display: flex; align-items: center; gap: 0.5em; padding-top: 0.4em; font-size: 0.8em; color: var(--mock-muted); }
.mk-fork { width: 0.9em; height: 0.9em; flex: none; border-left: 2px solid currentColor; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 0 0 40% 40%; }

.mk-todo { display: flex; align-items: center; gap: 0.6em; font-size: 0.85em; font-weight: 600; min-height: 2.6em; }
/* Nur ein abschließender Avatar wird nach rechts geschoben — im Familien-Mock
   steht er vorne und darf nicht wandern. */
.mk-todo .mk-av:last-child { margin-left: auto; }
.mk-box { width: 1.1em; height: 1.1em; flex: none; border: 2px solid var(--mock-faint); border-radius: 50%; }


.avs { display: inline-flex; }
.avs .av {
  display: inline-flex; align-items: center; justify-content: center;
  /* wie .mk-av: Kantenlänge in eigener em-Einheit, damit sie nicht doppelt skaliert */
  width: 3.2em; height: 3.2em; margin-left: -0.9em; border-radius: 50%;
  background: var(--c); color: #FFFFFF; border: 2px solid var(--mock-surface, var(--surface));
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 0.6em;
}
.avs .av:first-child { margin-left: 0; }

/* ── Kalender-Slab / Kalender-Mock ────────────────────────────────────────── */

.cal { padding: clamp(1rem, 2.5vw, 1.5rem); font-size: 1rem; }
.cal__head { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.75rem; }
.cal__head b { font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 1.375rem; }
.cal__head span { color: var(--text-muted); }
.cal__wd, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25em; }
.cal__wd span {
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 0.7em;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted);
  text-align: center; padding-bottom: 0.4em;
}
/* Die Zellen tragen KEINE eigene font-size — sonst stimmt die em-Rechnung der
   Ferienbahn unten nicht mehr. Die Schriftgrößen sitzen an den Kindern. */
.cal__c {
  position: relative; min-height: 3.4em; padding: 0.25em;
  border-radius: 0.5em; background: var(--bg-muted);
}
.cal__c > span { display: block; font-size: 0.8em; font-weight: 600; line-height: 1.25; }
.cal__c--dim { opacity: 0.45; }
.cal__c--today { outline: 1.5px solid var(--periwinkle); outline-offset: -1.5px; }
.cal__c--hol { background: var(--wash-coral); }
.cal__c--hol > span { color: var(--ink-coral); }
.cal__lbl {
  display: block; font-style: normal; font-size: 0.58em; line-height: 1.15;
  color: var(--ink-coral); overflow: hidden; max-height: 2.4em;
}
.cal__e { display: block; height: 0.3em; margin-top: 0.3em; border-radius: 2px; background: var(--c); }

/* Mehrtägiger Termin als durchgehende Bahn: liegt in der ersten Zelle ihrer
   Woche und überspannt 5 Spalten + 4 Lücken (die Lücke ist 0.25em). */
.cal__c--lane { padding-bottom: 1.4em; }
.cal__lanebar {
  position: absolute; left: 0; bottom: 0.25em; z-index: 2;
  width: calc(500% + 1em); height: 1.15em;
  display: flex; align-items: center; padding-inline: 0.5em;
  border-radius: var(--r-pill); background: rgba(198, 236, 174, 0.55);
  white-space: nowrap; overflow: hidden;
}
.cal__lanebar b {
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 0.62em;
  color: var(--ink-mint);
}

/* ── Familie-Slab ─────────────────────────────────────────────────────────── */

.code {
  display: inline-block; margin: 0.25rem 0 1.25rem;
  padding: 1rem 1.25rem; border-radius: var(--r-control); background: var(--bg-muted);
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 2rem;
  letter-spacing: 0.14em; color: var(--ink-peri);
}
.fam { display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; font-size: 1rem; }
.fam .avs .av { border-color: var(--surface); font-size: 0.75rem; width: 2.5rem; height: 2.5rem; margin-left: -0.7rem; }

/* ── Screenshot-Rail ──────────────────────────────────────────────────────── */

.rail__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.rail__top .intro { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.rail__ctrls { display: none; gap: 0.5rem; padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.rail__btn {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-peri); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-std), border-color var(--dur-fast) var(--ease-std), transform var(--dur-fast) var(--ease-out);
}
.rail__btn:hover { background: var(--pressed); border-color: var(--periwinkle); }
.rail__btn:active { transform: scale(0.94); }
.rail__btn[aria-disabled='true'] { opacity: 0.4; pointer-events: none; }
@media (min-width: 64rem) { .rail__ctrls { display: flex; } }

.rail-mask { overflow: hidden; }
@media (min-width: 40.0625rem) {
  .rail-mask {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3rem, #000 calc(100% - 3rem), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 3rem, #000 calc(100% - 3rem), transparent 100%);
  }
}
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: max-content;
  gap: 1.25rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  /* Oben muss zweierlei hineinpassen: der Versatz der angehobenen Telefone
     (siehe unten, 1.5rem) und der Überstand ihres drop-shadow (Blur 40px minus
     Y-Versatz 24px ≈ 1rem nach oben). overflow-x: auto macht die Achse
     senkrecht rechnerisch ebenfalls zu „auto" — zu wenig Polster heißt hier
     also abgeschnittene Rahmenkante, nicht Überstand. */
  padding: 1.5rem var(--gutter) 1rem;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail .shot { scroll-snap-align: center; }
@media (min-width: 40.0625rem) { .rail { gap: 1.5rem; } }
@media (min-width: 64rem) {
  .rail {
    gap: 2rem;
    padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
    padding-top: 3.25rem;   /* 1.5rem Versatz + 1rem Schatten + Luft */
  }
  .rail .shot:nth-child(even) { transform: translateY(-1.5rem); }
}

.shot__cap { display: grid; gap: 0.25rem; margin: 1.25rem 0 0; max-width: var(--phone-w); }
.shot__cap .eyebrow { margin: 0; }
.shot__cap .caption { text-wrap: balance; }

.dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--border); transition: width var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); }
.dot.is-on { width: 20px; background: var(--periwinkle); }
@media (min-width: 64rem) { .dots { display: none; } }

/* ── Laden ────────────────────────────────────────────────────────────────── */

.laden__grid { display: grid; gap: 2.5rem; }
@media (min-width: 40.0625rem) { .laden__grid { grid-template-columns: minmax(0, 1fr) 16rem; gap: 2.5rem; align-items: center; } }
@media (min-width: 64rem) { .laden__grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; } }

/* Nicht auf volle Breite ziehen: im Zustand „Testphase" sitzt die Pille sonst
   weit rechts vom Badge und wirkt wie ein loses Etikett. */
.badges { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; align-items: flex-start; }
@media (min-width: 40.0625rem) { .badges { flex-direction: row; align-items: center; gap: 1rem; } }

.badge {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 4px; border-radius: var(--r-control);
}
.badge img { height: 48px; width: auto; }
@media (min-width: 40.0625rem) { .badge img { height: 52px; } }
a.badge { transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out); }
a.badge:hover { transform: translateY(-1px); filter: brightness(1.04); }
a.badge:focus-visible { outline-offset: 4px; }

/* Der Filter sitzt am <img>, nicht am Kasten: ein filter auf dem Elternteil
   ließe sich vom Kind nicht zurücknehmen und würde die Pille mit ausgrauen. */
.badge--soon { border: 1.5px dashed var(--border); }
.badge--soon img { filter: grayscale(1); opacity: 0.55; }
.pill-soon {
  position: absolute; top: -8px; right: -8px;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--wash-peri); color: var(--ink-peri); border: 1px solid var(--periwinkle);
  font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 0.6875rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.laden__hint { display: block; margin-top: 1rem; }
@media (min-width: 40.0625rem) { .laden__hint { display: none; } }
.laden__copy .btn { margin-top: 1.25rem; }

.laden__qr {
  position: relative; display: none; text-align: center;
  padding: 1.5rem; border-radius: var(--r-sheet); box-shadow: var(--raised-shadow);
  overflow: hidden;
}
/* Die eine sanktionierte Akzentlinie der Seite. */
.laden__qr::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--periwinkle) 0%, var(--sage) 50%, var(--mint) 100%);
}
@media (min-width: 40.0625rem) { .laden__qr { display: block; } }

/* Scanner brauchen eine helle Ruhezone — die Platte bleibt in beiden Themes weiß. */
.qr__plate { background: #FFFFFF; border-radius: var(--r-control); padding: 14px; display: inline-block; }
.qr__img { display: block; width: 100%; max-width: 180px; height: auto; shape-rendering: crispEdges; }
.qr__cap { margin-top: 0.875rem; }
.link-quiet { color: var(--ink-peri); text-decoration: underline; text-underline-offset: 3px; }
.qr__link { display: inline-block; padding-block: 0.5rem; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--r-card);
  box-shadow: var(--card-shadow); padding: 0 1.25rem;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding-block: 0.75rem; cursor: pointer; list-style: none;
  font-family: 'Nunito Sans', sans-serif; font-weight: 600; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .chev--d { transform: rotate(-135deg); margin-bottom: -4px; }
.faq details p { padding-bottom: 1.25rem; max-width: 60ch; }

/* ── Abschluss + Fuß ──────────────────────────────────────────────────────── */

.closing { text-align: center; }
.closing h2, .closing .lead { margin-inline: auto; }
.closing .lead { margin-top: 1rem; }
.closing .btn { margin-top: 2rem; }

.site-foot { padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; background: var(--band); border-top: 1px solid var(--border); }
.foot__grid { display: grid; gap: 2.5rem; }
@media (min-width: 40.0625rem) { .foot__grid { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; } }
.foot__brand .lockup__icon { width: 48px; height: 48px; border-radius: var(--r-control); }
.foot__brand .lockup__word { display: block; margin-top: 0.5rem; }
.foot__brand .caption { margin-top: 0.25rem; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; }
.foot__col .h4 { margin-bottom: 0.5rem; }
.foot__col a {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px;
  font-size: 1rem;
}
.foot__col a:hover { color: var(--text); }
.foot__bottom { max-width: var(--wrap); margin: 2.5rem auto 0; padding-inline: var(--gutter); }

/* ── Rechtliche Seiten ────────────────────────────────────────────────────── */

.legal h1 {
  font-family: 'Josefin Sans', sans-serif; font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.15;
}
.legal .lead { margin-top: 1rem; }
.legal h2 { font-size: 1.375rem; margin-top: 2.5rem; }
.legal h2 + .small { margin-top: 0.75rem; }
.callout {
  margin-top: 2.5rem; padding: 1.25rem;
  border-radius: var(--r-card); border-left: 3px solid var(--periwinkle);
  background: var(--wash-peri);
}
.callout .small { color: var(--text); }

/* ── Motion ───────────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Die eine Choreografie der Seite: der Wochenstreifen wählt Mittwoch — die
   Kerninteraktion der App, nicht Dekoration. Läuft genau einmal.

   Der Ruhezustand ist der ENDzustand. `.is-cued` setzt das Hero kurz auf den
   Anfangszustand zurück und wird von main.js wieder entfernt; ohne JS und bei
   reduzierter Bewegung sieht man einfach sofort das Ergebnis. */
.mk-hero [data-ev] {
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.mk-hero [data-ev]:nth-of-type(2) { transition-delay: 90ms; }
.mk-hero [data-ev]:nth-of-type(3) { transition-delay: 180ms; }
.hero.is-cued .mk-hero [data-ev] { opacity: 0; transform: translateY(8px); transition: none; }
.hero.is-cued .mk-strip__sel { transform: translateX(0); transition: none; }
#heroDate { transition: opacity var(--dur) var(--ease-std); }
.hero.is-cued #heroDate { opacity: 0.55; }

/* ── Sonderfälle ──────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .mk-hero [data-ev] { opacity: 1; transform: none; }
  .btn:hover, a.badge:hover, .rail__btn:active, .btn:active { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --border: #C9BEBB; }
  .card, .faq details { border-color: var(--border); }
}

@media (forced-colors: active) {
  :where(a, button, summary, [tabindex]):focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }
  .phone, .card, .slab { border: 1px solid CanvasText; }
}

@media print {
  .site-head, .rail__ctrls, .dots, .skip { display: none; }
  .reveal { opacity: 1; transform: none; }
}
