/* Kursentwurf 2 (Einser-Code Ökosystem). Farben aus 2 Marketing/brand-template.html: Navy #0D1226, Orange #F29100, Cream #F0EDE2,
   Cream hell #FDF9E9; Blau #3071B5 wie das Dashboard im Portal. Schriften der Marke: Contrail One (Überschriften), Poppins (Text).
   Regeln: keine Verläufe, Rot und Grün kommen nicht vor (nur für falsch und richtig), Orange trägt nie weiße Schrift. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: local("Poppins Regular"), local("Poppins-Regular"), url(schrift/Poppins-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: local("Poppins Medium"), local("Poppins-Medium"), url(schrift/Poppins-500.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: local("Poppins SemiBold"), local("Poppins-SemiBold"), url(schrift/Poppins-SemiBold.ttf) format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: local("Poppins Bold"), local("Poppins-Bold"), url(schrift/Poppins-Bold.ttf) format("truetype"); }
@font-face { font-family: "Contrail One"; font-weight: 400; font-display: swap; src: local("Contrail One"), local("ContrailOne-Regular"), url(schrift/ContrailOne-400.woff2) format("woff2"); }
:root {
  --navy: #0D1226; --navy-2: #1A2040; --navy-3: #070A18; --navy-l: #3A4063;
  --orange: #F29100; --orange-d: #D97F06; --licht: #FFD98A;
  --blau: #3071B5; --blau-d: #215292;
  --cream: #F0EDE2; --cream-2: #E6E1D0; --hell: #FDF9E9; --papier: #FFFFFF; --linie: #DCD6C3;
  --ink: #14141A; --grau: #55555B; --nebel: #C6C4BC;
  --r: 18px; --rand: 20px;
  --titel: "Contrail One", "Poppins", -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--cream); color: var(--ink);
  font: 400 16px/1.55 "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; } ul, ol { list-style: none; }
h1, .t1 { font-family: var(--titel); font-weight: 400; letter-spacing: .005em; line-height: 1.08; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; border-radius: 6px; }
.dunkel :focus-visible, .kopf :focus-visible, .moment :focus-visible { outline-color: var(--licht); }
.vorrat { position: absolute; width: 0; height: 0; overflow: hidden; }
.zahl { font-variant-numeric: tabular-nums; }

/* ---------- Entwurf-Hinweis ---------- */
.entwurf { flex: none; display: flex; align-items: center; justify-content: safe center; gap: 4px; min-height: 30px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; background: var(--navy-3); color: var(--nebel); font-size: 12.5px; }
.entwurf button { color: var(--hell); text-decoration: underline; text-underline-offset: 3px; padding: 12px 8px; margin: -12px 0; white-space: nowrap; }

/* ---------- Gerüst ---------- */
.app { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.kopf { grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 12px 6px var(--rand); background: var(--navy); color: #fff; }
#ansicht { grid-row: 2; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; outline: none; }
.nav, .cta-leiste { grid-row: 3; }
.marke { font-family: var(--titel); font-size: 23px; line-height: 1; letter-spacing: .01em; color: #fff; }
.marke b { color: var(--orange); font-weight: 400; }
.zurueck { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px 0 0; font-weight: 600; font-size: 16px; }
.zurueck svg { width: 22px; height: 22px; }
.kopf-rechts { display: flex; align-items: center; gap: 4px; }
.zaehler { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px 0 8px; font-weight: 700; font-size: 17px; border-radius: 22px; }
.zaehler svg { width: 24px; height: 24px; flex: none; }
.zaehler:hover { background: var(--navy-2); }
.zaehler.pop svg { animation: zaehlerPop .45s ease; }
@keyframes zaehlerPop { 50% { transform: scale(1.35) rotate(-10deg); } }
.kopf-stufe { display: none; }

/* ---------- Navigation ---------- */
.nav { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--papier); border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); }
.nav-kopf, .nav .nur-rechner, .nav-trenner { display: none; }
.nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; color: var(--grau); font-size: 11.5px; font-weight: 500; }
.nav button svg { width: 25px; height: 25px; }
.nav button img { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; }
.nav button[aria-current="page"] { color: var(--navy); font-weight: 700; }
.nav button[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 26%; right: 26%; height: 3px; border-radius: 0 0 3px 3px; background: var(--orange); }
body[data-ansicht="lektion"] .nav { display: none; }
.cta-leiste { display: none; padding: 12px var(--rand) calc(12px + env(safe-area-inset-bottom)); background: var(--papier); border-top: 1px solid var(--linie); }
body[data-ansicht="lektion"] .cta-leiste { display: block; }

/* ---------- Bausteine ---------- */
.knopf { --sockel: transparent; --rahmen: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 16px; font-weight: 700; font-size: 16.5px; text-align: center; text-decoration: none;
  box-shadow: inset 0 0 0 var(--rahmen) var(--navy), 0 4px 0 var(--sockel); transition: transform .1s ease, box-shadow .1s ease, background-color .15s ease; }
