/* Keewy – Landingpage
   Farben folgen der App-Palette (lib/core/theme/app_colors.dart). */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../assets/fonts/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #FFFCF7;
  --bg-alt: #F7F3EA;
  --surface: #FFFFFF;
  --surface-2: #FAF6EE;
  --mist: #EFF4EA;
  --ink: #252821;
  --ink-soft: #3E4239;
  --muted: #6E726B;
  --line: #E7E1D8;
  --line-soft: #EFE9DF;
  --sage: #8BA77B;
  --sage-deep: #5D7A4F;
  --sage-ink: #46613A;
  --sage-light: #A8BC98;
  --gold: #C4975A;
  --star: #EFD09A;
  --lavender: #7676BE;
  --lavender-soft: #ECEBF7;
  --amber: #F49A1D;
  --blush: #F6D9D2;
  --peach: #FCE6D8;
  --shadow-rgb: 143 124 96;
  --shadow-sm: 0 2px 6px rgb(var(--shadow-rgb) / .08);
  --shadow-md: 0 14px 34px -12px rgb(var(--shadow-rgb) / .22);
  --shadow-lg: 0 40px 80px -30px rgb(var(--shadow-rgb) / .38);
  --img-bg: #FFF9EE;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161914;
    --bg-alt: #1B1F18;
    --surface: #21261E;
    --surface-2: #262B22;
    --mist: #232A1F;
    --ink: #EEEBE3;
    --ink-soft: #D6D3CA;
    --muted: #A6AB9F;
    --line: #343A2F;
    --line-soft: #2B3127;
    --sage: #A8BC98;
    --sage-deep: #A8BC98;
    --sage-ink: #C7D6BA;
    --sage-light: #7F9670;
    --lavender-soft: #2A2A3D;
    --blush: #3A2B28;
    --peach: #3A3027;
    --shadow-rgb: 0 0 0;
    --img-bg: #F4EEE2;
  }
}
:root[data-theme="dark"] {
  --bg: #161914;
  --bg-alt: #1B1F18;
  --surface: #21261E;
  --surface-2: #262B22;
  --mist: #232A1F;
  --ink: #EEEBE3;
  --ink-soft: #D6D3CA;
  --muted: #A6AB9F;
  --line: #343A2F;
  --line-soft: #2B3127;
  --sage: #A8BC98;
  --sage-deep: #A8BC98;
  --sage-ink: #C7D6BA;
  --sage-light: #7F9670;
  --lavender-soft: #2A2A3D;
  --blush: #3A2B28;
  --peach: #3A3027;
  --shadow-rgb: 0 0 0;
  --img-bg: #F4EEE2;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; margin: 0; font-optical-sizing: auto; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.32rem; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sage-light); color: #1d2219; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage-deep); margin-bottom: 1rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sage) 25%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--sage) 0%, transparent); } }

.muted-h { color: var(--muted); font-style: italic; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 36rem; margin-top: 1.4rem; }
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-lead { color: var(--muted); font-size: 1.12rem; margin-top: 1.1rem; }
.h-sm { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  font-weight: 800; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { --b-bg: var(--sage-ink); --b-fg: #FFFCF7; --b-bd: var(--sage-ink); }
:root[data-theme="dark"] .btn-primary { --b-fg: #161914; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { --b-fg: #161914; } }
.btn-ghost { --b-bg: transparent; --b-fg: var(--sage-ink); --b-bd: color-mix(in srgb, var(--sage-deep) 45%, transparent); }
.btn-ghost:hover { --b-bg: var(--mist); }
.btn-sm { min-height: 40px; padding: .5rem 1.05rem; font-size: .9rem; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; gap: .4rem; margin-top: 1.1rem; color: var(--sage-ink); font-weight: 800; text-decoration: none; }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }
.text-btn { background: none; border: 0; padding: .4rem .2rem; color: var(--muted); font-weight: 700; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--ink); }

.store-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 56px; padding: .55rem 1.25rem .55rem 1rem; border-radius: 16px;
  background: var(--ink); color: var(--bg); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.store-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.store-btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-btn span { white-space: nowrap; display: flex; flex-direction: column; line-height: 1.1; font-weight: 800; font-size: 1.08rem; }
.store-btn small { font-size: .68rem; font-weight: 600; opacity: .8; letter-spacing: .02em; }
.store-btn.light { background: #FFFCF7; color: #252821; }
/* Noch nicht im Store: Badge ohne Link und ohne Hover */
.store-btn.is-soon, .btn.is-soon { cursor: default; opacity: .75; }
.store-btn.is-soon:hover, .btn.is-soon:hover { transform: none; box-shadow: none; --b-bg: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 6px 24px -18px rgb(var(--shadow-rgb) / .5); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--sage-ink); letter-spacing: .01em; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav a:not(.btn) {
  display: block; padding: .5rem .8rem; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .95rem; color: var(--ink-soft); transition: background-color .2s, color .2s;
}
.main-nav a:not(.btn):hover { background: var(--mist); color: var(--ink); }
.main-nav a.active { color: var(--sage-ink); background: var(--mist); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--line); cursor: pointer; transition: background-color .2s;
}
.icon-btn:hover { background: var(--mist); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob-1 { width: 520px; height: 520px; background: var(--mist); right: -120px; top: -80px; opacity: .9; }
.blob-2 { width: 380px; height: 380px; background: var(--peach); right: 22%; bottom: -140px; }
.blob-3 { width: 300px; height: 300px; background: var(--lavender-soft); left: -120px; top: 30%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.85rem); }
.hero h1 em { font-style: italic; color: var(--sage-deep); position: relative; isolation: isolate; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .2em; z-index: -1;
  background: var(--star); opacity: .55; border-radius: 99px; transform: scaleX(0); transform-origin: left;
  animation: underline 1.1s .5s var(--ease) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; color: var(--muted); font-size: .95rem; font-weight: 700; }
.hero-trust li { display: flex; align-items: center; gap: .45rem; }
.hero-trust svg { width: 18px; height: 18px; fill: none; stroke: var(--sage-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 760px; perspective: 1400px; }
.phone {
  grid-area: 1 / 1; position: relative; width: 300px; aspect-ratio: 300 / 650; border-radius: 48px; padding: 12px;
  background: linear-gradient(145deg, #2c3027, #1a1d17);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgb(255 255 255 / .06);
}
.phone-front {
  z-index: 1; margin-left: 120px;
  transform: rotateY(-8deg) rotateX(4deg); transform-style: preserve-3d;
  transition: transform .6s var(--ease);
  animation: float 7s ease-in-out infinite;
}
.phone-back { width: 250px; margin-right: 170px; transform: rotate(-7deg); filter: saturate(.92); }
@keyframes float { 50% { translate: 0 -12px; } }
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #F1F4ED; display: flex; flex-direction: column; }
.phone-back .screen { border-radius: 30px; }
.status-bar {
  position: relative; flex: 1; min-height: 22px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; color: #252821; font: 800 11px/1 var(--font-body);
}
.island { position: absolute; left: 50%; top: 50%; width: 72px; height: 20px; translate: -50% -50%; border-radius: 12px; background: #11130f; }
.phone-back .island { width: 58px; height: 16px; }
.sb-icons { display: flex; gap: 4px; align-items: center; }
.sb-icons svg { height: 9px; width: auto; fill: currentColor; }
.screen-img { flex: none; width: 100%; height: auto; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 18px; padding: .65rem .95rem .65rem .7rem;
  box-shadow: var(--shadow-md); font-size: .88rem; line-height: 1.25; z-index: 2;
  transition: translate .4s var(--ease);
}
.float-card img { width: 40px; height: 40px; object-fit: contain; }
.float-card b { display: block; font-weight: 800; white-space: nowrap; }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-1 { top: 0; left: 0; animation: bob 6s ease-in-out infinite; }
.fc-2 { bottom: 0; right: 0; animation: bob 7s ease-in-out .8s infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Answer block (GEO) ---------- */
.answer { padding-block: 0 var(--section-y); }
.answer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-sm);
}
.answer-text { margin-top: .9rem; font-size: 1.08rem; color: var(--ink-soft); }
.answer-text strong { color: var(--ink); }
.updated { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.facts div { background: var(--surface-2); border-radius: var(--radius-sm); padding: .8rem 1rem; border: 1px solid var(--line-soft); }
.facts dt { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .15rem 0 0; font-weight: 800; }

/* ---------- Cards & Bento ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { display: flex; flex-direction: column; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--sage) 45%, var(--line)); }
.pillar-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--img-bg); border-bottom: 1px solid var(--line-soft); }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pillar:hover .pillar-media img { transform: scale(1.04); }
.pillar-body { padding: clamp(20px, 2.4vw, 28px); }
.pillar-body p { color: var(--muted); margin-top: .55rem; font-size: 1rem; }
.ticks { display: grid; gap: .45rem; margin-top: 1.1rem; }
.ticks li { position: relative; padding-left: 1.7rem; font-weight: 700; font-size: .96rem; color: var(--ink-soft); }
.ticks li::before, .ticks li::after { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; }
.ticks li::before { border-radius: 50%; background: var(--mist); }
.ticks li::after { background: var(--sage-deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.more-title { margin: clamp(40px, 5vw, 56px) 0 18px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.mini-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--mist); display: grid; place-items: center; }
.mini-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--sage-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; letter-spacing: 0; line-height: 1.3; }
.mini p { color: var(--muted); font-size: .93rem; margin-top: .2rem; }
.mini a { color: var(--sage-ink); font-weight: 800; text-underline-offset: 3px; }

/* ---------- Demo ---------- */
.demo-section { background: var(--bg-alt); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.demo-controls { margin-top: 2rem; display: grid; gap: .55rem; }
.ctrl-label { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .7rem; }
.ctrl-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.ctrl {
  display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 58px; padding: .6rem .9rem;
  border-radius: var(--radius-md); background: var(--surface); border: 1.5px solid var(--line);
  font-weight: 800; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s, background-color .2s;
}
.ctrl img { width: auto; height: 30px; }
.ctrl:hover { border-color: var(--sage); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.ctrl:active { transform: scale(.97); }
.ctrl.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.06); border-color: var(--sage); } }
.ctrl-sleep { justify-content: flex-start; padding-inline: 1rem; font-size: 1.05rem; }
.ctrl-sleep img { height: 30px; }
.ctrl-timer { margin-left: auto; font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--lavender); }
.ctrl-sleep.running { background: linear-gradient(140deg, #8E8BCB, #6E6BB0); color: #fff; border-color: transparent; }
.ctrl-sleep.running .ctrl-timer { color: #fff; }

.demo-board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-md); position: sticky; top: calc(var(--header-h) + 24px); }
.board-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.board-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.board-title { font-family: var(--font-display); font-size: 1.6rem; margin-top: .2rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.3rem; }
.stat { border-radius: var(--radius-md); padding: .85rem .9rem; display: flex; flex-direction: column; }
.s-sleep { background: var(--lavender-soft); }
.s-feed { background: var(--peach); }
.s-diaper { background: var(--mist); }
.stat-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat-num.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.15); } }
.stat-lbl { font-size: .8rem; font-weight: 700; color: var(--muted); }
.next-side { margin-top: 1rem; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px dashed var(--line); font-size: .92rem; color: var(--ink-soft); }
.timeline { margin-top: 1.1rem; display: grid; gap: .1rem; max-height: 330px; overflow-y: auto; padding-right: 4px; }
.timeline li { display: grid; grid-template-columns: 54px 40px 1fr; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); animation: slideIn .45s var(--ease); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.timeline .tl-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.timeline .tl-ic img { max-height: 28px; width: auto; }
.timeline b { display: block; font-size: .98rem; }
.timeline small { color: var(--muted); font-size: .82rem; }
.timeline .tl-empty { display: block; color: var(--muted); padding: 1.4rem 0; text-align: center; border: 0; animation: none; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }
.sync-note { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .85rem; color: var(--muted); font-weight: 700; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 25%, transparent); }

