:root { color-scheme: light dark; --fg: #1b1b1f; --bg: #fff; --akzent: #4a2377; --rand: #6b6b75; --flaeche: #f3eef8; }
@media (prefers-color-scheme: dark) { :root { --fg: #f1f1f4; --bg: #15151a; --akzent: #cfb3f2; --rand: #9a9aa6; --flaeche: #23232c; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.125rem/1.6 system-ui, sans-serif; }
main { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
h1, h2, h3 { line-height: 1.25; }
a, summary { color: var(--akzent); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem; z-index: 1; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
button { font: inherit; min-height: 44px; padding: .5rem 1.5rem; border: 2px solid var(--akzent); border-radius: .5rem; background: var(--akzent); color: var(--bg); cursor: pointer; }
button.zweit { background: transparent; color: var(--akzent); }
.knoepfe { display: flex; gap: 1rem; justify-content: space-between; }
fieldset { border: 1px solid var(--rand); border-radius: .5rem; margin: 0 0 1rem; padding: .75rem 1rem 1rem; }
legend { font-weight: 600; padding: 0 .25rem; }
.skala { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.skala label { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .25rem; padding: .5rem .25rem; border: 1px solid var(--rand); border-radius: .5rem; text-align: center; font-size: .9rem; line-height: 1.3; cursor: pointer; }
.skala label:has(input:checked) { background: var(--flaeche); border-color: var(--akzent); border-width: 2px; }
.skala input { width: 1.5rem; height: 1.5rem; accent-color: var(--akzent); margin: 0; }
@media (max-width: 34rem) { .skala { grid-template-columns: 1fr; } .skala label { flex-direction: row; justify-content: flex-start; font-size: 1rem; } }
progress { width: 100%; height: 1rem; accent-color: var(--akzent); }
#fehler { color: #b00020; font-weight: 600; min-height: 1.6em; }
@media (prefers-color-scheme: dark) { #fehler { color: #ff9a9a; } }
.karte { background: var(--flaeche); border-radius: .75rem; padding: 1rem 1.25rem; margin: 0 0 1rem; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--rand); }
meter { width: 100%; height: 1rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
