/* Wichtelpost-Landingpage. Farben = Light-Tokens der App (wichtel-app/src/theme/tokens.ts). */
@font-face {
  font-family: 'Amatic SC';
  src: url('fonts/amatic-sc-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --frost: #A8C8F8;
  --navy: #0B0E3B;
  --blau: #1854C4;
  --weiss: #FFFFFF;
  --gedaempft: #4B5170;
  --flaeche: #F5F5F3;
  --rand: #E3DCCF;
  --fehler: #BA1A1A;
  --erfolg: #136710;
  --radius: 20px;
  --schatten: 0 1px 2px rgba(11, 14, 59, 0.06), 0 12px 32px rgba(11, 14, 59, 0.10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--frost);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); }
h1, h2, h3, .marke {
  font-family: 'Amatic SC', 'Chalkboard SE', 'Comic Sans MS', cursive;
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.01em;
}

/* Himmel: ein paar ruhige Schneeflocken, statisch */
.himmel {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 12%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 38%, rgba(255,255,255,.7) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 91% 9%, rgba(255,255,255,.9) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 78% 30%, rgba(255,255,255,.6) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 12% 70%, rgba(255,255,255,.7) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 62%, rgba(255,255,255,.8) 0 2px, transparent 3px),
    radial-gradient(circle at 55% 92%, rgba(255,255,255,.6) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 40% 6%, rgba(255,255,255,.6) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, #9DBFF4 0%, var(--frost) 45%, #B9D3FA 100%);
}

.seite {
  max-width: 600px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px 24px;
  display: grid;
  gap: 20px;
}

.karte {
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 28px 22px;
}

/* Hero */
.hero { text-align: center; padding-top: 22px; animation: einblenden .5s ease-out both; }
.marke { font-size: 30px; color: var(--blau); }
.hero-bild { width: min(280px, 72%); margin: 6px auto 4px; }
h1 { font-size: clamp(42px, 11vw, 60px); margin-top: 6px; }
.unterzeile { margin: 12px auto 0; max-width: 30em; color: var(--gedaempft); }

/* Aktion: Badges, iOS-Hinweis */
.aktion { margin-top: 22px; display: grid; gap: 14px; justify-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.badge { display: inline-block; border-radius: 10px; transition: transform .15s ease; }
.badge:active { transform: scale(.97); }
.badge:focus-visible, .knopf:focus-visible, .link-knopf:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }
.badge-play img { height: 60px; width: auto; }
.badge-apple img { height: 60px; width: auto; }
.badge-apple { display: none; }

.ios-bald {
  width: 100%;
  background: var(--flaeche);
  border: 1px dashed var(--rand);
  border-radius: 14px;
  padding: 16px;
}
.ios-bald-titel { margin: 0; font-weight: 600; }
.ios-bald-text { margin: 4px 0 12px; font-size: 15px; color: var(--gedaempft); }
.schluss .ios-bald { background: none; border: 0; padding: 0; }

.klein { font-size: 14px; color: var(--gedaempft); margin: 0; }
.weiter-status { display: none; margin: 0; font-weight: 600; }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--blau);
  color: var(--weiss);
  font: 600 17px/1 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.knopf:active { transform: scale(.98); }
.knopf[disabled] { opacity: .6; cursor: progress; }
.knopf-sekundaer { background: var(--navy); }

.inapp-hinweis {
  width: 100%;
  background: #FFF8E5;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  text-align: left;
}
.inapp-hinweis p { margin: 0 0 8px; }
.drei-punkte { font-weight: 700; }
.link-knopf {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--blau);
  font: 600 15px 'Inter', sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

/* Warteliste */
.warteliste { position: relative; }
.warteliste h2 { font-size: 36px; }
.warteliste > p { margin: 10px 0 0; }
.formular { display: grid; gap: 14px; margin-top: 18px; }
.feld { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.feld input {
  font: 400 17px 'Inter', sans-serif;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--rand);
  border-radius: 12px;
  background: var(--flaeche);
  color: var(--navy);
}
.feld input:focus { outline: none; border-color: var(--blau); background: var(--weiss); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blau); }
.check em { font-style: normal; color: var(--gedaempft); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-meldung { margin: 0; font-size: 15px; min-height: 1em; }
.formular-meldung.ist-fehler { color: var(--fehler); }
.formular-erfolg { margin-top: 18px; background: #EAF5EA; border-radius: 14px; padding: 16px; }
.formular-erfolg p { margin: 0; }
.erfolg-titel { font-weight: 600; color: var(--erfolg); margin-bottom: 4px !important; }

/* Vorteile */
.vorteile h2 { font-size: 40px; text-align: center; margin: 12px 0 14px; }
.vorteile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vorteil { display: grid; grid-template-columns: 76px 1fr; gap: 4px 16px; align-items: start; padding: 20px; }
.vorteil img { grid-row: span 2; width: 76px; height: 76px; object-fit: contain; }
.vorteil h3 { font-size: 30px; }
.vorteil p { margin: 0; font-size: 15.5px; color: var(--gedaempft); }

/* Schluss */
.schluss { text-align: center; }
.schluss h2 { font-size: clamp(38px, 9vw, 50px); }

.fuss { text-align: center; font-size: 14px; color: var(--gedaempft); padding: 8px 16px max(32px, env(safe-area-inset-bottom)); }
.fuss p { margin: 4px 0; }
.fuss a { color: var(--navy); }

/* ---- Varianten (gesetzt von erkennung.js am <html>) ---- */
html[data-play="aus"] .badge-play { display: none; }
/* Beide Badges auf allen Geräten: zeigt, dass es die App für beide Stores gibt */
html[data-apple="live"] .badge-apple { display: inline-block; }
html[data-geraet="android"] .ios-bald,
html[data-geraet="android"] .warteliste,
html[data-warteliste="aus"] .ios-bald,
html[data-warteliste="aus"] .warteliste { display: none; }
html[data-variante="redirect"] .weiter-status { display: block; }
/* iOS: der Hero-Hinweis führt direkt zum Formular darunter — Text nur einmal */
html[data-geraet="ios"] .hero .ios-bald-text { display: none; }

@media (min-width: 720px) {
  .seite { max-width: 760px; padding-top: 48px; gap: 28px; }
  .karte { padding: 40px 48px; }
  .hero { padding-top: 32px; }
  .vorteile ul { grid-template-columns: 1fr 1fr; }
  .vorteil { grid-template-columns: 1fr; text-align: left; }
  .vorteil img { grid-row: auto; width: 90px; height: 90px; margin-bottom: 6px; }
}

@keyframes einblenden { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { animation: none; }
  .badge, .knopf { transition: none; }
}
.hero-bild.figur-klein { width: 140px; }
