/* PaperBird Landing „Der Küchentisch" (D+, 2026-10-30).
 * Tokens und Regeln: outputs/landing_design_system_2026-10-30.md.
 * Farben aus lib/theme/colors.dart, Bewegung aus AppMotion (DESIGN_V38). */

@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg: #F7F4EF;
  --surface: #FFFFFF;
  --surface-warm: #EFE9DF;
  --text: #1B2E26;
  --text-muted: #4F6A5E;
  --tresor: #2D4A3E;
  --tresor-deep: #1A3025;
  --on-tresor: #EEF3EF;
  --on-tresor-muted: rgba(238, 243, 239, .74);
  --archi: #E8913A;
  --archi-text: #9E5A1A;
  --line: rgba(45, 74, 62, .14);
  --overdue: #B71C1C;
  --phone-frame: #1D1C20;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-display: clamp(2.5rem, 6vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 4vw, 3rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1.6vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  --gutter: clamp(16px, 5vw, 64px);
  --station-gap: clamp(96px, 14vw, 160px);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;

  --dur-in: 320ms;
  --dur-settle: 360ms;
  --ease-out: cubic-bezier(.33, 1, .68, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1A1E;
    --surface: #27252B;
    --surface-warm: #232126;
    --text: #E8E6E1;
    --text-muted: rgba(232, 230, 225, .70);
    --tresor: #A8C5B8;
    --archi-text: #F4B36A;
    --line: rgba(232, 230, 225, .12);
    --overdue: #FF8A80;
    --phone-frame: #0E0D10;
    color-scheme: dark;
  }
  .photo img { filter: brightness(.84); }
}

/* ── Basis ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--tresor); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--archi); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
.visually-hidden {
  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: -48px; z-index: 100;
  background: var(--tresor); color: #fff; padding: 10px 16px; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Typografie ─────────────────────────────────────────────────────── */
.display, .h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-optical-sizing: auto;
  color: var(--text);
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -.02em; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.015em; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); max-width: 34rem; text-wrap: pretty; }
.small { font-size: var(--fs-small); color: var(--text-muted); }
.label {
  font-size: var(--fs-label); font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--archi-text);
}

/* ── Navigation ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-in) var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; color: var(--text); text-decoration: none;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav__links { display: none; gap: 28px; }
.nav__links a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.nav__links a:hover { color: var(--text); }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-l);
  font: 700 .9375rem/1 var(--font-sans); text-decoration: none; white-space: nowrap;
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--tresor); color: #fff; }
@media (prefers-color-scheme: dark) { .btn--primary { color: #12221B; } }
.btn--small { min-height: 44px; padding: 0 18px; font-size: .875rem; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px 0 16px;
  border-radius: var(--radius-l); text-decoration: none;
  transition: transform 200ms var(--ease-out);
}
.store:hover { transform: translateY(-1px); }
.store svg { width: 24px; height: 24px; flex: none; }
.store__text { display: flex; flex-direction: column; line-height: 1.15; }
.store__small { font-size: .6875rem; font-weight: 600; opacity: .8; }
.store__big { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; }
.store--apple { background: #111; color: #fff; }
.store--play { border: 1.5px solid var(--tresor); color: var(--tresor); }
@media (prefers-color-scheme: dark) { .store--apple { background: #F4F2EE; color: #111; } }
.on-dark .store--play { border-color: var(--on-tresor); color: var(--on-tresor); }

/* ── Phone-Mockup ───────────────────────────────────────────────────── */
.phone {
  position: relative;
  width: var(--phone-w, 260px);
  aspect-ratio: 1290 / 2796;
  border: calc(var(--phone-w, 260px) * .036) solid var(--phone-frame);
  border-radius: calc(var(--phone-w, 260px) * .15);
  background: var(--phone-frame);
  overflow: hidden;
  /* Bild-Realismus, kein UI-Schatten: das Gerät liegt auf dem Tisch-Foto. */
  box-shadow: 0 28px 50px -18px rgba(38, 24, 10, .55), 0 6px 14px -6px rgba(38, 24, 10, .35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--phone-w, 260px) * .11); }

