/* ============================================================
   Fadoo — Landingpage
   Pures CSS, Design-Tokens 1:1 aus der App (frontend/src/styles/tokens.css)
   ============================================================ */

/* ---------- Fonts (self-hosted, DSGVO-konform) ---------- */
@font-face {
  font-family: "ABeeZee";
  src: url("/fonts/abeezee-v23-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ABeeZee";
  src: url("/fonts/abeezee-v23-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-v5-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-v5-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #f5f1e8;
  --surface: #ffffff;
  --surface-2: #fbf8f1;
  --bg-sunken: #ece6d8;

  /* Ink / Text */
  --ink: #181613;
  --ink-muted: #6d685c;
  --ink-faint: #aea89a;

  /* Borders */
  --border: #e7e0cf;
  --border-strong: #cfc8b4;

  /* Brand (Coral) */
  --brand: oklch(0.66 0.16 28); /* identity color: glows, accents, marks */
  --brand-strong: oklch(0.6 0.17 28);
  --brand-soft: oklch(0.93 0.045 40);
  --brand-ink: oklch(0.32 0.1 28);
  /* Filled CTA needs a darker coral so white text clears WCAG AA (>=4.5:1) */
  --brand-cta: oklch(0.565 0.165 31);
  --brand-cta-hover: oklch(0.51 0.17 31);
  --flame: #ff8a4a;

  /* Member signature colors */
  --m-mama: oklch(0.8 0.1 25);
  --m-papa: oklch(0.78 0.09 230);
  --m-anna: oklch(0.86 0.13 95);
  --m-leo: oklch(0.82 0.11 150);
  --m-mila: oklch(0.8 0.11 320);
  --m-pool: oklch(0.9 0.01 80);

  /* Fonts */
  --font-ui: "ABeeZee", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.03), 0 2px 8px rgba(20, 18, 14, 0.04);
  --shadow-2: 0 4px 12px rgba(20, 18, 14, 0.06), 0 12px 32px rgba(20, 18, 14, 0.08);
  --shadow-3: 0 8px 24px rgba(20, 18, 14, 0.1), 0 24px 56px rgba(20, 18, 14, 0.12);

  /* Easing */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);

  /* Layout */
  --container: 1120px;
  --pad-x: clamp(22px, 5vw, 64px);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* sticky header (72px) + breathing room for anchor targets */
  -webkit-text-size-adjust: 100%;
}

/* Skip-to-content (sichtbar nur bei Fokus) */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 11px 18px;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  transition: top 180ms var(--ease-out);
}
.skip-link:focus-visible {
  top: 12px;
}

body {
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Warm paper grain + soft coral glow behind hero */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 82% -5%, oklch(0.88 0.08 40 / 0.55), transparent 70%),
    radial-gradient(50% 40% at 8% 8%, oklch(0.9 0.05 150 / 0.35), transparent 70%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--brand-ink);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Lucide-Icons via <use>: Präsentationsattribute am <defs>-Vorfahren werden vom
   <use>-Shadow-Tree NICHT geerbt → fill/stroke global per CSS setzen (das vererbt korrekt). */
svg.ico,
svg.flame {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px oklch(0.66 0.16 28 / 0.18);
}

