/* FingerFux – gemeinsames Design */
@font-face { font-family: 'Poppins'; src: url(fonts/poppins-regular.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url(fonts/poppins-medium.woff) format('woff'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url(fonts/poppins-bold.woff) format('woff'); font-weight: 700 900; font-display: swap; }
/* Text zum Abtippen: Atkinson Hyperlegible Next – großes I, kleines l und 1 sind klar zu unterscheiden (SIL Open Font License) */
@font-face { font-family: 'Atkinson'; src: url(fonts/atkinson-semibold.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url(fonts/atkinson-bold.woff2) format('woff2'); font-weight: 700 900; font-display: swap; }

:root {
  --ink: #1E2A4A;
  --ink-2: #4B5675;
  --ink-3: #8A93AD;
  --bg: #FFF8EE;
  --bg-2: #FFEFD9;
  --karte: #FFFFFF;
  --linie: #EADFCF;
  --orange: #F97316;   /* Fux-Orange wie im Logo */
  --orange-d: #C2410C;
  --blau: #3B82F6;
  --blau-d: #1D5FD1;
  --gruen: #22C55E;
  --gruen-d: #15964A;
  --rot: #EF4444;
  --gelb: #FACC15;
  --lila: #8B5CF6;
  --r: 18px;
  --schatten: 0 2px 0 rgba(30, 42, 74, .06), 0 10px 30px rgba(30, 42, 74, .08);
  --emoji: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--blau-d); }
img, svg { max-width: 100%; }
.emoji { font-family: var(--emoji); font-style: normal; line-height: 1; }
.leise { color: var(--ink-2); }
.klein { font-size: .875rem; }
.versteckt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- Knöpfe ---------- */
.knopf {
  --k: var(--orange); --kd: var(--orange-d);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .65em 1.4em; border: 0; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 1.02rem; color: #fff; text-decoration: none; cursor: pointer;
  background: var(--k); box-shadow: 0 4px 0 var(--kd); transform: translateY(0); transition: transform .08s, box-shadow .08s, filter .15s;
  user-select: none; white-space: nowrap;
}
.knopf:hover { filter: brightness(1.05); }
.knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--kd); }
.knopf:focus-visible, .kachel:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }
.knopf.blau { --k: var(--blau); --kd: var(--blau-d); }
.knopf.gruen { --k: var(--gruen); --kd: var(--gruen-d); }
.knopf.rot { --k: var(--rot); --kd: #B91C1C; }
.knopf.hell { --k: #fff; --kd: var(--linie); color: var(--ink); border: 2px solid var(--linie); }
.knopf.gross { min-height: 60px; font-size: 1.2rem; padding: .7em 1.8em; border-radius: 18px; }
.knopf.klein { min-height: 38px; padding: .35em .9em; font-size: .92rem; border-radius: 11px; box-shadow: 0 3px 0 var(--kd); }
.knopf[disabled] { opacity: .5; cursor: not-allowed; }
.link-knopf { background: none; border: 0; padding: 0; font: inherit; color: var(--blau-d); cursor: pointer; text-decoration: underline; }

/* ---------- Formulare ---------- */
label { display: block; font-weight: 600; margin: 0 0 .3em; }
.feld { margin-bottom: 1rem; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .7em .9em; border: 2px solid var(--linie); border-radius: 12px; background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blau); outline: none; }
.check { display: flex; gap: .6em; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: .2em; flex: none; }
.hilfe { font-size: .85rem; color: var(--ink-2); margin-top: .25em; }
.meldung { padding: .8em 1em; border-radius: 12px; margin: 0 0 1rem; font-weight: 500; }
.meldung.fehler { background: #FEE2E2; color: #991B1B; }
.meldung.ok { background: #DCFCE7; color: #14532D; }
.meldung.info { background: #DBEAFE; color: #1E3A8A; }
.meldung.gelb { background: #FEF9C3; color: #713F12; }

/* ---------- Karten ---------- */
.karte { background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten); padding: 1.5rem; }
.rahmen { max-width: 1450px; margin: 0 auto; padding: 0 24px; }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 238, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.kopf .rahmen { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo b { color: var(--orange); }
.kopf nav { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.kopf nav a.nav { color: var(--ink); text-decoration: none; font-weight: 600; padding: .4em .7em; border-radius: 10px; }
.kopf nav a.nav:hover { background: var(--bg-2); }

/* ---------- Fuß ---------- */
.fuss { margin-top: 4rem; padding: 2rem 0 3rem; border-top: 1px solid var(--linie); color: var(--ink-2); font-size: .9rem; }
.fuss .rahmen { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.fuss a { color: var(--ink-2); }

/* ---------- Startseite ---------- */
.held { padding: 4.6rem 0 2rem; }
.held .rahmen { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.held h1 span { color: var(--orange); }
/* „Null Hinschauen.“ in der hellen Farbe der Fux-Wangen – absichtlich kaum zu sehen */
.held h1 .taste-text { font-style: normal; color: #E6E9ED; }   /* wie das helle Silber rund ums Tablet – absichtlich zurückhaltend */
.held .dachzeile { margin: 0 0 .5rem; font-weight: 700; font-size: 1rem; color: var(--orange-d); letter-spacing: .01em; }
.frage { background: #fff; border: 2px solid var(--linie); border-radius: 16px; padding: 0 1rem; margin-bottom: .6rem; transition: border-color .2s, box-shadow .2s; }
.frage:hover { border-color: #FDBA74; }
.frage[open] { border-color: var(--orange); box-shadow: 0 4px 14px rgba(249,115,22,.12); }
.frage summary { cursor: pointer; font-weight: 700; padding: .85rem 0; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.frage summary::-webkit-details-marker { display: none; }
.frage summary::marker { content: ""; }
.frage summary::after { content: ""; flex: 0 0 1.9rem; height: 1.9rem; border-radius: 50%; background: #FFEDD5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2410C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 1.05rem no-repeat; transition: transform .25s, background-color .2s; }
.frage[open] summary::after { transform: rotate(180deg); background-color: #FED7AA; }
.frage summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.frage p { margin: 0 0 .9rem; color: var(--ink-2); }
.zweispaltig.seo-text { align-items: start; }
.held .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.wege { display: grid; grid-auto-rows: 1fr; gap: .9rem; margin-top: 1.6rem; max-width: 460px; }
.weg { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 18px; background: #fff; box-shadow: var(--schatten); text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: transform .12s, border-color .12s; }
.weg:hover { transform: translateY(-2px); border-color: var(--orange); }
.weg .emoji { font-size: 2.1rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-2); flex: none; }
.weg b { display: block; font-size: 1.1rem; }
.weg small { color: var(--ink-2); font-size: .9rem; }
.weg.haupt { background: var(--orange); color: #fff; }
.weg.haupt small { color: #fff; font-size: .95rem; font-weight: 600; }
.weg.haupt:hover { border-color: #C2410C; }
.weg.haupt .emoji { background: rgba(255, 255, 255, .2); }
.demo { min-width: 0; position: relative; background: linear-gradient(160deg, #FFE1C2, #FFC995); border-radius: 32px; padding: 28px 22px 18px; box-shadow: var(--schatten); }
.demo-fux { position: absolute; top: -76px; right: 6px; width: 84px; z-index: 3; animation: wippen 2.4s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .15)); }
.demo-fux .fux-l-auf, .anmelde-fux .fux-l-auf { animation: fux-auf 4s infinite; }
.demo-fux .fux-l-zu, .anmelde-fux .fux-l-zu { animation: fux-zu 4s infinite; }
@keyframes fux-auf { 0%, 84%, 96%, 100% { opacity: 1; } 86%, 94% { opacity: 0; } }
@keyframes fux-zu { 0%, 84%, 96%, 100% { opacity: 0; } 86%, 94% { opacity: 1; } }
.demo-schirm { background: #fff; border-radius: 18px; box-shadow: 0 6px 0 #E8B987; padding: 10px 18px 12px; margin-bottom: 16px; }
.demo-leiste { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--ink-3); margin-bottom: 4px; }
.demo-leiste i { width: 10px; height: 10px; border-radius: 50%; background: #FCA5A5; }
.demo-leiste i:nth-child(2) { background: #FCD34D; } .demo-leiste i:nth-child(3) { background: #86EFAC; }
.demo-leiste span { margin-left: 8px; font-weight: 600; }
.demo-text { font-size: clamp(1.15rem, 2.1vw, 1.6rem); font-weight: 600; min-height: 2.9em; line-height: 1.45; letter-spacing: .01em; color: var(--ink); }
.demo-text .rest { color: #C9C2B6; }
.demo-text .cursor { display: inline-block; background: #FFE7A3; box-shadow: 0 3px 0 var(--orange); border-radius: 4px; min-width: .35em; }
.demo-hinweis { font-size: .9rem; color: var(--ink-2); height: 1.6em; line-height: 1.6em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-hinweis b { font-weight: 700; }
.demo-tastatur { position: relative; background: linear-gradient(160deg, #EEF0F3, #CDD2D8); border-radius: 18px; padding: 14px 14px 10px; box-shadow: inset 0 1px 0 #fff; display: flex; flex-direction: column; gap: 5px; }
.demo-tastatur .r { display: flex; gap: 4px; }
.demo-tastatur .k { flex: var(--b, 1) 1 0; min-width: 0; height: clamp(24px, 3.3vw, 38px); border-radius: 6px; background: #1C1D21; color: #fff; box-shadow: 0 1px 0 #000; display: grid; place-items: center; font-weight: 700; font-size: clamp(.55rem, 1vw, .82rem); position: relative; transition: background .08s, box-shadow .08s; }
.demo-tastatur .k::after { content: ''; position: absolute; top: 4px; left: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--fc); }
.demo-tastatur .k.s, .demo-tastatur .leer-k { color: #BFC3CA; }
.demo-tastatur .k.s::after, .demo-tastatur .leer-k::after { display: none; }
.demo-tastatur .heimreihe .k { height: clamp(46px, 6vw, 68px); align-items: end; padding-bottom: 5px; }
.demo-tastatur .leerreihe .k { height: clamp(34px, 4.2vw, 48px); }
.demo-tastatur .k .tier { position: absolute; left: 50%; bottom: 40%; width: 92%; max-width: 46px; transform: translateX(-50%); transition: transform .15s; z-index: 1; }
.demo-tastatur .k .tier svg { width: 100%; height: auto; display: block; }
.demo-tastatur .k.an { background: var(--fc); color: #fff; box-shadow: 0 0 14px 4px color-mix(in srgb, var(--fc) 60%, transparent); }
.demo-tastatur .k.an::after { background: #fff; }
.demo-tastatur .k .tier.hopp { transform: translateX(-50%) translateY(-10px) rotate(-6deg); }
.demo-tastatur .leer-k .tier { bottom: 6%; width: auto; height: 88%; max-width: none; }
.demo-tastatur .leer-k .tier svg { height: 100%; width: auto; }
.demo-tastatur .pad { width: 38%; height: clamp(26px, 3.4vw, 44px); margin: 8px auto 0; border-radius: 10px; background: linear-gradient(#E4E7EB, #D3D7DD); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07); }
.demo-zeile { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-weight: 700; color: var(--ink-2); font-size: .9rem; }
@keyframes wippen { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes fliegen { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(-14px, 10px) rotate(4deg); } }

.abschnitt { padding: 3rem 0; }
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.schritt { background: #fff; border-radius: var(--r); padding: 1.4rem; box-shadow: var(--schatten); }
.schritt .nr { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--orange); margin-bottom: .8rem; }
.schritt:nth-child(2) .nr { background: var(--blau); }
.schritt:nth-child(3) .nr { background: var(--gruen); }
.album-vorschau { display: flex; gap: 12px; flex-wrap: wrap; }
.album-vorschau > div { width: 110px; transform: rotate(var(--dreh, 0deg)); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.textseite > * { max-width: 760px; }   /* Text links bündig mit dem Logo, Zeilen nicht zu lang */
.textseite h2 { margin-top: 1.6em; }

/* ---------- Lern-App ---------- */
.app-kopf { position: sticky; top: 0; z-index: 30; background: rgba(255, 248, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.app-kopf .rahmen { display: flex; align-items: center; gap: .8rem; min-height: 60px; }
.app-kopf .rechts { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.pille { display: inline-flex; align-items: center; gap: .35em; padding: .3em .8em; border-radius: 999px; background: #fff; border: 2px solid var(--linie); font-weight: 700; font-size: .95rem; }
.pille .emoji { font-size: 1.1rem; }
.rund-knopf { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--linie); background: #fff; display: grid; place-items: center; font-size: 1.25rem; cursor: pointer; color: var(--ink); position: relative; text-decoration: none; }
.rund-knopf:hover { border-color: var(--orange); }
.rund-knopf .zahl { position: absolute; top: -7px; right: -7px; background: var(--rot); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 800; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; animation: hupf 1.2s ease-in-out infinite; }
@keyframes hupf { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.gast-band { background: #FEF9C3; color: #713F12; text-align: center; font-size: .88rem; padding: .35em 1em; font-weight: 500; }

.seite { padding-top: 1.5rem; padding-bottom: 3rem; }
.zurueck { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--ink-2); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: .3em 0; }
.zurueck:hover { color: var(--orange); }
.app-kopf .zurueck { background: #fff; color: var(--orange-d, #C2410C); border: 2px solid var(--orange); border-radius: 999px; padding: .45em 1.1em .45em .9em; font-size: 1.05rem; font-weight: 800; box-shadow: 0 3px 0 rgba(194, 65, 12, .25); white-space: nowrap; }
.app-kopf .zurueck:hover { background: var(--orange); color: #fff; }
.app-kopf .zurueck:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(194, 65, 12, .25); }

/* Anmeldung der Kinder */
.anmelde-box { max-width: 720px; margin: 2rem auto; text-align: center; }
.code-eingabe { font-size: 2rem; text-align: center; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; max-width: 360px; margin: 0 auto 1rem; display: block; }
.namen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin: 1.5rem 0; }
.namen button { font: inherit; font-weight: 700; font-size: 1.1rem; padding: 1rem .6rem; border-radius: 16px; border: 2px solid var(--linie); background: #fff; cursor: pointer; color: var(--ink); box-shadow: 0 3px 0 var(--linie); }
.namen button:hover { border-color: var(--orange); }
.bild-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; max-width: 460px; margin: 1.2rem auto; }
.bild-raster button { aspect-ratio: 1; font-size: clamp(2rem, 6vw, 3rem); border-radius: 18px; border: 2px solid var(--linie); background: #fff; cursor: pointer; box-shadow: 0 4px 0 var(--linie); font-family: var(--emoji); }
.bild-raster button:hover { border-color: var(--orange); transform: translateY(-2px); }
.bild-raster button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--linie); }
.bild-auswahl { display: flex; gap: .7rem; justify-content: center; margin: 1rem 0; }
.bild-auswahl span { width: 70px; height: 70px; border-radius: 16px; border: 3px dashed var(--linie); display: grid; place-items: center; font-size: 2.4rem; font-family: var(--emoji); background: #fff; }
.bild-auswahl span.voll { border-style: solid; border-color: var(--orange); }

/* Karte (Kapitelpfad) */
.begruessung { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.begruessung h1 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.weiter-karte { display: flex; gap: 1.2rem; align-items: center; background: linear-gradient(120deg, #FF8A3D, #FF6A00); color: #fff; border-radius: 22px; padding: 1.2rem 1.4rem; box-shadow: var(--schatten); margin-bottom: 2rem; flex-wrap: wrap; }
.weiter-karte .emoji { font-size: 3rem; }
.weiter-karte h2 { margin: 0; font-size: 1.35rem; }
.weiter-karte p { margin: 0; opacity: .92; }
.weiter-karte .knopf { margin-left: auto; --k: #fff; --kd: #FFD3B0; color: var(--orange-d); }
.pfad { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1rem; padding: 1rem 0; }
@media (min-width: 1150px) { .pfad { grid-template-columns: repeat(6, 1fr); } }
.pfad::before { content: ''; position: absolute; left: 6%; right: 6%; top: 50%; height: 0; }
.insel { position: relative; text-align: center; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; padding: 0; }
.insel .kreis { width: 112px; height: 112px; margin: 0 auto .6rem; border-radius: 50%; display: grid; place-items: center; font-size: 3rem; background: var(--f, var(--orange)); box-shadow: 0 7px 0 rgba(0, 0, 0, .16), inset 0 -10px 0 rgba(0, 0, 0, .08); position: relative; transition: transform .15s; font-family: var(--emoji); }
.insel:hover .kreis { transform: translateY(-4px) scale(1.03); }
.insel .nr { z-index: 2; position: absolute; top: -4px; left: -4px; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); font: 800 1rem Poppins, sans-serif; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.insel .haken { position: absolute; bottom: -2px; right: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--gruen); color: #fff; display: grid; place-items: center; font: 800 1.1rem Poppins, sans-serif; border: 3px solid #fff; }
.insel b { display: block; font-size: 1rem; line-height: 1.25; }
.insel small { color: var(--ink-2); font-size: .82rem; }
.insel .sterne-mini { color: #F59E0B; font-size: .95rem; letter-spacing: .05em; }
.insel.zu { cursor: not-allowed; }
.insel.zu .kreis { background: #D6D3D1; filter: grayscale(1); opacity: .65; }
.insel.zu b, .insel.zu small { opacity: .6; }
.insel.aktuell .kreis { animation: puls 1.8s ease-in-out infinite; }
.insel.aktuell .kreis::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 4px solid var(--f); opacity: .5; }
@keyframes puls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.extra-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }

/* Kapitelseite */
.kapitel-kopf { display: flex; gap: 1.4rem; align-items: center; padding: 1.4rem; border-radius: 24px; color: #fff; margin: .8rem 0 1.4rem; background: var(--f); box-shadow: var(--schatten); flex-wrap: wrap; }
.kapitel-kopf .emoji { font-size: 3.6rem; background: rgba(255, 255, 255, .22); width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center; flex: none; }
.kapitel-kopf h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.kapitel-kopf p { margin: .2rem 0 0; opacity: .92; }
.merk-liste { display: flex; gap: .8rem; flex-wrap: wrap; margin: 0 0 1.6rem; }
.merk { display: flex; align-items: center; gap: .7rem; background: #fff; border-radius: 16px; padding: .6rem .9rem .6rem .6rem; box-shadow: var(--schatten); border-left: 6px solid var(--fc); }
.merk .taste { width: 46px; height: 46px; border-radius: 10px; background: var(--fc); color: #fff; font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.merk .emoji { font-size: 1.8rem; }
.merk b { display: block; line-height: 1.2; }
.merk small { color: var(--ink-2); font-size: .82rem; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 1rem; counter-reset: schritt; }
@media (min-width: 1200px) { .kacheln { grid-template-columns: repeat(5, 1fr); } }
.kachel::before { counter-increment: schritt; content: counter(schritt); position: absolute; top: 12px; right: 14px; font-weight: 800; color: #D6CBB9; font-size: 1.1rem; }
.kachel { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; text-align: left; padding: 1.1rem 1.1rem 1rem; border-radius: 20px; background: #fff; border: 2px solid var(--linie); box-shadow: 0 4px 0 var(--linie); cursor: pointer; font: inherit; color: var(--ink); transition: transform .12s, border-color .12s; min-height: 150px; }
.kachel:hover { transform: translateY(-3px); border-color: var(--orange); }
.kachel .emoji { font-size: 2.2rem; }
.kachel b { font-size: 1.08rem; }
.kachel small { color: var(--ink-2); line-height: 1.35; }
.kachel .stern-reihe { margin-top: auto; font-size: 1.2rem; letter-spacing: .08em; }
.kachel.fertig { border: 3px solid var(--gruen); background: #F0FDF4; box-shadow: 0 4px 0 var(--gruen-d); }
.kachel.fertig::before { content: '✓'; position: absolute; top: .7rem; right: .8rem; width: 26px; height: 26px; border-radius: 50%; background: var(--gruen); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.kachel.naechste { border-color: var(--orange); box-shadow: 0 4px 0 var(--orange); }
.kachel.naechste::after { content: 'Weiter!'; position: absolute; top: -11px; right: 12px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 800; padding: .15em .7em; border-radius: 999px; }
.stern-an { color: #F59E0B; }
.stern-aus { color: #E5E7EB; }

/* Geschichte */
.geschichte { max-width: 820px; margin: 0 auto; }
.geschichte .absatz { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.7; background: #fff; border-radius: 20px; padding: 1.2rem 1.4rem; box-shadow: var(--schatten); margin-bottom: 1rem; transition: background .2s, box-shadow .2s; }
.geschichte .absatz.liest { background: #FFF7D6; box-shadow: 0 0 0 3px var(--gelb); }
.geschichte .figurenreihe { display: flex; justify-content: center; gap: 4px; margin: 0 0 1.2rem; flex-wrap: wrap; }
.geschichte .figurenreihe svg { width: 58px; height: auto; }
.geschichte .figurenreihe .emoji { font-size: 3.2rem; }
.leiste { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0; }

/* Übung */
.ueben { display: flex; flex-direction: column; gap: .9rem; max-width: 1300px; margin: 0 auto; padding: .9rem 16px 1.5rem; }
.ueben-kopf { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ueben-kopf h1 { font-size: 1.3rem; margin: 0; }
.fortschritt { flex: 1; min-width: 160px; height: 14px; background: #fff; border-radius: 999px; border: 2px solid var(--linie); overflow: hidden; }
.fortschritt i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gruen), #86EFAC); border-radius: 999px; transition: width .2s; }
.live { display: flex; gap: .5rem; }
.textfeld { position: relative; background: #fff; border-radius: 22px; box-shadow: var(--schatten); padding: 1.1rem 1.4rem; height: 172px; overflow: hidden; font-size: clamp(1.6rem, 3.3vw, 2.25rem); font-weight: 500; letter-spacing: .02em; line-height: 1.6; }
.textfeld .innen { transition: transform .25s; }
.textfeld .wort { display: inline-block; white-space: nowrap; }
.textfeld .z, .einf-box .z, .rennen-zeile .z { display: inline-block; min-width: .32em; border-radius: 6px; padding: 0 .02em; position: relative; color: var(--ink-3); }
.textfeld .z.ok, .einf-box .z.ok, .rennen-zeile .z.ok { color: var(--ink); }
.textfeld .z.ok.hatfehler, .einf-box .z.ok.hatfehler, .rennen-zeile .z.ok.hatfehler { color: #DC2626; }
.textfeld .z.leer::before, .einf-box .z.leer::before, .rennen-zeile .z.leer::before { content: '·'; position: absolute; left: 0; right: 0; text-align: center; color: #D6D3D1; }
.textfeld .z.jetzt, .einf-box .z.jetzt, .rennen-zeile .z.jetzt { color: var(--ink); background: #FFE7A3; box-shadow: 0 4px 0 var(--orange); }
.textfeld .z.jetzt.leer::before, .einf-box .z.jetzt.leer::before, .rennen-zeile .z.jetzt.leer::before { color: var(--orange); content: '␣'; font-size: .7em; top: .25em; }
.textfeld .z.falsch, .einf-box .z.falsch, .rennen-zeile .z.falsch { animation: wackeln .25s; background: #FECACA; box-shadow: 0 4px 0 var(--rot); }
@keyframes wackeln { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.einzel { display: flex; align-items: center; justify-content: center; gap: 1.6rem; background: #fff; border-radius: 22px; box-shadow: var(--schatten); height: 172px; }
.einzel .gross-taste { width: 116px; height: 116px; border-radius: 24px; display: grid; place-items: center; font-size: 4rem; font-weight: 800; color: #fff; background: var(--fc, var(--orange)); box-shadow: 0 7px 0 rgba(0, 0, 0, .18); }
.einzel .gross-taste.falsch { animation: wackeln .25s; }
.einzel .merkbild { font-size: 4rem; }
.einzel .wer { font-size: 1.15rem; max-width: 280px; }
.einzel .wer b { display: block; font-size: 1.4rem; }
.hinweis-zeile { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 40px; font-size: 1.05rem; color: var(--ink-2); text-align: center; }
.hinweis-zeile .emoji { font-size: 1.6rem; }
.hinweis-zeile b { color: var(--ink); }
.start-schicht { position: absolute; inset: 0; background: rgba(255, 255, 255, .94); display: grid; place-items: center; text-align: center; font-size: 1.15rem; border-radius: 22px; z-index: 2; padding: 1rem; }
.start-schicht b { font-size: 1.5rem; display: block; }
.start-schicht kbd { display: inline-block; padding: .1em .9em; border-radius: 8px; background: var(--ink); color: #fff; font: 700 1rem Poppins, sans-serif; box-shadow: 0 3px 0 #000; }

/* Tastatur */
.tastatur-bereich { display: grid; grid-template-columns: 1fr; gap: .4rem; justify-items: center; }
.tastatur { display: flex; flex-direction: column; gap: 5px; padding: 12px; background: #2B3550; border-radius: 20px; box-shadow: 0 8px 0 #1A2238; width: min(100%, 1000px); user-select: none; }
.tastatur .reihe { display: flex; gap: 5px; }
.tastatur .t { flex: var(--b, 1) 1 0; min-width: 0; height: clamp(34px, 5.2vw, 50px); border-radius: 9px; background: color-mix(in srgb, var(--fc) 30%, #fff); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: clamp(.8rem, 1.6vw, 1.1rem); box-shadow: 0 3px 0 color-mix(in srgb, var(--fc) 60%, #000); position: relative; transition: transform .06s, background .1s; }
.tastatur .t.sonder { background: #CBD5E1; box-shadow: 0 3px 0 #64748B; font-size: .8rem; color: #334155; }
.tastatur .t.leer-t { background: #CBD5E1; box-shadow: 0 3px 0 #64748B; }
.tastatur .t.gedimmt { background: #3E4866; color: #8E98B5; box-shadow: 0 3px 0 #1A2238; }
.tastatur .t.huegel::after { content: ''; position: absolute; bottom: 6px; width: 12px; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, .35); }
.tastatur .t.ziel { background: var(--fc); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 0 color-mix(in srgb, var(--fc) 60%, #000), 0 0 0 4px #fff, 0 0 18px 6px color-mix(in srgb, var(--fc) 70%, transparent); z-index: 1; animation: zielpuls 1s ease-in-out infinite; }
.tastatur .t.gedrueckt { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.tastatur .t.fehler { background: var(--rot) !important; color: #fff; }
.tastatur.blind .t:not(.sonder):not(.leer-t) span { visibility: hidden; }
.tastatur.blind .t.ziel span { visibility: hidden; }
.tastatur.blind .t.zeig:not(.sonder):not(.leer-t) span { visibility: visible; }
.tastatur.blass .t:not(.sonder):not(.leer-t):not(.ziel) span { opacity: .22; }
.tastatur { position: relative; }
.tastatur .fingerpfad { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; overflow: visible; }
.tastatur .t.pfad-heim { outline: 3px dashed #fff; outline-offset: 2px; }
@keyframes zielpuls { 50% { transform: translateY(-3px) scale(1.04); } }
.haende { width: min(100%, 520px); height: auto; }
.haende .fing { transition: fill .1s, transform .15s; transform-box: fill-box; transform-origin: bottom center; }
.haende .fing.an { transform: translateY(-6px); filter: drop-shadow(0 0 6px rgba(0, 0, 0, .25)); }
.haende text { font: 700 11px Poppins, sans-serif; fill: var(--ink-2); }

/* Ballon-Spiel */
.himmel { position: relative; height: min(44vh, 400px); border-radius: 24px; overflow: hidden; background: linear-gradient(#7DD3FC, #E0F2FE 70%, #FEF3C7); box-shadow: var(--schatten); }
.himmel .wolke { position: absolute; font-size: 3.5rem; opacity: .85; font-family: var(--emoji); animation: wolke 30s linear infinite; }
@keyframes wolke { from { transform: translateX(-120px); } to { transform: translateX(110vw); } }
.ballon { position: absolute; top: 0; width: 70px; height: 88px; margin-left: -35px; will-change: transform; }
.ballon .huelle { width: 70px; height: 80px; border-radius: 50% 50% 48% 48%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7) 0 10%, transparent 11%), var(--bf); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 2.1rem; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); box-shadow: inset -6px -8px 0 rgba(0, 0, 0, .12); }
.ballon .faden { position: absolute; left: 34px; top: 80px; width: 2px; height: 40px; background: rgba(0, 0, 0, .25); }
.ballon.platzt .huelle { animation: platzen .25s forwards; }
.ballon.platzt .faden { display: none; }
@keyframes platzen { to { transform: scale(1.6); opacity: 0; } }
.himmel .punkte-anzeige { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; font-weight: 800; font-size: 1.3rem; z-index: 3; }
.himmel .punkte-anzeige span { background: rgba(255, 255, 255, .85); padding: .2em .8em; border-radius: 999px; }
.knall { position: absolute; font-size: 1.6rem; font-weight: 800; color: #fff; pointer-events: none; animation: knall .6s forwards; z-index: 4; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
@keyframes knall { to { transform: translateY(-40px) scale(1.4); opacity: 0; } }

/* Ergebnis */
.schicht { position: fixed; inset: 0; z-index: 100; background: rgba(30, 42, 74, .55); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; animation: einblenden .2s; }
@keyframes einblenden { from { opacity: 0; } }
.dialog { margin: auto; background: #fff; border-radius: 28px; width: min(560px, 100%); padding: 2rem 1.6rem 1.6rem; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: aufploppen .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes aufploppen { from { transform: scale(.85); opacity: 0; } }
.dialog h2 { font-size: 1.8rem; }
.grosse-sterne { font-size: 3.6rem; letter-spacing: .1em; margin: .2rem 0 .8rem; }
.grosse-sterne span { display: inline-block; animation: sternrein .5s backwards; }
.grosse-sterne span:nth-child(2) { animation-delay: .25s; }
.grosse-sterne span:nth-child(3) { animation-delay: .5s; }
@keyframes sternrein { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
.werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .7rem; margin: 1rem 0; }
.wert { background: var(--bg); border-radius: 16px; padding: .7rem; }
.wert b { display: block; font-size: 1.6rem; }
.wert small { color: var(--ink-2); }
.fehler-tasten { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.fehler-tasten span { background: #FEE2E2; color: #991B1B; border-radius: 8px; padding: .1em .6em; font-weight: 700; }
.paeckchen { width: 150px; height: 190px; margin: 1rem auto; border-radius: 18px; background: repeating-linear-gradient(45deg, #FF7A1A 0 14px, #FF9A4D 14px 28px); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.1rem; cursor: pointer; box-shadow: 0 8px 0 var(--orange-d); animation: wackel-paket 1.2s ease-in-out infinite; border: 0; font-family: inherit; }
@keyframes wackel-paket { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.sticker-zeigen { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0; perspective: 800px; }
.sticker-zeigen > div { width: clamp(100px, 22vw, 140px); animation: umdrehen .7s backwards; }
@keyframes umdrehen { from { transform: rotateY(180deg) scale(.6); opacity: 0; } }
.sticker-svg.selten { animation: glitzer 2.5s linear infinite; }
@keyframes glitzer { 0%, 100% { filter: drop-shadow(0 0 4px #FDE68A); } 50% { filter: drop-shadow(0 0 12px #F472B6); } }

/* Album */
.album-tabs { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 1.4rem; }
.album-tabs button { font: inherit; font-weight: 700; display: flex; align-items: center; gap: .5em; padding: .6em 1.1em; border-radius: 14px; border: 2px solid var(--linie); background: #fff; cursor: pointer; color: var(--ink); }
.album-tabs button.an { background: var(--af); color: #fff; border-color: var(--af); box-shadow: 0 4px 0 color-mix(in srgb, var(--af) 70%, #000); }
.album-tabs button small { opacity: .8; font-weight: 600; }
.album-seite { background: linear-gradient(#fff, #FDF6EC); border-radius: 26px; padding: 1.4rem; box-shadow: var(--schatten); border: 2px solid var(--linie); }
.album-raster { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1rem; }   /* 24 Bilder = 3 volle Reihen à 8 */
@media (max-width: 1000px) { .album-raster { grid-template-columns: repeat(6, minmax(0, 1fr)); } }   /* 4 × 6 */
@media (max-width: 700px) { .album-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; } }   /* 6 × 4 */
@media (max-width: 400px) { .album-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* 8 × 3 */
.platz { aspect-ratio: 120 / 160; border-radius: 12px; border: 2px dashed #E7D9C5; display: grid; place-items: center; color: #CDBFAA; font-weight: 800; font-size: 1.4rem; background: #FBF5EC; position: relative; }
.platz small { position: absolute; bottom: 8px; font-size: .7rem; font-weight: 600; }
.platz.voll { border: 0; background: none; cursor: pointer; }
.platz.voll > div { width: 100%; transition: transform .15s; }
.platz.voll:hover > div { transform: scale(1.05) rotate(-1deg); }
.platz.neu-geklebt > div { animation: kleben .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes kleben { from { transform: scale(1.8) rotate(-12deg); opacity: 0; } }
.neue-sticker { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: #FFF7D6; border: 2px dashed var(--gelb); border-radius: 20px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.neue-sticker .stapel { display: flex; gap: .6rem; flex-wrap: wrap; }
.neue-sticker .stapel button { width: 92px; border: 0; padding: 0; background: none; cursor: pointer; transition: transform .15s; }
.neue-sticker .stapel button:hover { transform: translateY(-4px) rotate(2deg); }
.sticker-gross { width: min(280px, 80vw); margin: 0 auto 1rem; }

/* Lehrkräfte / Verwaltung */
.panel-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.klassen-karte { background: #fff; border-radius: 20px; padding: 1.2rem; box-shadow: var(--schatten); cursor: pointer; border: 2px solid transparent; text-align: left; font: inherit; color: var(--ink); }
.klassen-karte:hover { border-color: var(--orange); }
.klassen-karte .code { display: inline-block; font-weight: 800; letter-spacing: .08em; background: var(--bg-2); border-radius: 8px; padding: .1em .6em; margin-top: .4rem; }
.reiter { display: flex; gap: .3rem; border-bottom: 2px solid var(--linie); margin: 1rem 0 1.4rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.reiter::-webkit-scrollbar { display: none; }
.reiter button { font: inherit; font-weight: 700; padding: .7em 1.1em; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.reiter button.an { color: var(--orange-d); border-color: var(--orange); }
.tabelle-huelle { overflow-x: auto; background: #fff; border-radius: 18px; box-shadow: var(--schatten); }
table.tabelle { border-collapse: collapse; width: 100%; font-size: .93rem; }
.tabelle th, .tabelle td { padding: .6em .8em; border-bottom: 1px solid #F1E8DA; text-align: left; white-space: nowrap; }
.tabelle th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: #FFFBF5; position: sticky; top: 0; }
.tabelle tr:hover td { background: #FFFBF5; }
.tabelle td.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle .name-knopf { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; cursor: pointer; padding: 0; text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 3px; }
.zelle-kap { display: inline-grid; place-items: center; width: 34px; height: 26px; border-radius: 7px; font-size: .75rem; font-weight: 800; color: #fff; }
.zelle-kap.k0 { background: #F3F4F6; color: #9CA3AF; }
.zelle-kap.k1 { background: #FDE68A; color: #92400E; }
.zelle-kap.k2 { background: #86EFAC; color: #14532D; }
.zelle-kap.k3 { background: #22C55E; }
.legende { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); margin: .8rem 0; align-items: center; }
.werkzeugleiste { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.werkzeugleiste .rechts { margin-left: auto; display: flex; gap: .6rem; flex-wrap: wrap; }
.status { display: inline-block; font-size: .78rem; font-weight: 800; padding: .15em .6em; border-radius: 999px; }
.status.offen { background: #FEF9C3; color: #854D0E; }
.status.aktiv { background: #DCFCE7; color: #166534; }
.status.gesperrt { background: #FEE2E2; color: #991B1B; }
.bildpw { font-family: var(--emoji); font-size: 1.4rem; letter-spacing: .1em; }
.zahlen-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.zahl-karte { background: #fff; border-radius: 18px; padding: 1rem 1.2rem; box-shadow: var(--schatten); }
.zahl-karte b { display: block; font-size: 2rem; line-height: 1.1; }
.zahl-karte small { color: var(--ink-2); }
.formular-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.aufklapp { background: #fff; border-radius: 16px; box-shadow: var(--schatten); margin-bottom: .8rem; }
.aufklapp > summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; display: flex; gap: .6rem; align-items: center; }
.aufklapp > summary::-webkit-details-marker { display: none; }
.aufklapp > summary::before { content: '▸'; transition: transform .15s; }
.aufklapp[open] > summary::before { transform: rotate(90deg); }
.aufklapp .innen { padding: 0 1.2rem 1.2rem; }
.mini-balken { display: flex; gap: 3px; align-items: flex-end; height: 40px; }
.mini-balken i { flex: 1; background: var(--blau); border-radius: 3px 3px 0 0; min-height: 2px; }
.leer-hinweis { text-align: center; padding: 2.5rem 1rem; color: var(--ink-2); }
.leer-hinweis .emoji { font-size: 3rem; display: block; margin-bottom: .5rem; }

/* Zugangskärtchen drucken */
.kaertchen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.kaertchen { border: 2px dashed #CBD5E1; border-radius: 14px; padding: 14px 16px; background: #fff; break-inside: avoid; }
.kaertchen .k-kopf { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--orange-d); font-size: .9rem; }
.kaertchen .k-name { font-size: 1.35rem; font-weight: 800; margin: 6px 0 2px; }
.kaertchen .k-code { font-size: 1rem; }
.kaertchen .k-code b { letter-spacing: .1em; font-size: 1.2rem; }
.kaertchen .k-bilder { font-family: var(--emoji); font-size: 2rem; display: flex; gap: 10px; white-space: nowrap; margin-top: 4px; }
.kaertchen .k-url { font-size: .75rem; color: var(--ink-2); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .8em 1.4em; border-radius: 14px; font-weight: 600; z-index: 200; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: einblenden .2s; max-width: 90vw; }
.toast.fehler { background: #B91C1C; }

.nur-tastatur { display: none; }
@media (hover: none) and (pointer: coarse) { .nur-tastatur { display: block; } }

@media (max-width: 900px) {
  .held .rahmen, .zweispaltig { grid-template-columns: minmax(0, 1fr); }
  .schritte { grid-template-columns: 1fr; }
  .pfad { grid-template-columns: repeat(3, 1fr); }
}
/* Wortübungen: wie ein Heftblatt, ¶ = Enter */
.textfeld.blatt { font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.75; letter-spacing: .03em; }
.textfeld .z.enter { color: #C4B5A5; padding: 0 .15em; }
.textfeld .z.enter.ok { color: #A8A29E; }

/* Wort-Rennen */
.rennen { position: relative; background: #fff; border-radius: 22px; box-shadow: var(--schatten); height: 200px; overflow: hidden; display: flex; flex-direction: column; }
.rennen .strecke { --fb: 92px; position: relative; flex: 1; background: linear-gradient(#86EFAC 0 7px, #475569 7px calc(100% - 7px), #86EFAC calc(100% - 7px)); padding: 7px 0; }
.rennen .spur { position: relative; height: 50%; }
.rennen .spur-1 { border-bottom: 3px dashed rgba(255, 255, 255, .6); }
.rennen .fahrer { position: absolute; top: 50%; left: 0; width: var(--fb); transform: translateY(-50%); display: flex; justify-content: center; z-index: 2; }
.rennen .fahrer.ich { transition: left .18s ease-out; }
.rennen .fahrer.ich svg { width: 92px; height: auto; display: block; }
.rennen .fahrer.geist svg { height: 44px; width: auto; display: block; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .3)); animation: wippen 1.2s ease-in-out infinite; }
.rennen .fahrer.schleudern { animation: schleudern .35s; }
@keyframes schleudern { 25% { transform: translateY(-50%) rotate(-9deg); } 75% { transform: translateY(-50%) rotate(7deg); } }
.rennen .fahrer.sieger::after, .rennen .fahrer.geist.im-ziel::after { content: '🏆'; position: absolute; top: -8px; right: -6px; font-family: var(--emoji); font-size: 1.3rem; }
.rennen .fahrer.geist.im-ziel::after { content: '🏁'; }
.rennen .ziellinie { position: absolute; right: 16px; top: 7px; bottom: 7px; width: 12px; background: repeating-conic-gradient(#1E2A4A 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.rennen .zielflagge { position: absolute; right: 0; top: 4px; font-size: 1.2rem; }
.rennen-zeile { height: 58px; flex: none; overflow: hidden; display: flex; align-items: center; padding: 0 1.2rem; font-size: 1.9rem; font-weight: 500; letter-spacing: .02em; }
.rennen-zeile .innen { white-space: nowrap; transition: transform .2s; }
.rennen .start-schicht .countdown { font-size: 4.5rem; font-weight: 800; color: var(--orange); animation: aufploppen .3s; }
.rennen-ergebnis { font-size: 1.15rem; margin: .3rem 0 .8rem; }
body.fokus .rennen { box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 20px 50px rgba(0, 0, 0, .5); }
.insel .kreis .pokal { position: absolute; left: -6px; bottom: -4px; font-family: var(--emoji); font-size: 1.6rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }

/* Startseite: großes Logo, das beim Scrollen klein wird (ohne Schatten) */
.kopf .logo svg, .kopf .logo { transition: width .25s ease, height .25s ease, margin .25s ease, font-size .25s ease; }
.startseite .kopf .logo { font-size: 1.75rem; }
.startseite .kopf .logo svg { width: 92px; height: 92px; margin-bottom: -40px; }
.startseite.logo-klein .kopf .logo { font-size: 1.3rem; }
.startseite.logo-klein .kopf .logo svg { width: 38px; height: 38px; margin-bottom: 0; }
@media (max-width: 760px) {   /* Handy (Hamburger-Menü): Logo in normaler Größe, nicht über die Linie */
  .startseite .kopf .logo, .startseite.logo-klein .kopf .logo { font-size: 1.3rem; }
  .startseite .kopf .logo svg, .startseite.logo-klein .kopf .logo svg { width: 38px; height: 38px; margin-bottom: 0; }
}
@media (max-width: 600px) { .kopf .logo { gap: .4rem; } }
/* Menü: am Computer nebeneinander, am Handy hinter drei Strichen (Hamburger) */
.menue-knopf { display: none; }
.kopf nav.haupt-nav { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 760px) {
  .kopf .rahmen { position: relative; gap: .5rem; }
  .menue-knopf { display: grid; margin-left: auto; align-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border: 2px solid var(--linie); border-radius: 12px; background: #fff; cursor: pointer; }
  .menue-knopf span { display: block; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .kopf.offen .menue-knopf span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .kopf.offen .menue-knopf span:nth-child(2) { opacity: 0; }
  .kopf.offen .menue-knopf span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .kopf nav.haupt-nav { display: none; position: absolute; top: calc(100% + 6px); right: 12px; width: min(360px, calc(100% - 24px)); flex-direction: column; align-items: stretch; gap: .3rem; margin: 0; padding: .6rem; background: #fff; border: 1px solid var(--linie); border-radius: 18px; box-shadow: 0 16px 40px rgba(30, 42, 74, .18); z-index: 30; }
  .kopf.offen nav.haupt-nav { display: flex; }
  .kopf nav.haupt-nav a.nav { display: block !important; font-size: 1.05rem; padding: .75em 1em; border-radius: 12px; }
  .kopf nav.haupt-nav .knopf { order: -1; justify-content: center; font-size: 1.05rem; padding: .8em 1em; margin-bottom: .2rem; }
}

.anmelde-fux { width: 74px; margin: 0 auto .4rem; }
.anmelde-fux svg { width: 100%; height: auto; display: block; }

/* „Nach oben“-Knopf */
.nach-oben { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-d), 0 10px 24px rgba(30, 42, 74, .25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.nach-oben.sichtbar { opacity: 1; transform: none; pointer-events: auto; }
.nach-oben:hover { background: var(--orange-d); }
.nach-oben svg { width: 24px; height: 24px; }
@media print { .nach-oben { display: none; } }

/* Einführung „Neue Tasten“ */
.schritt-punkte { display: flex; gap: 7px; flex: 1; flex-wrap: wrap; }
.schritt-punkte i { width: 14px; height: 14px; border-radius: 50%; background: var(--linie); transition: background .2s; }
.schritt-punkte i.fertig { background: var(--gruen); }
.schritt-punkte i.jetzt { background: var(--orange); box-shadow: 0 0 0 4px rgba(249, 115, 22, .25); }
.einf-box { position: relative; background: #fff; border-radius: 22px; box-shadow: var(--schatten); height: 172px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: .9rem 1.4rem; text-align: center; overflow: hidden; }
.einf-box .auftrag { display: flex; flex-direction: column; gap: .15rem; max-width: 960px; font-size: 1.02rem; color: var(--ink-2); line-height: 1.4; }
.einf-box .auftrag > b { display: flex; align-items: center; justify-content: center; gap: .45rem; font-size: 1.3rem; color: var(--ink); }
.einf-box .auftrag .merk-bild { display: inline-flex; width: 1.7em; height: 1.7em; align-items: center; justify-content: center; font-size: 1.2em; }
.einf-box .auftrag .merk-bild svg { width: 100%; height: 100%; }
.einf-box .zeile { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: .04em; line-height: 1.35; }
.einf-box .einf-los { font-size: 1.1rem; }
.einf-box kbd { display: inline-block; padding: .1em .9em; border-radius: 8px; background: var(--ink); color: #fff; font: 700 1rem Poppins, sans-serif; box-shadow: 0 3px 0 #000; }
.einf-zaehler { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.einf-zaehler i { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); border: 3px solid var(--linie); }
.einf-zaehler i.fertig { background: var(--gruen); border-color: var(--gruen); }
.einf-zaehler i.jetzt { background: #FFE7A3; border-color: var(--orange); animation: puls 1s infinite; }
.einf-ok { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .93); font-size: 2rem; font-weight: 800; color: var(--gruen-d); animation: aufploppen .25s; }
.einf-ok .emoji { font-size: 2.4rem; margin-right: .3rem; }
.gross-text { font-size: 1.15rem; }
.ds-schicht .dialog { max-height: calc(100vh - 2rem); overflow: auto; }
.ds-text h1 { font-size: 1.7rem; margin-top: 0; }
.ds-text h2 { font-size: 1.2rem; margin: 1.2rem 0 .3rem; }
.ds-text p { margin: 0 0 .7rem; }
body.fokus .einf-box { box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 20px 50px rgba(0, 0, 0, .5); }

@media (max-width: 600px) {
  .kopf nav a.nav { display: none; }
  .pfad { grid-template-columns: repeat(2, 1fr); }
  .insel .kreis { width: 92px; height: 92px; font-size: 2.5rem; }
  .textfeld { height: 150px; padding: .8rem 1rem; }
  .einzel { gap: .8rem; height: auto; padding: 1rem; flex-wrap: wrap; }
  .einf-box { height: auto; min-height: 172px; }
}
@media (max-height: 820px) and (min-width: 900px) {
  .textfeld, .einzel { height: 128px; }
  .textfeld { font-size: 1.9rem; padding: .7rem 1.2rem; }
  .einzel .gross-taste { width: 92px; height: 92px; font-size: 3.2rem; }
  .einf-box { height: 140px; gap: .35rem; padding: .6rem 1.2rem; }
  .rennen { height: 140px; }
  .rennen-zeile { height: 48px; font-size: 1.6rem; }
  .rennen .fahrer.ich svg { width: 78px; }
  .rennen .fahrer.geist svg { height: 34px; }
  .rennen .strecke { --fb: 78px; }
  .einf-box .auftrag { font-size: .93rem; }
  .einf-box .auftrag > b { font-size: 1.12rem; }
  .einf-box .zeile { font-size: 1.75rem; }
  .tastatur { padding: 9px; gap: 4px; width: min(100%, 940px); }
  .tastatur .reihe { gap: 4px; }
  .tastatur .t { height: 37px; }
  .haende { width: 330px; margin-top: -4px; }
  .hinweis-zeile { min-height: 30px; }
  .ueben { gap: .5rem; padding-top: .5rem; }
  .himmel, .weltall { height: 36vh; }
  .ueben-kopf h1 { font-size: 1.15rem; }
  .gast-band { padding: .15em 1em; font-size: .8rem; }
  .app-kopf .rahmen { min-height: 52px; }
  .rund-knopf { width: 40px; height: 40px; }
}
@media print {
  .kopf, .app-kopf, .fuss, .nicht-drucken, .werkzeugleiste, .reiter { display: none !important; }
  body { background: #fff; }
  .kaertchen { border-color: #999; }
  .karte, .tabelle-huelle { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Merkbilder: gezeichnete Tiere der Tierbande */
.merk-bild.figur svg { width: 40px; height: 52px; display: block; }
.merk-bild.emoji { font-size: 1.8rem; }
.hinweis-zeile .merk-bild.figur svg { width: 28px; height: 36px; }
.hinweis-zeile .merk-bild.emoji { font-size: 1.6rem; }
.gross-bild.figur svg { width: 86px; height: 112px; display: block; }
.gross-bild.emoji { font-size: 4rem; }
.gast-band a { color: inherit; font-weight: 700; margin-left: .6em; }

/* Rhythmus */
.rhythmus { display: flex; align-items: center; gap: .3rem; background: #fff; border: 2px solid var(--linie); border-radius: 14px; padding: 3px 6px; }
.rund-knopf.klein { width: 34px; height: 34px; font-size: 1.05rem; border-radius: 10px; font-weight: 800; }
.rund-knopf.an { background: var(--orange); border-color: var(--orange); }
.rhythmus .bpm { display: flex; flex-direction: column; align-items: center; line-height: 1; min-width: 38px; }
.rhythmus .bpm b { font-size: 1rem; }
.rhythmus .bpm small { font-size: .62rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }

/* Meteoriten-Abwehr */
.weltall { position: relative; height: min(46vh, 420px); border-radius: 24px; overflow: hidden; box-shadow: var(--schatten);
  background: radial-gradient(1.5px 1.5px at 12% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 60%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 55% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 45%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 88% 25%, #FDE68A 50%, transparent 51%), radial-gradient(1px 1px at 40% 85%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 75%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 5% 70%, #fff 50%, transparent 51%), linear-gradient(#0B1026, #1E2A6B 70%, #3B2A6B); }
.weltall::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(#22C55E, #15803D); border-top: 3px solid #86EFAC; }
.weltall.treffer-rot { animation: rotblitz .4s; }
@keyframes rotblitz { 30% { box-shadow: inset 0 0 0 9999px rgba(239, 68, 68, .35); } }
.weltall .punkte-anzeige { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; z-index: 3; }
.weltall .punkte-anzeige span { background: rgba(255, 255, 255, .9); padding: .2em .8em; border-radius: 999px; }
.meteor { position: absolute; top: 0; margin-left: -34px; width: 68px; display: flex; flex-direction: column; align-items: center; will-change: transform; z-index: 2; }
.meteor .stein { width: 46px; height: 46px; border-radius: 46% 54% 50% 50%; background: radial-gradient(circle at 35% 30%, #D6A26B, #78350F 70%); box-shadow: 0 -14px 18px -4px rgba(251, 146, 60, .7), inset -5px -6px 0 rgba(0, 0, 0, .25); }
.meteor .schrift { margin-top: -30px; background: #fff; color: var(--ink); border-radius: 10px; padding: 0 .45em; font-weight: 800; font-size: 1.45rem; white-space: nowrap; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.meteor.wort { margin-left: -60px; width: 120px; }
.meteor .schrift i { font-style: normal; color: #16A34A; text-decoration: line-through; }
.meteor.angepeilt .schrift { background: #FDE68A; box-shadow: 0 0 0 3px #F59E0B, 0 3px 0 rgba(0, 0, 0, .3); }
.meteor.explodiert { animation: platzen .4s forwards; }
.kanone { position: absolute; left: 50%; bottom: 18px; width: 60px; margin-left: -30px; height: 60px; z-index: 3; }
.kanone .rohr { position: absolute; left: 24px; bottom: 26px; width: 12px; height: 36px; background: linear-gradient(90deg, #94A3B8, #E2E8F0, #94A3B8); border-radius: 6px 6px 2px 2px; transform-origin: 50% 100%; transition: transform .08s; }
.kanone .sockel { position: absolute; left: 0; bottom: 0; width: 60px; height: 34px; border-radius: 30px 30px 8px 8px; background: linear-gradient(#F97316, #C2410C); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .3); }
.laser { position: absolute; height: 4px; margin-top: -2px; transform-origin: 0 50%; background: linear-gradient(90deg, #FDE047, #F43F5E); border-radius: 2px; box-shadow: 0 0 10px 3px rgba(253, 224, 71, .8); z-index: 2; pointer-events: none; animation: einblenden .05s; }

/* Ziele im Kapitel und Gold-Rahmen für ★★★ */
.kapitel-ziele { margin-left: auto; display: flex; flex-direction: column; gap: .35rem; }
.kapitel-ziele span { background: rgba(255, 255, 255, .22); border-radius: 999px; padding: .2em .9em; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.kapitel-ziele span.ok { background: #fff; color: var(--ink); }
.kachel.gold { border: 3px solid #F5B700; background: linear-gradient(160deg, #FFFBEB, #FEF3C7); box-shadow: 0 4px 0 #E2A800, 0 0 0 3px rgba(250, 204, 21, .35); }
.kachel.gold::before { content: '🏅'; color: inherit; background: none; width: auto; height: auto; font-size: 1.4rem; top: .55rem; }

/* Fokus beim Tippen: alles abdunkeln außer Text/Spielfeld, Hinweis und Tastatur */
body.fokus::after { content: ''; position: fixed; inset: 0; background: rgba(12, 17, 38, .42); z-index: 40; pointer-events: none; animation: einblenden .35s; }
body.fokus #feld, body.fokus .tastatur-bereich, body.fokus .hinweis-zeile { position: relative; z-index: 41; }
body.fokus .hinweis-zeile { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
body.fokus .hinweis-zeile b { color: #fff; }
body.fokus .haende text { fill: #CBD5E1; }
body.fokus .textfeld, body.fokus .einzel { box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 20px 50px rgba(0, 0, 0, .5); }

/* Persönlicher Rahmen */
body.mit-rahmen { --rb: 68px; padding: var(--rb); }
body.mit-rahmen .app-kopf { top: var(--rb); }
.deko-rahmen { position: fixed; inset: 0; pointer-events: none; z-index: 25; --rb: 68px; }
.deko-rahmen .rb { position: absolute; display: flex; justify-content: space-around; align-items: center; overflow: hidden; background: linear-gradient(135deg, var(--r1), var(--r2)); font-family: var(--emoji); font-size: 40px; line-height: 1; }
.deko-rahmen .rb-o { top: 0; left: 0; right: 0; height: var(--rb); }
.deko-rahmen .rb-u { bottom: 0; left: 0; right: 0; height: var(--rb); }
.deko-rahmen .rb-l { top: var(--rb); bottom: var(--rb); left: 0; width: var(--rb); flex-direction: column; }
.deko-rahmen .rb-r { top: var(--rb); bottom: var(--rb); right: 0; width: var(--rb); flex-direction: column; }
.deko-rahmen::after { content: ''; position: absolute; inset: calc(var(--rb) - 10px); border: 10px solid var(--bg); border-radius: 28px; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--r1) 45%, #fff); }   /* der Rand deckt auch die Ecken innen ab */
body.mit-rahmen .deko-rahmen .rb-o, body.mit-rahmen .deko-rahmen .rb-u { padding: 0 6px; }
.deko-rahmen .rb span { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.rahmen-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .8rem; margin: 1rem 0; }
.rahmen-wahl button { font: inherit; border: 3px solid transparent; border-radius: 16px; padding: 0 0 .5rem; background: #fff; cursor: pointer; overflow: hidden; box-shadow: 0 3px 0 var(--linie); color: var(--ink); }
.rahmen-wahl button .rw-bild { display: block; font-family: var(--emoji); font-size: 1.6rem; letter-spacing: .1em; padding: .7rem 0; background: linear-gradient(135deg, var(--r1), var(--r2)); margin-bottom: .4rem; }
.rahmen-wahl button.kein .rw-bild { background: var(--bg-2); }
.rahmen-wahl button.an { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, .25); }
.rahmen-wahl button:hover { transform: translateY(-2px); }
@media (max-width: 600px) { body.mit-rahmen { --rb: 32px; } .deko-rahmen { --rb: 32px; } .deko-rahmen .rb { font-size: 20px; } }
@media (max-height: 820px) and (min-width: 900px) { body.mit-rahmen { --rb: 56px; } .deko-rahmen { --rb: 56px; } .deko-rahmen .rb { font-size: 33px; } }
@media print { .deko-rahmen { display: none; } body.mit-rahmen { padding: 0; } }
/* Gerät: Tablet mit Tastaturhülle */
.demo.tablet { background: linear-gradient(160deg, #F7F8FA, #E6E9ED); border: 1px solid #D5D9DF; padding: 24px 22px 18px; }
.demo.tablet .demo-schirm { border: 14px solid #FFFFFF; border-radius: 26px; box-shadow: 0 0 0 2px #CBD5E1, 0 8px 18px rgba(0,0,0,.12); margin-bottom: 12px; position: relative; }
.demo.tablet .demo-schirm::after { content: ""; position: absolute; left: 50%; top: -9px; width: 5px; height: 5px; border-radius: 50%; background: #4B5058; transform: translateX(-50%); }
.demo.tablet .demo-schirm { margin-bottom: 18px; }
.demo.tablet .demo-tastatur { background: linear-gradient(160deg, #EEF0F3, #D9DDE2); border-radius: 10px 10px 18px 18px; position: relative; }
.demo.tablet .demo-tastatur::before { content: ""; position: absolute; left: 22%; right: 22%; top: -9px; height: 6px; border-radius: 4px; background: #9CA3AF; }
/* Vorschau-Szenen auf dem Tablet */
.demo-leiste .demo-punkte { margin-left: auto; display: flex; gap: 5px; font-style: normal; }
.demo-leiste .demo-punkte i { width: 7px; height: 7px; border-radius: 50%; background: #E2E5EA; }
.demo-leiste .demo-punkte i.an { background: var(--orange); width: 18px; border-radius: 4px; transition: width .3s; }
.demo-buehne { height: clamp(150px, 15vw, 190px); position: relative; overflow: hidden; border-radius: 10px; }
.demo-buehne.rein { animation: sz-rein .45s ease-out; }
@keyframes sz-rein { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.sz-text { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.5; padding-top: .3rem; }
.sz-text .ok { color: var(--ink); } .sz-text .rest { color: #C9C2B6; }
.sz-text .jetzt { background: #FFE7A3; box-shadow: 0 3px 0 var(--orange); border-radius: 4px; color: var(--ink); }
.sz-text .enter { font-size: .75em; margin-left: .15em; }
.sz-text .enter.rest { color: #E2D9CC; }
.sz-woerter { font-size: clamp(1rem, 1.8vw, 1.35rem); }
.sz-neu { display: flex; gap: 1.2rem; align-items: center; height: 100%; }
.sz-klein { font-size: .85rem; color: var(--ink-2); margin-bottom: .3rem; }
.sz-weg { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.sz-weg .sz-k { width: 46px; height: 46px; border-radius: 10px; background: #1C1D21; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; transition: background .15s, box-shadow .15s; }
.sz-weg .sz-k.heim { background: var(--fc); }
.sz-weg.oben .sz-k:first-child { background: var(--fc); box-shadow: 0 0 12px 3px color-mix(in srgb, var(--fc) 55%, transparent); }
.sz-weg.oben .sz-k.heim { background: #1C1D21; }
.sz-weg .sz-pfeil { color: var(--fc); font-weight: 800; font-size: 1.1rem; line-height: 1; }
.sz-himmel { position: absolute; inset: 0; background: linear-gradient(#7DD3FC, #E0F2FE 75%, #FEF3C7); }
.sz-ballon { position: absolute; width: 40px; margin-left: -20px; animation: sz-steigen 6s linear forwards; }
.sz-ballon span { display: grid; place-items: center; width: 40px; height: 46px; border-radius: 50% 50% 48% 48%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.7) 0 10%, transparent 11%), var(--bf); color: #fff; font-weight: 800; font-size: 1.2rem; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.sz-ballon i { display: block; width: 2px; height: 22px; margin: 0 auto; background: rgba(0,0,0,.25); }
.sz-ballon.platzt span { animation: platzen .25s forwards; } .sz-ballon.platzt i { display: none; }
@keyframes sz-steigen { from { transform: translateY(30px); } to { transform: translateY(-110px); } }
.sz-weltall { position: absolute; inset: 0; background: radial-gradient(1.5px 1.5px at 12% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 40% 60%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 80% 25%, #FDE68A 50%, transparent 51%), radial-gradient(1px 1px at 90% 70%, #fff 50%, transparent 51%), linear-gradient(#0B1026, #1E2A6B 70%, #3B2A6B); }
.sz-weltall::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(#22C55E, #15803D); }
.sz-meteor { position: absolute; top: 4%; display: flex; flex-direction: column; align-items: center; animation: sz-fallen 6s linear forwards; transition: opacity .3s, transform .3s; }
.sz-meteor.spaet { top: -18%; } .sz-meteor.spaeter { top: -45%; }
.sz-meteor b { width: 34px; height: 34px; border-radius: 46% 54% 50% 50%; background: radial-gradient(circle at 35% 30%, #D6A26B, #78350F 70%); box-shadow: 0 -10px 14px -4px rgba(251,146,60,.7); }
.sz-meteor span { margin-top: -20px; background: #fff; color: var(--ink); border-radius: 8px; padding: 0 .4em; font-weight: 800; font-size: 1.05rem; }
.sz-meteor span i { font-style: normal; color: #16A34A; text-decoration: line-through; }
.sz-meteor.weg { opacity: 0; scale: 1.6; }
@keyframes sz-fallen { to { translate: 0 110px; } }
.sz-rennen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.sz-strecke { position: relative; flex: 1; background: linear-gradient(#86EFAC 0 5px, #475569 5px calc(100% - 5px), #86EFAC calc(100% - 5px)); padding: 5px 0; border-radius: 8px; }
.sz-spur { position: relative; height: 50%; }
.sz-spur:first-child { border-bottom: 2px dashed rgba(255,255,255,.6); }
.sz-auto, .sz-geist { position: absolute; top: 50%; left: 0; width: 74px; transform: translateY(-50%); transition: left .25s ease-out; display: flex; justify-content: center; }
.sz-auto svg { width: 70px; height: auto; display: block; }
.sz-geist svg { height: 32px; width: auto; display: block; }
.sz-ziel { position: absolute; right: 8px; top: 5px; bottom: 5px; width: 9px; background: repeating-conic-gradient(#1E2A4A 0 25%, #fff 0 50%) 0 0 / 9px 9px; }
.sz-klein-text { font-size: 1.1rem; white-space: nowrap; flex: none; padding-top: .35rem; }
.sz-weit { letter-spacing: .12em; }
.sz-schlaege { display: flex; gap: 10px; margin: .5rem 0 .2rem; }
.sz-schlaege i { width: 18px; height: 18px; border-radius: 50%; background: #E2E5EA; }
.sz-schlaege i.an { animation: sz-schlag .45s ease-out; }
@keyframes sz-schlag { 0% { background: var(--orange); transform: scale(1.5); box-shadow: 0 0 10px 3px rgba(249,115,22,.5); } 100% { background: #FDBA74; transform: scale(1); } }
.sz-wo { padding-top: .4rem; }
.sz-gross { font-weight: 800; font-size: 1.2rem; color: var(--ink); margin-bottom: .2rem; }
.sz-zaehler { display: flex; gap: 8px; margin-top: .7rem; }
.sz-zaehler i { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #E2E5EA; }
.sz-zaehler i.jetzt { border-color: var(--orange); }
.sz-zaehler i.fertig { background: #22C55E; border-color: #22C55E; }
.demo-tastatur.blind .k:not(.s) > span:not(.tier) { visibility: hidden; }
.demo-tastatur .k.treffer { background: #22C55E !important; box-shadow: 0 0 14px 4px rgba(34,197,94,.6) !important; }
.sz-kanone { position: absolute; left: 50%; bottom: 8px; width: 30px; height: 18px; margin-left: -15px; background: #94A3B8; border-radius: 15px 15px 4px 4px; z-index: 3; }
.sz-kanone i { position: absolute; left: 12px; top: -14px; width: 6px; height: 20px; background: #CBD5E1; border-radius: 3px; transform-origin: 50% 100%; transition: transform .1s; }
.sz-laser { position: absolute; height: 5px; margin-top: -2.5px; transform-origin: 0 50%; background: linear-gradient(90deg, #FEF08A, #F43F5E); border-radius: 3px; box-shadow: 0 0 12px 4px rgba(253,224,71,.9), 0 0 24px 6px rgba(244,63,94,.5); z-index: 2; }
.sz-blitz { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: radial-gradient(#FFFBEB, #FDE047 40%, rgba(244,63,94,0) 70%); z-index: 3; animation: sz-blitz .26s ease-out forwards; }
@keyframes sz-blitz { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
/* Enter als große L-Taste (österreichische Tastatur): oberes Stück + Stück in der Reihe darunter */
.demo-tastatur [data-code="Enter"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; z-index: 1; }
.demo-tastatur [data-code="leer"] { border-top-left-radius: 0; border-top-right-radius: 0; overflow: visible; }
.demo-tastatur [data-code="leer"]::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 7px; background: inherit; }
.demo-tastatur:has([data-code="Enter"].an) [data-code="leer"] { background: var(--fc); box-shadow: 0 0 14px 4px color-mix(in srgb, var(--fc) 60%, transparent); }
.tastatur [data-t="Enter"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; z-index: 1; }
.tastatur [data-t="leer"] { background: #CBD5E1; box-shadow: 0 3px 0 #64748B; border-top-left-radius: 0; border-top-right-radius: 0; }
.tastatur [data-t="leer"]::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 7px; background: inherit; }
.tastatur:has([data-t="Enter"].ziel) [data-t="leer"] { background: var(--fc); box-shadow: 0 0 18px 6px color-mix(in srgb, var(--fc) 70%, transparent); }
.tastatur [data-t="Enter"].ziel { transform: none; animation: none; box-shadow: 0 0 18px 6px color-mix(in srgb, var(--fc) 70%, transparent); }
/* Schulbereich */
.zaehl-punkt { display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .3em; border-radius: 999px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 800; vertical-align: middle; }
.code { display: inline-block; font-weight: 800; letter-spacing: .08em; background: var(--bg-2); border-radius: 8px; padding: .1em .6em; }
.check-liste { display: flex; flex-direction: column; gap: .35rem; max-height: 260px; overflow-y: auto; padding: .2rem; }
.check-liste.spalten { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: none; }
.klein-pille { padding: 0 .55em; font-size: .8rem; font-weight: 600; margin: 1px 0; }
.tabelle.abgleich td { white-space: normal; vertical-align: top; }
.tabelle.abgleich td:first-child { white-space: nowrap; }
.schritte-liste { display: grid; gap: 1rem; }
.schritt-karte { display: flex; gap: 1.2rem; align-items: flex-start; }
.schritt-karte .nr { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }
.schritt-karte h3 { margin: .3rem 0 .4rem; }
.schritt-karte > div:last-child { flex: 1; min-width: 0; }
.druck-titel { font-size: 1.1rem; margin: 1.4rem 0 .6rem; }
.elternbrief { background: #fff; border-radius: 18px; box-shadow: var(--schatten); padding: 2rem 2.2rem; max-width: 780px; margin: 0 auto 1.5rem; line-height: 1.55; }
.elternbrief h2 { margin: 1rem 0 .6rem; font-size: 1.4rem; }
.elternbrief h3 { font-size: 1.05rem; margin: 1.2rem 0 .3rem; }
.elternbrief ul { padding-left: 1.2rem; margin: 0; }
.eb-kopf { display: flex; align-items: center; gap: .8rem; color: var(--orange-d); }
.eb-kopf b { font-size: 1.3rem; color: var(--ink); }
.eb-zugang { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1rem 0; }
.eb-zugang > div { border: 2px solid var(--linie); border-radius: 14px; padding: .7rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.eb-zugang small { color: var(--ink-2); }
.eb-zugang b { font-size: 1.2rem; }
.eb-code { letter-spacing: .12em; font-size: 1.5rem !important; }
.eb-bilder { font-family: var(--emoji); font-size: 2.2rem; display: flex; gap: .6rem; }
@media print {
  .druck-klasse { break-after: page; }
  .druck-klasse:last-child { break-after: auto; }
  .druck-titel { margin-top: 0; }
  .elternbrief { box-shadow: none; padding: 0; max-width: none; margin: 0; break-after: page; }
  .elternbrief:last-child { break-after: auto; }
  .eb-zugang > div { border-color: #999; }
}
@media (max-width: 600px) { .eb-zugang { grid-template-columns: 1fr; } .elternbrief { padding: 1.2rem; } .schritt-karte { flex-direction: column; } }
.schritte-liste > * { min-width: 0; } .schritt-karte > div:last-child { width: 100%; }
@media print { .kaertchen-raster { grid-template-columns: repeat(3, 1fr); gap: 8px; } .kaertchen { padding: 10px 12px; } .kaertchen .k-bilder { font-size: 1.7rem; } }
.schul-zeile { cursor: pointer; }
.schul-zeile:hover td { background: #FFF3E6 !important; }
.schul-detail > td { background: #FFFBF5; padding: 1rem 1.2rem 1.2rem !important; white-space: normal !important; }
.schul-detail-innen .tabelle { background: #fff; border: 1px solid var(--linie); border-radius: 12px; }
@media (max-width: 600px) {   /* Lern-App am Handy: Knöpfe oben dürfen umbrechen statt hinter den Rahmen zu rutschen */
  .app-kopf .rahmen { flex-wrap: wrap; row-gap: .4rem; padding-top: .4rem; padding-bottom: .4rem; }
  .app-kopf .rechts { flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
  body.mit-rahmen .app-kopf .rahmen { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 600px) {
  .app-kopf .rund-knopf { width: 36px; height: 36px; font-size: .95rem; }
  .app-kopf .pille { padding: .2em .6em; font-size: .85rem; }
  .app-kopf .logo span { display: none; }
  .app-kopf .rechts { flex-wrap: nowrap; margin-left: auto; }
}
@media (max-width: 380px) { .app-kopf .rechts { flex-wrap: wrap; } }
.mit-liste { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; } .mit-liste .pille { font-size: .88rem; font-weight: 600; } .mit-liste .link-knopf { color: var(--ink-3); padding: 0 .1rem; }
.textseite ul { padding-left: 1.3rem; margin: .4rem 0 1rem; } .textseite li { margin-bottom: .35rem; }
/* Album: Bilder einkleben und verschieben */
.ziehbar { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.stapel .ziehbar.gewaehlt, .platz.gewaehlt > div { animation: bild-wackeln .5s ease-in-out infinite; }
.stapel .ziehbar.gewaehlt { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 12px; }
.platz.gewaehlt { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 12px; }
@keyframes bild-wackeln { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
body.album-waehlen-neu .album-raster .platz:not(.voll), body.album-waehlen .album-raster .platz { border-color: var(--orange); background: #FFF3E6; cursor: pointer; }
body.album-waehlen .album-raster .platz.voll { outline: 2px dashed #FDBA74; outline-offset: 2px; border-radius: 12px; }
.platz.drueber { background: #FED7AA !important; border-style: solid !important; transform: scale(1.04); }
.platz.voll.drueber { outline: 3px solid var(--orange) !important; }
.wird-gezogen { opacity: .35; }
.zieh-geist { position: fixed; z-index: 1000; pointer-events: none; transform: translate(-50%, -55%) rotate(-4deg) scale(1.08); filter: drop-shadow(0 10px 16px rgba(0,0,0,.25)); }
.zieh-geist > div, .zieh-geist svg { width: 100%; display: block; }
body.album-ziehen { cursor: grabbing; }

/* Schrift für alles, was abgetippt wird */
.textfeld, .rennen-zeile, .einf-box .z, .einzel .gross-taste, .ballon .huelle, .meteor .schrift, .sz-text, .sz-meteor span, .sz-ballon span, .sz-weg .sz-k { font-family: 'Atkinson', 'Poppins', system-ui, sans-serif; }
#hinweis b:first-of-type, .demo-hinweis b:first-of-type { font-family: 'Atkinson', 'Poppins', system-ui, sans-serif; }   /* der Buchstabe im Hinweis */
.kachel.zu { opacity: .6; filter: grayscale(.6); cursor: not-allowed; } .kachel.zu small { color: var(--ink-2); font-weight: 600; }

/* ---------- Tipp-Klang aussuchen ---------- */
.klang-wahl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .7rem; margin: 1rem 0; }
@media (max-width: 600px) { .klang-wahl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .klang-wahl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.klang-wahl button { font: inherit; border: 3px solid var(--linie); border-radius: 16px; padding: .7rem .5rem; background: #fff; cursor: pointer; box-shadow: 0 3px 0 var(--linie); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; height: 100%; min-height: 112px; }
.klang-wahl button .emoji { font-size: 2rem; }
.klang-wahl button small { font-size: .72rem; color: var(--ink-2); line-height: 1.2; }
.klang-wahl button.an { border-color: var(--orange); background: #FFF7ED; box-shadow: 0 0 0 3px rgba(249, 115, 22, .25); }
.klang-wahl button:hover { transform: translateY(-2px); }

/* ---------- Pause ---------- */
.pause-knopf { display: inline-flex; flex-direction: row; align-items: center; width: auto; padding: 0 .9rem 0 .6rem; gap: .35rem; font-weight: 700; font-size: .95rem; }
.pause-knopf .emoji { font-size: 1.15rem; }
.tastatur-bereich { position: relative; }
.ueben-knoepfe { display: flex; gap: .5rem; align-items: center; justify-self: end; margin-right: max(0px, calc((100% - 1000px) / 2)); }
@media (min-width: 900px) { .tastatur-bereich:not(.ohne-haende) .ueben-knoepfe { position: absolute; right: max(0px, calc(50% - 500px)); bottom: 14px; margin: 0; } }
.ueben-knoepfe .rund-knopf { box-shadow: 0 3px 0 var(--linie); }
body.fokus .ueben-knoepfe .rund-knopf { box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.pause-schicht { background: rgba(12, 17, 38, .78); }
.pause-dialog { width: min(440px, 100%); }
.pause-dialog h2 { margin: .2rem 0 .4rem; }
.pause-dialog p { margin: .3rem 0; }
.pause-dialog .klein { font-size: .85rem; margin-top: .8rem; }
.pause-dialog .countdown { font-size: 5rem; font-weight: 800; color: var(--orange); animation: aufploppen .3s; line-height: 1.2; }
.fux-pause { width: 190px; height: auto; display: block; margin: -.5rem auto 0; overflow: visible; }
.fux-pause .fp-schwanz { transform-origin: 140px 150px; animation: fp-wedeln 2.4s ease-in-out infinite; }
.fux-pause .fp-kopf { transform-box: view-box; }
.fux-pause.kakao .fp-tasse { animation: fp-schluerfen 3.2s ease-in-out infinite; transform-origin: 135px 140px; }
.fux-pause.kakao .fp-dampf path { animation: fp-dampf 1.8s ease-in-out infinite; }
.fux-pause.kakao .fp-dampf path + path { animation-delay: .9s; }
.fux-pause.eis .fp-eis { animation: fp-schlecken 1.6s ease-in-out infinite; transform-origin: 138px 160px; }
.fux-pause.schlaf .fp-kopf > * { animation: fp-atmen 3s ease-in-out infinite; transform-origin: 60px 100px; }
.fux-pause.schlaf .fp-zzz text { animation: fp-zzz 3s ease-in-out infinite; opacity: 0; }
.fux-pause.schlaf .fp-zzz text:nth-child(2) { animation-delay: .6s; }
.fux-pause.schlaf .fp-zzz text:nth-child(3) { animation-delay: 1.2s; }
@keyframes fp-wedeln { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg); } }
@keyframes fp-schluerfen { 0%, 45%, 100% { transform: none; } 60%, 80% { transform: translate(-22px, -22px) rotate(-28deg); } }
@keyframes fp-dampf { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes fp-schlecken { 0%, 100% { transform: none; } 50% { transform: translate(-10px, -8px) rotate(-12deg); } }
@keyframes fp-atmen { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(4deg) translateY(2px); } }
@keyframes fp-zzz { 0% { opacity: 0; transform: translate(0, 8px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -14px); } }
.himmel.pausiert *, .weltall.pausiert * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .fux-pause * { animation: none !important; } .fux-pause.schlaf .fp-zzz text { opacity: 1; } }

/* Eigene Übungen: Ergebnisse */
.eigene-erg { margin-top: .8rem; border-top: 1px solid var(--linie); padding-top: .6rem; }
.eigene-erg summary { cursor: pointer; font-size: .93rem; color: var(--ink-2); }
.eigene-erg summary b { color: var(--ink); }
.eigene-erg table { margin-top: .6rem; font-size: .9rem; }
.eigene-zahl { display: inline-block; min-width: 2.6em; text-align: center; padding: .1em .5em; border-radius: 8px; background: var(--bg-2, #F1F5F9); color: var(--ink-2); text-decoration: none; font-weight: 700; }
.eigene-zahl.teil { background: #FEF3C7; color: #92400E; }
.eigene-zahl.alle { background: #DCFCE7; color: #166534; }

/* Startseite: Vorteile als Symbole */
.usp { list-style: none; padding: 0; margin: -.4rem 0 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.usp li { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 2px solid var(--linie); border-radius: 999px; padding: .25rem .75rem .25rem .35rem; font-weight: 600; font-size: .88rem; color: var(--ink); }
.usp .emoji { font-size: 1.05rem; width: 1.65rem; height: 1.65rem; display: grid; place-items: center; background: var(--bg-2); border-radius: 50%; }

/* ---------- Startseite: Tastatur-Hinweis, Schul-Link ---------- */
.schul-link { margin: .9rem 0 0; color: var(--ink-2); }
.schul-link a { font-weight: 700; }
.haupt-nav .knopf.an { border-color: var(--orange); }
.abschnitt-lead { max-width: 52em; }

/* ---------- Tierbande ---------- */
.bande { display: flex; gap: 1rem; align-items: stretch; justify-content: center; margin-top: 1.4rem; }
.bande-hand { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; flex: 1; }
.bande-tier { font: inherit; color: var(--ink); background: #fff; border: 2px solid transparent; border-radius: 18px; box-shadow: var(--schatten); padding: .7rem .4rem .8rem; display: flex; flex-direction: column; align-items: center; gap: .15rem; cursor: pointer; transition: transform .15s, border-color .15s; }
.bande-tier:hover, .bande-tier:focus-visible { transform: translateY(-4px); border-color: var(--fc); }
.bande-tier .bt-bild { width: 74px; height: 92px; display: block; }
.bande-tier .bt-bild svg { width: 100%; height: 100%; }
.bande-tier:hover .bt-bild, .bande-tier.hopp .bt-bild { animation: bt-hopp .5s ease; }
.bande-tier .bt-taste { margin: .2rem 0 .3rem; min-width: 38px; padding: .15rem .55rem; border-radius: 8px; background: var(--fc); color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.bande-tier b { font-size: .98rem; }
.bande-tier small { color: var(--ink-2); font-size: .76rem; line-height: 1.2; text-align: center; }
.bande-tier.biber { flex: 0 0 130px; justify-content: center; }
.bande-tier.biber .bt-bild { width: 110px; height: 100px; }
@keyframes bt-hopp { 0%, 100% { transform: none; } 40% { transform: translateY(-12px) rotate(-6deg); } 70% { transform: translateY(0) rotate(4deg); } }
@media (max-width: 900px) {
  .bande { flex-direction: column; align-items: stretch; }
  .bande-tier.biber { flex: none; align-self: center; width: 180px; }
}
@media (max-width: 600px) {
  .bande-hand { gap: .4rem; }
  .bande-tier { padding: .45rem .15rem .55rem; border-radius: 14px; }
  .bande-tier .bt-bild { width: 46px; height: 58px; }
  .bande-tier .bt-taste { font-size: .9rem; min-width: 28px; padding: .05rem .4rem; }
  .bande-tier b { font-size: .8rem; }
  .bande-tier small { display: none; }
  .bande-tier.biber { width: 150px; }
  .bande-tier.biber .bt-bild { width: 80px; height: 70px; }
  .schul-link { margin-bottom: 2.6rem; }
}

/* ---------- Anmelden-Vorführung ---------- */
.zeig-zwei { align-items: stretch; }
.zeig-zwei .karte h2 { margin-top: 0; }
.login-demo { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: 1rem; position: relative; }
.ld-schritt { border: 2px solid var(--linie); border-radius: 16px; padding: .6rem .8rem; background: #fff; transition: border-color .3s, opacity .3s, box-shadow .3s; opacity: .55; }
.ld-schritt small { display: block; font-weight: 700; color: var(--ink-2); margin-bottom: .35rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.ld-schritt.an { border-color: var(--orange); opacity: 1; box-shadow: 0 0 0 4px rgba(249, 115, 22, .15); }
.ld-schritt.fertig { opacity: 1; }
.ld-code { font-family: 'Atkinson', var(--schrift, sans-serif); font-weight: 800; font-size: 1.4rem; letter-spacing: .12em; background: var(--bg-2); border-radius: 10px; padding: .25rem .7rem; min-height: 2.1rem; display: flex; align-items: center; }
.ld-code i { width: 2px; height: 1.3rem; background: var(--orange); margin-left: 2px; animation: blinken 1s steps(1) infinite; }
.ld-schritt:not(.an) .ld-code i { visibility: hidden; }
@keyframes blinken { 50% { opacity: 0; } }
.ld-namen { display: flex; flex-wrap: wrap; gap: .35rem; }
.ld-namen span { padding: .2rem .7rem; border-radius: 999px; background: var(--bg-2); font-weight: 600; font-size: .92rem; transition: background .3s, color .3s, transform .3s; }
.ld-namen span.gewaehlt { background: var(--orange); color: #fff; transform: scale(1.08); }
.ld-bilder { display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; }
.ld-bilder span { position: relative; font-family: var(--emoji); font-size: 1.5rem; text-align: center; background: var(--bg-2); border-radius: 10px; padding: .15rem 0; border: 2px solid transparent; transition: border-color .25s, transform .25s; }
.ld-bilder span.gewaehlt { border-color: var(--orange); background: #FFF7ED; transform: scale(1.06); }
.ld-bilder span i { position: absolute; top: -7px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); color: #fff; font-style: normal; font-size: .7rem; font-weight: 800; display: grid; place-items: center; font-family: var(--schrift, sans-serif); }
.ld-bilder span i:empty { display: none; }
.login-demo::after { content: '🎉 Angemeldet!'; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: #166534; background: rgba(240, 253, 244, .92); border-radius: 16px; opacity: 0; transition: opacity .35s; pointer-events: none; }
.login-demo.geschafft::after { opacity: 1; }

/* ---------- Album-Vorführung ---------- */
.album-demo { position: relative; margin-top: 1rem; }
.ad-seite { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; background: linear-gradient(135deg, #FEF3C7, #FFEDD5); border-radius: 18px; padding: .9rem; box-shadow: inset 0 0 0 2px #FDE68A; }
.ad-platz { aspect-ratio: 4 / 5; border-radius: 10px; background: rgba(255, 255, 255, .6); display: grid; place-items: center; overflow: visible; }
.ad-platz svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .15)); }
.ad-platz.leer { border: 2px dashed #F59E0B; background: rgba(255, 255, 255, .35); }
.ad-platz.eingeklebt svg { animation: ad-kleben .5s ease; }
@keyframes ad-kleben { 0% { transform: scale(1.25); } 60% { transform: scale(.94); } 100% { transform: none; } }
.ad-neu { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: .4rem; opacity: 0; pointer-events: none; transition: transform .85s cubic-bezier(.5, -.2, .4, 1), opacity .3s; }
.ad-neu.zeigen { opacity: 1; animation: aufploppen .4s cubic-bezier(.2, 1.4, .4, 1); }
.ad-neu .ad-karte { width: 120px; filter: drop-shadow(0 0 12px #FDE68A) drop-shadow(0 10px 20px rgba(0, 0, 0, .25)); animation: glitzer 2.5s linear infinite; }
.ad-neu .ad-karte svg { width: 100%; height: auto; display: block; }
.ad-neu .ad-text { background: #fff; padding: .25rem .8rem; border-radius: 999px; font-weight: 800; color: #B45309; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); white-space: nowrap; transition: opacity .2s; }
.ad-neu.fliegt .ad-text { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ad-neu { transition: none; } }

/* ---------- Schul-Teaser, Seite „Für Schulen“ ---------- */
.schul-teaser { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: #fff; border-radius: var(--r); box-shadow: var(--schatten); padding: 1.6rem 1.8rem; }
.schul-teaser h2 { margin: 0 0 .4rem; }
.schul-teaser > div:first-child { flex: 1 1 420px; }
.schul-teaser p { margin: 0; max-width: 46em; }
.schritte.vier { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .schritte.vier { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .schritte.vier { grid-template-columns: 1fr; } }
.vorteile { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.vorteile > div { background: #fff; border-radius: var(--r); padding: 1.3rem; box-shadow: var(--schatten); }
.vorteile .emoji { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-2); margin-bottom: .6rem; }
.vorteile h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.vorteile p { margin: 0; }
@media (max-width: 1000px) { .vorteile { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vorteile { grid-template-columns: 1fr; } }
.schul-held { padding-bottom: 1rem; }
.kaertchen-demo { position: relative; display: grid; place-items: center; min-height: 300px; }
.kd-karte { position: relative; z-index: 2; width: min(340px, 90%); background: #fff; border-radius: 18px; padding: 1.1rem 1.3rem 1rem; box-shadow: 0 18px 40px rgba(30, 42, 74, .18); border: 2px dashed #CBD5E1; transform: rotate(-3deg); }
.kd-karte.hinten { position: absolute; z-index: 1; height: 220px; transform: rotate(5deg) translate(30px, 10px); background: #FFF7ED; border-color: #FED7AA; }
.kd-kopf { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.kd-kopf b span { color: var(--orange); }
.kd-kopf small { margin-left: auto; color: var(--ink-2); font-weight: 700; }
.kd-logo { width: 28px; height: 28px; }
.kd-name { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.kd-zeile { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; border-top: 1px solid var(--linie); }
.kd-zeile small { color: var(--ink-2); }
.kd-zeile b { font-size: 1.25rem; letter-spacing: .1em; }
.kd-bilder { font-family: var(--emoji); font-size: 1.5rem; letter-spacing: .1em; white-space: nowrap; }
.kd-url { margin-top: .5rem; font-size: .85rem; color: var(--ink-2); text-align: center; }
@media (max-width: 900px) { .kaertchen-demo { min-height: 260px; margin-top: 1rem; } }

/* Tastatur-Layout: kleine Flaggen (als Grafik, weil Windows keine Flaggen-Emojis zeigt) */
.layout-hinweis { display: inline-flex; align-items: center; gap: .45rem; margin: 1rem 0 0; padding: .4rem .8rem; background: #fff; border: 2px solid var(--linie); border-radius: 999px; font-size: .9rem; color: var(--ink-2); }
.layout-hinweis b { color: var(--ink); }
.flagge { width: 22px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.flagge.at { background: linear-gradient(#C8102E 0 33.3%, #fff 33.3% 66.6%, #C8102E 66.6%); }
.flagge.de { background: linear-gradient(#000 0 33.3%, #DD0000 33.3% 66.6%, #FFCE00 66.6%); }
.flagge.ch { width: 15px; background: linear-gradient(#fff, #fff) center / 62% 19% no-repeat, linear-gradient(#fff, #fff) center / 19% 62% no-repeat, #DA291C; }
.flagge + .flagge { margin-left: -.15rem; }
.schul-held .layout-hinweis { margin-top: .9rem; }