.knopf:active { transform: translateY(3px); box-shadow: inset 0 0 0 var(--rahmen) var(--navy), 0 1px 0 var(--sockel); }
.knopf.haupt { background: var(--orange); color: var(--navy); --sockel: #B36B00; }
.knopf.haupt:hover { background: #FF9D0A; }
.knopf.zweit { background: var(--blau-d); color: #fff; --sockel: #153763; }
.knopf.zweit:hover { background: #265CA3; }
.knopf.navy { background: var(--navy-2); color: #fff; --sockel: var(--navy-3); }
.knopf.navy:hover { background: #232B55; }
.knopf.rand { background: var(--papier); color: var(--navy); --rahmen: 2px; --sockel: var(--navy); }
.knopf.hell { background: #252C55; color: var(--hell); font-weight: 600; --sockel: var(--navy-3); }
.knopf.voll { display: flex; width: 100%; }
.knopf.klein { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 13px; }
.knopf[disabled] { background: var(--cream-2); color: #6E6C66; --rahmen: 0px; --sockel: #D3CCB7; cursor: default; }
.knopf[disabled]:active { transform: none; box-shadow: 0 4px 0 var(--sockel); }
.knopf svg { width: 20px; height: 20px; flex: none; }
.link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--blau-d); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.link.hell { color: var(--hell); }
.etikett { font-size: 14px; font-weight: 700; color: var(--blau-d); }
.klein { font-size: 14px; color: var(--grau); }
.m-zahl { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; white-space: nowrap; }
.m-zahl svg { width: 18px; height: 18px; flex: none; }
.balken { height: 6px; border-radius: 3px; background: var(--cream-2); overflow: hidden; }
.balken i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--orange); transition: width .5s ease; }
.dunkel .balken { background: var(--navy-l); }
.tuer { display: block; width: 100%; height: auto; }
.welle { position: absolute; left: 0; right: 0; bottom: -1px; display: block; width: 100%; height: 22px; pointer-events: none; }
.welle-s { display: none; }
@keyframes schweben { to { transform: translateY(-6px); } }
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.punkt-zeile { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 0; border-top: 1px solid var(--linie); }
.punkt-zeile:first-child { border-top: 0; }
.punkt-zeile > .pz-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.punkt-zeile strong { font-weight: 600; color: var(--navy); line-height: 1.3; }
.punkt-zeile .klein { line-height: 1.35; }
.rund { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--papier); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.rund svg { width: 22px; height: 22px; }
.rund.fertig { background: var(--navy); color: #fff; }
.rund.leise { box-shadow: inset 0 0 0 2px #A9A38F; color: var(--grau); background: transparent; }

/* ---------- Start ---------- */
.band { position: relative; background: var(--navy); color: #fff; padding: 16px var(--rand) 86px; display: grid; gap: 18px; }
.band h1 { font-size: 40px; }
.band p { margin-top: 6px; color: var(--nebel); font-size: 16px; }
.woche { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; max-width: 380px; }
.woche-titel { font-size: 14px; font-weight: 600; color: var(--nebel); }
.woche-zeile { font-size: 14px; font-weight: 600; color: var(--hell); }
.woche-tage { grid-column: 1 / 3; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tag { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: #9DA1BD; }
.tag i { width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--navy-l); display: grid; place-items: center; }
.tag.an i { background: var(--hell); box-shadow: none; color: var(--navy); }
.tag.an i svg { width: 55%; height: 55%; }
.tag.heute { color: #fff; font-weight: 700; }
.tag.heute:not(.an) i { box-shadow: inset 0 0 0 2.5px var(--orange); }
.start { padding: 0 var(--rand) 8px; }
.weiter { position: relative; z-index: 1; margin-top: -62px; background: var(--papier); border-radius: 24px; overflow: hidden; border: 2.5px solid var(--navy); box-shadow: 0 7px 0 var(--navy); }
.weiter-bild { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.weiter-bild > img, .weiter-bild > .bildx { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; border: 3px solid var(--navy); box-shadow: 0 5px 0 var(--navy); transition: transform .15s ease; }
.weiter-bild:hover .play { transform: translateY(-3px); }
.play svg { width: 26px; height: 26px; margin-left: 4px; color: var(--navy); }
.dauer { position: absolute; right: 10px; bottom: 10px; padding: 2px 9px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; }
.weiter-text { padding: 18px 20px 20px; }
.weiter-text h2 { margin-top: 2px; font-family: var(--titel); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: .005em; }
.weiter-text .darum { margin: 8px 0 16px; color: var(--grau); }
.weiter-fuss { display: flex; align-items: center; gap: 14px; }
.weiter-fuss .knopf { flex: 1; }
.start-neben { margin-top: 26px; display: grid; gap: 22px; }
.stufe-kurz { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; width: 100%; border-radius: 12px; }
.sk-reihe { display: flex; align-items: center; }
.sk-p { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; }
.sk-p svg { width: 10px; height: 10px; }
.sk-p.da { background: var(--navy); color: #fff; }
.sk-p.jetzt { background: var(--orange); box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--navy); }
.sk-p.zu { box-shadow: inset 0 0 0 2px #A9A38F; }
.sk-v { width: 12px; height: 2.5px; background: #C9C2AC; }
.sk-v.fest { background: var(--navy); }
.sk-titel { grid-column: 1 / 3; display: flex; align-items: center; gap: 8px; margin-top: 2px; font-family: var(--titel); font-size: 30px; line-height: 1.1; color: var(--navy); }
.sk-titel svg { flex: none; width: 18px; height: 18px; color: var(--grau); }
.sk-hin { grid-column: 1 / 3; margin-top: 4px; }
.ci-zettel { position: absolute; left: 50%; top: 50%; width: min(64%, 260px); transform: translate(-50%, -50%) rotate(-3deg); display: grid; gap: 6px; padding: 14px 18px 16px; background: var(--hell); border: 2.5px solid var(--navy); border-radius: 14px; box-shadow: 0 6px 0 var(--navy); text-align: left; color: var(--navy); font-size: 14px; font-weight: 500; line-height: 1.3; }
.ci-zettel b { font-family: var(--titel); font-weight: 400; font-size: 23px; line-height: 1.1; }
.ci-zettel span { display: flex; align-items: center; gap: 9px; }
.ci-zettel i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--navy); }
.ci-zettel span:first-of-type i { background: var(--orange); }
.ci-auch { margin-top: 8px; text-align: left; line-height: 1.3; }
.route-band { margin-top: 34px; padding: 24px var(--rand) 30px; background: var(--navy); color: #fff; display: grid; gap: 18px; }
.route-band h2 { color: var(--nebel); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.hier-bild { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 22px; border: 3px solid var(--hell); box-shadow: 0 6px 0 var(--navy-3); background: #2A7FC4; }
.hier-bild img { position: absolute; left: 50%; top: 50%; width: 260%; max-width: none; }
.hier-punkt { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--orange); border: 3px solid var(--navy); }
.hier-pin { position: absolute; width: 36px; height: 36px; margin: -50px 0 0 -18px; animation: schweben 2.4s ease-in-out infinite alternate; }
.hier-pin svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 3px 0 rgba(13, 18, 38, .55)); }
.hier-schild { position: absolute; left: 12px; top: 12px; padding: 2px 12px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; }
.hier-ort { margin-top: 2px; font-family: var(--titel); font-size: 32px; line-height: 1.1; }
.hier-text .knopf { margin-top: 18px; }
.rb-linie { display: flex; align-items: center; margin-top: 16px; }
.rb-p { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.rb-p::after { content: ""; position: absolute; inset: -11px; }
.rb-p { position: relative; }
.rb-p.da { background: var(--hell); color: var(--navy); }
.rb-p.da svg { width: 12px; height: 12px; }
.rb-p.jetzt { width: 30px; height: 30px; }
.rb-p.jetzt svg { width: 30px; height: 30px; }
.rb-p.zu { box-shadow: inset 0 0 0 2px var(--navy-l); color: #9DA1BD; }
.rb-v { flex: 1; min-width: 2px; height: 2.5px; background: var(--navy-l); }
.rb-v.fest { background: var(--hell); }
.rb-zeile { margin-top: 6px; color: var(--nebel); font-size: 15px; }
.rb-zeile b { color: #fff; font-weight: 600; }
.start-unten { padding: 30px var(--rand) 8px; display: grid; gap: 34px; }
.heute-liste { margin-top: 6px; }
.gem-kurz .zitat { margin-top: 10px; padding: 16px 18px; border-radius: 16px; background: var(--papier); }
.gem-kurz .zitat p { font-size: 17px; line-height: 1.45; color: var(--navy); font-weight: 500; }
.gem-kurz .zitat footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--grau); }
.live-zeile { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--blau-d); color: #fff; }
.live-zeile svg { width: 24px; height: 24px; flex: none; }
.live-zeile strong { display: block; font-weight: 600; line-height: 1.3; }
.live-zeile span { font-size: 14px; color: #D5E2F2; }
.gleich { padding: 26px var(--rand) 44px; }
.gleich-liste { margin-top: 6px; }
.gl-fort { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.gl-fort .balken { flex: 1; max-width: 220px; }

/* ---------- Bild-Platzhalter für Lektionen ohne Thumbnail ---------- */
.bildx { display: grid; align-content: center; background: var(--navy); padding: 0 7cqw; container-type: inline-size; color: #fff; }
.bildx span { justify-self: start; padding: .25em .9em; border: 1.5px solid var(--orange); border-radius: 99px; color: var(--orange); font-size: max(9px, 2.6cqw); font-weight: 600; letter-spacing: .08em; }
.bildx strong { display: block; margin-top: .4em; font-family: var(--titel); font-weight: 400; font-size: max(15px, 7cqw); line-height: 1.02; text-transform: uppercase; max-width: 15em; }
.bildx i { display: block; width: 14cqw; height: max(2px, .7cqw); margin-top: .9em; background: var(--orange); }

/* ---------- Karte: Juliens Insel ---------- */
body[data-ansicht="karte"]:not([data-stil="schlicht"]) #ansicht { background: var(--navy); }
.karte-kopf { padding: 20px var(--rand) 4px; color: #fff; display: grid; gap: 10px; }
.karte-kopf h1 { font-size: 36px; }
.karte-kopf p { color: var(--nebel); margin-top: 4px; }
.karte-stand { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; color: var(--hell); }
.karte-stand span { display: inline-flex; align-items: center; gap: 6px; }
.karte-stand svg { width: 16px; height: 16px; }
.welt-rahmen { position: relative; margin-top: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-top: 4px solid var(--hell); border-bottom: 4px solid var(--hell); background: #2A7FC4; }
.welt-rahmen::-webkit-scrollbar { display: none; }
.welt { position: relative; height: calc(clamp(360px, 62dvh, 540px) * var(--zoom, 1)); aspect-ratio: 1000 / 545.5; overflow: hidden; transition: height .25s ease, width .25s ease; }
.welt > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.welt-route { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.welt.nacht > img { filter: brightness(.62) saturate(.7) contrast(1.05); }
.welt.nacht::after { content: ""; position: absolute; inset: 0; background: #16246B; mix-blend-mode: multiply; opacity: .55; pointer-events: none; }
.welt.nacht .wolke { opacity: .22; }
.wolke { position: absolute; z-index: 1; left: -16%; top: 3%; width: 13%; opacity: .92; pointer-events: none; animation: ziehen 95s linear infinite; animation-delay: -22s; }
.wolke svg { display: block; width: 100%; height: auto; }
.wolke.w2 { top: 11%; width: 9%; opacity: .8; animation-duration: 130s; animation-delay: -80s; }
.wolke.w3 { top: 1%; width: 7%; opacity: .75; animation-duration: 110s; animation-delay: -55s; }
@keyframes ziehen { from { left: -16%; } to { left: 104%; } }
.welt-rose { position: absolute; z-index: 1; right: 1.2%; bottom: 1.6%; width: 7.6%; pointer-events: none; }
.welt-rose svg { display: block; width: 100%; height: auto; }
.pin { position: absolute; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; }
.pin-kopf { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--hell); color: var(--navy); border: 3px solid var(--navy); box-shadow: 0 4px 0 var(--navy); font-size: 15px; font-weight: 700; line-height: 1; transition: transform .15s ease; }
.pin-kopf svg { width: 17px; height: 17px; }
.pin.da .pin-kopf { background: var(--navy); color: var(--licht); border-color: var(--hell); }
.pin.jetzt { z-index: 3; }
.pin.jetzt .pin-kopf { width: 46px; height: 46px; background: var(--orange); font-size: 19px; }
.pin.jetzt::before { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid var(--hell); animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.pin:hover .pin-kopf, .pin:focus-visible .pin-kopf { transform: translateY(-3px); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-kopf { outline: 3px solid var(--licht); outline-offset: 2px; }
.pin-name { position: absolute; left: 50%; top: calc(100% + 3px); transform: translateX(-50%); padding: 1px 9px; border-radius: 99px; background: var(--hell); color: var(--navy); border: 2px solid var(--navy); font-size: 12px; line-height: 1.5; font-weight: 600; white-space: nowrap; }
.pin.oben .pin-name { top: auto; bottom: calc(100% + 3px); }
.pin.da .pin-name { background: var(--navy); color: #fff; }
.pin.jetzt .pin-name { top: calc(100% + 8px); background: var(--orange); font-size: 13px; font-weight: 700; }
.pin-hier { position: absolute; left: 50%; bottom: calc(100% + 4px); width: 30px; height: 30px; margin-left: -15px; animation: schweben 2.4s ease-in-out infinite alternate; }
.pin-hier svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 3px 0 rgba(13, 18, 38, .5)); }
.karte-fuss { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 14px var(--rand) 30px; font-size: 13.5px; color: var(--nebel); }
.karte-fuss span { display: inline-flex; align-items: center; gap: 7px; }
.karte-fuss i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--hell); }
.karte-fuss i.da { background: var(--navy); } .karte-fuss i.jetzt { background: var(--orange); } .karte-fuss i.zu { background: var(--hell); border-color: #8E8876; }

/* ---------- Etappe: Ort oben, Schild, Weg mit Türen ---------- */
.et-kopf { position: relative; height: 190px; overflow: hidden; background: #2A7FC4; }
.et-kopf img { width: 100%; height: 100%; object-fit: cover; }
.et-schild { position: relative; z-index: 1; margin: -62px var(--rand) 0; padding: 18px 20px 20px; border-radius: 22px; background: var(--navy); color: #fff; box-shadow: 0 6px 0 var(--orange); }
.et-ueber { font-size: 14px; font-weight: 600; color: var(--orange); }
.et-schild h1 { margin-top: 2px; font-size: 34px; }
.et-schild .unter { margin-top: 8px; color: var(--nebel); }
.et-stand { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--hell); }
.et-stand .balken { flex: 1; max-width: 200px; }
.et-seite { padding: 30px var(--rand) 44px; display: grid; gap: 34px; }
.weg { position: relative; --schritt: 30px; }
.weg-linie { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.weg li { position: relative; }
.station { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 120px; padding: 6px 0 6px calc(var(--v, 0) * var(--schritt)); border-radius: 16px; }
.knoten { flex: none; width: 84px; display: grid; place-items: center; }
.knoten .tuer { width: 60px; transition: transform .15s ease; }
.station.dran .knoten .tuer { width: 80px; animation: schweben 2.2s ease-in-out infinite alternate; }
.station:hover .knoten .tuer, .station:hover .knoten > svg { transform: translateY(-4px); }
.station.ziel .knoten > svg { width: 56px; height: 56px; transition: transform .15s ease; }
.st-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.st-nr { font-size: 14px; color: var(--grau); }
.st-titel { font-size: 17.5px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.station.zu .st-titel { color: var(--grau); font-weight: 600; }
.st-stand { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 14px; font-weight: 600; color: var(--navy); }
.st-stand svg { width: 15px; height: 15px; }
.station.zu .st-stand { color: var(--grau); font-weight: 500; }
.st-knopf { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 8px; padding: 8px 14px 8px 16px; border-radius: 12px; background: var(--orange); color: var(--navy); font-weight: 700; font-size: 15px; box-shadow: 0 3px 0 #B36B00; }
.st-knopf svg { width: 16px; height: 16px; }
.et-neben { display: grid; gap: 26px; align-content: start; }
.auftrag { padding: 18px 20px; border-radius: 18px; background: var(--navy); color: #fff; }
.auftrag .etikett { color: var(--orange); }
.auftrag p + p { margin-top: 4px; font-size: 19px; line-height: 1.35; font-weight: 600; }
.neben-zeile { display: flex; align-items: center; gap: 14px; width: 100%; }
.neben-zeile .app-bild { width: 54px; height: 54px; border-radius: 15px; }
.neben-zeile strong { display: block; font-weight: 600; color: var(--navy); line-height: 1.3; }

/* ---------- Lektion ---------- */
.lektion { padding: 0 var(--rand) 28px; }
.player { position: relative; margin: 0 calc(var(--rand) * -1); aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.player > img, .player > .bildx { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.player-flaeche { position: absolute; inset: 0; width: 100%; height: 100%; }
.player.an > img, .player.an > .bildx { opacity: .45; }
.player.an .play { display: none; }
.player.an.pause .play { display: grid; }
.player-hinweis { position: absolute; left: 0; right: 0; top: 14px; text-align: center; color: #fff; font-size: 14px; font-weight: 500; display: none; pointer-events: none; }
.player.an .player-hinweis { display: block; }
.player-leiste { position: absolute; left: 0; right: 0; bottom: 0; display: none; align-items: center; gap: 10px; padding: 0 12px 0 2px; height: 48px; background: var(--navy); color: #fff; }
.player.an .player-leiste { display: flex; }
.player-leiste button { width: 46px; height: 46px; display: grid; place-items: center; flex: none; }
.player-leiste button svg { width: 22px; height: 22px; }
.player-leiste .balken { flex: 1; background: var(--navy-l); }
.player-leiste .balken i { transition: width .9s linear; }
.zeit { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.l-kopf { margin-top: 18px; }
.l-kopf h1 { margin-top: 2px; font-size: 34px; color: var(--navy); }
.l-kopf .l-unter { font-size: 17px; font-weight: 600; color: var(--grau); }
.darum-block { margin-top: 16px; }
.darum-block h2, .aufgabe h2 { font-size: 15px; font-weight: 700; color: var(--blau-d); }
.darum-block p { margin-top: 4px; font-size: 17px; max-width: 34em; }
.aufgabe { margin-top: 26px; padding: 20px; border-radius: 20px; background: var(--papier); }
.aufgabe .frage { margin-top: 4px; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.aufgabe .hilfe { margin-top: 6px; font-size: 14px; color: var(--grau); }
.aufgabe .lohn { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--grau); }
.aufgabe .lohn svg { width: 16px; height: 16px; }
.haken { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 14px; padding: 14px 16px; min-height: 60px; border-radius: 14px; background: var(--cream); font-size: 16.5px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.haken .box { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 2.5px solid var(--navy); display: grid; place-items: center; color: transparent; }
.haken .box svg { width: 18px; height: 18px; }
.haken[aria-pressed="true"] { background: var(--navy); color: #fff; }
.haken[aria-pressed="true"] .box { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.wahl { display: grid; gap: 10px; margin-top: 14px; }
.wahl button { display: flex; flex-direction: column; gap: 1px; padding: 13px 16px; min-height: 60px; justify-content: center; border-radius: 14px; background: var(--cream); }
.wahl button strong { font-size: 16.5px; font-weight: 700; color: var(--navy); }
.wahl button span { font-size: 15px; color: var(--grau); }
.wahl button[aria-pressed="true"] { background: var(--navy); }
.wahl button[aria-pressed="true"] strong { color: #fff; }
.wahl button[aria-pressed="true"] span { color: var(--nebel); }
.feld { display: block; width: 100%; margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--linie); background: var(--hell); font-size: 16.5px; line-height: 1.45; color: var(--ink); resize: none; }
.feld::placeholder { color: #6E6C66; }
.feld:focus { outline: none; border-color: var(--blau); background: var(--papier); }
.schnitt { margin-top: 12px; text-align: center; }
.schnitt output { display: block; font-family: var(--titel); font-size: 84px; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.schnitt output.leer { color: #A9A38F; }
.schnitt input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 4px 0 0; background: transparent; cursor: pointer; }
.schnitt input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--cream-2); }
.schnitt input::-moz-range-track { height: 8px; border-radius: 4px; background: var(--cream-2); }
.schnitt input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--orange); border: 3px solid var(--navy); }
.schnitt input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); border: 3px solid var(--navy); }
.schnitt input:focus-visible { outline: none; }
.schnitt input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--blau); }
.schnitt-skala { display: flex; justify-content: space-between; font-size: 14px; color: var(--grau); }
.feld-titel { display: block; margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--navy); }
.feld-titel + .feld { margin-top: 6px; }
.dein-ziel { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--cream); font-size: 15px; color: var(--grau); }
.dein-ziel b { color: var(--navy); }
.knopf.l-knopf { display: none; }
.schon { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; color: var(--navy); }
.schon svg { width: 20px; height: 20px; }

/* ---------- Murmeln ---------- */
.kasse-band { background: var(--navy); color: #fff; padding: 18px var(--rand) 26px; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: center; }
.kasse-band .glas svg { display: block; width: 100%; height: auto; }
.kb-ueber { font-size: 14px; font-weight: 600; color: var(--nebel); }
.kb-zahl { font-family: var(--titel); font-size: 72px; line-height: .95; }
.kb-zeile { margin-top: 6px; color: var(--hell); font-weight: 500; line-height: 1.4; }
.kb-grenze { margin-top: 10px; font-size: 14px; color: var(--nebel); }
.kasse-seite { padding: 26px var(--rand) 44px; display: grid; gap: 38px; }
.tausch > h2 + p { margin-top: 2px; }
.tz { margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--navy); }
.tz-kopf { display: flex; align-items: flex-start; gap: 14px; }
.tz-kopf .app-bild { width: 54px; height: 54px; border-radius: 15px; }
.tz-kopf h3 { font-size: 19px; line-height: 1.25; font-weight: 700; color: var(--navy); }
.tz-kopf p { font-size: 15px; color: var(--grau); }
.tz-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tz-hinweis { margin-top: 10px; font-size: 14px; color: var(--grau); }
.glas-zeile { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 14px; }
.glas-zeile .glas svg { display: block; width: 100%; height: auto; }
.glas-zeile strong { font-family: var(--titel); font-weight: 400; font-size: 30px; line-height: 1; color: var(--navy); }
.glas-zeile .balken { margin-top: 8px; }
.regal { margin-top: 6px; }
.regal .preis { flex: none; }
.regal .art { font-size: 13px; font-weight: 600; color: var(--blau-d); }
.buch li, .verdienen li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--linie); font-size: 15px; }
.buch li:first-child, .verdienen li:first-child { border-top: 0; }
.buch li span:last-child, .verdienen li span:last-child { flex: none; font-weight: 700; color: var(--navy); }
.buch li.minus span:last-child { color: var(--blau-d); }
.buch li small { display: block; font-size: 13px; color: var(--grau); }
.verdienen ul, .buch ul { margin-top: 6px; }

/* ---------- Abzeichen und Stufen ---------- */
.stufen-band { background: var(--navy); color: #fff; padding: 20px var(--rand) 24px; }
.stufen-band h1 { font-size: 34px; }
.stufen-band .unter { margin-top: 6px; color: var(--nebel); }
.st-reihe { display: flex; align-items: center; margin-top: 12px; padding-top: 30px; }
.sv { flex: 1; height: 3px; background: var(--navy-l); }
.sv.fest { background: var(--hell); }
.sm { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 700; }
.sm svg { width: 19px; height: 19px; }
.sm.da { background: var(--hell); color: var(--navy); }
.sm.jetzt { background: var(--orange); color: var(--navy); box-shadow: 0 0 0 3px var(--navy), 0 0 0 5.5px var(--orange); }
.sm.zu { background: var(--navy-2); color: #A9ADC8; box-shadow: inset 0 0 0 2px var(--navy-l); }
.sm.zu[aria-pressed="true"], .sm.da[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--navy), 0 0 0 5.5px #fff; }
.schild { position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%); padding: 1px 9px; border-radius: 99px; background: var(--hell); color: var(--navy); font-size: 12.5px; line-height: 1.5; font-weight: 700; white-space: nowrap; }
.st-feld { margin-top: 16px; padding: 16px 18px 18px; border-radius: 16px; background: var(--navy-2); }
.sf-ueber { font-size: 14px; font-weight: 600; color: var(--orange); }
.st-feld h2 { margin-top: 1px; font-family: var(--titel); font-weight: 400; font-size: 30px; line-height: 1.1; color: #fff; }
.sf-label { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--nebel); }
.sf-kann { margin-top: 2px; line-height: 1.45; color: var(--hell); }
.sf-wann { margin-top: 8px; font-size: 14px; color: var(--nebel); }
.sammlung { padding: 26px var(--rand) 44px; display: grid; gap: 36px; }
.sm-reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 12px 8px; margin-top: 12px; }
.sm-reihe button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--grau); min-height: 44px; }
.sm-reihe svg { width: 44px; height: 44px; }
.sm-reihe .aus svg { opacity: .22; }
.abz-gruppe h3 { font-size: 15px; font-weight: 700; color: var(--blau-d); display: flex; justify-content: space-between; gap: 10px; }
.abz-gruppe h3 span { color: var(--grau); font-weight: 500; }
.abz-gruppe + .abz-gruppe { margin-top: 26px; }
.abz-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 18px 8px; margin-top: 12px; }
.abz { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; line-height: 1.25; font-weight: 600; color: var(--navy); border-radius: 12px; padding: 2px; }
.abz .siegel { width: 68px; height: 68px; }
.abz.zu { color: var(--grau); font-weight: 500; }
.abz small { font-size: 12px; font-weight: 500; color: var(--grau); }
.siegel { display: block; }

/* ---------- Community ---------- */
.gem-kopf { background: var(--navy); color: #fff; padding: 20px var(--rand) 0; }
.gem-kopf h1 { font-size: 34px; }
.gem-kopf p { margin-top: 4px; color: var(--nebel); }
.kanaele { display: flex; gap: 4px; margin: 14px calc(var(--rand) * -1) 0; padding: 0 var(--rand); overflow-x: auto; scrollbar-width: none; }
.kanaele::-webkit-scrollbar { display: none; }
.kanaele button { flex: none; min-height: 46px; padding: 0 14px; font-size: 15px; font-weight: 500; color: var(--nebel); border-bottom: 3px solid transparent; white-space: nowrap; }
.kanaele button[aria-pressed="true"] { color: #fff; font-weight: 700; border-bottom-color: var(--orange); }
.gem-seite { padding: 20px var(--rand) 44px; display: grid; gap: 34px; }
.schreiben { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; min-height: 60px; border-radius: 16px; background: var(--papier); color: var(--grau); }
.schreiben .avatar { flex: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--navy); font-weight: 700; font-size: 16px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.ich { background: var(--navy); color: #fff; }
.gem-hinweis { margin-top: 12px; }
.beitrag { margin-top: 12px; padding: 16px 18px 8px; border-radius: 18px; background: var(--papier); }
.beitrag.fest { background: var(--navy); color: #fff; }
.bt-kopf { display: flex; align-items: center; gap: 12px; }
.bt-kopf strong { display: block; font-weight: 600; line-height: 1.25; }
.bt-kopf span { font-size: 13.5px; color: var(--grau); }
.beitrag.fest .bt-kopf span { color: var(--nebel); }
.beitrag > p { margin-top: 10px; font-size: 16.5px; line-height: 1.5; overflow-wrap: anywhere; }
.bt-fuss { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.bt-fuss button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 10px 0 0; font-size: 14.5px; font-weight: 600; color: var(--grau); margin-right: 8px; }
.bt-fuss button svg { width: 20px; height: 20px; }
.bt-fuss button[aria-pressed="true"] { color: var(--blau-d); }
.beitrag.fest .bt-fuss button { color: var(--nebel); }
.beitrag.fest .bt-fuss button[aria-pressed="true"] { color: var(--licht); }
.gem-neben { display: grid; gap: 30px; align-content: start; }
.live-karte { padding: 18px 20px 20px; border-radius: 18px; background: var(--blau-d); color: #fff; }
.live-karte .etikett { color: #D5E2F2; }
.live-karte h2 { margin-top: 2px; color: #fff; font-family: var(--titel); font-weight: 400; font-size: 28px; line-height: 1.1; }
.live-karte p { margin-top: 6px; color: #D5E2F2; font-size: 15px; }
.live-karte .knopf { margin-top: 14px; }
.live-karte .knopf.dabei { background: #fff; color: var(--blau-d); }
.mitglieder { display: flex; align-items: center; margin-top: 10px; }
.mitglieder .avatar { width: 34px; height: 34px; font-size: 14px; margin-left: -8px; box-shadow: 0 0 0 2px var(--cream); }
.mitglieder .avatar:first-child { margin-left: 0; }
.mitglieder span:last-child { margin-left: 10px; font-size: 14px; color: var(--grau); }

/* ---------- Werkzeuge ---------- */
.werk-kopf { background: var(--navy); color: #fff; padding: 20px var(--rand) 24px; }
.werk-kopf h1 { font-size: 34px; }
.werk-kopf p { margin-top: 4px; color: var(--nebel); max-width: 34em; }
.werk-seite { padding: 26px var(--rand) 44px; display: grid; gap: 40px; }
.app-bild { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; }
.app-bild svg { width: 56%; height: 56%; }
.app-liste { margin-top: 8px; }
.app-zeile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; padding: 16px 0; border-top: 1px solid var(--linie); align-items: start; }
.app-zeile:first-child { border-top: 0; }
.app-zeile .app-bild { grid-row: 1 / 3; }
.app-zeile h3 { font-size: 19px; line-height: 1.2; font-weight: 700; color: var(--navy); }
.app-zeile h3 span { font-weight: 500; font-size: 15px; color: var(--grau); margin-left: 6px; }
.app-zeile p { font-size: 15px; color: var(--grau); line-height: 1.45; margin-top: 2px; }
.app-fuss { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.app-fuss .wo { font-size: 13.5px; color: var(--grau); }
.app-fuss .verb { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.app-fuss .verb svg { width: 15px; height: 15px; }
.blatt-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 12px; }
.blatt-k { display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; border-radius: 6px 16px 16px 6px; background: var(--papier); border-left: 5px solid var(--navy); min-height: 132px; }
.blatt-k.pdf { border-left-color: #A9A38F; }
.blatt-k strong { font-weight: 700; color: var(--navy); line-height: 1.25; }
.blatt-k span { font-size: 13.5px; color: var(--grau); line-height: 1.35; }
.blatt-k em { margin-top: auto; padding-top: 10px; font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--blau-d); display: inline-flex; align-items: center; gap: 5px; }
.blatt-k em svg { width: 15px; height: 15px; }
.audio-liste { margin-top: 6px; }

/* ---------- Mein Ziel: ein A4-Blatt (alle Maße in cqw = Prozent der Blattbreite, damit Bildschirm und Druck gleich aussehen) ---------- */
body[data-ansicht="ziel"] #ansicht { background: var(--navy); }
.wand { padding: 22px var(--rand) 48px; color: #fff; display: grid; gap: 28px; }
.wand h1 { font-size: 34px; }
.wand .unter { margin-top: 6px; color: var(--nebel); }
.wand-text { display: grid; gap: 20px; align-content: start; order: 3; }
.wand-felder { display: grid; gap: 6px; padding: 18px; border-radius: 18px; background: var(--navy-2); }
.wand-felder label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--hell); }
.wand-felder label:first-child { margin-top: 0; }
.wand-felder output { font-family: var(--titel); font-size: 28px; line-height: 1; color: var(--orange); }
.wand-felder .feld { margin-top: 0; background: var(--navy); border-color: var(--navy-l); color: #fff; }
.wand-felder .feld::placeholder { color: #9DA1BD; }
.wand-felder .feld:focus { border-color: var(--orange); background: var(--navy); }
.wand-tipp { font-size: 14px; color: var(--nebel); }
.wand-felder .wand-tipp { margin-top: 8px; }
.wand-knoepfe { display: grid; gap: 12px; }
.a4-platz { min-width: 0; }
.a4 { position: relative; container-type: inline-size; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 210 / 297; overflow: hidden; background: var(--hell); color: var(--navy); border-radius: 4px; box-shadow: 0 10px 0 var(--navy-3); }
.a4-bild { position: relative; height: 46cqw; overflow: hidden; background: #2A7FC4; }
.a4-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.a4-bild .welle { height: 4.4cqw; }
.a4-titel { position: absolute; left: 7cqw; top: 6cqw; padding: .7cqw 3.2cqw 1cqw; border-radius: 99px; background: var(--navy); color: #fff; font-family: var(--titel); font-size: 4.8cqw; line-height: 1.2; box-shadow: 0 .9cqw 0 var(--orange); }
.a4-stempel { position: absolute; z-index: 1; right: 6cqw; top: 36.5cqw; width: 18cqw; height: 18cqw; border-radius: 50%; display: grid; place-content: center; text-align: center; transform: rotate(-9deg); background: var(--orange); border: .7cqw solid var(--navy); box-shadow: 0 .9cqw 0 var(--navy); font-family: var(--titel); font-size: 4.4cqw; line-height: .95; color: var(--navy); }
.a4-stempel b { display: block; font-weight: 400; }
.a4-inhalt { padding: 4cqw 8cqw 0; }
.a4-label { font-size: 2.7cqw; line-height: 1.4; font-weight: 700; color: var(--blau-d); }
.a4-haupt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6cqw; align-items: center; }
.a4-zahl { min-width: 30cqw; font-family: var(--titel); font-size: 27cqw; line-height: .95; }
.a4-strich { display: block; width: 17cqw; height: 1.9cqw; margin-top: 1.6cqw; background: var(--orange); }
.a4-satz { margin-top: .6cqw; font-size: 4.3cqw; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; white-space: pre-wrap; }
.a4-zwei { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6cqw; margin-top: 6cqw; padding-top: 4cqw; border-top: .5cqw solid var(--navy); }
.a4-text { margin-top: .8cqw; font-size: 3.3cqw; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.a4-datum { color: var(--grau); }
.a4-unter { position: absolute; left: 8cqw; right: 8cqw; bottom: 14cqw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4cqw; }
.a4-unter div { border-top: .35cqw solid var(--navy); padding-top: 1cqw; font-size: 2.5cqw; color: var(--grau); }
.a4-fuss { position: absolute; left: 8cqw; right: 8cqw; bottom: 4.6cqw; display: flex; justify-content: space-between; align-items: baseline; gap: 3cqw; }
.marke-d { font-family: var(--titel); font-size: 4.6cqw; line-height: 1; color: var(--navy); }
.marke-d b { color: #A85F00; font-weight: 400; }
.a4-name { font-size: 3cqw; font-weight: 600; text-align: right; }
[data-poster] { min-height: 1em; border-radius: .8cqw; outline: .4cqw dashed transparent; outline-offset: .9cqw; cursor: text; transition: outline-color .15s ease; }
[data-poster]:hover { outline-color: #A9A38F; }
[data-poster]:focus { outline: .5cqw solid var(--blau); }
[data-poster]:empty::before { content: attr(data-leer); color: #6E6C66; font-weight: 500; }
.regler { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.regler::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--navy-l); }
.regler::-moz-range-track { height: 8px; border-radius: 4px; background: var(--navy-l); }
.regler::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--orange); border: 3px solid var(--hell); }
.regler::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); border: 3px solid var(--hell); }
.regler:focus-visible { outline: none; }
.regler:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--licht); }

/* ---------- Check-in und Logbuch ---------- */
.formular { padding: 22px var(--rand) 44px; max-width: 720px; }
.formular h1 { font-size: 34px; color: var(--navy); }
.formular > p { margin-top: 6px; color: var(--grau); }
.skala { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 8px; }
.skala button { min-height: 44px; border-radius: 10px; background: var(--papier); font-weight: 600; color: var(--navy); }
.skala button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.formular .knopf { margin-top: 24px; }
.log-liste { margin-top: 18px; }
.log-eintrag { padding: 14px 0; border-top: 1px solid var(--linie); }
.log-eintrag p { margin-top: 2px; font-size: 17px; line-height: 1.45; color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
.leer-hinweis { margin-top: 18px; padding: 20px; border-radius: 16px; border: 2px dashed #A9A38F; color: var(--grau); }

/* ---------- Julien ---------- */
.chat { min-height: 100%; display: flex; flex-direction: column; }
.chat-kopf { display: flex; align-items: center; gap: 14px; padding: 18px var(--rand) 14px; }
.chat-kopf img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--orange); }
.chat-kopf h1 { font-size: 28px; color: var(--navy); }
.chat-kopf p { font-size: 14px; color: var(--grau); }
.chat-liste { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 8px var(--rand) 16px; }
.chat-tag { align-self: center; margin: 4px 0 8px; font-size: 13px; color: var(--grau); }
.blase { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.blase.julien { align-self: flex-start; background: var(--papier); border-bottom-left-radius: 6px; }
.blase.ich { align-self: flex-end; background: var(--blau-d); color: #fff; border-bottom-right-radius: 6px; }
.blase-status { align-self: flex-end; margin-top: -4px; font-size: 13px; color: var(--grau); }
.chat-eingabe { position: sticky; bottom: 0; display: flex; align-items: flex-end; gap: 10px; padding: 10px var(--rand) 12px; background: var(--cream); border-top: 1px solid var(--linie); }
.chat-eingabe input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 24px; border: 2px solid var(--linie); background: var(--papier); font-size: 16px; }
.chat-eingabe input::placeholder { color: #6E6C66; }
.chat-eingabe input:focus { outline: none; border-color: var(--blau); }
.chat-eingabe button { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; }
.chat-eingabe button svg { width: 22px; height: 22px; }

/* ---------- Ich (Handy) ---------- */
.ich-kopf { background: var(--navy); color: #fff; padding: 20px var(--rand) 24px; display: flex; align-items: center; gap: 16px; }
.ich-kopf .avatar { width: 64px; height: 64px; font-size: 26px; background: var(--orange); color: var(--navy); }
.ich-kopf h1 { font-size: 32px; }
.ich-kopf p { color: var(--nebel); font-size: 15px; }
.ich-liste { padding: 10px var(--rand) 44px; }
.ich-liste .punkt-zeile svg.pf { width: 20px; height: 20px; color: var(--grau); flex: none; }
.ich-liste .rund svg.mm { width: 26px; height: 26px; }

/* ---------- Blatt von unten ---------- */
.schicht { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(7, 10, 24, .62); animation: einblenden .2s ease; }
.blatt { width: 100%; max-width: 480px; max-height: 88dvh; overflow-y: auto; padding: 22px var(--rand) calc(22px + env(safe-area-inset-bottom)); background: var(--papier); border-radius: 24px 24px 0 0; animation: hoch .28s cubic-bezier(.2, .8, .3, 1); }
.blatt h2 { font-family: var(--titel); font-weight: 400; font-size: 30px; line-height: 1.1; }
.blatt > p { margin-top: 8px; color: var(--grau); }
.blatt-bild { display: grid; place-items: center; margin: 0 0 16px; height: 132px; border-radius: 16px; background: var(--cream); }
.blatt-bild .tuer { width: 62px; }
.blatt-bild .siegel { width: 96px; height: 96px; }
.blatt-bild > svg.gross { width: 92px; height: 92px; }
.blatt-bild.dunkel { background: var(--navy); }
.blatt-bild.ort { position: relative; height: 156px; overflow: hidden; }
.blatt-bild.ort img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.5) brightness(.85); }
.blatt-bild.ort .rund { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; background: var(--hell); box-shadow: inset 0 0 0 3px var(--navy), 0 4px 0 var(--navy); }
.blatt-knoepfe { display: grid; gap: 12px; margin-top: 20px; padding-bottom: 4px; }
.blatt .feld { margin-top: 12px; }
.blatt .kanal-wahl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.blatt .kanal-wahl button { min-height: 44px; padding: 0 14px; border-radius: 22px; background: var(--cream); font-size: 14.5px; font-weight: 600; color: var(--navy); }
.blatt .kanal-wahl button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.blatt .fort { margin-top: 14px; }
.blatt .fort .balken { margin-top: 6px; }
.ton { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 18px 0 6px; }
.ton button { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.ton button svg { width: 24px; height: 24px; }
.ton .balken { flex: 1; background: #CFC8B3; }
.ton .zeit { color: var(--grau); }
@keyframes einblenden { from { opacity: 0; } }
@keyframes hoch { from { transform: translateY(40px); opacity: 0; } }

/* ---------- Momente (Vollbild) ---------- */
.moment { position: fixed; inset: 0; z-index: 50; background: var(--navy); color: #fff; display: grid; place-items: center; padding: 24px var(--rand); text-align: center; animation: einblenden .25s ease; overflow-y: auto; }
.moment-teil { position: relative; width: 100%; max-width: 440px; }
.moment.sofort { animation: none; }
.murmel-reihe { display: flex; justify-content: center; gap: 10px; height: 54px; }
.murmel-reihe svg { width: 46px; height: 46px; animation: fallen .7s cubic-bezier(.25, .75, .35, 1) both; }
.murmel-reihe svg:nth-child(2) { animation-delay: .09s; } .murmel-reihe svg:nth-child(3) { animation-delay: .18s; }
.murmel-reihe svg:nth-child(4) { animation-delay: .27s; } .murmel-reihe svg:nth-child(5) { animation-delay: .36s; }
@keyframes fallen { from { transform: translateY(-46vh) rotate(-140deg); opacity: 0; } 30% { opacity: 1; } }
.mm-zahl { margin-top: 24px; font-family: var(--titel); font-size: 76px; line-height: 1; animation: rein .4s .75s ease both; }
.mm-zahl small { font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 700; color: var(--orange); margin-left: 8px; }
.mm-satz { margin-top: 10px; font-size: 18px; font-weight: 600; color: var(--hell); animation: rein .4s .95s ease both; }
.mm-posten { margin: 16px auto 0; max-width: 300px; animation: rein .4s 1.05s ease both; }
.mm-posten li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; color: var(--nebel); }
.mm-posten li span:last-child { color: #fff; font-weight: 600; }
.mm-weiter { margin-top: 30px; animation: rein .4s 1.25s ease both; }
.mm-ueber { font-size: 15px; font-weight: 600; color: var(--orange); animation: rein .4s .2s ease both; }
.mm-gross { margin: 0 auto; width: 150px; animation: gross .6s cubic-bezier(.2, .8, .3, 1) both; }
.mm-gross svg { display: block; width: 100%; height: auto; }
@keyframes gross { from { transform: scale(.4) rotate(-25deg); opacity: 0; } }
.moment h2 { margin-top: 8px; color: #fff; font-family: var(--titel); font-weight: 400; font-size: 38px; line-height: 1.08; animation: rein .4s .35s ease both; }
.mm-text { margin-top: 10px; color: var(--nebel); animation: rein .4s .5s ease both; }
/* Tür-Moment: der Ort als Kulisse, davor ein zweiflügeliges Tor, durch dessen Spalt schon Licht fällt. */
.tm-hinter { position: absolute; inset: 0; opacity: .2; pointer-events: none; overflow: hidden; }
.tm-hinter img { width: 100%; height: 100%; object-fit: cover; filter: blur(4px) saturate(.8); transform: scale(1.08); }
.tor-buehne { --tb: clamp(148px, 42vw, 196px); position: relative; width: var(--tb); margin: 22px auto 30px; transition: transform 1s cubic-bezier(.4, 0, .6, 1); }
.strahlen { position: absolute; left: 50%; top: 46%; width: 320%; height: auto; aspect-ratio: 1; margin: -160% 0 0 -160%; pointer-events: none; animation: drehen 90s linear infinite; }
.strahlen path { fill: var(--licht); opacity: .09; }
@keyframes drehen { to { transform: rotate(360deg); } }
.funke { position: absolute; width: 18px; height: 18px; animation: funkeln 2.6s ease-in-out infinite; }
.funke svg { display: block; width: 100%; height: 100%; }
.funke.f1 { left: -24%; top: 10%; }
.funke.f2 { right: -28%; top: 34%; width: 13px; height: 13px; animation-delay: -.9s; }
.funke.f3 { right: -10%; top: -7%; width: 22px; height: 22px; animation-delay: -1.6s; }
.funke.f4 { left: -32%; top: 62%; width: 12px; height: 12px; animation-delay: -2.1s; }
@keyframes funkeln { 0%, 100% { transform: scale(.5); opacity: .25; } 50% { transform: scale(1); opacity: 1; } }
.tor { position: relative; padding: 12px 12px 0; background: #E8DCBE; border-radius: calc(var(--tb) / 2) calc(var(--tb) / 2) 0 0; box-shadow: 0 0 0 4px var(--navy-3); }
.tor-innen { position: relative; height: calc(var(--tb) * 1.36); overflow: hidden; perspective: 620px; background: var(--licht); border-radius: calc(var(--tb) / 2 - 9px) calc(var(--tb) / 2 - 9px) 0 0; }
.tor-innen::before { content: ""; position: absolute; inset: 0; background: #FFF3D6; opacity: 0; transition: opacity .5s ease .15s; }
.tor-blatt { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; background: var(--orange); box-shadow: inset 0 0 0 3px var(--navy); transition: transform .85s cubic-bezier(.45, .05, .2, 1); }
.tor-blatt.l { left: 0; transform-origin: left center; transform: rotateY(17deg); border-radius: calc(var(--tb) / 2 - 9px) 0 0 0; }
.tor-blatt.r { right: 0; transform-origin: right center; transform: rotateY(-17deg); border-radius: 0 calc(var(--tb) / 2 - 9px) 0 0; }
.tor-stufe { display: block; height: 12px; margin: 0 -13%; border-radius: 6px; background: var(--hell); box-shadow: 0 0 0 4px var(--navy-3), 0 9px 0 var(--navy-3); }
.tor-flut { position: fixed; inset: 0; background: #FFF3D6; opacity: 0; pointer-events: none; transition: opacity .45s ease .55s; }
.moment.auf .tor-blatt.l { transform: rotateY(84deg); } .moment.auf .tor-blatt.r { transform: rotateY(-84deg); }
.moment.auf .tor-innen::before, .moment.auf .tor-flut { opacity: 1; }
.moment.auf .tor-buehne { transform: scale(1.45); }
.moment.auf .moment-teil > :not(.tor-buehne) { animation: none; opacity: 0; transition: opacity .25s ease; }
.flut-aus { position: fixed; inset: 0; z-index: 55; background: #FFF3D6; pointer-events: none; animation: ausblenden .5s ease forwards; }
@keyframes ausblenden { to { opacity: 0; } }
.moment .blatt-knoepfe { margin-top: 28px; animation: rein .4s .8s ease both; }
@keyframes rein { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Einstieg: die Insel groß, davor die Tafel mit Wellenkante ---------- */
.moment.willkommen { display: block; padding: 0; text-align: left; overflow: hidden; background: #2A7FC4; }
.wk-bild { position: absolute; left: 0; right: 0; top: 0; height: 58%; overflow: hidden; }
.wk-bild img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 12% 50%; animation: schwenk 44s ease-in-out infinite alternate; }
@keyframes schwenk { to { object-position: 88% 50%; } }
.wk-tafel { position: absolute; left: 0; right: 0; bottom: 0; min-height: 47%; display: grid; align-content: center; padding: 6px var(--rand) calc(22px + env(safe-area-inset-bottom)); background: var(--navy); color: #fff; }
.wk-welle { bottom: 100%; margin-bottom: -1px; height: 26px; }
.wk-innen { width: 100%; max-width: 420px; margin: 0 auto; }
.wk-innen .marke { font-size: 26px; }
.willkommen h2 { margin-top: 12px; color: #fff; font-family: var(--titel); font-weight: 400; font-size: 44px; line-height: 1.04; animation: none; }
.wk-text { margin-top: 10px; color: var(--nebel); font-size: 15.5px; line-height: 1.5; }
.wk-innen label { display: block; margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--nebel); }
.wk-innen input { display: block; width: 100%; margin-top: 6px; height: 54px; padding: 0 18px; border-radius: 14px; border: 2px solid var(--navy-l); background: var(--navy-2); color: #fff; font-size: 18px; font-weight: 600; }
.wk-innen input:focus { outline: none; border-color: var(--orange); }
.wk-innen .knopf { margin-top: 16px; }

/* ---------- Hinweis oben ---------- */
.toast { position: fixed; left: 0; right: 0; top: 98px; z-index: 60; width: fit-content; margin: 0 auto; transform: translateY(-12px); max-width: min(92vw, 440px); padding: 12px 18px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 500; line-height: 1.4; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; box-shadow: 0 0 0 1.5px var(--navy-l), 0 10px 26px rgba(7, 10, 24, .35); }
.toast.da { opacity: 1; transform: none; }
.toast svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 5px; }

/* ================= Fassung 3 (Juliens Videos 05.12.2026) ================= */
/* Erster Tag: nur Start. */
body[data-erst="ja"] .nav button:not([data-geh="start"]), body[data-erst="ja"] .nav-trenner, body[data-erst="ja"] .kopf-stufe, body[data-erst="ja"] #murmeln { display: none; }
body[data-erst="ja"] .nav { grid-template-columns: 1fr; }
.band.erst { padding-bottom: 86px; }
.erst-neben { margin-top: 26px; padding: 18px 20px; border-radius: 18px; border: 2px dashed #A9A38F; }
.erst-neben ul { display: grid; gap: 10px; margin-top: 10px; }
.erst-neben li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--grau); }
.erst-neben .rund { width: 38px; height: 38px; } .erst-neben .rund svg { width: 19px; height: 19px; }
.insel-liste { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.insel-liste li { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; padding: 12px 6px; border-radius: 16px; background: var(--navy-2); font-size: 13.5px; font-weight: 600; color: var(--hell); animation: rein .4s calc(.7s + var(--i) * .12s) ease both; }
.insel-liste svg { width: 26px; height: 26px; color: var(--orange); }
.tm-hinter.hell { opacity: .28; }
.tm-hinter.hell img { width: 100%; height: 100%; object-fit: cover; }

/* Schlicht: ruhiges Band statt Insel, Modul-Liste, Etappe ohne Bild. */
.kurs-band { margin: 34px var(--rand) 0; padding: 20px; border-radius: 20px; background: var(--papier); display: grid; gap: 16px; }
.kurs-band h2 { margin-top: 2px; }
.kurs-band .balken { margin-top: 10px; max-width: 420px; }
.formular.breit { max-width: 860px; }
.modul-liste { display: grid; gap: 10px; margin-top: 20px; }
.modul { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 16px; background: var(--papier); text-align: left; }
.modul > .pf { width: 18px; height: 18px; color: var(--grau); flex: none; }
.modul-nr { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--navy); font-weight: 700; }
.modul-nr svg { width: 20px; height: 20px; }
.modul.da .modul-nr { background: var(--navy); color: #fff; }
.modul.jetzt { box-shadow: inset 0 0 0 2.5px var(--navy); }
.modul.jetzt .modul-nr { background: var(--orange); }
.modul .pz-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.modul strong { color: var(--navy); font-weight: 700; line-height: 1.3; }
.modul-fort { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.modul-fort .balken { flex: 1; max-width: 220px; }
.et-schild.schlicht { margin: 0; border-radius: 0; box-shadow: none; padding: 22px var(--rand) 24px; }
.weg.schlicht .station { min-height: 76px; padding-left: 0; }
.weg.schlicht .knoten { width: 52px; }
.nr-kreis { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--papier); color: var(--navy); font-weight: 700; box-shadow: inset 0 0 0 2px var(--navy); }
.nr-kreis svg { width: 20px; height: 20px; }
.weg.schlicht .station.offen .nr-kreis { background: var(--navy); color: #fff; }
.weg.schlicht .station.dran .nr-kreis { background: var(--orange); }
.weg.schlicht .station.zu .nr-kreis { box-shadow: inset 0 0 0 2px #A9A38F; color: var(--grau); }
.weg.schlicht li + li { border-top: 1px solid var(--linie); }
.st-stand > svg[viewBox="0 0 48 48"] { width: 18px; height: 18px; }

/* Fernrohr */
.et-schild + .vorschau-band { margin-top: 20px; }
.vorschau-band { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 14px var(--rand); background: var(--navy); color: var(--hell); }
.vorschau-band p { flex: 1 1 240px; font-size: 15px; line-height: 1.45; }
.vorschau-band strong { color: var(--licht); }
.vorschau-band.schlicht { background: var(--cream-2); color: var(--navy); }
.vorschau-band.schlicht strong { color: var(--navy); }
.fernrohr-zeichen { flex: none; width: 40px; height: 40px; color: var(--orange); }
.fernrohr-zeichen svg { width: 100%; height: 100%; }
.linse { position: relative; width: min(64vw, 250px); aspect-ratio: 1; margin: 20px auto 6px; animation: gross .6s cubic-bezier(.2, .8, .3, 1) both; }
.linse-bild { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--navy-2); }
.linse-bild img, .linse-bild .bildx { width: 100%; height: 100%; object-fit: cover; animation: spaehen 9s ease-in-out infinite alternate; }
.linse-bild .bildx { display: grid; padding: 0 16%; }
@keyframes spaehen { from { transform: scale(1.25) translate(-6%, 2%); } to { transform: scale(1.25) translate(6%, -2%); } }
.linse-rand { position: absolute; inset: -10px; border-radius: 50%; border: 10px solid var(--navy-3); box-shadow: inset 0 0 0 4px var(--orange), 0 0 0 4px var(--orange); pointer-events: none; }

/* Tor im Tür-Moment */
.tor-blatt svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tor { box-shadow: 0 0 0 4px var(--navy-3), inset 0 0 0 3px #C7B78F; }
.tor-schluss { position: absolute; left: 50%; top: -6px; width: 30px; height: 26px; margin-left: -15px; background: #E8DCBE; border: 3px solid var(--navy-3); clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); }
.laterne { position: absolute; top: 22%; width: 30px; z-index: 1; }
.laterne.l { left: -44px; } .laterne.r { right: -44px; }
.laterne svg { display: block; width: 100%; height: auto; }
.laterne .flamme { animation: flackern 1.8s ease-in-out infinite alternate; }
@keyframes flackern { 0% { opacity: .75; } 40% { opacity: 1; } 70% { opacity: .85; } 100% { opacity: 1; } }

/* Lektion: erst ab der Hälfte abschließen, springen, Vollbild */
.knopf-wartet { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border-radius: 16px; border: 2px dashed #A9A38F; color: var(--grau); font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.knopf-wartet svg { flex: none; width: 22px; height: 22px; }
.knopf-wartet.l-knopf { display: none; }
.neu-da { animation: gross .45s cubic-bezier(.2, .8, .3, 1) both; }
.spulbar { position: relative; height: 22px; background: transparent !important; cursor: pointer; display: flex; align-items: center; overflow: visible; }
.spulbar::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 3px; background: var(--navy-l); }
.spulbar i { position: relative; height: 6px; }
.halb-marke { position: absolute; left: 50%; top: 4px; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px; background: var(--hell); opacity: .6; }
.player.vollbild { position: fixed; inset: 0; z-index: 60; margin: 0; border-radius: 0; aspect-ratio: auto; }
.player:fullscreen { border-radius: 0; }
.player-leiste .zeit { flex: none; }

/* Murmeln: Gefäße */
.kb-von { font-family: "Poppins", sans-serif; font-size: 18px; font-weight: 600; color: var(--nebel); }
.app-bild.gf { width: 54px; height: 54px; border-radius: 15px; background: var(--cream); padding: 4px; }
.app-bild.gf svg { width: 100%; height: 100%; }
.gefaesse { margin-top: 10px; }
.gefaess-zeile { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--linie); }
.gefaess-zeile:first-child { border-top: 0; }
.gefaess-zeile .pz-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gefaess-zeile strong { color: var(--navy); font-weight: 700; }
.gf-bild { flex: none; width: 40px; }
.gf-bild svg { display: block; width: 100%; height: auto; }
.gefaess-zeile .klein svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.tz-link { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.tz-link > .pf { flex: none; width: 20px; height: 20px; color: var(--grau); }
.mm-glas { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 14px; border-radius: 99px; background: var(--navy-2); color: var(--licht); font-size: 14.5px; font-weight: 600; animation: rein .4s 1.15s ease both; }
.mm-glas svg { width: 18px; height: 18px; }
.mm-gefaess { width: 130px; margin: 14px auto 0; animation: gross .6s cubic-bezier(.2, .8, .3, 1) both; }
.mm-gefaess svg { display: block; width: 100%; height: auto; }
.mm-gross.enthuellen { animation: enthuellen .9s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes enthuellen { 0% { transform: scale(.2) rotate(-200deg); opacity: 0; } 70% { transform: scale(1.12) rotate(10deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.mm-gross.ohr { width: 110px; color: var(--orange); }
.mm-karte { width: min(84vw, 380px); margin: 14px auto 0; border-radius: 18px; overflow: hidden; border: 4px solid var(--hell); animation: gross .6s cubic-bezier(.2, .8, .3, 1) both; }
.mm-karte .welt { width: 100%; height: auto; }

/* Karte: Zoom und Ziehen */
.karte-wrap { position: relative; }
.zoom-knoepfe { position: absolute; right: 12px; top: 12px; z-index: 4; display: flex; gap: 6px; }
.zoom-knoepfe button { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--hell); color: var(--navy); border: 3px solid var(--navy); box-shadow: 0 3px 0 var(--navy); }
.zoom-knoepfe button svg { width: 20px; height: 20px; }
.zoom-knoepfe button[disabled] { opacity: .45; cursor: default; }
.welt-rahmen { cursor: grab; }
.welt-rahmen.gezoomt { overflow: auto; }
.welt-rahmen.zieht { cursor: grabbing; user-select: none; }
.welt-rahmen.zieht .pin { pointer-events: none; }

/* Kopfbilder für Community und Werkzeuge */
.bild-kopf { position: relative; overflow: hidden; }
.kopf-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.bild-kopf > :not(.kopf-bild) { position: relative; }
.kanal-zeile { display: flex; align-items: flex-end; gap: 12px; }
.kanal-zeile .kanaele { flex: 1; min-width: 0; }
.neu-beitrag { flex: none; margin-bottom: 6px; }
.neu-beitrag svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .kanal-zeile { flex-direction: column-reverse; align-items: stretch; } .neu-beitrag { align-self: flex-start; margin: 14px 0 0; } }
.bt-wer { flex: none; border-radius: 50%; }
.bt-name { font-weight: 600; line-height: 1.25; color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; min-height: 24px; }
.bt-name:hover { text-decoration-color: currentColor; }
.bt-kopf .bt-etappe { font-size: 14.5px; font-weight: 500; color: inherit; }
.bt-kopf > div > span:last-child { display: block; }
button.avatar { cursor: pointer; }
.profil-kopf { display: flex; align-items: center; gap: 14px; }
.avatar.gross { width: 64px; height: 64px; font-size: 26px; background: var(--orange); }
.profil-stand { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.profil-stand > div { padding: 12px 14px; border-radius: 14px; background: var(--cream); }
.profil-stand strong { display: block; color: var(--navy); line-height: 1.3; }
.profil-abz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; text-align: center; }
.profil-abz .siegel { width: 60px; height: 60px; margin: 0 auto; display: block; }
.profil-abz small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.3; color: var(--navy); font-weight: 600; }
.profil-hinweis { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; }
.profil-hinweis svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.live-karte p strong { color: #fff; }
.blatt-gruppe + .blatt-gruppe { margin-top: 26px; }
.blatt-gruppe h3 { margin-top: 12px; font-size: 16px; font-weight: 700; color: var(--navy); }
.app-bild.logo { overflow: hidden; background: var(--papier); box-shadow: 0 0 0 1px var(--linie); }
.app-bild.logo img { width: 100%; height: 100%; object-fit: cover; }
.blatt-bild.app-gross .app-bild { width: 92px; height: 92px; border-radius: 24px; }
.knopf .app-bild { width: 28px; height: 28px; border-radius: 8px; }

/* Ziel: Regler-Skala, Design und Format, drei Designs */
.regler-skala { display: flex; justify-content: space-between; margin-top: -4px; font-size: 13px; color: var(--nebel); }
.feld-titel-hell { margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--hell); }
.design-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.design-wahl button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 12px; background: var(--navy); color: var(--nebel); font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 2px var(--navy-l); }
.design-wahl.format button { padding-left: 14px; }
.design-wahl button svg { width: 15px; height: 15px; }
.design-wahl button[aria-pressed="true"] { color: #fff; box-shadow: inset 0 0 0 2.5px var(--orange); }
.dz-muster { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--hell); }
.dz-muster.insel { background: #2A7FC4; } .dz-muster.klar { background: var(--hell); } .dz-muster.nacht { background: var(--navy-3); }
.a4-wer { display: flex; flex-direction: column; align-items: flex-end; }
.a4-klasse { font-size: 2.4cqw; color: var(--grau); }
.a4.d-klar .a4-bild { height: 30cqw; background: var(--hell); border-bottom: 1.2cqw solid var(--navy); }
.a4.d-klar .a4-bild .welle { display: none; }
.a4.d-klar .a4-titel { top: 10cqw; font-size: 6cqw; }
.a4.d-klar .a4-stempel { top: 21cqw; }
.a4.d-nacht { background: var(--navy); color: #fff; }
.a4.d-nacht .a4-bild img { filter: brightness(.62) saturate(.7); }
.a4.d-nacht .a4-label { color: var(--licht); }
.a4.d-nacht .a4-zwei, .a4.d-nacht .a4-unter div { border-color: var(--hell); }
.a4.d-nacht .a4-unter div, .a4.d-nacht .a4-datum, .a4.d-nacht .a4-klasse { color: var(--nebel); }
.a4.d-nacht .a4-titel { background: var(--orange); color: var(--navy); }
.a4.d-nacht .marke-d { color: #fff; }
.a4.d-nacht { box-shadow: 0 0 0 3px var(--navy-l), 0 10px 0 var(--navy-3); }
.a4.a3 { box-shadow: 0 0 0 4px var(--orange), 0 10px 0 var(--navy-3); }

/* Einstellungen und Anmeldung */
.stil-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.stil-karte { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 14px; border-radius: 18px; background: var(--papier); text-align: left; box-shadow: inset 0 0 0 2px var(--linie); }
.stil-karte strong { margin-top: 6px; font-size: 17px; color: var(--navy); }
.stil-karte .klein { line-height: 1.35; font-size: 13px; }
.stil-karte[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--orange); }
.stil-bild { position: relative; display: block; height: 86px; border-radius: 12px; overflow: hidden; }
.stil-bild.abenteuer { background: #2A7FC4; }
.stil-bild.abenteuer img { width: 100%; height: 100%; object-fit: cover; }
.stil-bild.abenteuer b { position: absolute; left: 50%; bottom: 4px; width: 34px; margin-left: -17px; }
.stil-bild.abenteuer b svg { display: block; width: 100%; height: auto; }
.stil-bild.schlicht { display: grid; align-content: center; gap: 6px; padding: 10px 12px; background: var(--cream); }
.stil-bild.schlicht i { display: block; height: 11px; border-radius: 4px; background: var(--papier); box-shadow: inset 0 0 0 2px var(--linie); }
.stil-bild.schlicht i:first-child { width: 60%; background: var(--navy); box-shadow: none; }
.stil-wahl.hell .stil-karte { background: var(--navy-2); box-shadow: inset 0 0 0 2px var(--navy-l); }
.stil-wahl.hell .stil-karte strong { color: #fff; }
.stil-wahl.hell .stil-karte .klein { color: var(--nebel); }
.stil-wahl.hell .stil-karte[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--orange); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips button { min-width: 52px; min-height: 46px; padding: 0 14px; border-radius: 12px; background: var(--papier); color: var(--navy); font-weight: 700; box-shadow: inset 0 0 0 2px var(--linie); }
.chips button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.chips.hell button { background: var(--navy-2); color: var(--hell); box-shadow: inset 0 0 0 2px var(--navy-l); }
.chips.hell button[aria-pressed="true"] { background: var(--orange); color: var(--navy); box-shadow: none; }
.chips .weiss-nicht { font-weight: 500; }
.wk-kopf { display: flex; justify-content: space-between; align-items: baseline; }
.wk-schritt { font-size: 13.5px; font-weight: 600; color: var(--nebel); }
.wk-label { margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--nebel); }
.hell-link { display: block; margin: 10px auto 0; min-height: 44px; color: var(--nebel); }
.willkommen h2 { font-size: 38px; }
.wk-tafel { max-height: 100%; overflow-y: auto; }

@media (max-width: 340px) { .nav button { font-size: 10.5px; letter-spacing: -.01em; } .band h1 { font-size: 34px; } .kb-zahl { font-size: 60px; } .rb-p { width: 18px; height: 18px; font-size: 10px; } .entwurf { font-size: 11.5px; } .entwurf span { display: none; } .entwurf button { padding: 12px 6px; } .weg { --schritt: 22px; } .knoten { width: 76px; } .willkommen h2 { font-size: 38px; } }

/* ---------- Rechner ---------- */
@media (min-width: 900px) {
  :root { --rand: 40px; }
  .app { grid-template-columns: 244px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .kopf { grid-column: 2; padding-left: var(--rand); padding-right: 28px; background: var(--navy); }
  .kopf .marke { visibility: hidden; }
  .kopf-stufe { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 22px; font-size: 14.5px; font-weight: 500; color: var(--nebel); }
  .kopf-stufe b { color: #fff; font-weight: 600; }
  .kopf-stufe:hover { background: var(--navy-2); }
  #ansicht { grid-column: 2; }
  .nav, body[data-ansicht="lektion"] .nav { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 18px 14px; background: var(--navy); border-top: 0; border-right: 1px solid var(--navy-2); overflow-y: auto; }
  .nav-kopf { display: block; padding: 6px 12px 24px; color: #fff; }
  .nav-kopf .marke { font-size: 30px; }
  .nav-kopf p { font-size: 14px; color: var(--nebel); margin-top: 2px; }
  .nav .nur-rechner { display: flex; }
  .nav .nur-handy { display: none; }
  .nav-trenner { display: block; height: 1px; margin: 12px 12px; background: var(--navy-2); }
  .nav button { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 48px; padding: 0 12px; border-radius: 12px; color: var(--nebel); font-size: 15.5px; font-weight: 500; }
  .nav button:hover { background: var(--navy-2); }
  .nav button[aria-current="page"] { background: var(--navy-2); color: #fff; font-weight: 600; }
  .nav button[aria-current="page"]::before { top: 11px; bottom: 11px; left: -14px; right: auto; width: 4px; height: auto; border-radius: 0 4px 4px 0; }
  .nav button svg { width: 23px; height: 23px; }
  .cta-leiste, body[data-ansicht="lektion"] .cta-leiste { display: none; }
  .knopf.l-knopf { display: flex; margin-top: 18px; }
  .toast { top: 104px; left: 244px; }

  .band { grid-template-columns: minmax(0, 1fr) 380px; align-items: center; padding: 28px var(--rand) 100px; }
  .band h1 { font-size: 56px; }
  .band p { font-size: 18px; }
  .start { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 48px; align-items: start; max-width: 1180px; }
  .weiter { margin-top: -74px; }
  .weiter-text { padding: 24px 28px 28px; }
  .weiter-text h2 { font-size: 38px; }
  .start-neben { margin-top: 28px; gap: 28px; }
  .sk-titel { font-size: 36px; }
  .route-band { margin-top: 48px; padding: 34px var(--rand) 40px; grid-template-columns: minmax(0, 440px) minmax(0, 560px); gap: 52px; align-items: center; }
  .hier-ort { font-size: 44px; }
  .rb-linie { margin-top: 20px; }
  .rb-p { width: 28px; height: 28px; font-size: 13px; }
  .rb-p.jetzt, .rb-p.jetzt svg { width: 38px; height: 38px; }
  .start-unten { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; max-width: 1180px; padding-top: 40px; }
  .gleich { max-width: 760px; padding-top: 34px; padding-bottom: 64px; }

  .karte-kopf { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding-top: 30px; max-width: 1320px; }
  .karte-kopf h1 { font-size: 48px; }
  .karte-wrap { max-width: 1240px; margin: 20px var(--rand) 0; }
  .zoom-knoepfe { right: 18px; top: 18px; }
  .welt-rahmen { margin: 0; overflow: hidden; max-height: 76dvh; border: 5px solid var(--hell); border-radius: 28px; box-shadow: 0 8px 0 var(--navy-3); }
  .welt { width: calc(100% * var(--zoom, 1)); height: auto; }
  .welt-rahmen.gezoomt { overflow: auto; }
  .pin-kopf { width: 42px; height: 42px; font-size: 17px; }
  .pin-kopf svg { width: 20px; height: 20px; }
  .pin.jetzt .pin-kopf { width: 54px; height: 54px; font-size: 22px; }
  .pin.jetzt::before { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
  .pin-name { font-size: 13.5px; padding: 2px 11px; top: calc(100% + 6px); }
  .pin.oben .pin-name { bottom: calc(100% + 6px); }
  .pin.jetzt .pin-name { font-size: 14.5px; top: calc(100% + 12px); }
  .pin-hier { width: 36px; height: 36px; margin-left: -18px; bottom: calc(100% + 8px); }
  .karte-fuss { padding-top: 22px; padding-bottom: 44px; }
  .nur-schmal { display: none !important; }

  .et-kopf { height: 300px; }
  .et-schild { max-width: 580px; margin: -118px 0 0 var(--rand); padding: 26px 30px 28px; }
  .et-schild h1 { font-size: 48px; }
  .et-seite { grid-template-columns: minmax(0, 560px) minmax(0, 360px); gap: 72px; padding-top: 40px; align-items: start; }
  .et-neben { position: sticky; top: 24px; }
  .weg { --schritt: 52px; }
  .station { min-height: 128px; }
  .knoten .tuer { width: 66px; }
  .station.dran .knoten .tuer { width: 90px; }

  .lektion { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 40px; align-items: start; max-width: 1180px; padding-top: 28px; padding-bottom: 56px; }
  .player { margin: 0; border-radius: 20px; }
  .l-kopf h1 { font-size: 46px; }
  .aufgabe { margin-top: 0; padding: 26px; }

  .kasse-band { grid-template-columns: 150px minmax(0, 520px); gap: 36px; padding-top: 30px; padding-bottom: 34px; }
  .kb-zahl { font-size: 104px; }
  .kasse-seite { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 72px; max-width: 1180px; align-items: start; padding-top: 36px; }
  .kasse-seite aside { display: grid; gap: 38px; }

  .stufen-band { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 360px); column-gap: 72px; grid-template-areas: "kopf feld" "reihe feld"; align-items: start; padding-top: 32px; padding-bottom: 30px; }
  .stufen-band h1 { font-size: 48px; }
  .sb-kopf { grid-area: kopf; } .st-reihe { grid-area: reihe; } .st-feld { grid-area: feld; align-self: center; margin-top: 0; padding: 22px 24px 24px; }
  .sm { width: 46px; height: 46px; }
  .sammlung { max-width: 1040px; padding-top: 34px; }
  .abz-raster { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .abz .siegel { width: 78px; height: 78px; }

  .gem-kopf { padding-top: 30px; }
  .gem-kopf h1 { font-size: 48px; }
  .gem-seite { grid-template-columns: minmax(0, 620px) minmax(260px, 340px); gap: 64px; align-items: start; padding-top: 28px; }
  .gem-neben { position: sticky; top: 24px; }

  .werk-kopf { padding-top: 30px; padding-bottom: 30px; }
  .werk-kopf h1 { font-size: 48px; }
  .werk-seite { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px 72px; max-width: 1180px; align-items: start; padding-top: 34px; }
  .werk-seite .apps { grid-row: 1 / 3; }

  .wand { padding-top: 36px; padding-bottom: 64px; grid-template-columns: minmax(0, 360px) minmax(0, 560px); gap: 64px; align-items: start; }
  .wand h1 { font-size: 46px; }
  .wand-kopf { grid-column: 1; grid-row: 1; }
  .wand-text { grid-column: 1; grid-row: 2; order: 0; }
  .a4-platz { grid-column: 2; grid-row: 1 / 3; }
  .wand { grid-template-rows: auto 1fr; row-gap: 24px; }
  .a4 { margin: 0; }

  .tor-buehne { --tb: 220px; }
  .wk-bild { left: 420px; height: 100%; }
  .wk-tafel { right: auto; top: 0; width: 440px; min-height: 0; padding: 40px 48px; }
  .wk-welle { display: none; }
  .wk-tafel .welle-s { display: block; position: absolute; left: 100%; top: 0; width: 34px; height: 100%; margin-left: -1px; }
  .willkommen h2 { font-size: 60px; }
  .wk-text { font-size: 17px; }

  .formular { padding-top: 34px; }
  .formular h1 { font-size: 46px; }
  .chat { max-width: 720px; }
  .schicht { align-items: center; }
  .blatt { border-radius: 24px; padding: 28px; }
  .ich-liste { max-width: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@page { size: A4 portrait; margin: 0; }
@media print {
  html, body { display: block; height: auto; overflow: visible; background: #fff !important; }
  .entwurf, .kopf, .nav, .cta-leiste, #ebene, .toast, .wand-kopf, .wand-text, .flut-aus { display: none !important; }
  .app { display: block; }
  #ansicht { height: auto; overflow: visible; background: #fff !important; }
  .wand { display: block; padding: 0; }
  body.druck-a3 .a4 { width: 297mm; height: 420mm; }
  .a4 { width: 210mm; max-width: none; height: 297mm; margin: 0; border-radius: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  [data-poster] { outline: none !important; }
  [data-poster]:empty::before { content: ""; }
  [data-poster]:empty { min-height: 1.5em; border-bottom: .3cqw solid #A9A38F; border-radius: 0; }
}