/* ── Fotos ──────────────────────────────────────────────────────────── */
.photo { position: relative; margin: 0; border-radius: var(--radius-l); overflow: hidden; background: #C9A57A; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Hero (Station 1) ───────────────────────────────────────────────── */
.hero { padding: clamp(32px, 6vw, 72px) 0 var(--station-gap); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__text { display: grid; gap: 24px; }
.hero__note { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-small); color: var(--text-muted); }
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note svg { width: 16px; height: 16px; color: var(--tresor); flex: none; }
.hero__table { position: relative; margin: 0 auto; width: min(100%, 520px); }
.hero__table .photo { aspect-ratio: 1856 / 2304; }
.hero__table .phone {
  --phone-w: clamp(150px, 36%, 210px);
  position: absolute; right: 7%; bottom: -6%;
  transform: rotate(-5deg);
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
}

/* ── Station (Grundbaustein) ────────────────────────────────────────── */
.station { padding-bottom: var(--station-gap); }
.station__grid { display: grid; gap: 40px; align-items: center; }
.station__text { display: grid; gap: 20px; align-content: start; }
.station__media { position: relative; }
@media (min-width: 900px) {
  .station__grid { grid-template-columns: 7fr 5fr; gap: 72px; }
  .station--flip .station__grid { grid-template-columns: 5fr 7fr; }
  .station--flip .station__media { order: 2; }
}

/* Station 2: Ein Foto */
.scan { display: flex; justify-content: center; align-items: flex-end; gap: 8px; }
.scan .phone { --phone-w: clamp(220px, 30vw, 280px); }
.scan__archi { width: clamp(84px, 11vw, 120px); margin-bottom: 8%; }
.scan__line {
  position: absolute; left: 6%; right: 6%; top: 18%; height: 2px; border-radius: 2px;
  background: var(--archi); box-shadow: 0 0 12px 2px rgba(232, 145, 58, .55);
  opacity: 0; pointer-events: none;
}

/* Station 3: Aus Papier wird eine Frist */
.paper-to-card { display: grid; gap: 20px; }
.paper-to-card .photo { aspect-ratio: 1856 / 1626; }
.doc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 20px 20px 20px 24px; position: relative; display: grid; gap: 14px;
  max-width: 420px;
}
.doc-card::before {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--tresor);
}
.doc-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.doc-card__title { font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em; }
.doc-card__tag { font-size: var(--fs-label); font-weight: 700; color: var(--text-muted); }
.doc-card dl { margin: 0; display: grid; gap: 8px; font-size: .9375rem; }
.doc-card .field { display: grid; grid-template-columns: 4.5rem 1fr; gap: 16px; align-items: center; }
.doc-card dt { color: var(--text-muted); }
.doc-card dd { margin: 0; font-weight: 600; }
.doc-card .chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--archi) 16%, transparent); color: var(--archi-text);
  font-weight: 700; font-size: .875rem;
}
@media (min-width: 900px) {
  .paper-to-card { grid-template-columns: 1fr; position: relative; }
  .paper-to-card .doc-card { position: absolute; right: -6%; bottom: -10%; width: 62%; }
}

/* Station 4: Familie */
.family { position: relative; padding-bottom: 22%; }
.family .photo { aspect-ratio: 1 / 1; width: 80%; }
.family .phone { --phone-w: clamp(140px, 24vw, 240px); position: absolute; right: 0; bottom: 0; transform: rotate(4deg); }

/* Station 5: Fristen */
.deadlines { display: grid; gap: 32px; align-items: center; }
.deadlines .phone { --phone-w: clamp(220px, 28vw, 270px); margin: 0 auto; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px;
  background: var(--line);
}
.timeline::after {
  content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--tresor);
  transform-origin: top; transform: scaleY(1);
}
.timeline li { position: relative; padding: 0 0 22px 32px; display: grid; gap: 2px; }
.timeline li::before {
  content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--tresor);
}
.timeline li.is-next::before { background: var(--archi); border-color: var(--archi); }
.timeline time { font-weight: 800; font-size: .9375rem; }
.timeline span { color: var(--text-muted); font-size: .9375rem; }
.timeline { margin-top: 8px; }
.timeline + figcaption { margin-top: 4px; }

