:root { --gold: #a8996a; --goldhell: #f4f0e3; --tinte: #17181a; --grau: #5d6066; --linie: #dcdcd6; --grund: #faf9f5; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--tinte); background: var(--grund); line-height: 1.5; font-size: 17px; }
.kopf { background: #111; color: #fff; padding: 10px 18px; display: flex; align-items: center; gap: 12px; }
.kopf img { width: 44px; height: auto; border-radius: 4px; }
.kopf b { color: #d9cfa6; letter-spacing: .02em; }
.kopf small { display: block; opacity: .75; font-size: 13px; }
main { max-width: 720px; margin: 0 auto; padding: 18px 16px 80px; }
h1 { font-size: 24px; line-height: 1.25; margin: 14px 0 6px; }
h2 { font-size: 19px; margin: 26px 0 8px; }
p { margin: 8px 0; }
.leise { color: var(--grau); font-size: 15px; }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: 16px; margin: 14px 0; }
.karte.fehlt { border-color: #c0392b; box-shadow: 0 0 0 2px #f6d5d0; }
.frage { font-weight: 650; margin: 0 0 10px; }

/* Die Skala bleibt beim Scrollen immer sichtbar. */
.skala { position: sticky; top: 0; z-index: 5; background: var(--goldhell); border-bottom: 1px solid var(--linie); padding: 8px 12px; font-size: 13px; }
.skala div { max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.skala span { white-space: nowrap; }
.skala i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }

.noten { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.noten button { border: 2px solid transparent; border-radius: 10px; padding: 8px 2px 6px; font: inherit; cursor: pointer; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 62px; opacity: .92; }
.noten button b { font-size: 22px; line-height: 1; }
.noten button span { font-size: 10.5px; line-height: 1.15; hyphens: auto; overflow-wrap: anywhere; }
.noten button.gewaehlt { border-color: var(--tinte); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--tinte); opacity: 1; }
.noten.hatwahl button:not(.gewaehlt) { opacity: .38; }
.n1 { background: #1e8e4a; } .n2 { background: #5a9f2b; } .n3 { background: #a39a16; color: #fff; }
.n4 { background: #d08a12; } .n5 { background: #d2601f; } .n6 { background: #c0392b; }
.wahl { margin: 10px 0 0; font-size: 15px; }
.rueckfrage { margin-top: 10px; background: #fdf0ee; border: 1px solid #e3aaa2; border-radius: 10px; padding: 12px; font-size: 15px; }
.rueckfrage p { margin: 0 0 10px; }

textarea, input[type=text], input[type=password] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #bdbdb6; border-radius: 10px; background: #fff; color: inherit; }
textarea { min-height: 96px; resize: vertical; }
.janein { display: flex; gap: 10px; margin-bottom: 12px; }
.janein button { flex: 1; }
.knopf { font: inherit; font-weight: 650; border-radius: 10px; padding: 12px 16px; border: 1px solid #bdbdb6; background: #fff; color: var(--tinte); cursor: pointer; }
.knopf.haupt { background: #111; color: #fff; border-color: #111; }
.knopf.gewaehlt { background: #111; color: #fff; border-color: #111; }
.knopf.klein { padding: 7px 11px; font-size: 14px; font-weight: 600; }
.knopf.rot { color: #a5281b; border-color: #e3aaa2; }
.knopf:disabled { opacity: .5; cursor: default; }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.meldung { background: #fdf0ee; border: 1px solid #e3aaa2; border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.gut { background: #edf7ef; border-color: #a9d3b3; }
table.zus { width: 100%; border-collapse: collapse; font-size: 15px; }
table.zus td { padding: 8px 6px; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.zus td:last-child { text-align: right; font-weight: 650; white-space: nowrap; }
.punkt { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; }
[hidden] { display: none !important; }

/* Auswertung */
.kurs { display: grid; gap: 8px; }
.kurs h3 { margin: 0; font-size: 18px; }
.link { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; background: var(--goldhell); padding: 6px 8px; border-radius: 8px; overflow-wrap: anywhere; }
.qr { background: #fff; padding: 10px; border: 1px solid var(--linie); border-radius: 10px; width: fit-content; }
.qr img { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
label { display: block; font-size: 14px; font-weight: 600; margin: 10px 0 4px; }