/* ---------- Milestones ---------- */
.ms-explorer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.ms-range-label { display: block; font-weight: 800; font-size: 1.05rem; margin-bottom: .9rem; }
.ms-range-label output { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--sage-ink); margin-left: .3rem; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, var(--sage) 0 var(--fill, 20%), var(--line) var(--fill, 20%) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #FFFCF7;
  border: 3px solid var(--sage-deep); box-shadow: var(--shadow-md); transition: transform .2s;
}
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #FFFCF7; border: 3px solid var(--sage-deep); box-shadow: var(--shadow-md); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.ms-scale { display: flex; justify-content: space-between; margin-top: .55rem; font-size: .8rem; color: var(--muted); font-weight: 700; }
.ms-stages { margin-top: 2rem; display: grid; }
.ms-stage { grid-area: 1 / 1; display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.ms-stage.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ms-stage img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.ms-stage h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: 1rem; }
.ms-stage ul { display: grid; gap: .7rem; }
.ms-stage li { position: relative; padding-left: 1.8rem; color: var(--ink-soft); }
.ms-stage li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; background: var(--star); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.ms-stage li b { color: var(--ink); }
.disclaimer { margin-top: 1.6rem; font-size: .86rem; color: var(--muted); padding-top: 1rem; border-top: 1px solid var(--line-soft); }