.lede {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 46ch;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

section {
  position: relative;
}

.section-pad {
  padding-block: clamp(64px, 8vw, 128px);
}

.section-head {
  max-width: 620px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.section-head p {
  color: var(--ink-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 13px 24px;
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 80ms ease,
    box-shadow 200ms var(--ease-out),
    background-color 150ms var(--ease-out),
    border-color 150ms var(--ease-out);
}
.btn:active {
  transform: scale(0.96);
}
.btn-brand {
  background: var(--brand-cta);
  color: #fff;
  box-shadow: 0 1px 2px oklch(0.5 0.16 28 / 0.4), 0 8px 24px oklch(0.66 0.16 28 / 0.28);
}
.btn-brand:hover {
  background: var(--brand-cta-hover);
  box-shadow: 0 2px 4px oklch(0.5 0.16 28 / 0.45), 0 14px 34px oklch(0.66 0.16 28 / 0.38);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink-faint);
}
.btn-lg {
  padding: 16px 30px;
  font-size: 1.05rem;
}
.btn .ico {
  width: 18px;
  height: 18px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 250ms var(--ease-out), box-shadow 250ms var(--ease-out), border-color 250ms;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: oklch(0.97 0.012 85 / 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
}
.brand .dotmark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  margin-left: 3px;
  align-self: flex-end;
  margin-bottom: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink-muted);
  transition: color 150ms;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 8px;
  color: var(--ink);
}
.nav-toggle .ico {
  width: 22px;
  height: 22px;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(56px, 8vw, 120px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.7rem, 1.6rem + 5.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 22px 0 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand-ink);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 30px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-trust .ico {
  width: 16px;
  height: 16px;
  color: var(--brand-ink);
}

/* ---------- App preview (recreated UI) ---------- */
.preview {
  position: relative;
  perspective: 1400px;
}
.preview-stack {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 6px;
}
.streak-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-2);
}
.streak-ribbon .left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.streak-ribbon .flame {
  width: 34px;
  height: 34px;
  color: var(--flame);
}
.streak-ribbon .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
}
.streak-ribbon .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.streak-ribbon .pts {
  text-align: right;
}
.streak-ribbon .pts b {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
}

.task-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 15px 16px;
  box-shadow: var(--shadow-1);
}
.task-card .swatch {
  width: 8px;
  align-self: stretch;
  border-radius: var(--r-pill);
  flex: none;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: oklch(0.3 0.05 60);
  flex: none;
}
.task-card .body {
  flex: 1;
  min-width: 0;
}
.task-card .title {
  font-size: 0.98rem;
  font-weight: 400;
}
.task-card .meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 2px;
}
.task-card .pts {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brand-ink);
  flex: none;
}
.check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex: none;
  display: grid;
  place-items: center;
  color: transparent;
  transition: background 150ms, border-color 150ms, color 150ms;
}
.task-card.done {
  opacity: 0.62;
}
.task-card.done .title {
  text-decoration: line-through;
  text-decoration-color: var(--ink-faint);
}
.task-card.done .check {
  background: var(--m-leo);
  border-color: transparent;
  color: oklch(0.3 0.08 150);
}
.check .ico {
  width: 18px;
  height: 18px;
}
.preview-badge {
  position: absolute;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 9px 15px;
  box-shadow: var(--shadow-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 400;
}
.preview-badge.celebrate {
  top: -18px;
  right: 6%;
  color: var(--brand-ink);
}
.preview-badge.point {
  bottom: 14%;
  left: -22px;
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.preview-badge .ico {
  width: 17px;
  height: 17px;
}

/* ---------- Trust marquee ---------- */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--surface-2);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  padding-block: 18px;
  width: max-content;
  /* 65s ≈ 40px/s — gleiches Scroll-Tempo wie zuvor (Distanz ist jetzt
     2 Gruppen statt 1 Set, darum proportional länger). */
  animation: scroll-x 65s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 56px;
  /* Naht-Abstand: ersetzt den Gap, den `gap` NACH dem letzten Item nicht
     setzt. Ohne ihn läge -50% um einen halben Gap (28px) daneben → Ruck. */
  padding-inline-end: 56px;
  flex: 0 0 auto;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-muted);
  white-space: nowrap;
}
.marquee-item .ico {
  width: 19px;
  height: 19px;
  color: var(--brand);
  font-style: normal;
}
@keyframes scroll-x {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Bento features ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-1);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: span 2;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
/* span3 = half-width bento card; wide = same width but emphasised (hero feature) */
.feature.wide,
.feature.span3 {
  grid-column: span 3;
}
.feature .ficon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
}
.feature .ficon .ico {
  width: 24px;
  height: 24px;
}
.feature h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.1;
}
.feature p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.feature.wide h3 {
  font-size: 1.7rem;
}
.tint-mama { background: oklch(0.8 0.1 25); color: oklch(0.32 0.1 25); }
.tint-papa { background: oklch(0.78 0.09 230); color: oklch(0.32 0.09 250); }
.tint-anna { background: oklch(0.86 0.13 95); color: oklch(0.38 0.09 80); }
.tint-leo  { background: oklch(0.82 0.11 150); color: oklch(0.32 0.09 155); }
.tint-mila { background: oklch(0.8 0.11 320); color: oklch(0.34 0.1 320); }
.tint-coral { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- Audience split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.persona {
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.persona.parents {
  background: var(--surface);
}
.persona.kids {
  background: linear-gradient(160deg, oklch(0.82 0.11 150 / 0.5), oklch(0.86 0.13 95 / 0.4));
  border-color: oklch(0.78 0.09 150 / 0.5);
}
.persona .kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.persona h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  line-height: 1.05;
  margin: 10px 0 18px;
}
.persona ul {
  list-style: none;
  display: grid;
  gap: 13px;
}
.persona li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
}
.persona li .ico {
  width: 21px;
  height: 21px;
  flex: none;
  margin-top: 2px;
  color: var(--brand-ink);
}
.persona.kids li .ico {
  color: oklch(0.32 0.09 155);
}

