* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 22px; line-height: 1.35; display: flex; flex-direction: column; min-height: 100dvh; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--accent); color: var(--accent-ink); }
#title { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#me { font-size: 18px; font-weight: 700; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
main { flex: 1; display: flex; flex-direction: column; padding: 18px; gap: 14px; }
.center { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 16px; }
h1 { font-size: 30px; margin: 0; line-height: 1.2; }
p { margin: 0; }
.muted { color: var(--muted); }
form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
label { font-weight: 700; text-align: left; }
input { font: inherit; font-size: 24px; padding: 16px 18px; border: 3px solid #8a8a8a; border-radius: var(--radius); width: 100%; color: var(--ink); }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(163, 33, 138, .2); }
.btn { font: inherit; font-size: 24px; font-weight: 700; padding: 18px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.err { color: var(--accent); font-weight: 700; min-height: 1.4em; }

/* Frage */
.qtop { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 20px; }
.secs { font-variant-numeric: tabular-nums; background: var(--accent-2); color: var(--accent-2-ink); padding: 4px 12px; border-radius: 99px; min-width: 3.2em; text-align: center; }
.qtext { font-size: 24px; font-weight: 700; line-height: 1.25; }
.choices { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; font-size: 22px; font-weight: 700; line-height: 1.2; padding: 12px 16px; border: 0; border-radius: var(--radius); cursor: pointer; min-height: 66px; flex: 1; max-height: 120px; }
.choice:active { transform: scale(.98); }
.choice:disabled { opacity: .6; }
.let { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1a1a1a; font-size: 22px; }
.a0 { background: var(--a0); color: var(--a0-ink); } .a1 { background: var(--a1); color: var(--a1-ink); }
.a2 { background: var(--a2); color: var(--a2-ink); } .a3 { background: var(--a3); color: var(--a3-ink); }
.a4 { background: var(--a4); color: var(--a4-ink); } .a5 { background: var(--a5); color: var(--a5-ink); }
.a1 .let, .a3 .let, .a5 .let { background: #1a1a1a; color: #fff; }
.hint { text-align: center; font-size: 18px; color: var(--muted); }

/* Gespeichert / Ergebnis */
.picked { border-radius: var(--radius); padding: 16px 18px; font-weight: 700; display: flex; gap: 14px; align-items: center; width: 100%; max-width: 440px; text-align: left; }
.big { font-size: 72px; line-height: 1; }
.result { width: 100%; border-radius: var(--radius); padding: 30px 18px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.result h1 { font-size: 36px; }
.result.ok { background: var(--accent-2); color: var(--accent-2-ink); }
.result.no { background: var(--ink); color: #fff; }
.result.none { background: var(--surface); }
.result .pts { font-size: 48px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat { display: flex; gap: 12px; width: 100%; max-width: 440px; }
.stat div { flex: 1; background: var(--surface); border-radius: var(--radius); padding: 16px; font-weight: 700; }
.stat b { display: block; font-size: 38px; color: var(--accent); font-variant-numeric: tabular-nums; }
.wait { width: 54px; height: 54px; border-radius: 50%; border: 6px solid var(--surface); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#offline { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ink); color: #fff; text-align: center; padding: 12px; font-size: 18px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .wait { animation: none; } }

/* Jahresfrage: Zeitachse */
.yearbox { display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: center; }
.yearval { font-family: var(--font-display); font-weight: 600; font-size: 84px; line-height: 1; text-align: center; color: var(--accent); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border: 0; padding: 0; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 2px #bbb; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--accent); }
input[type=range]::-moz-range-thumb { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--accent); }
input[type=range]:focus { box-shadow: 0 0 0 4px rgba(163, 33, 138, .25); }
.yearscale { display: flex; justify-content: space-between; font-weight: 700; color: var(--muted); font-size: 18px; }
.nudges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nudge { font: inherit; font-size: 22px; font-weight: 700; min-height: 60px; border: 0; border-radius: var(--radius); background: var(--accent-2); color: var(--accent-2-ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.nudge:active { transform: scale(.96); }
.yearpick { background: var(--surface); justify-content: center; font-size: 44px; font-family: var(--font-display); color: var(--accent); }
.btn:disabled { opacity: .6; }