/* ── Station 6: Tresor (dunkles Band) ───────────────────────────────── */
.vault { background: var(--tresor-deep); color: var(--on-tresor); padding: var(--station-gap) 0; margin-bottom: var(--station-gap); }
.vault .h2 { color: var(--on-tresor); }
.vault .lead, .vault .small { color: var(--on-tresor-muted); }
.vault a { color: #CFE3D6; }
.vault .photo { aspect-ratio: 4 / 5; background: #2B3A31; }
.vault .photo img { filter: saturate(.9) brightness(.86); }
.flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.flow li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding-bottom: 20px; position: relative; }
.flow li:last-child { padding-bottom: 0; }
.flow li:not(:last-child)::after {
  content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px;
  background: rgba(238, 243, 239, .28); transform-origin: top;
}
.flow__icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(238, 243, 239, .1); border: 1px solid rgba(238, 243, 239, .22);
}
.flow__icon svg { width: 20px; height: 20px; }
.flow strong { display: block; font-weight: 800; }
.flow span { color: var(--on-tresor-muted); font-size: .9375rem; }
.limit {
  border: 1px solid rgba(238, 243, 239, .22); border-radius: var(--radius-m);
  padding: 18px 20px; display: grid; gap: 6px;
}
.limit .label { color: #F4B36A; }
.more summary { cursor: pointer; font-weight: 700; color: #CFE3D6; min-height: 44px; display: flex; align-items: center; }
.more p { color: var(--on-tresor-muted); font-size: .9375rem; }

/* ── Station 7: Feierabend + Preise ─────────────────────────────────── */
.evening { position: relative; border-radius: var(--radius-l); overflow: hidden; background: #3A2B1E; min-height: clamp(260px, 38vw, 420px); display: grid; align-items: end; }
.evening img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.evening::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 8, 0) 30%, rgba(20, 14, 8, .72) 100%); }
.evening__text { position: relative; z-index: 1; padding: clamp(24px, 5vw, 56px); display: grid; gap: 12px; }
.evening .h2 { color: #FBF7F1; }
.evening .lead { color: rgba(251, 247, 241, .82); }

.pricing { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1fr 1fr 1fr; } }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 24px; display: grid; gap: 14px; align-content: start;
}
.plan--best { border: 2px solid var(--archi); }
.plan__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan__badge { font-size: var(--fs-label); font-weight: 800; color: var(--archi-text); }
.plan__price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.plan__price small { font-size: .9375rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9375rem; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--tresor); }

.get { display: grid; gap: 20px; margin-top: 40px; justify-items: start; }
.android {
  border: 1px solid var(--line); border-radius: var(--radius-m); padding: 4px 20px; width: min(100%, 560px);
  background: var(--surface);
}
.android summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; }
.android ol { margin: 0 0 16px; padding-left: 1.25rem; display: grid; gap: 10px; }

.founder { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 56px; max-width: 640px; }
.founder img { width: 64px; height: 64px; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { padding-bottom: var(--station-gap); }
.faq__list { margin-top: 32px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--tresor); flex: none; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 20px; color: var(--text-muted); max-width: 680px; }

/* ── Fußzeile ───────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: var(--fs-small); color: var(--text-muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--text-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer a:hover { color: var(--text); }

/* ── Bewegung ───────────────────────────────────────────────────────────
 * Jede Bewegung läuft genau einmal, ausgelöst durch Scrollen (DESIGN_V38:
 * kein Loop im Ruhezustand). Ohne JS (.js fehlt) ist alles sofort sichtbar. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-in) var(--ease-out), transform var(--dur-in) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 80ms; }
.js .reveal[data-delay="2"] { transition-delay: 160ms; }
.js .reveal[data-delay="3"] { transition-delay: 240ms; }
.js .reveal[data-delay="4"] { transition-delay: 320ms; }

.js .hero__table .phone { opacity: 0; transform: rotate(-5deg) translateY(16px); transition: opacity var(--dur-settle) var(--ease-out) 200ms, transform var(--dur-settle) var(--ease-out) 200ms; }
.js .hero__table.is-in .phone { opacity: 1; transform: rotate(-5deg); }

.js .scan.is-in .scan__line { animation: scan-sweep 1400ms var(--ease-out) 300ms 1 both; }
@keyframes scan-sweep {
  0% { opacity: 0; top: 18%; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; top: 82%; }
}

.js .doc-card .field { opacity: 0; transform: translateX(-8px); transition: opacity var(--dur-in) var(--ease-out), transform var(--dur-in) var(--ease-out); }
.js .doc-card.is-in .field { opacity: 1; transform: none; }
.js .doc-card.is-in .field:nth-child(1) { transition-delay: 150ms; }
.js .doc-card.is-in .field:nth-child(2) { transition-delay: 400ms; }
.js .doc-card.is-in .field:nth-child(3) { transition-delay: 650ms; }
.js .doc-card.is-in .field:nth-child(4) { transition-delay: 900ms; }

.js .timeline::after { transform: scaleY(0); transition: transform 1200ms var(--ease-out) 200ms; }
.js .timeline.is-in::after { transform: scaleY(1); }

.js .flow li:not(:last-child)::after { transform: scaleY(0); transition: transform 600ms var(--ease-out); }
.js .flow.is-in li:nth-child(1)::after { transform: scaleY(1); transition-delay: 200ms; }
.js .flow.is-in li:nth-child(2)::after { transform: scaleY(1); transition-delay: 800ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero__table .phone, .js .doc-card .field,
  .js .timeline::after, .js .flow li::after {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .js .hero__table .phone { transform: rotate(-5deg) !important; }
  .js .scan.is-in .scan__line { animation: none; }
  .btn, .store { transition: none; }
}

.pricing__note { margin-top: 16px; }