/* ---------- Kindermodus ---------- */
.kids-feature {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
/* DOM-Order ist Mockup → Copy: auf Desktop liegt das Mockup damit natürlich
   links, die Copy rechts. Auf Mobile wird die Copy via order nach oben gezogen
   (siehe @media 900px), damit die Section mit ihrer Überschrift beginnt. */
.kids-copy .eyebrow,
.kids-copy .eyebrow .dot {
  color: oklch(0.42 0.1 155);
}
.kids-copy .eyebrow .dot {
  background: oklch(0.7 0.13 150);
  box-shadow: 0 0 0 4px oklch(0.7 0.13 150 / 0.2);
}
.kids-copy h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 14px 0 16px;
}
.kids-copy h2 em {
  font-style: italic;
  color: oklch(0.48 0.1 155);
}
.kids-copy > p {
  color: var(--ink-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  max-width: 46ch;
}
.kids-points {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
.kids-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.kids-points .ficon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: oklch(0.82 0.11 150 / 0.42);
  color: oklch(0.32 0.09 155);
}
.kids-points .ficon .ico {
  width: 21px;
  height: 21px;
}
.kids-points b {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.2;
}
.kids-points .txt {
  display: block;
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-top: 2px;
}

/* Nachgebaute Kinder-Sicht (SimpleTasksView) */
.kidsview {
  background:
    linear-gradient(168deg, oklch(0.82 0.11 150 / 0.32), oklch(0.86 0.13 95 / 0.24)),
    var(--surface);
  border: 1px solid oklch(0.78 0.09 150 / 0.5);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-2);
  max-width: 440px;
  width: 100%;
}
.kidsview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.kv-hi {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.kv-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
}
.kv-sub {
  display: block;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.kv-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 15px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
}
.kidsview-cards {
  display: grid;
  gap: 10px;
}
.kidcard {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 22px;
  padding: 13px 15px;
  border: 1px solid rgba(20, 18, 14, 0.05);
  box-shadow: var(--shadow-1);
}
.kidcard-tile {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  display: grid;
  place-items: center;
  flex: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
}
.kidcard-tile .ico {
  width: 26px;
  height: 26px;
  color: var(--ink);
}
.kidcard-body {
  flex: 1;
  min-width: 0;
}
.kidcard-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.05;
  color: var(--ink);
}
.kidcard-pts {
  font-size: 0.8rem;
  font-weight: 700;
  color: oklch(0.32 0.04 60 / 0.8);
  margin-top: 3px;
}
.kidcard-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.kidcard-check .ico {
  width: 22px;
  height: 22px;
}
.kidcard.done {
  opacity: 0.58;
}
.kidcard.done .kidcard-title {
  text-decoration: line-through;
  text-decoration-color: var(--ink-faint);
}
.kidcard.done .kidcard-check {
  background: var(--ink);
  color: var(--bg);
}
.kidsview .streak-ribbon {
  margin-top: 14px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 14px;
}
.step .n {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--brand-strong);
}
.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 8px 0 8px;
}
.step p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ---------- Privacy panel ---------- */
.privacy {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.privacy h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  line-height: 1.04;
}
.privacy h2 em {
  color: var(--flame);
  font-style: italic;
}
.privacy p {
  color: oklch(0.82 0.01 80);
  margin-top: 16px;
  max-width: 42ch;
}
.privacy ul {
  list-style: none;
  display: grid;
  gap: 16px;
}
.privacy li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.privacy li .ico {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  color: oklch(0.82 0.11 150);
}
.privacy li b {
  font-weight: 400;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
}
.privacy li span {
  display: block;
  color: oklch(0.78 0.01 80);
  font-size: 0.9rem;
  margin-top: 2px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px 22px;
  transition: box-shadow 200ms, border-color 200ms;
}
.faq details[open] {
  box-shadow: var(--shadow-1);
  border-color: var(--border-strong);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 1.05rem;
  font-weight: 400;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .ico {
  width: 22px;
  height: 22px;
  color: var(--ink-muted);
  transition: transform 250ms var(--ease-out);
  flex: none;
}
.faq details[open] summary .ico {
  transform: rotate(45deg);
  color: var(--brand);
}
.faq .answer {
  padding: 0 0 20px;
  color: var(--ink-muted);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: 62ch;
}

/* ---------- Final CTA ---------- */
.cta-panel {
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% -20%, oklch(0.88 0.08 40 / 0.7), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-1);
}
.cta-panel h2 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.cta-panel h2 em {
  font-style: italic;
  color: var(--brand-ink);
}
.cta-panel p {
  color: var(--ink-muted);
  max-width: 44ch;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}
