/* =====================================================================
   Wal-Quiz – Design der Welten und Animationen
   Jede Welt setzt über body.theme-<welt> ihre Farben, Schrift und Kulisse.
   Die Grundbausteine (Abstände, Raster) stehen in index.html.
   ===================================================================== */

:root {
  --font-head: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --glow: rgba(79, 195, 247, 0.45);
  --line: rgba(255, 255, 255, 0.10);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

body { overflow-x: hidden; transition: background-color .4s; }
.app { position: relative; z-index: 1; }
header h1, .hero h2, .result .big, .certificate h3, .pick-title { font-family: var(--font-head); }
.hero h2 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
header h1 { font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Kulisse (Hintergrund-Animationen) ---------- */
#ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#ambient > * { position: absolute; will-change: transform, opacity; }

/* Luftblasen */
.blase {
  bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0.08) 60%, transparent 70%);
  border: 1px solid rgba(255,255,255,0.25);
  animation: steigen linear infinite;
}
@keyframes steigen {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translate(14px, -55vh); }
  100% { transform: translate(-10px, -115vh); opacity: 0; }
}

/* Lichtstrahlen von der Wasseroberfläche */
.ray {
  top: -20vh; height: 120vh; width: 22vw; left: 0;
  background: linear-gradient(180deg, rgba(120,230,255,0.22), rgba(120,230,255,0) 70%);
  filter: blur(6px); transform-origin: top center;
  animation: strahl 9s ease-in-out infinite alternate;
}
@keyframes strahl {
  from { transform: rotate(14deg) translateX(0); opacity: 0.35; }
  to   { transform: rotate(4deg) translateX(8vw); opacity: 0.8; }
}

/* Wellen (SVG) unten am Rand */
.welle { left: 0; bottom: 0; width: 200%; height: 90px; animation: welle linear infinite; }
.welle svg { width: 100%; height: 100%; display: block; }
@keyframes welle { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Haiflosse, die ab und zu durchs Bild zieht */
.flosse { bottom: 46px; left: -120px; width: 90px; height: 60px; animation: flosse 16s linear infinite; }
.flosse svg { width: 100%; height: 100%; display: block; }
@keyframes flosse {
  0%   { transform: translateX(0) translateY(0); }
  45%  { transform: translateX(calc(100vw + 240px)) translateY(-4px); }
  100% { transform: translateX(calc(100vw + 240px)); }
}
.wasserlinie {
  left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(180deg, rgba(255,59,59,0) 0%, rgba(20,40,60,0.85) 30%, #05090d 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Speed-Linien (Rennstrecke) */
.speed {
  right: -40vw; height: 2px; width: 30vw; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.55));
  animation: speed linear infinite;
}
@keyframes speed { from { transform: translateX(0); } to { transform: translateX(-180vw); } }
.zielflagge {
  top: 0; right: -30px; width: 180px; height: 100%; opacity: 0.05; transform: skewX(-12deg);
  background: repeating-conic-gradient(#fff 0 25%, transparent 0 50%) 0 0 / 30px 30px;
}

/* Pfoten (Dackel) */
.pfote { bottom: -50px; font-size: 26px; opacity: 0; animation: steigen linear infinite; }

/* ---------- Bildschirm-Wechsel & Auftritte ---------- */
.screen.active { animation: einblenden .35s var(--ease-out); }
/* Nur Deckkraft, kein transform: Ein transform am Bildschirm würde Safari dazu bringen, Vollbild-Ebenen
   (position: fixed) während der Animation nur innerhalb des Bildschirms zu zeichnen. */
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
/* Die Spiele haben eine eigene Vollbild-Bühne (position: fixed). Eine Animation mit transform auf dem
   Bildschirm würde Safari dazu bringen, die Bühne nur innerhalb des Bildschirms zu zeichnen („Fenster im Fenster“). */
#screen-farben.active, #screen-cello.active, #screen-instrument.active, #screen-toene.active, #screen-takt.active, #screen-punkte.active, #screen-funktion.active, #screen-zufall.active, #screen-zahlen.active, #screen-tierleben.active, #screen-piranha.active, #screen-slo.active, #screen-sk.active, #screen-dopamin.active, #screen-songs.active, #screen-klassiker.active, #screen-falten.active, #screen-zoom.active, #screen-glas.active, #screen-beat.active, #screen-wunder.active, #screen-studio.active, #screen-stimmen.active, #screen-fitness.active, #screen-scan.active, #screen-rage.active, #screen-eng.active, #screen-naehen.active, #screen-labor.active, #screen-augen.active, #screen-karte.active, #screen-verlauf.active, #screen-tiefgang.active, #screen-riff.active, #screen-krimi.active { animation: none; }
@keyframes reinGleiten { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.screen.active .menu > *, .screen.active .badges > *, .screen.active .g-card, .screen.active .g-feed {
  animation: aufploppen .5s var(--ease-spring) backwards;
}
.screen.active .menu > *:nth-child(1) { animation-delay: .05s; }
.screen.active .menu > *:nth-child(2) { animation-delay: .11s; }
.screen.active .menu > *:nth-child(3) { animation-delay: .17s; }
.screen.active .menu > *:nth-child(4) { animation-delay: .23s; }
.screen.active .menu > *:nth-child(5) { animation-delay: .29s; }
.screen.active .badges > *:nth-child(2) { animation-delay: .1s; }
.screen.active .badges > *:nth-child(3) { animation-delay: .2s; }
.screen.active .badges > *:nth-child(4) { animation-delay: .3s; }
@keyframes aufploppen { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

.hero .logo, .hero .hero-emoji, .ig-ring { animation: schweben 4.5s ease-in-out infinite; }
@keyframes schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Antworten ploppen nacheinander auf */
.choices .choice { animation: aufploppen .38s var(--ease-spring) backwards; }
.choices .choice:nth-child(2) { animation-delay: .04s; }
.choices .choice:nth-child(3) { animation-delay: .08s; }
.choices .choice:nth-child(4) { animation-delay: .12s; }
.choices .choice:nth-child(5) { animation-delay: .16s; }
.choices .choice:nth-child(6) { animation-delay: .20s; }

/* Drücken fühlt sich an wie Drücken */
.menu-btn, .choice, .btn, .tip-btn, .icon-btn, .welt-switch button {
  transition: transform .18s var(--ease-spring), box-shadow .25s, background-color .25s, border-color .25s;
}
.menu-btn:active, .choice:not(:disabled):active, .btn:active, .tip-btn:active, .icon-btn:active { transform: scale(.96); }
@media (hover: hover) {
  .menu-btn:hover, .choice:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
}

.choice.correct { animation: richtig .6s var(--ease-spring); box-shadow: 0 0 0 3px var(--ok), 0 0 26px var(--ok); }
@keyframes richtig { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.feedback.show { animation: reinGleiten .4s var(--ease-out); }
.tips li { animation: aufploppen .35s var(--ease-spring) backwards; }

/* „+1“, das aus einer richtigen Antwort aufsteigt */
.plus {
  position: fixed; z-index: 60; pointer-events: none; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem;
  color: var(--ok); text-shadow: 0 2px 12px rgba(0,0,0,0.35); animation: plus .9s var(--ease-out) forwards;
}
@keyframes plus { from { opacity: 0; transform: translate(-50%, 0) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } to { opacity: 0; transform: translate(-50%, -70px) scale(1); } }

/* Fortschrittsbalken mit Schimmer */
.bar > div { position: relative; overflow: hidden; transition: width .6s var(--ease-out); box-shadow: 0 0 12px var(--glow); }
.bar > div::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-100%); animation: schimmer 2.4s ease-in-out infinite;
}
@keyframes schimmer { to { transform: translateX(100%); } }

/* Ergebnis */
.result .big { font-size: 4.2rem; font-weight: 800; letter-spacing: -0.03em; }
.result .big.zaehlt { animation: zaehlen .5s var(--ease-spring); }
@keyframes zaehlen { from { transform: scale(.7); opacity: .3; } to { transform: none; opacity: 1; } }
.certificate { animation: aufploppen .7s var(--ease-spring) .3s backwards; }

/* Welt-Umschalter mit gleitender Markierung */
.welt-switch { position: relative; }
.welt-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 10px; background: var(--accent);
  box-shadow: 0 4px 18px var(--glow); transition: left .45s var(--ease-spring), width .45s var(--ease-spring), background-color .4s;
}
.welt-switch button { position: relative; z-index: 1; }
.welt-switch button.on { background: transparent !important; }
.welt-switch button.on span { animation: wackeln .5s var(--ease-spring); display: inline-block; }
@keyframes wackeln { 30% { transform: rotate(-14deg) scale(1.2); } 60% { transform: rotate(10deg) scale(1.1); } }

/* ===================================================================
   🐋 Wale – Tiefsee
   =================================================================== */
body.theme-wale {
  --bg1: #03203d; --bg2: #000710;
  --card: rgba(120, 200, 255, 0.07); --card-strong: rgba(120, 200, 255, 0.16);
  --text: #e6f7ff; --muted: #8fb7cf;
  --accent: #38e1ff; --accent-ink: #001826; --glow: rgba(56, 225, 255, 0.5);
  --ok: #3dffb0; --bad: #ff6b8b; --gold: #ffe08a;
  --line: rgba(120, 220, 255, 0.16);
  --font-head: "Outfit", system-ui, sans-serif;
  background: radial-gradient(120% 70% at 50% -10%, #0a4f80 0%, transparent 60%), linear-gradient(180deg, var(--bg1), var(--bg2)) fixed;
  background-color: var(--bg2);
}
body.theme-wale .hero h2 {
  background: linear-gradient(90deg, #bff4ff, #38e1ff 40%, #9d8cff 80%, #bff4ff);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: farbfluss 6s linear infinite; filter: drop-shadow(0 0 18px rgba(56,225,255,0.35));
}
@keyframes farbfluss { to { background-position: 200% center; } }
body.theme-wale .menu-btn, body.theme-wale .choice, body.theme-wale .g-card, body.theme-wale .feedback, body.theme-wale .lex li {
  border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
body.theme-wale .menu-btn.primary { background: linear-gradient(135deg, #38e1ff, #4f7dff); box-shadow: 0 8px 30px rgba(56,225,255,0.35); }
body.theme-wale .btn { background: linear-gradient(135deg, #38e1ff, #4f7dff); box-shadow: 0 6px 20px rgba(56,225,255,0.3); }
body.theme-wale .btn.secondary { background: var(--card-strong); box-shadow: none; }
body.theme-wale .gallery { box-shadow: 0 0 0 1px var(--line), 0 18px 50px rgba(0,0,0,0.5); }

/* ===================================================================
   🦈 Haie – Hai-Alarm
   =================================================================== */
body.theme-haie {
  --bg1: #101e2a; --bg2: #04080c;
  --card: rgba(255, 255, 255, 0.05); --card-strong: rgba(255, 255, 255, 0.11);
  --text: #eef3f7; --muted: #8fa3b3;
  --accent: #ff3b3b; --accent-ink: #ffffff; --glow: rgba(255, 59, 59, 0.45);
  --ok: #4dffa6; --bad: #ff3b3b; --gold: #ffcf3b;
  --line: rgba(255, 255, 255, 0.09);
  --font-head: "Bebas Neue", "Oswald", Impact, sans-serif;
  --radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 4px),
    radial-gradient(90% 60% at 80% 0%, rgba(255,59,59,0.16), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2)) fixed;
  background-color: var(--bg2);
}
body.theme-haie .hero h2 { font-size: 3.6rem; font-weight: 400; letter-spacing: 0.03em; text-transform: uppercase; text-shadow: 3px 3px 0 rgba(255,59,59,0.6); }
body.theme-haie header h1 { font-size: 1.6rem; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; }
body.theme-haie .result .big { font-weight: 400; font-size: 5rem; }
body.theme-haie .menu-btn, body.theme-haie .choice, body.theme-haie .g-card, body.theme-haie .feedback {
  border-radius: 6px; border-left: 4px solid var(--accent);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
body.theme-haie .menu-btn.primary { background: linear-gradient(100deg, #ff3b3b, #b3121f); border-left-color: #ffcf3b; }
body.theme-haie .menu-btn.primary span.sub { color: rgba(255,255,255,0.85); }
body.theme-haie .btn { border-radius: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
body.theme-haie .gallery { border-radius: 6px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
body.theme-haie .choice.correct { box-shadow: 0 0 0 3px var(--ok), 0 0 26px rgba(77,255,166,0.6); }

/* ===================================================================
   🌊 Beide – Ozean bei Sonnenuntergang
   =================================================================== */
body.theme-beide {
  --bg1: #ff8f6b; --bg2: #0b1d3a;
  --card: rgba(255, 255, 255, 0.12); --card-strong: rgba(255, 255, 255, 0.22);
  --text: #ffffff; --muted: #ffe3d6;
  --accent: #ffd166; --accent-ink: #3a1800; --glow: rgba(255, 209, 102, 0.55);
  --ok: #5dffb5; --bad: #ff5d7a; --gold: #ffd166;
  --line: rgba(255, 255, 255, 0.22);
  --font-head: "Outfit", system-ui, sans-serif;
  background: linear-gradient(180deg, #ff9a76 0%, #e0708f 22%, #8a5cc4 48%, #2e3f8f 72%, #0b1d3a 100%) fixed;
  background-color: #0b1d3a;
}
body.theme-beide .hero h2 { text-shadow: 0 4px 30px rgba(255,140,90,0.8); }
body.theme-beide .menu-btn, body.theme-beide .choice, body.theme-beide .g-card, body.theme-beide .feedback {
  border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px;
}
body.theme-beide .menu-btn.primary { background: linear-gradient(135deg, #ffd166, #ff8f6b); }
body.theme-beide .menu-btn.primary span.sub { color: #5a2a00; }
body.theme-beide .btn { background: linear-gradient(135deg, #ffd166, #ff8f6b); border-radius: 20px; }
body.theme-beide .btn.secondary { background: var(--card-strong); color: #fff; }
body.theme-beide .sun {
  top: 6vh; left: 50%; width: 260px; height: 260px; margin-left: -130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,226,140,0.9), rgba(255,160,100,0.35) 45%, transparent 70%);
  animation: sonne 7s ease-in-out infinite alternate;
}
@keyframes sonne { from { transform: scale(.92); opacity: .7; } to { transform: scale(1.06); opacity: 1; } }

/* ===================================================================
   🏎️ Porsche – Rennstrecke
   =================================================================== */
body.theme-porsche {
  --bg1: #1a1a1d; --bg2: #070708;
  --card: rgba(28, 28, 31, 0.94); --card-strong: rgba(48, 48, 53, 0.96);
  --text: #f4f4f5; --muted: #a1a1aa;
  --accent: #e10600; --accent-ink: #ffffff; --glow: rgba(225, 6, 0, 0.55);
  --ok: #22e57a; --bad: #ff4d4d; --gold: #ffcc00;
  --line: rgba(255, 255, 255, 0.08);
  --font-head: "Russo One", "Saira", Impact, sans-serif;
  --radius: 4px;
  background:
    linear-gradient(115deg, transparent 0 86%, rgba(225,6,0,0.75) 86% 88%, transparent 88% 89.5%, rgba(255,204,0,0.7) 89.5% 90.5%, transparent 90.5%) fixed,
    radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 4px 4px,
    linear-gradient(180deg, var(--bg1), var(--bg2)) fixed;
  background-color: var(--bg2);
}
body.theme-porsche .hero h2, body.theme-porsche header h1, body.theme-porsche .result .big {
  font-weight: 400; font-style: italic; transform: skewX(-8deg); text-transform: uppercase; letter-spacing: 0.02em;
}
body.theme-porsche .hero h2 { font-size: 2.6rem; text-shadow: 4px 0 0 rgba(225,6,0,0.7); }
body.theme-porsche header h1 { display: inline-block; flex: 1; }
body.theme-porsche .menu-btn, body.theme-porsche .choice, body.theme-porsche .g-card, body.theme-porsche .feedback {
  border-radius: 4px; border: 1px solid var(--line);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
body.theme-porsche .menu-btn.primary {
  background: linear-gradient(100deg, #e10600 0 70%, #ffcc00 70% 72%, #e10600 72%);
}
body.theme-porsche .menu-btn.primary span.sub { color: rgba(255,255,255,0.85); }
body.theme-porsche .btn { border-radius: 4px; text-transform: uppercase; letter-spacing: 0.08em; font-style: italic; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
body.theme-porsche .gallery { border-radius: 4px; }
body.theme-porsche .feedback.ok { background: #10261a; }
body.theme-porsche .feedback.bad { background: #2a1214; }
body.theme-porsche .bar { height: 8px; border-radius: 0; background: repeating-linear-gradient(90deg, #2a2a2e 0 10px, #1d1d20 10px 20px); }
body.theme-porsche .bar > div { border-radius: 0; background: linear-gradient(90deg, #e10600, #ffcc00); }
body.theme-porsche .welt-pill { border-radius: 4px; }

/* ===================================================================
   🐕 Dackel – Gretchen (Farben stehen in index.html, hier nur die Bewegung)
   =================================================================== */
body.theme-dackel .ig-ring { animation: schweben 3.5s ease-in-out infinite, wedeln 6s ease-in-out infinite; }
@keyframes wedeln { 0%, 90%, 100% { rotate: 0deg; } 93% { rotate: -6deg; } 96% { rotate: 6deg; } }
body.theme-dackel .choice, body.theme-dackel .menu-btn, body.theme-dackel .g-card { border-radius: 22px; }
body.theme-dackel .choice.correct { box-shadow: 0 0 0 3px #2f9e6e, 0 0 24px rgba(47,158,110,0.45); }
body.theme-dackel .g-feed figure { transition: transform .25s var(--ease-spring); }
body.theme-dackel .g-feed figure:nth-child(odd) { transform: rotate(-1.5deg); }
body.theme-dackel .g-feed figure:nth-child(even) { transform: rotate(1.5deg); }
body.theme-dackel .bar > div { background: linear-gradient(90deg, #f4a3bb, #e0839f); }

/* ===================================================================
   🎨 Farb-Gedächtnis – eigene Bühne, die ganze Seite wird zur Farbe
   =================================================================== */
.farb-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #fff;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 20px);
  background: radial-gradient(120% 80% at 50% 0%, #2b2b40, #0d0d14);
  transition: background .5s var(--ease-out);
  font-family: "Outfit", system-ui, sans-serif;
}
.farb-buehne.hell { color: #111; }
.farb-buehne > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.farb-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; }
.farb-kopf .icon-btn { background: rgba(255,255,255,0.15); color: inherit; }
.farb-buehne.hell .farb-kopf .icon-btn { background: rgba(0,0,0,0.12); }
.farb-teil { display: grid; gap: 14px; animation: reinGleiten .4s var(--ease-out); }
.farb-mitte { min-height: 70dvh; place-content: center; text-align: center; }
#farb-intro { text-align: center; padding-top: 4vh; }
#farb-intro h2 { font-size: 2.6rem; font-weight: 800; margin: 0; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ff5e62, #ffb347, #f9f871, #4ade80, #38bdf8, #a78bfa, #ff5e62); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: farbfluss 5s linear infinite; }
#farb-intro p { color: rgba(255,255,255,0.75); line-height: 1.5; margin: 0 auto; max-width: 34ch; }
.farb-logo { display: flex; justify-content: center; gap: 8px; height: 70px; align-items: flex-end; }
.farb-logo span { width: 22px; border-radius: 11px; animation: tanzen 1.6s ease-in-out infinite; }
.farb-logo span:nth-child(1) { background: #ff5e62; height: 40px; }
.farb-logo span:nth-child(2) { background: #ffb347; height: 60px; animation-delay: .12s; }
.farb-logo span:nth-child(3) { background: #4ade80; height: 50px; animation-delay: .24s; }
.farb-logo span:nth-child(4) { background: #38bdf8; height: 66px; animation-delay: .36s; }
.farb-logo span:nth-child(5) { background: #a78bfa; height: 44px; animation-delay: .48s; }
@keyframes tanzen { 50% { transform: translateY(-12px) scaleY(1.1); } }
.farb-challenge { background: rgba(255,209,102,0.15); border: 1px solid rgba(255,209,102,0.6); border-radius: 14px; padding: 12px; }
.farb-stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.farb-stufen button {
  border: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #fff; border-radius: 14px;
  padding: 12px 4px; font: inherit; font-weight: 600; cursor: pointer; display: grid; gap: 2px;
  transition: transform .18s var(--ease-spring), border-color .2s, background .2s;
}
.farb-stufen button small { font-weight: 400; opacity: .7; }
.farb-stufen button.on { border-color: #fff; background: rgba(255,255,255,0.18); transform: scale(1.04); }
.farb-buehne .btn { width: 100%; }
.farb-buehne .btn.farb-gross { font-size: 1.15rem; padding: 16px; background: linear-gradient(90deg, #ff5e62, #ffb347, #4ade80, #38bdf8, #a78bfa); background-size: 300% 100%; color: #111; animation: farbfluss 8s linear infinite; }
.farb-buehne .btn.secondary { background: rgba(255,255,255,0.12); color: inherit; box-shadow: none; }
.farb-best { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.farb-merk { font-size: 1.3rem; font-weight: 600; opacity: .85; }
.farb-countdown { font-size: 7rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.farb-countdown.tick { animation: aufploppen .5s var(--ease-spring); }
.farb-vorschau {
  height: 38dvh; border-radius: 24px; display: flex; align-items: flex-end; padding: 14px; color: #fff; font-weight: 600;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.15); transition: background .08s;
}
.farb-vorschau.hell, .farb-halb.hell { color: #111; }
.farb-regler { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.farb-regler input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 34px; border-radius: 17px; margin: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); touch-action: pan-y;
}
.farb-regler input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #fff;
  border: 4px solid rgba(0,0,0,0.25); box-shadow: 0 2px 10px rgba(0,0,0,0.4); cursor: grab;
}
.farb-regler input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid rgba(0,0,0,0.25); }
.farb-vergleich { display: grid; grid-template-columns: 1fr 1fr; height: 40dvh; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.farb-halb { display: flex; align-items: flex-end; padding: 14px; font-weight: 600; color: #fff; }
.farb-halb:first-child { animation: vonLinks .5s var(--ease-out); }
.farb-halb:last-child { animation: vonRechts .5s var(--ease-out); }
@keyframes vonLinks { from { transform: translateX(-30%); opacity: 0; } }
@keyframes vonRechts { from { transform: translateX(30%); opacity: 0; } }
.farb-punkte { text-align: center; font-size: 2.7rem; font-weight: 800; line-height: 1; }
#farb-aufloesung .farb-vergleich { height: 21dvh; }
#farb-aufloesung { gap: 10px; }
.farb-halb span { display: grid; gap: 2px; }
.farb-halb small { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85rem; opacity: .85; }
.farb-analyse { display: grid; gap: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 14px; animation: aufploppen .45s var(--ease-spring) .15s backwards; }
.farb-tipp { font-weight: 600; line-height: 1.35; }
.farb-abschnitt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-top: 2px; }
.farb-rgb { display: grid; gap: 8px; }
.rgb-zeile { display: grid; grid-template-columns: 16px 1fr 78px 44px; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.rgb-zeile b { font-size: 0.95rem; }
.rgb-R b { color: #ff6b6b; } .rgb-G b { color: #4ade80; } .rgb-B b { color: #60a5fa; }
.rgb-spur { position: relative; height: 10px; border-radius: 5px; }
.rgb-R .rgb-spur { background: linear-gradient(90deg, #000, #ff3b3b); }
.rgb-G .rgb-spur { background: linear-gradient(90deg, #000, #22c55e); }
.rgb-B .rgb-spur { background: linear-gradient(90deg, #000, #3b82f6); }
.rgb-weg { position: absolute; top: -3px; bottom: -3px; border-radius: 4px; background: rgba(255,255,255,0.35); animation: wegWachsen .6s var(--ease-out) .2s backwards; transform-origin: left; }
@keyframes wegWachsen { from { transform: scaleX(0); } }
.rgb-z, .rgb-m { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.rgb-z { transform: rotate(45deg); border-radius: 2px; background: #111; }
.rgb-m { border-radius: 50%; background: #fff; }
.rgb-zahl { font-size: 0.82rem; opacity: .85; text-align: right; }
.rgb-diff { font-size: 0.82rem; font-weight: 800; text-align: right; }
.rgb-diff.gut { color: #4ade80; } .rgb-diff.mittel { color: #fbbf24; } .rgb-diff.weit { color: #f87171; }
.farb-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; text-align: center; }
.farb-tabelle th, .farb-tabelle td { padding: 7px 4px; }
.farb-tabelle tr + tr { border-top: 1px solid rgba(255,255,255,0.08); }
.farb-tabelle tr:first-child th { font-size: 0.8rem; opacity: .75; }
.farb-tabelle th.r { color: #ff6b6b; opacity: 1; } .farb-tabelle th.g { color: #4ade80; opacity: 1; } .farb-tabelle th.b { color: #60a5fa; opacity: 1; }
.farb-tabelle tr th:first-child { text-align: left; font-weight: 600; font-size: 0.9rem; }
.farb-tabelle td { font-size: 1.1rem; font-weight: 700; }
.farb-tabelle td.hex { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85rem; font-weight: 600; opacity: .85; }
.farb-tabelle tr.diff td { font-weight: 800; }
.farb-tabelle td.gut { color: #4ade80; } .farb-tabelle td.mittel { color: #fbbf24; } .farb-tabelle td.weit { color: #f87171; }
.farb-reglergruppe { display: grid; gap: 14px; }
.farb-regler > span { display: flex; justify-content: space-between; }
.farb-regler > span b { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.farb-regler.rgb-r > span { color: #ff8a8a; } .farb-regler.rgb-g > span { color: #7cf0a8; } .farb-regler.rgb-b > span { color: #93c5fd; }
.farb-wahl { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: 0.85rem; }
.farb-wahl span { opacity: .7; }
.farb-wahl button { border: 1.5px solid rgba(255,255,255,0.2); background: transparent; color: inherit; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.farb-wahl button.on { background: #fff; color: #111; border-color: #fff; }
.farb-regler-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.regler-chip { display: grid; justify-items: center; padding: 8px 4px; border-radius: 12px; background: rgba(248,113,113,0.12); }
.regler-chip.gut { background: rgba(74,222,128,0.12); }
.regler-chip small { font-size: 0.72rem; opacity: .7; }
.regler-chip b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.farb-deltae { font-size: 0.78rem; opacity: .65; line-height: 1.4; }
#farb-aufloesung #farbWeiter { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -10px 30px rgba(0,0,0,0.35); }
.farb-liste b { display: grid; justify-items: center; line-height: 1.1; }
.farb-liste b small { font-size: 0.68rem; font-weight: 600; opacity: .65; }
.farb-kommentar { text-align: center; font-size: 1.2rem; font-weight: 600; }
.farb-summe { text-align: center; font-size: 4.5rem; font-weight: 800; line-height: 1; padding-top: 4vh; }
.farb-rekord { text-align: center; font-weight: 600; }
.farb-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.farb-liste li { display: grid; grid-template-columns: 1fr 1fr 64px; align-items: center; background: rgba(255,255,255,0.06); border-radius: 14px; overflow: hidden; animation: aufploppen .4s var(--ease-spring) backwards; }
.farb-liste li:nth-child(2) { animation-delay: .08s; } .farb-liste li:nth-child(3) { animation-delay: .16s; }
.farb-liste li:nth-child(4) { animation-delay: .24s; } .farb-liste li:nth-child(5) { animation-delay: .32s; }
.farb-liste span { height: 48px; }
.farb-liste b { text-align: center; font-size: 1.2rem; }
.farb-menu .emoji { animation: wackeln 2.4s var(--ease-spring) infinite; display: inline-block; }

/* ===================================================================
   🎮 Dashboard „Spiele“
   =================================================================== */
.welt-switch { display: none; }   /* die Welt wird jetzt im Dashboard gewählt */
body.theme-hub {
  --bg1: #0b0b14; --bg2: #05050a;
  --card: rgba(255,255,255,0.06); --card-strong: rgba(255,255,255,0.12);
  --text: #f5f5ff; --muted: #a3a3c2; --accent: #a78bfa; --accent-ink: #12091f; --glow: rgba(167,139,250,0.5);
  --font-head: "Outfit", system-ui, sans-serif;
  background: #07070d; font-family: "Outfit", system-ui, sans-serif;
}
.blob { width: 70vw; height: 70vw; max-width: 520px; max-height: 520px; border-radius: 50%; background: radial-gradient(circle, var(--farbe, #7c3aed) 0%, transparent 68%) !important; opacity: 0.42; will-change: transform; margin: -35vw 0 0 -35vw; animation: blob 18s ease-in-out infinite alternate; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18vw, 10vh) scale(1.2); } 100% { transform: translate(-12vw, 18vh) scale(.9); } }

.hub-kopf { padding: 18px 2px 6px; }
.hub-gruss { color: var(--muted); font-size: 1.05rem; animation: aufploppen .6s var(--ease-spring) backwards; }
.hub-titel {
  margin: 2px 0 14px; font-size: 4.2rem; line-height: 0.95; font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(90deg, #fff, #c4b5fd, #67e8f9, #fda4af, #fff); background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: aufploppen .7s var(--ease-spring) .05s backwards, farbfluss 8s linear infinite;
}
.hub-h { font-size: 1.35rem; margin: 26px 2px 12px; display: flex; gap: 8px; align-items: center; font-weight: 800; letter-spacing: -0.01em; }
.hub-h span { display: inline-block; animation: wackeln 3s var(--ease-spring) infinite; }

.hub-quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hub-card {
  position: relative; overflow: hidden; text-align: left; border: 0; cursor: pointer; color: #fff; font: inherit;
  min-height: 190px; border-radius: 24px; padding: 14px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.08);
  animation: kartenAuftritt .6s var(--ease-spring) backwards;
  transition: transform .25s var(--ease-spring), box-shadow .25s;
}
@keyframes kartenAuftritt { from { opacity: 0; transform: translateY(26px) scale(.92) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.hub-card:active { transform: scale(.96); }
@media (hover: hover) { .hub-card:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 20px 50px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.15); } }
.hub-card.hc-beide { grid-column: span 2; min-height: 150px; }
.hc-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35)); transition: transform .3s var(--ease-spring); }
.hub-card:active .hc-emoji { transform: scale(1.2) rotate(-8deg); }
/* Runde Foto-Avatare mit drehendem Story-Ring (wie Gretchen) */
.w-ring, .hg-av { position: relative; display: inline-grid; border-radius: 50%; padding: 3px; flex: none; }
.w-ring::before, .hg-av::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ring);
  animation: ringDrehen 5s linear infinite;
}
@keyframes ringDrehen { to { transform: rotate(1turn); } }
.w-av {
  position: relative; width: 62px; height: 62px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  font-size: 2rem; background: #12121c; border: 3px solid #0b0b14;
}
.w-av img { width: 100%; height: 100%; object-fit: cover; display: block; animation: einblenden .5s ease-out; }
.w-ring-wale { --ring: conic-gradient(#38e1ff, #0a6aa8, #7df9ff, #38e1ff); }
.w-ring-haie { --ring: conic-gradient(#ff3b3b, #ffffff, #8899aa, #ff3b3b); }
.w-ring-beide { --ring: conic-gradient(#ffe28c, #ff9a76, #e0708f, #8a5cc4, #38e1ff, #ffe28c); }
.w-ring-porsche { --ring: conic-gradient(#e10600, #ffcc00, #e10600, #222, #e10600); }
.w-ring-dackel { --ring: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.hc-dackel .w-av { border-color: #fff; }
.hc-beide .w-av { border-color: #8a5cc4; }
.hc-titel { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: 10px; }
.hc-text { font-size: 0.82rem; opacity: 0.85; line-height: 1.3; }
.hc-fort { display: grid; gap: 3px; margin-top: 8px; }
.hc-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.22); overflow: hidden; }
.hc-bar i { display: block; height: 100%; background: #fff; border-radius: 3px; }
.hc-fort small { font-size: 0.72rem; opacity: 0.8; }
.hc-badges { font-size: 0.85rem; letter-spacing: 1px; opacity: 0.95; }
.hc-deko { position: absolute; inset: 0; pointer-events: none; }
/* jede Karte im Look ihrer Welt */
.hc-wale { background: radial-gradient(120% 90% at 20% 0%, #0a6aa8, transparent 60%), linear-gradient(160deg, #03305a, #000c1a); }
.hc-wale .hc-deko { background: radial-gradient(circle at 80% 30%, rgba(56,225,255,0.35), transparent 40%); animation: schweben 5s ease-in-out infinite; }
.hc-haie { background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 4px), linear-gradient(160deg, #1a2c3b, #05090d); border-radius: 8px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.hc-haie::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #ff3b3b; }
.hc-haie .hc-titel { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 1.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hc-beide { background: linear-gradient(120deg, #ff9a76, #e0708f 35%, #8a5cc4 65%, #2e3f8f); }
.hc-beide .hc-deko { background: radial-gradient(circle at 85% 20%, rgba(255,226,140,0.85), transparent 30%); animation: sonne 6s ease-in-out infinite alternate; }
.hc-porsche { background: linear-gradient(115deg, transparent 0 70%, #e10600 70% 74%, transparent 74% 77%, #ffcc00 77% 79%, transparent 79%), linear-gradient(160deg, #26262b, #070708); border-radius: 6px; }
.hc-porsche .hc-titel { font-family: "Russo One", Impact, sans-serif; font-weight: 400; font-style: italic; text-transform: uppercase; transform: skewX(-8deg); font-size: 1.15rem; }
.hc-porsche .hc-bar i { background: linear-gradient(90deg, #e10600, #ffcc00); }
.hc-dackel { background: linear-gradient(160deg, #fbd3df, #f2a7bf); color: #5a3428; }
.hc-dackel .hc-titel { font-family: "Caveat", cursive; font-weight: 600; font-size: 2rem; }
.hc-dackel .hc-bar { background: rgba(90,52,40,0.18); } .hc-dackel .hc-bar i { background: #c2577a; }

.hub-game {
  position: relative; width: 100%; display: flex; align-items: center; gap: 14px; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: #fff; padding: 18px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(#111119, #111119) padding-box, linear-gradient(90deg, #ff5e62, #ffb347, #4ade80, #38bdf8, #a78bfa, #ff5e62) border-box;
  border: 2px solid transparent; background-size: 100% 100%, 300% 100%;
  animation: kartenAuftritt .6s var(--ease-spring) .45s backwards, farbrand 6s linear infinite;
  box-shadow: 0 16px 50px rgba(124,58,237,0.25);
  transition: transform .25s var(--ease-spring);
}
@keyframes farbrand { to { background-position: 0 0, 300% 0; } }
.hub-game:active { transform: scale(.97); }
.hub-game .farb-logo { height: 54px; gap: 5px; flex: none; }
.hub-game .farb-logo span { width: 13px; }
.hub-game .farb-logo span:nth-child(1) { height: 30px; } .hub-game .farb-logo span:nth-child(2) { height: 46px; }
.hub-game .farb-logo span:nth-child(3) { height: 38px; } .hub-game .farb-logo span:nth-child(4) { height: 52px; }
.hub-game .farb-logo span:nth-child(5) { height: 34px; }
.hg-text { display: grid; gap: 2px; flex: 1; }
.hg-titel { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(90deg, #ff8a8a, #ffd36e, #7cf0a8, #7dd3fc, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-sub { font-size: 0.85rem; color: #c9c9e0; }
.hg-best { font-size: 0.78rem; color: #8b8bab; }
.hg-pfeil { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; font-size: 0.9rem; flex: none; animation: pochen 1.8s ease-in-out infinite; }
@keyframes pochen { 50% { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(255,255,255,0.08); } }
/* Großer Quiz-Knopf im Dashboard */
.hub-quizzes {
  position: relative; width: 100%; overflow: hidden; border: 0; cursor: pointer; text-align: left; font: inherit; color: #fff;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "stapel stapel" "text pfeil"; align-items: end; gap: 14px;
  min-height: 210px; padding: 20px; border-radius: 30px; margin-top: 18px;
  background: linear-gradient(125deg, #0a6aa8, #03305a 30%, #5a1830 60%, #e10600 85%, #ffb347);
  background-size: 220% 220%; animation: kartenAuftritt .6s var(--ease-spring) .1s backwards, quizFluss 12s ease-in-out infinite alternate;
  box-shadow: 0 20px 60px rgba(10,106,168,0.35), inset 0 0 0 1px rgba(255,255,255,0.12);
  transition: transform .25s var(--ease-spring);
}
@keyframes quizFluss { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hub-quizzes:active { transform: scale(.97); }
.hq-deko { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.28), transparent 35%), radial-gradient(circle at 10% 110%, rgba(56,225,255,0.35), transparent 45%); }
.hq-stapel { grid-area: stapel; display: flex; padding-left: 4px; }
.hq-stapel .w-ring { margin-left: -16px; animation: stapelSchweben 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.8s); }
.hq-stapel .w-ring:first-child { margin-left: 0; }
.hq-stapel .w-av { width: 70px; height: 70px; border-color: rgba(10,20,40,0.9); }
@keyframes stapelSchweben { 50% { transform: translateY(-7px) rotate(-3deg); } }
.hq-text { grid-area: text; position: relative; display: grid; gap: 3px; }
.hq-titel { font-size: 2.6rem; font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; text-shadow: 0 4px 20px rgba(0,0,0,0.35); }
.hq-sub { font-size: 0.95rem; font-weight: 600; opacity: 0.92; }
.hq-stand { font-size: 0.8rem; opacity: 0.8; }
.hub-quizzes .hg-pfeil { grid-area: pfeil; position: relative; }

/* Quiz-Auswahl */
.qz-zurueck { border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--text); font: inherit; font-weight: 600; padding: 7px 14px; cursor: pointer; }
#screen-quizze .hub-gruss { margin-bottom: 14px; }

/* Games: Symbol im runden Avatar */
.hg-av > .hg-in { position: relative; width: 66px; height: 66px; border-radius: 50%; background: #111119; border: 3px solid #111119; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hg-av-farben { --ring: conic-gradient(#ff5e62, #ffb347, #4ade80, #38bdf8, #a78bfa, #ff5e62); }
.hg-av-cello { --ring: conic-gradient(#c8894f, #f3d9a4, #8a4b25, #c8894f); }
.hg-av-cello > .hg-in { background: #2a170d; border-color: #1e120c; }
.hg-av-toene { --ring: conic-gradient(#67e8f9, #bef264, #67e8f9); }
.hub-game .hg-av .farb-logo { height: 40px; gap: 3px; align-items: flex-end; }
.hub-game .hg-av .farb-logo span { width: 7px; border-radius: 4px; }
.hub-game .hg-av .farb-logo span:nth-child(1) { height: 22px; } .hub-game .hg-av .farb-logo span:nth-child(2) { height: 34px; }
.hub-game .hg-av .farb-logo span:nth-child(3) { height: 28px; } .hub-game .hg-av .farb-logo span:nth-child(4) { height: 38px; }
.hub-game .hg-av .farb-logo span:nth-child(5) { height: 25px; }
.hg-av .hc-cello-icon { width: auto; font-size: 2.2rem; }
.hg-av .hc-toene-icon { width: auto; height: 40px; gap: 3px; }
.hg-av .hc-toene-icon i { width: 4px; height: 30px; }

.hub-mehr { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 22px 0 8px; opacity: .7; }

/* Zoom-Übergang von der Karte zur Welt */
.zoom-layer { position: fixed; z-index: 90; pointer-events: none; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }

/* ===================================================================
   🎻 Cello-Noten – warmes Holz, cremefarbenes Notenpapier
   =================================================================== */
.hub-cello { background: linear-gradient(#1e120c, #1e120c) padding-box, linear-gradient(90deg, #c8894f, #f3d9a4, #8a4b25, #c8894f) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(200,137,79,0.25); margin-top: 12px; animation-delay: .55s, 0s; }
.hub-cello .hg-titel { font-family: "Playfair Display", Georgia, serif; font-style: italic; background: linear-gradient(90deg, #f3d9a4, #e0a96d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-cello-icon { font-size: 2.8rem; flex: none; width: 74px; text-align: center; animation: streichen 2.6s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes streichen { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

.cello-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #f6ead6;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(214,140,70,0.35), transparent 60%),
    repeating-linear-gradient(92deg, rgba(0,0,0,0.06) 0 3px, transparent 3px 11px),
    linear-gradient(160deg, #5a2e18, #2a140b 60%, #160a05);
  font-family: "Outfit", system-ui, sans-serif;
}
.cello-buehne > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.cello-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,0.12); color: inherit; }
.cello-teil { display: grid; gap: 14px; animation: reinGleiten .4s var(--ease-out); }
.cello-titel { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 3rem; margin: 10px 0 0; text-align: center; color: #f3d9a4; text-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.cello-lead { text-align: center; margin: 0 auto; max-width: 34ch; color: #e6cfae; line-height: 1.45; }
.cello-modi { display: grid; gap: 10px; }
.cello-modi button {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; text-align: left; align-items: center;
  border: 2px solid rgba(243,217,164,0.18); background: rgba(255,240,215,0.06); color: inherit; border-radius: 18px; padding: 12px 14px;
  font: inherit; cursor: pointer; transition: transform .2s var(--ease-spring), border-color .2s, background .2s;
  animation: aufploppen .45s var(--ease-spring) backwards;
}
.cello-modi button:nth-child(2) { animation-delay: .06s; } .cello-modi button:nth-child(3) { animation-delay: .12s; }
.cello-modi button span { grid-row: span 2; font-size: 1.8rem; text-align: center; }
.cello-modi button small { opacity: .7; }
.cello-modi button.on { border-color: #f3d9a4; background: rgba(243,217,164,0.16); transform: scale(1.02); }
.cello-stufen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cello-stufen button {
  display: grid; justify-items: center; gap: 1px; padding: 10px 2px; border-radius: 16px; cursor: pointer; font: inherit; color: inherit;
  border: 2px solid rgba(243,217,164,0.18); background: rgba(255,240,215,0.06); transition: transform .2s var(--ease-spring), border-color .2s, background .2s;
}
.cello-stufen button span { font-size: 1.6rem; filter: grayscale(.7) opacity(.7); }
.cello-stufen button.geschafft span, .cello-stufen button.on span { filter: none; }
.cello-stufen button b { font-size: 0.8rem; }
.cello-stufen button small { font-size: 0.68rem; opacity: .7; }
.cello-stufen button.on { border-color: #f3d9a4; background: rgba(243,217,164,0.16); transform: scale(1.04); }
.cello-stufen button.geschafft { box-shadow: inset 0 0 0 2px rgba(47,191,113,0.6); }
.cello-lagen { flex-wrap: wrap; }
.cello-lagen button { flex: 0 0 auto; min-width: 46px; padding: 6px 10px; }
.cello-lagename { text-align: center; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 1.15rem; color: #f3d9a4; margin-bottom: -4px; }
.griff-svg .karte { fill: rgba(243,217,164,0.7); font-size: 10px; }
.cello-optionen { display: grid; gap: 10px; background: rgba(0,0,0,0.18); border-radius: 18px; padding: 12px 14px; }
.cello-label { font-size: 0.85rem; opacity: .75; margin-bottom: 6px; }
.cello-chips { display: flex; gap: 8px; }
.cello-chips button { flex: 1; border: 2px solid rgba(243,217,164,0.25); background: transparent; color: inherit; border-radius: 999px; padding: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.cello-chips button.on { background: #f3d9a4; color: #3a1d0c; border-color: #f3d9a4; }
.cello-schalter { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.cello-schalter input { position: absolute; opacity: 0; }
.cello-schalter span { width: 46px; height: 28px; border-radius: 14px; background: rgba(255,255,255,0.18); position: relative; transition: background .2s; flex: none; }
.cello-schalter span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease-spring); }
.cello-schalter input:checked + span { background: #c8894f; }
.cello-schalter input:checked + span::after { transform: translateX(18px); }
.cello-buehne .btn { width: 100%; }
.cello-buehne .btn.cello-los { background: linear-gradient(135deg, #f3d9a4, #c8894f); color: #2a140b; font-size: 1.15rem; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.cello-buehne .btn.secondary { background: rgba(255,255,255,0.1); color: inherit; box-shadow: none; }
.cello-best { text-align: center; font-size: 0.85rem; opacity: .75; }

.cello-leiste { display: flex; justify-content: space-between; font-weight: 600; }
.cello-zeit { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; font-weight: 700; }
.cello-zeitbar { flex: 1; height: 8px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden; }
.cello-zeitbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #c8894f, #f3d9a4); transition: width .1s linear; }
.cello-papier {
  background: #fbf5e9; border-radius: 18px; padding: 6px 8px 4px; box-shadow: 0 14px 40px rgba(0,0,0,0.4), inset 0 0 40px rgba(160,120,60,0.15);
  animation: aufploppen .4s var(--ease-spring);
}
.noten-svg { display: block; width: 100%; height: auto; }
.noten-svg line { stroke: #2b2118; stroke-width: 1.4; }
.noten-svg line.hilf { stroke-width: 1.6; }
.noten-svg .schluessel { font-family: "Noto Music", "Bravura", "Apple Symbols", serif; fill: #2b2118; }
.noten-svg .note ellipse { fill: #1d1510; }
.noten-svg .note line.hals { stroke: #1d1510; stroke-width: 1.8; }
.noten-svg .note .vz { font-family: "Noto Music", "Apple Symbols", serif; font-size: 34px; fill: #1d1510; }
.noten-svg .note { animation: notePlopp .35s var(--ease-spring); transform-box: fill-box; transform-origin: center; }
@keyframes notePlopp { from { transform: translateY(-10px); opacity: 0; } }
.noten-svg .note.ok ellipse, .noten-svg .note.ok .vz { fill: #1f8a4c; } .noten-svg .note.ok line { stroke: #1f8a4c; }
.noten-svg .note.bad ellipse, .noten-svg .note.bad .vz { fill: #c0392b; } .noten-svg .note.bad line { stroke: #c0392b; }
.noten-svg .frage { font-family: "Playfair Display", serif; font-size: 40px; fill: #b08850; text-anchor: middle; }
.cello-schluesselname { text-align: center; color: #8a6a45; font-size: 0.8rem; padding-bottom: 4px; min-height: 1em; }
.cello-feedback { text-align: center; font-weight: 600; min-height: 1.4em; transition: color .2s; }
.cello-feedback.ok { color: #9ef0b9; animation: aufploppen .35s var(--ease-spring); }
.cello-feedback.bad { color: #ffb3a8; animation: shake .35s; }

.cello-griff { display: flex; justify-content: center; }
.griff-svg { width: 100%; max-width: 330px; height: auto; max-height: 44dvh; filter: drop-shadow(0 14px 30px rgba(0,0,0,0.45)); }
/* Mit Griffbrett wird es eng: Notenblatt kleiner, Abstände knapper */
#cello-spiel.mit-griff { gap: 8px; }
#cello-spiel.mit-griff .noten-svg { max-height: 17dvh; margin: 0 auto; }
#cello-spiel.mit-griff .griff-svg { max-height: 40dvh; }
#cello-spiel.mit-griff .taste { padding: 12px 2px 8px; }
#cello-spiel.mit-griff .cello-schluesselname { display: none; }
.griff-svg .saite { fill: #f3d9a4; font-weight: 800; font-size: 16px; text-anchor: middle; }
.griff-svg .punkt circle { fill: rgba(243,217,164,0.10); stroke: rgba(243,217,164,0.35); stroke-width: 1.5; transition: fill .2s, transform .2s; }
.griff-svg .punkt.klick { cursor: pointer; }
/* Finger, die man ohne Vorzeichen nicht braucht: ausgegraut und gestrichelt */
.griff-svg .punkt.frei circle { fill: transparent; stroke: rgba(243,217,164,0.25); stroke-dasharray: 3 3; }
.griff-svg .punkt.frei .finger { fill: rgba(243,217,164,0.22); }
.cello-legende { text-align: center; font-size: 0.75rem; opacity: .7; margin-top: -4px; }
.griff-svg .punkt.klick:active circle { fill: rgba(243,217,164,0.45); }
.griff-svg .punkt.markiert circle { fill: #f3d9a4; stroke: #fff; stroke-width: 3; animation: pulsieren 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.griff-svg .punkt.loesung circle { fill: #2fbf71; stroke: #fff; stroke-width: 3; }
.griff-svg .punkt.falsch circle { fill: #e74c3c; stroke: #fff; stroke-width: 2; }
.griff-svg .finger { fill: rgba(243,217,164,0.55); font-weight: 800; font-size: 14px; text-anchor: middle; pointer-events: none; }
.griff-svg .punkt.markiert .finger, .griff-svg .punkt.loesung .finger, .griff-svg .punkt.falsch .finger { fill: #fff; }
.griff-svg .punkt.markiert .finger { fill: #3a1d0c; }
@keyframes pulsieren { 50% { transform: scale(1.18); } }

.cello-tasten { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cello-tasten.alle { grid-template-columns: repeat(6, 1fr); }
.taste {
  border: 0; border-radius: 0 0 12px 12px; padding: 18px 2px 12px; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer;
  background: linear-gradient(#fffdf8, #efe3cc); color: #2b2118; box-shadow: 0 4px 0 #b9a27c, 0 8px 18px rgba(0,0,0,0.3);
  transition: transform .12s, box-shadow .12s; animation: aufploppen .3s var(--ease-spring) backwards;
}
.taste.schwarz { background: linear-gradient(#3a2a20, #120c08); color: #f3d9a4; box-shadow: 0 4px 0 #000, 0 8px 18px rgba(0,0,0,0.4); font-size: 0.78rem; }
.taste:active { transform: translateY(3px); box-shadow: 0 1px 0 #b9a27c; }
.taste.richtig { background: linear-gradient(#5ee39a, #239e5b); color: #fff; box-shadow: 0 4px 0 #1a6e40, 0 0 24px rgba(47,191,113,0.6); }
.taste.falsch { background: linear-gradient(#ff8a7a, #c0392b); color: #fff; animation: shake .35s; }
.cello-ergebnis { text-align: center; font-family: "Playfair Display", serif; font-size: 3.6rem; color: #f3d9a4; padding-top: 6vh; }

/* ===================================================================
   🎧 Ton-Gedächtnis – dunkles Studio, Neon-Schwingung
   =================================================================== */
.hub-toene { background: linear-gradient(#07110f, #07110f) padding-box, linear-gradient(90deg, #22d3ee, #a3e635, #22d3ee) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(34,211,238,0.2); margin-top: 12px; animation-delay: .65s, 0s; }
.hub-toene .hg-titel { background: linear-gradient(90deg, #67e8f9, #bef264); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-toene-icon, .ton-logo { display: flex; align-items: center; justify-content: center; gap: 4px; flex: none; }
.hc-toene-icon { width: 74px; height: 54px; }
.hc-toene-icon i, .ton-logo i { display: block; width: 5px; border-radius: 3px; background: linear-gradient(#67e8f9, #bef264); animation: pegel 1s ease-in-out infinite; }
.hc-toene-icon i { height: 40px; } .ton-logo i { width: 9px; height: 70px; border-radius: 5px; }
.hc-toene-icon i:nth-child(2n), .ton-logo i:nth-child(2n) { animation-delay: -.3s; }
.hc-toene-icon i:nth-child(3n), .ton-logo i:nth-child(3n) { animation-delay: -.6s; }
.hc-toene-icon i:nth-child(5n), .ton-logo i:nth-child(5n) { animation-delay: -.15s; }
@keyframes pegel { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

.ton-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #e6fffb;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background: radial-gradient(100% 60% at 50% 0%, rgba(34,211,238,0.18), transparent 60%), radial-gradient(80% 50% at 50% 100%, rgba(163,230,53,0.12), transparent 60%), #050b0a;
  font-family: "Outfit", system-ui, sans-serif;
}
.ton-buehne > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.ton-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,0.1); color: inherit; }
.ton-teil { display: grid; gap: 14px; animation: aufploppen .4s var(--ease-spring); }
#ton-intro { text-align: center; padding-top: 3vh; }
.ton-titel { font-size: 2.6rem; font-weight: 800; margin: 0; letter-spacing: -0.02em; background: linear-gradient(90deg, #67e8f9, #bef264, #67e8f9); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: farbfluss 5s linear infinite; }
.ton-lead { margin: 0 auto; max-width: 34ch; line-height: 1.5; color: #b5d6d1; }
.ton-hinweis { margin: 0; font-size: 0.85rem; color: #8fb5b0; }
.ton-challenge { background: rgba(190,242,100,0.12); border: 1px solid rgba(190,242,100,0.5); border-radius: 14px; padding: 12px; }
.ton-stufen button small { font-size: 0.7rem; }
.ton-buehne .btn { width: 100%; }
.ton-buehne .btn.ton-gross { font-size: 1.15rem; padding: 16px; background: linear-gradient(90deg, #22d3ee, #a3e635); color: #04201c; box-shadow: 0 10px 30px rgba(34,211,238,0.25); }
.ton-buehne .btn.secondary { background: rgba(255,255,255,0.1); color: inherit; box-shadow: none; }
.ton-best { font-size: 0.85rem; color: #8fb5b0; }
.ton-mitte { min-height: 70dvh; place-content: center; text-align: center; }
.ton-merk { text-align: center; font-size: 1.3rem; font-weight: 600; opacity: .85; }
.ton-welle { height: 150px; }
.ton-welle.klein { height: 110px; }
.welle-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.welle-svg path { fill: none; stroke-linecap: round; }
.welle-svg .w1 { stroke: #67e8f9; stroke-width: 3.5; filter: drop-shadow(0 0 8px rgba(103,232,249,0.9)); }
.welle-svg .w2 { stroke: #bef264; stroke-width: 2; opacity: .55; filter: drop-shadow(0 0 6px rgba(190,242,100,0.8)); }
.ton-countdown { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.ton-hz { text-align: center; font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ton-regler {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; border-radius: 22px; margin: 0; touch-action: none;
  background: linear-gradient(90deg, rgba(34,211,238,0.35) var(--pos, 50%), rgba(255,255,255,0.08) var(--pos, 50%));
  box-shadow: inset 0 0 0 1px rgba(103,232,249,0.35);
}
.ton-regler::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #fff 30%, #67e8f9 31%); box-shadow: 0 0 20px rgba(103,232,249,0.8); cursor: grab; }
.ton-regler::-moz-range-thumb { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 6px solid #67e8f9; }
.ton-skala { display: flex; justify-content: space-between; font-size: 0.8rem; opacity: .6; margin-top: -8px; }
.ton-tipp-klein { text-align: center; font-size: 0.85rem; opacity: .65; }
.ton-punkte { text-align: center; font-size: 3rem; font-weight: 800; line-height: 1; padding-top: 2vh; }
.ton-kommentar { text-align: center; font-size: 1.2rem; font-weight: 600; }
.ton-analyse { display: grid; gap: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(103,232,249,0.2); border-radius: 18px; padding: 14px; animation: aufploppen .45s var(--ease-spring) .15s backwards; }
.ton-skala-bild { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #0e7490, #22d3ee, #a3e635, #facc15); margin: 8px 6px 0; }
.ton-skala-bild i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.ton-skala-bild .tz { transform: rotate(45deg); border-radius: 2px; background: #050b0a; }
.ton-skala-bild .tm { border-radius: 50%; background: #fff; }
.ton-legende { display: flex; justify-content: space-between; font-size: 0.75rem; opacity: .65; }
.ton-tabelle td { font-size: 1rem; }
.ton-tabelle tr.diff.gut td { color: #4ade80; } .ton-tabelle tr.diff.mittel td { color: #fbbf24; } .ton-tabelle tr.diff.weit td { color: #f87171; }
.ton-hoer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ton-hoer button { border: 1.5px solid rgba(103,232,249,0.4); background: rgba(103,232,249,0.08); color: inherit; border-radius: 12px; padding: 10px 4px; font: inherit; font-weight: 600; cursor: pointer; }
.ton-hoer button:active { transform: scale(.96); background: rgba(103,232,249,0.25); }
#ton-aufloesung #tonWeiter { position: sticky; bottom: 0; z-index: 2; }
.ton-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ton-liste li { display: grid; grid-template-columns: 1fr auto 56px; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.06); cursor: pointer; animation: aufploppen .4s var(--ease-spring) backwards; }
.ton-liste li:nth-child(2) { animation-delay: .08s; } .ton-liste li:nth-child(3) { animation-delay: .16s; }
.ton-liste li:nth-child(4) { animation-delay: .24s; } .ton-liste li:nth-child(5) { animation-delay: .32s; }
.ton-liste .tl-n { font-weight: 600; }
.ton-liste .tl-c { font-size: 0.85rem; opacity: .7; font-variant-numeric: tabular-nums; }
.ton-liste b { text-align: right; font-size: 1.2rem; }

/* ---------- Weniger Bewegung, wenn gewünscht ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  #ambient { display: none; }
}

/* ===================================================================
   🔎 Wer war's? – Film noir: dunkles Arbeitszimmer, roter Faden, Grundriss auf Papier
   =================================================================== */
.hub-krimi { background: linear-gradient(#140c0c, #140c0c) padding-box, linear-gradient(90deg, #b91c1c, #f5e6c8, #3a2a20, #b91c1c) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(185,28,28,0.25); margin-top: 12px; animation-delay: .75s, 0s; }
.hub-krimi .hg-titel { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 1.9rem; letter-spacing: 0.06em; background: linear-gradient(90deg, #f5e6c8, #ef4444); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-krimi { --ring: conic-gradient(#b91c1c, #f5e6c8, #b91c1c, #1a0f0f, #b91c1c); }
.hg-av-krimi > .hg-in { background: #1f1414; border-color: #140c0c; }
.hc-krimi-icon { width: 58px; height: 58px; display: block; animation: lupe 3.2s ease-in-out infinite; }
.hc-krimi-icon svg { width: 100%; height: 100%; display: block; }
@keyframes lupe { 0%, 100% { transform: translate(-6px, 2px) rotate(-10deg); } 50% { transform: translate(6px, -3px) rotate(8deg); } }

.krimi-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; overflow-x: hidden; color: #f5e6c8;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 28px);
  background: radial-gradient(70% 45% at 50% 0%, rgba(255,214,140,0.16), transparent 70%), radial-gradient(90% 60% at 50% 110%, rgba(185,28,28,0.18), transparent 60%), #120d0b;
  font-family: "Outfit", system-ui, sans-serif;
}
.krimi-buehne > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.krimi-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,0.1); color: inherit; }
#krimiRunde { font-variant-numeric: tabular-nums; opacity: .8; }
.krimi-teil { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; animation: aufploppen .4s var(--ease-spring); }
#krimi-intro { text-align: center; padding-top: 2vh; }
/* Titelbild: Villa bei Nacht – Fenster glühen, Laternen flackern, jemand geht am Erker vorbei */
.villa-szene { position: relative; margin: -12px -16px -6px; padding-top: 12%; overflow: hidden; isolation: isolate; }
.vs-himmel {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8e0 60%, transparent), radial-gradient(1px 1px at 27% 8%, #fff8e0 60%, transparent),
    radial-gradient(1.5px 1.5px at 44% 22%, #fff8e0 60%, transparent), radial-gradient(1px 1px at 61% 6%, #fff8e0 60%, transparent),
    radial-gradient(1.2px 1.2px at 92% 30%, #fff8e0 60%, transparent), radial-gradient(1px 1px at 6% 40%, #fff8e0 60%, transparent),
    radial-gradient(1.3px 1.3px at 74% 14%, #fff8e0 60%, transparent),
    linear-gradient(#0a0814, #1a1222 60%, transparent);
  animation: sterne 5s ease-in-out infinite alternate;
}
@keyframes sterne { to { filter: brightness(1.6); } }
.vs-mond { position: absolute; right: 9%; top: 6%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fffbe8, #f2e3b6 60%, #d9c58f); box-shadow: 0 0 40px 14px rgba(255,240,200,0.25), 0 0 120px 40px rgba(255,240,200,0.08); }
.vs-haus { position: relative; }
.vs-haus img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.6)); }
.vs-haus i, .vs-haus span { position: absolute; pointer-events: none; }
.vs-glanz { width: var(--g); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,190,90,0.55), transparent 70%); mix-blend-mode: screen; animation: glimmen 4.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes glimmen { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.vs-laterne { width: 7%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,220,140,0.95), rgba(255,170,60,0.35) 35%, transparent 70%); mix-blend-mode: screen; animation: flackern 1.6s steps(1) infinite; animation-delay: var(--d, 0s); }
.vs-laterne.klein { width: 4%; }
@keyframes flackern { 0% { opacity: 1; } 12% { opacity: .7; } 20% { opacity: .95; } 41% { opacity: .6; } 47% { opacity: 1; } 70% { opacity: .82; } 86% { opacity: .5; } 92% { opacity: .95; } }
/* Im Dachfenster geht das Licht aus … und wieder an */
.vs-fenster-aus { background: #120c0a; border-radius: 2px; opacity: 0; animation: lichtAus 11s infinite; }
@keyframes lichtAus { 0%, 55% { opacity: 0; } 56% { opacity: .9; } 57% { opacity: .2; } 58%, 78% { opacity: .92; } 80%, 100% { opacity: 0; } }
/* Gestalt hinter dem Erkerfenster */
.vs-erker { overflow: hidden; }
.vs-gestalt {
  position: absolute; bottom: 4%; left: 0; width: 26%; height: 72%; opacity: .78; mix-blend-mode: multiply;
  background: radial-gradient(circle at 50% 13%, #2a1408 0 13%, transparent 14%), radial-gradient(ellipse 50% 60% at 50% 66%, #2a1408 0 60%, transparent 62%);
  filter: blur(1.5px); animation: vorbeigehen 13s ease-in-out infinite;
}
@keyframes vorbeigehen { 0%, 30% { transform: translateX(-120%); } 50% { transform: translateX(160%); } 58% { transform: translateX(160%); } 78%, 100% { transform: translateX(420%); } }
.vs-funkeln { width: 3%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, #fff, rgba(255,240,200,0.6) 30%, transparent 70%); border-radius: 50%; animation: funkeln 2.4s ease-in-out infinite; }
@keyframes funkeln { 0%, 100% { opacity: .2; transform: translate(-50%, -50%) scale(.6); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); } }
.vs-gluehwurm { width: 5px; height: 5px; border-radius: 50%; background: #fff3a0; box-shadow: 0 0 8px 3px rgba(255,240,140,0.7); animation: schwirren 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes schwirren { 0%, 100% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 50% { transform: translate(18px, -14px); opacity: .8; } 80% { transform: translate(-10px, -24px); opacity: 0; } }
.vs-nebel { position: absolute; left: -50%; right: -50%; bottom: -6%; height: 26%; pointer-events: none; background: radial-gradient(ellipse 30% 60% at 30% 60%, rgba(200,190,220,0.22), transparent 70%), radial-gradient(ellipse 25% 50% at 70% 70%, rgba(200,190,220,0.18), transparent 70%); filter: blur(6px); animation: nebel 22s linear infinite alternate; }
.vs-nebel.n2 { bottom: -10%; opacity: .7; animation-duration: 31s; animation-direction: alternate-reverse; }
@keyframes nebel { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
.vs-blitz { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at 30% 0%, rgba(220,225,255,0.55), transparent 70%); opacity: 0; animation: blitz 17s infinite; }
@keyframes blitz { 0%, 91% { opacity: 0; } 91.5% { opacity: 1; } 92% { opacity: .1; } 92.6% { opacity: .8; } 94%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .villa-szene * { animation: none !important; } }
.krimi-buehne .mini { display: inline-block; width: 1.6em; height: 1.6em; vertical-align: -0.45em; margin: 0 1px; }
.krimi-buehne img.mini { vertical-align: -0.45em; object-fit: contain; }
.krimi-buehne .mini img, .krimi-buehne .hut img, .krimi-orden img { width: 100%; height: 100%; display: block; object-fit: contain; }
.krimi-regeln { list-style: none; padding-left: 14px; }
.krimi-regeln li { padding-left: 0; }
.krimi-buehne .farb-stufen .hut { display: block; width: 54px; height: 54px; margin: -4px auto 0; transition: transform .25s var(--ease-spring); }
.krimi-buehne .farb-stufen button.on .hut { transform: scale(1.15) rotate(-6deg); }
.krimi-opfer { display: flex; align-items: center; gap: 10px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.35); border-radius: 14px; padding: 8px 12px; font-size: 0.88rem; line-height: 1.35; }
.ko-bild { width: 44px; height: 44px; flex: none; }
.krimi-sterne { display: flex; align-items: center; justify-content: center; gap: 2px; }
.ks-stern { width: 22px; height: 22px; }
.krimi-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px 8px; text-align: center; }
.kv-karte { display: grid; justify-items: center; gap: 5px; font-size: 0.75rem; line-height: 1.2; }
.kv-karte b { display: block; font-weight: 600; color: #f5e6c8; }
.kv-karte small { color: #b8a687; }
.kv-bild { width: 72px; height: 72px; }
.kv-h { text-align: left; margin-top: 18px; }
.krimi-orden { justify-self: center; display: grid; justify-items: center; }
.krimi-orden i { display: block; width: 92px; height: 92px; animation: stempel .5s cubic-bezier(.2,1.6,.4,1) both; }
.krimi-orden .krimi-stempel { font-size: 1.6rem; margin-top: -6px; }
.krimi-sterne { text-align: center; font-size: 0.85rem; color: #d9a441; letter-spacing: 0.02em; }
.krimi-tipp { background: #f5e6c8; color: #2b1d14; border-radius: 4px 14px 14px 14px; padding: 10px 14px; line-height: 1.45; font-size: 0.95rem; box-shadow: 0 8px 24px rgba(0,0,0,0.4); border-left: 4px solid #d9a441; }
.krimi-tipp.neu { animation: aufploppen .4s var(--ease-spring); }
.krimi-titel { margin: 0; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 3.6rem; letter-spacing: 0.06em; line-height: 1; color: #f5e6c8; text-shadow: 3px 3px 0 #b91c1c; }
.krimi-lead { margin: 0 auto; max-width: 34ch; line-height: 1.5; color: #d9c7a5; }
.krimi-regeln {
  text-align: left; margin: 0; padding: 14px 16px 14px 34px; border-radius: 4px; line-height: 1.45; font-size: 0.92rem;
  background: #f5e6c8; color: #2b1d14; box-shadow: 0 10px 30px rgba(0,0,0,0.4); transform: rotate(-0.8deg);
  background-image: repeating-linear-gradient(transparent 0 23px, rgba(43,29,20,0.08) 23px 24px);
}
.krimi-regeln li + li { margin-top: 4px; }
.krimi-buehne .btn { width: 100%; }
.krimi-buehne .btn.krimi-gross { font-size: 1.15rem; padding: 16px; background: linear-gradient(90deg, #b91c1c, #ef4444); color: #fff; box-shadow: 0 10px 30px rgba(185,28,28,0.35); }
.krimi-buehne .btn.secondary { background: rgba(255,255,255,0.08); color: inherit; box-shadow: none; }
.krimi-buehne .farb-stufen button { color: #f5e6c8; }
.krimi-best { font-size: 0.85rem; color: #b8a687; }

/* Grundriss */
.krimi-brett {
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); width: 100%; max-width: min(100%, 440px); margin: 0 auto; box-sizing: border-box;
  background: #cdb68c; border-radius: 6px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 0 3px #cdb68c, 0 0 0 6px #1a120e;
}
.kz {
  position: relative; aspect-ratio: 1; min-width: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; box-sizing: border-box;
  display: grid; place-items: center; color: #2b1d14; -webkit-tap-highlight-color: transparent;
}
.kz.fest { cursor: not-allowed; }
/* Böden: dunkel wie in einer Villa bei Nacht, Muster je Raumtyp */
.kz { background-color: var(--boden); }
.boden-parkett { background-image: linear-gradient(90deg, rgba(0,0,0,0.28) 1px, transparent 1px), linear-gradient(rgba(0,0,0,0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,220,170,0.07), transparent 45%, rgba(0,0,0,0.12)); background-size: 50% 100%, 100% 25%, 50% 25%; }
.boden-parkett:nth-child(2n) { background-position: 25% 0, 0 0, 25% 0; }
.boden-fliesen { background-image: conic-gradient(rgba(255,255,255,0.06) 25%, transparent 0 50%, rgba(255,255,255,0.06) 0 75%, transparent 0); background-size: 50% 50%; }
.boden-platten { background-image: linear-gradient(90deg, rgba(0,0,0,0.35) 1.5px, transparent 1.5px), linear-gradient(rgba(0,0,0,0.35) 1.5px, transparent 1.5px), radial-gradient(circle at 30% 30%, rgba(180,255,180,0.08), transparent 60%); background-size: 50% 50%, 50% 50%, 100% 100%; }
.boden-teppichboden { background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.5px); background-size: 6px 6px; }
.kz::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 40%, rgba(255,200,120,0.06), transparent 70%); }
.kz-raum {
  position: absolute; top: 2px; left: 2px; z-index: 3; pointer-events: none; white-space: nowrap; display: flex; align-items: center; gap: 2px;
  font-size: 0.52rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(20,12,8,0.85); color: #f5e6c8; padding: 1px 5px 1px 2px; border-radius: 4px; border: 1px solid rgba(205,182,140,0.35);
}
.kz-raum-icon { width: 14px; height: 14px; }
.kz-raum.rechts { left: auto; right: 2px; }
.kz.besetzt .kz-raum-text { display: none; }   /* steht jemand drauf: nur das Raum-Icon, das Gesicht bleibt frei */
.kz.besetzt .kz-raum { padding: 1px; }
.kz-moebel { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; z-index: 1; filter: drop-shadow(0 4px 4px rgba(0,0,0,0.55)); }
.kz-teppich { position: absolute; inset: 2%; width: 96%; height: 96%; object-fit: cover; opacity: .95; }
.kz.besetzt .kz-moebel { opacity: .4; }
/* Spielfiguren: runde Porträts mit Messingrand */
.kz-person, .kp-fig, .krimi-taeter-fig, .ko-bild, .kv-bild, .vh-fig, .ar-fig, .ak-opfer, .akte-opferbild, .akte-pbild, .akte-wbild {
  display: grid; place-items: center; border-radius: 50%; overflow: hidden; color: #f5e6c8; background: #1a120e;
  font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-style: italic;
  box-shadow: 0 0 0 2px #d9a441, 0 0 0 3px #2b1d14, 0 6px 12px rgba(0,0,0,0.5);
}
.kz-person img, .kp-fig img, .krimi-taeter-fig img, .ko-bild img, .kv-bild img, .vh-fig img, .ar-fig img, .ak-opfer img, .akte-opferbild img, .akte-pbild img, .akte-wbild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kz-person { position: absolute; inset: 9%; z-index: 2; font-size: clamp(1rem, 5.6vw, 1.7rem); animation: figurSetzen .35s var(--ease-spring); }
@keyframes figurSetzen { from { transform: translateY(-14px) scale(1.3); opacity: 0; } to { transform: none; opacity: 1; } }
.kz-person.opfer, .kp-fig.opfer, .krimi-taeter-fig.opfer, .ko-bild.opfer { box-shadow: 0 0 0 2px #ef4444, 0 0 0 3px #2b1d14, 0 0 14px rgba(239,68,68,0.6); }
.kz-person.opfer img, .kp-fig.opfer img, .ko-bild img { filter: grayscale(.85) contrast(1.1); }
.kz-person.konflikt { box-shadow: 0 0 0 3px #ef4444, 0 0 16px rgba(239,68,68,0.9); animation: shake .35s; }
.kz-kreuz { position: relative; z-index: 2; font-size: clamp(1rem, 6vw, 1.6rem); color: #ef4444; font-weight: 800; text-shadow: 0 0 6px rgba(0,0,0,0.8); }
.krimi-status { text-align: center; font-size: 0.9rem; color: #d9c7a5; min-height: 1.3em; }
.krimi-modus { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.krimi-modus button { border: 1px solid rgba(245,230,200,0.25); background: rgba(255,255,255,0.06); color: #f5e6c8; font: inherit; font-weight: 600; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.krimi-modus button.an { background: #f5e6c8; color: #2b1d14; border-color: #f5e6c8; }
.krimi-personen { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.kp {
  display: grid; justify-items: center; gap: 2px; width: 64px; padding: 6px 2px; border-radius: 14px; cursor: pointer; font: inherit;
  border: 2px solid rgba(245,230,200,0.2); background: rgba(255,255,255,0.05); color: #f5e6c8; transition: transform .15s;
}
.kp-fig { width: 44px; height: 44px; font-size: 1.3rem; margin-bottom: 3px; }
.kp.opfer .kp-n::after { content: " †"; color: #ef4444; }
.kp-n { font-size: 0.7rem; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp.an { border-color: #f5e6c8; background: rgba(245,230,200,0.18); transform: translateY(-3px); }
.kp.gesetzt { opacity: .4; }
.kp.gesetzt.an { opacity: 1; }
.kp.opfer .kp-n { color: #fca5a5; }
.krimi-h { margin: 8px 0 0; font-size: 1.1rem; }
.krimi-hinweise {
  margin: 0; padding: 12px 14px; list-style: none; border-radius: 4px; background: #f5e6c8; color: #2b1d14; font-size: 0.95rem; line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4); background-image: repeating-linear-gradient(transparent 0 27px, rgba(43,29,20,0.08) 27px 28px);
}
.krimi-hinweise li { padding: 4px 0 4px 26px; position: relative; }
.krimi-hinweise li::before { content: "•"; position: absolute; left: 8px; color: #8a6d4f; }
.krimi-hinweise li.ok { color: #6b5a47; text-decoration: line-through; text-decoration-color: rgba(22,101,52,0.5); }
.krimi-hinweise li.ok::before { content: ""; left: 0; top: 4px; width: 22px; height: 22px; background: url(img/krimi/richtig.webp) center / contain no-repeat; }
.krimi-hinweise li.falsch { color: #b91c1c; font-weight: 600; }
.krimi-hinweise li.falsch::before { content: ""; left: 0; top: 4px; width: 22px; height: 22px; background: url(img/krimi/falsch.webp) center / contain no-repeat; }
.krimi-aufgeben { background: none; border: 0; color: #8f7d63; font: inherit; font-size: 0.85rem; text-decoration: underline; cursor: pointer; margin-top: 6px; }

/* Auflösung */
.krimi-mitte { min-height: 75dvh; place-content: center; text-align: center; }
.krimi-stempel {
  justify-self: center; font-family: "Bebas Neue", Impact, sans-serif; font-size: 2.2rem; letter-spacing: 0.12em; color: #ef4444;
  border: 4px solid #ef4444; border-radius: 8px; padding: 2px 16px; transform: rotate(-8deg); animation: stempel .5s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes stempel { from { opacity: 0; transform: rotate(-8deg) scale(2.4); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
.krimi-taeter { justify-self: center; margin-top: 12px; animation: aufploppen .6s var(--ease-spring) .35s both; filter: drop-shadow(0 10px 30px rgba(239,68,68,0.5)); }
.krimi-taeter-fig { width: 150px; height: 150px; font-size: 4.2rem; box-shadow: 0 0 0 4px #d9a441, 0 0 0 7px #2b1d14, 0 0 0 11px #ef4444, 0 0 40px rgba(239,68,68,0.5); }
.krimi-endbrett { max-width: 260px; pointer-events: none; margin: 4px auto 10px; }
.krimi-endbrett .kz:not(.tatort) { filter: grayscale(.85) brightness(.35); }
.krimi-endbrett .kz.tatort { animation: tatort 1.6s ease-in-out infinite alternate; }
@keyframes tatort { to { box-shadow: inset 0 0 0 999px rgba(239,68,68,0.18); } }
.krimi-endbrett .kz-raum { display: none; }
.krimi-war { color: #b8a687; }
.krimi-name { font-family: "Bebas Neue", Impact, sans-serif; font-size: 3rem; letter-spacing: 0.05em; line-height: 1; text-shadow: 3px 3px 0 #b91c1c; }
.krimi-tatort { color: #d9c7a5; }
.krimi-zeit { font-variant-numeric: tabular-nums; margin-bottom: 10px; }

/* ---------- Krimi-Zentrale ---------- */
.km-h { margin-top: 18px; text-align: left; }
.krimi-modi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.km-karte {
  position: relative; display: grid; justify-items: start; gap: 3px; text-align: left; cursor: pointer; font: inherit; color: #f5e6c8;
  padding: 14px 14px 12px; border-radius: 18px; min-height: 150px; overflow: hidden;
  background: radial-gradient(120% 80% at 100% 0%, rgba(217,164,65,0.18), transparent 60%), linear-gradient(160deg, #2a1c15, #150d0a);
  border: 1px solid rgba(217,164,65,0.35); box-shadow: 0 12px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,240,210,0.08);
  animation: kartenAuftritt .55s var(--ease-spring) backwards; transition: transform .2s var(--ease-spring);
}
.km-karte:active { transform: scale(.96); }
.km-bild { width: 64px; height: 64px; margin-bottom: 4px; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5)); }
.km-bild img, .km-bild svg { width: 100%; height: 100%; display: block; object-fit: contain; }
.km-titel { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.6rem; letter-spacing: 0.05em; line-height: 1; }
.km-sub { font-size: 0.8rem; color: #c9b593; line-height: 1.3; }
.km-stand { margin-top: auto; padding-top: 6px; font-size: 0.75rem; color: #d9a441; }
.ks-kopf { display: flex; align-items: center; gap: 14px; text-align: left; margin-top: 8px; }
.ks-bild { width: 84px; height: 84px; flex: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.55)); }
.ks-bild img, .ks-bild svg { width: 100%; height: 100%; display: block; object-fit: contain; }
.ks-titel { margin: 0; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 2.6rem; letter-spacing: 0.05em; line-height: 1; text-shadow: 2px 2px 0 #b91c1c; }
.ks-kopf .krimi-lead { margin: 4px 0 0; max-width: none; }
#krimi-setup { text-align: center; }
.krimi-taeter-icon { width: 140px; height: 140px; object-fit: contain; }

/* ---------- Wachen der Villa: Laternen in edlen Räumen ---------- */
.wachen-brett { max-width: min(100%, 460px); }
.wz {
  position: relative; aspect-ratio: 1; min-width: 0; padding: 0; margin: 0; cursor: pointer; box-sizing: border-box; display: grid; place-items: center;
  background-color: var(--boden); -webkit-tap-highlight-color: transparent;
  background-image: linear-gradient(90deg, rgba(0,0,0,0.22) 1px, transparent 1px), linear-gradient(rgba(0,0,0,0.16) 1px, transparent 1px), radial-gradient(circle at 30% 25%, rgba(255,255,255,0.10), transparent 60%);
  background-size: 50% 100%, 100% 25%, 100% 100%; transition: filter .3s, box-shadow .3s;
}
.wz:nth-child(2n) { background-position: 25% 0, 0 0, 0 0; }
/* Nacht: alles dunkel – die Laternen machen Licht */
.wz::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(6,3,12,0.58); transition: background .45s; }
.wz.schein::after { background: rgba(20,10,4,0.42); }
.wz.hat-wache::after { background: transparent; }
/* Ein weicher, runder Lichtkegel je Laterne – über die Nachbarfelder hinweg */
.wz-licht { position: absolute; left: -100%; top: -100%; width: 300%; height: 300%; z-index: 2; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,170,70,0.42) 0%, rgba(255,150,50,0.20) 30%, rgba(255,140,40,0.07) 50%, transparent 68%);
  mix-blend-mode: screen; animation: lichtAn .5s ease-out; }
@keyframes lichtAn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.wachen-brett.alle-an .wz::after { background: radial-gradient(circle, rgba(255,210,130,0.25), transparent 80%) !important; }
.wz-kreuz { position: relative; z-index: 3; font-size: clamp(1rem, 6vw, 1.5rem); font-weight: 800; color: rgba(245,230,200,0.6); text-shadow: 0 1px 4px rgba(0,0,0,0.8); animation: aufploppen .25s var(--ease-spring); }
.wz-wache { position: absolute; inset: 1%; z-index: 3; filter: drop-shadow(0 0 6px rgba(255,220,140,1)) drop-shadow(0 0 18px rgba(255,170,60,0.85)) drop-shadow(0 3px 3px rgba(0,0,0,0.6)); animation: laterneAn .45s var(--ease-spring); }
.wz-wache svg, .w-symbol svg, .w-gross svg { width: 100%; height: 100%; display: block; }
.wz-wache .w-flamme, .w-symbol .w-flamme, .w-gross .w-flamme { transform-origin: 50% 70%; animation: flamme 1.4s ease-in-out infinite; }
@keyframes flamme { 0%, 100% { transform: scale(1); opacity: .9; } 40% { transform: scale(.88, 1.08); opacity: 1; } 70% { transform: scale(1.06, .95); opacity: .8; } }
@keyframes laterneAn { from { transform: translateY(-10px) scale(1.4); opacity: 0; filter: brightness(3); } to { transform: none; opacity: 1; } }
.wz-wache.konflikt { filter: drop-shadow(0 0 10px rgba(239,68,68,1)); animation: shake .35s; }
.wachen-brett.alle-an .wz { filter: brightness(1.25) saturate(1.15); transition: filter 1s; }
.wachen-brett.alle-an .wz-wache { animation: laterneAn .45s var(--ease-spring), pochen 1.2s ease-in-out infinite; }
.krimi-status.fehler { color: #fca5a5; }
.krimi-regel-kurz { text-align: center; font-size: 0.78rem; color: #8f7d63; margin: 0; }
.w-symbol { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(255,220,140,1)) drop-shadow(0 0 20px rgba(255,170,60,0.8)); }
.w-gross { display: block; width: 130px; height: 130px; filter: drop-shadow(0 0 30px rgba(255,190,80,0.9)); }
.krimi-endbrett.wachen-brett .wz { filter: brightness(1.2); }

/* ---------- Das Verhör: Lampe über dem Tisch, Aussagen wie Protokoll-Karten ---------- */
.vh-raum { position: relative; display: grid; gap: 10px; padding-top: 34px; }
.vh-lampe { position: absolute; left: 50%; top: -60px; width: 2px; height: 70px; background: #3a2a20; transform: translateX(-50%); pointer-events: none; animation: lampeSchwingt 6s ease-in-out infinite; transform-origin: 50% 0; }
.vh-lampe i { position: absolute; left: 50%; bottom: -14px; width: 46px; height: 22px; transform: translateX(-50%); border-radius: 46px 46px 6px 6px; background: linear-gradient(#5a4232, #2a1d15); box-shadow: 0 10px 40px 18px rgba(255,214,140,0.22); }
.vh-lampe i::after { content: ""; position: absolute; left: 50%; top: 20px; width: min(300px, 80vw); height: 420px; transform: translateX(-50%); background: radial-gradient(ellipse 45% 80% at 50% 0%, rgba(255,220,150,0.16), transparent 70%); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); }
@keyframes lampeSchwingt { 0%, 100% { transform: translateX(-50%) rotate(-2deg); } 50% { transform: translateX(-50%) rotate(2deg); } }
.vh-regel { text-align: center; font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.35rem; letter-spacing: 0.04em; color: #f5e6c8; background: rgba(185,28,28,0.18); border: 1px dashed rgba(239,68,68,0.6); border-radius: 10px; padding: 8px 12px; line-height: 1.15; }
.vh-karten { display: grid; gap: 12px; }
.vh-karte {
  position: relative; display: grid; gap: 8px; padding: 12px 14px; border-radius: 6px; color: #2b1d14;
  background: #f5e6c8; box-shadow: 0 10px 24px rgba(0,0,0,0.45); background-image: repeating-linear-gradient(transparent 0 27px, rgba(43,29,20,0.07) 27px 28px);
  animation: kartenAuftritt .5s var(--ease-spring) backwards; transition: opacity .3s, filter .3s;
}
.vh-karte:nth-child(odd) { transform: rotate(-0.6deg); } .vh-karte:nth-child(even) { transform: rotate(0.5deg); }
.vh-karte.raus { opacity: .45; filter: grayscale(1); }
.vh-karte.raus::after { content: "ENTLASTET"; position: absolute; right: 12px; top: 10px; font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.4rem; letter-spacing: 0.1em; color: #15803d; border: 3px solid #15803d; border-radius: 6px; padding: 0 8px; transform: rotate(8deg); }
.vh-kopf { display: flex; align-items: center; gap: 10px; }
.vh-fig { width: 58px; height: 58px; flex: none; }
.vh-name b { display: block; font-size: 1rem; }
.vh-name small { color: #6b5a47; font-size: 0.8rem; }
.vh-aussage { margin: 0; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 1.12rem; line-height: 1.35; padding: 8px 12px; background: #fffaf0; border-radius: 4px 14px 14px 14px; box-shadow: inset 0 0 0 1px rgba(43,29,20,0.12); position: relative; }
.vh-karte.ehrlich .vh-aussage { box-shadow: inset 0 0 0 2px #15803d; }
.vh-karte.luegt .vh-aussage { box-shadow: inset 0 0 0 2px #b91c1c; }
.vh-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vh-knoepfe button { font: inherit; font-weight: 600; border-radius: 10px; padding: 8px; cursor: pointer; border: 1px solid rgba(43,29,20,0.3); background: rgba(43,29,20,0.06); color: #2b1d14; }
.vh-karte.ehrlich .vh-notiz { background: rgba(21,128,61,0.15); color: #15803d; border-color: #15803d; }
.vh-karte.luegt .vh-notiz { background: rgba(185,28,28,0.12); color: #b91c1c; border-color: #b91c1c; }
.vh-anklage { background: #b91c1c !important; color: #fff !important; border-color: #7f1d1d !important; }
.vh-anklage:disabled { opacity: .35; }
.vh-modus { grid-template-columns: 1fr; }

/* ---------- Alibi-Raster: Ermittler-Tabelle auf Papier ---------- */
.ar-rahmen { overflow-x: auto; margin: 0 -6px; padding: 6px; }
.alibi-raster {
  border-collapse: separate; border-spacing: 0; margin: 0 auto; background: #f5e6c8; color: #2b1d14; border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45); overflow: hidden; table-layout: fixed;
  --zelle: clamp(24px, calc((100vw - 120px) / var(--spalten)), 44px);
}
.alibi-raster th, .alibi-raster td { padding: 0; text-align: center; }
.ar-kat { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 0.95rem; letter-spacing: 0.08em; background: #2b1d14; color: #f5e6c8; padding: 4px 0 !important; border-left: 3px solid #f5e6c8; }
.ar-wert { width: var(--zelle); height: calc(var(--zelle) + 6px); background: #eadbb9; border-bottom: 2px solid #2b1d14; vertical-align: middle; }
.ar-icon { width: calc(var(--zelle) - 4px); height: calc(var(--zelle) - 4px); object-fit: contain; display: block; margin: 0 auto; }
.ar-zeit { display: block; line-height: 1; }
.ar-zeit b { display: block; font-size: 0.78rem; font-weight: 800; }
.ar-zeit small { display: block; font-size: 0.55rem; opacity: .7; }
@media (max-width: 370px) {
  .ar-person span:not(.ar-fig) { display: none; }
  .ar-person { padding: 2px 3px !important; }
  .alibi-raster { --zelle: clamp(20px, calc((100vw - 70px) / var(--spalten)), 44px); }
}
.ar-person { text-align: left !important; padding: 2px 6px 2px 4px !important; white-space: nowrap; font-size: 0.78rem; font-weight: 700; background: #eadbb9; border-right: 2px solid #2b1d14; }
.ar-person span { vertical-align: middle; }
.ar-fig { display: inline-grid !important; width: 26px; height: 26px; vertical-align: middle; margin-right: 4px; }
.ar-fig img { width: 100%; height: 100%; object-fit: cover; }
.ar-zelle { width: var(--zelle); height: var(--zelle); border-right: 1px solid rgba(43,29,20,0.18); border-bottom: 1px solid rgba(43,29,20,0.18); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ar-block { border-left: 3px solid #2b1d14; }
.ar-zelle:active { background: rgba(217,164,65,0.3); }
.ar-ja { color: #15803d; font-weight: 900; font-size: calc(var(--zelle) * 0.62); line-height: 1; display: block; animation: aufploppen .25s var(--ease-spring); }
.ar-nein { color: #b91c1c; font-weight: 800; font-size: calc(var(--zelle) * 0.5); line-height: 1; display: block; }
.ar-nein.auto { color: rgba(43,29,20,0.22); animation: none; }
.ar-modus { grid-template-columns: 1fr 1fr; }
.ar-hinweise li { cursor: pointer; }

/* ---------- Ermittlungsakte: Aktendeckel, Polaroid, Stempel, Handschrift ---------- */
.ak-karte {
  position: relative; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; font: inherit;
  color: #3a2716; padding: 30px 16px 18px; margin-top: 10px; border-radius: 4px 14px 14px 14px;
  background: linear-gradient(170deg, #e2c48d, #c9a46a 70%, #b8925a); box-shadow: 0 16px 40px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.25), inset 0 -30px 60px rgba(120,80,30,0.25);
  animation: kartenAuftritt .6s var(--ease-spring) backwards; transition: transform .2s var(--ease-spring);
}
.ak-karte:active { transform: scale(.97); }
.ak-reiter { position: absolute; left: 0; top: -14px; padding: 4px 14px 6px; border-radius: 8px 8px 0 0; background: #d9bb80; font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: 0.1em; font-size: 0.95rem; }
.ak-foto { flex: none; padding: 5px 5px 16px; background: #fff; box-shadow: 0 6px 14px rgba(0,0,0,0.35); transform: rotate(-5deg); position: relative; }
.ak-foto::before { content: ""; position: absolute; top: -10px; left: 50%; width: 12px; height: 30px; border: 3px solid #9aa3ad; border-radius: 8px; transform: translateX(-50%) rotate(8deg); }
.ak-opfer { width: 70px; height: 70px; border-radius: 2px !important; box-shadow: none !important; }
.ak-text { display: grid; gap: 2px; min-width: 0; }
.ak-klein { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: .75; }
.ak-titel { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.7rem; line-height: 1; letter-spacing: 0.03em; }
.ak-sub { font-size: 0.85rem; line-height: 1.3; }
.ak-punkte { display: flex; gap: 5px; margin-top: 6px; }
.ak-punkte i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #7a5428; }
.ak-punkte i.an { background: #7a1f1f; border-color: #7a1f1f; }
.ak-punkte i:last-child { border-radius: 3px; }
.ak-stempel { position: absolute; right: 10px; top: 8px; font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: 0.12em; font-size: 1rem; color: #a3241f; border: 2px solid #a3241f; padding: 0 6px; border-radius: 4px; transform: rotate(6deg); opacity: .85; }
.ak-karte.zu .ak-stempel { color: #1d6b3a; border-color: #1d6b3a; }

.krimi-teil.akte { gap: 12px; }
.akte-deckblatt {
  position: relative; color: #3a2716; border-radius: 4px 14px 14px 14px; padding: 16px; margin-top: 18px;
  background: linear-gradient(170deg, #e8cf9c, #cfac72); box-shadow: 0 16px 40px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.akte-kopf { display: flex; justify-content: space-between; align-items: center; font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: 0.1em; font-size: 1.1rem; margin-bottom: 10px; }
.akte-geheim { color: #a3241f; border: 2px solid #a3241f; padding: 0 8px; border-radius: 4px; transform: rotate(-4deg); }
.akte-opfer { display: flex; gap: 14px; align-items: flex-start; }
.akte-polaroid { flex: none; padding: 6px 6px 22px; background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,0.35); transform: rotate(-4deg); position: relative; }
.akte-polaroid::before { content: ""; position: absolute; top: -12px; left: 18px; width: 12px; height: 34px; border: 3px solid #9aa3ad; border-radius: 8px; transform: rotate(10deg); }
.akte-opferbild { width: 92px; height: 92px; border-radius: 2px !important; box-shadow: none !important; }
.akte-opfer h2 { margin: 0 0 4px; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 1.8rem; line-height: 1; letter-spacing: 0.03em; }
.akte-story { margin: 0; font-size: 0.9rem; line-height: 1.4; }
.akte-verdacht { margin-top: 12px; font-size: 0.85rem; }
.akte-leute { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.akte-person { display: grid; justify-items: center; gap: 3px; font-family: "Caveat", cursive; font-size: 1.15rem; font-weight: 600; }
.akte-pbild { width: 52px; height: 52px; }
.akte-kapitel {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer;
  background: #f5e6c8; color: #2b1d14; border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,0.4); position: relative;
  background-image: repeating-linear-gradient(transparent 0 25px, rgba(43,29,20,0.07) 25px 26px);
  animation: kartenAuftritt .5s var(--ease-spring) backwards;
}
.akte-kapitel:nth-of-type(even) { transform: rotate(-0.4deg); } .akte-kapitel:nth-of-type(odd) { transform: rotate(0.4deg); }
.akte-kapitel.zu { opacity: .5; cursor: default; filter: grayscale(.6); }
.akte-kapitel.dran { box-shadow: 0 0 0 3px #d9a441, 0 8px 24px rgba(217,164,65,0.35); }
.akk-nr { font-family: "Bebas Neue", Impact, sans-serif; font-size: 2rem; color: #a3241f; width: 22px; text-align: center; }
.akk-icon { width: 40px; height: 40px; }
.akk-icon img { width: 100%; height: 100%; object-fit: contain; }
.akk-text b { display: block; font-size: 0.98rem; }
.akk-text small { color: #6b5a47; font-size: 0.8rem; }
.akk-beweis { margin: 6px 0 0; font-family: "Caveat", cursive; font-size: 1.25rem; font-weight: 600; color: #1e3a8a; line-height: 1.15; }
.akk-status { font-size: 1.3rem; font-weight: 800; }
.akte-kapitel.fertig .akk-status { color: #15803d; }
.akte-kapitel.dran .akk-status { color: #a3241f; animation: pochen 1.6s ease-in-out infinite; }
.akte-finale { text-align: center; padding: 16px; border-radius: 14px; border: 2px dashed rgba(217,164,65,0.6); background: rgba(217,164,65,0.08); display: grid; gap: 10px; }
.akte-finale.zu { opacity: .55; }
.akte-finale h3 { margin: 0; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 1.8rem; letter-spacing: 0.05em; }
.akte-finale p { margin: 0; color: #d9c7a5; }
.akte-anklage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.akte-wahl { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; border: 1px solid rgba(245,230,200,0.25); background: rgba(255,255,255,0.05); color: #f5e6c8; font: inherit; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.akte-wahl:disabled { opacity: .3; filter: grayscale(1); }
.akte-wbild { width: 58px; height: 58px; }
.akte-fehler { color: #fca5a5 !important; min-height: 1.2em; }
.akte-zu-stempel { justify-self: center; font-family: "Bebas Neue", Impact, sans-serif; font-size: 2rem; letter-spacing: 0.12em; color: #22c55e; border: 4px solid #22c55e; border-radius: 8px; padding: 0 14px; transform: rotate(-6deg); }
.akte-schluss { font-size: 0.95rem; }

/* ---------- Spielregeln: „?“-Knopf und Regelblatt ---------- */
.k-kopf-rechts { display: flex; align-items: center; gap: 10px; }
.k-hilfe-btn { font-weight: 800; font-size: 1.1rem; }
.ks-unter { font-family: "Caveat", cursive; font-size: 1.3rem; font-weight: 600; color: #d9a441; line-height: 1.1; margin-top: 2px; }
.ks-anleitung { text-align: left; background: rgba(245,230,200,0.06); border: 1px solid rgba(245,230,200,0.15); border-radius: 12px; padding: 10px 14px; }
.ks-anleitung summary { cursor: pointer; font-weight: 700; }
.ks-anleitung ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.45; font-size: 0.92rem; color: #e5d5b5; }
.ks-anleitung li + li { margin-top: 6px; }
.krimi-hilfe {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto; padding: calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 20px);
  background: rgba(8,5,4,0.78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: einblenden .25s ease-out;
}
.kh-blatt {
  max-width: 480px; margin: 0 auto; padding: 18px 18px 16px; border-radius: 6px; color: #2b1d14; display: grid; gap: 8px;
  background: #f5e6c8; box-shadow: 0 20px 60px rgba(0,0,0,0.6); background-image: repeating-linear-gradient(transparent 0 27px, rgba(43,29,20,0.07) 27px 28px);
  animation: aufploppen .35s var(--ease-spring);
}
.kh-kopf { display: flex; align-items: center; gap: 12px; }
.kh-bild { width: 64px; height: 64px; flex: none; }
.kh-bild img, .kh-bild svg, .kh-bild .w-symbol { width: 100%; height: 100%; display: block; object-fit: contain; }
.kh-kopf h3 { margin: 0; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 2.2rem; letter-spacing: 0.04em; line-height: 1; }
.kh-kopf .ks-unter { color: #a3241f; }
.kh-blatt h4 { margin: 8px 0 0; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8a6d4f; }
.kh-liste { margin: 0; padding-left: 22px; line-height: 1.45; font-size: 0.95rem; }
.kh-liste li + li { margin-top: 6px; }
.kh-liste .mini { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: -0.4em; }
.kh-liste .mini img { width: 100%; height: 100%; object-fit: contain; }
.kh-schritte li::marker { color: #a3241f; font-weight: 800; }
.kh-blatt .btn { width: 100%; margin-top: 8px; }

/* ---------- Farb-Gedächtnis: Farbtopf und „Mitte finden“ ---------- */
.farb-vorschau { position: relative; }
.farb-vorschau.topf-leer {
  background: repeating-conic-gradient(rgba(255,255,255,0.06) 0 25%, transparent 0 50%) 0 0 / 22px 22px, rgba(255,255,255,0.04) !important;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18), inset 0 -30px 60px rgba(0,0,0,0.35); color: rgba(255,255,255,0.7);
}
.topf-tropfen { position: absolute; top: 0; width: 18px; height: 22px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; pointer-events: none; box-shadow: inset -3px -4px 0 rgba(0,0,0,0.15), inset 3px 3px 0 rgba(255,255,255,0.3); }
.farb-topf { display: grid; gap: 10px; }
.topf-hinweis { text-align: center; font-size: 0.9rem; font-weight: 600; opacity: .85; min-height: 1.3em; }
.topf-tuben { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tube {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 2px 8px; border-radius: 16px; cursor: pointer; font: inherit; color: inherit;
  border: 1.5px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); transition: transform .12s var(--ease-spring);
}
.tube:active { transform: scale(.9); }
.tube-klecks {
  width: 44px; height: 44px; border-radius: 46% 54% 50% 50% / 55% 50% 50% 45%;
  box-shadow: inset -5px -6px 0 rgba(0,0,0,0.18), inset 5px 5px 0 rgba(255,255,255,0.35), 0 6px 14px rgba(0,0,0,0.35);
}
.tube-name { font-size: 0.75rem; font-weight: 700; }
.tube-zahl { position: absolute; top: -8px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: #fff; color: #111; font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.tube-zahl:empty { display: none; }
.tube.drin { border-color: rgba(255,255,255,0.55); }
.topf-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topf-knoepfe button { font: inherit; font-weight: 600; padding: 9px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: inherit; cursor: pointer; }
.topf-knoepfe button:disabled { opacity: .35; }
.farb-rezept { display: grid; gap: 4px; font-size: 0.92rem; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.06); }
.farb-rezept small { opacity: .7; }
.rezept-tipp { margin-top: 4px; font-weight: 700; }
.farb-mitte-leiste { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.farb-mitte-leiste span { height: 44px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 6px 16px rgba(0,0,0,0.3); }
.farb-mitte-leiste b { font-size: 0.85rem; opacity: .8; }
.farb-mitte-erg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
.farb-mitte-erg i { display: block; height: 46px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.farb-mitte-erg span:nth-child(2) i, .farb-mitte-erg span:nth-child(3) i { box-shadow: 0 0 0 2px #fff; }
.farb-mitte-erg small { font-size: 0.72rem; opacity: .8; }

/* ===================================================================
   Dashboard: Quizzes als eigene Zeile wie die Games
   Die Diashow nutzt nur transform/opacity und pausiert außerhalb des Bildes.
   =================================================================== */
.hub-liste { display: grid; gap: 12px; }
.hub-liste .hub-game:nth-child(2) { animation-delay: .52s, 0s; } .hub-liste .hub-game:nth-child(3) { animation-delay: .59s, 0s; }
.hub-liste .hub-game:nth-child(4) { animation-delay: .66s, 0s; } .hub-liste .hub-game:nth-child(5) { animation-delay: .73s, 0s; }
.hub-quizzeile { background: linear-gradient(#111119, #111119) padding-box, linear-gradient(90deg, #38e1ff, #0a6aa8, #e10600, #ffb347, #f2a7bf, #38e1ff) border-box; background-size: 100% 100%, 300% 100%; }
.hub-quizzeile .hg-titel { background-image: linear-gradient(90deg, #7dd3fc, #c4b5fd, #fda4af, #ffd36e); }
.hg-av-quiz { --ring: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.hg-av-quiz > .hg-in { background: #0b3a5c; }

.cb-kachel { position: relative; overflow: hidden; }
.cb-kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.cb-kachel.geladen img { opacity: 1; }
.cb-dia { position: absolute; inset: 0; opacity: 0; animation: diaWechsel 16s infinite; animation-delay: calc(var(--i) * 4s); }
.cb-dia img { animation: kenBurns 16s ease-in-out infinite; animation-delay: calc(var(--i) * 4s); transform-origin: 60% 40%; }
.cb-dia-name { display: none; }
@keyframes diaWechsel { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kenBurns { 0% { transform: scale(1.02) translate(0, 0); } 30% { transform: scale(1.14) translate(-3%, -2%); } 100% { transform: scale(1.14) translate(-3%, -2%); } }
.hg-in:not(.sichtbar) .cb-dia, .hg-in:not(.sichtbar) .cb-dia img, .cover-bild:not(.sichtbar) * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .cb-dia, .cb-dia img { animation: none !important; } .cb-dia { opacity: 0; } .cb-dia:first-child { opacity: 1; }
}
.hub-ds { display: block; text-align: center; color: var(--muted); opacity: .7; font-size: 0.8rem; margin: 6px 0 10px; }

/* ---------- Emoji-Regen ---------- */
.emoji-regen { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.emoji-regen span { position: absolute; top: 0; line-height: 1; will-change: transform; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25)); }


/* ---------- Installieren-Hinweis ---------- */
.install-karte {
  position: relative; display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 40px 12px 12px;
  border-radius: 16px; background: linear-gradient(135deg, rgba(214,41,118,0.16), rgba(79,91,213,0.14)), #111119;
  border: 1px solid rgba(242,237,230,0.12); animation: kartenAuftritt .5s var(--ease-spring) .3s backwards;
}
.install-icon { width: 48px; height: 48px; border-radius: 11px; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.install-text { display: grid; gap: 2px; font-size: 0.85rem; color: var(--muted, #a69f95); line-height: 1.35; }
.install-text b { color: var(--text, #f2ede6); font-size: 0.98rem; }
.install-text b:not(:first-child) { font-size: inherit; }
.teilen-symbol { display: inline-grid; place-items: center; vertical-align: -3px; color: #4f8dff; }
.install-los { flex: none; border: 0; border-radius: 999px; padding: 9px 14px; font: inherit; font-weight: 700; background: #fff; color: #111; cursor: pointer; }
.install-zu { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted, #a69f95); font-size: 1.3rem; cursor: pointer; }

/* ---------- Gefühl wie eine App ---------- */
button, a, .cover, .kz, .wz, .ar-zelle { touch-action: manipulation; -webkit-touch-callout: none; }
button, .cover { -webkit-user-select: none; user-select: none; }
@media (display-mode: standalone) {
  html, body { overscroll-behavior-y: none; }   /* kein Gummiband-Ziehen über den Rand der App */
}
.hub-liste > .hub-game { margin: 0; }

/* ===================================================================
   Bühne: das ganze Dashboard als kleine Szene – Farbbalken, Noten, Tonwelle, Lupe,
   Porsche und Gretchen auf der Küstenstraße, Wal und Hai im Meer. Jede Figur startet ihr Spiel.
   Nur transform/opacity; außerhalb des Bildes (ohne .sichtbar) steht alles still.
   =================================================================== */
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.buehne {
  position: relative; height: 270px; margin: 0 -16px 18px; overflow: hidden;
  padding-top: env(safe-area-inset-top);
  -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent);
}
.buehne:not(.sichtbar) *, .buehne:not(.sichtbar) *::before { animation-play-state: paused !important; }
.buehne .hub-knoepfe { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 16px; z-index: 5; }
.buehne .profil-btn { padding: 4px; min-height: 0; border-radius: 50%; }
.buehne .profil-btn .pb-name { display: none; }
.bu-ding {
  position: absolute; z-index: 2; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent; animation: buAuftritt .7s var(--ease-spring) backwards;
}
.bu-ding:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 12px; }
@keyframes buAuftritt { from { opacity: 0; transform: translateY(24px) scale(.6); } }

/* Sternenhimmel, der leise funkelt */
.bu-sterne {
  position: absolute; inset: 0 0 45% 0; opacity: .7; animation: buFunkeln 3.5s ease-in-out infinite alternate;
  background:
    radial-gradient(1.4px 1.4px at 8% 22%, #fff 60%, transparent), radial-gradient(1px 1px at 22% 8%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 38% 30%, #fff 60%, transparent), radial-gradient(1px 1px at 55% 12%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 68% 34%, #fff 60%, transparent), radial-gradient(1px 1px at 82% 46%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 94% 26%, #fff 60%, transparent), radial-gradient(1px 1px at 30% 52%, #fff 60%, transparent);
}
@keyframes buFunkeln { from { opacity: .35; } to { opacity: .9; } }

/* Farb-Gedächtnis: tanzende Farbbalken */
.bu-farben { left: 6%; bottom: 112px; display: flex; align-items: flex-end; gap: 5px; height: 74px; animation-delay: .05s; }
.bu-farben i { display: block; width: 10px; height: 100%; border-radius: 5px; transform-origin: 50% 100%; animation: buBalken 1.6s ease-in-out infinite alternate; }
.bu-farben i:nth-child(1) { background: #ff5e62; animation-delay: -.2s; } .bu-farben i:nth-child(2) { background: #ffb347; animation-delay: -.9s; }
.bu-farben i:nth-child(3) { background: #4ade80; animation-delay: -.5s; } .bu-farben i:nth-child(4) { background: #38bdf8; animation-delay: -1.3s; }
.bu-farben i:nth-child(5) { background: #a78bfa; animation-delay: -.7s; }
@keyframes buBalken { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* Cello: Noten steigen auf */
.bu-cello { left: 31%; bottom: 108px; width: 64px; height: 96px; animation-delay: .12s; }
.bu-cello span { position: absolute; bottom: 0; width: 22px; animation: buNote 3.6s ease-out infinite; opacity: 0; }
.bu-cello span:nth-child(1) { left: 0; } .bu-cello span:nth-child(2) { left: 22px; animation-delay: 1.2s; } .bu-cello span:nth-child(3) { left: 42px; animation-delay: 2.4s; }
.bu-cello svg { display: block; width: 100%; fill: #f3d9a4; stroke: #f3d9a4; filter: drop-shadow(0 0 6px rgba(243,217,164,.5)); }
@keyframes buNote { 0% { opacity: 0; transform: translateY(10px) rotate(-8deg); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-58px) rotate(10deg); } }

/* Töne: laufende Schallwelle */
.bu-toene { left: 50%; bottom: 120px; width: 104px; height: 56px; padding: 8px 0; overflow: hidden; animation-delay: .2s;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.bu-ton { display: block; width: 200%; height: 100%; animation: buLaufen 1.8s linear infinite; }
.bu-ton svg { width: 100%; height: 100%; fill: none; stroke: #67e8f9; stroke-width: 3; filter: drop-shadow(0 0 5px rgba(103,232,249,.7)); }
@keyframes buLaufen { to { transform: translateX(-50%); } }

/* Krimi: Lupe sucht mit Lichtkegel */
.bu-krimi { right: 5%; bottom: 100px; width: 74px; height: 74px; animation-delay: .28s; }
.bu-krimi img { position: relative; width: 100%; height: 100%; object-fit: contain; animation: buSuchen 6s ease-in-out infinite; }
.bu-licht { position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(circle, rgba(255,236,170,.35), transparent 62%); animation: buSuchen 6s ease-in-out infinite; }
@keyframes buSuchen { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 25% { transform: translate(-16px, -8px) rotate(-12deg); } 50% { transform: translate(-4px, 6px) rotate(6deg); } 75% { transform: translate(8px, -6px) rotate(10deg); } }

/* Küstenstraße mit Porsche und Gretchen */
.bu-strasse { position: absolute; left: 0; right: 0; bottom: 62px; height: 26px; background: linear-gradient(#24242e, #17171f); box-shadow: 0 -1px 0 rgba(255,255,255,.12); overflow: hidden; }
.bu-strasse i { position: absolute; left: 0; top: 12px; width: 200%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 18px, transparent 18px 36px); animation: buLaufen 2.4s linear infinite; }
.bu-porsche { left: 0; bottom: 74px; width: 96px; z-index: 3; animation: buFahren 9s cubic-bezier(.45,0,.55,1) infinite; }
.bu-porsche svg { display: block; width: 100%; overflow: visible; }
.bu-karosse { fill: #e10600; } .bu-fenster { fill: #1d2a3a; }
.bu-rad circle { fill: #15151b; stroke: #2b2b33; stroke-width: 2; } .bu-rad path { stroke: #9a9aa8; stroke-width: 1.6; stroke-linecap: round; }
.bu-rad { animation: buDrehen .5s linear infinite; }
@keyframes buDrehen { to { transform: rotate(1turn); } }
@keyframes buFahren { 0% { transform: translateX(-120px); } 55% { transform: translateX(calc(100vw + 20px)); } 100% { transform: translateX(calc(100vw + 20px)); } }
.bu-dackel { right: 26%; bottom: 76px; width: 44px; height: 44px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, #fbd3df, #c2577a); animation: buAuftritt .7s var(--ease-spring) .35s backwards, buTrab 2.8s ease-in-out .9s infinite; }
.bu-dackel img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@keyframes buTrab { 0%, 100% { transform: translate(0, 0); } 12% { transform: translate(-6px, -8px); } 24% { transform: translate(-12px, 0); } 36% { transform: translate(-18px, -8px); } 48% { transform: translate(-24px, 0); } 62% { transform: translate(-16px, -6px); } 76% { transform: translate(-8px, 0); } 88% { transform: translate(-4px, -5px); } }

/* Meer mit Wal und Hai */
.bu-meer { position: absolute; left: 0; bottom: 0; width: 200%; height: 64px; animation: buLaufen 7s linear infinite; pointer-events: none; }
.bu-meer svg { display: block; width: 100%; height: 100%; }
.bu-meer-hinten { height: 70px; z-index: 1; animation-duration: 11s; animation-direction: reverse; }
.bu-meer-hinten path { fill: #0a3d66; }
.bu-meer-vorne { height: 36px; z-index: 3; }
.bu-meer-vorne path { fill: #062a49; }
.bu-wal { left: 10%; bottom: 8px; width: 120px; animation: buAuftritt .7s var(--ease-spring) .4s backwards, buSchaukeln 4s ease-in-out 1.1s infinite; }
.bu-wal svg { display: block; width: 100%; fill: #38a3e8; }
.bu-wal .bu-bauch { fill: #a5dcff; }
.bu-fontaene { position: absolute; left: 30px; top: -10px; width: 24px; height: 30px; z-index: 1; }
.bu-fontaene i { position: absolute; left: 8px; bottom: 0; width: 8px; height: 8px; border-radius: 50%; background: #bfe9ff; opacity: 0; animation: buFontaene 2.4s ease-out infinite; }
.bu-fontaene i:nth-child(2) { animation-delay: .25s; left: 2px; } .bu-fontaene i:nth-child(3) { animation-delay: .5s; left: 12px; }
@keyframes buFontaene { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 60% { opacity: 0; transform: translateY(-26px) scale(1.4); } 100% { opacity: 0; } }
@keyframes buSchaukeln { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
.bu-hai { right: 0; bottom: 18px; width: 46px; animation: buAuftritt .7s var(--ease-spring) .45s backwards, buKreisen 14s linear 1.2s infinite; }
.bu-hai svg { display: block; width: 100%; fill: #4c5e6e; stroke: rgba(255,255,255,.25); }
@keyframes buKreisen { 0% { transform: translateX(60px); } 100% { transform: translateX(calc(-100vw - 60px)); } }


/* ---------- Universum: alle Spiele kreisen auf drei Bahnen um eine Sonne (Position per JS über `translate`) ---------- */
.buehne { height: 310px; background: radial-gradient(ellipse 120% 90% at 50% 40%, #15123a, #070814 70%); }
.buehne .bu-ding { left: 0; top: 0; right: auto; bottom: auto; will-change: translate; }
.bu-nebel { position: absolute; inset: -10%; pointer-events: none; animation: buNebel 22s ease-in-out infinite alternate;
  background: radial-gradient(ellipse 45% 40% at 22% 32%, rgba(124,58,237,.42), transparent 70%), radial-gradient(ellipse 42% 40% at 84% 68%, rgba(13,148,136,.34), transparent 70%),
    radial-gradient(ellipse 34% 30% at 62% 14%, rgba(219,39,119,.26), transparent 70%), radial-gradient(ellipse 30% 26% at 12% 82%, rgba(56,189,248,.18), transparent 70%); }
@keyframes buNebel { to { transform: scale(1.1) rotate(4deg) translateX(8px); } }
.buehne .bu-sterne { inset: 0; }
.bu-sterne2 { animation-duration: 5s; animation-delay: -2.2s;
  background:
    radial-gradient(1px 1px at 4% 64%, #fff 60%, transparent), radial-gradient(1.6px 1.6px at 15% 90%, #c4b5fd 60%, transparent),
    radial-gradient(1px 1px at 47% 72%, #fff 60%, transparent), radial-gradient(1.3px 1.3px at 61% 88%, #a5f3fc 60%, transparent),
    radial-gradient(1px 1px at 76% 6%, #fff 60%, transparent), radial-gradient(1.8px 1.8px at 88% 80%, #fde68a 60%, transparent),
    radial-gradient(1px 1px at 97% 58%, #fff 60%, transparent), radial-gradient(1.2px 1.2px at 42% 4%, #fff 60%, transparent),
    radial-gradient(1px 1px at 33% 66%, #fff 60%, transparent), radial-gradient(1.4px 1.4px at 70% 50%, #fff 60%, transparent); }
.bu-schnuppe { position: absolute; top: 16%; left: 72%; width: 90px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); transform: rotate(-24deg); opacity: 0; pointer-events: none; animation: buSchnuppe 9s ease-in 2.5s infinite; }
@keyframes buSchnuppe { 0% { opacity: 0; translate: 0 0; } 2% { opacity: 1; } 9% { opacity: 0; translate: -240px 110px; } 100% { opacity: 0; translate: -240px 110px; } }
.bu-bahnen { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.bu-bahnen ellipse { fill: none; stroke: rgba(196,181,253,.22); stroke-width: 1.2; stroke-dasharray: 2 6; }
.bu-sonne { position: absolute; left: 50%; top: 48%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 38% 34%, #fff6d0, #ffb347 32%, #f0507a 72%, #7c3aed);
  box-shadow: 0 0 26px 8px rgba(255,160,80,.5), 0 0 80px 30px rgba(240,80,122,.22); animation: buSonne 4s ease-in-out infinite alternate; }
.bu-sonne i { position: absolute; inset: -16px; border-radius: 50%; filter: blur(5px); animation: buDrehen 18s linear infinite;
  background: conic-gradient(rgba(255,200,120,0), rgba(255,200,120,.4), rgba(255,200,120,0) 30%, rgba(255,120,160,.35), rgba(255,120,160,0) 60%, rgba(255,220,140,.35), rgba(255,200,120,0)); }
@media (max-width: 599px) { .bu-sonne { width: 46px; height: 46px; margin: -23px 0 0 -23px; } }
@keyframes buSonne { to { box-shadow: 0 0 34px 12px rgba(255,170,90,.6), 0 0 100px 40px rgba(240,80,122,.28); } }
.bu-planet { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; line-height: 1;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.75), var(--p1) 24%, var(--p2) 100%);
  box-shadow: 0 0 16px color-mix(in srgb, var(--p1) 45%, transparent), inset -6px -8px 14px rgba(0,0,0,.45); }
.bu-planet span { filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.bu-ring::after { content: ''; position: absolute; left: -13px; right: -13px; top: 40%; height: 12px; border: 2px solid rgba(255,255,255,.5); border-radius: 50%; transform: rotate(-16deg); pointer-events: none; }
.buehne .bu-porsche { width: 78px; animation: buAuftritt .7s var(--ease-spring) backwards; }
.buehne .bu-wal { width: 92px; }
.buehne .bu-farben { height: 60px; } .buehne .bu-cello { height: 80px; } .buehne .bu-krimi { width: 62px; height: 62px; }
@media (min-width: 700px) { .buehne { margin-left: 0; margin-right: 0; border-radius: 0 0 24px 24px; } }
@media (prefers-reduced-motion: reduce) { .buehne *, .buehne *::before { animation: none !important; } }

/* ===================================================================
   ⏱️ Takt-Gefühl – Mitternachtsblau mit Neon-Orange, schwingendes Metronom
   =================================================================== */
.metronom { display: block; height: 100%; overflow: visible; }
.mt-korpus { fill: #2a1d4f; stroke: #ff8a3d; stroke-width: 2.5; stroke-linejoin: round; }
.mt-skala { stroke: rgba(255,200,150,.45); stroke-width: 1.5; }
.mt-fuss { stroke: #ff8a3d; stroke-width: 3; stroke-linecap: round; }
.mt-arm path { stroke: #ffd7a8; stroke-width: 2.5; stroke-linecap: round; }
.mt-arm rect { fill: #ff3d7f; }
.mt-arm { transform-box: view-box; transform-origin: 30px 66px; animation: pendel 1.2s ease-in-out infinite alternate; }
@keyframes pendel { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }

.hub-takt { background: linear-gradient(#0f0b22, #0f0b22) padding-box, linear-gradient(90deg, #ff8a3d, #ff3d7f, #7c5cff, #ff8a3d) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(255,61,127,0.2); }
.hub-takt .hg-titel { background: linear-gradient(90deg, #ffb070, #ff3d7f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-takt { --ring: conic-gradient(#ff8a3d, #ff3d7f, #7c5cff, #ff8a3d); }
.hg-av-takt > .hg-in { background: #160f30; border-color: #0f0b22; }
.hg-av-takt .metronom { height: 46px; }

.bu-takt { left: 21%; bottom: 196px; height: 40px; animation-delay: .08s; }
.bu-takt .metronom { height: 40px; filter: drop-shadow(0 0 6px rgba(255,138,61,.45)); }

.takt-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #fff1e6;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background: radial-gradient(100% 60% at 50% 0%, rgba(255,138,61,0.16), transparent 60%), radial-gradient(80% 50% at 50% 100%, rgba(124,92,255,0.18), transparent 60%), #0b0819;
  font-family: "Outfit", system-ui, sans-serif;
}
.takt-buehne > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.takt-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,0.1); color: inherit; }
.takt-buehne .btn { width: 100%; }
.takt-buehne .btn.takt-gross { font-size: 1.15rem; padding: 16px; background: linear-gradient(90deg, #ff8a3d, #ff3d7f); color: #1d0610; box-shadow: 0 10px 30px rgba(255,61,127,0.3); }
.takt-buehne .btn.secondary { background: rgba(255,255,255,0.1); color: inherit; box-shadow: none; }
.takt-teil { display: grid; gap: 14px; animation: aufploppen .4s var(--ease-spring); }
#takt-intro { text-align: center; padding-top: 2vh; }
.takt-logo { height: 92px; display: flex; justify-content: center; }
.takt-logo .metronom { filter: drop-shadow(0 0 14px rgba(255,138,61,.5)); }
.takt-titel { font-size: 2.6rem; font-weight: 800; margin: 0; letter-spacing: -0.02em; background: linear-gradient(90deg, #ffb070, #ff3d7f, #a78bfa, #ffb070); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: farbfluss 6s linear infinite; }
.takt-lead { margin: 0 auto; max-width: 36ch; line-height: 1.5; color: #e2c9bd; min-height: 4.5em; }
.takt-modi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.takt-modi button {
  display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border-radius: 16px; border: 1.5px solid rgba(255,176,112,0.25);
  background: rgba(255,255,255,0.05); color: inherit; font: inherit; font-weight: 700; cursor: pointer; transition: transform .2s var(--ease-spring), background .2s;
}
.takt-modi button span { font-size: 1.6rem; }
.takt-modi button.on { border-color: #ff8a3d; background: linear-gradient(160deg, rgba(255,138,61,0.25), rgba(255,61,127,0.18)); transform: scale(1.04); }
.takt-stufen button small { font-size: 0.68rem; }
.takt-mitte { min-height: 76dvh; align-content: center; justify-items: center; text-align: center; }
.takt-bild { display: grid; justify-items: center; gap: 16px; }
.takt-aktion { display: grid; gap: 10px; width: 100%; max-width: 420px; }

/* Uhr (Zeitgefühl) und Tipp-Fläche (Tempo) */
.tk-uhr, .tk-pad {
  position: relative; width: min(68vw, 260px); aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; background: none; color: inherit;
  font: inherit; display: grid; place-items: center; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.tk-uhr svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tk-ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 10; }
.tk-ring { fill: none; stroke: #ff8a3d; stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255,138,61,.7)); }
.tk-kern {
  position: absolute; inset: 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 35%, #ffd2a8, #ff8a3d 45%, #ff3d7f 80%);
  box-shadow: 0 0 60px rgba(255,138,61,0.6), 0 0 120px rgba(255,61,127,0.35); opacity: .14; transition: opacity .12s, transform .12s;
}
.tk-uhr.an .tk-kern { opacity: 1; transform: scale(1.04); }
.tk-uhr.dunkel .tk-kern { opacity: .06; }
.tk-uhr-text, .tk-pad-text { position: relative; font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; pointer-events: none; font-variant-numeric: tabular-nums; }
.tk-pad-text { font-size: 2.6rem; }
.tk-uhr.tippbar, .tk-pad.tippbar { cursor: pointer; }
.tk-uhr.tippbar::after, .tk-pad.tippbar::after {
  content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 2px dashed rgba(255,176,112,0.55); animation: ringDrehen 14s linear infinite; pointer-events: none;
}
.tk-uhr.tippbar.an::after { border-style: solid; border-color: #fff; }
.tk-pad { background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%); }
.tk-pad .tk-kern { opacity: .55; }
.tk-pad:active .tk-kern { transform: scale(.96); }
.tk-lautsprecher { width: min(52vw, 200px); }
.tk-zaehler { display: flex; justify-content: center; gap: 10px; }
.tk-zaehler i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.12); transition: background .15s, transform .2s var(--ease-spring); }
.tk-zaehler i.an { background: #ff8a3d; transform: scale(1.25); box-shadow: 0 0 10px rgba(255,138,61,.8); }

/* Taktart: Schlag-Punkte und Auswahl */
.tk-schlaege { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.tk-schlaege i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.14); transition: background .06s, transform .06s; }
.tk-schlaege i.betont { width: 20px; height: 20px; }
.tk-schlaege i.eins { width: 26px; height: 26px; box-shadow: inset 0 0 0 2px rgba(255,176,112,.6); }
.tk-schlaege i.an { background: #ff8a3d; transform: scale(1.2); box-shadow: 0 0 12px rgba(255,138,61,.9); }
.tk-wahl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tk-wahl.viele { grid-template-columns: repeat(3, 1fr); }
.tk-wahl button {
  display: grid; gap: 2px; justify-items: center; padding: 14px 6px; border-radius: 18px; border: 1.5px solid rgba(255,176,112,0.35);
  background: rgba(255,255,255,0.06); color: inherit; font: inherit; cursor: pointer; animation: aufploppen .4s var(--ease-spring) backwards;
}
.tk-wahl button:nth-child(2) { animation-delay: .05s; } .tk-wahl button:nth-child(3) { animation-delay: .1s; } .tk-wahl button:nth-child(4) { animation-delay: .15s; }
.tk-wahl button:nth-child(5) { animation-delay: .2s; } .tk-wahl button:nth-child(6) { animation-delay: .25s; }
.tk-wahl b { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tk-wahl small { font-size: 0.75rem; opacity: .7; }
.tk-wahl button:active { transform: scale(.95); background: rgba(255,138,61,0.25); }

/* Auswertung */
.takt-analyse { border-color: rgba(255,138,61,0.25); }
.tk-balken { display: grid; gap: 10px; }
.tk-balken > div { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; font-size: 0.9rem; }
.tk-balken i { display: block; height: 16px; width: var(--w); border-radius: 8px; background: rgba(255,255,255,0.5); transform-origin: left; animation: balkenWachsen .8s cubic-bezier(.2,.8,.2,1) backwards; }
.tk-balken .du i { background: linear-gradient(90deg, #ff8a3d, #ff3d7f); animation-delay: .15s; }
.tk-balken b { font-variant-numeric: tabular-nums; }
@keyframes balkenWachsen { from { transform: scaleX(0); } }
.tk-strahlen { display: grid; gap: 10px; padding: 6px 8px; }
.tk-strahl { position: relative; height: 16px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.tk-strahl i { position: absolute; top: 2px; width: 12px; height: 12px; margin-left: -6px; animation: aufploppen .3s var(--ease-spring) backwards; }
.tk-strahl.ziel i { transform: rotate(45deg); border: 2px solid #fff; border-radius: 2px; }
.tk-strahl.du i { border-radius: 50%; background: #ff8a3d; box-shadow: 0 0 8px rgba(255,138,61,.7); }
.ton-hoer.zwei { grid-template-columns: repeat(2, 1fr); }
.takt-analyse .ton-hoer button { border-color: rgba(255,138,61,0.45); background: rgba(255,138,61,0.1); }
.tk-sig { display: flex; align-items: baseline; justify-content: center; gap: 14px; }
.tk-sig b { font-size: 3.4rem; font-weight: 800; line-height: 1; background: linear-gradient(90deg, #ffb070, #ff3d7f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tk-sig span { font-size: 1.1rem; opacity: .75; }
.tk-raster { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tk-raster span { min-width: 34px; padding: 8px 0; border-radius: 10px; text-align: center; font-weight: 700; background: rgba(255,255,255,0.06); transition: background .06s, transform .06s; }
.tk-raster span.betont { background: rgba(255,138,61,0.22); }
.tk-raster span.eins { background: rgba(255,61,127,0.35); }
.tk-raster span.an { background: #ff8a3d; color: #1d0610; transform: scale(1.12); }
#takt-aufloesung #taktWeiter { position: sticky; bottom: 0; z-index: 2; }
.takt-liste li { cursor: default; }
@media (prefers-reduced-motion: reduce) { .mt-arm { animation: none; } }
.tk-kit { font-size: 0.85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffb070; opacity: .85; }

/* ===================================================================
   📈 Punktwolke – helles Millimeterpapier, Tinte, roter Stift, Textmarker
   =================================================================== */
.pw-mini { display: block; width: 100%; height: 100%; }
.pw-mini circle { fill: #2b4bb8; animation: pwPunktAuf 3s ease-in-out infinite; animation-delay: calc(var(--k) * 0.12s); transform-box: fill-box; transform-origin: center; }
.pw-mini .pm-linie { stroke: #e11d48; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 64; animation: pwLinie 3s ease-in-out infinite; }
@keyframes pwPunktAuf { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.5); } 24% { transform: scale(1); } }
@keyframes pwLinie { 0% { stroke-dashoffset: 64; } 40%, 100% { stroke-dashoffset: 0; } }

.hub-punkte { background: linear-gradient(#0f1220, #0f1220) padding-box, linear-gradient(90deg, #fde047, #2b4bb8, #e11d48, #fde047) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(43,75,184,0.25); }
.hub-punkte .hg-titel { background: linear-gradient(90deg, #fde047, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-punkte { --ring: conic-gradient(#fde047, #2b4bb8, #e11d48, #fde047); }
.hg-av-punkte > .hg-in { background: #f7f2e3 linear-gradient(rgba(43,75,184,.12) 1px, transparent 1px) 0 0 / 8px 8px, linear-gradient(90deg, rgba(43,75,184,.12) 1px, transparent 1px) 0 0 / 8px 8px; border-color: #0f1220; padding: 12px; }

.bu-punkte { left: 42%; bottom: 180px; width: 46px; height: 46px; padding: 4px; border-radius: 8px; background: rgba(247,242,227,0.92); animation-delay: .16s; box-shadow: 0 4px 14px rgba(0,0,0,.35); transform: rotate(-6deg); }

.pw-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #1d2340;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background:
    linear-gradient(rgba(43,75,184,0.08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(43,75,184,0.08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgba(43,75,184,0.05) 1px, transparent 1px) 0 0 / 4.4px 4.4px,
    #f7f2e3;
  font-family: "Outfit", system-ui, sans-serif;
}
.pw-buehne > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.pw-buehne .farb-kopf { color: #1d2340; }
.pw-buehne .farb-kopf .icon-btn { background: #fff; color: #1d2340; box-shadow: 0 2px 0 rgba(29,35,64,.15); }
.pw-teil { display: grid; gap: 14px; animation: aufploppen .4s var(--ease-spring); }
#pw-intro { text-align: center; padding-top: 2vh; }
.pw-logo { width: 96px; height: 96px; margin: 0 auto; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 6px 0 rgba(29,35,64,.12), 0 12px 30px rgba(29,35,64,.12); transform: rotate(-4deg); }
.pw-titel { margin: 0; font-size: 2.7rem; font-weight: 800; letter-spacing: -0.02em; color: #1d2340; }
.pw-titel { background: linear-gradient(transparent 62%, rgba(253,224,71,.85) 62%, rgba(253,224,71,.85) 92%, transparent 92%); display: inline; justify-self: center; padding: 0 6px; }
.pw-lead { margin: 0 auto; max-width: 36ch; line-height: 1.5; color: #3a4166; min-height: 4.5em; }
.pw-buehne .pw-hinweis { margin: 0 auto; max-width: 38ch; font-size: 0.85rem; color: #5b6285; }
.pw-modi { grid-template-columns: repeat(2, 1fr); }
.pw-buehne .takt-modi button { border-color: rgba(29,35,64,.18); background: #fff; color: #1d2340; box-shadow: 0 3px 0 rgba(29,35,64,.1); }
.pw-buehne .takt-modi button.on { border-color: #2b4bb8; background: #e8edff; }
.pw-buehne .farb-stufen button { border-color: rgba(29,35,64,.18); background: #fff; color: #1d2340; }
.pw-buehne .farb-stufen button.on { border-color: #2b4bb8; background: #e8edff; }
.pw-stufen button small { font-size: 0.68rem; }
.pw-challenge { background: #fff8c5; border-color: #eab308; color: #1d2340; }
.pw-buehne .btn { width: 100%; }
.pw-buehne .btn.pw-gross-btn { font-size: 1.15rem; padding: 16px; background: #2b4bb8; color: #fff; box-shadow: 0 5px 0 #1b2f7a, 0 12px 26px rgba(43,75,184,.3); }
.pw-buehne .btn.pw-gross-btn:disabled { opacity: .4; }
.pw-buehne .btn.secondary { background: #fff; color: #1d2340; box-shadow: 0 3px 0 rgba(29,35,64,.12); }
.pw-best { font-size: 0.85rem; color: #5b6285; }
.pw-buehne .ton-punkte, .pw-buehne .farb-summe { color: #1d2340; }
.pw-buehne .muted { color: #5b6285; }

/* Wolken */
.pw-svg { display: block; width: 100%; height: auto; }
.pw-papier { fill: #fff; stroke: rgba(29,35,64,.12); }
.pw-achse { stroke: #1d2340; stroke-width: 1.5; fill: none; opacity: .55; }
.pw-p { fill: #2b4bb8; fill-opacity: .78; animation: pwPunkt .45s var(--ease-spring) backwards; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
.pw-p.aus { fill: #e11d48; fill-opacity: 1; stroke: #fff; stroke-width: 1.5; }
@keyframes pwPunkt { from { opacity: 0; transform: scale(0); } }
.pw-linie { stroke: #e11d48; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 500; animation: pwLinieZiehen .9s ease-out .2s backwards; }
@keyframes pwLinieZiehen { from { stroke-dashoffset: 500; } }
.pw-gross { max-width: 420px; margin: 0 auto; border-radius: 14px; box-shadow: 0 6px 0 rgba(29,35,64,.08), 0 14px 34px rgba(29,35,64,.12); }
.pw-gross.klein { max-width: 260px; }
.pw-frage { text-align: center; font-size: 1.15rem; font-weight: 700; }
.pw-aktion { display: grid; gap: 12px; }
.pw-wert { text-align: center; font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pw-regler {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; border-radius: 22px; margin: 0; touch-action: none;
  background: linear-gradient(90deg, rgba(43,75,184,0.3) var(--pos, 50%), rgba(29,35,64,0.08) var(--pos, 50%)); box-shadow: inset 0 0 0 1.5px rgba(43,75,184,.35);
}
.pw-regler::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #fff 30%, #2b4bb8 31%); box-shadow: 0 3px 10px rgba(43,75,184,.5); cursor: grab; }
.pw-regler::-moz-range-thumb { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 6px solid #2b4bb8; }
.pw-skala { display: flex; justify-content: space-between; font-size: 0.78rem; color: #5b6285; margin-top: -6px; }
.pw-pfeil { font-weight: 700; font-size: 0.9rem; margin: 0; }
.pw-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 460px; margin: 0 auto; }
.pw-raster.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; }
.pw-kachel { position: relative; padding: 0; border: 3px solid transparent; border-radius: 14px; background: none; cursor: pointer; box-shadow: 0 4px 0 rgba(29,35,64,.1); transition: transform .2s var(--ease-spring), border-color .15s; animation: aufploppen .4s var(--ease-spring) backwards; }
.pw-kachel:nth-child(2) { animation-delay: .06s; } .pw-kachel:nth-child(3) { animation-delay: .12s; } .pw-kachel:nth-child(4) { animation-delay: .18s; }
.pw-kachel .pw-svg { border-radius: 11px; }
.pw-kachel.gewaehlt { border-color: #2b4bb8; transform: scale(.96); }
.pw-nr { position: absolute; top: -10px; right: -10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; background: #fde047; color: #1d2340; box-shadow: 0 2px 6px rgba(0,0,0,.2); transform: scale(0); transition: transform .25s var(--ease-spring); }
.pw-kachel.gewaehlt .pw-nr { transform: scale(1); }

/* Auswertung */
.pw-analyse { display: grid; gap: 12px; background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 6px 0 rgba(29,35,64,.08), 0 14px 34px rgba(29,35,64,.1); animation: aufploppen .45s var(--ease-spring) .15s backwards; }
.pw-analyse .farb-tabelle tr + tr { border-top-color: rgba(29,35,64,.1); }
.pw-analyse .farb-tabelle th { text-align: left; }
.pw-analyse .farb-tabelle td.gut { color: #15803d; } .pw-analyse .farb-tabelle td.mittel { color: #b45309; } .pw-analyse .farb-tabelle td.weit { color: #be123c; }
.pw-analyse .farb-tipp { color: #1d2340; background: #fff8c5; border-radius: 10px; padding: 10px 12px; }
.pw-analyse .farb-deltae { color: #5b6285; }
.pw-band { position: relative; height: 12px; margin: 10px 8px 0; border-radius: 6px; background: linear-gradient(90deg, #e11d48, #e5e7eb 50%, #2b4bb8); }
.pw-band i { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2.5px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.35); }
.pw-band .pw-ziel { transform: rotate(45deg); border-radius: 3px; background: #1d2340; }
.pw-band .pw-du { border-radius: 50%; background: #fde047; }
.pw-band-text { display: flex; justify-content: space-between; font-size: 0.75rem; color: #5b6285; }
.pw-ordnung { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.pw-ord { display: grid; gap: 4px; justify-items: center; padding: 6px; border-radius: 12px; background: #fdf2f4; }
.pw-ord.ok { background: #ecfdf3; }
.pw-ord b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.pw-ord small { font-size: 0.75rem; color: #5b6285; }
.pw-liste li { background: #fff; color: #1d2340; cursor: default; box-shadow: 0 3px 0 rgba(29,35,64,.08); }
#pw-aufloesung #pwWeiter { position: sticky; bottom: 0; z-index: 2; }
/* Hilfe: Form-Ellipse, Lernrunde, Spickzettel */
.pw-form ellipse { fill: rgba(253,224,71,.16); stroke: #ca8a04; stroke-width: 2.5; stroke-dasharray: 7 5; animation: aufploppen .5s var(--ease-spring) .3s backwards; transform-box: fill-box; transform-origin: center; }
.pw-form line { stroke-width: 3.5; stroke-linecap: round; }
.pw-form .pw-lang { stroke: #e11d48; } .pw-form .pw-breit { stroke: #ca8a04; }
.pw-faust { font-size: 0.92rem; text-align: center; color: #1d2340; }
.pw-hilfe-btn { font-weight: 800; font-size: 1.1rem; }
.pw-buehne .btn.pw-lernen-btn { border: 2px dashed rgba(43,75,184,.45); }
.pl-schritte { display: flex; justify-content: center; gap: 6px; }
.pl-schritte i { width: 26px; height: 6px; border-radius: 3px; background: rgba(29,35,64,.15); transition: background .3s; }
.pl-schritte i.fertig { background: #2b4bb8; } .pl-schritte i.jetzt { background: #fde047; box-shadow: 0 0 0 1.5px #1d2340; }
.pl-titel { margin: 0; text-align: center; font-size: 1.35rem; }
.pl-bild { display: grid; gap: 10px; animation: aufploppen .4s var(--ease-spring); }
.pl-text { background: #fff; border-radius: 14px; padding: 12px 14px; line-height: 1.5; box-shadow: 0 4px 0 rgba(29,35,64,.08); }
.pl-gelb { color: #a16207; } .pl-rot { color: #be123c; }
.pl-aktion { display: grid; gap: 10px; }
.pl-aktion:empty { display: none; }
.pl-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.pl-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.pl-nav .btn:disabled { opacity: .4; }
.pl-paar, .pl-formen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pl-formen { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pl-paar figure, .pl-formen figure { margin: 0; display: grid; gap: 4px; text-align: center; font-size: 0.85rem; }
.pl-formen figcaption { font-size: 0.72rem; color: #5b6285; display: grid; }
.pl-formen figcaption b { color: #1d2340; font-size: 0.78rem; }
.pl-paar .pw-svg, .pl-formen .pw-svg { border-radius: 10px; box-shadow: 0 3px 0 rgba(29,35,64,.08); }
.pl-tabelle { display: grid; grid-template-columns: auto repeat(6, 1fr); gap: 2px 4px; align-items: center; font-size: 0.78rem; background: #fff8c5; border-radius: 10px; padding: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.pl-tabelle span { text-align: left; color: #5b6285; white-space: nowrap; }
.pl-dialog { width: min(560px, calc(100vw - 24px)); max-height: 88dvh; overflow-y: auto; border: 0; border-radius: 20px; padding: 16px; background: #f7f2e3; color: #1d2340; font-family: "Outfit", system-ui, sans-serif; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.pl-dialog[open] { display: grid; gap: 10px; animation: aufploppen .35s var(--ease-spring); }
.pl-dialog::backdrop { background: rgba(29,35,64,.45); backdrop-filter: blur(2px); }
.pl-dialog h3 { margin: 0; text-align: center; font-size: 1.3rem; }
.pl-dialog .btn { width: 100%; }
.pl-dialog .btn.pw-gross-btn { background: #2b4bb8; color: #fff; }
.pl-dialog .btn.secondary { background: #fff; color: #1d2340; }
#pwHilfeInhalt { display: grid; gap: 10px; }
.pl-schritt { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: 0.9rem; line-height: 1.4; }
.pl-schritt > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #2b4bb8; color: #fff; font-weight: 800; }
.pl-schritt b { display: block; }
.pl-tipps { font-size: 0.86rem; background: #fff; border-radius: 12px; padding: 10px 12px; }
.pl-tipps ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; }
@media (prefers-reduced-motion: reduce) { .pw-mini circle, .pw-mini .pm-linie { animation: none; } }

/* ===================================================================
   📐 Augenmaß – Blaupause: tiefes Blau, Kreide-Weiß, Orange für deine Linie, Mint für die Lösung
   =================================================================== */
.ag-mini, .kt-mini { display: block; width: 100%; height: 100%; overflow: visible; }
.ag-mini path, .ag-mini line { fill: none; stroke: #e8f1ff; stroke-width: 3; stroke-linecap: round; }
.ag-mini .am-arm path { stroke: #ffb547; }
.ag-mini .am-arm circle { fill: #ffb547; }
.ag-mini .am-bogen { stroke: #5eead4; stroke-width: 2.5; }
.ag-mini .am-ecke { fill: #e8f1ff; }
.ag-mini .am-arm { transform-box: view-box; transform-origin: 10px 48px; animation: amArm 3.2s ease-in-out infinite; }
@keyframes amArm { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-22deg); } }
.hub-augen { background: linear-gradient(#0a1c36, #0a1c36) padding-box, linear-gradient(90deg, #5eead4, #3b82f6, #ffb547, #5eead4) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(59,130,246,0.22); }
.hub-augen .hg-titel { background: linear-gradient(90deg, #93c5fd, #5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-augen { --ring: conic-gradient(#5eead4, #3b82f6, #ffb547, #5eead4); }
.hg-av-augen > .hg-in { background: #0d3a6e linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 10px 10px, linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 10px 10px; border-color: #0a1c36; padding: 12px; }
.bu-augen { left: 6%; bottom: 204px; width: 40px; height: 40px; animation-delay: .22s; }

.ag-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #e8f1ff;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background:
    linear-gradient(rgba(255,255,255,0.09) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 8px 8px,
    radial-gradient(120% 80% at 50% 0%, #11508f, #0b3566 60%, #082a52);
  font-family: "Outfit", system-ui, sans-serif;
}
.ag-buehne > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.ag-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,0.12); color: inherit; }
.ag-teil { display: grid; gap: 14px; animation: aufploppen .4s var(--ease-spring); }
#ag-intro { text-align: center; padding-top: 2vh; }
.ag-logo { width: 96px; height: 96px; margin: 0 auto; padding: 16px; border: 2px dashed rgba(232,241,255,.45); border-radius: 50%; }
.ag-titel { margin: 0; font-size: 2.7rem; font-weight: 800; letter-spacing: 0.02em; font-family: "Bebas Neue", "Outfit", sans-serif; font-weight: 400; font-size: 3.3rem; color: #e8f1ff; text-shadow: 0 0 18px rgba(147,197,253,.5); }
.ag-lead { margin: 0 auto; max-width: 38ch; line-height: 1.5; color: #c4d8f5; }
.ag-typen { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ag-typen span { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(232,241,255,.3); font-size: 0.8rem; background: rgba(255,255,255,.06); }
.ag-buehne .farb-stufen button small { font-size: 0.68rem; }
.ag-challenge { background: rgba(94,234,212,.12); border-color: #5eead4; }
.ag-buehne .btn { width: 100%; }
.ag-buehne .btn.ag-gross-btn { font-size: 1.15rem; padding: 16px; background: #ffb547; color: #2a1700; box-shadow: 0 5px 0 #b97a1e, 0 12px 26px rgba(255,181,71,.3); }
.ag-buehne .btn.ag-gross-btn:disabled { opacity: .45; }
.ag-buehne .btn.secondary { background: rgba(255,255,255,0.12); color: inherit; box-shadow: none; }
.ag-best { font-size: 0.85rem; color: #a9c3e8; }
.ag-frage { text-align: center; font-size: 1.2rem; font-weight: 700; }
.ag-hinweis { text-align: center; font-size: 0.85rem; color: #a9c3e8; }
.ag-flaeche { display: block; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 1; touch-action: none; border: 2px solid rgba(232,241,255,.4); border-radius: 14px; background: rgba(4,26,56,.35); cursor: crosshair; }
.ag-flaeche.klein { max-width: 300px; cursor: default; }
.ag-flaeche line, .ag-flaeche path, .ag-flaeche polygon, .ag-flaeche circle { stroke-linecap: round; stroke-linejoin: round; }
.ag-vorlage line { stroke: #f4f8ff; stroke-width: 4; }
.ag-vorlage .ag-tausch { stroke-width: 2.5; opacity: .9; }
.ag-ende { fill: #f4f8ff; }
.ag-form { fill: rgba(255,255,255,.07); stroke: #f4f8ff; stroke-width: 4; }
.ag-du { fill: #ffb547; stroke: #2a1700; stroke-width: 2; }
.ag-du-linie { stroke: #ffb547; stroke-width: 4.5; }
.ag-du-ebene .ag-tausch, .ag-du-flossen line { stroke: #ffb547; stroke-width: 2.5; }
.ag-du-flossen line { stroke-width: 4; }
.ag-griff { fill: #ffb547; stroke: #fff; stroke-width: 3; }
.ag-bogen { fill: none; stroke: #ffb547; stroke-width: 2.5; stroke-dasharray: 4 5; }
.ag-ok { fill: #5eead4; stroke: #04332d; stroke-width: 2; animation: aufploppen .5s var(--ease-spring) .2s backwards; }
.ag-ok-linie { stroke: #5eead4; stroke-width: 3.5; stroke-dasharray: 10 7; animation: aufploppen .5s var(--ease-spring) .2s backwards; }
.ag-hilfe { stroke: #5eead4; stroke-width: 1.8; stroke-dasharray: 5 5; opacity: .8; }
.ag-legende { display: flex; justify-content: center; gap: 18px; font-size: 0.85rem; color: #c4d8f5; }
.ag-legende i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.ag-legende i.du { background: #ffb547; } .ag-legende i.ok { background: #5eead4; }
.ag-text { text-align: center; font-size: 1.15rem; font-weight: 700; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.08); }
.ag-erkl { font-size: 0.92rem; line-height: 1.5; color: #d6e5fa; padding: 12px 14px; border-left: 3px solid #5eead4; background: rgba(94,234,212,.08); border-radius: 0 12px 12px 0; }
.ag-liste li { cursor: default; background: rgba(255,255,255,.08); }
.ag-buehne .ton-liste .tl-c { opacity: .8; }

/* ===================================================================
   🧭 Karten-Gefühl – Seekarte: dunkles Meer, sandfarbenes Land, rote Nadel, grünes Ziel
   =================================================================== */
.kt-mini .km-rand { fill: #f3e9d2; stroke: #c9a227; stroke-width: 3; }
.kt-mini .km-striche { stroke: #8a6d1d; stroke-width: 2.5; stroke-linecap: round; }
.kt-mini .km-nord { fill: #e11d48; } .kt-mini .km-sued { fill: #334155; }
.kt-mini .km-mitte { fill: #f3e9d2; stroke: #334155; stroke-width: 1.5; }
.kt-mini .km-nadel { transform-box: view-box; transform-origin: 30px 30px; animation: kmNadel 4s ease-in-out infinite; }
@keyframes kmNadel { 0%, 100% { transform: rotate(-18deg); } 30% { transform: rotate(14deg); } 55% { transform: rotate(-6deg); } 75% { transform: rotate(4deg); } }
.hub-karte { background: linear-gradient(#0b1d24, #0b1d24) padding-box, linear-gradient(90deg, #f3e9d2, #0ea5a4, #e11d48, #f3e9d2) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(14,165,164,0.2); }
.hub-karte .hg-titel { background: linear-gradient(90deg, #f3e9d2, #5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-karte { --ring: conic-gradient(#f3e9d2, #0ea5a4, #e11d48, #f3e9d2); }
.hg-av-karte > .hg-in { background: #10394a; border-color: #0b1d24; padding: 6px; }
.bu-karte { right: 28%; bottom: 194px; width: 38px; height: 38px; animation-delay: .26s; }

.kt-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #f3e9d2;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background: radial-gradient(120% 70% at 50% 0%, #15495a, #0c2b36 60%, #08202a);
  font-family: "Outfit", system-ui, sans-serif;
}
.kt-buehne > * { max-width: 620px; margin-left: auto; margin-right: auto; }
.kt-buehne .farb-kopf .icon-btn { background: rgba(243,233,210,0.12); color: inherit; }
.kt-teil { display: grid; gap: 12px; animation: aufploppen .4s var(--ease-spring); }
#kt-intro { text-align: center; padding-top: 2vh; }
.kt-logo { width: 100px; height: 100px; margin: 0 auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }
.kt-titel { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 2.6rem; font-weight: 700; font-style: italic; color: #f3e9d2; }
.kt-lead { margin: 0 auto; max-width: 38ch; line-height: 1.5; color: #d9cfb6; min-height: 4.5em; }
.kt-hinweis { margin: 0; font-size: 0.85rem; color: #a9b8b0; }
.kt-buehne .takt-modi button { border-color: rgba(243,233,210,.25); background: rgba(243,233,210,.06); color: inherit; }
.kt-buehne .takt-modi button.on { border-color: #5eead4; background: rgba(94,234,212,.16); }
.kt-buehne .farb-stufen button small { font-size: 0.68rem; }
.kt-challenge { background: rgba(94,234,212,.12); border-color: #5eead4; }
.kt-buehne .btn { width: 100%; }
.kt-buehne .btn.kt-gross-btn { font-size: 1.15rem; padding: 16px; background: #e11d48; color: #fff; box-shadow: 0 5px 0 #8c1230, 0 12px 26px rgba(225,29,72,.3); }
.kt-buehne .btn.kt-gross-btn:disabled { opacity: .45; }
.kt-buehne .btn.secondary { background: rgba(243,233,210,0.12); color: inherit; box-shadow: none; }
.kt-best { font-size: 0.85rem; color: #a9b8b0; }
.kt-frage { text-align: center; font-size: 1.3rem; }
.kt-frage b { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.9rem; font-style: italic; color: #fff; }
.kt-karte { position: relative; border-radius: 14px; overflow: auto; border: 2px solid rgba(243,233,210,.25); box-shadow: 0 14px 40px rgba(0,0,0,.4); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.kt-karte.kt-deutschland { max-width: min(420px, calc((100dvh - 290px) * 0.78)); margin: 0 auto; width: 100%; }
.kt-karte.kt-deutschland.ergebnis { max-width: min(340px, calc((100dvh - 330px) * 0.78)); }
.kt-karte .kt-svg { display: block; width: 100%; height: auto; cursor: crosshair; }
/* Spielkarte: fester Kasten, Inhalt per viewBox gezoomt und verschoben */
.kt-karte.spiel { overflow: hidden; height: min(62dvh, 560px); background: #2b6f86; touch-action: none; -webkit-user-select: none; user-select: none; }
.kt-karte.spiel.kt-deutschland { max-width: none; height: min(60dvh, 560px); }
.kt-karte.spiel.kt-welt { height: min(58dvh, 92vw, 560px); }
.kt-karte.spiel .kt-svg { width: 100%; height: 100%; touch-action: none; cursor: grab; }
.kt-karte.spiel .kt-svg:active { cursor: grabbing; }
.kt-steuer { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; }
.kt-steuer button { width: 40px; height: 40px; opacity: .9; border: 0; border-radius: 12px; background: rgba(8,32,42,.82); color: #f3e9d2; font: inherit; font-size: 1.4rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.kt-steuer button:active { transform: scale(.92); }
.kt-tipp-klein { text-align: center; font-size: 0.8rem; color: #a9b8b0; }
.kt-karte.ergebnis { overflow: hidden; }
.kt-karte.ergebnis .kt-svg { cursor: default; }
.kt-meer { fill: #2b6f86; }
.kt-land { fill: #eadfc4; stroke: #a08f6a; stroke-width: 0.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.kt-heim { fill: #f6efdc; stroke: #6d5c38; stroke-width: 1.6; }
.kt-svg.ohne-grenzen .kt-land { stroke: #eadfc4; stroke-width: 0.6; }
.kt-svg.ohne-grenzen .kt-heim { fill: #eadfc4; stroke: #eadfc4; }
.kt-nadel circle { fill: #e11d48; stroke: #fff; stroke-width: 2.5; }
.kt-nadel .kern { fill: #fff; stroke: none; }
.kt-nadel { animation: ktNadel .35s var(--ease-spring); }
@keyframes ktNadel { from { opacity: 0; } }
.kt-ziel circle { fill: #10b981; stroke: #fff; stroke-width: 2.5; }
.kt-ziel path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kt-ziel .welle { fill: none; stroke: #10b981; stroke-width: 2; animation: ktWelle 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ktWelle { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.kt-strecke { stroke: #fff; fill: none; stroke-linecap: round; }
.kt-knoepfe { display: grid; grid-template-columns: 1fr; gap: 10px; }
.kt-text { text-align: center; font-size: 1.15rem; line-height: 1.4; padding: 12px; border-radius: 14px; background: rgba(243,233,210,.08); }
.kt-text b { font-family: "Playfair Display", Georgia, serif; font-style: italic; }
.kt-km { display: block; font-size: 2rem; font-weight: 800; color: #fff; }
.kt-info { font-size: 0.95rem; line-height: 1.5; padding: 12px 14px; border-left: 3px solid #10b981; background: rgba(16,185,129,.1); border-radius: 0 12px 12px 0; }
.kt-gesamt { color: #a9b8b0; font-weight: 500; }
.kt-liste li { cursor: default; background: rgba(243,233,210,.08); }
@media (prefers-reduced-motion: reduce) { .ag-mini .am-arm, .kt-mini .km-nadel, .kt-ziel .welle { animation: none; } }

/* ===================================================================
   🎹🎸🪕 Noten & Griffe – gleiche Bühne wie das Cello, eigene Farbtöne je Instrument
   =================================================================== */
.inst-wahl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.inst-wahl button {
  display: grid; justify-items: center; gap: 1px; padding: 8px 2px; border-radius: 14px; border: 1.5px solid rgba(243,217,164,0.22);
  background: rgba(0,0,0,0.18); color: inherit; font: inherit; cursor: pointer; transition: transform .2s var(--ease-spring), background .2s;
}
.inst-wahl button span { font-size: 1.5rem; line-height: 1.1; }
.inst-wahl button small { font-size: 0.72rem; font-weight: 700; opacity: .85; }
.inst-wahl button.on { border-color: #f3d9a4; background: rgba(243,217,164,0.18); transform: scale(1.05); }
.inst-wahl button:active { transform: scale(.95); }
/* Farbtöne: Klavier schwarz-elfenbein, Gitarre warmes Rotbraun, Ukulele Koa-Holz mit Türkis */
.inst-buehne.inst-klavier { background: radial-gradient(120% 60% at 50% 0%, rgba(255,240,210,0.16), transparent 60%), linear-gradient(160deg, #1d1b22, #0c0b10 60%, #050407); }
.inst-buehne.inst-gitarre { background: radial-gradient(120% 60% at 50% 0%, rgba(230,120,60,0.32), transparent 60%), repeating-linear-gradient(92deg, rgba(0,0,0,0.06) 0 3px, transparent 3px 11px), linear-gradient(160deg, #6b2a17, #2e120a 60%, #170805); }
.inst-buehne.inst-ukulele { background: radial-gradient(120% 60% at 50% 0%, rgba(64,200,190,0.25), transparent 60%), repeating-linear-gradient(92deg, rgba(0,0,0,0.05) 0 3px, transparent 3px 11px), linear-gradient(160deg, #7a4a22, #3a210d 60%, #1b0f06); }

/* Hub: die Instrumente wechseln sich im runden Bild ab */
.inst-wechsel { position: relative; height: 54px; }
.inst-wechsel i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; opacity: 0; animation: instWechsel 8s infinite; }
.inst-wechsel i:nth-child(2) { animation-delay: 2s; } .inst-wechsel i:nth-child(3) { animation-delay: 4s; } .inst-wechsel i:nth-child(4) { animation-delay: 6s; }
@keyframes instWechsel { 0% { opacity: 0; transform: scale(.6) rotate(-12deg); } 5%, 22% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; transform: scale(.6) rotate(12deg); } }

/* Klaviatur */
.klaviatur-svg { display: block; width: 100%; height: auto; max-height: 30dvh; filter: drop-shadow(0 12px 26px rgba(0,0,0,0.5)); }
.klaviatur-svg .weiss rect { fill: #fbf7ee; stroke: #9b9283; stroke-width: 1.2; }
.klaviatur-svg .schwarz rect { fill: #17141a; stroke: #000; }
.klaviatur-svg .klick { cursor: pointer; }
.klaviatur-svg .weiss.klick:active rect { fill: #eadfc6; }
.klaviatur-svg .schwarz.klick:active rect { fill: #3b3540; }
.klaviatur-svg .okt { font-size: 13px; font-weight: 800; fill: #8a7a62; text-anchor: middle; pointer-events: none; }
.klaviatur-svg .okt.mitte { fill: #c8894f; }
.klaviatur-svg .markiert rect { fill: #f3d9a4; animation: tastePuls 1.2s ease-in-out infinite; }
.klaviatur-svg .schwarz.markiert rect { fill: #c8894f; }
@keyframes tastePuls { 50% { opacity: .55; } }
.klaviatur-svg .loesung rect { fill: #2fbf71; }
.klaviatur-svg .falsch rect { fill: #e74c3c; }
.inst-klavier .cello-griff { display: block; }

/* Bundbrett */
.bund-svg .bund { fill: rgba(243,217,164,0.6); font-size: 13px; font-weight: 700; text-anchor: middle; }
.bund-svg .punkt circle { fill: rgba(243,217,164,0.08); stroke: rgba(243,217,164,0.3); }
/* wie beim Cello: mit Griffbrett wird das Notenblatt kleiner */
#inst-spiel.mit-griff { gap: 8px; }
#inst-spiel.mit-griff .noten-svg { max-height: 17dvh; margin: 0 auto; }
#inst-spiel.mit-griff .taste { padding: 12px 2px 8px; }
#inst-spiel.mit-griff .cello-schluesselname { font-size: 0.72rem; }
.inst-buehne #inst-spiel.mit-griff .griff-svg { max-height: 44dvh; }
.inst-buehne #inst-spiel .akkord-frage { font-size: 2.6rem; padding: 4px 0 0; }

/* Akkorde */
.akkord-svg { display: block; width: 100%; height: auto; }
.akkord-svg .ak-x { font-size: 15px; font-weight: 800; fill: #2b2118; text-anchor: middle; }
.akkord-svg.gross { max-width: 200px; margin: 0 auto; padding: 10px; background: #fbf5e9; border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,0.45); animation: aufploppen .4s var(--ease-spring); }
.akkord-frage { text-align: center; font-family: "Playfair Display", Georgia, serif; font-size: 3.4rem; font-weight: 700; color: #2b2118; padding: 10px 0 2px; }
.akkord-frage.ok { color: #1f8a4c; } .akkord-frage.bad { color: #c0392b; }
.cello-tasten.akkord-namen { grid-template-columns: repeat(2, 1fr); }
.cello-tasten.akkord-namen .taste { border-radius: 14px; font-size: 1.4rem; padding: 14px 4px; }
.cello-tasten.akkord-bilder { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.akkord-wahl { padding: 6px 4px; border: 2px solid transparent; border-radius: 14px; background: #fbf5e9; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,0.35); animation: aufploppen .3s var(--ease-spring) backwards; }
.akkord-wahl:active { transform: scale(.95); }
.akkord-wahl.richtig { border-color: #2fbf71; box-shadow: 0 0 0 3px #2fbf71, 0 6px 16px rgba(0,0,0,0.35); }
.akkord-wahl.falsch { border-color: #e74c3c; animation: shake .35s; }
.noten-svg .schluessel-8 { font-size: 15px; font-weight: 800; fill: #2b2118; font-family: Georgia, serif; }
@media (prefers-reduced-motion: reduce) { .inst-wechsel i { animation: none; } .inst-wechsel i:first-child { opacity: 1; } }

/* ===================================================================
   📅 Verlauf – im Look des Dashboards (dunkel, Neon), Kalender wie ein Beitragskalender
   =================================================================== */
.hub-verlauf {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 4px; border-radius: 22px; cursor: pointer;
  border: 2px solid transparent; color: #fff; font: inherit; text-align: left;
  background: linear-gradient(#111119, #111119) padding-box, linear-gradient(90deg, #f97316, #facc15, #f97316) border-box;
  box-shadow: 0 12px 34px rgba(249,115,22,0.18); animation: kartenAuftritt .6s var(--ease-spring) .3s backwards;
}
.hub-verlauf:active { transform: scale(.97); }
.hv-serie { flex: none; font-size: 1.35rem; font-weight: 800; padding: 6px 10px; border-radius: 14px; background: rgba(249,115,22,0.16); }
.hv-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.hv-text b { font-size: 1.1rem; white-space: nowrap; }
.hub-verlauf { margin-bottom: 12px; }
.hv-text small { color: #c9c9e0; font-size: 0.8rem; }
.hv-woche { display: flex; gap: 4px; flex: none; }
.hv-woche i { width: 9px; height: 9px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.hv-woche i.an { background: #facc15; box-shadow: 0 0 6px rgba(250,204,21,.7); }

.vl-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #f5f5ff;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background: radial-gradient(120% 60% at 50% 0%, rgba(249,115,22,0.18), transparent 60%), radial-gradient(90% 50% at 50% 100%, rgba(124,58,237,0.2), transparent 60%), #0b0b14;
  font-family: "Outfit", system-ui, sans-serif;
}
.vl-buehne > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.vl-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,0.1); color: inherit; }
.vl-titel { margin: 4px 0 12px; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(90deg, #fdba74, #facc15, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vl-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.vl-zahl { display: grid; gap: 2px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,0.06); animation: aufploppen .4s var(--ease-spring) backwards; }
.vl-zahl b { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.vl-zahl small { font-size: 0.75rem; color: #a3a3c2; }
.vl-zahl.gross { grid-column: 1 / -1; position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(249,115,22,0.28), rgba(250,204,21,0.12)); }
.vl-zahl.gross b { font-size: 3rem; line-height: 1; }
.vl-flamme { position: absolute; right: 14px; top: 50%; font-size: 3.4rem; transform: translateY(-50%); animation: flackern 1.6s ease-in-out infinite alternate; }
@keyframes flackern { from { transform: translateY(-50%) scale(1) rotate(-4deg); } to { transform: translateY(-54%) scale(1.08) rotate(4deg); } }
.vl-karte { padding: 14px; border-radius: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); margin-bottom: 12px; }
.vl-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.vl-kopf small { color: #a3a3c2; font-size: 0.75rem; }
.vl-kal-rahmen { display: flex; gap: 6px; }
.vl-wt { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; font-size: 0.6rem; color: #8b8bab; }
.vl-wt span { display: grid; align-items: center; height: 100%; }
.vl-kalender { flex: 1; display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.vl-tag { aspect-ratio: 1; border: 0; padding: 0; border-radius: 4px; cursor: pointer; background: rgba(255,255,255,0.07); position: relative; }
.vl-tag::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #f97316; opacity: var(--s); }
.vl-tag.leer { visibility: hidden; }
.vl-tag.gewaehlt { outline: 2px solid #fff; outline-offset: 1px; z-index: 1; }
.vl-tagliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vl-tagliste li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,0.05); font-size: 0.9rem; }
.vl-tagliste .vl-zeit { color: #a3a3c2; font-variant-numeric: tabular-nums; font-size: 0.8rem; }
.vl-tagliste .vl-was { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-tagliste b { font-variant-numeric: tabular-nums; }
.vl-tagliste .vl-nichts { display: block; color: #a3a3c2; text-align: center; background: none; }
.vl-spiele { display: grid; gap: 8px; }
.vl-spiel { display: grid; grid-template-columns: 38px 1fr 110px; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,0.04); border-left: 4px solid var(--f); animation: aufploppen .4s var(--ease-spring) backwards; }
.vl-emoji { font-size: 1.6rem; text-align: center; }
.vl-info { display: grid; gap: 2px; min-width: 0; }
.vl-info small { color: #a3a3c2; font-size: 0.74rem; }
.vl-spark { width: 100%; height: 34px; display: block; }
.vl-spark text { fill: #8b8bab; font-size: 10px; text-anchor: middle; }
.vl-leer { color: #a3a3c2; text-align: center; margin: 6px 0; }
@media (prefers-reduced-motion: reduce) { .vl-flamme { animation: none; } }

/* ===================================================================
   🤿 Tiefgang – das Meer wird mit der Tiefe dunkler, Blasen steigen auf
   =================================================================== */
.hub-tiefgang { background: linear-gradient(#071a2b, #071a2b) padding-box, linear-gradient(90deg, #67e8f9, #0e7490, #1e3a8a, #67e8f9) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(14,116,144,0.3); }
.hub-tiefgang .hg-titel { background: linear-gradient(90deg, #a5f3fc, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-tiefgang { --ring: conic-gradient(#a5f3fc, #0e7490, #1e3a8a, #a5f3fc); }
.hg-av-tiefgang > .hg-in { background: linear-gradient(#38bdf8, #0e3a5f 70%, #041626); border-color: #071a2b; }
.tg-mini { position: relative; width: 100%; height: 100%; display: block; }
.tg-mini b { position: absolute; left: 50%; top: 18%; font-size: 1.7rem; transform: translateX(-50%); animation: tgAbtauchen 4s ease-in-out infinite; }
.tg-mini i { position: absolute; bottom: 10%; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.75); animation: tgBlase 3s ease-in infinite; }
.tg-mini i:nth-child(1) { left: 30%; } .tg-mini i:nth-child(2) { left: 55%; animation-delay: 1s; } .tg-mini i:nth-child(3) { left: 70%; animation-delay: 2s; width: 4px; height: 4px; }
@keyframes tgAbtauchen { 0%, 100% { transform: translate(-50%, 0) rotate(-8deg); } 50% { transform: translate(-50%, 22px) rotate(8deg); } }
@keyframes tgBlase { from { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-46px); opacity: 0; } }

.tg-buehne {
  --tiefe: 0;
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; overflow-x: hidden; color: #e0f7ff;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background: linear-gradient(180deg, hsl(200, 75%, calc(42% - var(--tiefe) * 34%)), hsl(215, 80%, calc(22% - var(--tiefe) * 17%)) 70%, hsl(225, 80%, calc(10% - var(--tiefe) * 6%)));
  transition: background 1s ease; font-family: "Outfit", system-ui, sans-serif;
}
.tg-buehne > *:not(.tg-blasen) { position: relative; max-width: 620px; margin-left: auto; margin-right: auto; }
.tg-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,0.12); color: inherit; }
.tg-blasen { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.tg-blasen i { position: absolute; bottom: -20px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(224,247,255,.35); animation: tgSteigen 9s linear infinite; }
.tg-blasen i:nth-child(1) { left: 8%; } .tg-blasen i:nth-child(2) { left: 22%; animation-delay: 3s; width: 6px; height: 6px; }
.tg-blasen i:nth-child(3) { left: 47%; animation-delay: 6s; } .tg-blasen i:nth-child(4) { left: 64%; animation-delay: 1.5s; width: 14px; height: 14px; }
.tg-blasen i:nth-child(5) { left: 81%; animation-delay: 4.5s; width: 7px; height: 7px; } .tg-blasen i:nth-child(6) { left: 93%; animation-delay: 7.5s; }
@keyframes tgSteigen { from { transform: translateY(0) translateX(0); } 50% { transform: translateY(-55vh) translateX(10px); } to { transform: translateY(-110vh) translateX(-6px); } }
.tg-buehne.wackeln > *:not(.tg-blasen) { animation: shake .45s; }
.tg-teil { display: grid; gap: 14px; animation: aufploppen .4s var(--ease-spring); }
#tg-intro { text-align: center; padding-top: 2vh; }
.tg-logo { font-size: 4.4rem; animation: tgAbtauchenGross 4s ease-in-out infinite; }
@keyframes tgAbtauchenGross { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(14px) rotate(6deg); } }
.tg-titel { margin: 0; font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; color: #e0f7ff; text-shadow: 0 0 24px rgba(103,232,249,.5); }
.tg-lead { margin: 0 auto; max-width: 38ch; line-height: 1.5; color: #bfe9f7; }
.tg-regeln { display: grid; gap: 8px; text-align: left; }
.tg-regeln div { display: grid; grid-template-columns: 60px 1fr; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(4,22,38,.35); font-size: 0.9rem; line-height: 1.4; }
.tg-regeln span { font-size: 1.2rem; text-align: center; }
.tg-buehne .farb-stufen button small { font-size: 0.68rem; }
.tg-challenge { background: rgba(103,232,249,.12); border-color: #67e8f9; }
.tg-buehne .btn { width: 100%; }
.tg-buehne .btn.tg-gross-btn { font-size: 1.15rem; padding: 16px; background: linear-gradient(135deg, #67e8f9, #0ea5e9); color: #042033; box-shadow: 0 5px 0 #0b6f99, 0 12px 26px rgba(14,165,233,.35); }
.tg-buehne .btn.tg-auf-btn { font-size: 1.15rem; padding: 16px; background: linear-gradient(135deg, #fde68a, #f59e0b); color: #2a1600; box-shadow: 0 5px 0 #a16207, 0 12px 26px rgba(245,158,11,.3); }
.tg-buehne .btn:disabled { opacity: .4; }
.tg-buehne .btn.secondary { background: rgba(255,255,255,0.12); color: inherit; box-shadow: none; }
.tg-best { font-size: 0.85rem; color: #a5d8ea; }
.tg-anzeige { display: flex; justify-content: space-between; align-items: center; }
.tg-tiefe b { display: block; font-size: 3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.tg-tiefe small { color: #a5d8ea; }
.tg-gefahren { display: flex; gap: 6px; }
.tg-gefahren span { font-size: 1.6rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(4,22,38,.4); opacity: .35; filter: grayscale(1); transition: all .3s var(--ease-spring); }
.tg-gefahren span.an { opacity: 1; filter: none; background: rgba(239,68,68,.35); box-shadow: 0 0 0 2px #f87171; transform: scale(1.08); }
.tg-luft { display: flex; flex-wrap: wrap; gap: 5px; }
.tg-luft i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(224,247,255,.35); }
.tg-luft i.voll { background: radial-gradient(circle at 35% 35%, #fff, #a5f3fc 50%, #38bdf8); border-color: #e0f7ff; }
.tg-meldung { min-height: 3em; padding: 12px 14px; border-radius: 14px; background: rgba(4,22,38,.4); line-height: 1.4; }
.tg-meldung.gut { background: rgba(16,185,129,.22); }
.tg-meldung.warnung { background: rgba(245,158,11,.25); }
.tg-meldung.schlecht { background: rgba(239,68,68,.32); animation: shake .4s; }
.tg-risiko { text-align: center; font-weight: 700; color: #fde68a; }
.tg-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tg-knoepfe #tgWeiter { grid-column: 1 / -1; }
.tg-stand { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; color: #bfe9f7; font-size: 0.9rem; }
.tg-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.tg-karte { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: rgba(224,247,255,.1); text-align: center; animation: tgKarte .5s var(--ease-spring); }
.tg-karte.gefahr { background: rgba(239,68,68,.25); }
.tg-karte.tier { background: rgba(56,189,248,.22); }
.tg-karte.fund { background: rgba(250,204,21,.18); }
.tg-k-emoji { font-size: 1.9rem; }
.tg-k-name { font-size: 0.72rem; font-weight: 700; line-height: 1.2; }
.tg-k-wert { font-size: 0.72rem; opacity: .8; }
@keyframes tgKarte { from { opacity: 0; transform: rotateY(90deg) scale(.7); } }
.tg-liste li { cursor: default; background: rgba(4,22,38,.4); }
.tg-buehne .farb-summe { color: #e0f7ff; }
@media (prefers-reduced-motion: reduce) { .tg-blasen i, .tg-logo, .tg-mini b, .tg-mini i { animation: none; } }

/* ===================================================================
   🎲 Riffbau – türkise Lagune, bunte Korallen, sandiger Rand
   =================================================================== */
.hub-riff { background: linear-gradient(#0b1f22, #0b1f22) padding-box, linear-gradient(90deg, #f43f5e, #facc15, #4ade80, #38bdf8, #a78bfa, #f43f5e) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(244,63,94,0.2); }
.hub-riff .hg-titel { background: linear-gradient(90deg, #fb7185, #facc15, #4ade80); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-riff { --ring: conic-gradient(#f43f5e, #facc15, #4ade80, #38bdf8, #a78bfa, #f43f5e); }
.hg-av-riff > .hg-in { background: #0e7490; border-color: #0b1f22; padding: 13px; }
.rf-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 100%; height: 100%; }
.rf-mini i { border-radius: 3px; background: rgba(255,255,255,.15); animation: rfMini 6s steps(1) infinite; }
.rf-mini i:nth-child(1), .rf-mini i:nth-child(2), .rf-mini i:nth-child(4) { --f: #f43f5e; }
.rf-mini i:nth-child(5), .rf-mini i:nth-child(6) { --f: #facc15; animation-delay: 1.5s; }
.rf-mini i:nth-child(7), .rf-mini i:nth-child(8), .rf-mini i:nth-child(9) { --f: #4ade80; animation-delay: 3s; }
.rf-mini i:nth-child(3) { --f: #38bdf8; animation-delay: 4.5s; }
@keyframes rfMini { 0% { background: rgba(255,255,255,.15); } 15%, 85% { background: var(--f); } 100% { background: rgba(255,255,255,.15); } }

.rf-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #ecfeff;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background: radial-gradient(120% 70% at 50% 0%, rgba(103,232,249,0.35), transparent 60%), radial-gradient(100% 60% at 50% 100%, rgba(250,204,21,0.15), transparent 60%), linear-gradient(170deg, #0e7490, #0b3b4a 60%, #072a33);
  font-family: "Outfit", system-ui, sans-serif;
}
.rf-buehne > * { max-width: 620px; margin-left: auto; margin-right: auto; }
.rf-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,0.14); color: inherit; }
.rf-teil { display: grid; gap: 14px; animation: aufploppen .4s var(--ease-spring); }
#rf-intro { text-align: center; padding-top: 2vh; }
.rf-logo { font-size: 3.6rem; letter-spacing: 4px; }
.rf-titel { margin: 0; font-size: 3rem; font-weight: 800; background: linear-gradient(90deg, #fb7185, #facc15, #4ade80, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rf-lead { margin: 0 auto; max-width: 38ch; line-height: 1.5; color: #cffafe; }
.rf-regeln { display: grid; gap: 8px; text-align: left; }
.rf-regeln div { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(7,42,51,.45); font-size: 0.9rem; line-height: 1.4; }
.rf-regeln span { font-size: 1.3rem; text-align: center; }
.rf-challenge { background: rgba(250,204,21,.12); border-color: #facc15; }
.rf-buehne .btn { width: 100%; }
.rf-buehne .btn.rf-gross-btn { font-size: 1.15rem; padding: 16px; background: linear-gradient(135deg, #fb7185, #f97316); color: #2a0a0a; box-shadow: 0 5px 0 #9f1239, 0 12px 26px rgba(244,63,94,.3); }
.rf-buehne .btn:disabled { opacity: .4; }
.rf-buehne .btn.secondary { background: rgba(255,255,255,0.14); color: inherit; box-shadow: none; }
.rf-best { font-size: 0.85rem; color: #a5f3fc; }
.rf-brett { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 8px; max-height: 52dvh; aspect-ratio: 1; border-radius: 18px; background: #e9d8b4; box-shadow: inset 0 0 0 3px #d4bc8c, 0 14px 34px rgba(0,0,0,.35); max-width: min(100%, 440px, 52dvh); margin: 0 auto; width: 100%; }
.rf-brett.klein { max-width: 260px; pointer-events: none; }
.rf-feld { position: relative; aspect-ratio: 1; border: 0; border-radius: 10px; padding: 0; cursor: pointer; background: #3fa7b8; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); font-size: 1.3rem; display: grid; place-items: center; transition: transform .15s; }
.rf-feld.fels { background: #6b6253; cursor: default; }
.rf-feld.belegt { background: var(--f); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), inset 0 3px 0 rgba(255,255,255,.3); }
.rf-feld.neu { animation: rfSetzen .35s var(--ease-spring); }
@keyframes rfSetzen { from { transform: scale(.4); } }
.rf-feld.vorschau { background: var(--f); opacity: .75; outline: 3px dashed #fff; outline-offset: -3px; }
.rf-feld.vorschau.falsch { background: #9f1239; opacity: .7; outline-color: #fecdd3; }
.rf-feld.mit-fisch::after { content: ""; position: absolute; inset: 4px; border-radius: 8px; border: 3px dotted var(--fisch); pointer-events: none; }
.rf-feld.mit-fisch.satt::after { border-style: solid; border-color: #fff; }
.rf-fisch { font-size: 1.2rem; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.rf-feld.mit-fisch.satt .rf-fisch { animation: rfFisch 1.6s ease-in-out infinite; }
@keyframes rfFisch { 50% { transform: translateX(3px) rotate(-8deg); } }
.rf-punkte { display: grid; justify-items: center; }
.rf-punkte b { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.rf-punkte small { color: #a5f3fc; font-size: 0.8rem; }
.rf-wuerfel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rf-w { display: grid; justify-items: center; gap: 4px; padding: 8px; border-radius: 18px; background: rgba(7,42,51,.45); }
.rf-w-form, .rf-w-farbe { width: 58px; height: 58px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 0 #cbd5e1, 0 10px 20px rgba(0,0,0,.3); animation: rfWuerfel .5s var(--ease-spring); }
.rf-w-form svg { width: 48px; height: 48px; }
.rf-w-farbe::after { content: ""; width: 34px; height: 34px; border-radius: 50%; background: var(--f); }
@keyframes rfWuerfel { from { transform: rotate(-180deg) scale(.5); } }
.rf-w small { font-weight: 700; }
.rf-joker { display: flex; justify-content: center; gap: 10px; }
.rf-joker button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; background: var(--f); cursor: pointer; }
.rf-joker button.on { border-color: #fff; transform: scale(1.12); }
.rf-hinweis { text-align: center; font-size: 0.9rem; color: #cffafe; min-height: 2.6em; }
.rf-knoepfe { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.rf-wertung { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.rf-wertung li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: rgba(7,42,51,.45); }
.rf-buehne .farb-summe { color: #ecfeff; }
@media (prefers-reduced-motion: reduce) { .rf-mini i { animation: none; background: var(--f); } }

.tg-regeln p, .rf-regeln p { margin: 0; }

/* Riffbau: Abschluss-Welle und weiche Überblendung zum Ergebnis */
#rf-spiel.fertig .rf-wuerfel, #rf-spiel.fertig .rf-joker, #rf-spiel.fertig .rf-knoepfe, #rf-spiel.fertig #rfPassen { opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s; }
#rf-spiel.fertig .rf-feld.belegt { animation: rfWelle .6s ease-in-out backwards; animation-delay: calc(var(--i) * 55ms); }
@keyframes rfWelle { 0% { transform: none; } 40% { transform: translateY(-6px) scale(1.08); filter: brightness(1.25); } 100% { transform: none; } }
#rf-spiel.fertig .rf-hinweis { font-size: 1.3rem; font-weight: 800; color: #fff; }
/* Ergebnis als Karte von unten über dem stehenbleibenden Riff */
.rf-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 620px; margin: 0 auto; gap: 10px;
  max-height: 78dvh; overflow-y: auto; padding: 10px 16px calc(env(safe-area-inset-bottom) + 18px);
  background: linear-gradient(180deg, rgba(14,116,144,.97), rgba(7,42,51,.98)); border-radius: 26px 26px 0 0;
  box-shadow: 0 -18px 40px rgba(0,0,0,.45); animation: rfSheet .55s cubic-bezier(.2,.9,.25,1);
}
@keyframes rfSheet { from { transform: translateY(105%); } }
.rf-griff { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); margin: 0 auto 2px; }
.rf-sheet .farb-summe { font-size: 3.2rem; padding-top: 0; }
#rf-spiel.fertig { padding-bottom: 46dvh; }

/* ===================================================================
   🕵️ Funktions-Detektiv – Schultafel: Kreide-Weiß, gelbe Kreide fürs Ziel, rosa Kreide für dich
   =================================================================== */
.fd-mini { display: block; width: 100%; height: 100%; overflow: visible; }
.fd-mini .fm-achse { stroke: rgba(241,245,239,.55); stroke-width: 2.5; fill: none; }
.fd-mini .fm-kurve { stroke: #fde68a; stroke-width: 4; fill: none; stroke-linecap: round; stroke-dasharray: 90; animation: fdMiniZiehen 3.4s ease-in-out infinite; }
.fd-mini .fm-punkt { fill: #f9a8d4; animation: fdMiniPunkt 3.4s ease-in-out infinite; }
@keyframes fdMiniZiehen { 0% { stroke-dashoffset: 90; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -90; } }
@keyframes fdMiniPunkt { 0%, 35% { opacity: 0; transform: scale(.3); } 50%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.fd-mini .fm-punkt { transform-box: fill-box; transform-origin: center; }
.hub-funktion { background: linear-gradient(#13241c, #13241c) padding-box, linear-gradient(90deg, #a3e635, #fde68a, #f9a8d4, #a3e635) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(163,230,53,0.18); }
.hub-funktion .hg-titel { background: linear-gradient(90deg, #d9f99d, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-funktion { --ring: conic-gradient(#a3e635, #fde68a, #f9a8d4, #a3e635); }
.hg-av-funktion > .hg-in { background: #1f3a2e; border-color: #13241c; padding: 11px; }
.bu-funktion { left: 29%; bottom: 208px; width: 40px; height: 40px; padding: 5px; border-radius: 8px; background: rgba(31,58,46,.92); box-shadow: 0 4px 14px rgba(0,0,0,.35); transform: rotate(5deg); animation-delay: .3s; }

.fd-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #f1f5ef;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background: radial-gradient(ellipse at 30% 10%, rgba(255,255,255,.06), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(255,255,255,.04), transparent 50%), #1f3a2e;
  font-family: "Outfit", system-ui, sans-serif;
}
.fd-buehne > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.fd-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,.1); color: inherit; }
.fd-teil { display: grid; gap: 14px; animation: aufploppen .4s var(--ease-spring); }
#fd-intro { text-align: center; }
.fd-logo { width: 96px; height: 96px; margin: 0 auto; padding: 14px; border-radius: 18px; background: #284a3b; box-shadow: inset 0 0 0 3px #7c5a36, 0 10px 30px rgba(0,0,0,.35); transform: rotate(-4deg); }
.fd-titel { margin: 0; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.01em; color: #f1f5ef; text-shadow: 0 0 1px rgba(255,255,255,.5); }
.fd-lead { margin: 0 auto; max-width: 36ch; line-height: 1.5; opacity: .85; min-height: 3em; }
.fd-buehne .takt-modi button { border-color: rgba(241,245,239,.2); }
.fd-buehne .takt-modi button.on { border-color: #fde68a; background: rgba(253,230,138,.14); }
.fd-buehne .takt-modi button { font-size: 0.85rem; }
.fd-buehne .farb-stufen button { border-color: rgba(241,245,239,.2); background: rgba(255,255,255,.05); color: inherit; }
.fd-buehne .farb-stufen button.on { border-color: #fde68a; background: rgba(253,230,138,.14); }
.fd-stufen button small { font-size: 0.68rem; }
.fd-challenge { background: rgba(253,230,138,.12); border-color: rgba(253,230,138,.5); }
.fd-buehne .btn, .zf-buehne .btn { width: 100%; }
.fd-buehne .btn.fd-gross-btn { font-size: 1.15rem; padding: 16px; background: #fde68a; color: #1f3a2e; box-shadow: 0 5px 0 #b59a3c, 0 12px 26px rgba(0,0,0,.3); }
.fd-buehne .btn.fd-gross-btn:disabled { opacity: .4; }
.fd-buehne .btn.secondary { background: rgba(255,255,255,.08); color: inherit; }
.fd-buehne .btn.fd-lernen-btn { border: 2px dashed rgba(253,230,138,.5); }
.fd-best { font-size: 0.85rem; opacity: .7; }
.fd-frage { text-align: center; font-size: 1.1rem; font-weight: 700; line-height: 1.5; }
.fd-frage code, .fd-buehne code { font-family: inherit; font-weight: 700; color: #fde68a; white-space: nowrap; }
.fd-formel-gross { display: inline-block; margin-top: 4px; padding: 4px 12px; border-radius: 10px; background: rgba(253,230,138,.14); color: #fde68a; font-size: 1.35rem; white-space: nowrap; }
.fd-svg { display: block; width: 100%; height: auto; }
.fd-tafel { fill: #284a3b; stroke: #7c5a36; stroke-width: 5; }
.fd-gitter path { stroke: rgba(241,245,239,.09); stroke-width: 1; }
.fd-achse, .fd-pfeil { stroke: rgba(241,245,239,.7); stroke-width: 1.8; fill: none; }
.fd-zahlen text { fill: rgba(241,245,239,.6); font-size: 10px; text-anchor: middle; font-family: "Outfit", system-ui, sans-serif; }
.fd-kurve { fill: none; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.fd-kurve.ziel { stroke: #fde68a; filter: drop-shadow(0 0 2px rgba(253,230,138,.5)); }
.fd-kurve.du { stroke: #f9a8d4; filter: drop-shadow(0 0 2px rgba(249,168,212,.5)); }
.fd-kurve.gestrichelt { stroke-dasharray: 9 7; stroke-width: 3; }
.fd-kurve.zeichnen { stroke-dasharray: 2000; animation: fdZiehen 1.4s ease-out backwards; }
@keyframes fdZiehen { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }
.fd-punkt { fill: #93c5fd; stroke: #1f3a2e; stroke-width: 2; }
.fd-label { fill: #bfdbfe; font-size: 13px; font-weight: 700; font-family: "Outfit", system-ui, sans-serif; paint-order: stroke; stroke: #284a3b; stroke-width: 4px; }
.fd-label.klein { font-size: 11px; }
.fd-dreieck { fill: rgba(147,197,253,.12); stroke: #93c5fd; stroke-width: 2.4; stroke-dasharray: 5 4; }
.fd-hilfslinie { stroke: #93c5fd; stroke-width: 1.6; stroke-dasharray: 6 5; opacity: .8; }
.fd-gross { max-width: 420px; margin: 0 auto; border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,.35); }
.fd-gross.klein { max-width: 300px; }
.fd-aktion { display: grid; gap: 10px; }
.fd-wahl { display: grid; gap: 10px; }
.fd-formel-btn { padding: 14px; border-radius: 14px; border: 1.5px solid rgba(241,245,239,.2); background: rgba(255,255,255,.06); color: inherit; font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: transform .2s var(--ease-spring), background .2s; animation: aufploppen .4s var(--ease-spring) backwards; }
.fd-formel-btn:nth-child(2) { animation-delay: .05s; } .fd-formel-btn:nth-child(3) { animation-delay: .1s; } .fd-formel-btn:nth-child(4) { animation-delay: .15s; }
.fd-formel-btn:active { transform: scale(.97); background: rgba(253,230,138,.15); }
.fd-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 460px; margin: 0 auto; }
.fd-kachel { position: relative; padding: 0; border: 3px solid transparent; border-radius: 14px; background: none; cursor: pointer; transition: transform .2s var(--ease-spring); animation: aufploppen .4s var(--ease-spring) backwards; }
.fd-kachel:active { transform: scale(.96); border-color: #fde68a; }
.fd-kachel:nth-child(2) { animation-delay: .05s; } .fd-kachel:nth-child(3) { animation-delay: .1s; } .fd-kachel:nth-child(4) { animation-delay: .15s; }
.fd-buchstabe { position: absolute; top: 8px; left: 10px; font-weight: 800; color: #fde68a; }
.fd-tipp { margin: 0; text-align: center; font-size: 0.85rem; opacity: .7; }
.fd-regel { display: grid; gap: 4px; }
.fd-regel-name { font-size: 0.95rem; }
.fd-regel-name b { color: #f9a8d4; font-variant-numeric: tabular-nums; }
.fd-formel-live { text-align: center; font-size: 1.5rem; font-weight: 800; color: #f9a8d4; min-height: 1.4em; }
.fd-regler {
  -webkit-appearance: none; appearance: none; width: 100%; height: 38px; border-radius: 19px; margin: 0; touch-action: none;
  background: linear-gradient(90deg, rgba(249,168,212,.35) var(--pos, 50%), rgba(255,255,255,.07) var(--pos, 50%)); box-shadow: inset 0 0 0 1.5px rgba(249,168,212,.4);
}
.fd-regler::-webkit-slider-thumb { -webkit-appearance: none; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle, #1f3a2e 28%, #f9a8d4 30%); box-shadow: 0 3px 10px rgba(0,0,0,.4); cursor: grab; }
.fd-regler::-moz-range-thumb { width: 32px; height: 32px; border-radius: 50%; background: #1f3a2e; border: 6px solid #f9a8d4; }
.fd-analyse { display: grid; gap: 10px; background: rgba(255,255,255,.06); border-radius: 18px; padding: 14px; animation: aufploppen .45s var(--ease-spring) .15s backwards; }
.fd-loesung { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fd-loesung span { font-size: 0.8rem; opacity: .7; }
.fd-loesung b { font-size: 1.35rem; color: #fde68a; }
.fd-loesung.du b { color: #f9a8d4; font-size: 1.1rem; }
.fd-schritte { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; font-size: 0.95rem; }
.fd-schritte b { color: #fde68a; }
#fd-aufloesung #fdWeiter { position: sticky; bottom: 0; z-index: 2; }
.fd-liste li { background: rgba(255,255,255,.06); }
.fd-lerntext { background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px 14px; line-height: 1.55; }
.fd-lernaktion { display: grid; gap: 10px; }
.fd-geschafft, .zf-geschafft { background: rgba(163,230,53,.15); border: 1.5px solid rgba(163,230,53,.55); border-radius: 14px; padding: 10px 12px; line-height: 1.5; animation: aufploppen .4s var(--ease-spring); }
.fd-buehne .pl-schritte i { background: rgba(241,245,239,.18); }
.fd-buehne .pl-schritte i.fertig { background: #a3e635; } .fd-buehne .pl-schritte i.jetzt { background: #fde68a; box-shadow: 0 0 0 1.5px #f1f5ef; }
.fd-buehne .pl-nav .btn:disabled { opacity: .35; }
.fd-dialog { background: #1f3a2e; color: #f1f5ef; }
.fd-dialog .btn.pw-gross-btn { background: #fde68a; color: #1f3a2e; }
.fd-dialog .btn.secondary { background: rgba(255,255,255,.1); color: inherit; }
.fd-dialog code { font-family: inherit; font-weight: 700; color: #fde68a; }
.fd-schritt { display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 0.9rem; line-height: 1.4; }
.fd-schritt > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fde68a; color: #1f3a2e; font-weight: 800; }
.fd-schritt b { display: block; }
.fd-familien { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fd-familien figure { margin: 0; display: grid; gap: 4px; }
.fd-familien figcaption { display: grid; gap: 2px; font-size: 0.78rem; }
.fd-familien figcaption small { opacity: .75; line-height: 1.35; }
.fd-falle { background: rgba(249,168,212,.12); border-radius: 12px; padding: 10px 12px; font-size: 0.88rem; line-height: 1.45; }

/* ===================================================================
   🎲 Zufalls-Gefühl – Spieltisch: dunkles Weinrot, Gold, Würfel-Weiß
   =================================================================== */
.zf-mini { display: flex; align-items: center; justify-content: center; gap: 2px; width: 100%; height: 100%; font-size: 1.7rem; line-height: 1; color: #fff7ed; }
.zf-mini i { font-style: normal; display: block; animation: zfRollen 2.8s ease-in-out infinite; }
.zf-mini i + i { animation-delay: .35s; }
@keyframes zfRollen { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-200deg) translateY(-6px); } 80% { transform: rotate(-360deg); } }
.hub-zufall { background: linear-gradient(#2a0a1e, #2a0a1e) padding-box, linear-gradient(90deg, #fbbf24, #f43f5e, #a855f7, #fbbf24) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(244,63,94,0.18); }
.hub-zufall .hg-titel { background: linear-gradient(90deg, #fde68a, #fb7185); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-zufall { --ring: conic-gradient(#fbbf24, #f43f5e, #a855f7, #fbbf24); }
.hg-av-zufall > .hg-in { background: radial-gradient(circle at 40% 35%, #7f1d4b, #3b0a26); border-color: #2a0a1e; }
.bu-zufall { left: 52%; bottom: 224px; display: flex; gap: 2px; font-size: 1.4rem; line-height: 1; color: #fff7ed; filter: drop-shadow(0 0 6px rgba(251,191,36,.45)); animation-delay: .34s; }
.bu-zufall span { display: block; animation: zfRollen 3.2s ease-in-out infinite; }
.bu-zufall span + span { animation-delay: .4s; }

.zf-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #fff7ed;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background: radial-gradient(ellipse at 50% 0%, #6b1740, transparent 65%), radial-gradient(ellipse at 50% 120%, #4c0d33, transparent 60%), #2a0a1e;
  font-family: "Outfit", system-ui, sans-serif;
}
.zf-buehne > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.zf-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,.1); color: inherit; }
.zf-teil { display: grid; gap: 14px; animation: aufploppen .4s var(--ease-spring); }
#zf-intro { text-align: center; }
.zf-logo { display: flex; justify-content: center; gap: 4px; font-size: 4.2rem; line-height: 1; color: #fff7ed; filter: drop-shadow(0 6px 18px rgba(251,191,36,.35)); }
.zf-logo span { display: block; animation: zfRollen 3s ease-in-out infinite; }
.zf-logo span + span { animation-delay: .4s; }
.zf-titel { margin: 0; font-size: 2.5rem; font-weight: 800; background: linear-gradient(90deg, #fde68a, #fb7185); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: center; }
.zf-lead { margin: 0 auto; max-width: 36ch; line-height: 1.5; opacity: .9; }
.zf-buehne .farb-stufen button { border-color: rgba(251,191,36,.25); background: rgba(255,255,255,.05); color: inherit; }
.zf-buehne .farb-stufen button.on { border-color: #fbbf24; background: rgba(251,191,36,.15); }
.zf-stufen button small { font-size: 0.68rem; }
.zf-challenge { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.5); }
.zf-buehne .btn.zf-gross-btn { font-size: 1.15rem; padding: 16px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #2a0a1e; box-shadow: 0 5px 0 #a16207, 0 12px 26px rgba(0,0,0,.35); }
.zf-buehne .btn.zf-gross-btn:disabled { opacity: .4; }
.zf-buehne .btn.secondary { background: rgba(255,255,255,.08); color: inherit; }
.zf-buehne .btn.zf-lernen-btn { border: 2px dashed rgba(251,191,36,.5); }
.zf-buehne .btn.richtig { background: rgba(74,222,128,.25); box-shadow: inset 0 0 0 2px #4ade80; }
.zf-buehne .btn.falsch { background: rgba(248,113,113,.2); box-shadow: inset 0 0 0 2px #f87171; }
.zf-best { font-size: 0.85rem; opacity: .7; }
.zf-karte { display: grid; gap: 10px; justify-items: center; text-align: center; background: rgba(255,255,255,.06); border: 1.5px solid rgba(251,191,36,.25); border-radius: 20px; padding: 18px 16px; }
.zf-emoji { font-size: 3rem; line-height: 1; }
.zf-frage { font-size: 1.15rem; line-height: 1.5; }
.zf-frage b, .zf-auf-frage b { color: #fde68a; }
.zf-wert { text-align: center; font-size: 2.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.zf-regler {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; border-radius: 22px; margin: 0; touch-action: none;
  background: linear-gradient(90deg, rgba(251,191,36,.45) var(--pos, 50%), rgba(255,255,255,.07) var(--pos, 50%)); box-shadow: inset 0 0 0 1.5px rgba(251,191,36,.45);
}
.zf-regler::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #2a0a1e 28%, #fbbf24 30%); box-shadow: 0 3px 10px rgba(0,0,0,.45); cursor: grab; }
.zf-regler::-moz-range-thumb { width: 38px; height: 38px; border-radius: 50%; background: #2a0a1e; border: 6px solid #fbbf24; }
.zf-skala { display: flex; justify-content: space-between; font-size: 0.78rem; opacity: .7; margin-top: -6px; }
.zf-auf-frage { text-align: center; font-size: 0.95rem; line-height: 1.45; opacity: .9; }
.zf-sim { display: block; width: 100%; height: auto; }
.zf-sim rect { fill: rgba(0,0,0,.25); stroke: rgba(251,191,36,.25); }
.zf-sim .halb { stroke: rgba(255,255,255,.12); stroke-dasharray: 3 4; }
.zf-sim .tipp { stroke: #f9a8d4; stroke-width: 2; stroke-dasharray: 7 5; fill: none; }
.zf-sim text.tipp { fill: #f9a8d4; stroke: none; font-size: 11px; font-weight: 700; font-family: "Outfit", system-ui, sans-serif; }
.zf-sim .echt { stroke: #4ade80; stroke-width: 2.4; transition: opacity .5s; }
.zf-sim .quote { stroke: #fbbf24; stroke-width: 2.6; fill: none; stroke-linejoin: round; }
.zf-zaehler { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.zf-zaehler b { font-size: 1.5rem; color: #fbbf24; }
.zf-ticker { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 34px; }
.zf-ticker span { padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.07); font-size: 1rem; letter-spacing: .04em; opacity: .6; }
.zf-ticker span.ok { background: rgba(74,222,128,.2); opacity: 1; }
.zf-analyse { display: grid; gap: 12px; background: rgba(255,255,255,.06); border-radius: 18px; padding: 14px; margin-top: 10px; animation: aufploppen .45s var(--ease-spring) .1s backwards; }
.zf-analyse .farb-tabelle th { text-align: left; }
.zf-schritte { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; font-size: 0.95rem; }
.zf-schritte b { color: #fde68a; }
#zf-aufloesung #zfWeiter { position: sticky; bottom: 0; z-index: 2; margin-top: 12px; }
.zf-liste li { background: rgba(255,255,255,.06); }
.zf-tafel { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; max-width: 320px; margin: 0 auto; width: 100%; font-variant-numeric: tabular-nums; }
.zf-tafel span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; background: rgba(255,255,255,.06); font-size: 0.85rem; transition: background .2s, transform .2s var(--ease-spring); }
.zf-tafel span.kopf { background: none; font-size: 1.35rem; }
.zf-tafel span.an { background: #fbbf24; color: #2a0a1e; font-weight: 800; transform: scale(1.05); }
.zf-tafel.klein { max-width: 260px; }
.zf-balken { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding-bottom: 32px; }
.zf-balken > div { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.zf-balken i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: rgba(255,255,255,.2); }
.zf-balken .an i { background: #fbbf24; }
.zf-balken small { position: absolute; bottom: -16px; left: 0; right: 0; text-align: center; font-size: 0.7rem; opacity: .8; }
.zf-balken em { position: absolute; bottom: -30px; left: 0; right: 0; text-align: center; font-size: 0.62rem; font-style: normal; opacity: .55; }
.zf-balken.mini { height: 70px; padding-bottom: 30px; }
.zf-unter { font-size: 0.72rem; opacity: .6; text-align: center; }
.zf-baum { display: block; width: 100%; max-width: 340px; margin: 0 auto; height: auto; }
.zf-baum path { stroke: rgba(255,255,255,.25); stroke-width: 2.5; fill: none; }
.zf-baum path.an { stroke: #fbbf24; stroke-width: 4; }
.zf-baum text { fill: #fff7ed; font-size: 12px; font-weight: 700; font-family: "Outfit", system-ui, sans-serif; paint-order: stroke; stroke: #2a0a1e; stroke-width: 3px; }
.zf-baum text.end { opacity: .55; } .zf-baum text.end.an { opacity: 1; fill: #fde68a; }
.zf-baum .k.R { fill: #ef4444; } .zf-baum .k.B { fill: #3b82f6; } .zf-baum .k.start { fill: #fff7ed; }
.zf-kurve { display: block; width: 100%; height: auto; }
.zf-kurve .achse { stroke: rgba(255,255,255,.5); fill: none; }
.zf-kurve .halb { stroke: rgba(255,255,255,.2); stroke-dasharray: 4 4; }
.zf-kurve .linie { stroke: #fbbf24; stroke-width: 3; fill: none; }
.zf-kurve circle { fill: #f9a8d4; stroke: #2a0a1e; stroke-width: 2; }
.zf-kurve text { fill: rgba(255,247,237,.7); font-size: 10px; font-family: "Outfit", system-ui, sans-serif; }
.zf-kurve text.marke { fill: #f9a8d4; font-size: 12px; font-weight: 700; }
.zf-kette { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.zf-kette span { padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.08); font-weight: 700; }
.zf-kette i { font-style: normal; opacity: .6; }
.zf-kette b { color: #fde68a; font-size: 1.1rem; }
.zf-kette.klein { font-size: 1.05rem; }
.zf-teilung { display: flex; border-radius: 12px; overflow: hidden; font-size: 0.75rem; text-align: center; line-height: 1.25; }
.zf-teilung > div { padding: 8px 4px; background: rgba(255,255,255,.12); transition: width .3s; min-width: 0; overflow: hidden; }
.zf-teilung > div.an { flex: 1; background: #fbbf24; color: #2a0a1e; font-weight: 700; }
.zf-tueren { display: grid; gap: 6px; }
.zf-tueren > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.06); }
.zf-tueren span { font-size: 0.8rem; opacity: .7; } .zf-tueren b { font-size: 1.3rem; grid-row: span 2; }
.zf-tueren em { font-style: normal; font-size: 0.85rem; }
.zf-tueren p { margin: 4px 0 0; font-size: 0.85rem; opacity: .8; }
.zf-lerntext { background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px 14px; line-height: 1.55; }
.zf-lernbox { display: grid; gap: 10px; }
.zf-seiten { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.zf-seiten button { aspect-ratio: 1; border-radius: 12px; border: 2px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: inherit; font-size: 2.2rem; line-height: 1; cursor: pointer; transition: transform .2s var(--ease-spring), background .2s; }
.zf-seiten button.an { background: #fbbf24; color: #2a0a1e; border-color: #fbbf24; transform: scale(1.06); }
.zf-bruch { text-align: center; font-size: 1.1rem; font-variant-numeric: tabular-nums; min-height: 1.3em; }
.zf-bruch b { color: #fde68a; }
.zf-summen { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; }
.zf-summen button { padding: 8px 0; border-radius: 8px; border: 0; background: rgba(255,255,255,.08); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.zf-summen button.an { background: #fbbf24; color: #2a0a1e; }
.zf-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.zf-buehne .pl-schritte i { background: rgba(255,255,255,.18); }
.zf-buehne .pl-schritte i.fertig { background: #4ade80; } .zf-buehne .pl-schritte i.jetzt { background: #fbbf24; box-shadow: 0 0 0 1.5px #fff7ed; }
.zf-buehne .pl-nav .btn:disabled { opacity: .35; }
.zf-dialog { background: #3b0a26; color: #fff7ed; }
.zf-dialog .btn.pw-gross-btn { background: #fbbf24; color: #2a0a1e; }
.zf-dialog .btn.secondary { background: rgba(255,255,255,.1); color: inherit; }
.zf-regel { display: grid; grid-template-columns: 36px 1fr; gap: 10px; font-size: 0.9rem; line-height: 1.4; }
.zf-regel > span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fbbf24; color: #2a0a1e; font-weight: 800; }
.zf-regel b { display: block; }
.zf-kasten { font-size: 0.86rem; background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 12px; }
.zf-kasten ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; }
@media (prefers-reduced-motion: reduce) { .fd-mini .fm-kurve, .fd-mini .fm-punkt, .zf-mini i, .bu-zufall span, .zf-logo span, .fd-kurve.zeichnen { animation: none; } }

/* ===================================================================
   🧑‍🏫 Führung: Spickzettel und geführte Einführung für alle Spiele (fuehrung.js)
   Farben je Spiel über Variablen, Grundlook dunkel
   =================================================================== */
.fh { --fh-bg: #15151f; --fh-text: #f4f4fa; --fh-karte: rgba(255,255,255,.07); --fh-akzent: #a78bfa; --fh-akzent-text: #160f2e; --fh-gut: #4ade80;
  width: min(580px, calc(100vw - 20px)); max-height: 90dvh; padding: 0; border: 0; border-radius: 22px; overflow: hidden;
  background: var(--fh-bg); color: var(--fh-text); font-family: "Outfit", system-ui, sans-serif; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.fh[open] { display: flex; flex-direction: column; animation: aufploppen .35s var(--ease-spring); }
.fh::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.fht-farben { --fh-bg: #1b1426; --fh-akzent: #f472b6; --fh-akzent-text: #2a0a1e; }
.fht-toene { --fh-bg: #08202a; --fh-akzent: #67e8f9; --fh-akzent-text: #062028; }
.fht-takt { --fh-bg: #1f1208; --fh-akzent: #ff8a3d; --fh-akzent-text: #2a1206; }
.fht-augen { --fh-bg: #0a1c36; --fh-akzent: #ffb547; --fh-akzent-text: #241500; }
.fht-karte { --fh-bg: #0f2a2a; --fh-akzent: #34d399; --fh-akzent-text: #052016; }
.fht-tiefgang { --fh-bg: #06223f; --fh-akzent: #22d3ee; --fh-akzent-text: #04202b; }
.fht-riff { --fh-bg: #0b1f22; --fh-akzent: #fb7185; --fh-akzent-text: #2a0710; }
.fht-cello { --fh-bg: #1e140c; --fh-akzent: #d6a35c; --fh-akzent-text: #1e140c; }
.fht-krimi { --fh-bg: #1a0f0f; --fh-akzent: #ef4444; --fh-akzent-text: #fff; }
.fh-kopf { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; font-size: 1.05rem; }
.fh-emoji { font-size: 1.5rem; }
.fh-kopf b { flex: 1; }
.fh-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--fh-karte); color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.fh-inhalt { display: grid; gap: 12px; padding: 0 16px calc(env(safe-area-inset-bottom) + 16px); overflow-y: auto; }
.fh-inhalt h3 { margin: 0; text-align: center; font-size: 1.3rem; }
.fh-spick { display: grid; gap: 10px; }
.fh-regelzeile { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; font-size: 0.92rem; line-height: 1.45; }
.fh-regelzeile > span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--fh-akzent); color: var(--fh-akzent-text); font-weight: 800; }
.fh-regelzeile b { display: block; }
.fh-kasten { background: var(--fh-karte); border-radius: 14px; padding: 10px 12px; font-size: 0.88rem; line-height: 1.45; }
.fh-kasten ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.fh-haupt, .fh-zweit, .fh-opt { padding: 13px 14px; border-radius: 14px; border: 0; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s var(--ease-spring), background .2s; }
.fh-haupt { background: var(--fh-akzent); color: var(--fh-akzent-text); font-size: 1.05rem; box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.fh-zweit, .fh-opt { background: var(--fh-karte); color: inherit; }
.fh-haupt:disabled, .fh-zweit:disabled { opacity: .35; cursor: default; }
.fh-haupt:active, .fh-opt:active { transform: scale(.97); }
.fh-opt.richtig { background: rgba(74,222,128,.22); box-shadow: inset 0 0 0 2px var(--fh-gut); }
.fh-opt.falsch { background: rgba(248,113,113,.2); box-shadow: inset 0 0 0 2px #f87171; }
.fh-opt:disabled { cursor: default; }
.fh-punkte { display: flex; justify-content: center; gap: 6px; }
.fh-punkte i { width: 24px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); }
.fh-punkte i.fertig { background: var(--fh-gut); } .fh-punkte i.jetzt { background: var(--fh-akzent); }
.fh-schritt-titel { animation: aufploppen .35s var(--ease-spring); }
.fh-bild { display: grid; gap: 8px; justify-items: center; animation: aufploppen .4s var(--ease-spring) .05s backwards; }
.fh-text { background: var(--fh-karte); border-radius: 14px; padding: 12px 14px; line-height: 1.55; }
.fh-text b, .fh-geschafft b { color: var(--fh-akzent); }
.fh-auftrag { display: grid; gap: 10px; }
.fh-frage { font-weight: 700; text-align: center; line-height: 1.45; }
.fh-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.fh-nein { font-size: 0.88rem; opacity: .85; text-align: center; min-height: 1.2em; }
.fh-geschafft { background: rgba(74,222,128,.14); border: 1.5px solid rgba(74,222,128,.5); border-radius: 14px; padding: 10px 12px; line-height: 1.5; animation: aufploppen .4s var(--ease-spring); }
.fh-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.fh-ueber { justify-self: center; border: 0; background: none; color: inherit; opacity: .55; font: inherit; font-size: 0.82rem; text-decoration: underline; cursor: pointer; }
.fh-messung { text-align: center; font-variant-numeric: tabular-nums; min-height: 1.3em; }
.fh-regel { display: grid; gap: 4px; font-size: 0.9rem; }
.fh-regler { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; border-radius: 17px; margin: 0; touch-action: none; background: var(--spur, linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.3))); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2); }
.fh-regler::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 5px solid var(--fh-akzent); box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: grab; }
.fh-regler::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--fh-akzent); }
.fh-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fh-felder > div { display: grid; gap: 4px; text-align: center; font-size: 0.8rem; opacity: .9; }
.fh-felder i { display: block; height: 70px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }
.fh-reihe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fh-kleck { display: inline-grid; justify-items: center; gap: 4px; font-size: 0.78rem; }
.fh-kleck i { display: block; width: 54px; height: 54px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.2), 0 4px 10px rgba(0,0,0,.3); }
.fh-gleichung { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.3rem; font-weight: 800; flex-wrap: wrap; }
.fh-chip { padding: 6px 12px; border-radius: 10px; background: var(--fh-akzent); color: var(--fh-akzent-text); font-size: 1.1rem; }
.fh-wellen { width: 100%; max-width: 360px; }
.fh-wellen path { fill: none; stroke: var(--fh-akzent); stroke-width: 3; }
.fh-wellen path.hoch { stroke: #f9a8d4; }
.fh-skala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: 100%; text-align: center; font-size: 0.78rem; }
.fh-skala > div { background: var(--fh-karte); border-radius: 10px; padding: 8px 2px; display: grid; gap: 2px; }
.fh-halten { width: 150px; height: 150px; justify-self: center; border-radius: 50%; border: 4px solid var(--fh-akzent); background: var(--fh-karte); color: inherit; font: inherit; font-weight: 700; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .2s, background .2s; }
.fh-halten.an { background: var(--fh-akzent); color: var(--fh-akzent-text); transform: scale(.94); }
.fh-puls { display: grid; place-items: center; height: 90px; }
.fh-puls i { width: 50px; height: 50px; border-radius: 50%; background: var(--fh-akzent); animation: fhPuls var(--dauer) ease-out infinite; }
@keyframes fhPuls { 0% { transform: scale(1.35); opacity: 1; } 60%, 100% { transform: scale(.8); opacity: .45; } }
.fh-tipp { font-size: 1.2rem; padding: 18px; }
.fh-takt { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.fh-takt > b { width: 42px; }
.fh-takt i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 0.8rem; background: var(--fh-karte); }
.fh-takt i.eins { background: var(--fh-akzent); color: var(--fh-akzent-text); font-weight: 800; transform: scale(1.12); }
.fh-takt i.halb { box-shadow: inset 0 0 0 2px var(--fh-akzent); }
.fh-takt span { opacity: .4; }
.fh-tafel { width: 100%; max-width: 380px; background: rgba(0,0,0,.25); border-radius: 14px; touch-action: manipulation; }
.fh-linie, .fh-linie path { stroke: #e8f1ff; stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fh-du { stroke: var(--fh-akzent); stroke-width: 3; }
.fh-mitte { stroke: var(--fh-gut); stroke-width: 3; }
.fh-du-punkt { fill: var(--fh-akzent); stroke: #fff; stroke-width: 2; }
.fh-ziel-punkt { fill: var(--fh-gut); stroke: #fff; stroke-width: 2; }
.fh-hilfe { stroke: var(--fh-gut); stroke-width: 1.5; stroke-dasharray: 5 4; }
.fh-ring { fill: rgba(52,211,153,.08); stroke: var(--fh-akzent); stroke-width: 2; stroke-dasharray: 6 5; }
.fh-svg-text { fill: currentColor; font-size: 13px; font-family: "Outfit", system-ui, sans-serif; font-weight: 700; }
.fh-karte { width: 100%; border-radius: 14px; overflow: hidden; touch-action: manipulation; }
.fh-karte .kt-svg { display: block; width: 100%; height: auto; max-height: 52dvh; }
.fh-anker { fill: #1f2937; stroke: #fff; stroke-width: 1; }
.fh-karten-text { fill: #1f2937; font-weight: 700; font-family: "Outfit", system-ui, sans-serif; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.fh-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; text-align: center; font-size: 0.88rem; }
.fh-tabelle th, .fh-tabelle td { padding: 6px 4px; }
.fh-tabelle tr + tr { border-top: 1px solid rgba(255,255,255,.1); }
.fh-tabelle th:first-child { text-align: left; }
.fh-karten { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fh-karten i { width: 44px; height: 56px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 1.6rem; background: var(--fh-karte); box-shadow: 0 3px 0 rgba(0,0,0,.25); animation: aufploppen .4s var(--ease-spring) backwards; animation-delay: calc(var(--k) * .12s); }
.fh-karten i.boom { box-shadow: inset 0 0 0 2px #f87171; background: rgba(248,113,113,.2); }
.fh-karten b { font-size: 1.8rem; }
.fh-zonen { display: grid; gap: 6px; width: 100%; }
.fh-zonen > div { display: grid; padding: 10px 12px; border-radius: 12px; font-size: 0.88rem; }
.fh-riff { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; width: 100%; max-width: 260px; padding: 6px; border-radius: 12px; background: #0e7490; }
.fh-riff i { aspect-ratio: 1; border-radius: 5px; background: rgba(255,255,255,.15); display: grid; place-items: center; font-style: normal; font-size: 1rem; }
.fh-riff i.hervor { box-shadow: 0 0 0 3px #fff; z-index: 1; }
.fh-riff span { display: grid; place-items: center; width: 80%; height: 80%; border-radius: 50%; box-shadow: 0 0 0 3px var(--fisch); }
.fh-wuerfel { display: grid; gap: 8px; width: 100%; }
.fh-wuerfel > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fh-wuerfel b { width: 52px; font-size: 0.85rem; }
.fh-wuerfel span { width: 40px; height: 40px; border-radius: 9px; background: #fff; display: grid; place-items: center; color: #111; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.fh-wuerfel svg { width: 28px; height: 28px; } .fh-wuerfel rect { fill: #0e7490; }
.fh-wuerfel span i { width: 24px; height: 24px; border-radius: 50%; display: block; }
.fh-noten { background: #fbf7ef; border-radius: 12px; padding: 4px; color: #1e140c; width: 100%; max-width: 300px; }
.fh-noten svg { display: block; width: 100%; height: auto; }
.fh-noten line { stroke: #1e140c; }
.fh-noten-klein { display: grid; gap: 2px; justify-items: center; width: 84px; }
.fh-noten-klein .fh-noten { padding: 0; }
.fh-griff { width: 100%; max-width: 340px; }
.fh-griff svg { width: 100%; height: auto; }
.fh-klavier { width: 100%; max-width: 360px; }
.fh-klavier .w { fill: #fbf7ef; stroke: #1e140c; } .fh-klavier .w.an { fill: #fde68a; } .fh-klavier .s { fill: #1e140c; }
.fh-klavier text { font-size: 9px; font-weight: 700; fill: #1e140c; font-family: "Outfit", system-ui, sans-serif; }
.fh-saiten { display: grid; gap: 10px; width: 100%; max-width: 340px; }
.fh-saiten > div { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; }
.fh-saiten i { display: block; height: var(--d); background: linear-gradient(90deg, #d6a35c, #fde68a, #d6a35c); border-radius: 2px; }
.fh-gitter { display: grid; grid-template-columns: repeat(var(--n), 1fr); width: 100%; max-width: 260px; border: 2px solid #1a0f0f; border-radius: 6px; overflow: hidden; }
.fh-gitter i { aspect-ratio: 1; display: grid; place-items: center; font-style: normal; font-size: 1.15rem; font-weight: 800; color: #7f1d1d; border: 0 solid #1a0f0f; }
.fh-gitter i.hervor { box-shadow: inset 0 0 0 3px #ef4444; }
.fh-raster { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 4px; width: 100%; font-size: 0.82rem; }
.fh-raster .kopf { display: grid; place-items: center; text-align: center; padding: 4px; font-weight: 700; }
.fh-raster button { aspect-ratio: 1.6; border: 0; border-radius: 8px; background: var(--fh-karte); color: inherit; font: inherit; font-size: 1.3rem; font-weight: 800; cursor: pointer; }
/* ?-Knopf in den Spielen, Sprechblase beim ersten Mal */
.farb-kopf { position: relative; }
.fh-knopf { font-weight: 800; font-size: 1.1rem; margin-left: auto; }
.farb-kopf > span:not(.fh-blase):not(.k-kopf-rechts) { flex: 1; text-align: center; }
.fh-knopf.neu { animation: fhLeuchten 1.4s ease-in-out infinite; }
@keyframes fhLeuchten { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }
.fh-blase { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; max-width: 220px; padding: 8px 12px; border-radius: 12px; background: #fff; color: #111; font-size: 0.85rem; font-weight: 600; text-align: left; box-shadow: 0 8px 24px rgba(0,0,0,.3); cursor: pointer; animation: aufploppen .4s var(--ease-spring); }
.fh-blase::before { content: ''; position: absolute; right: 14px; top: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
.btn.fh-intro-btn { width: 100%; border: 2px dashed rgba(255,255,255,.35); }
.btn.fh-krimi-btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .fh-puls i, .fh-takt i, .fh-knopf.neu { animation: none; } }

/* ===================================================================
   📊 Du in Zahlen – ruhige Infografik: Papierweiß, Petrol, Bernstein
   =================================================================== */
.zl-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; width: 100%; height: 100%; }
.zl-mini i { border-radius: 2px; background: #0f766e; animation: zlMini 4s steps(1) infinite; }
.zl-mini i:nth-child(n+8) { background: #d7dde5; }
.zl-mini i:nth-child(8) { background: #f59e0b; animation: zlBlink 1.2s ease-in-out infinite; }
@keyframes zlBlink { 50% { opacity: .35; } }
.hub-zahlen { background: linear-gradient(#0d1b1e, #0d1b1e) padding-box, linear-gradient(90deg, #2dd4bf, #f59e0b, #e5e7eb, #2dd4bf) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(45,212,191,0.16); }
.hub-zahlen .hg-titel { background: linear-gradient(90deg, #99f6e4, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-zahlen { --ring: conic-gradient(#2dd4bf, #f59e0b, #e5e7eb, #2dd4bf); }
.hg-av-zahlen > .hg-in { background: #f7f8fa; border-color: #0d1b1e; padding: 12px; }

.zl-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #14202b;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 32px);
  background: #f7f8fa; font-family: "Outfit", system-ui, sans-serif;
}
.zl-buehne > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.zl-buehne .farb-kopf .icon-btn { background: #fff; color: #14202b; box-shadow: 0 2px 0 rgba(20,32,43,.12); }
.zl-kopf { display: grid; gap: 12px; text-align: center; animation: aufploppen .4s var(--ease-spring); }
.zl-titel { margin: 6px 0 0; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }
.zl-titel::after { content: ''; display: block; width: 64px; height: 5px; margin: 6px auto 0; border-radius: 3px; background: linear-gradient(90deg, #0f766e, #f59e0b); }
.zl-lead { margin: 0 auto; max-width: 44ch; line-height: 1.5; color: #4b5563; }
.zl-eingabe { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; text-align: left; }
.zl-eingabe label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; color: #4b5563; }
.zl-eingabe input { font: inherit; font-size: 1.1rem; font-weight: 700; padding: 12px; border-radius: 14px; border: 2px solid #d7dde5; background: #fff; color: #14202b; min-width: 0; }
.zl-eingabe input:focus { outline: none; border-color: #0f766e; }
.zl-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; font-size: 0.85rem; }
.zl-chips span { color: #6b7280; }
.zl-chips button { padding: 7px 12px; border-radius: 999px; border: 1.5px solid #d7dde5; background: #fff; color: #14202b; font: inherit; font-weight: 600; cursor: pointer; }
.zl-chips button.on { background: #0f766e; border-color: #0f766e; color: #fff; }
.zl-hinweis { color: #b91c1c; font-weight: 600; min-height: 1.2em; }
.zl-ergebnis { display: grid; gap: 18px; margin-top: 10px; }
.zl-abschnitt { display: grid; gap: 12px; background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 1px 0 rgba(20,32,43,.06), 0 10px 30px rgba(20,32,43,.06); animation: aufploppen .45s var(--ease-spring) backwards; }
.zl-abschnitt:nth-child(2) { animation-delay: .06s; } .zl-abschnitt:nth-child(3) { animation-delay: .12s; } .zl-abschnitt:nth-child(4) { animation-delay: .18s; }
.zl-abschnitt h3 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.zl-marke { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 0.7rem; font-weight: 700; vertical-align: middle; }
.zl-alter-gross { font-size: 2.6rem; font-weight: 800; line-height: 1.1; text-align: center; color: #0f766e; font-variant-numeric: tabular-nums; }
.zl-alter-gross small { font-size: 1rem; color: #6b7280; font-weight: 600; }
.zl-raster4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.zl-raster4 > div { display: grid; gap: 2px; padding: 10px; border-radius: 14px; background: #f1f5f4; text-align: center; }
.zl-raster4 b { font-size: 1.25rem; font-variant-numeric: tabular-nums; word-break: break-all; }
.zl-raster4 small { color: #6b7280; font-size: 0.78rem; }
.zl-meilen { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; }
.zl-meilen li { padding: 9px 12px; border-radius: 12px; background: #f7f8fa; }
.zl-meilen li.zl-geb { background: #fef3c7; }
.zl-meilen li.vorbei { color: #6b7280; background: none; padding: 2px 12px; font-size: 0.85rem; }
.zl-wochen { display: block; width: 100%; height: auto; }
.zl-text { margin: 0; line-height: 1.5; color: #374151; font-size: 0.92rem; }
.zl-text small { display: block; margin-top: 6px; color: #6b7280; }
.zl-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.zl-karte { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; padding: 12px; border-radius: 16px; background: #f7f8fa; border: 1.5px solid #eef1f5; }
.zl-karte.schaetz { border-style: dashed; border-color: #f2d58a; background: #fffcf3; }
.zl-k-emoji { font-size: 1.7rem; line-height: 1; }
.zl-karte small { display: block; color: #6b7280; font-size: 0.78rem; font-weight: 600; }
.zl-karte b { display: block; font-size: 1.3rem; color: #0f766e; line-height: 1.25; font-variant-numeric: tabular-nums; }
.zl-karte.schaetz b { color: #b45309; }
.zl-karte p { margin: 4px 0 0; font-size: 0.82rem; line-height: 1.4; color: #4b5563; }
.zl-fuss { margin: 0; font-size: 0.8rem; color: #6b7280; line-height: 1.45; }
.zl-land { display: grid; grid-template-columns: 112px 1fr 38px; align-items: center; gap: 8px; font-size: 0.85rem; padding: 3px 0; }
.zl-land.de { font-weight: 800; }
.zl-land b { text-align: right; font-variant-numeric: tabular-nums; }
.zl-balken { position: relative; height: 14px; border-radius: 7px; background: #eef1f5; }
.zl-balken i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: linear-gradient(90deg, #5eead4, #0f766e); }
.zl-land.de .zl-balken i { background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.zl-balken em { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #14202b; }
.zl-quellen ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.8rem; color: #4b5563; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .zl-mini i { animation: none; } }
.zl-karte p b { display: inline; font-size: inherit; color: #14202b; line-height: inherit; }

/* ===================================================================
   🐾 Ein Tierleben – ruhig und ernst: dunkles Erdgrün, Strohgelb, wenig Effekte
   =================================================================== */
.tl-mini { display: grid; grid-template-columns: 1fr 1fr; place-items: center; width: 100%; height: 100%; font-size: 1.1rem; line-height: 1; }
.tl-mini i { font-style: normal; animation: tlMini 4s ease-in-out infinite; }
.tl-mini i:nth-child(2) { animation-delay: 1s; } .tl-mini i:nth-child(3) { animation-delay: 2s; } .tl-mini i:nth-child(4) { animation-delay: 3s; }
@keyframes tlMini { 0%, 100% { opacity: .55; transform: scale(.9); } 12% { opacity: 1; transform: scale(1.12); } 30% { opacity: .55; transform: scale(.9); } }
.hub-tierleben { background: linear-gradient(#161a12, #161a12) padding-box, linear-gradient(90deg, #a3a380, #d6c48a, #6b8f71, #a3a380) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(163,163,128,0.15); }
.hub-tierleben .hg-titel { background: linear-gradient(90deg, #e9e2c0, #a7c4a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-tierleben { --ring: conic-gradient(#a3a380, #d6c48a, #6b8f71, #a3a380); }
.hg-av-tierleben > .hg-in { background: #262b20; border-color: #161a12; padding: 9px; }

.tl-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #ece8d9;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 28px);
  background: radial-gradient(ellipse at 50% -10%, #343b2a, transparent 60%), #171a14; font-family: "Outfit", system-ui, sans-serif;
}
.tl-buehne > * { max-width: 620px; margin-left: auto; margin-right: auto; }
.tl-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,.08); color: inherit; }
.tl-teil { display: grid; gap: 14px; animation: aufploppen .4s var(--ease-spring); }
.tl-titel { margin: 4px 0 0; text-align: center; font-size: 2.5rem; font-weight: 800; color: #e9e2c0; letter-spacing: -0.01em; }
.tl-lead { margin: 0 auto; max-width: 42ch; text-align: center; line-height: 1.55; color: #c9c4b0; }
.tl-h { margin: 6px 0 0; font-size: 1.1rem; text-align: center; color: #e9e2c0; }
.tl-zaehler { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(214,196,138,.08); border: 1px solid rgba(214,196,138,.25); }
.tl-zaehler b { font-size: 2rem; font-variant-numeric: tabular-nums; color: #d6c48a; min-width: 3ch; }
.tl-zaehler span { font-size: 0.88rem; line-height: 1.4; }
.tl-zaehler small { color: #9d987f; font-size: 0.75rem; }
.tl-weg { display: grid; justify-items: center; gap: 4px; padding: 18px; border-radius: 20px; border: 1.5px solid rgba(214,196,138,.4); background: linear-gradient(160deg, rgba(214,196,138,.16), rgba(107,143,113,.12)); color: inherit; font: inherit; cursor: pointer; transition: transform .2s var(--ease-spring); }
.tl-weg:active { transform: scale(.98); }
.tl-weg span { font-size: 2.2rem; }
.tl-weg b { font-size: 1.2rem; }
.tl-weg small { color: #c9c4b0; }
.tl-arten { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.tl-art { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: inherit; font: inherit; cursor: pointer; }
.tl-art span { grid-row: span 2; font-size: 1.8rem; }
.tl-art b { font-size: 0.88rem; line-height: 1.2; }
.tl-art small { font-size: 0.74rem; color: #e8a68f; }
.tl-logbuch { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); font-size: 0.88rem; }
.tl-logbuch p { margin: 4px 0 8px; color: #c9c4b0; }
.tl-logbuch-liste { display: flex; flex-wrap: wrap; gap: 4px; font-size: 1.3rem; }
.tl-logbuch-liste .tot { filter: grayscale(1); opacity: .6; }
.tl-los-balken { position: relative; display: flex; height: 54px; border-radius: 12px; overflow: visible; }
.tl-los-balken i { display: block; height: 100%; min-width: 3px; }
.tl-los-balken i:first-child { border-radius: 12px 0 0 12px; } .tl-los-balken i:nth-last-child(2) { border-radius: 0 12px 12px 0; }
.tl-zeiger { position: absolute; top: -12px; bottom: -12px; width: 4px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.8); transition: left 2.2s cubic-bezier(.15,.85,.25,1); }
.tl-los-legende { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; font-size: 0.8rem; color: #c9c4b0; }
.tl-los-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; }
.tl-los-ergebnis { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.05); animation: aufploppen .45s var(--ease-spring); }
.tl-los-ergebnis h3 { margin: 0; font-size: 1.5rem; color: #e9e2c0; }
.tl-los-ergebnis p { margin: 0; line-height: 1.5; color: #c9c4b0; }
.tl-los-emoji, .tl-ende-emoji { font-size: 4rem; line-height: 1; }
.tl-buehne .btn { width: 100%; }
.tl-buehne .btn.tl-gross { font-size: 1.1rem; padding: 15px; background: #d6c48a; color: #171a14; box-shadow: 0 4px 0 #8f7f4a; }
.tl-buehne .btn.secondary { background: rgba(255,255,255,.07); color: inherit; }
.tl-leben-kopf { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.15rem; color: #e9e2c0; }
.tl-leben-kopf span { font-size: 2.2rem; }
.tl-kapitel { display: grid; gap: 12px; }
.tl-kap { position: relative; padding: 14px 16px 14px 20px; border-radius: 18px; background: rgba(255,255,255,.05); border-left: 4px solid #6b8f71; animation: aufploppen .45s var(--ease-spring); scroll-margin-top: 70px; }
.tl-zeit { font-size: 0.78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a7c4a0; }
.tl-kap h3 { margin: 2px 0 6px; font-size: 1.15rem; color: #e9e2c0; }
.tl-kap p { margin: 0; line-height: 1.55; }
.tl-kap p b { color: #f0d98c; }
.tl-q { display: block; margin-top: 8px; font-size: 0.72rem; color: #8f8b76; line-height: 1.35; }
.tl-wahl { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.15); }
.tl-wahl > b { font-size: 0.95rem; }
.tl-opt { padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.tl-opt:disabled { cursor: default; opacity: .45; }
.tl-opt.gewaehlt { opacity: 1; border-color: #d6c48a; background: rgba(214,196,138,.15); }
.tl-antwort { padding: 10px 12px; border-radius: 12px; background: rgba(107,143,113,.15); font-size: 0.92rem; animation: aufploppen .35s var(--ease-spring); }
.tl-tod { padding: 10px 12px; border-radius: 12px; background: rgba(232,166,143,.15); color: #f2b8a2; font-weight: 700; animation: aufploppen .35s var(--ease-spring) .2s backwards; }
.tl-ende { display: grid; gap: 12px; justify-items: center; text-align: center; }
.tl-ende h2 { margin: 0; font-size: 1.6rem; color: #e9e2c0; }
.tl-ende p { margin: 0; line-height: 1.55; }
.tl-ende p b { color: #f0d98c; }
.tl-vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.tl-vergleich > div { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); }
.tl-vergleich small { color: #9d987f; font-size: 0.78rem; }
.tl-vergleich b { font-size: 1.3rem; color: #e9e2c0; }
.tl-lebensbalken { width: 100%; height: 22px; border-radius: 11px; background: rgba(255,255,255,.1); overflow: hidden; }
.tl-lebensbalken i { display: block; height: 100%; width: var(--w); background: #d6c48a; border-radius: 11px; animation: tlBalken 1.6s cubic-bezier(.2,.8,.2,1) .3s backwards; }
@keyframes tlBalken { from { width: 0; } }
.tl-gross-zahl { font-size: 1.15rem; font-weight: 700; color: #e9e2c0; }
.tl-kasten { width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; background: rgba(107,143,113,.12); border: 1px solid rgba(107,143,113,.35); font-size: 0.9rem; line-height: 1.5; }
.tl-kasten ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.tl-kasten p { margin: 6px 0 0; }
.tl-spielregel { font-size: 0.8rem; color: #9d987f; }
.tl-quellen { width: 100%; text-align: left; font-size: 0.8rem; color: #b7b29b; }
.tl-quellen summary { cursor: pointer; font-weight: 700; }
.tl-quellen ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .tl-mini i, .tl-lebensbalken i { animation: none; } .tl-zeiger { transition: none; } }
.tl-art.nutz small { color: #d6c48a; }
.tl-ende-wahl { display: grid; gap: 10px; margin-top: 8px; scroll-margin-top: 60px; }
.tl-art b { align-self: end; } .tl-art small { align-self: start; }

/* 👾 Tierleben – Pixel-Abenteuer */
.tl-modus { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; font-size: 0.85rem; color: #c9c4b0; }
.tl-modus button { padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.tl-modus button.on { border-color: #d6c48a; background: rgba(214,196,138,.18); color: #f0e6c0; }
#tl-pixel { gap: 10px; }
.tp-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: #e9e2c0; }
.tp-kopf small { color: #9d987f; font-variant-numeric: tabular-nums; }
.tp-schirm { position: relative; width: 100%; max-width: 480px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 6px solid #3a3f30; box-shadow: inset 0 0 0 2px #10120c, 0 10px 30px rgba(0,0,0,.5); background: #000; }
#tpBild { display: block; width: 100%; height: auto; aspect-ratio: 160 / 144; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: none; }
.tp-box { position: absolute; left: 4px; right: 4px; bottom: 4px; max-height: 70%; overflow-y: auto; padding: 10px 12px 18px; border-radius: 6px; background: #f8f0d8; color: #1c140a; border: 3px solid #1c140a; box-shadow: inset 0 0 0 2px #f8f0d8, inset 0 0 0 4px #8a6038;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.86rem; line-height: 1.45; cursor: pointer; animation: aufploppen .2s ease-out; }
.tp-box b { color: #5a2d0c; }
.tp-box small { font-size: 0.75rem; }
.tp-weiter { position: absolute; right: 10px; bottom: 4px; font-size: 0.8rem; animation: zlBlink 1s steps(1) infinite; }
.tp-optionen { display: grid; gap: 4px; margin-top: 8px; }
.tp-optionen button { text-align: left; padding: 6px 8px; border: 2px solid #1c140a; border-radius: 4px; background: #fff8e6; color: #1c140a; font: inherit; font-weight: 700; cursor: pointer; }
.tp-optionen button:active { background: #e8d8a8; }
.tp-steuer { display: flex; justify-content: space-between; align-items: center; max-width: 420px; width: 100%; margin: 4px auto 0; padding: 0 8px; }
.tp-pad { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 56px); grid-template-areas: ". h ." "l . r" ". u ."; }
.tp-pad button { border: 0; background: #2c3024; color: #d6c48a; font-size: 1.2rem; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; box-shadow: 0 4px 0 #14160f; }
.tp-pad button:active { transform: translateY(3px); box-shadow: 0 1px 0 #14160f; }
.tp-pad [data-dir=hoch] { grid-area: h; border-radius: 10px 10px 0 0; } .tp-pad [data-dir=runter] { grid-area: u; border-radius: 0 0 10px 10px; }
.tp-pad [data-dir=links] { grid-area: l; border-radius: 10px 0 0 10px; } .tp-pad [data-dir=rechts] { grid-area: r; border-radius: 0 10px 10px 0; }
.tp-a { width: 76px; height: 76px; border-radius: 50%; border: 0; background: #a8324a; color: #fde8e8; font-size: 1.6rem; font-weight: 800; box-shadow: 0 5px 0 #5c1424; touch-action: none; cursor: pointer; }
.tp-a:active { transform: translateY(4px); box-shadow: 0 1px 0 #5c1424; }
.tp-hilfe { margin: 0; text-align: center; font-size: 0.75rem; color: #8f8b76; }
.tp-box.szene { position: static; max-height: none; margin: 0; border-radius: 0 0 6px 6px; border-width: 3px 0 0; animation: none; }

/* ===================================================================
   🐟 Piranha-Schwarm – Amazonas: dunkles Flussgrün, kräftige Fischfarben
   =================================================================== */
.pr-mini { position: relative; display: block; width: 100%; height: 100%; }
.pr-mini i { position: absolute; width: 14px; height: 9px; border-radius: 50% 60% 60% 50%; background: #ef4444; animation: prMini 2.6s linear infinite; }
.pr-mini i::after { content: ''; position: absolute; left: -5px; top: 1px; border: 3.5px solid transparent; border-right-color: inherit; border-right: 5px solid #ef4444; }
.pr-mini i:nth-child(2) { animation-delay: -.5s; top: 30%; background: #facc15; } .pr-mini i:nth-child(2)::after { border-right-color: #facc15; }
.pr-mini i:nth-child(3) { animation-delay: -1s; top: 55%; } .pr-mini i:nth-child(4) { animation-delay: -1.6s; top: 15%; background: #38bdf8; } .pr-mini i:nth-child(4)::after { border-right-color: #38bdf8; }
.pr-mini i:nth-child(5) { animation-delay: -2.1s; top: 70%; background: #facc15; } .pr-mini i:nth-child(5)::after { border-right-color: #facc15; }
@keyframes prMini { from { left: -20%; } to { left: 100%; } }
.hub-piranha { background: linear-gradient(#0f2a22, #0f2a22) padding-box, linear-gradient(90deg, #ef4444, #facc15, #38bdf8, #ef4444) border-box; background-size: 100% 100%, 300% 100%; box-shadow: 0 16px 50px rgba(239,68,68,0.15); }
.hub-piranha .hg-titel { background: linear-gradient(90deg, #fca5a5, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-piranha { --ring: conic-gradient(#ef4444, #facc15, #38bdf8, #ef4444); }
.hg-av-piranha > .hg-in { background: #1f4d3a; border-color: #0f2a22; overflow: hidden; }

.pr-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #e6f4ea;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background: radial-gradient(ellipse at 50% 0%, #2a5a3e, transparent 60%), #0c201a; font-family: "Outfit", system-ui, sans-serif;
}
.pr-buehne > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.pr-buehne > :not(.pr-unten) { position: relative; z-index: 1; }
.pr-unten { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; max-width: none !important; }
.pr-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,.08); color: inherit; }
.pr-teil { display: grid; gap: 12px; animation: aufploppen .4s var(--ease-spring); }
#pr-intro { text-align: center; }
.pr-logo { font-size: 2.6rem; letter-spacing: -0.3em; animation: prSchwimm 3s ease-in-out infinite; }
@keyframes prSchwimm { 50% { transform: translateX(12px); } }
.pr-titel { margin: 0; font-size: 2.5rem; font-weight: 800; background: linear-gradient(90deg, #fca5a5, #fde68a, #86efac); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: center; }
.pr-lead { margin: 0 auto; max-width: 40ch; line-height: 1.5; color: #bfd8c7; }
.pr-regeln { margin: 0; padding: 12px 14px; list-style: none; display: grid; gap: 6px; text-align: left; border-radius: 16px; background: rgba(255,255,255,.05); font-size: 0.9rem; line-height: 1.45; }
.pr-wusstest { margin: 0; font-size: 0.82rem; color: #9fc2ab; }
.pr-buehne .btn { width: 100%; }
.pr-buehne .btn.pr-gross { font-size: 1.15rem; padding: 15px; background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; box-shadow: 0 5px 0 #7f1d1d; }
.pr-buehne .btn.secondary { background: rgba(255,255,255,.08); color: inherit; }
.pr-buehne .btn:disabled { opacity: .4; }
.pr-sterne { font-size: 0.9rem; color: #fde68a; }
.pr-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pr-zeile span { font-variant-numeric: tabular-nums; color: #bfd8c7; }
.pr-feld { display: grid; place-items: center; position: relative; }
.pr-meer { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 25; pointer-events: none; }
.pr-fertig { position: absolute; left: 0; right: 0; bottom: 0; display: grid; align-content: center; gap: 8px; padding: 16px 14px; text-align: center;
  background: linear-gradient(180deg, rgba(8,30,26,.55), rgba(8,30,26,.88)); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border-radius: 0 0 16px 16px; animation: aufploppen .55s var(--ease-spring); }
.pr-fertig[hidden] { display: none; }
.pr-fertig h3 { margin: 0; font-size: 2.1rem; font-weight: 800; background: linear-gradient(90deg, #fca5a5, #fde68a, #86efac); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-f-sterne { font-size: 1.7rem; letter-spacing: 4px; }
.pr-f-werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pr-f-werte div { display: grid; padding: 8px 4px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 0.8rem; color: #bfd8c7; }
.pr-f-werte b { font-size: 1.35rem; color: #fff; font-variant-numeric: tabular-nums; }
.pr-f-werte small { font-size: 0.7rem; opacity: .8; }
.pr-f-lob { margin: 0; font-size: 0.88rem; color: #fde68a; }
.pr-f-knoepfe { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.pr-f-knoepfe .btn[hidden] { display: none; }
#prBild { display: block; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.06); touch-action: manipulation; cursor: pointer; }
.pr-meldung { min-height: 1.4em; text-align: center; font-size: 0.92rem; color: #fde68a; }
.pr-knoepfe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (prefers-reduced-motion: reduce) { .pr-mini i, .pr-logo { animation: none; } }

/* ===================================================================
   🐉 Slowenisch mit Zmajček – Sprachreise durch Slowenien
   =================================================================== */
.hub-slo { background: linear-gradient(#0d1f2b, #0d1f2b) padding-box, linear-gradient(90deg, #ffffff, #1e40af, #ef4444, #4ade80) border-box; box-shadow: 0 16px 50px rgba(74,222,128,0.14); }
.hub-slo .hg-titel { background: linear-gradient(90deg, #86efac, #93c5fd, #fca5a5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-slo { --ring: conic-gradient(#ffffff, #1e40af, #ef4444, #4ade80, #ffffff); }
.hg-av-slo > .hg-in { background: radial-gradient(circle at 50% 35%, #1e3a5f, #0d1f2b); border-color: #0d1f2b; overflow: hidden; }
.slo-mini { position: relative; display: grid; place-items: center; width: 100%; height: 100%; font-size: 2rem; animation: sloWippen 2.4s ease-in-out infinite; }
.slo-mini i { position: absolute; top: 6%; right: -2%; padding: 1px 5px; border-radius: 8px; background: #fff; color: #14532d; font-size: .5rem; font-style: normal; font-weight: 800; }
@keyframes sloWippen { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }

.slo-buehne {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #e8f5ee; font-family: "Outfit", system-ui, sans-serif;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background: radial-gradient(ellipse at 20% 0%, rgba(74,222,128,.18), transparent 55%), radial-gradient(ellipse at 90% 30%, rgba(59,130,246,.16), transparent 50%), linear-gradient(#0b1a24, #0a1520 60%, #08111a);
}
.slo-buehne > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.slo-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,.08); color: inherit; }
.slo-teil { display: grid; gap: 14px; animation: aufploppen .4s var(--ease-spring); }
.slo-buehne .btn { width: 100%; }
.slo-buehne .btn.secondary { background: rgba(255,255,255,.08); color: inherit; }
.slo-buehne .btn:disabled { opacity: .45; }
.slo-gross { font-size: 1.1rem; padding: 15px; background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 5px 0 #14532d; border-radius: 16px; font-weight: 800; letter-spacing: .02em; }
.slo-gross:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 #14532d; }

/* Tagesziel-Ring und Stimme */
.slo-ring { --a: 0; flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-content: center; text-align: center; line-height: 1;
  background: radial-gradient(closest-side, #0e1f2b 78%, transparent 80% 100%), conic-gradient(#facc15 calc(var(--a) * 360deg), rgba(255,255,255,.1) 0); }
.slo-ring b { font-size: 1.35rem; } .slo-ring small { font-size: .62rem; color: #a7c4b5; }
.slo-stimme { margin: 0; font-size: .78rem; color: #8fb3a2; text-align: center; }

.slo-drache { display: block; width: 100%; height: auto; overflow: visible; }
.slo-jubel { animation: sloHuepf .6s ease-in-out infinite alternate; } @keyframes sloHuepf { to { transform: translateY(-4px); } }

/* Lektion */
.slo-lk-kopf { display: flex; align-items: center; gap: 12px; }
.slo-x { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.slo-balken { flex: 1; height: 14px; border-radius: 7px; background: rgba(255,255,255,.1); overflow: hidden; }
.slo-balken i { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, #4ade80, #22c55e); box-shadow: inset 0 3px 0 rgba(255,255,255,.3); transition: width .4s var(--ease-spring); }
.slo-aufgabe { display: grid; gap: 14px; min-height: 46vh; align-content: start; animation: aufploppen .35s var(--ease-spring); }
.slo-titel { font-size: 1.25rem; font-weight: 800; }
.slo-frage { font-size: 1.7rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slo-frage.satz { font-size: 1.3rem; line-height: 1.35; font-weight: 600; }
.slo-uebersetzung { font-size: .92rem; color: #a7c4b5; }
.slo-laut { width: 40px; height: 40px; flex: none; border: 0; border-radius: 12px; background: #1d4ed8; color: #fff; font-size: 1.1rem; cursor: pointer; box-shadow: 0 4px 0 #1e3a8a; }
.slo-laut:active { transform: translateY(3px); box-shadow: 0 1px 0 #1e3a8a; }
.slo-hoer { display: flex; gap: 14px; justify-content: center; padding: 12px 0; }
.slo-laut.gross { width: 110px; height: 110px; border-radius: 26px; font-size: 3rem; } .slo-laut.langsam { width: 64px; height: 64px; align-self: end; font-size: 1.7rem; }
.slo-optionen { display: grid; gap: 10px; }
.slo-optionen.slo-bilder { grid-template-columns: 1fr 1fr; }
.slo-opt { padding: 14px 16px; border: 2px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.04); color: inherit; font: inherit; font-size: 1.08rem; text-align: left; cursor: pointer; box-shadow: 0 4px 0 rgba(255,255,255,.08); }
.slo-opt.gewaehlt { border-color: #60a5fa; background: rgba(96,165,250,.16); box-shadow: 0 4px 0 #1d4ed8; }
.slo-opt.richtig { border-color: #4ade80; background: rgba(74,222,128,.18); box-shadow: 0 4px 0 #15803d; }
.slo-opt.falsch { border-color: #f87171; background: rgba(248,113,113,.16); box-shadow: 0 4px 0 #b91c1c; }
.slo-bild { display: block; text-align: center; font-size: 3.2rem; line-height: 1.2; font-weight: 800; }
.slo-neu { display: grid; justify-items: center; gap: 8px; padding: 22px; border-radius: 22px; background: rgba(255,255,255,.05); text-align: center; }
.slo-neu-bild { font-size: 4.5rem; font-weight: 800; line-height: 1.1; } .slo-neu-wort { font-size: 2.2rem; font-weight: 800; display: flex; align-items: center; gap: 10px; } .slo-neu-de { font-size: 1.15rem; color: #a7c4b5; }
.slo-eingabe { width: 100%; padding: 14px 16px; border: 2px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(0,0,0,.25); color: #fff; font: inherit; font-size: 1.3rem; }
.slo-eingabe:focus { outline: none; border-color: #60a5fa; }
.slo-zeichen { display: flex; gap: 8px; } .slo-zeichen button { flex: 1; padding: 10px; border: 0; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: 1.3rem; font-weight: 800; cursor: pointer; }
.slo-zeile { min-height: 58px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; padding: 8px 0; border-bottom: 2px solid rgba(255,255,255,.14); border-top: 2px solid rgba(255,255,255,.14); }
.slo-leer { color: #6f9483; font-size: .85rem; align-self: center; }
.slo-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.slo-kachel { padding: 9px 13px; border: 2px solid rgba(255,255,255,.16); border-radius: 12px; background: #13283a; color: #fff; font: inherit; font-size: 1.05rem; cursor: pointer; box-shadow: 0 3px 0 rgba(255,255,255,.1); }
.slo-kachel.weg { visibility: hidden; } .slo-kachel.drin { background: #173b5c; border-color: #3b82f6; }
.slo-loch { display: inline-block; min-width: 3.5em; border-bottom: 3px solid #facc15; color: #facc15; text-align: center; }
.slo-paare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .slo-paare > div { display: grid; gap: 10px; }
.slo-paar { padding: 14px 10px; border: 2px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.04); color: inherit; font: inherit; font-size: 1rem; cursor: pointer; box-shadow: 0 4px 0 rgba(255,255,255,.08); }
.slo-paar.gewaehlt { border-color: #60a5fa; background: rgba(96,165,250,.18); }
.slo-paar.ok { border-color: #4ade80; background: rgba(74,222,128,.14); opacity: .45; transition: opacity .4s; }
.wackeln { animation: sloWackeln .4s; } .slo-paar.wackeln { border-color: #f87171; }
@keyframes sloWackeln { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.slo-tippkarte { padding: 16px; border-radius: 20px; background: rgba(255,255,255,.05); border: 2px solid color-mix(in srgb, var(--f) 50%, transparent); line-height: 1.5; font-size: .95rem; }
.slo-tippkarte p, .slo-dlg-in p { margin: 8px 0; }
.slo-tk-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.slo-tk-kopf .slo-drache { width: 62px; flex: none; }
.slo-tk-kopf small { display: block; color: #a7c4b5; } .slo-tk-kopf b { display: block; font-size: 1.4rem; color: var(--f); } .slo-tk-kopf span { color: #c8e2d4; }

/* Urteil unten */
.slo-fuss { position: sticky; bottom: 0; display: grid; gap: 10px; margin: 0 -16px; padding: 14px 16px calc(env(safe-area-inset-bottom) + 10px); background: #0a1520; border-top: 2px solid rgba(255,255,255,.06); transition: background .25s; }
.slo-fuss.gut { background: #0f3020; border-top-color: #22c55e; }
.slo-fuss.schlecht { background: #3a1414; border-top-color: #ef4444; }
.slo-fuss.schlecht .slo-gross { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 5px 0 #7f1d1d; }
.slo-urteil:empty { display: none; }
.slo-urteil { display: grid; gap: 4px; animation: aufploppen .3s var(--ease-spring); }
.slo-urteil-kopf { display: flex; align-items: center; gap: 10px; } .slo-urteil-kopf .slo-drache { width: 44px; flex: none; }
.slo-urteil-kopf b { font-size: 1.3rem; } .slo-urteil-kopf small { font-size: .8rem; font-weight: 400; opacity: .75; }
.slo-fuss.gut .slo-urteil-kopf b { color: #86efac; } .slo-fuss.schlecht .slo-urteil-kopf b { color: #fca5a5; }
.slo-loesung { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.02rem; }
.slo-loesung .slo-laut { width: 32px; height: 32px; font-size: .9rem; }
.slo-hinweis { font-size: .85rem; opacity: .85; }

/* Ende */
.slo-ende-drache { width: 140px; justify-self: center; }
.slo-ende-titel { margin: 0; text-align: center; font-size: 2.2rem; font-weight: 800; color: #facc15; }
.slo-ende-sub { margin: -8px 0 0; text-align: center; color: #a7c4b5; }
.slo-ende-werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slo-ende-werte div { display: grid; padding: 12px 6px; border-radius: 16px; background: rgba(255,255,255,.06); text-align: center; font-size: .8rem; color: #a7c4b5; }
.slo-ende-werte b { font-size: 1.5rem; color: #fff; }
.slo-ende-ziel { margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(250,204,21,.12); color: #fde68a; text-align: center; }
.slo-ende-fehler { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); font-size: .85rem; }
.slo-ende-fehler b { width: 100%; } .slo-ende-fehler span { padding: 3px 8px; border-radius: 8px; background: rgba(248,113,113,.14); }

/* Wörterbuch und Tipp-Fenster */
.slo-wb-titel { margin: 0; }
.slo-wb-gruppe { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.04); border-left: 4px solid var(--f); }
.slo-wb-gruppe ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.slo-wb-gruppe li { display: grid; grid-template-columns: 30px 1fr 1fr 40px auto; align-items: center; gap: 8px; font-size: .95rem; }
.slo-wb-gruppe li i { color: #a7c4b5; font-style: normal; }
.slo-wb-gruppe li .slo-laut { width: 30px; height: 30px; font-size: .8rem; box-shadow: none; }
.slo-staerke { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #facc15 calc(var(--s) * 100%), rgba(255,255,255,.12) 0); }
.slo-wb-saetze p { margin: 8px 0 0; font-size: .9rem; } .slo-wb-saetze i { color: #a7c4b5; }
.slo-wb-leer { margin: 6px 0 0; color: #6f9483; font-size: .85rem; }
.slo-dlg { max-width: min(520px, calc(100vw - 32px)); padding: 0; border: 2px solid color-mix(in srgb, var(--f) 60%, transparent); border-radius: 22px; background: #0e1f2b; color: #e8f5ee; font-family: "Outfit", system-ui, sans-serif; }
.slo-dlg::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.slo-dlg-in { position: relative; padding: 18px; line-height: 1.5; }
.slo-dlg-zu { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: inherit; font-size: 1.3rem; cursor: pointer; }
.slo-dlg-woerter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: .82rem; }
.slo-dlg-woerter span { padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.07); }
@media (prefers-reduced-motion: reduce) { .slo-mini, .slo-maskottchen, .slo-jubel { animation: none; } }
.slo-mikro { display: grid; justify-items: center; gap: 6px; padding: 22px; border: 2px solid rgba(96,165,250,.4); border-radius: 22px; background: rgba(29,78,216,.18); color: #dbeafe; font: inherit; cursor: pointer; box-shadow: 0 5px 0 #1e3a8a; }
.slo-mikro span { font-size: 2.6rem; } .slo-mikro b { font-size: 1rem; }
.slo-mikro.hoert { border-color: #f87171; background: rgba(239,68,68,.18); animation: sloHoeren 1s ease-in-out infinite; }
@keyframes sloHoeren { 50% { box-shadow: 0 5px 0 #7f1d1d, 0 0 0 10px rgba(239,68,68,.15); } }
.slo-gehoert { min-height: 1.3em; text-align: center; color: #bfdbfe; font-size: .92rem; }
.slo-nicht { justify-self: center; padding: 6px 12px; border: 0; background: none; color: #8fb3a2; font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.slo-combo { justify-self: start; padding: 3px 10px; border-radius: 10px; background: rgba(250,204,21,.16); color: #fde68a; font-weight: 800; font-size: .9rem; animation: aufploppen .4s var(--ease-spring); }

/* ===================================================================
   🧬 Spielekiste 2.0 – Kopf, Tagesaufgaben, Experiment, Profil, Labor
   Eigene Handschrift: dunkle Spielkarten mit farbigem Rand (wie die Games), Zahlen in Tabellenziffern, keine Glas-Effekte.
   =================================================================== */
.sk-start { display: grid; gap: 12px; margin: 4px 0 6px; }
.sk-gruss { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 0; border-radius: 24px; cursor: pointer; text-align: left; font: inherit; color: #fff;
  background: #111119; box-shadow: inset 0 0 0 2px rgba(245,158,11,.35), 0 12px 34px rgba(0,0,0,.35); transition: transform .25s var(--ease-spring); }
.sk-gruss:active { transform: scale(.98); }
.sk-gruss:focus-visible, .sk-tageskarte button:focus-visible, .sk-experiment:focus-visible { outline: 3px solid #fde68a; outline-offset: 3px; }
.sk-level { position: relative; flex: none; width: 54px; height: 54px; display: grid; place-items: center; }
.sk-level svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sk-ring-bg { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 4; } .sk-ring { fill: none; stroke: #f59e0b; stroke-width: 4; stroke-linecap: round; transition: stroke-dasharray .8s var(--ease-out); }
.sk-level b { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sk-gruss-text { flex: 1; display: grid; gap: 1px; min-width: 0; }
.sk-gruss-text small { color: #b7b7cf; font-size: .82rem; } .sk-gruss-text b { font-size: 1.25rem; letter-spacing: -0.01em; } .sk-gruss-text span { color: #8b8bab; font-size: .78rem; font-variant-numeric: tabular-nums; }
.sk-radar.klein { width: 74px; height: 72px; flex: none; }
.sk-tag-kopf { display: flex; align-items: center; justify-content: space-between; }
.sk-tag-kopf .hub-h { margin: 10px 2px 0; } .sk-tag-kopf .hub-h small { font-size: .85rem; color: #8b8bab; font-weight: 600; margin-left: 4px; }
.sk-teilen { width: 38px; height: 38px; margin-top: 10px; border: 0; border-radius: 12px; background: rgba(255,255,255,.07); color: #fff; font-size: 1rem; cursor: pointer; }
.sk-tageskarten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sk-tageskarte { --f: #a78bfa; position: relative; display: grid; align-content: start; gap: 3px; padding: 12px 10px 10px; border-radius: 20px; overflow: hidden; min-height: 150px;
  background: #111119; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--f) 45%, transparent); }
.sk-tageskarte.sk-sense { --f: #22d3ee; } .sk-tageskarte.sk-chaos { --f: #f59e0b; }
.sk-tageskarte::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--f) 35%, transparent), transparent 70%); pointer-events: none; }
.sk-slot { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--f); }
.sk-spiel-emoji { font-size: 1.7rem; line-height: 1.2; }
.sk-tageskarte b { font-size: .98rem; line-height: 1.15; } .sk-tageskarte small { font-size: .72rem; color: #a3a3bf; line-height: 1.3; }
.sk-tageskarte button { margin-top: auto; justify-self: start; padding: 6px 12px; border: 0; border-radius: 12px; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.sk-los { background: var(--f); color: #111; } .sk-karte-btn { background: rgba(255,255,255,.08); color: #fff; }
.sk-tageskarte.fertig { box-shadow: inset 0 0 0 2px var(--f), 0 0 24px color-mix(in srgb, var(--f) 25%, transparent); }
.sk-tageskarte.fertig small { color: #fff; }
.sk-experiment { position: relative; display: grid; gap: 4px; width: 100%; padding: 16px 18px; border: 0; border-radius: 22px; cursor: pointer; text-align: left; font: inherit; color: #d9fff6; overflow: hidden;
  background: repeating-linear-gradient(0deg, rgba(94,234,212,.04) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(94,234,212,.04) 0 1px, transparent 1px 22px), #071a17;
  box-shadow: inset 0 0 0 2px rgba(94,234,212,.35); }
.sk-exp-nr { font: 700 .7rem ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; color: #5eead4; }
.sk-experiment b { font-size: 1.3rem; } .sk-experiment small { color: #9cc9c0; } .sk-exp-status { font-size: .82rem; font-weight: 800; color: #5eead4; margin-top: 4px; }
.sk-kat .hub-h { margin-top: 22px; }
.sk-unten { display: grid; gap: 8px; width: 100%; }
.sk-letzte, .sk-naechste { display: grid; gap: 6px; }
.sk-letzt, .sk-naechste > div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; background: #111119; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.sk-letzt > span, .sk-naechste > div > span { font-size: 1.3rem; }
.sk-letzt > div, .sk-naechste > div > div { flex: 1; display: grid; min-width: 0; } .sk-letzt b, .sk-naechste b { font-size: .92rem; }
.sk-letzt small { color: #8b8bab; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-letzt i { font-style: normal; font-variant-numeric: tabular-nums; color: #fde68a; font-size: .85rem; }
.sk-letzt button { border: 0; background: none; font-size: 1rem; cursor: pointer; padding: 4px; }
.sk-naechste small { color: #8b8bab; font-variant-numeric: tabular-nums; }
.sk-mini { height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 4px; } .sk-mini i { display: block; height: 100%; background: #f59e0b; border-radius: 3px; }
.sk-toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 18px); z-index: 120; transform: translateX(-50%); width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 18px;
  background: #1b1a24; color: #fff; box-shadow: inset 0 0 0 2px rgba(245,158,11,.5), 0 16px 40px rgba(0,0,0,.5); line-height: 1.35; animation: aufploppen .4s var(--ease-spring); transition: opacity .5s, transform .5s; }
.sk-toast.weg { opacity: 0; transform: translate(-50%, 20px); }
.sk-toast small { color: #c9c9e0; } .sk-toast-mehr { display: block; margin-top: 4px; color: #fde68a; font-weight: 800; font-size: .82rem; }
.sk-dlg { max-width: min(520px, calc(100vw - 24px)); width: 100%; padding: 0; border: 0; border-radius: 24px; background: #15141c; color: #f2f2f8; box-shadow: inset 0 0 0 2px rgba(245,158,11,.35); font-family: var(--font-head); }
.sk-dlg::backdrop { background: rgba(0,0,0,.6); }
.sk-dlg-in { position: relative; padding: 20px 18px 18px; display: grid; gap: 12px; }
.sk-dlg-in h3 { margin: 0 34px 0 0; }
.sk-dlg-zu { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: inherit; font-size: 1.3rem; cursor: pointer; }
.sk-karte-vorschau img { display: block; width: 100%; border-radius: 18px; }
.sk-knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; } .sk-knopfreihe .btn { flex: 1 1 140px; }
.sk-code { width: 100%; min-height: 90px; padding: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: #0b0b10; color: #fff; font: .8rem ui-monospace, Menlo, monospace; word-break: break-all; }
.sk-teile { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sk-teile li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.sk-teile small { color: #8b8bab; } .sk-teile b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Profil-Seite */
.sk-buehne, .lab-buehne { position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #f2f2f8; font-family: var(--font-head);
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 28px); background: radial-gradient(ellipse at 50% -10%, #2a1d0a, transparent 55%), #0d0c12; }
.sk-buehne > *, .lab-buehne > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.sk-buehne .farb-kopf .icon-btn, .lab-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,.08); color: inherit; }
#skInhalt { display: grid; gap: 14px; }
.sk-kopfkarte { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 22px; background: #15141c; box-shadow: inset 0 0 0 2px rgba(245,158,11,.3); }
.sk-kopfkarte > div { flex: 1; display: grid; gap: 3px; } .sk-kopfkarte b { font-size: 1.4rem; } .sk-kopfkarte span { color: #c9c9e0; font-size: .9rem; } .sk-kopfkarte small { color: #8b8bab; font-size: .78rem; font-variant-numeric: tabular-nums; }
.sk-ava { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; }
.sk-xpbalken { height: 10px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; margin: 4px 0 2px; } .sk-xpbalken i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #f59e0b, #fde047); }
.sk-block { padding: 16px; border-radius: 22px; background: #15141c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); display: grid; gap: 10px; }
.sk-block h2 { margin: 0; font-size: 1.2rem; } .sk-block h2 small { color: #8b8bab; font-weight: 600; font-size: .85rem; }
.sk-radar { width: 100%; max-width: 380px; justify-self: center; overflow: visible; }
.sk-r-netz { fill: none; stroke: rgba(255,255,255,.1); } .sk-r-achse { stroke: rgba(255,255,255,.08); }
.sk-r-flaeche { fill: color-mix(in srgb, var(--f) 22%, transparent); stroke: var(--f); stroke-width: 2; stroke-linejoin: round; transition: all .6s var(--ease-out); }
.sk-r-punkt { fill: var(--f); }
.sk-r-label { cursor: pointer; outline: none; } .sk-r-label text { fill: #d8d8e8; font-size: 10.5px; font-weight: 700; text-anchor: middle; }
.sk-r-label .sk-r-wert { fill: #fde68a; font-size: 11px; font-variant-numeric: tabular-nums; }
.sk-r-label:hover text, .sk-r-label:focus text { fill: #fff; } .sk-r-label:focus-visible .sk-r-wert { text-decoration: underline; }
.sk-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: .8rem; color: #c9c9e0; }
.sk-legende span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; background: var(--f); vertical-align: -1px; }
.sk-fein { margin: 0; font-size: .78rem; color: #8b8bab; line-height: 1.45; }
.sk-staerken { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sk-staerken div { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); font-size: .88rem; } .sk-staerken b { display: block; font-size: .7rem; color: #8b8bab; text-transform: uppercase; letter-spacing: .06em; } .sk-staerken i { font-style: normal; color: #fde68a; font-weight: 800; }
.sk-tabelle { display: grid; gap: 4px; }
.sk-zeile { display: grid; grid-template-columns: 1fr auto 46px; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 12px; background: rgba(255,255,255,.04); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sk-zeile b { font-variant-numeric: tabular-nums; } .sk-zeile small { color: #86efac; font-size: .75rem; text-align: right; }
.sk-zahlen3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk-zahlen3 div { display: grid; text-align: center; padding: 10px 4px; border-radius: 14px; background: rgba(255,255,255,.05); font-size: .74rem; color: #a3a3bf; } .sk-zahlen3 b { font-size: 1.5rem; color: #fff; font-variant-numeric: tabular-nums; }
.sk-woche { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.sk-woche div { display: grid; justify-items: center; gap: 3px; padding: 6px 0; border-radius: 10px; background: rgba(255,255,255,.04); } .sk-woche small { font-size: .68rem; color: #8b8bab; }
.sk-woche i { width: 10px; height: 10px; border-radius: 3px; background: rgba(255,255,255,.12); } .sk-woche i.an { background: #f59e0b; }
.sk-erfolge { display: grid; gap: 8px; }
.sk-erfolg { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.04); opacity: .75; }
.sk-erfolg > span { font-size: 1.6rem; filter: grayscale(1); } .sk-erfolg > div { flex: 1; display: grid; gap: 2px; } .sk-erfolg small { color: #a3a3bf; font-size: .76rem; }
.sk-erfolg.fertig { opacity: 1; box-shadow: inset 0 0 0 2px rgba(245,158,11,.45); } .sk-erfolg.fertig > span { filter: none; }
.sk-formel p { margin: 0 0 8px; font-size: .84rem; line-height: 1.5; color: #c9c9e0; }
@media (max-width: 380px) { .sk-tageskarten { grid-template-columns: 1fr; } .sk-tageskarte { min-height: 0; } }

/* Labor */
.lab-buehne { background: repeating-linear-gradient(0deg, rgba(94,234,212,.035) 0 1px, transparent 1px 26px), repeating-linear-gradient(90deg, rgba(94,234,212,.035) 0 1px, transparent 1px 26px), #06110f; color: #d9fff6; }
#labInhalt { display: grid; gap: 14px; }
.lab-akte, .lab-versuch, .lab-auswertung { position: relative; display: grid; gap: 12px; padding: 20px 18px; border-radius: 6px 22px 22px 22px; background: #0b1d1a; box-shadow: inset 0 0 0 1px rgba(94,234,212,.3), 0 20px 50px rgba(0,0,0,.45); }
.lab-kopf { display: flex; justify-content: space-between; gap: 10px; font: 700 .72rem ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; color: #5eead4; border-bottom: 1px dashed rgba(94,234,212,.35); padding-bottom: 8px; }
.lab-stempel { position: absolute; top: 46px; right: 14px; transform: rotate(8deg); padding: 4px 10px; border: 2px solid rgba(94,234,212,.4); border-radius: 6px; font: 800 .72rem ui-monospace, Menlo, monospace; letter-spacing: .12em; color: rgba(94,234,212,.55); }
.lab-stempel.an { border-color: #f59e0b; color: #f59e0b; }
.lab-symbol { font-size: 3.6rem; line-height: 1; margin-top: 10px; }
.lab-titel { margin: 0; font-size: 2rem; letter-spacing: -0.02em; color: #fff; }
.lab-frage { margin: 0; font-size: 1.05rem; line-height: 1.45; color: #e6fffb; } .lab-frage span, .lab-ergebnis-kurz span { display: block; font: 700 .68rem ui-monospace, Menlo, monospace; letter-spacing: .14em; color: #5eead4; margin-bottom: 2px; }
.lab-teaser, .lab-anleitung { margin: 0; color: #9cc9c0; line-height: 1.45; }
.lab-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font: .78rem ui-monospace, Menlo, monospace; color: #7fb5aa; }
.lab-ergebnis-kurz { padding: 10px 12px; border-left: 3px solid #f59e0b; background: rgba(245,158,11,.08); }
.lab-los { padding: 14px; border: 0; border-radius: 14px; background: #5eead4; color: #04201b; font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer; box-shadow: 0 5px 0 #0f766e; }
.lab-los:disabled { opacity: .4; } .lab-los:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 #0f766e; }
.lab-zweit { padding: 12px; border: 1px solid rgba(94,234,212,.45); border-radius: 14px; background: transparent; color: #d9fff6; font: inherit; font-weight: 700; cursor: pointer; }
.lab-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lab-h { margin: 8px 2px 0; font: 700 .8rem ui-monospace, Menlo, monospace; letter-spacing: .16em; color: #5eead4; text-transform: uppercase; }
.lab-archiv { display: grid; gap: 6px; }
.lab-archiv-eintrag { display: grid; gap: 2px; padding: 10px 12px; border: 0; border-radius: 12px; background: #0b1d1a; box-shadow: inset 0 0 0 1px rgba(94,234,212,.18); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lab-nr { font: .68rem ui-monospace, Menlo, monospace; color: #5eead4; letter-spacing: .1em; } .lab-archiv-eintrag small { color: #7fb5aa; }
.lab-leer, .lab-fein { margin: 0; color: #7fb5aa; font-size: .8rem; }
.lab-grau { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lab-feld { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; }
.lab-feld i { width: 38%; aspect-ratio: 1; border-radius: 6px; }
.lab-regler { width: 100%; accent-color: #5eead4; height: 36px; }
.lab-reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lab-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; text-align: center; } .lab-paar small { grid-column: 1 / -1; font-size: .7rem; color: #9cc9c0; font-variant-numeric: tabular-nums; }
.lab-mini { aspect-ratio: 1; border-radius: 8px; background: var(--g); display: grid; place-items: center; } .lab-mini i { width: 46%; aspect-ratio: 1; border-radius: 3px; }
.lab-weg { animation: labWeg 2.4s ease-in-out .3s forwards; } @keyframes labWeg { to { background: #7a7a7a; } }
.lab-text { margin: 0; line-height: 1.55; color: #cdeee8; font-size: .94rem; }
.lab-frage-gross { margin: 0; font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1.3; }
.lab-eingabe { display: flex; align-items: center; gap: 10px; } .lab-eingabe input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(94,234,212,.4); background: #04120f; color: #fff; font: inherit; font-size: 1.3rem; }
.lab-eingabe span { color: #9cc9c0; }
.lab-tabelle { width: 100%; border-collapse: collapse; font-size: .78rem; } .lab-tabelle th { text-align: left; color: #5eead4; font: 700 .66rem ui-monospace, Menlo, monospace; letter-spacing: .08em; padding: 4px; }
.lab-tabelle td { padding: 6px 4px; border-top: 1px solid rgba(94,234,212,.15); font-variant-numeric: tabular-nums; } .lab-tabelle tr.hoch td:nth-child(2) { color: #fca5a5; } .lab-tabelle tr.tief td:nth-child(2) { color: #93c5fd; }
@media (prefers-reduced-motion: reduce) { .lab-weg { animation-duration: .01s; } .sk-toast { animation: none; } }

/* 🎼 Gehörbildung im Ton-Gedächtnis */
.gb-einstieg { display: grid; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.gb-einstieg h3 { margin: 0; font-size: 1.1rem; }
.gb-einstieg-knoepfe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gb-einstieg-knoepfe button, .gb-modus { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border: 0; border-radius: 16px; background: rgba(34,211,238,.08); box-shadow: inset 0 0 0 1px rgba(34,211,238,.3); color: inherit; font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; text-align: center; }
.gb-einstieg-knoepfe span, .gb-modus span { font-size: 1.5rem; } .gb-einstieg-knoepfe small, .gb-modus small { font-weight: 400; font-size: .7rem; color: #8fb5b0; }
.gb-modi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gb-modus.on { background: rgba(34,211,238,.22); box-shadow: inset 0 0 0 2px #22d3ee; }
.gb-kopf { display: flex; justify-content: space-between; font-size: .85rem; color: #8fb5b0; font-variant-numeric: tabular-nums; }
.gb-balken { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; } .gb-balken i { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #a3e635); transition: width .4s; }
.gb-info { margin: 0; color: #b7d6d2; text-align: center; } .gb-fein { margin: 0; font-size: .8rem; color: #8fb5b0; text-align: center; }
.gb-ziel { color: #a3e635; font-size: 1.3em; }
.gb-hoeren { justify-self: center; padding: 14px 26px; border: 0; border-radius: 999px; background: #22d3ee; color: #04201c; font: inherit; font-size: 1.1rem; font-weight: 800; cursor: pointer; box-shadow: 0 5px 0 #0e7490; }
.gb-hoeren:active { transform: translateY(3px); box-shadow: 0 2px 0 #0e7490; }
.gb-optionen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gb-opt { display: grid; gap: 1px; padding: 12px 8px; border: 2px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.04); color: inherit; font: inherit; font-weight: 800; cursor: pointer; }
.gb-opt small { font-weight: 400; font-size: .72rem; color: #8fb5b0; }
.gb-opt.richtig, .gb-taste.richtig { border-color: #4ade80 !important; background: rgba(74,222,128,.25) !important; }
.gb-opt.falsch, .gb-taste.falsch { border-color: #f87171 !important; background: rgba(248,113,113,.25) !important; }
.gb-tasten { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; height: 170px; max-width: 420px; width: 100%; justify-self: center; }
.gb-taste { position: relative; border: 2px solid transparent; font: inherit; font-weight: 800; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.gb-taste.weiss { background: #f4f1ea; color: #222; border-radius: 0 0 10px 10px; box-shadow: inset 0 -6px 0 #d6d0c3; }
.gb-taste.schwarz { position: absolute; top: 0; height: 60%; width: calc(100% / 7 * 0.62); left: calc(100% / 7 * var(--pos) - 100% / 7 * 0.31); background: #1b1b22; color: #ddd; border-radius: 0 0 8px 8px; z-index: 2; font-size: .72rem; box-shadow: inset 0 -5px 0 #000; }
.gb-taste:disabled { cursor: default; } .gb-taste.weiss:disabled:not(.richtig):not(.falsch) { color: #bbb; } .gb-taste.schwarz:disabled:not(.richtig):not(.falsch) { color: #555; }
.gb-urteil { display: grid; gap: 10px; } .gb-urteil:empty { display: none; }
.gb-text { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); line-height: 1.45; } .gb-text small { color: #b7d6d2; }
.gb-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }

/* 🐉 Zmajček lebt: Flügelschlag, Blinzeln, Rauch, Funken; Landschaften mit Burgen neben den Stationen */
.slo-fl { transform-box: fill-box; animation: sloFlattern 0.9s ease-in-out infinite; }
.slo-fl-l { transform-origin: 100% 60%; } .slo-fl-r { transform-origin: 0% 60%; animation-delay: -0.45s; animation-name: sloFlatternR; }
@keyframes sloFlattern { 50% { transform: rotate(-16deg) scaleY(1.08); } }
@keyframes sloFlatternR { 50% { transform: rotate(16deg) scaleY(1.08); } }
.slo-jubel .slo-fl { animation-duration: .35s; }
.slo-augen { transform-box: fill-box; transform-origin: center; animation: sloBlinzeln 4.5s infinite; }
@keyframes sloBlinzeln { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.slo-rauch circle { fill: rgba(255,255,255,.55); opacity: 0; animation: sloRauch 3.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.slo-rauch circle:nth-child(2) { animation-delay: 1.6s; }
@keyframes sloRauch { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: .8; } 100% { opacity: 0; transform: translateY(-26px) scale(2.2); } }
.slo-traurig .slo-rauch { display: none; }
.slo-funken path { fill: #fde047; transform-box: fill-box; transform-origin: center; animation: sloFunkeln .7s ease-in-out infinite alternate; }
.slo-funken path:nth-child(2) { animation-delay: .2s; } .slo-funken path:nth-child(3) { animation-delay: .4s; }
@keyframes sloFunkeln { from { transform: scale(.4) rotate(0); opacity: .3; } to { transform: scale(1.2) rotate(40deg); opacity: 1; } }
.slo-traurig { animation: sloSeufzen 2.4s ease-in-out infinite; } @keyframes sloSeufzen { 50% { transform: translateY(2px) rotate(-3deg); } }

/* Maskottchen auf der Karte: fliegt herein, Looping beim Antippen */
button.slo-maskottchen { border: 0; background: none; padding: 0; cursor: pointer; pointer-events: auto; z-index: 3; animation: sloEinflug 1.4s var(--ease-out) both, sloWippen 2.6s ease-in-out 1.4s infinite; }
@keyframes sloEinflug { from { transform: translate(-60px, -120px) rotate(-20deg) scale(.6); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
button.slo-maskottchen.looping { animation: sloLooping 1.1s var(--ease-out); }
@keyframes sloLooping { 0% { transform: none; } 40% { transform: translateY(-40px) rotate(-200deg) scale(1.1); } 70% { transform: translateY(-14px) rotate(-340deg); } 100% { transform: rotate(-360deg); } }
.slo-station { isolation: isolate; }
.slo-deko { position: absolute; z-index: -1; bottom: 0; width: 38%; max-width: 190px; pointer-events: none; opacity: .92; }
.slo-links .slo-deko { right: 0; } .slo-rechts .slo-deko { left: 0; } .slo-mitte .slo-deko { left: 0; width: 22%; opacity: .7; }
.slo-station.zu .slo-deko { filter: grayscale(.85) brightness(.6); }
.slo-szene { display: block; width: 100%; height: auto; border-radius: 0 0 14px 14px; }
.slo-fahne { transform-box: fill-box; transform-origin: 0 50%; animation: sloFahne 1.2s ease-in-out infinite; }
@keyframes sloFahne { 50% { transform: skewY(8deg) scaleX(.85); } }
.slo-wolke { animation: sloWolke 14s linear infinite alternate; } @keyframes sloWolke { to { transform: translateX(60px); } }
.slo-welle { animation: sloWelle 3s ease-in-out infinite alternate; } @keyframes sloWelle { to { transform: translateX(-8px); } }
.slo-boot { animation: sloBoot 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; } @keyframes sloBoot { 50% { transform: translate(6px, 2px) rotate(3deg); } }
.slo-strom { animation: sloStrom 1.6s linear infinite; } @keyframes sloStrom { to { stroke-dashoffset: -20; } }
.slo-fenster { animation: sloFenster 3s ease-in-out infinite; } @keyframes sloFenster { 50% { opacity: .55; } }
.slo-springer { animation: sloSprung 3.5s ease-in infinite; } @keyframes sloSprung { 0%, 20% { transform: none; opacity: 1; } 80% { transform: translate(28px, 40px); opacity: 1; } 100% { transform: translate(30px, 44px); opacity: 0; } }
.slo-pferd { animation: sloPferd 2s ease-in-out infinite; transform-box: fill-box; } @keyframes sloPferd { 50% { transform: translateX(4px) translateY(-1px); } }

/* Lektion: Drache neben dem Fortschritt */
.slo-kopfdrache { flex: none; width: 46px; height: 46px; }
.slo-kopfdrache .slo-drache { width: 100%; }
.slo-kopfdrache.hops { animation: sloHops .6s var(--ease-spring); } @keyframes sloHops { 40% { transform: translateY(-14px) rotate(-8deg); } }
.slo-fuss-knoepfe { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.slo-fuss-knoepfe .slo-weissnicht[hidden] { display: none; }
.slo-fuss-knoepfe:has(.slo-weissnicht[hidden]) { grid-template-columns: 1fr; }
.slo-buehne .btn.slo-weissnicht { width: auto; padding: 0 16px; font-size: .92rem; border-radius: 16px; box-shadow: 0 5px 0 rgba(255,255,255,.08); }
.slo-nicht.oben { justify-self: end; margin-bottom: -6px; text-decoration: none; padding: 4px 10px; border-radius: 10px; background: rgba(255,255,255,.06); }
.slo-ohne { margin-top: 8px; width: auto !important; }
.slo-schalter { margin: 4px 4px 0 0; padding: 4px 10px; border: 0; border-radius: 10px; background: rgba(74,222,128,.15); color: #bbf7d0; font: inherit; font-size: .78rem; cursor: pointer; }
.slo-ende-szene { position: relative; width: 100%; max-width: 230px; justify-self: center; margin-top: 30px; }
.slo-ende-szene .slo-szene { border-radius: 20px; }
.slo-ende-szene .slo-ende-drache { position: absolute; left: 50%; top: -40px; width: 84px; margin-left: -42px; animation: sloKreis 5s ease-in-out infinite; }
@keyframes sloKreis { 0%, 100% { transform: translate(-40px, 0) rotate(-6deg); } 50% { transform: translate(40px, -10px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .slo-fl, .slo-augen, .slo-rauch circle, .slo-funken path, .slo-fahne, .slo-wolke, .slo-welle, .slo-boot, .slo-strom, .slo-fenster, .slo-springer, .slo-pferd, button.slo-maskottchen, .slo-ende-szene .slo-ende-drache, .slo-traurig { animation: none !important; } }

.slo-mikro small { font-size: .72rem; font-weight: 400; color: #bfdbfe; }
.slo-vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .slo-vergleich[hidden] { display: none; }
.slo-selbst { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; margin-top: 4px; }
.slo-selbst span { grid-column: 1 / -1; text-align: center; color: #a7c4b5; font-size: .9rem; }
.slo-check { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.slo-check li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.slo-check li.gut { box-shadow: inset 3px 0 0 #4ade80; } .slo-check li.schlecht { box-shadow: inset 3px 0 0 #f87171; }
.slo-check small { color: #a3a3bf; font-size: .78rem; line-height: 1.4; }
#sloSprechBox { display: grid; gap: 10px; } #sloSprechBox .slo-mikro { width: 100%; }
.slo-pegel { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; } .slo-pegel i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4ade80, #facc15); transition: width .08s; }
.slo-meine { margin-left: 6px; padding: 2px 8px; border: 0; border-radius: 8px; background: rgba(255,255,255,.12); color: inherit; font: inherit; font-size: .8rem; cursor: pointer; }

.slo-ende-flug { animation: sloKreis 5s ease-in-out infinite; } @media (prefers-reduced-motion: reduce) { .slo-ende-flug { animation: none; } }

/* 🧠💥 Dopamin-Maschine */
.hub-dopamin { background: linear-gradient(#12051a, #12051a) padding-box, linear-gradient(90deg, #f472b6, #facc15, #22d3ee, #a78bfa, #f472b6) border-box; background-size: 100% 100%, 300% 100%; }
.hub-dopamin .hg-titel { background: linear-gradient(90deg, #f472b6, #fde047, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-dopamin { --ring: conic-gradient(#f472b6, #facc15, #22d3ee, #a78bfa, #f472b6); }
.hg-av-dopamin > .hg-in { background: #1a0826; overflow: hidden; }
.dp-mini { position: relative; display: grid; place-items: center; width: 100%; height: 100%; font-size: 1.9rem; animation: dpWackel 1.2s ease-in-out infinite; }
.dp-mini i { position: absolute; top: 4%; right: 0; font: 900 .6rem Outfit, sans-serif; font-style: normal; color: #fde047; animation: dpHoch 1.2s ease-out infinite; }
@keyframes dpWackel { 50% { transform: rotate(-8deg) scale(1.08); } } @keyframes dpHoch { from { transform: translateY(8px); opacity: 0; } 40% { opacity: 1; } to { transform: translateY(-8px); opacity: 0; } }
.dp-buehne { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; overflow: hidden; color: #fff; font-family: var(--font-head);
  padding: calc(env(safe-area-inset-top) + 8px) 10px calc(env(safe-area-inset-bottom) + 8px); background: #05030a; }
.dp-buehne > * { max-width: 900px; width: 100%; margin-left: auto; margin-right: auto; }
.dp-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,.08); color: inherit; }
.dp-inhalt { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; position: relative; overflow-y: auto; }
.dp-kopf { display: flex; align-items: center; gap: 8px; }
.dp-punkte { display: flex; align-items: baseline; gap: 6px; min-width: 96px; } .dp-punkte b { font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, #fde047, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dp-punkte small { font-weight: 900; color: #67e8f9; font-size: .9rem; }
.dp-level { flex: 1; display: grid; gap: 2px; font: 900 .7rem Outfit, sans-serif; letter-spacing: .08em; color: #c4b5fd; }
.dp-lbalken { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; } .dp-lbalken i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a78bfa, #f472b6, #fde047); transition: width .2s; }
.dp-zeit { font-variant-numeric: tabular-nums; font-size: .8rem; color: #9ca3af; }
.dp-ton, .dp-ende { padding: 6px 10px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.dp-bild { flex: 1; min-height: 0; width: 100%; border-radius: 14px; touch-action: manipulation; }
.dp-banner { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(.5); opacity: 0; pointer-events: none; font: 900 2.2rem Outfit, sans-serif; letter-spacing: .02em; white-space: nowrap;
  color: #fff; text-shadow: 0 0 12px #f472b6, 0 4px 0 #000; }
.dp-banner.an { animation: dpBanner 1.2s var(--ease-spring); }
@keyframes dpBanner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-6deg); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(2deg); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.9); } }
.dp-intro, .dp-aufloesung { display: grid; gap: 12px; padding: 10px 4px 20px; text-align: center; }
.dp-logo { font-size: 3.4rem; animation: dpWackel 1.4s ease-in-out infinite; }
.dp-titel { margin: 0; font: 900 2rem Outfit, sans-serif; letter-spacing: .02em; background: linear-gradient(90deg, #f472b6, #fde047, #67e8f9, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dp-lead { margin: 0; color: #e9d5ff; line-height: 1.45; }
.dp-regeln, .dp-tricks { margin: 0; padding: 12px 14px; list-style: none; display: grid; gap: 8px; text-align: left; border-radius: 16px; background: rgba(255,255,255,.05); line-height: 1.45; font-size: .92rem; }
.dp-warn { margin: 0; font-size: .82rem; color: #fca5a5; }
.dp-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dp-los, .dp-ruhig { padding: 15px; border: 0; border-radius: 16px; font: inherit; font-size: 1.05rem; font-weight: 900; cursor: pointer; }
.dp-los { background: linear-gradient(135deg, #f472b6, #f59e0b); color: #1a0826; box-shadow: 0 5px 0 #9d174d; } .dp-ruhig { background: rgba(255,255,255,.1); color: #fff; }
.dp-best { margin: 0; color: #9ca3af; font-size: .85rem; }
.dp-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dp-zahlen div { display: grid; padding: 10px 4px; border-radius: 14px; background: rgba(255,255,255,.06); font-size: .75rem; color: #c4b5fd; } .dp-zahlen b { font-size: 1.4rem; color: #fff; } .dp-zahlen small { color: #fca5a5; }
.dp-fein { margin: 0; font-size: .82rem; color: #9ca3af; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .dp-mini, .dp-mini i, .dp-logo { animation: none; } .dp-banner.an { animation-duration: .01s; } }

/* ---------- 🎵 Song-Rätsel ---------- */
.sr-einstieg { border-top: 0; padding-top: 4px; }
.gb-einstieg-knoepfe.sr-zwei, .gb-modi.sr-modi { grid-template-columns: 1fr 1fr; }
.sr-einstieg .gb-einstieg-knoepfe button { background: rgba(163,230,53,.08); box-shadow: inset 0 0 0 1px rgba(163,230,53,.35); }
.sr-quelle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sr-quelle button { display: grid; gap: 2px; padding: 10px 6px; border: 2px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.04); color: inherit; font: inherit; font-weight: 800; cursor: pointer; }
.sr-quelle button small { font-weight: 400; font-size: .72rem; color: #8fb5b0; }
.sr-quelle button.on { border-color: #a3e635; background: rgba(163,230,53,.16); }
.sr-quelle button:disabled { opacity: .5; cursor: default; }
.sr-eigen { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.sr-eigen h3 { margin: 0; font-size: 1rem; } .sr-eigen .gb-fein { text-align: left; }
.sr-datei { text-align: center; cursor: pointer; }
.sr-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .sr-liste:empty { display: none; }
.sr-liste li { display: grid; grid-template-columns: 1fr auto 36px; gap: 8px; align-items: center; padding: 6px 6px 6px 10px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: .88rem; }
.sr-liste li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sr-liste small { color: #8fb5b0; }
.sr-liste button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(248,113,113,.18); color: #fca5a5; font: inherit; cursor: pointer; }
.sr-warum { font-size: .82rem; color: #b7d6d2; } .sr-warum summary { cursor: pointer; font-weight: 700; } .sr-warum p { margin: 6px 0 0; line-height: 1.45; }
.sr-platte { justify-self: center; width: 110px; height: 110px; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 3px, #1f1f27 3px 5px); box-shadow: 0 6px 20px rgba(0,0,0,.5), inset 0 0 0 2px #333; display: grid; place-items: center; }
.sr-platte i { width: 36%; height: 36%; border-radius: 50%; background: conic-gradient(#a3e635, #22d3ee, #a3e635); box-shadow: inset 0 0 0 5px rgba(0,0,0,.25); position: relative; }
.sr-platte i::after { content: ''; position: absolute; inset: 42%; border-radius: 50%; background: #111; }
.sr-platte.rueck i { background: conic-gradient(#f472b6, #a78bfa, #f472b6); }
.sr-platte.dreht { animation: srDreh 1.8s linear infinite; } .sr-platte.rueck.dreht { animation-direction: reverse; }
@keyframes srDreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sr-platte.dreht { animation: none; } }
.gb-taste.gewaehlt { border-color: #22d3ee !important; background: #b9f3fb; }
.gb-taste.schwarz.gewaehlt { background: #155e75; }
.sr-optionen .gb-opt { min-height: 52px; }
/* Spotify im Song-Rätsel */
.sp-box { box-shadow: inset 0 0 0 1px rgba(30,215,96,.45); background: rgba(30,215,96,.06); }
.sp-box .btn.ton-gross { background: #1ed760; color: #04150a; }
.sp-anleitung ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; }
.sp-anleitung code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.35); color: #a7f3d0; font-size: .8rem; }
.sp-kopier { margin-left: 4px; padding: 3px 10px; border: 0; border-radius: 999px; background: rgba(30,215,96,.25); color: inherit; font: inherit; font-size: .75rem; cursor: pointer; }
.sp-id { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 2px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(0,0,0,.3); color: inherit; font: inherit; font-family: ui-monospace, monospace; font-size: .9rem; }
.sp-id.falsch { border-color: #f87171; }
.sp-fehler { background: rgba(248,113,113,.15); }
.sr-platte.sp i { background: conic-gradient(#1ed760, #a7f3d0, #1ed760); }
.sp-optionen .gb-opt { text-align: left; } .sp-optionen .gb-opt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-optionen .gb-opt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 🎵 Song-Rätsel als eigene App */
.hub-songs { background: linear-gradient(#06120b, #06120b) padding-box, linear-gradient(90deg, #1ed760, #a78bfa, #f472b6, #1ed760) border-box; background-size: 100% 100%, 300% 100%; }
.hub-songs .hg-titel { background: linear-gradient(90deg, #4ade80, #c4b5fd, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-songs { --ring: conic-gradient(#1ed760, #a78bfa, #f472b6, #1ed760); }
.hg-av-songs > .hg-in { background: #0b0b10; display: grid; place-items: center; }
.sr-mini { width: 78%; height: 78%; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 2px, #26262f 2px 4px); display: grid; place-items: center; animation: srDreh 6s linear infinite; }
.sr-mini i { width: 38%; height: 38%; border-radius: 50%; background: conic-gradient(#1ed760, #a78bfa, #f472b6, #1ed760); }
@media (prefers-reduced-motion: reduce) { .sr-mini, .sr-platte.dreht-langsam { animation: none; } }
.sr-held { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.sr-titel { margin: 0; font-size: 1.8rem; background: linear-gradient(90deg, #4ade80, #c4b5fd, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-held .gb-fein { text-align: left; }
.sr-platte.gross { width: 92px; height: 92px; }
.sr-platte.dreht-langsam { animation: srDreh 5s linear infinite; }
.sr-ohne .gb-fein { text-align: center; }
.sr-verweis { margin-top: 4px; }
.sp-kats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.sp-kats button { display: flex; align-items: center; gap: 6px; padding: 9px 8px; border: 2px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.04); color: inherit; font: inherit; font-size: .8rem; font-weight: 700; text-align: left; cursor: pointer; line-height: 1.15; }
.sp-kats button span { font-size: 1.15rem; }
.sp-kats button.on { border-color: #1ed760; background: rgba(30,215,96,.18); }
.sp-hits button.on { border-color: #1ed760; background: rgba(30,215,96,.16); }
.sp-jahr { display: flex; justify-content: center; align-items: center; gap: 18px; }
.sp-jahr output { font-size: 3rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: center; color: #a7f3d0; }
.sp-pm { width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: inherit; font: inherit; font-size: 1.6rem; font-weight: 800; cursor: pointer; }
.sp-aufloesung { display: flex; gap: 12px; align-items: center; } .sp-aufloesung img { border-radius: 8px; flex: none; }
.sp-rueckblick { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sp-rueckblick li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 12px; background: rgba(255,255,255,.05); }
.sp-rueckblick img { border-radius: 6px; } .sp-rueckblick li > span:first-child { font-size: 1.5rem; text-align: center; }
.sp-rueckblick b, .sp-rueckblick small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sp-rueckblick small { color: #8fb5b0; font-size: .75rem; }
.sp-rueckblick em { font-style: normal; font-weight: 800; color: #a7f3d0; font-variant-numeric: tabular-nums; }
.sp-box .gb-fein .sp-kopier { margin-left: 6px; }
.bu-songs span { display: inline-block; animation: srDreh 7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .bu-songs span { animation: none; } }
.sp-box.dz { box-shadow: inset 0 0 0 1px rgba(167,139,250,.5); background: rgba(167,139,250,.07); }
.sp-box.dz .btn.ton-gross { background: linear-gradient(90deg, #a78bfa, #f472b6); color: #1a0826; }
.sp-box.dz .sp-kats button.on, .sp-box.dz .sp-hits button.on, .sp-box.dz .sp-netz button.on { border-color: #a78bfa; background: rgba(167,139,250,.2); }
.sp-netz button.on { border-color: #1ed760; background: rgba(30,215,96,.16); }
.sp-warnung { background: rgba(251,191,36,.12); box-shadow: inset 0 0 0 1px rgba(251,191,36,.4); font-size: .85rem; }

/* ---------- 🃏 Klassiker ---------- */
.hub-klassiker { background: linear-gradient(#0f1410, #0f1410) padding-box, linear-gradient(90deg, #f87171, #fbbf24, #4ade80, #60a5fa, #f87171) border-box; background-size: 100% 100%, 300% 100%; }
.hub-klassiker .hg-titel { background: linear-gradient(90deg, #fca5a5, #fde68a, #86efac); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-klassiker { --ring: conic-gradient(#f87171, #fbbf24, #4ade80, #60a5fa, #f87171); }
.hg-av-klassiker > .hg-in { background: #0f1f14; overflow: hidden; display: grid; place-items: center; }
.kl-mini-icon { position: relative; width: 100%; height: 100%; }
.kl-mini-icon i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 1.9rem; opacity: 0; animation: klMini 10s infinite; }
.kl-mini-icon i:nth-child(2) { animation-delay: 2s; } .kl-mini-icon i:nth-child(3) { animation-delay: 4s; } .kl-mini-icon i:nth-child(4) { animation-delay: 6s; } .kl-mini-icon i:nth-child(5) { animation-delay: 8s; }
@keyframes klMini { 0%, 18% { opacity: 1; transform: none; } 22%, 100% { opacity: 0; transform: scale(.7) rotate(-10deg); } }
@media (prefers-reduced-motion: reduce) { .kl-mini-icon i { animation: none; } .kl-mini-icon i:first-child { opacity: 1; } }

.kl-buehne { position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #f1f5ef; padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px);
  background: radial-gradient(110% 60% at 50% 0%, rgba(74,222,128,.14), transparent 60%), radial-gradient(80% 50% at 50% 100%, rgba(248,113,113,.1), transparent 60%), #0b120d; font-family: "Outfit", system-ui, sans-serif; }
.kl-buehne > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.kl-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,.1); color: inherit; }
.kl-buehne .farb-kopf { gap: 8px; } .kl-buehne #klTitel { flex: 1; text-align: center; }
.kl-info { min-width: 44px; text-align: right; font-size: .78rem; color: #a3b8a8; font-weight: 600; }
.kl-inhalt { display: grid; gap: 12px; animation: aufploppen .35s var(--ease-spring); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.kl-held h2 { margin: 0; font-size: 2.2rem; letter-spacing: -.02em; background: linear-gradient(90deg, #fca5a5, #fde68a, #86efac, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kl-held p { margin: 4px 0 0; color: #b6c8ba; line-height: 1.45; }
.kl-kacheln { display: grid; gap: 10px; }
.kl-kachel { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border: 0; border-radius: 18px; background: linear-gradient(90deg, color-mix(in srgb, var(--f) 22%, transparent), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--f) 45%, transparent); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.kl-kachel:active { transform: scale(.98); }
.kl-k-text b { display: block; font-size: 1.15rem; } .kl-k-text small { display: block; color: #b6c8ba; font-size: .8rem; } .kl-k-text em { display: inline-block; margin-top: 4px; font-style: normal; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--f) 35%, transparent); }
.kl-k-bild { height: 60px; display: grid; place-items: center; position: relative; }
.klm-karte { position: absolute; width: 34px; height: 48px; border-radius: 5px; background: #fffdf7; font-style: normal; font-weight: 800; font-size: .72rem; line-height: 1.1; padding: 3px; box-sizing: border-box; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.klm-karte.r { color: #dc2626; transform: rotate(-12deg) translateX(-12px); } .klm-karte.s { color: #111; transform: rotate(10deg) translateX(12px); }
.klm-gitter, .klm-bloecke { display: grid; grid-template-columns: repeat(3, 17px); gap: 2px; }
.klm-gitter s { text-decoration: none; height: 17px; background: #f8fafc; color: #1e3a8a; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border-radius: 3px; }
.klm-bloecke s { height: 17px; border-radius: 3px; background: rgba(255,255,255,.1); } .klm-bloecke s.v { background: linear-gradient(135deg, #d97706, #92400e); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.klm-minen { display: grid; grid-template-columns: repeat(3, 19px); gap: 2px; } .klm-minen s { text-decoration: none; height: 19px; border-radius: 3px; background: #cbd5e1; color: #1d4ed8; font-size: .72rem; font-weight: 800; display: grid; place-items: center; } .klm-minen s.f, .klm-minen s:nth-child(4) { background: #64748b; }
.klm-vier { display: grid; grid-template-columns: repeat(3, 18px); gap: 3px; padding: 4px; background: #1d4ed8; border-radius: 6px; } .klm-vier s { height: 18px; border-radius: 50%; } .klm-vier s.r { background: #ef4444; } .klm-vier s.g { background: #facc15; }
.kl-stufen { display: grid; gap: 8px; }
.kl-stufe { display: grid; gap: 2px; padding: 14px; border: 0; border-radius: 16px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.kl-stufe b { font-size: 1.1rem; } .kl-stufe small { color: #b6c8ba; }
.kl-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .85rem; color: #c5d6c9; font-variant-numeric: tabular-nums; }
.kl-leiste b { color: #fff; } .kl-leiste .kl-knopf:first-of-type { margin-left: auto; }
.kl-knopf { padding: 8px 12px; border: 0; border-radius: 12px; background: rgba(255,255,255,.1); color: inherit; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.kl-knopf:disabled { opacity: .4; } .kl-knopf.an { background: #fbbf24; color: #1c1404; }
.kl-hinweis { margin: 0; font-size: .78rem; color: #94a89a; text-align: center; }
.kl-einst { font-size: .8rem; color: #b6c8ba; text-align: center; } .kl-einst input { accent-color: #4ade80; }
.kl-ergebnis { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55); animation: aufploppen .3s var(--ease-spring); }
.kl-erg-karte { width: min(100%, 360px); padding: 22px; border-radius: 22px; background: #142019; box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.12); text-align: center; }
.kl-erg-karte h3 { margin: 0 0 6px; font-size: 1.6rem; } .kl-erg-karte p { margin: 0 0 16px; color: #c5d6c9; line-height: 1.45; }
.kl-erg-knoepfe { display: grid; gap: 8px; } .kl-erg-knoepfe .btn { width: 100%; } .kl-erg-knoepfe .btn:not(.secondary) { background: linear-gradient(90deg, #4ade80, #fbbf24); color: #0b1a10; }
.kl-erg-knoepfe .btn.secondary { background: rgba(255,255,255,.1); color: inherit; box-shadow: none; }

/* Solitär */
.sol-feld { --kw: calc((min(100vw - 32px, 520px) - 24px) / 7); --kh: calc(var(--kw) * 1.42); padding: 10px 0; border-radius: 16px; background: radial-gradient(120% 80% at 50% 0%, #1f6b3a, #0f3d22); box-shadow: inset 0 0 40px rgba(0,0,0,.35); }
.sol-oben, .sol-tab { display: grid; grid-template-columns: repeat(7, var(--kw)); gap: 4px; justify-content: center; }
.sol-tab { margin-top: 12px; align-items: start; min-height: calc(var(--kh) * 3.2); }
.sol-platz { position: relative; height: var(--kh); }
.sol-waste { grid-column: span 2; } .sol-luecke { display: none; }
.sol-spalte { position: relative; height: calc(var(--kh) + var(--h, 0) * var(--kh) * .3); min-height: var(--kh); }
.sol-leer { width: var(--kw); height: var(--kh); box-sizing: border-box; border-radius: 6px; border: 2px dashed rgba(255,255,255,.28); display: grid; place-items: center; color: rgba(255,255,255,.4); font-size: 1.1rem; cursor: pointer; }
.sol-karte { position: absolute; left: 0; top: calc(var(--y, 0) * var(--kh) * .3); width: var(--kw); height: var(--kh); box-sizing: border-box; border-radius: 6px; background: #fffdf7; box-shadow: 0 1px 3px rgba(0,0,0,.45); cursor: pointer; overflow: hidden; }
.sol-karte.zu { background: repeating-linear-gradient(45deg, #b91c1c 0 4px, #991b1b 4px 8px); box-shadow: inset 0 0 0 2px #fffdf7, 0 1px 3px rgba(0,0,0,.45); }
.sol-karte.stapel b { position: absolute; right: 3px; bottom: 2px; color: #fff; font-size: .62rem; text-shadow: 0 1px 2px #000; }
.sol-karte.rot { color: #dc2626; } .sol-karte.schwarz { color: #111827; }
.sk-e { position: absolute; left: 3px; top: 1px; font-weight: 800; font-size: calc(var(--kw) * .32); line-height: 1; } .sk-e i { font-style: normal; margin-left: 1px; }
.sk-m { position: absolute; right: 3px; bottom: 1px; font-size: calc(var(--kw) * .52); line-height: 1; }
.sol-waste .sol-karte { left: calc(var(--i, 0) * var(--kw) * .38); } .sol-waste:not(.drei) .sol-karte { left: 0; }
.sol-ablage .sol-leer { font-size: 1.5rem; }
.sol-karte.wackel, .sol-leer.wackel { animation: klWackel .3s; } .sol-karte.tipp { animation: klTipp 1s; z-index: 5; }
@keyframes klWackel { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes klTipp { 0%, 100% { box-shadow: 0 1px 3px rgba(0,0,0,.45); } 30%, 70% { box-shadow: 0 0 0 3px #fbbf24, 0 0 18px #fbbf24; } }

/* Sudoku */
.sd-gitter { display: grid; grid-template-columns: repeat(9, 1fr); aspect-ratio: 1; border: 2px solid #cbd5e1; border-radius: 10px; overflow: hidden; background: #f8fafc; }
.sd-z { position: relative; border: 0; border-right: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; background: #f8fafc; color: #1d4ed8; font: inherit; font-size: clamp(1rem, 5.4vw, 1.6rem); font-weight: 600; padding: 0; cursor: pointer; display: grid; place-items: center; }
.sd-z:nth-child(9n) { border-right: 0; } .sd-z.rr { border-right: 2px solid #64748b; } .sd-z.ru { border-bottom: 2px solid #64748b; }
.sd-z.vor { color: #0f172a; font-weight: 800; } .sd-z.bezug { background: #e2e8f0; } .sd-z.gleich { background: #bfdbfe; } .sd-z.wahl { background: #93c5fd; } .sd-z.falsch { color: #dc2626; background: #fee2e2; }
.sd-noten { position: absolute; inset: 1px; display: grid; grid-template-columns: repeat(3, 1fr); font-size: clamp(.42rem, 2vw, .62rem); color: #475569; font-weight: 600; } .sd-noten i { font-style: normal; display: grid; place-items: center; }
.sd-werkzeug { display: grid; grid-template-columns: 1fr 1fr 2fr 1.4fr; gap: 6px; }
.sd-ziffern { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.sd-ziffer { aspect-ratio: .8; border: 0; border-radius: 10px; background: rgba(147,197,253,.16); color: #bfdbfe; font: inherit; font-size: 1.5rem; font-weight: 700; cursor: pointer; }
.sd-ziffer.fertig { opacity: .3; } .sd-ziffer:active { background: rgba(147,197,253,.4); }

/* Holzblöcke */
.bl-feld { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; aspect-ratio: 1; padding: 6px; border-radius: 14px; background: #3b2412; box-shadow: inset 0 0 0 2px #5b3a1d, 0 10px 30px rgba(0,0,0,.4); touch-action: none; }
.bl-z { border-radius: 4px; background: #5a3a1e; } .bl-z.dunkel { background: #4a2f17; }
.bl-z.voll { background: linear-gradient(135deg, color-mix(in srgb, var(--f) 75%, #fde68a), var(--f)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.25); }
.bl-z.vorschau { background: rgba(253,230,138,.55); } .bl-z.vorschau-weg { box-shadow: 0 0 0 2px #fde68a inset; }
.bl-z.weg { animation: blWeg .28s ease-in forwards; } @keyframes blWeg { to { transform: scale(.2); opacity: 0; } }
.bl-ablage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-height: 120px; touch-action: none; }
.bl-slot { display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.04); min-height: 110px; }
.bl-teil, .bl-geist .bl-teil { --z: 20px; display: grid; grid-template-columns: repeat(var(--b), var(--z)); grid-template-rows: repeat(var(--h), var(--z)); gap: 2px; cursor: grab; touch-action: none; }
.bl-teil i { border-radius: 4px; background: linear-gradient(135deg, color-mix(in srgb, var(--f) 75%, #fde68a), var(--f)); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.bl-teil.passt-nicht { opacity: .3; } .bl-teil.wahl { outline: 3px solid #fde68a; outline-offset: 4px; border-radius: 4px; }
.bl-geist { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; } .bl-geist .bl-teil { --z: calc(var(--zz, 36px)); } .bl-geist { --zz: var(--z); }
.bl-geist .bl-teil { grid-template-columns: repeat(var(--b), calc(var(--zz) - 2px)); grid-template-rows: repeat(var(--h), calc(var(--zz) - 2px)); filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); }
.bl-serie { color: #fbbf24; font-weight: 800; }

/* Minensuche */
.mn-feld { display: grid; grid-template-columns: repeat(var(--b), 1fr); gap: 2px; padding: 4px; border-radius: 12px; background: #334155; touch-action: manipulation; }
.mn-z { aspect-ratio: 1; border: 0; border-radius: 4px; padding: 0; background: linear-gradient(145deg, #94a3b8, #64748b); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); font: inherit; font-weight: 800; font-size: clamp(.7rem, 3.6vw, 1.1rem); cursor: pointer; display: grid; place-items: center; line-height: 1; }
.mn-z.offen { background: #e2e8f0; box-shadow: none; } .mn-z.mine { background: #fecaca; } .mn-z.knall { background: #ef4444; } .mn-z.irrtum { background: #fde68a; }
.mn-z.n1 { color: #2563eb; } .mn-z.n2 { color: #16a34a; } .mn-z.n3 { color: #dc2626; } .mn-z.n4 { color: #1e3a8a; } .mn-z.n5 { color: #92400e; } .mn-z.n6 { color: #0e7490; } .mn-z.n7 { color: #111; } .mn-z.n8 { color: #6b7280; }

/* Vier in einer Reihe */
.vr-brett { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 8px; border-radius: 16px; background: linear-gradient(#1d4ed8, #1e3a8a); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.vr-loch { position: relative; aspect-ratio: 1; border: 0; border-radius: 50%; padding: 0; background: #0b1220; box-shadow: inset 0 3px 6px rgba(0,0,0,.6); cursor: pointer; }
.vr-stein { position: absolute; inset: 3px; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), inset 0 3px 0 rgba(255,255,255,.3); }
.vr-stein.rot { background: #ef4444; } .vr-stein.gelb { background: #facc15; }
.vr-stein.neu { animation: vrFall .35s cubic-bezier(.5, 0, .75, 0) backwards; } @keyframes vrFall { from { transform: translateY(calc(var(--r) * -112% - 112%)); } }
.vr-stein.sieg { box-shadow: 0 0 0 3px #fff, 0 0 16px #fff; }
.vr-status { font-size: 1.05rem; font-weight: 700; color: #fff; }
@media (prefers-reduced-motion: reduce) { .vr-stein.neu, .bl-z.weg, .sol-karte.wackel { animation: none; } }
.bu-klassiker span { display: inline-block; transform: rotate(-12deg); }
.mn-feld { grid-template-columns: repeat(var(--b), minmax(0, 1fr)); } .mn-z { min-width: 0; }
.sd-gitter, .bl-feld, .vr-brett { min-width: 0; } .sd-z, .vr-loch, .bl-z { min-width: 0; }
/* Klassiker – neue Spiele */
.kl-beliebt { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #0ea5e9; color: #fff; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }
.klm-zahlen { display: grid; grid-template-columns: repeat(3, 17px); gap: 2px; } .klm-zahlen s { text-decoration: none; height: 17px; border-radius: 3px; background: #f8fafc; color: #0f172a; font-size: .66rem; font-weight: 800; display: grid; place-items: center; } .klm-zahlen s.p { background: #7dd3fc; } .klm-zahlen s.q { background: #0ea5e9; color: #fff; }
.klm-planeten { position: relative; width: 64px; height: 58px; border-radius: 8px; background: #1e1b4b; overflow: hidden; } .klm-planeten s { position: absolute; width: var(--g); height: var(--g); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--f) 30%, #111 110%); font-size: calc(var(--g) * .8); display: grid; place-items: center; text-decoration: none; }
.klm-schrauben { display: flex; gap: 7px; align-items: flex-end; height: 56px; } .klm-schrauben s { position: relative; width: 14px; height: 52px; display: flex; flex-direction: column-reverse; align-items: center; text-decoration: none; background: linear-gradient(90deg, #94a3b8, #e2e8f0, #94a3b8) center / 4px 100% no-repeat; } .klm-schrauben b { width: 16px; height: 10px; margin-top: 1px; background: var(--f); clip-path: polygon(15% 0, 85% 0, 100% 50%, 85% 100%, 15% 100%, 0 50%); }
.klm-wasser { display: flex; gap: 8px; } .klm-wasser s { width: 16px; height: 52px; border: 2px solid rgba(255,255,255,.7); border-top: 0; border-radius: 0 0 9px 9px; display: flex; flex-direction: column-reverse; overflow: hidden; text-decoration: none; } .klm-wasser b { height: 25%; background: var(--f); }
/* Zahlenpaare */
.zp-feld { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; }
.zp-z { aspect-ratio: 1; min-width: 0; border: 0; border-radius: 8px; padding: 0; background: #f8fafc; color: #0f172a; font: inherit; font-size: clamp(1rem, 5vw, 1.4rem); font-weight: 700; cursor: pointer; }
.zp-z.leer { background: rgba(255,255,255,.06); cursor: default; } .zp-z.wahl { background: #0ea5e9; color: #fff; transform: scale(1.06); } .zp-z.tipp { animation: klTipp 1.2s 2; background: #bae6fd; }
.zp-nach { width: 100%; background: linear-gradient(90deg, #0ea5e9, #22d3ee); color: #04202c; } .zp-nach:disabled { opacity: .4; } .zp-nach.tipp { animation: klWackel .3s 2; }
/* Planeten-Fusion */
.pf-bild { width: 100%; max-width: 460px; justify-self: center; border-radius: 16px; touch-action: none; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: block; margin: 0 auto; }
.pf-next { display: inline-flex; align-items: center; gap: 6px; } .pf-next i, .pf-leiter i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 14px; background: radial-gradient(circle at 35% 30%, #fff, var(--f) 30%, #111 120%); }
.pf-leiter { display: flex; justify-content: center; align-items: center; gap: 3px; flex-wrap: wrap; } .pf-leiter i { width: calc(26px * var(--g)); height: calc(26px * var(--g)); font-size: calc(15px * var(--g)); }
/* Sortieren */
.so-feld { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 10px; padding: 18px 6px; border-radius: 18px; background: rgba(255,255,255,.04); }
.so-stab { position: relative; width: 52px; height: 190px; border: 0; padding: 0; background: none; cursor: pointer; }
.so-innen { position: absolute; left: 0; right: 0; bottom: 0; top: 0; display: block; }
.schrauben .so-innen::before { content: ''; position: absolute; left: 50%; bottom: 8px; top: 18px; width: 8px; margin-left: -4px; border-radius: 4px; background: linear-gradient(90deg, #64748b, #e2e8f0, #64748b); }
.schrauben .so-innen::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 0; height: 12px; border-radius: 6px; background: linear-gradient(#cbd5e1, #64748b); }
.schrauben .so-teil { position: absolute; left: 1px; right: 1px; bottom: calc(12px + var(--k) * 34px); height: 32px; background: linear-gradient(180deg, color-mix(in srgb, var(--f) 70%, #fff), var(--f) 45%, color-mix(in srgb, var(--f) 70%, #000)); clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%); transition: transform .18s; }
.schrauben .so-teil::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: rgba(0,0,0,.35); }
.wasser .so-innen { border: 3px solid rgba(255,255,255,.75); border-top: 0; border-radius: 0 0 26px 26px; overflow: hidden; top: 20px; }
.wasser .so-teil { position: absolute; left: 0; right: 0; bottom: calc(var(--k) * 25%); height: 25%; background: var(--f); transition: transform .18s; } .wasser .so-teil:last-child { box-shadow: inset 0 4px 0 rgba(255,255,255,.3); }
.so-stab.wahl .so-teil.hoch { transform: translateY(-26px); } .wasser .so-stab.wahl .so-innen { transform: translateY(-14px); }
.wasser .so-stab.wahl .so-teil.hoch { transform: none; } .so-stab.voll { filter: drop-shadow(0 0 8px rgba(134,239,172,.8)); }
/* Darts */
.klm-darts { width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(#1c1917 0 9deg, #f5e9d0 9deg 27deg, #1c1917 27deg 45deg, #f5e9d0 45deg 63deg, #1c1917 63deg 81deg, #f5e9d0 81deg 99deg, #1c1917 99deg 117deg, #f5e9d0 117deg 135deg, #1c1917 135deg 153deg, #f5e9d0 153deg 171deg, #1c1917 171deg 189deg, #f5e9d0 189deg 207deg, #1c1917 207deg 225deg, #f5e9d0 225deg 243deg, #1c1917 243deg 261deg, #f5e9d0 261deg 279deg, #1c1917 279deg 297deg, #f5e9d0 297deg 315deg, #1c1917 315deg 333deg, #f5e9d0 333deg 351deg, #1c1917 351deg); box-shadow: 0 0 0 3px #dc2626, 0 0 0 5px #16a34a, 0 4px 10px rgba(0,0,0,.5); display: grid; place-items: center; position: relative; }
.klm-darts s { width: 12px; height: 12px; border-radius: 50%; background: #dc2626; box-shadow: 0 0 0 3px #16a34a; }
.klm-darts::after { content: '➶'; position: absolute; right: -8px; top: -10px; font-size: 22px; color: #38bdf8; transform: rotate(-20deg); font-style: normal; }
.dt-stand { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.dt-spieler { display: grid; gap: 1px; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.dt-spieler span { font-size: .82rem; color: #c5d6c9; } .dt-spieler b { font-size: 1.9rem; line-height: 1.05; font-variant-numeric: tabular-nums; } .dt-spieler small { font-size: .72rem; color: #94a89a; }
.dt-spieler.dran { background: rgba(249,115,22,.16); box-shadow: inset 0 0 0 2px #f97316; }
.dt-bild { width: 100%; max-width: 460px; display: block; margin: 0 auto; border-radius: 16px; touch-action: none; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.dt-zug { display: flex; align-items: center; gap: 6px; min-height: 40px; } .dt-zug b { margin-left: 6px; font-size: 1.15rem; }
.dt-wurf { min-width: 52px; padding: 7px 8px; border-radius: 10px; background: rgba(255,255,255,.1); text-align: center; font-weight: 800; animation: aufploppen .25s var(--ease-spring); }
.dt-wurf.leer { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); animation: none; min-height: 18px; }
.dt-wurf.m2 { background: #16a34a; } .dt-wurf.m3 { background: #dc2626; } .dt-wurf.m0 { background: rgba(255,255,255,.05); color: #94a89a; }
.dt-stufen button.on { border-color: #f97316; background: rgba(249,115,22,.18); }
.ton-hz .ton-note { display: block; margin-top: 2px; font-size: 1.15rem; font-weight: 700; letter-spacing: 0; color: #a3e635; } .ton-hz .ton-note i { font-style: normal; font-weight: 500; color: #8fb5b0; font-size: .95rem; }

/* ---------- 📄 Falten bis zum Mars ---------- */
.hub-falten { background: linear-gradient(#0d1030, #0d1030) padding-box, linear-gradient(90deg, #fde68a, #fb923c, #6ee7b7, #fde68a) border-box; background-size: 100% 100%, 300% 100%; }
.hub-falten .hg-titel { background: linear-gradient(90deg, #fde68a, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-falten { --ring: conic-gradient(#fde68a, #fb923c, #6ee7b7, #fde68a); }
.hg-av-falten > .hg-in { background: #0b0f2a; display: grid; place-items: end center; padding-bottom: 18%; }
.ft-mini { display: flex; flex-direction: column-reverse; align-items: center; gap: 1px; }
.ft-mini i { display: block; width: 26px; height: 4px; border-radius: 1px; background: #fde68a; box-shadow: 0 0 8px rgba(253,230,138,.8); animation: ftMini 3s infinite; }
.ft-mini i:nth-child(2) { width: 20px; animation-delay: .3s; } .ft-mini i:nth-child(3) { width: 15px; animation-delay: .6s; } .ft-mini i:nth-child(4) { width: 11px; animation-delay: .9s; } .ft-mini i:nth-child(5) { width: 8px; height: 10px; animation-delay: 1.2s; }
@keyframes ftMini { 0%, 10% { opacity: 0; transform: translateY(-6px); } 25%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ft-mini i { animation: none; } }
.ft-buehne { position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #e8ecff; padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 18px); background: radial-gradient(90% 60% at 50% 30%, #1e2a6b, #0b0f2a 70%); font-family: "Outfit", system-ui, sans-serif; }
.ft-buehne > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.ft-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,.1); color: inherit; }
.ft-inhalt { display: grid; gap: 10px; -webkit-user-select: none; user-select: none; }
.ft-intro { display: grid; gap: 12px; text-align: center; padding-top: 2vh; }
.ft-intro h2 { margin: 0; font-size: 2.2rem; background: linear-gradient(90deg, #fde68a, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ft-intro p { margin: 0; color: #c7d0f5; line-height: 1.5; } .ft-frage { font-size: 1.15rem; color: #fff !important; }
.ft-blatt { justify-self: center; width: 120px; height: 10px; border-radius: 2px; background: #fffbeb; box-shadow: 0 0 30px rgba(253,230,138,.8); margin: 30px 0 10px; transform: perspective(200px) rotateX(55deg); }
.ft-schaetzen { display: grid; gap: 6px; } .ft-schaetzen output { font-size: 2rem; font-weight: 800; color: #6ee7b7; font-variant-numeric: tabular-nums; }
.ft-schaetzen input { width: 100%; accent-color: #6ee7b7; }
.ft-los { width: 100%; background: linear-gradient(90deg, #fde68a, #fb923c); color: #2a1300; font-size: 1.1rem; padding: 15px; }
.ft-klein { font-size: .8rem !important; color: #94a3d4 !important; }
.ft-kopf { display: grid; gap: 10px; text-align: center; }
.ft-zahl { font-size: 1.55rem; font-weight: 700; font-variant-numeric: tabular-nums; } .ft-zahl em { font-style: normal; color: #6ee7b7; }
.ft-leiste { position: relative; height: 4px; margin: 6px 44px 14px 6px; border-radius: 2px; background: rgba(255,255,255,.15); }
.ft-leiste i { position: absolute; top: -2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: rgba(255,255,255,.45); }
.ft-leiste b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: #6ee7b7; transition: width .4s; }
.ft-leiste b::after { content: ''; position: absolute; right: -4px; top: -6px; width: 8px; height: 16px; border-radius: 2px; background: #fde68a; }
.ft-mars { position: absolute; right: -40px; top: -12px; font-size: 22px; display: grid; justify-items: center; line-height: 1; } .ft-mars small { font-size: .65rem; color: #94a3d4; margin-top: 2px; }
.ft-bild { width: 100%; display: block; border-radius: 18px; touch-action: manipulation; cursor: pointer; }
.ft-unten { display: grid; gap: 8px; text-align: center; }
.ft-text { font-size: 1.3rem; font-weight: 700; min-height: 1.6em; }
.ft-combo { min-height: 1.2em; color: #f0abfc; font-weight: 700; }
.ft-knoepfe { display: grid; grid-template-columns: 56px 1fr; gap: 10px; }
.ft-ton { border: 0; border-radius: 16px; background: rgba(255,255,255,.1); font-size: 1.4rem; cursor: pointer; }
.ft-falten { width: 100%; padding: 18px; font-size: 1.35rem; font-weight: 800; letter-spacing: .04em; background: linear-gradient(90deg, #fde68a, #fb923c); color: #2a1300; box-shadow: 0 10px 30px rgba(251,146,60,.35); }
.ft-falten:active { transform: scale(.97); }
.ft-ergebnis { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(5,8,25,.7); animation: aufploppen .35s var(--ease-spring); }
.ft-karte { width: min(100%, 380px); padding: 22px; border-radius: 24px; background: #141a45; box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.12); text-align: center; display: grid; gap: 10px; }
.ft-karte h3 { margin: 0; font-size: 1.8rem; } .ft-karte p { margin: 0; color: #c7d0f5; line-height: 1.45; } .ft-gross { font-size: 1.2rem; color: #fff !important; } .ft-gross b { color: #6ee7b7; font-size: 1.6rem; }
.ft-planet { justify-self: center; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fdba74, #c2410c 55%, #431407); box-shadow: 0 0 40px rgba(251,146,60,.6); }
.ft-karte-knoepfe { display: grid; gap: 8px; margin-top: 4px; } .ft-karte-knoepfe .btn.secondary { background: rgba(255,255,255,.1); color: inherit; box-shadow: none; width: 100%; }

/* ---------- 🔭 Zoom durchs Universum & 🦠 Verdopplung im Glas (nutzen die ft-Bausteine) ---------- */
.hub-zoom { background: linear-gradient(#0f0c29, #0f0c29) padding-box, linear-gradient(90deg, #f472b6, #818cf8, #38bdf8, #f472b6) border-box; background-size: 100% 100%, 300% 100%; }
.hub-zoom .hg-titel { background: linear-gradient(90deg, #f9a8d4, #a5b4fc, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-zoom { --ring: conic-gradient(#f472b6, #818cf8, #38bdf8, #f472b6); } .hg-av-zoom > .hg-in { background: #0b0a24; display: grid; place-items: center; }
.zm-mini { position: relative; width: 70%; height: 70%; } .zm-mini i { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 2px solid #a5b4fc; animation: zmMini 2.4s infinite linear; opacity: 0; }
.zm-mini i:nth-child(2) { animation-delay: .8s; } .zm-mini i:nth-child(3) { animation-delay: 1.6s; }
@keyframes zmMini { from { transform: scale(.1); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
.hub-glas { background: linear-gradient(#06201a, #06201a) padding-box, linear-gradient(90deg, #4ade80, #a3e635, #2dd4bf, #4ade80) border-box; background-size: 100% 100%, 300% 100%; }
.hub-glas .hg-titel { background: linear-gradient(90deg, #86efac, #d9f99d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-glas { --ring: conic-gradient(#4ade80, #a3e635, #2dd4bf, #4ade80); } .hg-av-glas > .hg-in { background: #062019; display: grid; place-items: center; }
.gl-mini, .gl-logo { position: relative; width: 42%; height: 58%; border: 3px solid #dcfce7; border-top: 0; border-radius: 0 0 8px 8px; overflow: hidden; display: block; }
.gl-mini i, .gl-logo i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(#86efac, #15803d); animation: glMini 4s infinite cubic-bezier(.9, 0, 1, 1); }
@keyframes glMini { 0% { height: 0; } 80% { height: 100%; } 100% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .zm-mini i, .gl-mini i, .gl-logo i { animation: none; } .gl-mini i, .gl-logo i { height: 60%; } .zm-mini i { opacity: 1; } }
.gl-logo { width: 70px; height: 90px; justify-self: center; margin-top: 16px; }
.zm-logo { font-size: 4rem; justify-self: center; margin-top: 10px; }
.zm-buehne { background: radial-gradient(90% 60% at 50% 30%, #2a1b5e, #070a1a 70%); }
.gl-buehne { background: radial-gradient(90% 60% at 50% 30%, #0f3b33, #051311 70%); }
.zm-h { background: linear-gradient(90deg, #f9a8d4, #a5b4fc, #7dd3fc) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.gl-h { background: linear-gradient(90deg, #86efac, #d9f99d) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.zm-los { background: linear-gradient(90deg, #f472b6, #818cf8); color: #fff; } .gl-los { background: linear-gradient(90deg, #4ade80, #a3e635); color: #052e16; }
.ft-zahl small { font-size: .9rem; color: #94a3d4; font-weight: 500; }
.zm-leiste { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.zm-bahn { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); }
.zm-bahn b { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #f472b6, #818cf8); transition: all .4s; }
.zm-bahn i { position: absolute; top: -5px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: #fde68a; transition: left .5s; }
.zm-info { font-size: .85rem; color: #c7d0f5; min-height: 1.3em; }
.zm-knoepfe { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 8px; }
.zm-rein, .zm-raus { width: 100%; padding: 16px 8px; font-size: 1.05rem; font-weight: 800; color: #fff; }
.zm-rein { background: linear-gradient(90deg, #0891b2, #22d3ee); } .zm-raus { background: linear-gradient(90deg, #7c3aed, #f472b6); }
.gl-uhr { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #d9f99d; }
.gl-werte { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: .95rem; color: #c7f0d8; } .gl-werte b { color: #fff; font-variant-numeric: tabular-nums; }
.gl-knoepfe { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 8px; } .gl-knoepfe[hidden] { display: none; }
.gl-minute, .gl-auto { width: 100%; padding: 15px 6px; font-weight: 800; } .gl-minute { background: linear-gradient(90deg, #4ade80, #a3e635); color: #052e16; } .gl-auto { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.gl-frage { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(134,239,172,.35); text-align: left; animation: aufploppen .35s var(--ease-spring); }
.gl-frage p { margin: 0; line-height: 1.45; } .gl-frage output { color: #a3e635 !important; }
.gl-optionen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gl-opt { padding: 14px 8px; border: 2px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.05); color: inherit; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.gl-opt.richtig { border-color: #4ade80; background: rgba(74,222,128,.25); } .gl-opt.falsch { border-color: #f87171; background: rgba(248,113,113,.25); }
.gl-erkl { color: #dcfce7; }

/* ---------- 🎸 Beat-Bahnen (nutzt die ft-Bausteine) ---------- */
.hub-beat { background: linear-gradient(#1a0b2e, #1a0b2e) padding-box, linear-gradient(90deg, #f472b6, #a78bfa, #22d3ee, #a3e635, #f472b6) border-box; background-size: 100% 100%, 300% 100%; }
.hub-beat .hg-titel { background: linear-gradient(90deg, #f9a8d4, #c4b5fd, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-beat { --ring: conic-gradient(#f472b6, #a78bfa, #22d3ee, #a3e635, #f472b6); } .hg-av-beat > .hg-in { background: #140a26; display: grid; place-items: center; }
.bb-mini, .bb-logo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; width: 64%; height: 64%; }
.bb-mini i, .bb-logo i { position: relative; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.bb-mini i::after, .bb-logo i::after { content: ''; position: absolute; left: 10%; right: 10%; height: 22%; border-radius: 40%; background: var(--f); animation: bbFall 1.6s linear infinite; animation-delay: var(--d); top: -25%; }
.bb-mini i:nth-child(1), .bb-logo i:nth-child(1) { --f: #f472b6; --d: 0s; } .bb-mini i:nth-child(2), .bb-logo i:nth-child(2) { --f: #a78bfa; --d: -.8s; }
.bb-mini i:nth-child(3), .bb-logo i:nth-child(3) { --f: #22d3ee; --d: -.4s; } .bb-mini i:nth-child(4), .bb-logo i:nth-child(4) { --f: #a3e635; --d: -1.2s; }
@keyframes bbFall { to { top: 100%; } }
.bb-logo { justify-self: center; width: 120px; height: 90px; gap: 6px; }
.bb-buehne { background: radial-gradient(90% 60% at 50% 20%, #3b0764, #0b0b25 70%); }
.bb-intro { padding-top: 0; }
.bb-h { background: linear-gradient(90deg, #f9a8d4, #c4b5fd, #67e8f9) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.bb-stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.07); }
.bb-stufe { border: 0; border-radius: 12px; padding: 10px 4px; background: none; color: #c7d0f5; font: inherit; font-weight: 700; cursor: pointer; }
.bb-stufe.an { background: linear-gradient(90deg, #f472b6, #a78bfa); color: #fff; }
.bb-liste { display: grid; gap: 8px; text-align: left; }
.bb-zwischen { margin: 6px 0 0; font-size: .9rem; color: #94a3d4; }
.bb-song { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 0; border-radius: 16px; background: rgba(255,255,255,.08); color: inherit; font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.bb-song:active { transform: scale(.98); } .bb-song:disabled { opacity: .7; }
.bb-se { font-size: 1.8rem; text-align: center; } .bb-st { display: grid; min-width: 0; } .bb-st b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bb-st small { color: #94a3d4; }
.bb-sterne { color: #fde68a; letter-spacing: 1px; }
.bb-datei { display: block; width: 100%; text-align: center; background: rgba(255,255,255,.1); color: inherit; box-shadow: none; cursor: pointer; }
.bb-versatz { text-align: left; color: #c7d0f5; } .bb-versatz summary { cursor: pointer; font-size: .9rem; }
.bb-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bb-titel { font-weight: 700; color: #c7d0f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-punkte { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #fde68a; }
.bb-fort { height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; } .bb-fort b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f472b6, #22d3ee); }
.bb-combo { min-height: 1.3em; text-align: center; color: #f0abfc; font-weight: 700; } .bb-combo b { color: #fde68a; }
.bb-bild { width: 100%; display: block; border-radius: 18px; touch-action: none; -webkit-touch-callout: none; }
.bb-unten { display: grid; grid-template-columns: 56px 1fr; gap: 10px; } .bb-unten .btn.secondary { background: rgba(255,255,255,.1); color: inherit; box-shadow: none; }
.bb-los { background: linear-gradient(90deg, #f472b6, #a78bfa); color: #fff; }
.bb-sterne-gross { font-size: 2.6rem; color: #fde68a; letter-spacing: 4px; } .bb-sterne-gross span { color: rgba(255,255,255,.18); }
.bb-zaehler { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: .78rem; color: #94a3d4; } .bb-zaehler b { display: block; font-size: 1.15rem; color: #fff; }
@media (prefers-reduced-motion: reduce) { .bb-mini i::after, .bb-logo i::after { animation: none; top: 40%; } }

/* ---------- 🌀 Wundermuster (nutzt die ft-/gl-Bausteine) ---------- */
.hub-wunder { background: linear-gradient(#120b2e, #120b2e) padding-box, linear-gradient(90deg, #67e8f9, #a78bfa, #f472b6, #fb923c, #67e8f9) border-box; background-size: 100% 100%, 300% 100%; }
.hub-wunder .hg-titel { background: linear-gradient(90deg, #67e8f9, #c4b5fd, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-wunder { --ring: conic-gradient(#67e8f9, #a78bfa, #f472b6, #fb923c, #67e8f9); } .hg-av-wunder > .hg-in { background: #0d0b26; display: grid; place-items: center; }
.wu-mini { font-size: 1.9rem; display: inline-block; animation: wuDreh 8s linear infinite; } @keyframes wuDreh { to { transform: rotate(360deg); } }
.wu-buehne { background: radial-gradient(90% 60% at 50% 25%, #1e1b5e, #0b0a22 70%); }
.wu-h { background: linear-gradient(90deg, #67e8f9, #c4b5fd, #f9a8d4) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.wu-logo { font-size: 3rem; line-height: 1; }
.wu-intro { padding-top: 0; }
.wu-modi { display: grid; gap: 8px; text-align: left; }
.wu-modus { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 12px; padding: 14px; border: 0; border-radius: 18px; background: rgba(255,255,255,.07); color: inherit; font: inherit; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); text-align: left; }
.wu-modus:active { transform: scale(.98); }
.wu-me { font-size: 2rem; text-align: center; font-weight: 800; color: #c4b5fd; } .wu-mt { display: grid; gap: 2px; } .wu-mt small { color: #a5b4dc; line-height: 1.35; } .wu-mt em { font-style: normal; font-size: .78rem; color: #fde68a; }
.wu-m-ameise { box-shadow: inset 3px 0 0 #fde047, inset 0 0 0 1px rgba(255,255,255,.1); } .wu-m-binaer { box-shadow: inset 3px 0 0 #a3e635, inset 0 0 0 1px rgba(255,255,255,.1); }
.wu-m-drache { box-shadow: inset 3px 0 0 #f472b6, inset 0 0 0 1px rgba(255,255,255,.1); } .wu-m-collatz { box-shadow: inset 3px 0 0 #fb923c, inset 0 0 0 1px rgba(255,255,255,.1); }
.wu-los { background: linear-gradient(90deg, #22d3ee, #a78bfa); color: #fff; }
.wu-zahl { font-size: 2.6rem; font-weight: 900; line-height: 1; display: grid; justify-items: center; } .wu-zahl small { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #a5b4dc; }
.wu-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; } .wu-chips span { padding: 5px 10px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: .78rem; color: #a5b4dc; } .wu-chips b { color: #fff; font-variant-numeric: tabular-nums; }
.wu-regeln { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; } .wu-regeln span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); font-size: .78rem; }
.wu-regeln i { width: 10px; height: 10px; border-radius: 2px; background: var(--f); }
.wu-bild { width: 100%; display: block; border-radius: 18px; background: #0d0b26; }
.wu-kurve { width: 100%; display: block; }
.wu-knoepfe { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 8px; } .wu-knoepfe[hidden] { display: none; } .wu-knoepfe .btn { padding-left: 6px; padding-right: 6px; } .wu-knoepfe .btn.secondary { background: rgba(255,255,255,.1); color: inherit; box-shadow: none; }
.ft-intro .btn.secondary { background: rgba(255,255,255,.1); color: inherit; box-shadow: none; width: 100%; }
.wu-frage { box-shadow: inset 0 0 0 1px rgba(167,139,250,.45); }
.wu-kopien { display: flex; align-items: center; justify-content: center; gap: 6px; } .wu-kopien[hidden] { display: none; } .wu-kopien span { color: #a5b4dc; font-size: .85rem; } .wu-kopien .bb-stufe { min-width: 48px; background: rgba(255,255,255,.07); }
.wu-kopien .bb-stufe.an { background: linear-gradient(90deg, #22d3ee, #a78bfa); }
.bi-zahl { font-size: 3.2rem; }
.bi-summe { text-align: center; font-weight: 700; color: #a5b4dc; min-height: 1.3em; font-variant-numeric: tabular-nums; } .bi-summe b { color: #fff; }
.bi-bits { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.bi-bit { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 2px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.04); color: #64748b; font: inherit; cursor: pointer; min-width: 0; }
.bi-bit small { font-size: .68rem; color: #a5b4dc; } .bi-bit b { font-size: 1.5rem; line-height: 1.1; } .bi-bit em { font-style: normal; font-size: .55rem; text-transform: uppercase; letter-spacing: .02em; color: #94a3d4; overflow: hidden; max-width: 100%; }
.bi-bit.an { border-color: var(--f); background: color-mix(in srgb, var(--f) 30%, transparent); color: #fff; box-shadow: 0 0 16px color-mix(in srgb, var(--f) 50%, transparent); } .bi-bit.an small { color: var(--f); }
.bi-raster { background: transparent; }
.bi-ziel { font-size: 1.6rem; color: #fde68a; }
.co-u { color: #fb923c; } .co-g { color: #38bdf8; }
.co-regeln { display: flex; justify-content: center; gap: 10px; } .co-regeln span { padding: 6px 12px; border-radius: 10px; border: 2px solid currentColor; font-weight: 800; opacity: .45; transition: opacity .15s; } .co-regeln span.an { opacity: 1; box-shadow: 0 0 14px currentColor; }
.co-rekord { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.06); text-align: left; } .co-rekord span { color: #a5b4dc; font-size: .85rem; } .co-rekord b { text-align: right; } .co-rekord em { grid-column: 1 / -1; font-style: normal; font-size: .78rem; color: #94a3d4; }
.co-rekord.ok { box-shadow: inset 0 0 0 2px #fde68a; } .co-rekord.ok em { color: #fde68a; }
.co-eingabe { display: grid; grid-template-columns: 1fr auto; gap: 8px; } .co-eingabe input { min-width: 0; padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 1.1rem; }
.co-eingabe .btn { width: auto; padding-left: 22px; padding-right: 22px; }
@media (prefers-reduced-motion: reduce) { .wu-mini { animation: none; } }
.bb-live { box-shadow: inset 0 0 0 2px rgba(167,139,250,.6); background: linear-gradient(90deg, rgba(244,114,182,.18), rgba(167,139,250,.18)); }
.bb-schritte { margin: 0; padding-left: 1.3em; text-align: left; color: #c7d0f5; line-height: 1.5; display: grid; gap: 6px; }
a.bb-datei { text-decoration: none; }
.bb-unten.bb-unten-live { grid-template-columns: 1fr; }

/* ---------- ⭐ Favoriten ---------- */
.hg-stern { position: absolute; top: 6px; right: 8px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 1.15rem; line-height: 1; color: rgba(255,255,255,.45); cursor: pointer; transition: transform .15s, color .15s; }
.hg-stern:hover { color: #fde68a; } .hg-stern:active { transform: scale(.85); }
.hg-stern.an { color: #fde047; text-shadow: 0 0 10px rgba(253,224,71,.7); }
.sk-kat-fav .hub-h span { filter: drop-shadow(0 0 6px rgba(253,224,71,.6)); }
.sk-kat[hidden] { display: none; }

/* ---------- 🎛️ Beat-Studio ---------- */
.hub-studio { background: linear-gradient(#1c1206, #1c1206) padding-box, linear-gradient(90deg, #fbbf24, #fb923c, #f472b6, #a78bfa, #fbbf24) border-box; background-size: 100% 100%, 300% 100%; }
.hub-studio .hg-titel { background: linear-gradient(90deg, #fde68a, #fb923c, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-studio { --ring: conic-gradient(#fbbf24, #fb923c, #f472b6, #a78bfa, #fbbf24); } .hg-av-studio > .hg-in { background: #160f05; display: grid; place-items: center; }
.st-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; width: 62%; } .st-mini i { aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,.12); animation: stMini 1.6s steps(1) infinite; }
.st-mini i:nth-child(1), .st-mini i:nth-child(6) { animation-delay: 0s; } .st-mini i:nth-child(3), .st-mini i:nth-child(8) { animation-delay: .4s; } .st-mini i:nth-child(2), .st-mini i:nth-child(7) { animation-delay: .8s; } .st-mini i:nth-child(4), .st-mini i:nth-child(5) { animation-delay: 1.2s; }
@keyframes stMini { 0% { background: #fb923c; } 25% { background: rgba(255,255,255,.12); } }
.st-buehne { background: radial-gradient(90% 50% at 50% 0%, #2a1a3e, #0d0b1c 70%); display: flex; flex-direction: column; gap: 10px; }
.st-buehne > * { width: 100%; flex: none; }
.st-kopfzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-play { width: 52px; height: 52px; flex: none; border: 0; border-radius: 50%; background: linear-gradient(135deg, #fbbf24, #fb923c); color: #2a1300; font-size: 1.4rem; font-weight: 900; cursor: pointer; box-shadow: 0 6px 20px rgba(251,146,60,.35); }
.st-play.an { background: linear-gradient(135deg, #f472b6, #a78bfa); color: #fff; }
.st-tempo { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.07); } .st-tempo b { min-width: 2.2em; text-align: center; font-size: 1.15rem; font-variant-numeric: tabular-nums; } .st-tempo small { font-size: .6rem; color: #a5b4dc; margin-right: 2px; }
.st-tempo button, .st-muster button, .st-modus, .st-menue-btn { border: 0; border-radius: 10px; min-width: 34px; height: 34px; background: rgba(255,255,255,.09); color: inherit; font: inherit; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.st-muster { display: flex; gap: 3px; padding: 3px; border-radius: 13px; background: rgba(255,255,255,.05); } .st-muster button.an { background: #fb923c; color: #2a1300; }
.st-modus { padding: 0 10px; font-size: .8rem; } .st-modus.an { background: #a78bfa; color: #fff; } .st-menue-btn { margin-left: auto; font-size: 1.2rem; }
.st-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; } .st-tabs::-webkit-scrollbar { display: none; }
.st-tabs button { flex: 1 0 auto; border: 0; border-radius: 12px; padding: 9px 10px; background: rgba(255,255,255,.06); color: #c7d0f5; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; white-space: nowrap; } .st-tabs button.an { background: rgba(251,146,60,.22); color: #fff; box-shadow: inset 0 0 0 1px #fb923c; }
.st-inhalt { display: grid; gap: 10px; -webkit-user-select: none; user-select: none; }
.st-raster { display: grid; gap: 3px; }
.st-zeile { display: grid; grid-template-columns: 66px repeat(var(--n), minmax(0, 1fr)); gap: 3px; align-items: stretch; } .st-zeile.aus { opacity: .4; }
.st-name { border: 0; background: none; color: var(--f); font: inherit; font-size: .72rem; font-weight: 800; text-align: left; padding: 0 2px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-z { position: relative; min-height: 32px; border: 0; border-radius: 6px; background: rgba(255,255,255,.07); cursor: pointer; padding: 0; color: #1a1033; touch-action: manipulation; }
.st-z.takt { background: rgba(255,255,255,.12); } .st-z.an { background: var(--f); box-shadow: 0 0 10px color-mix(in srgb, var(--f) 55%, transparent); }
.st-z i { font-style: normal; font-size: .6rem; font-weight: 800; }
.st-z.kopf, .st-r.kopf { outline: 2px solid #fff; outline-offset: -2px; } .st-z.kopf:not(.an) { background: rgba(255,255,255,.22); }
.st-halb { display: flex; gap: 6px; align-items: center; } .st-halb button { flex: 1; border: 0; border-radius: 10px; padding: 8px; background: rgba(255,255,255,.07); color: #c7d0f5; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; } .st-halb button.an { background: rgba(251,146,60,.25); color: #fff; } .st-halb label { font-size: .75rem; color: #a5b4dc; white-space: nowrap; }
.st-tipp { margin: 0; font-size: .78rem; color: #94a3d4; line-height: 1.45; }
.st-aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .st-aktionen .btn, .st-dialog .btn.secondary { background: rgba(255,255,255,.1); color: inherit; box-shadow: none; font-size: .85rem; }
.st-kanalwahl { display: flex; gap: 6px; flex-wrap: wrap; } .st-kanalwahl button { border: 2px solid color-mix(in srgb, var(--f) 50%, transparent); border-radius: 12px; padding: 7px 12px; background: none; color: var(--f); font: inherit; font-weight: 800; cursor: pointer; } .st-kanalwahl button.an { background: var(--f); color: #1a1033; }
.st-einst { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: .8rem; color: #a5b4dc; } .st-einst label { display: flex; align-items: center; gap: 6px; }
.st-einst select, .st-einst input[type=number] { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 6px; font: inherit; } .st-einst input[type=number] { width: 5em; } .st-einst select option { color: #000; }
.st-einst input[type=range] { accent-color: #fb923c; width: 120px; }
.st-roll { display: grid; gap: 2px; } .st-rzeile { display: grid; grid-template-columns: 66px repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
.st-rname { font-size: .66rem; color: #94a3d4; align-self: center; white-space: nowrap; overflow: hidden; } .st-rzeile.grund .st-rname { color: #fff; font-weight: 800; }
.st-r { min-height: 22px; border: 0; border-radius: 4px; background: rgba(255,255,255,.05); cursor: pointer; padding: 0; touch-action: manipulation; } .st-rzeile.grund .st-r { background: rgba(255,255,255,.1); } .st-r.takt { box-shadow: inset 2px 0 0 rgba(255,255,255,.12); }
.st-r.an { background: var(--f) !important; box-shadow: 0 0 8px color-mix(in srgb, var(--f) 60%, transparent); }
.st-song { display: flex; flex-wrap: wrap; gap: 6px; } .st-dazu { display: flex; gap: 6px; width: 100%; }
.st-slot { width: 52px; height: 52px; border: 0; border-radius: 12px; font: inherit; font-size: 1.3rem; font-weight: 900; color: #1a1033; cursor: pointer; display: grid; place-items: center; line-height: 1; } .st-slot small { font-size: .6rem; font-weight: 700; opacity: .7; }
.st-slot.m0 { background: #fb923c; } .st-slot.m1 { background: #f472b6; } .st-slot.m2 { background: #a78bfa; } .st-slot.m3 { background: #38bdf8; }
.st-slot.neu { flex: 1; height: 40px; background: none; color: #c7d0f5; font-size: .9rem; box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); } .st-slot.kopf { outline: 3px solid #fff; }
.st-mixer { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.st-kanal { display: grid; justify-items: center; gap: 6px; padding: 8px 2px; border-radius: 12px; background: rgba(255,255,255,.05); box-shadow: inset 0 3px 0 var(--f); }
.st-kanal input[type=range] { writing-mode: vertical-lr; direction: rtl; height: 110px; width: 28px; accent-color: var(--f); }
.st-kanal b { font-size: .64rem; color: var(--f); text-align: center; } .st-kanal div { display: flex; gap: 3px; }
.st-kanal button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: rgba(255,255,255,.1); color: #c7d0f5; font-size: .7rem; font-weight: 900; cursor: pointer; } .st-kanal button.an[data-stumm] { background: #f87171; color: #fff; } .st-kanal button.an[data-solo] { background: #fde047; color: #1a1033; }
.st-pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.st-pad { aspect-ratio: 1; border: 0; border-radius: 16px; background: color-mix(in srgb, var(--f) 22%, #15122a); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--f) 60%, transparent); color: #fff; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; touch-action: none; transition: transform .06s; }
.st-pad.druck { background: var(--f); color: #1a1033; transform: scale(.95); }
.st-rec { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: #fca5a5; }
.st-los { background: linear-gradient(90deg, #fbbf24, #fb923c); color: #2a1300; text-decoration: none; display: block; text-align: center; }
.st-projekte { display: grid; gap: 6px; text-align: left; } .st-projekt { display: grid; grid-template-columns: 1fr 40px 40px; gap: 4px; } .st-projekt.an button:first-child { box-shadow: inset 0 0 0 2px #fb923c; }
.st-projekt button { border: 0; border-radius: 10px; background: rgba(255,255,255,.07); color: inherit; font: inherit; cursor: pointer; padding: 8px; text-align: left; } .st-projekt button:not(:first-child) { text-align: center; }
.st-projekt small { display: block; color: #94a3d4; font-size: .72rem; }
@media (prefers-reduced-motion: reduce) { .st-mini i { animation: none; } }
.co-vorschlaege { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .co-vorschlaege button { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 12px; background: rgba(255,255,255,.06); color: inherit; font: inherit; font-size: .8rem; cursor: pointer; }
.co-einst { justify-content: center; } .co-einst output { min-width: 4.5em; color: #fff; font-variant-numeric: tabular-nums; }
.co-regel { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); text-align: left; }
.co-regel-kopf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .co-regel-kopf b { margin-right: 4px; } .co-regel-kopf span { display: flex; flex-wrap: wrap; gap: 4px; }
.co-regel-kopf button { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px 10px; background: none; color: #c7d0f5; font: inherit; font-size: .75rem; cursor: pointer; }
.co-regel-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }
.co-regel-zeile select, .co-regel-zeile input { background: rgba(255,255,255,.08); color: #fff; border: 1px solid currentColor; border-radius: 8px; padding: 5px 6px; font: inherit; font-size: .9rem; } .co-regel-zeile select option { color: #000; }
.co-regel-zeile input { width: 3.4em; } .co-regel-zeile label { display: inline-flex; align-items: center; gap: 4px; color: #c7d0f5; font-weight: 600; } .co-regel-zeile label[hidden] { display: none; }
.co-regel-info { color: #c4b5fd !important; font-weight: 700; }
.ft-check { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; } .ft-check li { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; } .ft-check li span { text-align: right; opacity: .8; }
.ft-arten { display: grid; gap: 6px; margin: 8px 0; } .ft-art { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: inherit; font: inherit; cursor: pointer; }
.ft-art small { opacity: .7; font-size: .75rem; } .ft-art.an { border-color: #4ade80; background: rgba(74,222,128,.18); }

/* ---------- 🎚️ Stimmgerät ---------- */
.hub-stimmwerk { background: linear-gradient(#05060b, #05060b) padding-box, linear-gradient(90deg, #7cc4ff, #ff7ab8, #ffd27a, #b6f08a, #7cc4ff) border-box; background-size: 100% 100%, 300% 100%; }
.hub-stimmwerk .hg-titel { background: linear-gradient(90deg, #ffd27a, #ff7ab8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-stimmwerk .hg-in { font-size: 1.9rem; background: radial-gradient(circle, rgba(124,196,255,.25), transparent 70%); }
.hub-stimmen { background: linear-gradient(#071a17, #071a17) padding-box, linear-gradient(90deg, #a3e635, #22d3ee, #4ade80, #a3e635) border-box; background-size: 100% 100%, 300% 100%; }
.hub-stimmen .hg-titel { background: linear-gradient(90deg, #d9f99d, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-stimmen { --ring: conic-gradient(#a3e635, #22d3ee, #4ade80, #a3e635); } .hg-av-stimmen > .hg-in { background: #06120f; display: grid; place-items: center; }
.sg-mini { position: relative; width: 70%; height: 40%; border: 3px solid rgba(255,255,255,.25); border-bottom: 0; border-radius: 60px 60px 0 0; } .sg-mini i { position: absolute; left: 50%; bottom: 0; width: 3px; height: 95%; margin-left: -1.5px; background: #4ade80; transform-origin: bottom; animation: sgMini 2.4s ease-in-out infinite; }
@keyframes sgMini { 0%, 100% { transform: rotate(-35deg); background: #fb7185; } 50% { transform: rotate(0); background: #4ade80; } 70% { transform: rotate(8deg); } }
.sg-buehne { background: radial-gradient(90% 60% at 50% 25%, #0f3b33, #071311 70%); }
.sg-inhalt { display: grid; gap: 12px; -webkit-user-select: none; user-select: none; }
.sg-wahl { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .sg-wahl::-webkit-scrollbar { display: none; }
.sg-wahl button { flex: none; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.06); color: inherit; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; } .sg-wahl button.an { background: #4ade80; color: #052e16; border-color: #4ade80; }
.sg-anzeige { display: grid; justify-items: center; gap: 4px; padding: 10px 0 0; border-radius: 22px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.sg-bild { width: min(100%, 520px); display: block; }
.sg-ton { display: grid; justify-items: center; gap: 2px; margin-top: -8px; padding-bottom: 14px; text-align: center; }
.sg-ton b { font-size: 4rem; line-height: 1; font-weight: 900; transition: color .2s; } .sg-ton b.ok { color: #4ade80; text-shadow: 0 0 20px rgba(74,222,128,.6); } .sg-ton b.alt { opacity: .4; }
.sg-ton span { font-size: 1rem; font-weight: 700; color: #e2e8f0; display: grid; gap: 2px; } .sg-ton small { font-size: .78rem; font-weight: 600; color: #94a3b8; } .sg-ok { color: #4ade80; }
.sg-saiten { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 6px; }
.sg-saiten button { position: relative; display: grid; justify-items: center; gap: 1px; padding: 10px 4px; border: 2px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.05); color: inherit; font: inherit; cursor: pointer; }
.sg-saiten b { font-size: 1.3rem; } .sg-saiten small { font-size: .65rem; color: #94a3b8; } .sg-saiten i { position: absolute; top: 2px; right: 5px; font-style: normal; font-size: .7rem; }
.sg-saiten button.aktiv { border-color: #fde047; } .sg-saiten button.ziel { border-color: #67e8f9; background: rgba(103,232,249,.12); } .sg-saiten button.ok { background: rgba(74,222,128,.18); } .sg-saiten button.ok i { color: #4ade80; font-size: .9rem; }
.sg-tipp { margin: -4px 0 0 !important; text-align: center; }
.sg-knoepfe { display: grid; grid-template-columns: 1fr auto; gap: 8px; } .sg-knoepfe .btn.secondary { background: rgba(255,255,255,.1); color: inherit; box-shadow: none; }
.sg-los { background: linear-gradient(90deg, #4ade80, #22d3ee); color: #052e16; } .sg-los.an { background: rgba(255,255,255,.12); color: #fff; }
.sg-kammer { display: flex; align-items: center; justify-content: center; gap: 8px; color: #a5b4c8; font-size: .85rem; } .sg-kammer b { color: #fff; min-width: 4.5em; text-align: center; }
.sg-kammer button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sg-mini i { animation: none; } }
.sg-stimmung { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .sg-stimmung label { flex: 1; display: flex; gap: 8px; align-items: center; font-size: .85rem; color: #a5b4c8; min-width: 0; }
.sg-stimmung select { flex: 1; min-width: 0; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 9px 8px; font: inherit; font-size: .9rem; } .sg-stimmung select option { color: #000; }
.sg-stimmung button { border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 9px 12px; background: rgba(255,255,255,.06); color: inherit; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; } .sg-stimmung button.an { background: #67e8f9; color: #082f49; border-color: #67e8f9; }
.sg-saiten[style*="--n"] { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.sg-edit { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; margin-top: -6px; } .sg-edit span { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.sg-edit button { border: 0; border-radius: 8px; padding: 8px 0; background: rgba(103,232,249,.15); color: #67e8f9; font: inherit; font-size: .8rem; cursor: pointer; touch-action: manipulation; }

/* ---------- 💪 Fitness ---------- */
.hub-fitness { background: linear-gradient(#1c0d07, #1c0d07) padding-box, linear-gradient(90deg, #fb923c, #f43f5e, #fde047, #fb923c) border-box; background-size: 100% 100%, 300% 100%; }
.hub-fitness .hg-titel { background: linear-gradient(90deg, #fdba74, #fda4af); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-fitness { --ring: conic-gradient(#fb923c, #f43f5e, #fde047, #fb923c); } .hg-av-fitness > .hg-in { background: #170a05; display: grid; place-items: center; }
.fi-mini-av { font-size: 1.9rem; display: inline-block; animation: fiPump 1.6s ease-in-out infinite; } @keyframes fiPump { 50% { transform: scale(1.15) rotate(-8deg); } }
.fi-buehne { background: radial-gradient(90% 60% at 50% 20%, #3b1a0e, #120a08 70%); }
.fi-inhalt { display: grid; gap: 12px; }
.fi-start, .fi-training, .fi-detail { display: grid; gap: 12px; }
.fi-los { display: grid; gap: 4px; padding: 20px; border: 0; border-radius: 22px; background: linear-gradient(90deg, #fb923c, #f43f5e); color: #fff; font: inherit; font-size: 1.3rem; font-weight: 900; cursor: pointer; box-shadow: 0 10px 30px rgba(244,63,94,.3); } .fi-los small { font-size: .8rem; font-weight: 600; opacity: .9; }
.fi-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; } .fi-kacheln > div { display: grid; justify-items: center; padding: 12px 6px; border-radius: 16px; background: rgba(255,255,255,.06); }
.fi-kacheln b { font-size: 1.5rem; font-variant-numeric: tabular-nums; } .fi-kacheln span { font-size: .72rem; color: #c4b5a5; text-align: center; }
.fi-h { margin: 6px 0 0; font-size: 1rem; } .fi-leer { color: #c4b5a5; margin: 0; }
.fi-liste { display: grid; gap: 6px; }
.fi-zeile { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 0; border-radius: 14px; background: rgba(255,255,255,.06); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fi-ze { font-size: 1.4rem; text-align: center; } .fi-zt { display: grid; min-width: 0; } .fi-zt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fi-zt small { color: #c4b5a5; font-size: .75rem; }
.fi-mini { width: 60px; height: 24px; }
.fi-unten .btn.secondary, .fi-detail .btn.secondary, .fi-ende { width: 100%; background: rgba(255,255,255,.1); color: inherit; box-shadow: none; }
.fi-kopf { display: flex; justify-content: space-between; color: #fdba74; font-weight: 800; font-variant-numeric: tabular-nums; }
.fi-chips { display: flex; flex-wrap: wrap; gap: 6px; } .fi-chips button { border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.05); color: inherit; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.fi-chips button.an { background: #fb923c; border-color: #fb923c; color: #2a1300; } .fi-chips .fi-plus { border-style: dashed; color: #fdba74; }
.fi-eingabe { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(251,146,60,.3); }
.fi-eingabe h3 { margin: 0; font-size: 1.3rem; } .fi-letztes { margin: 0; font-size: .82rem; color: #c4b5a5; }
.fi-stepper { display: grid; gap: 4px; } .fi-stepper > span { font-size: .8rem; color: #c4b5a5; font-weight: 700; }
.fi-stepper > div { display: grid; grid-template-columns: 64px 1fr 64px; gap: 8px; }
.fi-stepper button { height: 60px; border: 0; border-radius: 16px; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: 1.8rem; font-weight: 800; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; } .fi-stepper button:active { background: rgba(251,146,60,.4); }
.fi-stepper input { min-width: 0; height: 60px; border: 0; border-radius: 16px; background: rgba(0,0,0,.3); color: #fff; font: inherit; font-size: 2rem; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.fi-tempo { margin: 0; text-align: center; color: #fde047; font-weight: 800; min-height: 1.3em; }
.fi-satz { height: 64px; border: 0; border-radius: 18px; background: linear-gradient(90deg, #4ade80, #22c55e); color: #052e16; font: inherit; font-size: 1.3rem; font-weight: 900; cursor: pointer; }
.fi-satz:active { transform: scale(.98); }
.fi-heute { display: flex; flex-wrap: wrap; gap: 6px; } .fi-heute span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 4px 6px 10px; border-radius: 999px; background: rgba(74,222,128,.15); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fi-heute button { border: 0; background: none; color: #fca5a5; font-size: 1.1rem; cursor: pointer; padding: 0 6px; }
.fi-pause { position: relative; overflow: hidden; display: grid; gap: 8px; justify-items: center; padding: 14px; border-radius: 18px; background: rgba(56,189,248,.12); box-shadow: inset 0 0 0 1px rgba(56,189,248,.4); } .fi-pause[hidden] { display: none; }
.fi-pause::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--fort, 0) * 100%); background: rgba(56,189,248,.15); transition: width .5s linear; }
.fi-pause b { position: relative; font-size: 1.6rem; font-variant-numeric: tabular-nums; } .fi-pause span { position: relative; display: flex; gap: 6px; }
.fi-pause button { border: 0; border-radius: 10px; padding: 8px 12px; background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.fi-weiter { color: #4ade80; }
.fi-toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); z-index: 60; transform: translateX(-50%); max-width: 92vw; padding: 12px 18px; border-radius: 16px; background: #3f1d1d; color: #fff; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: aufploppen .3s var(--ease-spring); }
.fi-toast.gut { background: linear-gradient(90deg, #ca8a04, #ea580c); }
.fi-gruppe { margin: 10px 0 6px; font-size: .85rem; color: #c4b5a5; }
.fi-eigen { display: grid; grid-template-columns: 1fr auto; gap: 6px; } .fi-eigen input, .fi-eigen select { padding: 10px; border-radius: 10px; border: 1px solid rgba(128,128,128,.4); font: inherit; min-width: 0; } .fi-eigen button { grid-column: 1 / -1; }
.fi-karte .fi-logo { font-size: 3rem; } .fi-zusammen { font-size: .85rem; } .fi-los-btn { background: linear-gradient(90deg, #fb923c, #f43f5e); color: #fff; }
.fi-was { margin: 0; font-size: .82rem; color: #c4b5a5; } .fi-kurve { width: 100%; display: block; border-radius: 16px; background: rgba(0,0,0,.25); }
.fi-tabelle { display: grid; gap: 4px; } .fi-tabelle > div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: .85rem; font-variant-numeric: tabular-nums; } .fi-tabelle b { color: #fdba74; }
@media (prefers-reduced-motion: reduce) { .fi-mini-av { animation: none; } }
/* Fitness: Körper-Figur, Icons, Tipps */
.fi-koerper { display: block; height: 100%; width: auto; }
.fi-rumpf { fill: rgba(255,255,255,.13); }
.fi-muskel { fill: rgba(255,255,255,.2); transition: fill .3s; } .fi-muskel.an { filter: drop-shadow(0 0 2px rgba(251,146,60,.6)); }
.fi-icon { flex: none; display: inline-grid; place-items: center; width: 34px; height: 40px; border-radius: 10px; background: rgba(0,0,0,.25); padding: 3px 0; box-sizing: border-box; }
.fi-icon-ausdauer { background: rgba(56,189,248,.14); } .fi-icon-leer { font-size: 1.2rem; }
.fi-ze .fi-icon { width: 36px; height: 44px; }
.fi-chip-icon { display: inline-flex !important; align-items: center; gap: 6px; padding: 4px 12px 4px 4px !important; } .fi-chip-icon .fi-icon { width: 24px; height: 30px; border-radius: 999px; padding: 2px 0; }
.fi-woche { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 20px; background: rgba(255,255,255,.05); }
.fi-woche-bild { height: 150px; display: grid; place-items: center; } .fi-woche-text p { margin: 4px 0 0; font-size: .85rem; } .fi-woche-text small { color: #c4b5a5; } .fi-offen { color: #fdba74; }
.fi-tipp { margin: 0; padding: 10px 12px; border-radius: 14px; background: rgba(253,224,71,.08); box-shadow: inset 3px 0 0 #fde047; font-size: .85rem; line-height: 1.45; }
.fi-ue-kopf { display: flex; gap: 12px; align-items: center; } .fi-ue-kopf .fi-icon { width: 46px; height: 56px; } .fi-ue-kopf small { color: #fdba74; font-size: .78rem; } .fi-ue-kopf h3 { margin: 0; }
.fi-steigern { margin: 0; padding: 10px 12px; border-radius: 14px; background: rgba(74,222,128,.12); font-size: .88rem; line-height: 1.5; } .fi-steigern b { color: #4ade80; }
.fi-steigern button { border: 0; border-radius: 8px; padding: 4px 8px; margin-left: 4px; background: rgba(255,255,255,.12); color: inherit; font: inherit; font-size: .78rem; cursor: pointer; }
.fi-tipps { border-radius: 14px; background: rgba(255,255,255,.04); padding: 8px 12px; } .fi-tipps summary { cursor: pointer; font-weight: 800; font-size: .9rem; color: #fde047; }
.fi-tipps ul, .fi-tipps-liste { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: .85rem; line-height: 1.45; }
.fi-filter { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .fi-filter::-webkit-scrollbar { display: none; }
.fi-filter button { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(128,128,128,.4); border-radius: 999px; padding: 3px 10px 3px 3px; background: none; color: inherit; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.fi-filter button:first-child { padding-left: 10px; } .fi-filter button.an { background: #fb923c; border-color: #fb923c; color: #2a1300; } .fi-filter .fi-icon { width: 22px; height: 28px; border-radius: 999px; padding: 2px 0; }
.fi-ue-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; max-height: 46vh; overflow-y: auto; }
.fi-ue-karte { display: grid; justify-items: center; gap: 3px; padding: 10px 4px; border: 0; border-radius: 14px; background: rgba(128,128,128,.14); color: inherit; font: inherit; cursor: pointer; text-align: center; }
.fi-ue-karte .fi-icon { width: 42px; height: 52px; } .fi-ue-karte b { font-size: .78rem; line-height: 1.2; } .fi-ue-karte small { font-size: .65rem; opacity: .7; }
.fi-eigen select#fiEigenMuskel { grid-column: 1 / -1; }
.fi-detail-kopf { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 20px; background: rgba(255,255,255,.05); }
.fi-detail-kopf .fi-koerper { height: 140px; } .fi-muskeln { margin: 0; } .fi-muskeln small { color: #c4b5a5; }
.sk-dlg .fi-rumpf { fill: rgba(128,128,128,.35); } .sk-dlg .fi-muskel:not(.an) { fill: rgba(128,128,128,.45); }
.fi-icon { overflow: hidden; } .fi-icon .fi-koerper { width: 100%; height: 100%; }

/* ---------- 💾 Sicherung ---------- */
.sb-hinweis { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; margin-bottom: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; background: linear-gradient(90deg, rgba(56,189,248,.18), rgba(167,139,250,.14)); box-shadow: inset 0 0 0 1px rgba(56,189,248,.45); }
.sb-hi-icon { font-size: 1.6rem; } .sb-hinweis div { display: grid; gap: 2px; min-width: 0; } .sb-hinweis small { font-size: .78rem; opacity: .85; line-height: 1.35; }
.sb-hi-los { border: 0; border-radius: 12px; padding: 10px 14px; background: #38bdf8; color: #082f49; font: inherit; font-weight: 800; cursor: pointer; }
.sb-hi-zu { border: 0; background: none; color: inherit; opacity: .6; font-size: 1.3rem; cursor: pointer; padding: 4px 6px; }
.sb-warn { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: rgba(251,146,60,.14); font-size: .85rem; line-height: 1.45; }
.sb-songs { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; font-size: .85rem; }
.sb-los { width: 100%; } .sb-schritte { margin: 6px 0 10px !important; } .sb-einspielen { display: block; text-align: center; cursor: pointer; margin-bottom: 8px; }
.fi-unten { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sb-update { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); } .sb-update small { font-size: .78rem; opacity: .8; line-height: 1.4; }
.sb-ziele { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 8px; } .sb-ziele button { border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 10px 4px; background: rgba(255,255,255,.05); color: inherit; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.sb-ziele button.an { border-color: #38bdf8; background: rgba(56,189,248,.2); }
.sb-anleitung { margin-bottom: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.05); } .sb-anleitung summary { cursor: pointer; font-weight: 800; font-size: .9rem; }
.sb-anleitung ol { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: .85rem; line-height: 1.45; }
.sb-hinweis { max-width: 1100px; margin-left: auto; margin-right: auto; }
/* Fitness: Trainingspläne */
.fi-plan-karte { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px; border-radius: 20px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.fi-plan-karte.an { grid-template-columns: 1fr auto auto; background: linear-gradient(90deg, rgba(74,222,128,.14), rgba(56,189,248,.1)); box-shadow: inset 0 0 0 1px rgba(74,222,128,.4); }
.fi-plan-karte > div { display: grid; gap: 3px; min-width: 0; } .fi-plan-karte small { font-size: .8rem; color: #c4b5a5; } .fi-plan-karte small b { color: #4ade80; }
.fi-plan-karte .btn.secondary { background: rgba(255,255,255,.1); color: inherit; box-shadow: none; }
.fi-plan-los { background: linear-gradient(90deg, #4ade80, #22c55e) !important; color: #052e16 !important; font-weight: 900; }
.fi-plan-mehr { border: 0; border-radius: 12px; width: 40px; height: 40px; background: rgba(255,255,255,.1); color: inherit; font-size: 1.2rem; cursor: pointer; }
.fi-plan-zeile { display: grid; gap: 3px; padding: 12px; border: 0; border-radius: 14px; background: rgba(128,128,128,.14); color: inherit; font: inherit; text-align: left; cursor: pointer; } .fi-plan-zeile small { opacity: .75; font-size: .78rem; } .fi-plan-zeile.an { box-shadow: inset 0 0 0 2px #4ade80; }
.fi-plan-knoepfe { display: grid; gap: 8px; margin-top: 12px; }
.fi-plan-tag { margin-top: 10px; padding: 10px; border-radius: 14px; background: rgba(128,128,128,.1); display: grid; gap: 6px; }
.fi-plan-ue { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: .88rem; } .fi-plan-ue .fi-icon { width: 26px; height: 32px; } .fi-plan-ue em { font-style: normal; font-weight: 800; color: #fb923c; font-variant-numeric: tabular-nums; }
.fi-plan-ue.edit { grid-template-columns: auto 1fr 42px auto 42px auto 42px auto; gap: 4px; } .fi-plan-ue.edit input { width: 100%; padding: 6px 2px; border-radius: 8px; border: 1px solid rgba(128,128,128,.4); text-align: center; font: inherit; }
.fi-plan-ue.edit button, .fi-plan-tagkopf button { border: 0; background: none; color: #f87171; font-size: 1.1rem; cursor: pointer; }
.fi-plan-tagkopf { display: grid; grid-template-columns: 1fr auto; gap: 6px; } .fi-plan-tagkopf input, .fi-plan-text { width: 100%; box-sizing: border-box; padding: 10px; border-radius: 10px; border: 1px solid rgba(128,128,128,.4); font: inherit; font-weight: 700; }
.fi-plan-dazu { display: grid; grid-template-columns: 1fr auto; gap: 6px; } .fi-plan-dazu select { padding: 8px; border-radius: 10px; font: inherit; min-width: 0; } .fi-plan-dazu button { border: 0; border-radius: 10px; padding: 8px 12px; background: #fb923c; color: #2a1300; font: inherit; font-weight: 800; cursor: pointer; }
.fi-plan-leiste { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: rgba(74,222,128,.08); box-shadow: inset 0 0 0 1px rgba(74,222,128,.3); }
.fi-plan-kopf { display: flex; justify-content: space-between; } .fi-plan-kopf span { color: #4ade80; font-weight: 800; font-variant-numeric: tabular-nums; }
.fi-plan-balken { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; } .fi-plan-balken i { display: block; height: 100%; background: linear-gradient(90deg, #4ade80, #22d3ee); transition: width .4s; }
.fi-chips button.fertig { background: rgba(74,222,128,.25); border-color: #4ade80; } .fi-chips button small { opacity: .8; font-variant-numeric: tabular-nums; }
.fi-chips-klein button { font-size: .75rem; padding: 4px 10px 4px 4px !important; opacity: .8; }
.fi-ziel { display: block; font-style: normal; font-size: .8rem; font-weight: 800; color: #4ade80; margin-top: 2px; }

/* ---------- 🎚️ Stimmgerät: Liquid Glass ---------- */
.sg-buehne { background: radial-gradient(120% 80% at 50% 0%, #0b2a3a 0%, #050b14 60%, #03060c 100%); isolation: isolate; }
.sg-blasen { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sg-blasen i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(60px); opacity: .55; mix-blend-mode: screen; animation: sgBlase 18s ease-in-out infinite alternate; }
.sg-blasen i:nth-child(1) { left: -20vmax; top: -15vmax; background: radial-gradient(circle, #22d3ee 0%, transparent 60%); }
.sg-blasen i:nth-child(2) { right: -25vmax; top: 10vmax; background: radial-gradient(circle, #a78bfa 0%, transparent 60%); animation-duration: 22s; animation-delay: -6s; }
.sg-blasen i:nth-child(3) { left: 10vmax; bottom: -30vmax; background: radial-gradient(circle, #4ade80 0%, transparent 60%); animation-duration: 26s; animation-delay: -12s; }
@keyframes sgBlase { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8vmax, 6vmax) scale(1.15); } 100% { transform: translate(-6vmax, 10vmax) scale(.9); } }
/* Glas: unscharfer Hintergrund, helle Lichtkante oben, zarter Rand */
.sg-anzeige, .sg-kammer, .sg-saiten button, .sg-wahl button, .sg-stimmung select, .sg-stimmung button, .sg-knoepfe .btn.secondary, .sg-edit button {
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.05), 0 10px 30px rgba(0,0,0,.35) !important;
}
.sg-anzeige { position: relative; overflow: hidden; border-radius: 30px; transition: box-shadow .5s, border-color .5s; }
.sg-anzeige::before { content: ''; position: absolute; inset: -40% -10% auto; height: 70%; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent); transform: rotate(-6deg); pointer-events: none; }
.sg-anzeige.ok { border-color: rgba(74,222,128,.55) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 1px rgba(74,222,128,.3), 0 0 60px rgba(74,222,128,.35), 0 10px 30px rgba(0,0,0,.35) !important; }
.sg-ton b { font-size: 4.6rem; letter-spacing: -.02em; background: linear-gradient(180deg, #fff, #cbd5e1); -webkit-background-clip: text; background-clip: text; color: transparent; transition: filter .3s, transform .3s; }
.sg-ton b.ok { background: linear-gradient(180deg, #bbf7d0, #4ade80); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 18px rgba(74,222,128,.7)); transform: scale(1.06); }
.sg-wahl button { border-radius: 999px !important; transition: transform .2s, background .3s; } .sg-wahl button:active, .sg-saiten button:active { transform: scale(.95); }
.sg-wahl button.an { background: linear-gradient(160deg, rgba(74,222,128,.55), rgba(34,211,238,.35)) !important; color: #fff !important; border-color: rgba(255,255,255,.4) !important; }
.sg-saiten button { border-radius: 18px !important; transition: transform .2s, box-shadow .3s; }
.sg-saiten button.aktiv { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 2px rgba(253,224,71,.7), 0 0 24px rgba(253,224,71,.35) !important; }
.sg-saiten button.ok { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 2px rgba(74,222,128,.7), 0 0 24px rgba(74,222,128,.35) !important; }
.sg-los { border-radius: 999px !important; background: linear-gradient(160deg, rgba(74,222,128,.9), rgba(34,211,238,.85)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 30px rgba(34,211,238,.35) !important; }
.sg-los.an { background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.06)) !important; color: #fff !important; }
.sg-knoepfe .btn.secondary { border-radius: 999px !important; }
.sg-kammer { flex-wrap: wrap; padding: 12px 14px; border-radius: 24px; }
/* Glas-Schieberegler */
.sg-regler { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 4px 0 0; flex-basis: 100%; cursor: pointer; }
.sg-regler::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #22d3ee calc(var(--wert, .5) * 100%), rgba(255,255,255,.15) calc(var(--wert, .5) * 100%)); box-shadow: inset 0 1px 2px rgba(0,0,0,.4), 0 0 12px rgba(34,211,238,.35); }
.sg-regler::-moz-range-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.15); } .sg-regler::-moz-range-progress { height: 10px; border-radius: 999px; background: #22d3ee; }
.sg-regler::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 26px; margin-top: -8px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.55)); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 -2px 4px rgba(0,0,0,.15); transition: transform .15s; }
.sg-regler:active::-webkit-slider-thumb { transform: scale(1.18); }
.sg-regler::-moz-range-thumb { width: 34px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
@media (prefers-reduced-motion: reduce) { .sg-blasen i { animation: none; } .sg-ton b.ok { transform: none; } }
/* Stimmgerät: Note im Bogen, ruhigere Abstände, Leisten laufen weich aus */
.sg-anzeige { padding: 14px 0 18px; gap: 0; } .sg-bild { max-width: 100%; }
.sg-ton { position: relative; z-index: 1; padding: 0 16px; pointer-events: none; }
.sg-ton b { line-height: .95; } .sg-ton b.alt { opacity: .35; }
.sg-ton span { margin-top: 26px; text-align: center; } .sg-ton small { margin-top: 2px; }
.sg-wahl { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
.sg-stimmung select { -webkit-appearance: none; appearance: none; padding-right: 30px; background-image: none; text-overflow: ellipsis; }
.sg-kammer { gap: 10px; } .sg-kammer > span { flex: 1; text-align: left; }
/* Stimmgerät Pro: Ansicht-Umschalter, Wirbel-Anleitung */
.sg-ansicht { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.sg-ansicht button { border: 0; border-radius: 999px; padding: 9px 6px; background: none; color: rgba(226,232,240,.8); font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; transition: background .3s, color .3s; }
.sg-ansicht button.an { background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(255,255,255,.55)); color: #0b1220; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.sg-kopf { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 24px; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.sg-kopf[hidden] { display: none; } .sg-kopf.ok { border-color: rgba(74,222,128,.5); }
.sg-kopf-text { margin: 0; font-size: .88rem; line-height: 1.45; } .sg-kopf-text b { color: #fde047; }
.sg-kopf-bild { width: 96px; height: auto; display: block; overflow: visible; }
.sg-kopf-platte { fill: rgba(255,255,255,.1); stroke: rgba(255,255,255,.3); stroke-width: 1.2; }
.sg-kopf-saite { stroke: rgba(255,255,255,.35); stroke-width: 1.2; } .sg-kopf-saite.an { stroke: #fde047; stroke-width: 2; } .sg-kopf-steg { stroke: rgba(255,255,255,.25); stroke-width: 1; }
.sg-wirbel ellipse { fill: rgba(255,255,255,.25); stroke: rgba(255,255,255,.5); stroke-width: 1; }
.sg-wirbel.an ellipse { fill: #fde047; stroke: #fff; filter: drop-shadow(0 0 6px rgba(253,224,71,.9)); }
.sg-kopf.ok .sg-wirbel.an ellipse { fill: #4ade80; filter: drop-shadow(0 0 6px rgba(74,222,128,.9)); }
.sg-dreh path { fill: none; stroke: #fde047; stroke-width: 2.5; stroke-linecap: round; }
.sg-wirbel.spannen .sg-dreh { animation: sgDrehR 1.4s ease-in-out infinite; } .sg-wirbel.lockern .sg-dreh { animation: sgDrehL 1.4s ease-in-out infinite; }
@keyframes sgDrehR { 0% { transform: rotate(-25deg); opacity: .3; } 60% { transform: rotate(25deg); opacity: 1; } 100% { transform: rotate(25deg); opacity: 0; } }
@keyframes sgDrehL { 0% { transform: rotate(25deg); opacity: .3; } 60% { transform: rotate(-25deg); opacity: 1; } 100% { transform: rotate(-25deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sg-dreh { animation: none !important; } }

/* ---------- 🔎 Zutaten-Check ---------- */
.hub-scan { background: linear-gradient(#04140f, #04140f) padding-box, linear-gradient(90deg, #34d399, #22d3ee, #a3e635, #34d399) border-box; background-size: 100% 100%, 300% 100%; }
.hub-scan .hg-titel { background: linear-gradient(90deg, #6ee7b7, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-scan { --ring: conic-gradient(#34d399, #22d3ee, #a3e635, #34d399); } .hg-av-scan > .hg-in { background: #03120d; display: grid; place-items: center; }
.sc-mini { width: 34px; height: 24px; position: relative; background: repeating-linear-gradient(90deg, #d1fae5 0 2px, transparent 2px 4px, #d1fae5 4px 5px, transparent 5px 8px); border-radius: 2px; overflow: hidden; }
.sc-mini i { position: absolute; left: 0; right: 0; height: 2px; background: #f43f5e; box-shadow: 0 0 6px #f43f5e; animation: scLaser 1.8s ease-in-out infinite alternate; }
@keyframes scLaser { from { top: 2px; } to { top: 20px; } }
.sc-buehne { background: radial-gradient(120% 60% at 50% 0%, #064e3b 0%, #04140f 55%, #020807 100%); overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0; }
.sc-inhalt { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; }
.sc-held { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; border-radius: 26px; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 40px rgba(0,0,0,.35); }
.sc-held-bild { height: 64px; display: flex; gap: 5px; justify-content: center; align-items: stretch; opacity: .85; }
.sc-held-bild i { width: 6px; border-radius: 2px; background: linear-gradient(#a7f3d0, #34d399); } .sc-held-bild i:nth-child(2n) { width: 3px; } .sc-held-bild i:nth-child(3n) { width: 9px; }
.sc-scan-btn { appearance: none; border: 0; border-radius: 999px; padding: 16px 20px; font: 800 1.1rem system-ui; color: #022c22; background: linear-gradient(135deg, #6ee7b7, #22d3ee); box-shadow: 0 10px 30px rgba(52,211,153,.35), inset 0 1px 0 rgba(255,255,255,.6); cursor: pointer; }
.sc-scan-btn:active { transform: scale(.98); }
.sc-eingabe { display: flex; gap: 8px; } .sc-eingabe input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: #ecfdf5; font: 600 1rem system-ui; }
.sc-eingabe button, .sc-zweit { appearance: none; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 12px 16px; background: rgba(255,255,255,.08); color: #ecfdf5; font: 700 1rem system-ui; cursor: pointer; }
.sc-fehler { margin: 0; color: #fda4af; font-size: .9rem; min-height: 0; } .sc-fehler:empty { display: none; }
.sc-karte { padding: 14px 16px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); color: #ecfdf5; }
.sc-karte h3 { margin: 0 0 10px; font-size: 1rem; color: #a7f3d0; }
.sc-klein { margin: 6px 0 0; font-size: .85rem; color: rgba(236,253,245,.65); line-height: 1.4; } .sc-klein a { color: #6ee7b7; }
.sc-hinweis { padding: 0 6px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-chip { appearance: none; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #d1fae5; border-radius: 999px; padding: 8px 12px; font: 650 .9rem system-ui; cursor: pointer; transition: background .2s, border-color .2s; }
.sc-chip.an { background: rgba(52,211,153,.22); border-color: #34d399; color: #fff; }
.sc-zeile { appearance: none; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 4px; border: 0; border-top: 1px solid rgba(255,255,255,.07); background: none; color: inherit; text-align: left; cursor: pointer; }
.sc-zeile:first-of-type { border-top: 0; } .sc-zeile span { flex: 1; min-width: 0; display: grid; } .sc-zeile b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sc-zeile small { color: rgba(236,253,245,.6); } .sc-zeile em { color: #fde047; font-style: normal; }
.sc-punkt { flex: none; width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: #64748b; }
.sc-punkt.gruen { background: #4ade80; box-shadow: 0 0 8px #4ade80; } .sc-punkt.gelb { background: #facc15; box-shadow: 0 0 8px #facc15; } .sc-punkt.rot { background: #fb7185; box-shadow: 0 0 8px #fb7185; } .sc-punkt.info { background: #60a5fa; }
.sc-laden { display: grid; place-items: center; gap: 10px; padding: 60px 0; color: #a7f3d0; }
.sc-laden i { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255,255,255,.15); border-top-color: #34d399; animation: scDreh 0.9s linear infinite; } @keyframes scDreh { to { transform: rotate(360deg); } }
.sc-leer { text-align: center; display: grid; gap: 10px; } .sc-leer-icon { font-size: 3rem; } .sc-leer p { margin: 0; color: rgba(236,253,245,.75); }
.sc-link { color: #6ee7b7; font-weight: 700; text-decoration: none; text-align: center; padding: 10px; }
.sc-produkt { display: grid; gap: 14px; }
.sc-kopf { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; color: #ecfdf5; }
.sc-kopf img, .sc-ohnebild { width: 76px; height: 76px; object-fit: contain; border-radius: 18px; background: #fff; }
.sc-ohnebild { display: grid; place-items: center; font-size: 2.2rem; background: rgba(255,255,255,.08); }
.sc-kopf h2 { margin: 0; font-size: 1.15rem; line-height: 1.25; overflow-wrap: anywhere; } .sc-kopf p { margin: 2px 0; color: rgba(236,253,245,.75); } .sc-kopf small { color: rgba(236,253,245,.5); }
.sc-fav { appearance: none; border: 0; background: rgba(255,255,255,.08); color: #fde047; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.sc-ampel { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 24px; color: #fff; border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.sc-ampel b { font-size: 1.15rem; display: block; } .sc-ampel small { opacity: .75; }
.sc-ampel.gruen { background: linear-gradient(135deg, rgba(74,222,128,.35), rgba(16,185,129,.12)); }
.sc-ampel.gelb { background: linear-gradient(135deg, rgba(250,204,21,.35), rgba(234,179,8,.10)); }
.sc-ampel.rot { background: linear-gradient(135deg, rgba(251,113,133,.40), rgba(225,29,72,.12)); }
.sc-ampel.grau { background: rgba(148,163,184,.18); }
.sc-lichter { display: grid; gap: 5px; padding: 7px 6px; border-radius: 14px; background: rgba(0,0,0,.45); } .sc-lichter i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.12); }
.sc-ampel.rot .r { background: #fb7185; box-shadow: 0 0 12px #fb7185; } .sc-ampel.gelb .y { background: #facc15; box-shadow: 0 0 12px #facc15; } .sc-ampel.gruen .g { background: #4ade80; box-shadow: 0 0 12px #4ade80; }
.sc-grund { display: flex; gap: 10px; align-items: baseline; margin: 6px 0; line-height: 1.35; }
.sc-konflikt { border-color: rgba(251,113,133,.5); } .sc-konflikt p { margin: 4px 0; } .sc-konflikt .vllt { color: #fde68a; }
.sc-naehr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 8px 0; } .sc-naehr i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.sc-naehr i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: currentColor; }
.sc-naehr.gruen { color: #4ade80; } .sc-naehr.gelb { color: #facc15; } .sc-naehr.rot { color: #fb7185; } .sc-naehr span { color: #ecfdf5; }
.sc-zutaten summary { cursor: pointer; font-weight: 700; color: #a7f3d0; } .sc-zutaten p { color: rgba(236,253,245,.8); line-height: 1.45; font-size: .92rem; }
.sc-knoepfe { display: grid; gap: 8px; }
.sc-kamera { position: relative; border-radius: 26px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 62dvh; }
.sc-kamera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-rahmen { position: absolute; inset: 30% 10%; border-radius: 18px; border: 3px solid rgba(110,231,183,.9); box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.sc-rahmen i { position: absolute; left: 6%; right: 6%; height: 2px; background: #f43f5e; box-shadow: 0 0 10px #f43f5e; animation: scLaser2 1.6s ease-in-out infinite alternate; } @keyframes scLaser2 { from { top: 10%; } to { top: 88%; } }
.sc-kamera p { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; color: #fff; font-weight: 700; text-shadow: 0 1px 4px #000; padding: 0 12px; }
@media (prefers-reduced-motion: reduce) { .sc-mini i, .sc-rahmen i { animation: none; } .sc-laden i { animation-duration: 2.4s; } }
.sc-inhalt *, .sc-inhalt *::before, .sc-inhalt *::after { box-sizing: border-box; } .sc-scan-btn { width: 100%; } .sc-eingabe button { flex: none; }
/* Zutaten-Check: Seiten zum Wischen, Tab-Leiste, Blatt */
.sc-buehne .farb-kopf { flex: none; }
.sc-seiten { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; }
.sc-seiten::-webkit-scrollbar { display: none; }
.sc-seite { flex: 0 0 100%; width: 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; overscroll-behavior-y: contain; padding: 4px 16px 28px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; }
.sc-tabs { flex: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 -16px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: rgba(3,18,13,.78); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); border-top: 1px solid rgba(255,255,255,.08); }
.sc-tab { appearance: none; border: 0; background: none; color: rgba(236,253,245,.55); display: grid; justify-items: center; gap: 3px; padding: 7px 0 6px; font: 650 .72rem system-ui; position: relative; z-index: 1; cursor: pointer; transition: color .2s; -webkit-tap-highlight-color: transparent; }
.sc-tab b { font-size: 1.3rem; line-height: 1; filter: grayscale(.6); transition: filter .2s, transform .2s; } .sc-tab.an { color: #fff; } .sc-tab.an b { filter: none; transform: translateY(-1px) scale(1.08); }
.sc-tab-licht { position: absolute; top: 6px; left: 10px; width: calc((100% - 20px) / 4); height: 52px; border-radius: 18px; background: linear-gradient(160deg, rgba(110,231,183,.28), rgba(34,211,238,.12)); border: 1px solid rgba(167,243,208,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 18px rgba(16,185,129,.25); transform: translateX(calc(var(--pos, 0) * 100%)); pointer-events: none; }
.sc-toast { position: absolute; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 40; max-width: calc(100% - 40px); padding: 11px 18px; border-radius: 999px; background: rgba(6,78,59,.92); color: #ecfdf5; font: 700 .92rem system-ui; box-shadow: 0 10px 30px rgba(0,0,0,.4); pointer-events: none; transition: opacity .25s, transform .25s; text-align: center; }
.sc-toast.an { opacity: 1; transform: translate(-50%, 0); }
.sc-blatt { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 12px) 16px 0; background: radial-gradient(120% 60% at 50% 0%, #065f46 0%, #04140f 55%, #020807 100%); box-shadow: -24px 0 48px rgba(0,0,0,.55); transform: translateX(100%); transition: transform .34s cubic-bezier(.2,.85,.25,1); will-change: transform; }
.sc-blatt.offen { transform: translateX(0); } .sc-blatt.ziehen { transition: none; }
.sc-blatt-kopf { flex: none; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 700; color: #ecfdf5; }
.sc-blatt-kopf > span:first-of-type { flex: 1; text-align: center; } .sc-blatt-kopf > span:last-child { width: 44px; }
.sc-blatt-kopf .icon-btn { background: rgba(255,255,255,.1); color: inherit; }
.sc-blatt-inhalt { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding-bottom: calc(28px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; max-width: 560px; width: 100%; margin: 0 auto; }
.sc-blatt *, .sc-blatt *::before, .sc-blatt *::after { box-sizing: border-box; }
.sk-geste-pfeil { position: fixed; left: -48px; z-index: 9999; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; font: 800 1.6rem/1 system-ui; color: #fff; background: rgba(30,41,59,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.2); opacity: 0; transform: translateX(var(--x, 0)) scale(var(--s, .6)); pointer-events: none; transition: opacity .15s, background .15s; }
.sk-geste-pfeil.an { opacity: 1; } .sk-geste-pfeil.bereit { background: rgba(16,185,129,.9); }
/* Heute */
.sc-tagkopf { display: flex; align-items: center; justify-content: space-between; color: #ecfdf5; }
.sc-tagkopf b { font-size: 1.25rem; } .sc-tagkopf button { appearance: none; border: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #ecfdf5; font: 700 1.4rem/1 system-ui; cursor: pointer; } .sc-tagkopf button:disabled { opacity: .25; }
.sc-kal-oben { display: grid; grid-template-columns: 1fr 132px 1fr; gap: 8px; align-items: center; }
.sc-kal-wert { display: grid; justify-items: center; } .sc-kal-wert b { font-size: 1.3rem; } .sc-kal-wert small { color: rgba(236,253,245,.6); font-size: .78rem; }
.sc-ring { width: 132px; height: 132px; } .sc-ring circle { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 10; }
.sc-ring .voll { stroke: #34d399; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dasharray .6s cubic-bezier(.2,.85,.25,1); filter: drop-shadow(0 0 6px rgba(52,211,153,.6)); } .sc-ring.drueber .voll { stroke: #fb923c; filter: drop-shadow(0 0 6px rgba(251,146,60,.6)); }
.sc-ring text { fill: #ecfdf5; font: 800 26px system-ui; text-anchor: middle; } .sc-ring text.kl { font: 600 11px system-ui; fill: rgba(236,253,245,.6); }
.sc-rest { margin: 4px 0 12px; text-align: center; font-size: .85rem; color: rgba(236,253,245,.65); }
.sc-makros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sc-makro { display: grid; gap: 5px; font-size: .78rem; color: rgba(236,253,245,.75); }
.sc-makro i { height: 7px; border-radius: 4px; background: rgba(255,255,255,.10); position: relative; overflow: hidden; }
.sc-makro i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--c); transition: width .6s cubic-bezier(.2,.85,.25,1); }
.sc-makro b { color: #ecfdf5; font-size: .95rem; } .sc-makro b small { color: rgba(236,253,245,.55); font-weight: 600; }
.sc-makro.ew { --c: #60a5fa; } .sc-makro.kh { --c: #fbbf24; } .sc-makro.ft { --c: #f472b6; } .sc-makro.drueber { --c: #fb923c; } .sc-makro.geschafft b::after { content: ' ✓'; color: #4ade80; }
.sc-mahlzeit { padding: 12px 14px; }
.sc-mz-kopf { display: flex; align-items: center; gap: 12px; } .sc-mz-kopf > span:nth-child(2) { flex: 1; min-width: 0; display: grid; } .sc-mz-kopf small { color: rgba(236,253,245,.55); font-size: .78rem; } .sc-mz-kopf em { font-style: normal; font-weight: 700; color: #a7f3d0; white-space: nowrap; }
.sc-mz-ic { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: rgba(255,255,255,.07); }
.sc-mz-plus, .sc-plus-rund { appearance: none; border: 0; flex: none; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #6ee7b7, #22d3ee); color: #022c22; font: 800 1.25rem/1 system-ui; cursor: pointer; box-shadow: 0 4px 14px rgba(52,211,153,.35); }
.sc-plus-rund.ok { background: #4ade80; }
.sc-mahlzeit .sc-eintrag:first-of-type { margin-top: 8px; }
.sc-eintrag { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.07); } .sc-eintrag span { flex: 1; min-width: 0; display: grid; } .sc-eintrag b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sc-eintrag small { color: rgba(236,253,245,.6); font-size: .8rem; }
.sc-eintrag > button[data-weg] { appearance: none; border: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.07); color: #fda4af; font-size: .95rem; cursor: pointer; flex: none; }
.sc-glaeser { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.sc-glas { appearance: none; border: 0; background: none; padding: 0; height: 42px; cursor: pointer; display: grid; place-items: center; }
.sc-glas i { width: 24px; height: 34px; border-radius: 3px 3px 8px 8px; border: 2px solid rgba(147,197,253,.55); position: relative; overflow: hidden; }
.sc-glas i::after { content: ''; position: absolute; inset: auto 0 0 0; height: 0; background: linear-gradient(#93c5fd, #3b82f6); transition: height .35s cubic-bezier(.2,.85,.25,1); }
.sc-glas.voll i::after { height: 80%; }
/* Scannen / Produkte */
.sc-mehr { appearance: none; border: 0; background: none; color: #6ee7b7; font: 700 .95rem system-ui; padding: 10px 0 2px; cursor: pointer; }
.sc-suche { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #ecfdf5; font: 600 1rem system-ui; }
/* Ich */
.sc-woche { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 70px; margin: 4px 0 10px; align-items: end; }
.sc-woche div { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 3px; justify-items: center; font-size: .7rem; color: rgba(236,253,245,.55); }
.sc-woche i { align-self: end; width: 100%; height: max(3px, var(--h)); border-radius: 5px; background: rgba(52,211,153,.45); } .sc-woche .heute i { background: #34d399; } .sc-woche .drueber i { background: #fb923c; } .sc-woche .heute span { color: #fff; font-weight: 700; }
.sc-statistik { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; } .sc-statistik div { display: grid; padding: 8px 4px; border-radius: 14px; background: rgba(255,255,255,.05); } .sc-statistik b { font-size: 1.05rem; } .sc-statistik small { font-size: .72rem; color: rgba(236,253,245,.6); }
.sc-ziele { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sc-ziele label, .sc-profil label { display: grid; gap: 4px; font-size: .8rem; color: rgba(236,253,245,.7); }
.sc-ziele label { grid-template-columns: 1fr auto; align-items: center; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.05); } .sc-ziele label > :first-child { grid-column: 1 / -1; }
.sc-ziele input, .sc-ziele output { width: 100%; min-width: 0; padding: 4px 0; border: 0; background: none; color: #ecfdf5; font: 800 1.2rem system-ui; } .sc-ziele small { color: rgba(236,253,245,.5); }
.sc-rechner { margin-top: 12px; } .sc-rechner summary { cursor: pointer; font-weight: 700; color: #a7f3d0; padding: 6px 0; }
.sc-profil { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; } .sc-profil .breit { grid-column: 1 / -1; }
.sc-profil input, .sc-profil select, .sc-schnell input { width: 100%; min-width: 0; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: #ecfdf5; font: 600 1rem system-ui; }
.sc-profil select option { color: #000; }
/* Hinzufügen & Produkt */
.sc-schnell { display: grid; gap: 10px; } .sc-schnell h3 { margin-bottom: 0; }
.sc-schnell-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .sc-schnell-zahlen label { display: grid; gap: 4px; font-size: .72rem; color: rgba(236,253,245,.7); }
.sc-kal-100 { margin: 0 0 12px; color: rgba(236,253,245,.75); } .sc-kal-100 b { font-size: 1.3rem; color: #ecfdf5; }
.sc-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.25); margin-bottom: 12px; }
.sc-seg button { appearance: none; border: 0; border-radius: 12px; padding: 9px 2px; background: none; color: rgba(236,253,245,.65); font: 650 .78rem system-ui; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-seg button.an { background: rgba(52,211,153,.25); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.sc-menge { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .sc-menge input { width: 90px; min-width: 0; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: #ecfdf5; font: 700 1rem system-ui; } .sc-menge span, .sc-menge label { color: rgba(236,253,245,.7); }
.sc-mini-btn { appearance: none; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 7px 11px; background: rgba(255,255,255,.06); color: #d1fae5; font: 650 .82rem system-ui; cursor: pointer; }
.sc-portion { margin: 0 0 10px; color: rgba(236,253,245,.75); font-size: .88rem; line-height: 1.4; } .sc-portion b { color: #6ee7b7; font-size: 1.05rem; }
.sc-plus { width: 100%; background: rgba(52,211,153,.18); border-color: #34d399; }
@media (prefers-reduced-motion: reduce) { .sc-ring .voll, .sc-makro i::after, .sc-glas i::after, .sc-blatt, .sc-toast { transition: none; } }
/* Feinschliff */
.sc-buehne > * { width: 100%; }
.sc-ring.leer .voll { display: none; }
.sc-ziele label > span { grid-column: 1 / -1; }
.sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc-seg button { display: grid; justify-items: center; gap: 2px; padding: 7px 2px; } .sc-seg button b { font-size: 1.05rem; line-height: 1; }
.sc-toast { bottom: auto; top: calc(env(safe-area-inset-top) + 62px); transform: translate(-50%, -16px); }
.sc-toast.an { transform: translate(-50%, 0); }
/* Hub: zurück an dieselbe Stelle */
.hub-zurueck { animation: hubZurueck 1.6s ease-out 1; }
@keyframes hubZurueck { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.0); } 25% { box-shadow: 0 0 0 4px rgba(255,255,255,.55), 0 0 28px rgba(255,255,255,.25); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.hub-nach-oben { position: fixed; left: 50%; margin-left: -23px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 1.25rem !important; border: 1px solid rgba(255,255,255,.22); background: rgba(15,23,42,.62); color: #fff; font: 700 .9rem system-ui; backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.2); cursor: pointer; }
.hub-nach-oben[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .hub-zurueck { animation: none; outline: 3px solid rgba(255,255,255,.5); } }

/* 🐉 Slowenisch: Tabs, Wortschatz, Grammatik, Gespräche */
.slo-buehne.mit-tabs { padding-bottom: calc(env(safe-area-inset-bottom) + 92px); }
.slp-tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; width: min(calc(100% - 24px), 520px); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 24px; background: rgba(10, 24, 32, .72); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 34px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12); }
.slp-tabs[hidden] { display: none; }
.slp-tabs button { appearance: none; border: 0; background: none; color: rgba(232,245,238,.6); display: grid; justify-items: center; gap: 2px; padding: 7px 2px; border-radius: 18px; font: 650 .72rem "Outfit", system-ui, sans-serif; cursor: pointer; transition: background .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.slp-tabs button b { font-size: 1.25rem; line-height: 1; }
.slp-tabs button.an { background: linear-gradient(160deg, rgba(74,222,128,.28), rgba(56,189,248,.14)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.slp-rein-links { animation: slpReinL .32s cubic-bezier(.2,.85,.25,1); } .slp-rein-rechts { animation: slpReinR .32s cubic-bezier(.2,.85,.25,1); }
@keyframes slpReinL { from { opacity: .3; transform: translateX(40px); } } @keyframes slpReinR { from { opacity: .3; transform: translateX(-40px); } }
.slp-karte { padding: 16px; border-radius: 22px; background: rgba(9, 22, 30, .84); border: 1px solid rgba(255,255,255,.10); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.slp-zahlen div, .slp-thema { background: rgba(9, 22, 30, .84) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.slp-karte h3 { margin: 0 0 8px; font-size: 1.05rem; color: #86efac; }
.slp-klein { margin: 6px 0 0; font-size: .84rem; color: rgba(232,245,238,.62); line-height: 1.45; }
.slp-quelle { padding: 0 6px; }
.slp-held { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.slp-ring { width: 96px; height: 96px; } .slp-ring b { font-size: 1.5rem; } .slp-ring small { font-size: .62rem; }
.slp-held-text { display: grid; gap: 3px; } .slp-held-text b { font-size: 1.3rem; } .slp-held-text span { color: rgba(232,245,238,.8); } .slp-held-text small { color: rgba(232,245,238,.55); }
.slp-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.slp-zahlen div { display: grid; padding: 10px 4px; border-radius: 16px; background: rgba(255,255,255,.05); } .slp-zahlen b { font-size: 1.2rem; } .slp-zahlen small { font-size: .74rem; color: rgba(232,245,238,.6); }
.slp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.slp-chip { appearance: none; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: inherit; border-radius: 999px; padding: 8px 14px; font: 700 .95rem inherit; font-family: inherit; cursor: pointer; }
.slp-chip.an { background: rgba(74,222,128,.25); border-color: #4ade80; color: #fff; }
.slp-suche { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.2); color: inherit; font: 600 1rem inherit; font-family: inherit; margin-bottom: 8px; }
.slp-liste { display: grid; }
.slp-wort { appearance: none; border: 0; border-top: 1px solid rgba(255,255,255,.07); background: none; color: inherit; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 2px; text-align: left; font: inherit; cursor: pointer; }
.slp-wort b { color: #fff; } .slp-wort span { color: rgba(232,245,238,.65); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slp-stufe { width: 34px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; } .slp-stufe::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--s) * 100%); background: #4ade80; }
.slp-laden { display: grid; place-items: center; gap: 10px; padding: 60px 0; color: #86efac; } .slp-laden i { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(255,255,255,.12); border-top-color: #4ade80; animation: scDreh .9s linear infinite; }
.slp-tabelle { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .9rem; }
.slp-tabelle th, .slp-tabelle td { padding: 6px 6px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; } .slp-tabelle th { color: rgba(232,245,238,.6); font-weight: 600; } .slp-tabelle td { color: #fff; font-weight: 650; }
.slp-wk-kopf { display: flex; align-items: center; gap: 10px; } .slp-wk-kopf b { font-size: 1.6rem; } .slp-wk-de { font-size: 1.1rem; margin: 4px 0; }
.slp-wk h4 { margin: 14px 0 0; color: #86efac; font-size: .95rem; }
.slp-themen { display: grid; gap: 10px; }
.slp-thema { appearance: none; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(255,255,255,.05); color: inherit; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; text-align: left; font: inherit; cursor: pointer; }
.slp-thema:active { transform: scale(.98); }
.slp-th-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(255,255,255,.07); }
.slp-thema span:nth-child(2) { display: grid; } .slp-thema small { color: rgba(232,245,238,.6); }
.slp-meister { width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(#4ade80 var(--p), rgba(255,255,255,.1) 0); display: grid; place-items: center; }
.slp-meister em { width: 36px; height: 36px; border-radius: 50%; background: #0b1a24; display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 800; }
.slp-frage i { color: rgba(232,245,238,.6); font-weight: 500; font-size: .9em; }
.slp-erkl p { line-height: 1.5; } .slp-erkl .slp-tabelle td { font-weight: 600; }
.slp-chat { display: grid; gap: 8px; max-height: 42vh; overflow-y: auto; padding: 4px 2px; }
.slp-blase { max-width: 86%; padding: 10px 14px; border-radius: 18px; display: grid; gap: 3px; }
.slp-blase small { color: rgba(232,245,238,.6); font-size: .82rem; }
.slp-blase.npc { justify-self: start; background: rgba(255,255,255,.08); border-bottom-left-radius: 6px; }
.slp-blase.du { justify-self: end; background: rgba(74,222,128,.2); border-bottom-right-radius: 6px; }
.slp-blase.neu { border: 1px solid rgba(134,239,172,.45); }
.slo-titel.klein { font-size: .9rem; opacity: .8; }
@media (prefers-reduced-motion: reduce) { .slp-rein-links, .slp-rein-rechts { animation: none; } }
/* 🃏 Karteikarten (Slowenisch) */
.slp-quizknopf { width: 100%; background: rgba(9, 22, 30, .84) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12) !important; }
.slp-zahlen .neu b { color: #60a5fa; } .slp-zahlen .wdh b { color: #4ade80; }
.slp-label { margin: 12px 0 6px; font-size: .82rem; font-weight: 700; color: rgba(232,245,238,.7); }
.slp-niveaus { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slp-niveaus div { display: grid; gap: 4px; text-align: center; } .slp-niveaus b { font-size: 1rem; } .slp-niveaus small { font-size: .72rem; color: rgba(232,245,238,.6); }
.slp-niveaus i { height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; } .slp-niveaus i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: linear-gradient(90deg, #4ade80, #38bdf8); }
.slp-prognose { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 92px; align-items: end; }
.slp-prognose div { height: 100%; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 2px; font-size: .7rem; color: rgba(232,245,238,.6); }
.slp-prognose i { align-self: end; width: 100%; height: max(3px, var(--h)); border-radius: 6px; background: linear-gradient(#4ade80, #16a34a); } .slp-prognose b { color: #fff; font-size: .8rem; }
.slp-eigen { display: grid; gap: 8px; } .slp-eigen input { padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.2); color: inherit; font: 600 1rem inherit; font-family: inherit; }
.slp-niv { font-style: normal; font-size: .7rem; font-weight: 800; color: #93c5fd; }
.slp-wort { grid-template-columns: auto 1fr auto auto; }
.slp-beispiel { margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); font-style: italic; line-height: 1.45; display: grid; gap: 4px; } .slp-beispiel small { font-style: normal; font-size: .72rem; color: rgba(232,245,238,.5); }
.slk-teil { min-height: calc(100dvh - 120px); grid-template-rows: auto 1fr auto; }
.slk-kopf { display: flex; align-items: center; gap: 12px; }
.slk-zahlen { display: flex; gap: 12px; font-weight: 800; font-size: 1.05rem; } .slk-zahlen .neu { color: #60a5fa; } .slk-zahlen .lern { color: #f87171; } .slk-zahlen .wdh { color: #4ade80; }
.slk-niv { margin-left: auto; font-size: .8rem; font-weight: 700; color: rgba(232,245,238,.6); }
.slk-buehne { perspective: 1200px; display: grid; align-items: center; min-height: 340px; }
.slk-karte { position: relative; min-height: 320px; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.85,.25,1); cursor: pointer; outline: none; transform: translateX(var(--dx, 0px)) rotateY(0deg); }
.slk-karte.um { transform: translateX(var(--dx, 0px)) rotateY(180deg); }
.slk-karte.zieht { transition: none; }
.slk-karte.links .hinten { box-shadow: 0 0 0 3px #f87171, 0 20px 50px rgba(0,0,0,.45); } .slk-karte.rechts .hinten { box-shadow: 0 0 0 3px #4ade80, 0 20px 50px rgba(0,0,0,.45); }
.slk-seite { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 28px; padding: 26px 22px; display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)), #0f2230; border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 20px 50px rgba(0,0,0,.45); }
.slk-seite.hinten { transform: rotateY(180deg); align-content: start; overflow-y: auto; }
.slk-wort { font-size: 2.1rem; line-height: 1.15; color: #fff; overflow-wrap: anywhere; } .slk-wort.de { font-size: 1.8rem; }
.slk-de { margin: 0; font-size: 1.35rem; font-weight: 700; color: #86efac; }
.slk-formen { margin: 0; font-size: .92rem; color: rgba(232,245,238,.7); }
.slk-tipp { color: rgba(232,245,238,.45); font-size: .8rem; margin-top: 18px; }
.slk-seite .slp-beispiel { text-align: left; width: 100%; box-sizing: border-box; }
.slk-unten { display: grid; gap: 8px; }
.slk-noten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slk-noten[hidden] { display: none; }
.slk-note { appearance: none; border: 0; border-radius: 16px; padding: 10px 4px 12px; display: grid; gap: 2px; justify-items: center; color: #fff; font: 800 .95rem "Outfit", system-ui, sans-serif; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.slk-note small { font-size: .7rem; font-weight: 600; opacity: .85; }
.slk-note:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.slk-note.n1 { background: #dc2626; } .slk-note.n2 { background: #d97706; } .slk-note.n3 { background: #16a34a; } .slk-note.n4 { background: #2563eb; }
.slk-hilfe { margin: 0; text-align: center; font-size: .75rem; color: rgba(232,245,238,.45); }
@media (prefers-reduced-motion: reduce) { .slk-karte { transition: none; } }
/* Augenmaß: faire Linienenden, Griffe neben der Linie, Schätzen */
.ag-flaeche line { stroke-linecap: butt; }
.ag-du-linie { stroke-width: 4; }
.ag-griff { fill: rgba(255,181,71,.28); stroke: #ffb547; stroke-width: 3; }
.ag-fuehrung { stroke: #ffb547; stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .8; }
.ag-du-strich { stroke: #ffb547; stroke-width: 3.5; }
.ag-ok-strich { stroke: #5eead4; stroke-width: 3; }
.ag-ref { stroke: #93c5fd !important; stroke-width: 5 !important; }
.ag-ref-form { fill: rgba(147,197,253,.25); stroke: #93c5fd; stroke-width: 3; }
.ag-stueck { fill: rgba(255,181,71,.55); stroke: #ffb547; stroke-width: 2; }
.ag-mensch circle { fill: none; stroke: #93c5fd; stroke-width: 3; } .ag-mensch line { stroke: #93c5fd !important; stroke-width: 3 !important; stroke-linecap: round !important; }
.ag-boden { stroke: rgba(232,241,255,.35) !important; stroke-width: 2 !important; }
.ag-text { fill: #e8f1ff; font: 700 17px system-ui, sans-serif; } .ag-text.ref { fill: #93c5fd; } .ag-text.ok { fill: #5eead4; font-size: 19px; } .ag-text.mitte { text-anchor: middle; } .ag-text.gross { font-size: 30px; }
.ag-modi { grid-template-columns: 1fr 1fr; margin-bottom: 8px; }
.ag-schaetzen { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.06); }
.ag-schaetzen[hidden] { display: none; }
.ag-wert { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; text-align: center; }
.ag-wert output { font-size: 1.7rem; font-weight: 800; color: #ffb547; }
.ag-pm { appearance: none; border: 0; height: 48px; border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; font-size: 1.6rem; font-weight: 700; cursor: pointer; }
#agRegler { width: 100%; accent-color: #ffb547; height: 34px; }
/* 🔤 Slowenisch-Übersetzer */
.slp-tabs { grid-template-columns: repeat(5, 1fr) !important; }
.slp-tabs button { font-size: .68rem; }
.slp-eingabe { width: 100%; box-sizing: border-box; margin-top: 10px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: inherit; font: 600 1.05rem "Outfit", system-ui, sans-serif; resize: vertical; }
.slp-zeichen { margin-top: 6px; }
.slp-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.slp-roh { font-size: 1.05rem; line-height: 1.5; margin: 0; } .slp-roh i { color: #fca5a5; }
.slp-woerter-u { display: grid; gap: 8px; }
.slp-u-wort { appearance: none; text-align: left; display: grid; gap: 3px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(9,22,30,.84); color: inherit; font: inherit; cursor: pointer; }
.slp-u-wort > b { font-size: 1.1rem; color: #fff; } .slp-u-wort span { color: rgba(232,245,238,.85); } .slp-u-wort em { color: #86efac; font-style: normal; font-weight: 700; }
.slp-u-wort small { display: block; color: rgba(232,245,238,.55); font-size: .78rem; }
.slp-u-wort.unbekannt { border-style: dashed; } .slp-u-wort.unbekannt span { color: #fca5a5; }
.slp-u-gruppe { display: grid; gap: 6px; padding: 10px; border-radius: 18px; background: rgba(9,22,30,.6); } .slp-u-gruppe > b { color: #86efac; }
.slp-richtung { display: grid; grid-template-columns: 1fr 1fr; } .slp-richtung .slp-chip { font-size: 1.05rem; }

/* 😡 Ragebait-Fabrik */
.hub-rage { background: linear-gradient(#1a0606, #1a0606) padding-box, linear-gradient(90deg, #ef4444, #f97316, #facc15, #ef4444) border-box; background-size: 100% 100%, 300% 100%; }
.hub-rage .hg-titel { background: linear-gradient(90deg, #fca5a5, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-rage { --ring: conic-gradient(#ef4444, #f97316, #facc15, #ef4444); } .hg-av-rage > .hg-in { background: #170404; display: grid; place-items: center; }
.rb-mini { font-size: 1.9rem; display: inline-block; animation: rbBrodeln 1.4s ease-in-out infinite; } @keyframes rbBrodeln { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.08); } }
.rb-buehne { background: radial-gradient(110% 60% at 50% 0%, #4c0d0d 0%, #170606 55%, #0b0303 100%); }
.rb-inhalt { padding: 4px 16px calc(28px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; color: #fde8e8; }
.rb-inhalt *, .rb-inhalt *::before, .rb-inhalt *::after { box-sizing: border-box; }
.rb-held { text-align: center; padding: 10px 6px 0; } .rb-held h2 { margin: 6px 0; font-size: 1.6rem; } .rb-held p { margin: 0; color: rgba(253,232,232,.75); line-height: 1.45; }
.rb-logo { font-size: 3rem; }
.rb-modi { display: grid; gap: 10px; }
.rb-modus { appearance: none; text-align: left; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 22px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: inherit; font: inherit; cursor: pointer; }
.rb-modus span { grid-row: 1 / 3; font-size: 2rem; } .rb-modus b { font-size: 1.1rem; } .rb-modus small { color: rgba(253,232,232,.65); }
.rb-karte { padding: 14px 16px; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.rb-karte h3 { margin: 0 0 10px; font-size: 1rem; color: #fca5a5; } .rb-karte h3 small { color: rgba(253,232,232,.55); font-weight: 600; }
.rb-h3 { margin-top: 14px !important; } .rb-h3 b { color: #fde68a; }
.rb-tricks { display: grid; gap: 8px; } .rb-trick { display: grid; gap: 2px; } .rb-trick small { color: rgba(253,232,232,.6); font-size: .82rem; line-height: 1.35; } .rb-trick.gut b { color: #86efac; }
.rb-hinweis, .rb-klein { font-size: .82rem; color: rgba(253,232,232,.6); line-height: 1.45; margin: 6px 0 0; } .rb-hinweis { text-align: center; padding: 0 8px; }
.rb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-lchip, .rb-chip { appearance: none; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: inherit; border-radius: 999px; padding: 7px 12px; font: 650 .88rem inherit; font-family: inherit; cursor: pointer; }
.rb-lchip.an { background: rgba(239,68,68,.3); border-color: #ef4444; color: #fff; }
.rb-chip { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.45); } .rb-chip.gut { background: rgba(74,222,128,.16); border-color: rgba(74,222,128,.5); }
#rbGrad { width: 100%; accent-color: #ef4444; height: 32px; }
.rb-gross { width: 100%; font-size: 1.1rem; padding: 15px; background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; border: 0; border-radius: 18px; font-weight: 800; box-shadow: 0 5px 0 #7f1d1d; }
.rb-gross:disabled { opacity: .45; }
.rb-knoepfe { display: grid; gap: 8px; }
.rb-post { padding: 14px 16px; border-radius: 20px; background: #f8fafc; color: #0f172a; box-shadow: 0 16px 40px rgba(0,0,0,.45); border-top: 5px solid var(--f); animation: aufploppen .4s var(--ease-spring); }
.rb-post-kopf { display: flex; align-items: center; gap: 10px; } .rb-post-kopf > span:nth-child(2) { flex: 1; display: grid; } .rb-post-kopf small { color: #64748b; font-size: .76rem; }
.rb-ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, var(--f) 25%, #fff); }
.rb-satire { font-style: normal; font-size: .62rem; font-weight: 900; letter-spacing: .08em; color: #fff; background: #0f172a; padding: 3px 7px; border-radius: 6px; transform: rotate(-4deg); }
.rb-text { margin: 10px 0 6px; font-size: 1.02rem; line-height: 1.45; overflow-wrap: anywhere; } .rb-hash { margin: 0; color: #2563eb; font-size: .9rem; overflow-wrap: anywhere; }
.rb-zahlen { display: flex; justify-content: space-between; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2e8f0; font-size: .88rem; color: #475569; } .rb-zahlen b { color: #0f172a; }
.rb-kombo { margin: 10px 0 0; color: #fde68a; font-weight: 700; font-size: .9rem; }
.rb-runde { text-align: center; font-size: .95rem; color: rgba(253,232,232,.8); }
.rb-slot { display: grid; gap: 8px; } .rb-slot h3 { margin-bottom: 2px; }
.rb-option { appearance: none; text-align: left; padding: 11px 13px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.14); background: rgba(0,0,0,.2); color: inherit; font: 600 .95rem inherit; font-family: inherit; line-height: 1.35; cursor: pointer; }
.rb-option.an { border-color: #f97316; background: rgba(249,115,22,.2); color: #fff; }
.rb-vorschau { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; font-size: .95rem; } .rb-vorschau b { color: #fde68a; }
.rb-eingabe { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.25); color: inherit; font: 600 1rem inherit; font-family: inherit; margin: 8px 0; resize: vertical; }
.rb-score { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; } .rb-score small { display: block; color: rgba(253,232,232,.6); }
.rb-ring { width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(#ef4444 var(--p), rgba(255,255,255,.1) 0); display: grid; place-items: center; position: relative; }
.rb-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #1a0606; } .rb-ring b, .rb-ring small { position: relative; } .rb-ring b { font-size: 1.5rem; margin-top: 8px; } .rb-ring small { font-size: .62rem; margin-top: -18px; }
.rb-fund { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.07); } .rb-fund:first-of-type { border-top: 0; } .rb-fund small { color: rgba(253,232,232,.65); line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { .rb-mini, .rb-post { animation: none; } }

/* 🧵 Nähstube – warm, Holz, Papier, Garn */
.hub-naehen { background: linear-gradient(#2a1820, #2a1820) padding-box, linear-gradient(90deg, #f472b6, #fbbf24, #a78bfa, #f472b6) border-box; background-size: 100% 100%, 300% 100%; }
.hub-naehen .hg-titel { background: linear-gradient(90deg, #f9a8d4, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-naehen { --ring: conic-gradient(#f472b6, #fbbf24, #a78bfa, #f472b6); } .hg-av-naehen > .hg-in { background: #2a1820; display: grid; place-items: center; }
.ns-hubmini { font-size: 1.6rem; }
.ns-buehne { position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #3b2a22; padding: calc(env(safe-area-inset-top) + 12px) 14px calc(env(safe-area-inset-bottom) + 24px); background: radial-gradient(120% 70% at 50% 0%, #fff6ea, #f3e1c9 60%, #e8cfae); font-family: "Outfit", system-ui, sans-serif; }
.ns-buehne > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.ns-buehne .farb-kopf .icon-btn { background: rgba(120,70,40,.12); color: inherit; }
.ns-inhalt { display: grid; gap: 12px; }
.ns-h2 { margin: 6px 0 0; font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; color: #6b2f3c; }
.ns-h2 small { font-family: "Outfit", system-ui, sans-serif; font-size: .8rem; font-weight: 500; color: #8a6a58; margin-left: 6px; }
.ns-klein { margin: 0; font-size: .86rem; line-height: 1.45; color: #6d5446; }
.ns-status { margin: 0; text-align: center; font-size: .9rem; color: #5b4337; }
.ns-leiste { display: flex; justify-content: space-around; gap: 8px; padding: 8px 10px; border-radius: 14px; background: #fffaf2; box-shadow: 0 1px 0 #e3caa8, inset 0 0 0 1px #ecd7bb; font-size: .92rem; }
.ns-buehne .btn { border-radius: 14px; }
.ns-gross { width: 100%; background: linear-gradient(180deg, #d9537a, #b23a5f) !important; color: #fff !important; font-weight: 700; box-shadow: 0 3px 0 #85243f; }
.ns-buehne .btn.secondary { background: #fffaf2; color: #6b2f3c; box-shadow: inset 0 0 0 1px #d8b99a; }
.ns-buehne .btn:disabled { opacity: .45; }
.ns-zeile { display: flex; gap: 8px; } .ns-zeile > .btn { flex: 1; }
.ns-raum { display: grid; gap: 10px; }
.ns-fenster { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 10px 26px; border-radius: 16px; background: linear-gradient(180deg, #cfe6f3, #eaf4f9); box-shadow: inset 0 0 0 6px #8b5a3c, inset 0 0 0 8px #6e4129; }
.ns-platz { display: grid; place-items: center; min-height: 110px; text-align: center; }
.ns-platz span { color: #8aa3b3; font-size: .8rem; }
.ns-platz small { font-weight: 700; color: #6b2f3c; background: #fff; border-radius: 8px; padding: 1px 6px; }
.ns-fenster-schild { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-family: "Playfair Display", Georgia, serif; font-size: .8rem; color: #8b5a3c; letter-spacing: .06em; }
.ns-theke { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, #b77b52, #8f5a39); color: #fff7ec; }
.ns-katze { position: relative; flex: 0 0 auto; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.15); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.ns-katze-koerper { font-size: 2.4rem; transition: transform .3s; }
.ns-katze.schnurrt .ns-katze-koerper { transform: scale(1.08) rotate(-4deg); }
.ns-herzen { position: absolute; inset: 0; pointer-events: none; }
.ns-herzen i { position: absolute; bottom: 60%; font-style: normal; animation: nsHerz 1.2s ease-out forwards; }
@keyframes nsHerz { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-40px); } }
.ns-kunde { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ns-kunde b { display: block; } .ns-kunde small { display: block; opacity: .85; font-size: .8rem; }
.ns-kunde.leer small { opacity: .7; }
.ns-kunde-ava { font-size: 2.2rem; }
.ns-kunde.gross { color: #3b2a22; justify-content: center; }
.ns-auftrag { display: grid; gap: 10px; padding: 14px; border-radius: 4px 16px 16px 16px; background: #fffdf8; box-shadow: 0 2px 8px rgba(110,65,41,.15); }
.ns-auftrag p { margin: 0; line-height: 1.5; }
.ns-knoepfe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ns-knopf { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border: 0; border-radius: 16px; background: #fffaf2; color: #3b2a22; font: inherit; font-size: 1.5rem; box-shadow: inset 0 0 0 1px #ecd7bb, 0 2px 0 #dcc0a0; }
.ns-knopf b { font-size: .82rem; } .ns-knopf small { font-size: .7rem; color: #8a6a58; }
.ns-stoffe, .ns-regal { display: grid; gap: 8px; }
.ns-stoff { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: #fffaf2; box-shadow: inset 0 0 0 1px #ecd7bb; }
.ns-stoff b { font-size: .92rem; } .ns-stoff small { display: block; font-size: .76rem; color: #8a6a58; }
.ns-probe { width: 52px; height: 52px; display: block; }
.ns-werte { display: flex; gap: 8px; margin-top: 4px; }
.ns-wert { flex: 1; } .ns-wert small { font-size: .66rem; }
.ns-wert i { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #d9537a var(--v), #ecd7bb var(--v)); }
.ns-kauf { display: grid; gap: 4px; justify-items: end; } .ns-kauf b { font-size: .8rem; white-space: nowrap; }
.ns-mini { border: 0; border-radius: 10px; padding: 5px 9px; background: #6b2f3c; color: #fff; font: inherit; font-size: .78rem; }
.ns-mini:disabled { opacity: .35; }
.ns-regal { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.ns-ballen { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: .74rem; }
.ns-wunsch { margin: 0; padding: 8px 10px; border-radius: 12px; background: #fde7ee; color: #6b2f3c; font-size: .86rem; }
.ns-skizze { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 8px; background: #fffdf8 repeating-linear-gradient(0deg, transparent 0 23px, #e9eef5 23px 24px); box-shadow: 0 2px 10px rgba(110,65,41,.18); }
.ns-vorschau { position: sticky; top: 8px; }
.ns-vorschau.gross { position: static; max-width: 300px; margin: 0 auto; width: 100%; }
.ns-optionen { display: grid; gap: 8px; }
.ns-wahl b { font-size: .78rem; color: #8a6a58; text-transform: uppercase; letter-spacing: .05em; }
.ns-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.ns-chip { border: 0; border-radius: 999px; padding: 5px 10px; background: #f3e6d6; color: #3b2a22; font: inherit; font-size: .8rem; display: inline-flex; align-items: center; gap: 5px; }
.ns-chip.an { background: #6b2f3c; color: #fff; }
.ns-chip.stoff i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.ns-kleid { width: 100%; height: auto; display: block; }
.ns-kleid.klein { width: 100%; max-width: 110px; }
.ns-kleid text[data-di] { cursor: pointer; }
.ns-stoffbahn { padding: 8px; border-radius: 10px; background: #d9c3a5; }
.ns-stoffbahn svg { width: 100%; height: auto; display: block; touch-action: none; }
.ns-bahn { stroke: rgba(0,0,0,.25); stroke-width: .4; }
.ns-teil polygon { fill: rgba(255,255,255,.55); stroke: #6b2f3c; stroke-width: .6; stroke-dasharray: 2 1; cursor: grab; }
.ns-teil line, .ns-fadenlauf { stroke: #6b2f3c; stroke-width: .7; }
.ns-teil text { font-size: 3.2px; fill: #3b2a22; pointer-events: none; }
.ns-teil.sel polygon { fill: rgba(255,240,200,.85); stroke-width: 1; }
.ns-teil.falsch polygon { fill: rgba(239,68,68,.35); stroke: #b91c1c; }
.ns-schneid svg { width: 100%; max-width: 360px; margin: 0 auto; display: block; border-radius: 14px; touch-action: none; box-shadow: 0 2px 10px rgba(110,65,41,.2); }
.ns-schnittlinie { fill: none; stroke: #222; stroke-width: 2; stroke-dasharray: 6 5; }
.ns-spur { fill: none; stroke: #d9537a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.ns-fortschritt { height: 8px; border-radius: 4px; background: #ecd7bb; overflow: hidden; }
.ns-fortschritt i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d9537a, #f59e0b); transition: width .2s; }
.ns-maschine canvas { width: 100%; max-width: 340px; margin: 0 auto; display: block; border-radius: 16px; touch-action: none; }
.ns-urteil { display: grid; gap: 10px; justify-items: center; padding: 14px; border-radius: 16px; background: #fffdf8; box-shadow: 0 2px 10px rgba(110,65,41,.15); }
.ns-urteil > .ns-kleid { max-width: 220px; }
.ns-sterne { color: #f59e0b; font-size: 1.3rem; letter-spacing: 2px; } .ns-sterne i { color: #e3caa8; font-style: normal; }
.ns-stimmen { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; width: 100%; font-size: .88rem; }
.ns-stimmen li { padding: 5px 10px; border-radius: 10px; }
.ns-stimmen li.gut { background: #e4f4e6; } .ns-stimmen li.mittel { background: #fdf3d8; } .ns-stimmen li.schlecht { background: #fbe1e1; }
.ns-stimmen li.gut::before { content: '✓ '; color: #15803d; } .ns-stimmen li.mittel::before { content: '~ '; color: #a16207; } .ns-stimmen li.schlecht::before { content: '✗ '; color: #b91c1c; }
.ns-lohn { margin: 0; font-weight: 700; color: #6b2f3c; text-align: center; }
.ns-look { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.ns-look-k { display: grid; justify-items: center; gap: 2px; padding: 8px; border-radius: 14px; background: #fffaf2; text-align: center; font-size: .8rem; }
.ns-look-k small { color: #8a6a58; font-size: .7rem; }
.ns-toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 14px; background: #3b2a22; color: #fff7ec; font-size: .92rem; box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: opacity .25s, transform .25s; max-width: 90vw; text-align: center; }
.ns-toast.an { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .ns-herzen i { animation-duration: .01s; } .ns-katze-koerper, .ns-toast, .ns-fortschritt i { transition: none; } }

/* 🧮 Rechenhilfe im Zufalls-Gefühl */
.zf-buehne .btn.zf-rechen-btn { width: 100%; margin-top: 10px; border: 1.5px dashed rgba(251,191,36,.45); }
.zr-box { margin-top: 10px; display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(251,191,36,.25); }
.zr-reiter { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.zr-reiter button, .zr-chips button, .zr-tasten button { border: 0; border-radius: 12px; padding: 9px 6px; font: inherit; font-size: .9rem; color: inherit; background: rgba(255,255,255,.08); }
.zr-reiter button.an { background: rgba(251,191,36,.25); box-shadow: inset 0 0 0 1.5px #fbbf24; font-weight: 700; }
.zr-chips { display: flex; flex-wrap: wrap; gap: 6px; } .zr-chips button { padding: 7px 10px; font-size: .84rem; border-radius: 999px; }
.zr-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; }
.zr-form input[type=number] { width: 52px; margin-left: 4px; padding: 6px; border-radius: 8px; border: 0; font: inherit; background: rgba(255,255,255,.9); color: #2a0a1e; }
.zr-check { display: flex; gap: 6px; align-items: center; font-size: .88rem; }
.zr-baum { width: 100%; height: auto; display: block; border-radius: 12px; background: rgba(0,0,0,.18); }
.zr-baum line { stroke: rgba(255,247,237,.45); stroke-width: 1.6; } .zr-baum line.tr { stroke: #4ade80; stroke-width: 3; }
.zr-k circle { fill: #fbbf24; } .zr-k circle.hit { fill: transparent; } .zr-k { cursor: pointer; }
.zr-k.sel circle:not(.hit) { fill: #fff; stroke: #fbbf24; stroke-width: 3; }
.zr-k.treffer circle:not(.hit) { fill: #4ade80; }
.zr-name { font-size: 11px; fill: #fff7ed; } .zr-k.treffer .zr-name, .zr-k.treffer .zr-ende { fill: #4ade80; font-weight: 700; }
.zr-p { font-size: 11px; fill: #fde68a; text-anchor: middle; font-weight: 700; cursor: pointer; paint-order: stroke; stroke: #2a0a1e; stroke-width: 3px; }
.zr-p.fehlt { fill: #fca5a5; }
.zr-ende { font-size: 11px; fill: rgba(255,247,237,.8); font-variant-numeric: tabular-nums; }
.zr-zeile { display: flex; gap: 6px; } .zr-zeile > .btn { flex: 1; padding: 10px 8px; font-size: .9rem; }
.zr-edit { display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(251,191,36,.1); font-size: .9rem; }
.zr-edit label { display: grid; gap: 3px; font-size: .78rem; opacity: .9; }
.zr-edit input, .zr-anzeige { padding: 9px 10px; border-radius: 10px; border: 0; font: inherit; font-size: 1rem; background: rgba(255,255,255,.92); color: #2a0a1e; }
.zr-leer, .zr-hinweis, .zr-meldung { margin: 0; font-size: .84rem; opacity: .85; } .zr-meldung { color: #fca5a5; opacity: 1; }
.zr-probleme { margin: 0; padding: 0; list-style: none; font-size: .8rem; color: #fde68a; display: grid; gap: 2px; }
.zr-summe { display: grid; gap: 6px; font-size: .84rem; }
.zr-summe > div:not(.zr-ergebnis) { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border-radius: 10px; background: rgba(74,222,128,.1); }
.zr-ergebnis { font-size: 1rem; text-align: center; } .zr-ergebnis b { color: #4ade80; } .zr-ergebnis.leise { opacity: .7; font-size: .86rem; }
.zf-buehne .btn.zr-uebernehmen { width: 100%; background: rgba(74,222,128,.22); box-shadow: inset 0 0 0 1.5px #4ade80; color: inherit; font-weight: 700; }
.zf-buehne .btn.zr-uebernehmen:disabled { opacity: .4; }
.zr-anzeige { width: 100%; box-sizing: border-box; font-size: 1.2rem; text-align: right; }
.zr-ausgabe { text-align: right; font-size: 1.1rem; min-height: 1.4em; } .zr-ausgabe b { color: #fde68a; }
.zr-tasten { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.zr-tasten button { font-size: 1.1rem; padding: 11px 0; } .zr-tasten button.breit { grid-column: span 4; font-size: .95rem; }

/* ===================== 🎮 Lernhalle (Slowenisch & English Pro) ===================== */
.eng-buehne { position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #eef2ff; font-family: "Outfit", system-ui, sans-serif; padding: calc(env(safe-area-inset-top) + 12px) 14px calc(env(safe-area-inset-bottom) + 28px);
  background: radial-gradient(80% 50% at 10% 0%, rgba(37,99,235,.35), transparent 60%), radial-gradient(70% 45% at 100% 20%, rgba(220,38,38,.22), transparent 60%), linear-gradient(#0b1020, #0a0f1d 60%, #070b16); }
.eng-buehne > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.eng-buehne .farb-kopf .icon-btn { background: rgba(255,255,255,.08); color: inherit; }
.hub-eng { background: linear-gradient(#0d1430, #0d1430) padding-box, linear-gradient(90deg, #2563eb, #f8fafc, #dc2626, #2563eb) border-box; background-size: 100% 100%, 300% 100%; }
.hub-eng .hg-titel { background: linear-gradient(90deg, #93c5fd, #fca5a5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-eng { --ring: conic-gradient(#2563eb, #f8fafc, #dc2626, #2563eb); } .hg-av-eng > .hg-in { background: #0d1430; display: grid; place-items: center; }
.en-mini { position: relative; font-size: 1.6rem; } .en-mini i { position: absolute; right: -10px; bottom: -6px; font: 800 .55rem/1 "Outfit", sans-serif; font-style: normal; background: #dc2626; color: #fff; padding: 2px 4px; border-radius: 6px; }

.lh { --glas: rgba(255,255,255,.06); --rand: rgba(255,255,255,.1); display: grid; gap: 14px; color: inherit; animation: lhRein .35s cubic-bezier(.2,.9,.3,1.2); }
@keyframes lhRein { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.lh .btn { border-radius: 16px; font-weight: 700; }
.lh .btn:not(.secondary) { background: linear-gradient(135deg, var(--lh1), var(--lh2)); color: #fff; box-shadow: 0 6px 18px -6px var(--lh1); }
.lh .btn.secondary { background: var(--glas); color: inherit; box-shadow: inset 0 0 0 1px var(--rand); }
.lh-laden { display: grid; place-items: center; gap: 10px; padding: 40px 0; opacity: .8; } .lh-laden i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--lh1); animation: lhDreh 0.9s linear infinite; }
@keyframes lhDreh { to { transform: rotate(360deg); } }
.lh-karte { padding: 18px; border-radius: 22px; background: var(--glas); box-shadow: inset 0 0 0 1px var(--rand); } .lh-mitte { text-align: center; display: grid; gap: 10px; justify-items: center; } .lh-gross-ic { font-size: 3rem; }

/* Hero */
.lh-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-radius: 26px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--lh1) 55%, #0b1020), color-mix(in srgb, var(--lh2) 45%, #0b1020)); box-shadow: 0 18px 40px -18px var(--lh1), inset 0 1px 0 rgba(255,255,255,.18); }
.lh-hero::after { content: ''; position: absolute; inset: -40% -10% auto auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(rgba(255,255,255,.22), transparent 70%); pointer-events: none; }
.lh-hero-l { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1; }
.lh-flagge { font-size: 2.4rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.lh-hero h2 { margin: 0; font-size: 1.15rem; line-height: 1.2; letter-spacing: .01em; } .lh-hero small { opacity: .9; font-size: .82rem; }
.lh-xpbar { margin-top: 6px; height: 7px; border-radius: 4px; background: rgba(0,0,0,.25); overflow: hidden; } .lh-xpbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #fde68a, #fff); box-shadow: 0 0 10px rgba(253,230,138,.7); transition: width .6s; }
.lh-hero-r { display: grid; justify-items: center; gap: 4px; position: relative; z-index: 1; }
.lh-serie { font-weight: 800; font-size: .9rem; }
.lh-ring { position: relative; width: 54px; height: 54px; display: inline-grid; place-items: center; flex: 0 0 auto; }
.lh-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); } .lh-ring circle { fill: none; stroke-width: 5; } .lh-ring .bg { stroke: rgba(255,255,255,.18); } .lh-ring .fg { stroke: #fde68a; stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.lh-ring b { position: relative; font-size: .95rem; font-variant-numeric: tabular-nums; } .lh-ring.voll .fg { stroke: #4ade80; } .lh-ring.knapp .fg { stroke: #f87171; } .lh-ring.knapp b { color: #fecaca; }
.lh-hud .lh-ring { width: 44px; height: 44px; } .lh-hud .lh-ring b { font-size: .85rem; }

/* Decks */
.lh-decks { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; scroll-snap-type: x proximity; } .lh-decks::-webkit-scrollbar { display: none; }
.lh-deck { position: relative; flex: 0 0 auto; scroll-snap-align: start; display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: center; padding: 9px 12px 12px; border: 0; border-radius: 16px; background: var(--glas); color: inherit; font: inherit; box-shadow: inset 0 0 0 1px var(--rand); overflow: hidden; transition: transform .15s; }
.lh-deck span { grid-row: span 2; font-size: 1.3rem; } .lh-deck b { font-size: .88rem; text-align: left; } .lh-deck small { font-size: .7rem; opacity: .7; text-align: left; }
.lh-deck i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--m); background: linear-gradient(90deg, var(--lh1), var(--lh2)); }
.lh-deck.an { background: linear-gradient(135deg, color-mix(in srgb, var(--lh1) 40%, transparent), color-mix(in srgb, var(--lh2) 30%, transparent)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.lh-deck:active, .lh-spiel:active, .lh-cta:active, .lh-rolle:active { transform: scale(.97); }

/* Karteikarten-CTA */
.lh-cta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-radius: 20px; color: inherit; font: inherit; text-align: left; background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); box-shadow: inset 0 0 0 1px var(--rand), 0 10px 26px -14px rgba(0,0,0,.6); transition: transform .15s; }
.lh-cta-ic { font-size: 1.9rem; } .lh-cta span:nth-child(2) { flex: 1; display: grid; } .lh-cta b { font-size: 1.05rem; } .lh-cta small { opacity: .75; font-size: .8rem; } .lh-cta-pfeil { font-size: 1.6rem; opacity: .6; }
.lh-h3 { margin: 6px 2px 0; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }

/* Spiele-Kacheln */
.lh-spiele { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lh-spiel { position: relative; display: grid; gap: 2px; justify-items: start; text-align: left; min-height: 118px; padding: 14px; border: 0; border-radius: 22px; color: #fff; font: inherit; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.25), transparent 55%), linear-gradient(145deg, var(--g1), var(--g2)); box-shadow: 0 14px 28px -16px var(--g1), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s; }
.lh-spiel:disabled { filter: grayscale(.85) brightness(.6); }
.lh-sp-ic { font-size: 1.9rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); } .lh-spiel b { font-size: 1rem; } .lh-spiel small { font-size: .74rem; opacity: .9; line-height: 1.3; }
.lh-spiel em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: .7rem; font-weight: 800; background: rgba(0,0,0,.25); padding: 3px 7px; border-radius: 999px; }

/* Rollenspiele */
.lh-rollen { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } .lh-rollen::-webkit-scrollbar { display: none; }
.lh-rolle { flex: 0 0 150px; display: grid; gap: 3px; justify-items: start; text-align: left; padding: 14px; border: 0; border-radius: 20px; color: inherit; font: inherit; background: var(--glas); box-shadow: inset 0 0 0 1px var(--rand); transition: transform .15s; }
.lh-rolle span { font-size: 1.7rem; } .lh-rolle b { font-size: .9rem; } .lh-rolle small { font-size: .72rem; opacity: .7; } .lh-rolle em { font-style: normal; color: #fde68a; letter-spacing: 2px; } .lh-rolle em i { font-style: normal; color: rgba(255,255,255,.2); }
.lh-spick { display: grid; gap: 6px; } .lh-spick details { border-radius: 14px; background: var(--glas); box-shadow: inset 0 0 0 1px var(--rand); } .lh-spick summary { padding: 11px 14px; cursor: pointer; font-weight: 700; } .lh-spick details > div { padding: 0 14px 12px; font-size: .9rem; line-height: 1.5; } .lh-spick p { margin: 6px 0; }
.lh-fuss { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lh-klein { border: 0; border-radius: 999px; padding: 7px 12px; background: var(--glas, rgba(255,255,255,.08)); color: inherit; font: inherit; font-size: .8rem; box-shadow: inset 0 0 0 1px var(--rand, rgba(255,255,255,.12)); }
.lh-klein:disabled { opacity: .6; }

/* Spiel-Kopf & HUD */
.lh-spielkopf { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 4px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lh-spielkopf > b { flex: 1; font-size: 1rem; }
.lh-x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--glas); color: inherit; font-size: 1.4rem; line-height: 1; }
.lh-hud { display: flex; align-items: center; gap: 8px; }
.lh-punkte { font-weight: 900; font-size: 1.25rem; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.lh-combo { font-weight: 800; color: #fdba74; animation: lhPuls .5s; } @keyframes lhPuls { 50% { transform: scale(1.25); } }
.lh-leben { font-size: .95rem; letter-spacing: 1px; } .lh-leben i { font-style: normal; opacity: .4; } .lh-zuege { font-size: .85rem; opacity: .85; }
.lh-buehne { position: relative; display: grid; gap: 14px; }
.lh-frage { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 22px 16px; border-radius: 24px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px var(--rand); }
.lh-frage small { opacity: .7; font-size: .8rem; letter-spacing: .05em; } .lh-frage b { font-size: 1.7rem; line-height: 1.2; } .lh-frage b.satz { font-size: 1.2rem; font-weight: 700; } .lh-frage i { opacity: .7; font-size: .9rem; }
.lh-loch { display: inline-block; min-width: 3em; border-bottom: 2px dashed currentColor; color: #fde68a; }
.lh-optionen { display: grid; gap: 9px; }
.lh-opt { padding: 15px 14px; border: 0; border-radius: 18px; background: var(--glas); color: inherit; font: inherit; font-size: 1.02rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--rand), 0 4px 0 rgba(0,0,0,.25); transition: transform .1s, background .2s; }
.lh-opt:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px var(--rand), 0 2px 0 rgba(0,0,0,.25); }
.lh-opt.richtig, .lh-tropfen.richtig { background: rgba(74,222,128,.25); box-shadow: inset 0 0 0 2px #4ade80; } .lh-opt.falsch, .lh-tropfen.falsch { background: rgba(248,113,113,.22); box-shadow: inset 0 0 0 2px #f87171; animation: lhWackel .35s; }
.lh-opt small { display: block; font-weight: 400; opacity: .75; font-size: .8rem; }
@keyframes lhWackel { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.lh-laut { border: 0; background: rgba(255,255,255,.12); color: inherit; border-radius: 50%; width: 34px; height: 34px; font-size: 1rem; flex: 0 0 auto; }
.lh-schwebe { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-weight: 900; font-size: 1.5rem; pointer-events: none; animation: lhSchweb .9s ease-out forwards; } .lh-schwebe.gut { color: #4ade80; } .lh-schwebe.schlecht { color: #f87171; }
@keyframes lhSchweb { to { opacity: 0; transform: translate(-50%, -50px); } }

/* Wort-Regen */
.lh-regen { position: relative; height: min(56vh, 440px); border-radius: 24px; overflow: hidden; background: linear-gradient(rgba(56,189,248,.12), rgba(99,102,241,.08)), repeating-linear-gradient(90deg, transparent 0 32%, rgba(255,255,255,.04) 32% 33.3%); box-shadow: inset 0 0 0 1px var(--rand); }
.lh-tropfen { position: absolute; top: 0; width: 30%; padding: 12px 6px; border: 0; border-radius: 18px 18px 18px 6px; background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(219,234,254,.9)); color: #0f172a; font: inherit; font-weight: 700; font-size: .95rem; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); will-change: transform; word-break: break-word; }
.lh-tropfen.platzt { animation: lhPlatz .3s forwards; } @keyframes lhPlatz { to { opacity: 0; transform: scale(1.4); } }
.lh-regen-boden { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, var(--lh1), var(--lh2)); color: #fff; } .lh-regen-boden b { font-size: 1.3rem; }

/* Memory */
.lh-memory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; perspective: 900px; }
.lh-mk { position: relative; height: 92px; border: 0; padding: 0; background: none; color: inherit; font: inherit; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3,1.3,.5,1), opacity .4s; }
.lh-mk span { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center; font-weight: 700; font-size: .85rem; line-height: 1.2; word-break: break-word; }
.lh-mk .r { background: linear-gradient(145deg, var(--lh1), var(--lh2)); font-size: 1.8rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.lh-mk .v { transform: rotateY(180deg); background: #f8fafc; color: #0f172a; } .lh-mk.de .v { background: #fef9c3; }
.lh-mk.auf { transform: rotateY(180deg); } .lh-mk.weg { opacity: 0; transform: rotateY(180deg) scale(.8); pointer-events: none; }

/* Satz / Tippen */
.lh-zeile { min-height: 58px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; padding: 10px; border-radius: 16px; background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 1px var(--rand); }
.lh-bank { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lh-kachel { padding: 9px 12px; border: 0; border-radius: 12px; background: #f8fafc; color: #0f172a; font: inherit; font-weight: 600; box-shadow: 0 3px 0 rgba(0,0,0,.35); } .lh-kachel.weg { visibility: hidden; } .lh-kachel.drin { background: #e0e7ff; }
.lh-leer { opacity: .5; font-size: .9rem; align-self: center; }
.lh-loesung { width: 100%; padding: 10px 12px; border-radius: 12px; font-weight: 700; } .lh-loesung.gut { background: rgba(74,222,128,.2); color: #bbf7d0; } .lh-loesung.schlecht { background: rgba(248,113,113,.18); color: #fecaca; }
.lh-knoepfe { display: flex; gap: 8px; justify-content: center; } .lh-knoepfe .btn { flex: 1; }
.lh-tipp { display: flex; gap: 8px; } .lh-tipp input { flex: 1; min-width: 0; padding: 14px; border: 0; border-radius: 16px; font: inherit; font-size: 1.15rem; background: #f8fafc; color: #0f172a; } .lh-tipp .btn { width: 64px; flex: 0 0 auto; }
.lh-zeichen { display: flex; gap: 6px; justify-content: center; } .lh-zeichen button { width: 48px; height: 44px; border: 0; border-radius: 12px; background: var(--glas); color: inherit; font: inherit; font-size: 1.2rem; font-weight: 700; box-shadow: inset 0 0 0 1px var(--rand); }
.lh-hoer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px; } .lh-hoer-knopf { width: 96px; height: 96px; border: 0; border-radius: 50%; font-size: 2.4rem; color: #fff; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 50%), linear-gradient(145deg, var(--lh1), var(--lh2)); box-shadow: 0 12px 30px -10px var(--lh1); }
.lh-erk { padding: 12px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.45; } .lh-erk.gut { background: rgba(74,222,128,.14); } .lh-erk.schlecht { background: rgba(248,113,113,.14); }

/* Karteikarten */
.lh-kartenstapel { display: grid; gap: 14px; } .lh-karten-zaehler { text-align: center; opacity: .7; font-size: .85rem; }
.lh-fk { position: relative; min-height: 300px; perspective: 1200px; cursor: pointer; outline: none; }
.lh-fk > div { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 22px; text-align: center; border-radius: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .55s cubic-bezier(.3,1.2,.4,1); }
.lh-fk-vorne { background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(150deg, var(--lh1), var(--lh2)); box-shadow: 0 20px 40px -20px var(--lh1); color: #fff; }
.lh-fk-hinten { transform: rotateY(180deg); background: #f8fafc; color: #0f172a; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.lh-fk.offen .lh-fk-vorne { transform: rotateY(-180deg); } .lh-fk.offen .lh-fk-hinten { transform: rotateY(0); }
.lh-fk b { font-size: 1.9rem; line-height: 1.2; } .lh-fk small { font-size: 1.6rem; } .lh-fk em { font-style: normal; opacity: .75; font-size: .8rem; }
.lh-fk-hinten .lh-laut { background: #e2e8f0; } .lh-bsp { margin: 4px 0 0; font-size: .98rem; line-height: 1.4; } .lh-bsp i { display: block; opacity: .65; font-size: .88rem; } .lh-info { margin: 0; font-size: .8rem; opacity: .6; }
.lh-noten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lh-note { display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border: 0; border-radius: 16px; color: #fff; font: inherit; font-size: .8rem; font-weight: 700; } .lh-note span { font-size: 1.3rem; }
.lh-note.n0 { background: #dc2626; } .lh-note.n1 { background: #d97706; } .lh-note.n2 { background: #16a34a; } .lh-note.n3 { background: #2563eb; }

/* Ende */
.lh-ende { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 22px 16px; border-radius: 28px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px var(--rand); }
.lh-ende.klein { padding: 14px; } .lh-ende h3 { margin: 0; } .lh-ende-ic { font-size: 3rem; }
.lh-sterne { display: flex; gap: 6px; font-size: 2.4rem; } .lh-sterne span { color: rgba(255,255,255,.18); } .lh-sterne span.an { color: #fde68a; text-shadow: 0 0 18px rgba(253,230,138,.6); animation: lhStern .5s calc(var(--i) * .18s + .2s) both cubic-bezier(.3,1.6,.5,1); }
@keyframes lhStern { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
.lh-ende-punkte { font-size: 3rem; font-weight: 900; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, #fff, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lh-rekord { font-weight: 800; color: #fde68a; } .lh-alt { opacity: .7; font-size: .9rem; }
.lh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; } .lh-stats span { display: grid; padding: 8px 4px; border-radius: 14px; background: var(--glas); font-size: .72rem; opacity: .9; } .lh-stats b { font-size: 1.15rem; }
.lh-fehler { width: 100%; display: grid; gap: 6px; text-align: left; } .lh-fehler > div { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 12px; background: var(--glas); } .lh-fehler span { display: flex; gap: 6px; align-items: center; font-weight: 700; } .lh-fehler i { opacity: .75; font-size: .88rem; text-align: right; }
.lh-fein { margin: 0; opacity: .6; font-size: .8rem; }

/* Rollenspiel-Chat */
.lh-chat-kopf { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; background: var(--glas); box-shadow: inset 0 0 0 1px var(--rand); } .lh-chat-kopf > span { font-size: 1.8rem; } .lh-chat-kopf div { flex: 1; display: grid; } .lh-chat-kopf small { opacity: .7; }
.lh-schalter { font-size: .8rem; display: flex; gap: 4px; align-items: center; }
.lh-chat { display: grid; gap: 8px; }
.lh-blase { position: relative; max-width: 86%; padding: 10px 12px 10px 14px; border-radius: 20px; animation: lhRein .3s; } .lh-blase p { margin: 0; display: flex; gap: 8px; align-items: center; justify-content: space-between; line-height: 1.35; }
.lh-blase.npc { justify-self: start; background: rgba(255,255,255,.1); border-bottom-left-radius: 6px; } .lh-blase.du { justify-self: end; background: linear-gradient(135deg, var(--lh1), var(--lh2)); color: #fff; border-bottom-right-radius: 6px; }
.lh-blase i { display: block; font-size: .82rem; opacity: .75; margin-top: 4px; } .lh-de { position: absolute; top: -8px; right: 8px; border: 0; border-radius: 999px; padding: 1px 7px; font-size: .62rem; font-weight: 800; background: rgba(0,0,0,.45); color: #fff; }
.lh-wahl { display: grid; gap: 8px; } .lh-wahl > small { opacity: .7; }
.lh-antwort { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--glas); color: inherit; font: inherit; font-weight: 600; box-shadow: inset 0 0 0 1px var(--rand); }
.lh-antwort i { font-weight: 400; font-size: .8rem; opacity: .65; font-style: normal; } .lh-antwort em { font-style: normal; font-weight: 500; font-size: .85rem; color: #fecaca; }
.lh-antwort.falsch { background: rgba(248,113,113,.15); box-shadow: inset 0 0 0 1.5px #f87171; }

/* ===================== 🎙️ SprechKI ===================== */
.ski { display: grid; gap: 10px; justify-items: center; text-align: center; }
.ski-mikro { --pegel: 0; position: relative; display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.ski-mikro b { position: relative; z-index: 1; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; font-size: 2.4rem; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.4), transparent 50%), linear-gradient(145deg, #6366f1, #d946ef); box-shadow: 0 14px 32px -12px #a855f7; transition: transform .15s; }
.ski-mikro.klein b { width: 64px; height: 64px; font-size: 1.6rem; }
.ski-mikro em { font-style: normal; font-size: .85rem; opacity: .85; }
.ski-ring { position: absolute; top: 0; left: 50%; width: 92px; height: 92px; transform: translateX(-50%); } .ski-mikro.klein .ski-ring { width: 64px; height: 64px; }
.ski-ring i { position: absolute; inset: 0; border-radius: 50%; background: rgba(217,70,239,.35); transform: scale(calc(1 + var(--pegel) * .6)); transition: transform .08s; }
.ski-mikro.an b { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.4), transparent 50%), linear-gradient(145deg, #ef4444, #f97316); }
.ski-status { font-size: .78rem; opacity: .7; }
.ski-erg { display: grid; gap: 8px; width: 100%; }
.ski-woerter { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ski-w { padding: 5px 10px; border-radius: 10px; font-weight: 700; } .ski-w.ok { background: rgba(74,222,128,.22); color: #bbf7d0; } .ski-w.fast { background: rgba(250,204,21,.22); color: #fef08a; } .ski-w.fehlt { background: rgba(248,113,113,.22); color: #fecaca; text-decoration: line-through rgba(254,202,202,.6); }
.ski-gehoert { font-size: .88rem; opacity: .85; } .ski-gehoert small { opacity: .7; }
.ski-urteil { font-weight: 800; } .ski-urteil.gut { color: #86efac; } .ski-urteil.schlecht { color: #fca5a5; }
.ski-knoepfe { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ski-k { border: 0; border-radius: 999px; padding: 8px 14px; background: rgba(255,255,255,.1); color: inherit; font: inherit; font-size: .85rem; }
.ski-ohne { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ski-hinweis { margin: 0; font-size: .88rem; line-height: 1.45; opacity: .9; }
.btn.ski-einrichten { background: linear-gradient(135deg, #6366f1, #d946ef) !important; color: #fff !important; }
.ski-selbst { display: grid; gap: 8px; justify-items: center; }
.ski-dlg { border: 0; padding: 0; border-radius: 26px; max-width: min(460px, 94vw); background: #0f1226; color: #eef2ff; box-shadow: 0 30px 80px rgba(0,0,0,.6); } .ski-dlg::backdrop { background: rgba(3,6,15,.7); backdrop-filter: blur(4px); }
.ski-dlg-in { position: relative; display: grid; gap: 12px; padding: 22px 20px; font-family: "Outfit", system-ui, sans-serif; } .ski-dlg h3 { margin: 0; font-size: 1.3rem; } .ski-dlg p { margin: 0; line-height: 1.5; font-size: .92rem; }
.ski-zu { position: absolute; top: 10px; right: 12px; border: 0; background: rgba(255,255,255,.08); color: inherit; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; }
.ski-fakten { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .88rem; }
.ski-modelle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .ski-modell { display: grid; gap: 2px; padding: 12px; border: 0; border-radius: 16px; background: rgba(255,255,255,.06); color: inherit; font: inherit; text-align: left; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); } .ski-modell small { opacity: .7; font-size: .76rem; }
.ski-modell.an { box-shadow: inset 0 0 0 2px #a855f7; background: rgba(168,85,247,.15); }
.ski-laden { display: grid; gap: 6px; } .ski-balken { height: 9px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; } .ski-balken i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6366f1, #d946ef); transition: width .3s; }
.ski-dlg .btn { flex: 1; } .ski-fein { opacity: .6; font-size: .78rem !important; }
@media (prefers-reduced-motion: reduce) { .lh, .lh-blase, .lh-sterne span.an, .lh-combo { animation: none !important; } .lh-fk > div, .lh-mk { transition-duration: .01s; } }
/* Slowenisch: 6 Tabs in einer Reihe, im Spiel ausgeblendet */
.slp-tabs { grid-template-columns: repeat(6, 1fr) !important; padding: 5px !important; }
.slp-tabs button { font-size: .62rem; padding: 7px 0; letter-spacing: -.01em; }
.slp-tabs button b { font-size: 1.15rem; }
.slo-buehne:has(.lh-im-spiel) .slp-tabs { display: none; }
#slo-spiele { padding-bottom: 86px; }
#slo-spiele.lh-im-spiel { padding-bottom: 12px; }

/* 🎯 Lernplan, Diktat, Übersetzung */
.lh-plan-neu { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed rgba(255,255,255,.35); border-radius: 20px; background: rgba(255,255,255,.04); color: inherit; font: inherit; text-align: left; }
.lh-plan-neu > span:first-child { font-size: 1.8rem; } .lh-plan-neu > span:nth-child(2) { flex: 1; display: grid; } .lh-plan-neu small { opacity: .75; font-size: .8rem; }
.lh-plan { display: grid; gap: 10px; padding: 14px; border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px var(--rand), 0 14px 30px -18px rgba(0,0,0,.7); }
.lh-plan-kopf { display: flex; justify-content: space-between; align-items: center; } .lh-plan-kopf b { font-size: 1.05rem; }
.lh-niveaus { display: flex; gap: 6px; } .lh-niveaus span { flex: 1; display: grid; gap: 4px; justify-items: center; padding: 6px 0; border-radius: 12px; background: rgba(255,255,255,.05); font-size: .8rem; }
.lh-niveaus span i { width: 80%; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--lh1) var(--q), rgba(255,255,255,.12) var(--q)); }
.lh-niveaus span.jetzt { background: linear-gradient(135deg, color-mix(in srgb, var(--lh1) 45%, transparent), color-mix(in srgb, var(--lh2) 35%, transparent)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.lh-niveaus span.fertig b::after { content: ' ✓'; color: #86efac; }
.lh-plan-info { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .82rem; opacity: .9; }
.lh-woche { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; } .lh-woche i { display: grid; place-items: center; height: 30px; border-radius: 10px; font-style: normal; font-size: .72rem; font-weight: 800; background: rgba(255,255,255,.06); }
.lh-woche i.halb { background: rgba(253,230,138,.25); } .lh-woche i.voll { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; } .lh-woche i.heute { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.lh-missionen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lh-mission { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; border: 0; border-radius: 16px; background: rgba(255,255,255,.07); color: inherit; font: inherit; text-align: left; box-shadow: inset 0 0 0 1px var(--rand); transition: transform .15s; }
.lh-mission span { grid-row: span 2; font-size: 1.4rem; } .lh-mission b { font-size: .88rem; } .lh-mission small { font-size: .7rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-mission.fertig { background: rgba(74,222,128,.13); box-shadow: inset 0 0 0 1px rgba(74,222,128,.45); } .lh-mission.fertig b { text-decoration: line-through; opacity: .75; } .lh-mission:active { transform: scale(.97); }
.lh-setup { display: grid; gap: 10px; } .lh-setup h3 { margin: 0; }
.lh-chips { display: flex; flex-wrap: wrap; gap: 6px; } .lh-chips button { display: grid; justify-items: center; min-width: 64px; padding: 9px 12px; border: 0; border-radius: 14px; background: var(--glas); color: inherit; font: inherit; font-weight: 700; box-shadow: inset 0 0 0 1px var(--rand); } .lh-chips button small { font-weight: 400; font-size: .66rem; opacity: .75; }
.lh-chips button.an { background: linear-gradient(135deg, var(--lh1), var(--lh2)); color: #fff; box-shadow: none; }
.lh-text { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 0; border-radius: 16px; font: inherit; font-size: 1.05rem; line-height: 1.45; background: #f8fafc; color: #0f172a; resize: vertical; }
.lh-text:disabled { opacity: .8; }
.lh-frage b.text { font-size: 1rem; font-weight: 600; line-height: 1.5; text-align: left; }
.lh-zentriert { text-align: center; }
.ski-woerter.links { justify-content: flex-start; margin: 8px 0 4px; } .ski-w small { font-weight: 500; opacity: .8; }
.lh-opt.leise { opacity: .7; font-weight: 500; }
.lh-niveau-info { margin: -6px 2px 0; font-size: .78rem; opacity: .8; line-height: 1.4; } .lh-niveau-info b { color: #fde68a; }
/* 🧩 Grammatik-Pfad */
.slp-naechstes { display: grid; gap: 8px; padding: 12px; border-radius: 20px; background: linear-gradient(135deg, rgba(74,222,128,.18), rgba(56,189,248,.12)); box-shadow: inset 0 0 0 1px rgba(74,222,128,.35); }
.slp-naechstes > small { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; opacity: .85; }
.slp-thema.gross { background: rgba(255,255,255,.1); } .slp-los { font-weight: 800; color: #86efac; }
.slp-pfad { display: grid; gap: 0; }
.slp-pfad-schritt { position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding-bottom: 10px; }
.slp-pfad-schritt::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: -2px; width: 2px; background: rgba(255,255,255,.12); }
.slp-pfad-schritt:last-child::before { display: none; } .slp-pfad-schritt.fertig::before { background: #4ade80; }
.slp-pfad-punkt { grid-row: span 2; width: 34px; height: 34px; margin-top: 12px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .85rem; background: rgba(255,255,255,.1); }
.slp-pfad-schritt.fertig .slp-pfad-punkt { background: #22c55e; color: #fff; } .slp-pfad-schritt.offen .slp-pfad-punkt { background: linear-gradient(135deg, #4ade80, #38bdf8); color: #08111a; box-shadow: 0 0 0 4px rgba(74,222,128,.2); }
.slp-thema.gesperrt { opacity: .55; filter: grayscale(.6); }
.slp-thema.wackeln { animation: lhWackel .35s; }
.slp-sperre { grid-column: 2; margin-top: 4px; font-size: .84rem; } .slp-sperre summary { cursor: pointer; opacity: .8; padding: 2px 4px; }
.slp-fehlt { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.slp-fehlt li { display: grid; gap: 3px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: .85rem; } .slp-fehlt small { opacity: .7; }
.slp-fehlt-los { justify-self: start; border: 0; border-radius: 999px; padding: 5px 11px; background: rgba(74,222,128,.22); color: #bbf7d0; font: inherit; font-size: .78rem; font-weight: 700; }

/* 📈 Verlauf (LernLog) + Grammatik-Pfad-Karte der Lernhalle */
.lh-verlauf, .lh-gramkarte { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 0; border-radius: 18px; background: var(--glas); color: inherit; font: inherit; text-align: left; box-shadow: inset 0 0 0 1px var(--rand); }
.lh-verlauf > span:first-child, .lh-gramkarte > span:first-child { font-size: 1.4rem; } .lh-verlauf > span:nth-child(2), .lh-gramkarte > span:nth-child(2) { flex: 1; font-size: .88rem; display: grid; } .lh-verlauf b { color: #fde68a; }
.lh-gramkarte small { opacity: .75; font-size: .78rem; } .lh-pfad-link { justify-self: start; margin-top: -6px; }
.lh-spick-ein { border-radius: 16px; background: var(--glas); box-shadow: inset 0 0 0 1px var(--rand); } .lh-spick-ein summary { padding: 10px 14px; font-weight: 700; cursor: pointer; } .lh-spick-ein > div { padding: 0 14px 10px; font-size: .9rem; line-height: 1.5; } .lh-spick-ein p { margin: 4px 0; }
.ll { display: grid; gap: 14px; }
.ll-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ll-kachel { display: grid; gap: 2px; padding: 12px 14px; border-radius: 18px; background: var(--glas, rgba(255,255,255,.06)); box-shadow: inset 0 0 0 1px var(--rand, rgba(255,255,255,.1)); }
.ll-kachel small { font-size: .72rem; opacity: .7; letter-spacing: .04em; } .ll-kachel b { font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; } .ll-kachel em { font-style: normal; font-size: .75rem; opacity: .75; }
.ll-kachel.gross { grid-column: span 2; background: linear-gradient(135deg, color-mix(in srgb, var(--lh1, #22c55e) 35%, transparent), color-mix(in srgb, var(--lh2, #0ea5e9) 25%, transparent)); } .ll-kachel.gross b { font-size: 2.4rem; }
.ll-chart { padding: 14px; border-radius: 20px; background: var(--glas, rgba(255,255,255,.06)); box-shadow: inset 0 0 0 1px var(--rand, rgba(255,255,255,.1)); }
.ll-chart-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: .85rem; } .ll-chart-kopf span { opacity: .75; font-size: .78rem; text-align: right; }
.ll-balken-reihe { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; height: 150px; margin-top: 10px; align-items: end; border-bottom: 1px solid rgba(255,255,255,.15); }
.ll-balken { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 0 18px; border: 0; background: none; color: inherit; font: inherit; }
.ll-balken i { width: 70%; max-width: 18px; border-radius: 4px 4px 0 0; background: var(--lh1, #22c55e); transition: opacity .15s; }
.ll-balken small { position: absolute; bottom: 0; font-size: .62rem; opacity: .65; }
.ll-balken.heute small { opacity: 1; font-weight: 800; } .ll-balken.an i { outline: 2px solid #fff; outline-offset: 1px; } .ll-balken-reihe:hover .ll-balken:not(:hover) i { opacity: .55; }
.ll-liste { display: grid; gap: 6px; } .ll-liste table { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
.ll-liste th, .ll-liste td { padding: 7px 6px; text-align: right; border-bottom: 1px solid rgba(255,255,255,.08); } .ll-liste th:first-child, .ll-liste td:first-child { text-align: left; } .ll-liste th { font-size: .72rem; opacity: .65; font-weight: 600; }
.ll-liste tr.heute td { font-weight: 800; } .ll-fein { margin: 0; font-size: .76rem; opacity: .6; line-height: 1.4; }
/* iOS-Safari: Inhalte ohne eigene Ebene rutschten hinter das feste Hintergrundbild (::before) der Bühne.
   Eigene Ebene erzwingen, damit Karten, Texte und Knöpfe immer darüber liegen. */
.slo-buehne > .slo-teil, .eng-buehne > #engInhalt { position: relative; z-index: 1; }
.lh { position: relative; z-index: 1; transform: translateZ(0); -webkit-transform: translateZ(0); }
.lh-verlauf > span:nth-child(2) { display: block; line-height: 1.35; }
/* SprechKI: erst sprechen, wenn das Mikrofon wirklich läuft */
.ski-mikro.bereit b { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.4), transparent 50%), linear-gradient(145deg, #22c55e, #16a34a); box-shadow: 0 0 0 6px rgba(74,222,128,.25), 0 14px 32px -12px #22c55e; }
.ski-mikro.bereit em { color: #86efac; font-weight: 800; }
.ski-modelle { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important; }
/* 📖 Grammatik-Theorie */
.slp-theorie-knopf { grid-column: 2; justify-self: start; margin-top: 4px; border: 0; border-radius: 999px; padding: 5px 12px; background: rgba(255,255,255,.08); color: inherit; font: inherit; font-size: .78rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.slp-kapitel p { line-height: 1.55; } .slp-bsp { padding: 10px 12px; border-radius: 12px; background: rgba(74,222,128,.1); border-left: 3px solid #4ade80; }
.slp-kapitel .slp-tabelle { margin: 8px 0; }

/* NVL Hypertonie – Fallsimulator (nvl/) */
.hub-nvl { background: linear-gradient(#101a33, #101a33) padding-box, linear-gradient(90deg, #2557d6, #7b45c9, #14804a, #2557d6) border-box; background-size: 100% 100%, 300% 100%; }
.hub-nvl .hg-titel { background: linear-gradient(90deg, #93b4ff, #c4a5f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-av-nvl { --ring: conic-gradient(#2557d6, #7b45c9, #14804a, #2557d6); } .hg-av-nvl > .hg-in { background: #f5f7fb; display: grid; place-items: center; }
.nvl-mini { position: relative; font-size: 1.6rem; } .nvl-mini i { position: absolute; right: -12px; bottom: -6px; font: 800 .5rem/1 "Outfit", sans-serif; font-style: normal; background: #2557d6; color: #fff; padding: 2px 4px; border-radius: 6px; }

/* ---------- Schlanke Kopfleiste statt Planeten-Bühne ---------- */
.hub-leiste { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 2px 8px; }
.hub-marke { font-weight: 800; font-size: 1.2rem; letter-spacing: .01em; white-space: nowrap; }
.hub-leiste .profil-btn { padding: 4px; min-height: 0; border-radius: 50%; }
.hub-leiste .profil-btn .pb-name { display: none; }
/* Top 3 der Bestenliste ganz oben */
.sy-top3 { display: grid; gap: 8px; margin: 0 0 12px; padding: 12px 14px; border-radius: 24px; background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(99,102,241,.12)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.sy-top3-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sy-top3-kopf b { font-size: .95rem; } .sy-top3-kopf small { color: #a3a3c2; font-size: .78rem; }
.sy-podest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sy-platz { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 0; border-radius: 16px; background: rgba(0,0,0,.25); color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.sy-platz.ich { box-shadow: inset 0 0 0 2px #f59e0b; }
.sy-platz .sy-med { font-size: 1.1rem; line-height: 1; }
.sy-platz .sy-av { font-size: 1.6rem; line-height: 1.1; }
.sy-platz b { font-size: .85rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-platz small { color: #fde68a; font-size: .74rem; font-variant-numeric: tabular-nums; }
.sy-top3-fuss { display: flex; flex-wrap: wrap; gap: 6px; }
.sy-chip { border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(255,255,255,.08); color: inherit; font: inherit; font-size: .8rem; cursor: pointer; }
.sy-chip.wichtig { background: #f59e0b; color: #111; font-weight: 700; }
/* Tageskarten: lange Wörter („Wahrnehmungsprobe“) umbrechen statt abschneiden */
.sk-tageskarte small, .sk-tageskarte b { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }

/* Dialoge: nie höher als der Bildschirm, scrollen in sich; ✕ bleibt beim Scrollen oben sichtbar */
.sk-dlg { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sk-dlg-zu { position: sticky; top: 8px; justify-self: end; margin: -10px 0 -46px 0; z-index: 3; backdrop-filter: blur(6px); background: rgba(40,40,52,.85); }
/* Dialog-Inhalt nie breiter als das Fenster: Spalte darf schrumpfen, lange Wörter/Pfade brechen um */
.sk-dlg-in { grid-template-columns: minmax(0, 1fr); }
.sk-dlg-in > * { min-width: 0; }
.sk-dlg-in p, .sk-dlg-in li, .sk-dlg-in small, .sk-dlg-in div { overflow-wrap: anywhere; }

/* Große Kacheln oben im Hub: LoL-Zentrale und Minecraft-Server */
.sk-gross { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 10px 0 4px; }
.sk-gross-kachel { position: relative; display: flex; align-items: center; gap: 16px; min-height: 112px; padding: 18px 22px; border-radius: 22px; color: #fff; text-decoration: none; overflow: hidden;
  border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 34px rgba(0,0,0,.35); transition: transform .15s, box-shadow .15s; isolation: isolate; }
.sk-gross-kachel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .95; }
.sk-gross-kachel::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; z-index: -1; filter: blur(30px); opacity: .55; }
.sk-gross-kachel:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 16px 40px rgba(0,0,0,.45); }
.sk-gross-kachel:active { transform: scale(.985); }
.sk-gross-lol::before { background: linear-gradient(135deg, #2b2a7a 0%, #0a4fb8 55%, #1679c9 100%); }
.sk-gross-lol::after { background: #bf5af2; }
.sk-gross-mc::before { background: linear-gradient(135deg, #1d4d1f 0%, #2f7a2c 55%, #5b8f2e 100%); }
.sk-gross-mc::after { background: #ffd60a; opacity: .3; }
.sk-gross-icon { flex: none; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.sk-gross-icon svg { width: 44px; height: 44px; }
.sk-gross-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-gross-text b { font-size: 1.35rem; letter-spacing: -.02em; }
.sk-gross-text small { font-size: .9rem; color: rgba(255,255,255,.78); }
.sk-gross-status { margin-top: 6px; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.92); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-punkt { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); display: inline-block; }
.sk-punkt.an { background: #30d158; box-shadow: 0 0 0 3px rgba(48,209,88,.25); }
.sk-gross-pfeil { margin-left: auto; font-size: 2rem; opacity: .6; line-height: 1; }
@media (max-width: 699px) {
  .sk-gross { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sk-gross-kachel { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 14px; border-radius: 18px; }
  .sk-gross-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 22px; }
  .sk-gross-icon svg { width: 32px; height: 32px; }
  .sk-gross-text b { font-size: 1.02rem; }
  .sk-gross-text small { font-size: .74rem; }
  .sk-gross-status { margin-top: 2px; font-size: .7rem; }
  .sk-gross-pfeil { display: none; }
}

.spiel-ton { position: relative; color: #eef3ff; font: 700 .9rem system-ui, sans-serif; }
.spiel-ton summary {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  list-style: none;
  border: 1px solid #ffffff3d;
  border-radius: 50%;
  background: #222b3bec;
  cursor: pointer;
}
.spiel-ton summary::-webkit-details-marker { display: none; }
.spiel-ton summary:focus-visible { outline: 2px solid #b9cbfc; outline-offset: 2px; }
.spiel-ton-feld {
  position: absolute;
  z-index: 55;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(238px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid #566580;
  border-radius: 12px;
  background: #192437;
  box-shadow: 0 8px 24px #0007;
}
.spiel-ton-feld input { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: #b9cbfc; }
.spiel-ton-kompakt { flex: none; margin-inline-start: 6px; z-index: 49; }
.spiel-ton-kompakt summary { min-width: 34px; min-height: 34px; font-size: .8rem; }
.spiel-ton-schwebend {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  top: calc(12px + env(safe-area-inset-top));
}

@media (max-width: 640px) {
  .hub-leiste .hub-knoepfe { position: relative; }
  .hub-leiste .spiel-ton { position: static; }
}
