/* Questmate-Warteliste – Farben und Schriften wie in der App (src/constants/design.ts) */
@font-face { font-family: 'Bricolage'; src: url(/schrift/BricolageGrotesque_700Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url(/schrift/DMSans_400Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url(/schrift/DMSans_700Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --olive: #3F4E1E;
  --olive-dunkel: #2A3414;
  --olive-hell: #E9ECDC;
  --gelb: #F4C430;
  --gelb-hell: #FDF3D0;
  --beige: #F1EBDC;
  --hintergrund: #F8F7F1;
  --karte: #FFFFFF;
  --text: #1B1E12;
  --text-leise: #5A5F4A;
  --rand: #E3E2D6;
  --fehler: #A8321E;
  --fehler-hell: #FBEDE9;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font: 400 17px/1.5 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Bricolage', 'DM Sans', system-ui, sans-serif; font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--olive); }
img, svg { display: block; max-width: 100%; }

.innen { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- Hero */
.hero { padding: 20px 0 36px; }
.logo { width: 170px; height: auto; margin: 0 0 22px -7px; }
.hero h1 { font-size: clamp(32px, 9.4vw, 56px); color: var(--olive); }
.hero h1 .zeile { display: block; }
.wechsel { display: inline-grid; vertical-align: bottom; }
.wechsel > span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: wort 10s infinite;
  background: linear-gradient(transparent 62%, var(--gelb) 62%, var(--gelb) 92%, transparent 92%);
  padding: 0 2px;
  justify-self: start;
}
.wechsel > span:nth-child(2) { animation-delay: 2.5s; }
.wechsel > span:nth-child(3) { animation-delay: 5s; }
.wechsel > span:nth-child(4) { animation-delay: 7.5s; }
@keyframes wort {
  0% { opacity: 0; transform: translateY(0.35em); }
  4%, 22% { opacity: 1; transform: none; }
  26%, 100% { opacity: 0; transform: translateY(-0.35em); }
}
@media (prefers-reduced-motion: reduce) {
  .wechsel > span { animation: none; }
  .wechsel > span:first-child { opacity: 1; }
}
.unterzeile { margin-top: 14px; font-size: 17px; color: var(--text-leise); }
.unterzeile b { color: var(--text); }

/* ---------------------------------------------------------------- Formular */
.formular {
  margin-top: 22px;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 24px;
  padding: 22px 20px 20px;
  box-shadow: 0 8px 24px rgba(63, 78, 30, 0.08);
}
.feld { margin-bottom: 18px; }
.feld > label, .feld > .titel { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
input[type=email], input[type=text] {
  width: 100%;
  font: inherit;
  font-size: 17px; /* ab 16px zoomt iOS nicht beim Antippen */
  padding: 14px 16px;
  border: 1.5px solid var(--rand);
  border-radius: 14px;
  background: var(--hintergrund);
  color: var(--text);
}
input[type=email]:focus, input[type=text]:focus { outline: none; border-color: var(--olive); background: var(--karte); }

.wahl { display: flex; gap: 10px; }
.wahl label {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 48px;
  border: 1.5px solid var(--olive);
  border-radius: 999px;
  background: var(--beige);
  font-weight: 700; font-size: 16px;
  cursor: pointer;
  user-select: none;
}
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl input:checked + label { background: var(--olive); color: #fff; }
.wahl input:focus-visible + label { outline: 3px solid var(--gelb); outline-offset: 2px; }
.andere-stadt { display: none; margin-top: 10px; }
.feld-stadt:has(#stadt-andere:checked) .andere-stadt { display: block; }

.haken { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--text-leise); cursor: pointer; }
.haken input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--olive); }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  font: 700 18px/1 'DM Sans', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
}
.knopf:hover { background: var(--olive-dunkel); }
.knopf:active { transform: scale(0.98); }
.knopf:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
.knopf[disabled] { opacity: 0.6; cursor: wait; }
.knopf.hell { background: var(--beige); color: var(--olive); border: 1.5px solid var(--olive); }
.knopf.hell:hover { background: var(--olive-hell); }

.bonus {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--gelb-hell);
  border: 1.5px solid var(--gelb);
  font-weight: 700; font-size: 15px;
}
.bonus span { font-size: 20px; }

.meldung { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--fehler-hell); color: var(--fehler); font-size: 15px; }
.meldung.an { display: block; }
.versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.erfolg { text-align: center; padding: 8px 4px 4px; }
.erfolg .gross { font-size: 44px; }
.erfolg h2 { font-size: 28px; color: var(--olive); margin: 8px 0 10px; }
.erfolg p { color: var(--text-leise); }
.erfolg p + p { margin-top: 10px; font-size: 15px; }

/* ---------------------------------------------------------------- Abschnitte */
.abschnitt { padding: 44px 0; }
.abschnitt.beige { background: var(--beige); }
.abschnitt h2 { font-size: clamp(28px, 8vw, 36px); color: var(--olive); margin-bottom: 22px; }

.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: schritt; }
.schritte li {
  display: flex; gap: 16px; align-items: center;
  background: var(--karte); border-radius: 20px; padding: 18px;
  border: 1px solid var(--rand);
}
.schritte .nr {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gelb); color: var(--olive-dunkel);
  font: 700 22px/1 'Bricolage', system-ui, sans-serif;
}
.schritte h3 { font-size: 20px; color: var(--olive); }
.schritte p { color: var(--text-leise); font-size: 15.5px; margin-top: 2px; }

.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kachel { background: var(--karte); border: 1px solid var(--rand); border-radius: 20px; padding: 16px; }
.kachel:last-child:nth-child(odd) { grid-column: 1 / -1; }
.kachel .bild { font-size: 30px; line-height: 1; }
.kachel h3 { font-size: 19px; color: var(--olive); margin: 10px 0 4px; }
.kachel p { font-size: 14.5px; color: var(--text-leise); line-height: 1.4; }

.business { background: var(--olive); color: #fff; border-radius: 24px; padding: 24px 20px; }
.business h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.business p { color: #E9ECDC; }
.business a.knopf { background: var(--gelb); color: var(--olive-dunkel); margin-top: 18px; }
.business a.knopf:hover { background: #FFD453; }

/* ---------------------------------------------------------------- Footer */
.fuss { padding: 32px 0 40px; font-size: 14.5px; color: var(--text-leise); }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.fuss a { color: var(--text-leise); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- Danke-Seite */
.mitte { min-height: 100svh; display: flex; flex-direction: column; }
.mitte main { flex: 1; }
.platz {
  margin: 24px 0 8px;
  background: var(--olive);
  color: #fff;
  border-radius: 28px;
  padding: 28px 20px;
  text-align: center;
}
.platz .klein { font-size: 15px; color: #E9ECDC; }
.platz .zahl { font: 700 clamp(64px, 22vw, 96px)/1 'Bricolage', system-ui, sans-serif; color: var(--gelb); margin: 6px 0; }
.teilen { display: grid; gap: 10px; margin-top: 12px; }
.teilen .knopf { margin-top: 0; }
.whatsapp { background: #1F7A4A; }
.whatsapp:hover { background: #17633b; }
.hinweis { font-size: 14px; color: var(--text-leise); margin-top: 8px; text-align: center; }

@media (min-width: 720px) {
  .innen { max-width: 640px; }
  .hero { padding-top: 48px; }
  .kacheln { grid-template-columns: repeat(3, 1fr); }
  .kachel:last-child:nth-child(odd) { grid-column: auto; }
}