.cta-panel .hero-cta {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: clamp(48px, 8vw, 110px);
  padding-block: 52px 40px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand {
  max-width: 280px;
}
.footer-brand .brand {
  font-size: 1.5rem;
}
.footer-brand p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-top: 10px;
}
.footer-cols {
  display: flex;
  gap: clamp(32px, 6vw, 72px);
  flex-wrap: wrap;
}
.footer-col h3 {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: var(--ink-muted);
  font-size: 0.92rem;
  transition: color 150ms;
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}
/* will-change only while pending — dropped automatically once revealed */
.reveal:not(.in) {
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d="1"] { transition-delay: 80ms; }
.reveal[data-d="2"] { transition-delay: 160ms; }
.reveal[data-d="3"] { transition-delay: 240ms; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .preview {
    max-width: 460px;
    margin-inline: auto;
    /* Mobile: Text (hero-copy) zuerst, danach das Mockup — natürliche DOM-
       Reihenfolge, daher KEIN order-Override mehr (vorher order:-1). */
  }
  .privacy {
    grid-template-columns: 1fr;
  }
  .kids-feature {
    grid-template-columns: 1fr;
  }
  /* Copy (Überschrift + Text) zuerst, danach das demonstrierende Mockup. */
  .kids-copy {
    order: -1;
  }
  .kidsview {
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .feature,
  .feature.span3 {
    grid-column: span 1;
  }
  .feature.wide {
    grid-column: 1 / -1; /* hero feature spans full width */
  }
  .split {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* Mobile nav drawer */
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: var(--pad-x);
    right: var(--pad-x);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px;
    box-shadow: var(--shadow-2);
  }
  .nav-links.open li {
    width: 100%;
  }
  .nav-links.open a {
    display: block;
    padding: 12px 10px;
    width: 100%;
    border-radius: var(--r-sm);
  }
  .nav-links.open a:hover {
    background: var(--bg-sunken);
  }
}

@media (max-width: 460px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .hero-cta .btn {
    flex: 1 1 auto;
  }
  .preview-badge.point {
    left: 0;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .marquee-group {
    padding-inline-end: 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  /* Statisch reicht eine Gruppe — die übrigen drei sind nur fürs Scrollen da. */
  .marquee-group:nth-child(n + 2) {
    display: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
