/* Design-Tokens – zentral anpassbar, sobald Farben/Logo feststehen */
:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #1f2a37;
  --muted: #6b7280;
  --line: #e7e2da;
  --accent: #2f6f6a;        /* Petrol */
  --accent-ink: #ffffff;
  --accent-soft: #e3efed;
  --warm: #e8875b;          /* Koralle für Highlights */
  --danger: #b4443a;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(31,42,55,.04), 0 8px 24px rgba(31,42,55,.06);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181d; --surface: #1c2229; --ink: #eef1f4; --muted: #9aa4af; --line: #2c343d;
    --accent: #5fb3ab; --accent-ink: #0f1a19; --accent-soft: #1f3331; --shadow: none;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
.shell { max-width: 680px; margin: 0 auto; padding: 24px 16px 48px; min-height: 100dvh; display: flex; flex-direction: column; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; }
.loading { color: var(--muted); text-align: center; }

/* Kopf mit Fortschritt */
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.badge { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.progress { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .35s ease; }
.count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Start/Danke */
.hero h1 { font-size: clamp(24px, 5vw, 32px); line-height: 1.2; margin: 6px 0 12px; letter-spacing: -.01em; }
.hero p { color: var(--muted); margin: 0 0 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.chip { font-size: 14px; background: var(--bg); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.emoji { font-size: 44px; }

/* Frage */
.qnum { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.qtext { font-size: clamp(20px, 4.2vw, 24px); line-height: 1.3; margin: 6px 0 6px; font-weight: 650; }
.hint { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.req { color: var(--warm); }

.options { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; min-height: 52px; }
.opt:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { flex: none; width: 22px; height: 22px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; transition: all .15s; }
.opt.single .mark { border-radius: 50%; }
.opt.multi .mark { border-radius: 7px; }
.opt.checked { border-color: var(--accent); background: var(--accent-soft); }
.opt.checked .mark { border-color: var(--accent); background: var(--accent); }
.opt.checked .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }
.opt.multi.checked .mark::after { width: 10px; height: 6px; border-radius: 0; background: none; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: rotate(-45deg) translate(1px,-1px); }
.opt:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.opt.soft span.label { color: var(--muted); }

.other-input, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.other-input { margin-top: 2px; }
textarea { min-height: 140px; resize: vertical; }
.other-input:focus, textarea:focus { outline: none; border-color: var(--accent); }
.charcount { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }

.error { color: var(--danger); font-size: 15px; margin: 14px 0 0; min-height: 1.2em; }

/* Navigation */
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.btn { font: inherit; font-weight: 600; border-radius: 999px; padding: 13px 24px; border: 1.5px solid transparent; cursor: pointer; min-height: 50px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
.skip { font-size: 14px; color: var(--muted); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 8px; font: inherit; }

.foot { margin-top: auto; padding-top: 28px; text-align: center; font-size: 13px; color: var(--muted); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fade { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } .progress > span { transition: none; } }