/* ---------- U-Rechner ---------- */
.u-section { background: linear-gradient(180deg, var(--bg), var(--mist) 60%, var(--bg)); }
.u-calc { padding: clamp(20px, 4vw, 44px); }
.u-form label { display: block; font-weight: 800; margin-bottom: .5rem; }
.u-input-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.u-input-row input {
  flex: 1 1 220px; min-height: 52px; padding: .6rem 1rem; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 700; color-scheme: light dark;
}
.u-input-row input:focus { outline: none; border-color: var(--sage-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 25%, transparent); }
.u-error { color: #C0503F; font-weight: 700; margin-top: .6rem; font-size: .92rem; }
.table-wrap { margin-top: 1.8rem; overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); }
.u-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.u-table th, .u-table td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.u-table thead th { background: var(--surface-2); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.u-table tbody th { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--sage-ink); width: 7rem; }
.u-table tbody tr:last-child > * { border-bottom: 0; }
.u-table tbody tr { transition: background-color .3s; }
.u-table tr.is-past td, .u-table tr.is-past th { color: var(--muted); }
.u-table tr.is-past .u-dates { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.u-table tr.is-next { background: color-mix(in srgb, var(--star) 28%, transparent); }
.u-table tr.is-next .u-dates::after { content: "als Nächstes"; margin-left: .6rem; padding: .15rem .55rem; border-radius: 99px; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 800; vertical-align: middle; }
.u-table tr.is-now { background: color-mix(in srgb, var(--sage) 22%, transparent); }
.u-table tr.is-now .u-dates::after { content: "jetzt fällig"; margin-left: .6rem; padding: .15rem .55rem; border-radius: 99px; background: var(--sage-deep); color: #fff; font-size: .72rem; font-weight: 800; vertical-align: middle; }
.u-dates { font-weight: 800; font-variant-numeric: tabular-nums; }
.u-actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.u-next { font-weight: 700; color: var(--ink-soft); }

/* ---------- Familie (Split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-media { position: relative; margin: 0; }
.split-media img { border-radius: var(--radius-xl); background: var(--img-bg); box-shadow: var(--shadow-md); }
.code-badge {
  position: absolute; right: -14px; bottom: -22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: .8rem 1.2rem; box-shadow: var(--shadow-md); display: flex; flex-direction: column;
}
.code-badge span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.code-badge b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; letter-spacing: .12em; color: var(--sage-ink); }
.steps { display: grid; gap: 1.2rem; margin-top: 2rem; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.steps li > span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.2rem; background: var(--mist); color: var(--sage-ink); border: 1px solid color-mix(in srgb, var(--sage) 40%, transparent); }
.steps b { font-size: 1.08rem; }
.steps p { color: var(--muted); }

/* ---------- Vertrauen ---------- */
.privacy { background: var(--bg-alt); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.trust svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--mist); fill: none; stroke: var(--sage-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.trust h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.trust p { color: var(--muted); font-size: .96rem; }

/* ---------- Preise ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin-inline: auto; }
.price-card { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.price-card .ticks { margin: 1.4rem 0 2rem; flex: 1; }
.price-card h3 { font-size: 1.5rem; }
.price { display: flex; flex-direction: column; margin-top: .8rem; }
.price .amount { font-family: var(--font-display); font-size: 3rem; line-height: 1.05; }
.price .per { color: var(--muted); font-weight: 700; font-size: .92rem; }
.price-card.pro { background: linear-gradient(170deg, color-mix(in srgb, var(--star) 30%, var(--surface)), var(--surface) 55%); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.price-card.pro .amount { font-size: 2.2rem; }
.badge { position: absolute; top: 22px; right: 22px; padding: .25rem .75rem; border-radius: 99px; background: var(--gold); color: #fff; font-weight: 800; font-size: .76rem; letter-spacing: .04em; }
.price-note { margin-top: .9rem; font-size: .82rem; color: var(--muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-grid .btn { margin-top: 1.6rem; }
.faq { display: grid; gap: .7rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: color-mix(in srgb, var(--sage) 50%, var(--line)); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 3.4rem 1.1rem 1.3rem; font-weight: 800; font-size: 1.04rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 28px; height: 28px; margin-top: -14px; }
.faq summary::before { border-radius: 50%; background: var(--mist); }
.faq summary::after {
  background: var(--sage-deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 55% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 55% no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.2rem; color: var(--muted); overflow: hidden; }

/* ---------- Final CTA ---------- */
.final-cta { padding-bottom: var(--section-y); }
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: #46613A; color: #FFFCF7; display: grid; grid-template-columns: 1fr 1.1fr; min-height: 400px;
}
.cta-copy { padding: clamp(28px, 5vw, 64px); position: relative; z-index: 1; align-self: center; }
.cta-copy h2 { color: #FFFCF7; }
.cta-copy p { margin-top: 1rem; font-size: 1.12rem; opacity: .88; max-width: 28rem; }
.cta-img { width: calc(100% - 16px); height: calc(100% - 32px); margin: 16px 16px 16px 0; object-fit: cover; object-position: 72% 50%; border-radius: var(--radius-lg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 64px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin-top: 1rem; max-width: 22rem; font-size: .95rem; }
.footer-h { font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .5rem; }
.site-footer nav a { text-decoration: none; font-weight: 700; color: var(--ink-soft); }
.site-footer nav a:hover { color: var(--sage-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 28px; margin-top: 48px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .9rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav ul { gap: 0; }
  .main-nav a:not(.btn) { padding: .5rem .6rem; font-size: .9rem; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .phone-back { display: none; }
  .phone-front { margin-left: 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.6rem;
    box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility 0s .3s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; }
  .main-nav a:not(.btn) { padding: .85rem .6rem; font-size: 1.05rem; border-radius: 12px; }
  .nav-cta { display: inline-flex; }
  .header-actions { margin-left: auto; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 740px; max-width: 520px; width: 100%; margin-inline: auto; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { display: grid; grid-template-columns: 40% 1fr; }
  .pillar-media { aspect-ratio: auto; height: 100%; border-bottom: 0; border-right: 1px solid var(--line-soft); }
  .answer-grid, .demo-grid, .split, .faq-grid { grid-template-columns: 1fr; }
  .demo-board, .faq-grid .section-head { position: static; }
  .split-media { order: -1; max-width: 560px; margin-inline: auto; }
  .ms-stage { grid-template-columns: 220px 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-img { height: 220px; width: calc(100% - 32px); margin: 0 16px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --section-y: 56px; }
  body { font-size: 1rem; }
  .hero h1 em { white-space: normal; }
  .phone { width: 260px; border-radius: 42px; padding: 10px; }
  .screen { border-radius: 33px; }
  .hero-visual { min-height: 650px; }
  .float-card { font-size: .8rem; padding: .5rem .75rem .5rem .55rem; }
  .float-card img { width: 32px; height: 32px; }
  .pillar { display: flex; }
  .pillar-media { aspect-ratio: 16 / 9; height: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .mini-grid { grid-template-columns: 1fr; gap: 10px; }
  .mini { padding: 1rem 1.1rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .ctrl-row { gap: .45rem; }
  .ctrl { flex-direction: column; gap: .25rem; min-height: 72px; font-size: .9rem; padding: .5rem; }
  .ctrl-sleep { flex-direction: row; min-height: 58px; }
  .stats { gap: .45rem; }
  .stat { padding: .7rem; }
  .stat-num { font-size: 1.25rem; }
  .timeline li { grid-template-columns: 46px 36px 1fr; }
  .ms-stage { grid-template-columns: 1fr; gap: 16px; }
  .ms-stage img { aspect-ratio: 16 / 9; }
  .pricing { grid-template-columns: 1fr; }
  .trust-grid { gap: 10px; }
  .trust { padding: 1.1rem; }
  .trust svg { width: 38px; height: 38px; padding: 8px; margin-bottom: .7rem; }
  .trust h3 { font-size: 1rem; }
  .trust p { font-size: .88rem; }
  .split-media img { aspect-ratio: 16 / 10; object-fit: cover; }
  .u-table { min-width: 0; }
  .table-wrap { overflow: visible; }
  .u-table thead { display: none; }
  .u-table, .u-table tbody { display: block; }
  .u-table tr { display: grid; grid-template-columns: 3.4rem 1fr; column-gap: .6rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--line-soft); }
  .u-table tbody tr:last-child { border-bottom: 0; }
  .u-table tbody th { grid-row: span 2; width: auto; padding: 0; border: 0; font-size: 1.3rem; }
  .u-table td { padding: 0; border: 0; }
  .u-table td:not(.u-dates) { font-size: .86rem; color: var(--muted); }
  .u-table:not(.has-dates) .u-dates { display: none; }
  .u-table tr.is-next .u-dates::after, .u-table tr.is-now .u-dates::after { display: inline-block; margin: .2rem 0 0; }
  .code-badge { right: 8px; bottom: -18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .store-btn { flex: 1 1 0; justify-content: center; gap: .5rem; padding-inline: .7rem; }
  .store-btn span { font-size: .98rem; }
  .store-btn svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Rechtstexte (Datenschutz, Impressum, Konto löschen) ---------- */
.legal { max-width: 760px; }
.legal .legal-meta { color: var(--muted); font-size: .95rem; margin-top: .6rem; }
.legal .placeholder { background: color-mix(in srgb, var(--amber) 22%, transparent); border-radius: var(--radius-sm); padding: 0 .25em; }
.legal-toc { margin-top: 2rem; padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-md); }
.legal .legal-toc h2 { font-size: 1rem; margin: 0 0 .6rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.legal-toc a { color: var(--sage-ink); text-decoration: none; font-weight: 700; }
.legal-toc a:hover { text-decoration: underline; }
.legal h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 3rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h3 { font-size: 1.1rem; margin-top: 2rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.65; overflow-wrap: anywhere; }
.legal p { margin-top: .75rem; }
.legal ul { margin-top: .75rem; padding-left: 1.2rem; display: grid; gap: .45rem; }
.legal a { color: var(--sage-ink); }
.legal .legal-note { margin-top: 1rem; padding: 1rem 1.2rem; border-left: 4px solid var(--sage); background: var(--surface); border-radius: var(--radius-sm); }
.legal .lang-switch { margin-top: 1rem; font-weight: 700; }
.legal ul { list-style: disc; }
.legal-toc ol { list-style: none; padding-left: 0; }
