:root {
  --bg: #ffffff; --fg: #0b0b0b; --muted: #6b6b6b; --line: #e4e4e4; --soft: #f4f4f2;
  --accent: #0b0b0b; --accent-fg: #ffffff; --warn-bg: #fff3ee; --warn: #9a3412; --focus: #2563eb;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) { --bg: #111; --fg: #f2f2f2; --muted: #a0a0a0; --line: #2c2c2c; --soft: #1b1b1b;
    --accent: #f2f2f2; --accent-fg: #111; --warn-bg: #2b1a12; --warn: #fdba74; }
  :root:not(.light) .logo { filter: invert(1); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.5 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.splash { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px; z-index: 10; }
.splash img { width: min(78vw, 520px); filter: invert(1); }
.splash p { margin: 0; color: #fff; letter-spacing: .18em; text-transform: uppercase; font-size: 15px;
  opacity: 0; animation: fade .8s .5s forwards; }
@keyframes fade { to { opacity: 1; } }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px;
  border-bottom: 1px solid var(--line); gap: 12px; }
header.top img { height: 34px; width: auto; }
.logo { display: block; }
.link { background: none; border: 0; padding: 8px 4px; text-decoration: underline; cursor: pointer; font-size: 15px; }
.demo { background: var(--warn-bg); color: var(--warn); padding: 8px 20px; font-size: 14px; text-align: center; }

main { max-width: 640px; margin: 0 auto; padding: 28px 20px 56px; }
main.wide { max-width: 760px; }
h1 { font-size: clamp(26px, 6vw, 34px); line-height: 1.15; margin: 8px 0 18px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 28px 0 8px; }
p.lead { color: var(--muted); margin: 0 0 22px; }
.hint { color: var(--muted); font-size: 15px; margin: 6px 0 0; }

.btn { display: block; width: 100%; padding: 17px 20px; border-radius: var(--radius); border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-fg); font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--fg); }
.btn.quiet { border-color: var(--line); background: var(--soft); color: var(--fg); font-weight: 500; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.stack > * + * { margin-top: 12px; }
.choice { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 20px; }
.choice b { display: block; font-size: 19px; }
.choice span { font-weight: 400; opacity: .8; font-size: 15px; }

textarea, input[type=text], input[type=number], input[type=email], input[type=tel], select {
  width: 100%; padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); }
textarea { min-height: 170px; resize: vertical; }
label.field { display: block; margin: 14px 0 0; font-weight: 600; font-size: 15px; }
label.field > input, label.field > select, label.field > textarea { margin-top: 6px; font-weight: 400; }
.unit { display: flex; align-items: center; gap: 10px; }
.unit input { flex: 1; font-size: 26px; padding: 16px; }
.unit span { font-size: 22px; color: var(--muted); min-width: 36px; }
.cards { display: grid; gap: 12px; }
.card-opt { border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; display: block; }
.card-opt input { margin-right: 10px; }
.card-opt.on { border-color: var(--accent); background: var(--soft); }

.mic { display: flex; align-items: center; justify-content: center; gap: 10px; }
.mic.rec { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.status { min-height: 24px; color: var(--muted); font-size: 15px; margin: 8px 0; }
.status.err { color: #b91c1c; }

.steps { display: flex; gap: 8px; margin-bottom: 22px; font-size: 13px; color: var(--muted); }
.steps div { flex: 1; border-top: 4px solid var(--line); padding-top: 6px; }
.steps div.done, .steps div.now { border-color: var(--accent); color: var(--fg); }
.steps div.now { font-weight: 700; }

.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.thumbs .thumb { width: 72px; height: 72px; border-radius: 10px; background: var(--soft) center/cover; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }

dl.sum { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
dl.sum > div { display: flex; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: baseline; }
dl.sum > div:first-child { border-top: 0; }
dl.sum dt { flex: 0 0 38%; color: var(--muted); font-size: 15px; }
dl.sum dd { margin: 0; flex: 1; font-weight: 600; }
dl.sum dd.none { color: var(--muted); font-weight: 400; }
.row2 { display: flex; gap: 10px; }
.row2 > * { flex: 1; }
.chk { display: flex; gap: 10px; align-items: center; margin: 6px 0; font-weight: 400; }
.chk input { width: 20px; height: 20px; }

.paper { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; background: var(--bg); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.paper img.logo { width: 220px; max-width: 70%; margin-bottom: 14px; }
.paper h1 { font-size: 24px; margin-top: 0; }
.paper .meta { color: var(--muted); font-size: 14px; }
.corridor { background: var(--soft); border-radius: 12px; padding: 16px; margin: 16px 0; }
.corridor .big { font-size: clamp(22px, 5.6vw, 34px); font-weight: 800; line-height: 1.15; }
.corridor small { color: var(--muted); display: block; margin-top: 6px; }
table.lv { width: 100%; border-collapse: collapse; font-size: 15px; }
table.lv th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--line); padding: 6px 4px 6px 0; }
table.lv td { padding: 8px 4px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lv td.q { white-space: nowrap; text-align: right; padding-left: 10px; }
ul.plain { padding-left: 20px; margin: 6px 0; }
ul.plain li { margin: 6px 0; }
.risk { background: var(--warn-bg); border-radius: 10px; padding: 12px 14px; margin: 8px 0; font-size: 15px; }
.risk b { color: var(--warn); }
.cta { margin-top: 22px; }
.small-links { display: flex; gap: 18px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.spinner { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--accent); border-radius: 50%;
  animation: spin 1s linear infinite; margin: 40px auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
@media (prefers-reduced-motion: reduce) { .splash p { animation: none; opacity: 1; } .spinner { animation-duration: 3s; } }

/* Rechtsseiten (Impressum / Datenschutz) */
.legal { font-size: 16px; }
.legal h2 { font-size: 17px; margin: 26px 0 6px; }
.legal p { margin: 8px 0; }
.legal a { color: inherit; }
.legal .muted, .muted { color: var(--muted); }
.legal .draft { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 12px 14px; font-size: 15px; }

/* Fußzeile mit Rechtslinks (in allen App-Ansichten) */
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 20px 28px;
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 14px; }
footer.site a { color: var(--muted); text-decoration: underline; }
