/* Expedition Gymi 2.0 */
:root {
  --nacht: #1F4E79; --nacht2: #163a5c; --tuerkis: #31B3BF; --sonne: #F5A623; --sonne2: #FFD36B; --gras: #2E9E5B; --rot: #D9483B; --lila: #7C5CBF;
  --bg: #EEF3F8; --karte: #fff; --text: #172636; --grau: #5B6B7C; --linie: #DCE4EE; --soft: #E8F0F8;
  --r: 22px; --sh: 0 1px 2px rgba(20,45,80,.06), 0 6px 18px rgba(20,45,80,.08); --sh2: 0 10px 30px rgba(20,45,80,.16);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.45 ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
#app { max-width: 600px; margin: 0 auto; padding: 0 16px 110px; min-height: 100vh; }
h1 { font-size: 28px; line-height: 1.15; margin: 6px 0 10px; letter-spacing: -.3px; }
h2 { font-size: 20px; margin: 26px 0 10px; letter-spacing: -.2px; }
h3 { font-size: 17px; margin: 0 0 4px; }
p { margin: 6px 0; }
.klein { font-size: 14px; color: var(--grau); }
.mitte { text-align: center; }
.zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zeile.voll > * { flex: 1; }
.abschnitt { font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--grau); font-weight: 800; margin: 26px 2px 8px; }

/* Kopf */
.kopf { display: flex; align-items: center; gap: 10px; padding: 14px 0 10px; position: sticky; top: 0; background: linear-gradient(var(--bg) 80%, rgba(238,243,248,0)); z-index: 5; }
.kopf .zurueck { width: 44px; height: 44px; border-radius: 50%; background: var(--karte); box-shadow: var(--sh); font-size: 24px; display: grid; place-items: center; color: var(--nacht); flex: none; }
.kopf .titel { font-weight: 800; flex: 1; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pille { display: inline-flex; align-items: center; gap: 5px; background: var(--karte); border-radius: 99px; padding: 6px 12px; font-weight: 800; font-size: 15px; box-shadow: var(--sh); white-space: nowrap; }
.ava { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 28px; flex: none; box-shadow: var(--sh); }
.ava.gross { width: 76px; height: 76px; font-size: 46px; }

/* Startbereich mit Himmel */
.held { margin: 0 -16px; padding: 14px 16px 18px; background: linear-gradient(160deg, #163a5c 0%, #1F4E79 45%, #2a8fa8 100%); color: #fff; border-radius: 0 0 30px 30px; position: relative; overflow: hidden; }
.held::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 46px; background: radial-gradient(60% 100% at 30% 100%, rgba(255,255,255,.12), transparent), radial-gradient(50% 100% at 80% 100%, rgba(255,255,255,.1), transparent); }
.held .oben { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.held .name { font-weight: 800; font-size: 20px; }
.held .rang { font-size: 14px; color: #cfe3f3; }
.held .pille { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.held .leiste { background: rgba(255,255,255,.18); margin-top: 12px; position: relative; z-index: 1; }
.held .leiste > i { background: linear-gradient(90deg, var(--sonne2), var(--sonne)); }
.held .naechst { font-size: 13px; color: #cfe3f3; margin-top: 5px; position: relative; z-index: 1; }
.gianzeile { display: flex; align-items: flex-end; gap: 6px; margin-top: 12px; position: relative; z-index: 1; }
.gian { flex: none; }
.gianzeile .gian { flex: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }
.blase { background: #fff; color: var(--text); border-radius: 18px 18px 18px 4px; padding: 11px 14px; font-size: 15.5px; line-height: 1.4; box-shadow: var(--sh2); margin-bottom: 22px; position: relative; }
.blase b { color: var(--nacht); }
.leiste { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.leiste > i { display: block; height: 100%; background: linear-gradient(90deg, var(--tuerkis), var(--nacht)); border-radius: 99px; transition: width .6s ease; }

/* Karte */
.karte-box { background: var(--karte); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; margin: 16px 0; }
.karte-svg { display: block; width: 100%; height: auto; }
.karte-box .info { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px 12px; font-size: 14px; font-weight: 700; color: var(--nacht2); }
.karte-box .wochenziel { padding: 0 14px 14px; }
.punkte4 { display: flex; gap: 6px; }
.punkte4 i { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-style: normal; font-size: 13px; color: var(--grau); font-weight: 800; }
.punkte4 i.an { background: var(--gras); color: #fff; }
.huepf { animation: huepf 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes huepf { 50% { transform: translateY(-4px); } }
.flocke { animation: schnee 7s linear infinite; }
@keyframes schnee { from { transform: translateY(-20px); } to { transform: translateY(280px); } }
.fahne { animation: wehen 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes wehen { 50% { transform: scaleX(.85) skewY(4deg); } }

/* Karten und Knöpfe */
.karte { background: var(--karte); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; margin: 14px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 800; background: var(--nacht); color: #fff; text-align: center; box-shadow: 0 3px 0 #0f2f4d; transition: transform .08s; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #0f2f4d; }
.btn.voll { width: 100%; }
.btn.zwei { background: var(--soft); color: var(--nacht); box-shadow: 0 3px 0 #c9d6e4; }
.btn.sonne { background: linear-gradient(180deg, #FFC24D, var(--sonne)); color: #3a2300; box-shadow: 0 3px 0 #c47f0c; }
.btn.gruen { background: var(--gras); box-shadow: 0 3px 0 #1e7442; }
.btn:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 2px; }
.link { color: var(--nacht); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
input[type=text], input[type=number], input[type=date], textarea { width: 100%; border: 2px solid var(--linie); border-radius: 14px; padding: 12px 14px; background: #fff; font-size: 18px; }
input:focus, textarea:focus { border-color: var(--tuerkis); outline: none; }
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
label.feld { display: block; font-weight: 800; margin: 14px 0 6px; }

/* Tagesmission */
.mission { background: linear-gradient(135deg, #1F4E79, #2d6fa8 60%, #31B3BF); color: #fff; border-radius: var(--r); padding: 20px; margin: 16px 0; box-shadow: var(--sh2); position: relative; overflow: hidden; }
.mission::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.mission h2 { margin: 0 0 4px; color: #fff; font-size: 22px; }
.mission p { color: #dcebf7; }
.mission .btn { margin-top: 14px; }
.mission.fertig { background: linear-gradient(135deg, #1e7f49, #2E9E5B 60%, #6cc48a); }
.teile { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.teile span { background: rgba(255,255,255,.16); border-radius: 99px; padding: 4px 11px; font-size: 14px; font-weight: 700; }

/* Schnellzugriff */
.schnell { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.schnell button { background: var(--karte); border-radius: 18px; box-shadow: var(--sh); padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; text-align: center; position: relative; }
.schnell button small { color: var(--grau); font-weight: 600; font-size: 12px; }
.schnell button:disabled { opacity: .5; }
.marke { position: absolute; top: 8px; right: 8px; background: var(--rot); color: #fff; font-weight: 800; font-size: 12px; border-radius: 99px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; }

/* Welten */
.welten { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.welt { background: var(--karte); border-radius: var(--r); box-shadow: var(--sh); padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 130px; position: relative; transition: transform .12s; }
.welt:active { transform: scale(.97); }
.welt b { font-size: 17px; }
.welt small { color: var(--grau); font-size: 13px; line-height: 1.3; }
.welt .mini { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; margin-top: auto; }
.welt .mini i { display: block; height: 100%; background: var(--gras); border-radius: 99px; }

/* Themenliste */
.thema { display: flex; align-items: center; gap: 12px; background: var(--karte); border-radius: 18px; box-shadow: var(--sh); padding: 13px 14px; margin: 10px 0; width: 100%; text-align: left; }
.thema .ico { font-size: 26px; width: 46px; height: 46px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; flex: none; }
.thema .txt { flex: 1; min-width: 0; }
.stufen { display: flex; gap: 4px; margin-top: 6px; }
.stufen i { width: 24px; height: 8px; border-radius: 4px; background: var(--linie); }
.stufen i.an { background: var(--tuerkis); }
.stufen i.gipfel.an { background: var(--sonne); }
.chev { color: var(--grau); font-size: 24px; }
.haken { color: var(--gras); font-weight: 800; }

/* Aufgaben */
.fortschritt { display: flex; gap: 4px; margin: 2px 0 14px; }
.fortschritt i { flex: 1; height: 9px; border-radius: 5px; background: var(--linie); transition: background .3s; }
.fortschritt i.ok { background: var(--gras); }
.fortschritt i.no { background: var(--rot); }
.fortschritt i.jetzt { background: var(--tuerkis); }
.fortschritt i.da { background: #9fb3c8; }
.aufgabe { background: var(--karte); border-radius: var(--r); box-shadow: var(--sh); padding: 20px; }
.aufgabe.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.aufgabe .thema-zeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--grau); font-weight: 700; margin-bottom: 8px; }
.frage { font-size: 21px; font-weight: 700; line-height: 1.45; margin: 4px 0 16px; }
.frage .satz { display: block; font-weight: 500; background: var(--soft); border-radius: 14px; padding: 11px 13px; margin-top: 10px; font-size: 19px; }
.frage mark { background: #ffe08a; padding: 0 3px; border-radius: 5px; }
.frage .bild { display: flex; justify-content: center; margin-top: 12px; }
.frage .bild svg { max-width: 100%; height: auto; }
.bruch { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; margin: 0 3px; font-size: .95em; line-height: 1.1; }
.bruch span:first-child { border-bottom: 2px solid currentColor; padding: 0 3px; }
.eingabe { display: flex; gap: 8px; align-items: center; }
.eingabe input { font-size: 24px; font-weight: 800; text-align: center; }
.eingabe .einheit { font-weight: 800; color: var(--grau); min-width: 30px; }
.wahl { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.wahl.lang { grid-template-columns: 1fr; }
.wahl button { background: var(--soft); border: 2px solid transparent; border-radius: 16px; padding: 14px 12px; font-weight: 800; min-height: 54px; text-align: center; transition: transform .08s, background .2s; box-shadow: 0 2px 0 #cfdbe8; }
.wahl button:active { transform: translateY(2px); box-shadow: none; }
.wahl.lang button { text-align: left; font-weight: 600; }
.wahl button.richtig { background: #d8f2e2; border-color: var(--gras); }
.wahl button.falsch { background: #fbe0dd; border-color: var(--rot); }
.wahl button.gewaehlt { background: #dce9f6; border-color: var(--nacht); }
.hinweis { background: #fff6dc; border-radius: 14px; padding: 11px 13px; margin: 14px 0 0; font-size: 16px; }
.ergebnis { border-radius: 16px; padding: 12px 14px; margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; }
.ergebnis .gian { flex: none; margin-top: -4px; }
.ergebnis.ok { background: #dcf3e5; }
.ergebnis.no { background: #fde6e2; }
.ergebnis b { display: block; font-size: 18px; margin-bottom: 2px; }
.ergebnis.pop { animation: pop .35s ease-out; }
@keyframes pop { 0% { transform: scale(.9); opacity: 0; } 70% { transform: scale(1.03); } }
.werkzeuge { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.werkzeuge button { background: var(--soft); border-radius: 99px; padding: 8px 14px; font-weight: 800; font-size: 15px; color: var(--nacht); }
.hilfeknopf { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--nacht); font-weight: 800; font-size: 18px; flex: none; }
.combo { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(90deg, #ff9a3c, #ff5f6d); color: #fff; font-weight: 800; border-radius: 99px; padding: 4px 11px; font-size: 14px; animation: pop .35s; }
.zeit { font-variant-numeric: tabular-nums; }
.zeit.knapp { color: var(--rot); }

/* Spiegelgitter */
.gitter { display: grid; gap: 3px; margin: 6px auto 0; width: fit-content; position: relative; touch-action: manipulation; }
.gitter button { width: 30px; height: 30px; border-radius: 6px; background: #eef3f8; border: 1px solid #d5dfea; }
.gitter button.vorgabe { background: var(--nacht); border-color: var(--nacht); cursor: default; }
.gitter button.an { background: var(--tuerkis); border-color: #1f8f99; }
.gitter button.fehlt { background: #fff; border: 3px dashed var(--gras); }
.gitter button.zuviel { background: var(--rot); border-color: var(--rot); }
.gitter .achse { position: absolute; background: var(--rot); border-radius: 2px; pointer-events: none; }
@media (max-width: 380px) { .gitter button { width: 26px; height: 26px; } }

/* Lesetext */
.lesetext { background: #fffdf7; border-radius: var(--r); box-shadow: var(--sh); padding: 22px 20px; font-size: 18px; line-height: 1.7; font-family: Georgia, "Times New Roman", serif; }
.lesetext h2 { font-family: ui-rounded, system-ui, sans-serif; margin-top: 0; }
.lesetext p { margin: 0 0 14px; }

/* Blitzrunde */
.blitz-anzeige { text-align: center; }
.blitz-aufgabe { font-size: 44px; font-weight: 800; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.blitz-eingabe { font-size: 40px; font-weight: 800; min-height: 60px; border-bottom: 3px solid var(--linie); margin: 0 auto 14px; max-width: 220px; color: var(--nacht); font-variant-numeric: tabular-nums; }
.blitz-eingabe.no { color: var(--rot); animation: shake .35s; }
.blitz-eingabe.ok { color: var(--gras); }
.tasten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 360px; margin: 0 auto; }
.tasten button { height: 62px; border-radius: 16px; background: #fff; box-shadow: 0 3px 0 #cfdbe8; font-size: 26px; font-weight: 800; }
.tasten button:active { transform: translateY(2px); box-shadow: none; }
.tasten button.ok { background: var(--gras); color: #fff; box-shadow: 0 3px 0 #1e7442; }
.zeitbalken { height: 12px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.zeitbalken i { display: block; height: 100%; background: linear-gradient(90deg, var(--sonne), var(--rot)); transition: width 1s linear; }

/* Abschluss */
.sterne { font-size: 44px; letter-spacing: 6px; }
.sterne span { display: inline-block; animation: stern .5s backwards; }
.sterne span:nth-child(2) { animation-delay: .15s; } .sterne span:nth-child(3) { animation-delay: .3s; }
@keyframes stern { from { transform: scale(0) rotate(-90deg); } }
.gross-zahl { font-size: 46px; font-weight: 800; color: var(--nacht); }
.rueckblick { border-left: 4px solid var(--rot); background: #fff; border-radius: 0 14px 14px 0; padding: 10px 12px; margin: 8px 0; font-size: 15.5px; }
.rueckblick .q { font-weight: 700; }
.note { font-size: 56px; font-weight: 800; }

/* Schreibwerkstatt */
.themenwahl button { display: block; width: 100%; text-align: left; background: var(--karte); border-radius: 18px; box-shadow: var(--sh); padding: 15px; margin: 10px 0; border-left: 6px solid var(--rot); }
.themenwahl button b { display: block; font-size: 18px; }
.themenwahl button small { color: var(--grau); }
.timer { font-size: 44px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; color: var(--nacht); }
.fotos { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.fotos .foto { position: relative; width: 100px; height: 130px; border-radius: 12px; overflow: hidden; box-shadow: var(--sh); background: #ddd; }
.fotos img { width: 100%; height: 100%; object-fit: cover; }
.fotos .weg { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-weight: 800; }
.dateiknopf { position: relative; overflow: hidden; }
.dateiknopf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vorschau { background: var(--soft); border-radius: 14px; padding: 12px; white-space: pre-wrap; line-height: 1.6; font-size: 16px; max-height: 220px; overflow: auto; }
.unsicher { background: #ffe08a; border-radius: 4px; padding: 0 3px; }
.check label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--gras); }
.bereich { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.bereich:last-child { border: 0; }
.bereich .st { color: var(--sonne); font-size: 21px; white-space: nowrap; }
.bereich .st .aus { color: var(--linie); }
.tipp { border-left: 5px solid var(--tuerkis); background: var(--soft); border-radius: 0 14px 14px 0; padding: 11px 13px; margin: 10px 0; }
.tipp .alt { text-decoration: line-through; color: var(--grau); }
.tipp .neu { color: var(--gras); font-weight: 800; }
table.fehler { width: 100%; border-collapse: collapse; font-size: 15px; }
table.fehler td, table.fehler th { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.fehler .f { color: var(--rot); text-decoration: line-through; }
table.fehler .r { color: var(--gras); font-weight: 800; }
.missionskarte { background: linear-gradient(135deg, #fff3d6, #ffe6b0); border-radius: var(--r); padding: 18px; margin: 14px 0; }
.heft { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--karte); border-radius: 16px; box-shadow: var(--sh); padding: 13px 15px; margin: 8px 0; }

/* Album */
.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gkarte { background: #fff; border-radius: 16px; box-shadow: var(--sh); overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.gkarte .gipfel-svg { display: block; width: 100%; height: auto; aspect-ratio: 120/130; }
.gkarte .unten { padding: 7px 9px 9px; }
.gkarte b { font-size: 14px; display: block; line-height: 1.2; }
.gkarte small { font-size: 12px; color: var(--grau); }
.gkarte.zu { opacity: .7; }
.gross-karte { max-width: 260px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: var(--sh2); background: #fff; animation: dreh-rein .7s ease-out; }
@keyframes dreh-rein { from { transform: rotateY(90deg) scale(.8); } }
@media (min-width: 560px) { .album { grid-template-columns: repeat(4, 1fr); } }

/* Eltern */
.ampel { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.ampel .punkt { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.kalender { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.kalender div { aspect-ratio: 1; border-radius: 9px; background: var(--soft); font-size: 12px; display: grid; place-items: center; color: var(--grau); }
.kalender div.ja { background: var(--gras); color: #fff; font-weight: 800; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22px; font-weight: 800; letter-spacing: 2px; background: var(--soft); border-radius: 14px; padding: 10px; text-align: center; user-select: all; }
details { background: var(--karte); border-radius: 16px; box-shadow: var(--sh); padding: 13px 15px; margin: 10px 0; }
details summary { font-weight: 800; cursor: pointer; }
.abzeichen { display: flex; flex-wrap: wrap; gap: 8px; }
.abzeichen span { background: var(--soft); border-radius: 12px; padding: 6px 10px; font-size: 14px; font-weight: 700; }
.abzeichen span.zu { opacity: .35; }
.notenfeld { display: grid; grid-template-columns: 1fr 96px; gap: 8px; align-items: center; padding: 6px 0; }
.notenfeld input { text-align: center; font-weight: 800; padding: 8px; }
.schalter { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.schalter input { width: 48px; height: 26px; accent-color: var(--gras); }

/* Navigation unten */
.nav { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--linie); display: flex; justify-content: center; z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
.nav .innen { display: flex; max-width: 600px; width: 100%; }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 9px; font-size: 12px; font-weight: 800; color: #8696a7; }
.nav button.aktiv { color: var(--nacht); }
.nav button.aktiv svg { transform: translateY(-1px); }

/* Fenster, Meldungen */
.modal { position: fixed; inset: 0; background: rgba(10,25,45,.55); display: grid; place-items: center; z-index: 50; padding: 16px; animation: einblenden .2s; }
@keyframes einblenden { from { opacity: 0; } }
.modal .box { background: #fff; border-radius: var(--r); padding: 22px; max-width: 520px; width: 100%; max-height: 88vh; overflow: auto; animation: pop .25s; }
.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); background: var(--nacht2); color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 700; z-index: 60; max-width: 92vw; box-shadow: 0 6px 20px rgba(0,0,0,.25); animation: rein .25s ease-out; }
@keyframes rein { from { opacity: 0; transform: translate(-50%, -12px); } }
.lade { display: inline-block; width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: dreh .9s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
.konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.konfetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: fall 2.4s ease-in forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .8; } }
.fuss { text-align: center; font-size: 13px; color: var(--grau); margin: 30px 0 10px; }
.startseite { min-height: 100vh; margin: 0 -16px; padding: 30px 20px 40px; background: linear-gradient(170deg, #163a5c, #1F4E79 50%, #2a8fa8); color: #fff; text-align: center; }
.startseite p { color: #d7e7f4; }
@media (max-width: 380px) { .welten { grid-template-columns: 1fr; } .wahl { grid-template-columns: 1fr; } .schnell { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- 2.1: Bilder, Ton, Darstellung ---------- */
.startbild { width: calc(100% + 40px); margin: -30px -20px 10px; max-height: 300px; object-fit: cover; display: block; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.welt.mitbild { padding-top: 0; overflow: hidden; }
.welt .weltbild { width: calc(100% + 28px); margin: 0 -14px 4px; height: 92px; object-fit: cover; display: block; }
.welt.mitbild svg { margin-top: -30px; border: 3px solid var(--karte); border-radius: 16px; }
.mini-bild { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; }
.lesebild { width: calc(100% + 40px); margin: -22px -20px 14px; border-radius: var(--r) var(--r) 0 0; display: block; max-height: 260px; object-fit: cover; }
.themenwahl button.mitbild { display: flex; gap: 12px; align-items: center; padding: 10px; }
.themenwahl button.mitbild img { width: 92px; height: 70px; border-radius: 12px; object-fit: cover; flex: none; }
.themabild { width: 100%; border-radius: var(--r); display: block; max-height: 220px; object-fit: cover; box-shadow: var(--sh); margin-top: 6px; }
.gkarte img.gipfel-svg { object-fit: cover; }
.tonknopf { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); color: var(--nacht); border-radius: 99px; padding: 6px 13px; font-weight: 800; font-size: 14px; margin: 6px 0 10px; font-family: ui-rounded, system-ui, sans-serif; }
.blase .tonknopf { display: flex; width: fit-content; margin: 8px 0 0; }
.tonknopf.laeuft { background: var(--nacht); color: #fff; }
.segment { display: flex; background: var(--soft); border-radius: 14px; padding: 4px; gap: 4px; }
.segment button { flex: 1; padding: 9px 4px; border-radius: 11px; font-weight: 800; font-size: 14px; color: var(--grau); }
.segment button.an { background: var(--karte); color: var(--nacht); box-shadow: var(--sh); }

/* Dunkelmodus */
[data-theme=dunkel] { --bg: #0e1b2b; --karte: #172a40; --text: #e7eef6; --grau: #9fb1c4; --linie: #2a405a; --soft: #21364f; --nacht: #8cc4f2; --sh: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25); }
[data-theme=dunkel] body, [data-theme=dunkel] html { background: var(--bg); }
[data-theme=dunkel] .kopf { background: linear-gradient(var(--bg) 80%, rgba(14,27,43,0)); }
[data-theme=dunkel] .btn { background: #2d6fa8; color: #fff; box-shadow: 0 3px 0 #173f63; }
[data-theme=dunkel] .btn.zwei { background: var(--soft); color: #cfe3f5; box-shadow: 0 3px 0 #0b1724; }
[data-theme=dunkel] .btn.sonne { color: #3a2300; }
[data-theme=dunkel] input[type=text], [data-theme=dunkel] input[type=number], [data-theme=dunkel] input[type=date], [data-theme=dunkel] textarea { background: #0f2033; border-color: var(--linie); color: var(--text); }
[data-theme=dunkel] .lesetext { background: #1b2e44; }
[data-theme=dunkel] .blase { background: #1e3550; color: var(--text); }
[data-theme=dunkel] .blase b { color: #ffd36b; }
[data-theme=dunkel] .modal .box, [data-theme=dunkel] .gkarte, [data-theme=dunkel] .gross-karte, [data-theme=dunkel] .rueckblick { background: var(--karte); }
[data-theme=dunkel] .nav { background: rgba(16,30,48,.96); border-color: var(--linie); }
[data-theme=dunkel] .nav button { color: #7d93aa; }
[data-theme=dunkel] .nav button.aktiv { color: #cfe6fb; }
[data-theme=dunkel] .tasten button { background: var(--karte); box-shadow: 0 3px 0 #0b1724; }
[data-theme=dunkel] .wahl button { box-shadow: 0 2px 0 #0b1724; }
[data-theme=dunkel] .wahl button.richtig, [data-theme=dunkel] .ergebnis.ok { background: #16402c; }
[data-theme=dunkel] .wahl button.falsch, [data-theme=dunkel] .ergebnis.no { background: #4a2125; }
[data-theme=dunkel] .wahl button.gewaehlt { background: #1d3a5a; }
[data-theme=dunkel] .hinweis { background: #3d3418; }
[data-theme=dunkel] .frage mark, [data-theme=dunkel] .unsicher { background: #8a6d12; color: #fff; }
[data-theme=dunkel] .gitter button { background: #21364f; border-color: #2f4a68; }
[data-theme=dunkel] .gitter button.vorgabe { background: #8cc4f2; border-color: #8cc4f2; }
[data-theme=dunkel] .gitter button.fehlt { background: transparent; }
[data-theme=dunkel] .missionskarte { background: linear-gradient(135deg, #3d3418, #4a3c14); }
[data-theme=dunkel] .toast { background: #2d6fa8; }
[data-theme=dunkel] .ava { background: #21364f; }
[data-theme=dunkel] .kopf .zurueck { color: #cfe3f5; }
[data-theme=dunkel] .karte-box .info { color: #cfe3f5; }
[data-theme=dunkel] .gross-zahl { color: #cfe6fb; }
[data-theme=dunkel] .schnell button, [data-theme=dunkel] .welt { background: var(--karte); }
[data-theme=dunkel] .welt.mitbild svg { border-color: var(--karte); }
[data-theme=dunkel] table.fehler td, [data-theme=dunkel] table.fehler th { border-color: var(--linie); }
[data-theme=dunkel] .startseite, [data-theme=dunkel] .held { filter: brightness(.92); }
[data-theme=dunkel] .frage .bild svg rect[fill="#cfe6f5"] { fill: #3a6a94; }
[data-theme=dunkel] .frage .bild svg line { stroke: #8cc4f2; }
[data-theme=dunkel] .frage .bild svg circle { fill: #8cc4f2; }
