/* Jabuti – Oberfläche v0.6 · Handy zuerst · Themes über data-theme am <html>
   Jede Farbe hat ein Gegenstück für Text darauf (…-text), damit es in allen Themes lesbar bleibt. */

/* ------------------------------------------------------------------ Themes */
:root, [data-theme="mata"], [data-theme="auto"] {
  --bg: #f3f0e7; --bg-2: #ebe6d8; --flaeche: #fffdf8; --flaeche-2: #f7f3ea;
  --text: #20241d; --leise: #686c5c; --linie: #e2dccb;
  --primaer: #2f6b3a; --primaer-text: #ffffff; --tint: #e1eedf; --tint-text: #1b4524;
  --akzent: #f2b33d; --akzent-hell: #fdf0d3; --akzent-text: #5a3d00;
  --gut: #2f7d46; --gut-hell: #e0f2e5; --warn: #9a6400; --warn-hell: #fdf0d3;
  --schlecht: #c0412f; --schlecht-hell: #fbe2dc;
  --schatten: 0 1px 2px rgba(30, 35, 25, .06), 0 6px 20px rgba(30, 35, 25, .07);
  color-scheme: light;
}
[data-theme="noite"] {
  --bg: #111511; --bg-2: #171c17; --flaeche: #1b211b; --flaeche-2: #232b23;
  --text: #eaefe4; --leise: #a1a894; --linie: #313a30;
  --primaer: #72c785; --primaer-text: #0b1a0f; --tint: #233628; --tint-text: #c9ecd0;
  --akzent: #f2b33d; --akzent-hell: #3a301c; --akzent-text: #ffe2a6;
  --gut: #7fd394; --gut-hell: #1f3626; --warn: #f2c66d; --warn-hell: #3a301c;
  --schlecht: #ff8b76; --schlecht-hell: #3e2420;
  --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg: #111511; --bg-2: #171c17; --flaeche: #1b211b; --flaeche-2: #232b23;
    --text: #eaefe4; --leise: #a1a894; --linie: #313a30;
    --primaer: #72c785; --primaer-text: #0b1a0f; --tint: #233628; --tint-text: #c9ecd0;
    --akzent: #f2b33d; --akzent-hell: #3a301c; --akzent-text: #ffe2a6;
    --gut: #7fd394; --gut-hell: #1f3626; --warn: #f2c66d; --warn-hell: #3a301c;
    --schlecht: #ff8b76; --schlecht-hell: #3e2420;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
[data-theme="praia"] {
  --bg: #eaf3f5; --bg-2: #dcebee; --flaeche: #ffffff; --flaeche-2: #f3f8f9;
  --text: #172a31; --leise: #5b7179; --linie: #d3e3e7;
  --primaer: #1b6f8c; --primaer-text: #ffffff; --tint: #d9edf3; --tint-text: #0f475b;
  --akzent: #f19a5b; --akzent-hell: #fde7d8; --akzent-text: #6b3207;
  --gut: #1f8a6a; --gut-hell: #dcf2ea; --warn: #9a5b00; --warn-hell: #fdecd6;
  --schlecht: #c2412d; --schlecht-hell: #fbe1dc;
  --schatten: 0 1px 2px rgba(20, 50, 60, .06), 0 6px 20px rgba(20, 50, 60, .08);
  color-scheme: light;
}
[data-theme="carnaval"] {
  --bg: #f8f1ff; --bg-2: #efe3fb; --flaeche: #ffffff; --flaeche-2: #faf5ff;
  --text: #24123a; --leise: #6c5a80; --linie: #e7d9f5;
  --primaer: #7a2cc0; --primaer-text: #ffffff; --tint: #efe2fc; --tint-text: #4b1478;
  --akzent: #ffbe0b; --akzent-hell: #fff3cc; --akzent-text: #5c4300;
  --gut: #138a72; --gut-hell: #d9f3ec; --warn: #a15c00; --warn-hell: #fff0d6;
  --schlecht: #d62f5b; --schlecht-hell: #fde0e8;
  --schatten: 0 1px 2px rgba(60, 20, 90, .07), 0 8px 24px rgba(60, 20, 90, .10);
  color-scheme: light;
}
[data-theme="cafe"] {
  --bg: #f4ede4; --bg-2: #ebe0d2; --flaeche: #fffaf3; --flaeche-2: #f8f0e5;
  --text: #2b1f17; --leise: #76655a; --linie: #e6d8c7;
  --primaer: #6b4a33; --primaer-text: #ffffff; --tint: #eee0cf; --tint-text: #47301f;
  --akzent: #c98b4a; --akzent-hell: #f6e5cf; --akzent-text: #5a3410;
  --gut: #4c7a3c; --gut-hell: #e4efdc; --warn: #94600c; --warn-hell: #f6e5cf;
  --schlecht: #b2442d; --schlecht-hell: #f6e0d8;
  --schatten: 0 1px 2px rgba(60, 40, 20, .07), 0 6px 20px rgba(60, 40, 20, .08);
  color-scheme: light;
}

/* ------------------------------------------------------------------ Grundgerüst */
:root { --radius: 20px; --radius-s: 14px; --leiste: 68px;
        font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); -webkit-tap-highlight-color: transparent; line-height: 1.45;
       padding-bottom: calc(var(--leiste-h, calc(var(--leiste) + env(safe-area-inset-bottom))) + 16px); -webkit-font-smoothing: antialiased; }
a { color: var(--primaer); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; }
.kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
        padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
        background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px); }
.marke { display: flex; gap: 9px; align-items: center; font-weight: 800; font-size: 1.15rem; text-decoration: none;
         color: var(--text); letter-spacing: -.02em; }
.marke img { border-radius: 8px; }
.netz { font-size: .78rem; font-weight: 600; background: var(--akzent-hell); color: var(--akzent-text); padding: 4px 10px; border-radius: 99px; }
.inhalt { max-width: 680px; margin: 0 auto; padding: 4px 14px 24px; }
.inhalt.breit { max-width: 1100px; }
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around;
          background: color-mix(in srgb, var(--flaeche) 92%, transparent); backdrop-filter: blur(14px);
          -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--linie); padding-bottom: max(6px, env(safe-area-inset-bottom));
          padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.leiste a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0 9px;
            font-size: .7rem; font-weight: 600; color: var(--leise); text-decoration: none; }
.leiste a span { font-size: 1.35rem; line-height: 1.3; filter: grayscale(.4); opacity: .85; }
.leiste a.aktiv { color: var(--primaer); }
.leiste a.aktiv span { filter: none; opacity: 1; transform: translateY(-1px); }
.meldungen { margin: 6px 0; }
.meldung { padding: 11px 14px; border-radius: var(--radius-s); margin-bottom: 8px; background: var(--gut-hell); color: var(--text); font-size: .95rem; }
.meldung.error { background: var(--schlecht-hell); } .meldung.warning { background: var(--warn-hell); }

.box, .karte-box { background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); padding: 18px; margin: 12px 0; }
.schmal { max-width: 420px; margin: 24px auto; }
.gross { font-size: 1.75rem; margin: 4px 0 6px; font-weight: 800; }
.leise { color: var(--leise); }
.klein { font-size: .85rem; }
h2 { font-size: 1.12rem; margin: 20px 0 8px; }
.zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zeile.ende { justify-content: flex-end; }
.zeile.zwischen { justify-content: space-between; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

button, .knopf { font: inherit; border: 0; border-radius: var(--radius-s); padding: 13px 18px; cursor: pointer;
                 background: var(--primaer); color: var(--primaer-text); font-weight: 700; text-decoration: none;
                 display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
                 transition: transform .08s ease, filter .15s ease; }
button:active, .knopf:active { transform: scale(.97); }
button:hover, .knopf:hover { filter: brightness(1.05); }
button.zweit, .knopf.zweit { background: var(--tint); color: var(--tint-text); }
button.rand, .knopf.rand { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--linie); }
button.gefahr, .knopf.gefahr { background: var(--schlecht-hell); color: var(--schlecht); }
button.klein, .knopf.klein { padding: 8px 12px; border-radius: 11px; font-size: .88rem; }
button.rund { width: 42px; height: 42px; padding: 0; border-radius: 50%; }
button:disabled { opacity: .45; }
.breit { width: 100%; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], select, textarea {
  font: inherit; font-size: 1.12rem; width: 100%; padding: 13px 14px; border-radius: var(--radius-s);
  border: 2px solid var(--linie); background: var(--flaeche); color: var(--text); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primaer);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primaer) 18%, transparent); }
input[type=range] { width: 100%; accent-color: var(--primaer); }
form p { margin: 0 0 14px; } form label { display: block; font-size: .88rem; font-weight: 600; color: var(--leise); margin-bottom: 5px; }
.helptext, form .helptext { display: block; font-size: .8rem; color: var(--leise); margin-top: 4px; }
.anmeldung form button, .anmeldung form [type=submit] { width: 100%; }
.anmeldung main { max-width: 440px; }
ul.errorlist { color: var(--schlecht); margin: 4px 0; padding-left: 18px; font-size: .9rem; }
.marke-chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px;
              background: var(--tint); color: var(--tint-text); }
.marke-chip.warn { background: var(--warn-hell); color: var(--warn); }
.marke-chip.schlecht { background: var(--schlecht-hell); color: var(--schlecht); }
.marke-chip.gut { background: var(--gut-hell); color: var(--gut); }
.marke-unsicher { font-size: .75rem; font-weight: 700; background: var(--akzent-hell); color: var(--akzent-text); padding: 3px 9px; border-radius: 99px; }

/* ------------------------------------------------------------------ Lernsitzung */
.sitzungskopf { position: sticky; top: 52px; z-index: 15; background: var(--bg); padding: 4px 0 10px; }
.status { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; color: var(--leise); font-weight: 600; }
.status .uhr { font-variant-numeric: tabular-nums; }
.status .uhr.ueber { color: var(--gut); }
.fortschritt { height: 10px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.fortschritt > div { height: 100%; background: linear-gradient(90deg, var(--primaer), color-mix(in srgb, var(--primaer) 70%, var(--akzent)));
                     width: 0; transition: width .35s ease; border-radius: 99px; }
.lernkarte { background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); padding: 22px 18px;
             min-height: 260px; animation: rein .22s ease; }
@keyframes rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.typ { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--leise); margin-bottom: 10px; }
.satz { font-size: 1.6rem; line-height: 1.35; margin: 6px 0 10px; font-weight: 700; letter-spacing: -.01em; }
.satz .neu { background: var(--akzent-hell); color: var(--akzent-text); border-bottom: 3px solid var(--akzent); border-radius: 6px; padding: 0 4px; }
.satz .luecke { display: inline-block; min-width: 4ch; border-bottom: 3px solid var(--primaer); color: transparent; }
.satz .w { cursor: pointer; border-radius: 6px; transition: background .15s; }
.satz .w:hover, .satz .w.offen { background: var(--tint); }
.de { font-size: 1.06rem; color: var(--leise); margin-bottom: 14px; }
.wort { background: var(--akzent-hell); color: var(--akzent-text); border-radius: var(--radius-s); padding: 11px 13px; margin: 10px 0; }
.wort b { font-size: 1.1rem; }
.wort .hinweis { color: inherit; opacity: .85; }
details.grammatik { margin: 10px 0; font-size: .96rem; background: var(--flaeche-2); border-radius: var(--radius-s); padding: 10px 12px; }
details.grammatik summary { color: var(--primaer); cursor: pointer; font-weight: 700; }
details.grammatik div { margin-top: 8px; }
.audio-knoepfe { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.audio-knoepfe button { flex: 1; min-width: 86px; padding: 12px 8px; font-size: .95rem; white-space: nowrap; }
.akzente { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 12px; }
.akzente button { padding: 0; min-height: 48px; font-size: 1.35rem; font-weight: 600; border-radius: 12px;
                  background: var(--flaeche-2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--linie); }
.akzente button:active { background: var(--tint); color: var(--tint-text); }
.loesung { margin: 12px 0 6px; font-size: 1.25rem; line-height: 1.6; }
.loesung span { border-radius: 5px; padding: 0 3px; }
.loesung .akzent, .loesung .tipp { background: var(--warn-hell); color: var(--text); text-decoration: underline wavy var(--warn); text-underline-offset: 4px; }
.loesung .falsch, .loesung .fehlt { background: var(--schlecht-hell); color: var(--text); text-decoration: underline var(--schlecht); text-underline-offset: 4px; }
.loesung .zuviel { color: var(--schlecht); text-decoration: line-through; font-size: .9em; }
.loesung .optional { opacity: .55; }
.urteil { font-weight: 800; font-size: 1.15rem; margin-top: 2px; }
.urteil.richtig { color: var(--gut); } .urteil.fast { color: var(--warn); } .urteil.falsch { color: var(--schlecht); }
.hinweis { font-size: .93rem; color: var(--leise); margin: 4px 0; }
.bewertung { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.bewertung button { padding: 13px 4px; font-size: .93rem; background: var(--tint); color: var(--tint-text); box-shadow: inset 0 0 0 2px transparent; flex-direction: column; gap: 0; }
.bewertung button[data-wert="1"] { background: var(--schlecht-hell); color: var(--schlecht); }
.bewertung button.vorschlag { box-shadow: inset 0 0 0 2.5px var(--primaer), 0 0 0 3px color-mix(in srgb, var(--primaer) 20%, transparent); }
.bewertung button[data-wert="1"].vorschlag { box-shadow: inset 0 0 0 2.5px var(--schlecht); }
.bewertung small { display: block; font-weight: 500; font-size: .7rem; opacity: .8; }
.aufnahme { background: var(--schlecht); color: #fff; } .aufnahme.laeuft { animation: puls 1s infinite; }
@keyframes puls { 50% { opacity: .55; } }
.fertig { text-align: center; padding: 30px 10px; }
.fertig .bild { font-size: 4rem; }
.zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.zahlen.vier { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.zahl { background: var(--flaeche); border-radius: var(--radius-s); padding: 13px 8px; text-align: center; box-shadow: var(--schatten); }
.zahl b { display: block; font-size: 1.5rem; color: var(--primaer); font-weight: 800; }
.zahl span { font-size: .76rem; color: var(--leise); }
.offen-hinweis { font-size: .85rem; background: var(--akzent-hell); color: var(--akzent-text); border-radius: 12px; padding: 9px 12px; margin: 10px 0; }

/* Pause-Fenster und Wort-Infos */
.ueberlagerung { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 10, .55); display: flex; align-items: flex-end; justify-content: center;
                 padding: 14px; animation: blende .15s ease; }
@keyframes blende { from { opacity: 0; } }
/* 0.7.0: Seite dahinter festhalten – sonst verrutscht das Blatt am Handy beim Ein-/Ausblenden der Adressleiste */
html:has(.ueberlagerung) { overflow: hidden; }
.ueberlagerung { height: 100dvh; overscroll-behavior: contain; overflow-y: auto; }
.blatt { background: var(--flaeche); color: var(--text); border-radius: 24px; padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
         width: 100%; max-width: 480px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); animation: hoch .2s ease; }
@keyframes hoch { from { transform: translateY(30px); opacity: .5; } }
.blatt .knoepfe { display: grid; gap: 10px; margin-top: 16px; }
.wortinfo h3 { margin: 0 0 4px; font-size: 1.4rem; }

/* Startseite der Sitzung */
.start-hero { background: linear-gradient(135deg, var(--primaer), color-mix(in srgb, var(--primaer) 60%, var(--akzent)));
              color: var(--primaer-text); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--schatten); }
.start-hero h1 { margin: 0 0 6px; font-size: 1.9rem; font-weight: 800; }
.start-hero p { margin: 0 0 16px; opacity: .92; }
.start-hero button { background: var(--flaeche); color: var(--primaer); width: 100%; font-size: 1.08rem; }
.kachel { display: flex; gap: 14px; align-items: center; background: var(--flaeche); border-radius: var(--radius); padding: 15px 16px;
          box-shadow: var(--schatten); margin: 12px 0; text-decoration: none; color: var(--text); }
.kachel .ico { font-size: 1.8rem; width: 46px; height: 46px; display: grid; place-items: center; background: var(--tint); border-radius: 14px; flex: none; }
.kachel b { display: block; } .kachel span { font-size: .88rem; color: var(--leise); }

/* ------------------------------------------------------------------ Übersicht */
.balken { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin: 12px 0 4px; }
.balken div { flex: 1; background: linear-gradient(180deg, var(--primaer), color-mix(in srgb, var(--primaer) 65%, var(--flaeche)));
              border-radius: 8px 8px 3px 3px; min-height: 3px; }
.balken-beschriftung { display: flex; gap: 8px; font-size: .72rem; color: var(--leise); }
.balken-beschriftung span { flex: 1; text-align: center; }
table.liste { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.liste th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--leise); padding: 8px 6px; border-bottom: 2px solid var(--linie); }
table.liste td { padding: 9px 6px; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.liste tr:last-child td { border-bottom: 0; }
table.liste td.zahlspalte { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tabelle { overflow-x: auto; margin: 10px 0; }
.tabelle table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.tabelle th, .tabelle td { padding: 8px 9px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.tabelle th { background: var(--flaeche-2); font-size: .85rem; }
.balkenzeile { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.balkenzeile > div { height: 100%; background: var(--primaer); }

/* ------------------------------------------------------------------ Grundlagen */
.lektion h3 { margin: 22px 0 8px; font-size: 1.15rem; }
.lektion p, .lektion li { font-size: 1.02rem; }
.lektion ul { padding-left: 20px; }
.merke { background: var(--akzent-hell); color: var(--akzent-text); border-radius: var(--radius-s); padding: 11px 13px; margin: 12px 0; font-size: .97rem; }
button.hoer { font-size: .98rem; padding: 3px 9px; border-radius: 9px; background: var(--tint); color: var(--tint-text);
              font-weight: 600; margin: 1px 0; }
button.hoer.spielt { background: var(--primaer); color: var(--primaer-text); }

/* ------------------------------------------------------------------ Prüfansicht */
.pruef-satz { font-size: 1.6rem; font-weight: 700; line-height: 1.35; margin: 4px 0 8px; }
.pruef-knoepfe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.pruef-knoepfe button { padding: 20px 4px; font-size: 1.05rem; }
.pruef-knoepfe .ok { background: var(--gut); color: #fff; }
.pruef-knoepfe .naja { background: var(--akzent); color: #2a1d00; }
.pruef-knoepfe .nein { background: var(--schlecht); color: #fff; }

/* ------------------------------------------------------------------ Verwaltung */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; margin: 0 -2px; scrollbar-width: none; }
.tabs a { white-space: nowrap; padding: 9px 14px; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: .9rem;
          background: var(--flaeche); color: var(--leise); box-shadow: var(--schatten); }
.tabs a.aktiv { background: var(--primaer); color: var(--primaer-text); }
.zwei-spalten { display: grid; gap: 12px; }
@media (min-width: 860px) { .zwei-spalten { grid-template-columns: 1fr 1fr; } }
.regler { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.regler output { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--primaer); min-width: 3.5ch; text-align: right; }
.suche { display: flex; gap: 8px; } .suche input { flex: 1; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.themes label { display: block; cursor: pointer; border-radius: var(--radius-s); padding: 10px; background: var(--flaeche-2);
                box-shadow: inset 0 0 0 2px var(--linie); font-size: .85rem; color: var(--text); font-weight: 600; margin: 0; }
.themes input { position: absolute; opacity: 0; }
.themes input:checked + .tvorschau { outline: 3px solid var(--primaer); outline-offset: 2px; }
.tvorschau { display: flex; height: 34px; border-radius: 9px; overflow: hidden; margin-bottom: 7px; }
.tvorschau i { flex: 1; }

/* ===================================================================== Maskottchen Jabuti (0.6.1, E-30) */
.jabuti { position: relative; display: inline-block; width: var(--jg, 96px); line-height: 0; flex: none;
          color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.jabuti svg { width: 100%; height: auto; overflow: visible; }
.jabuti svg * { transform-box: view-box; }
.jabuti-sprech { position: absolute; bottom: 88%; right: 40%; z-index: 2; line-height: 1.25; white-space: nowrap;
                 background: var(--flaeche); color: var(--text); border: 2px solid var(--akzent); border-radius: 14px;
                 padding: 4px 10px; font-size: .85rem; font-weight: 700; box-shadow: var(--schatten);
                 animation: j-blase .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.jabuti-sprech::after { content: ""; position: absolute; right: 12px; bottom: -8px; border: 7px solid transparent;
                        border-top-color: var(--akzent); border-bottom: 0; }
.jabuti-sprech.neu { animation: j-blase .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.jabuti-sprech.weg { animation: j-blase-weg .3s ease forwards; }
@keyframes j-blase { from { transform: scale(.3) translateY(10px); opacity: 0; } }
@keyframes j-blase-weg { to { transform: scale(.6); opacity: 0; } }

/* Grundbewegungen */
.jabuti .j-auge { transform-origin: 121px 44px; animation: j-blinzeln 4.6s infinite; }
.jabuti .j-panzer { transform-origin: 64px 76px; animation: j-atmen 3.4s ease-in-out infinite; }
.jabuti .j-kopf { transform-origin: 100px 66px; }
.jabuti .j-figur { transform-origin: 64px 90px; }
.jabuti .j-bein { transform-origin: center 4px; }
.jabuti .j-bein.vr { transform-origin: 95px 72px; }
.jabuti .j-bein.vl { transform-origin: 33px 72px; }
.jabuti .j-bein.hl { transform-origin: 41px 68px; }
.jabuti .j-bein.hr { transform-origin: 83px 68px; }
@keyframes j-blinzeln { 0%, 91%, 97%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
@keyframes j-atmen { 50% { transform: scale(1.015, 1.03); } }

.st-ruhe .j-kopf { animation: j-nicken 7s ease-in-out infinite; }
@keyframes j-nicken { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-7deg); } 82% { transform: rotate(4deg); } 88% { transform: rotate(0); } }

.st-freude .j-figur { animation: j-huepfen .55s ease-out 2; }
.st-freude .j-kopf { animation: j-nicken-froh 1.1s ease-in-out infinite; }
.st-freude .j-funken path { transform-origin: center; transform-box: fill-box; animation: j-funkeln 1.2s ease-in-out infinite; }
.st-freude .j-funken .f2 { animation-delay: .3s; } .st-freude .j-funken .f3 { animation-delay: .6s; }
@keyframes j-huepfen { 40% { transform: translateY(-14px) scaleY(1.03); } 80% { transform: translateY(0) scaleY(.94); } }
@keyframes j-nicken-froh { 50% { transform: rotate(-6deg); } }
@keyframes j-funkeln { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 40% { transform: scale(1.15) rotate(45deg); opacity: 1; } }

.st-gruebeln .j-kopf { animation: j-schief 2.4s ease-in-out infinite; }
.st-gruebeln .j-frage { animation: j-frage 1.8s ease-in-out infinite; transform-origin: 136px 18px; }
@keyframes j-schief { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(-13deg) translateY(1px); } }
@keyframes j-frage { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-5px) rotate(8deg); } }

.st-schlaf .j-kopf { transform: rotate(13deg) translateY(3px); }
.st-schlaf .j-panzer { animation-duration: 5s; }
.st-schlaf .j-zzz { color: var(--leise); }
.st-schlaf .j-zzz text { animation: j-zzz 3s ease-in infinite; opacity: 0; }
.st-schlaf .j-zzz .z2 { animation-delay: 1s; } .st-schlaf .j-zzz .z3 { animation-delay: 2s; }
@keyframes j-zzz { 0% { opacity: 0; transform: translate(-6px, 8px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -10px); } }

.st-jubel .j-figur { animation: j-sprung .9s ease-in-out infinite; }
.st-jubel .j-bein.vr { animation: j-winken .45s ease-in-out infinite alternate; }
.st-jubel .j-konfetti rect { transform-box: fill-box; transform-origin: center; animation: j-konfetti 1.6s ease-in infinite; }
.st-jubel .j-konfetti .k1 { animation-delay: .25s; } .st-jubel .j-konfetti .k2 { animation-delay: .5s; }
.st-jubel .j-konfetti .k3 { animation-delay: .75s; } .st-jubel .j-konfetti .k4 { animation-delay: 1s; } .st-jubel .j-konfetti .k5 { animation-delay: 1.25s; }
@keyframes j-sprung { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-16px) rotate(-3deg); } 60% { transform: translateY(0) scaleY(.95); } }
@keyframes j-winken { from { transform: rotate(-20deg); } to { transform: rotate(-75deg); } }
@keyframes j-konfetti { 0% { transform: translateY(-10px) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(70px) rotate(540deg); opacity: 0; } }

.st-laufen .j-figur { animation: j-wackeln .5s ease-in-out infinite; }
.st-laufen .j-bein.vl, .st-laufen .j-bein.hr { animation: j-schritt .5s ease-in-out infinite; }
.st-laufen .j-bein.vr, .st-laufen .j-bein.hl { animation: j-schritt .5s ease-in-out infinite reverse; }
.st-laufen .j-staub circle { animation: j-staub 1s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.st-laufen .j-staub .s2 { animation-delay: .5s; }
@keyframes j-wackeln { 50% { transform: translateY(-3px) rotate(1.5deg); } }
@keyframes j-schritt { 0%, 100% { transform: rotate(18deg); } 50% { transform: rotate(-18deg); } }
@keyframes j-staub { from { transform: scale(.4); opacity: .6; } to { transform: scale(1.6) translateX(-6px); opacity: 0; } }

.st-winken .j-bein.vr { animation: j-winken .5s ease-in-out 6 alternate; }
.st-winken .j-kopf { animation: j-nicken-froh 1s ease-in-out 3; }

/* Antippen */
.jabuti.tipp .j-figur { animation: j-huepfen .5s ease-out 1; }
.jabuti.dreh svg { animation: j-dreh .9s cubic-bezier(.5, -0.3, .5, 1.3) 1; }
@keyframes j-dreh { to { transform: rotate(360deg); } }

/* Einsatzorte */
.hero-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.hero-kopf .jabuti { margin: 0 -6px -4px 0; }
/* Schildkröte + Sprechblase brauchen oben Platz, sonst verschwinden sie unter der Kopfzeile (Tablet, 0.8.0) */
.hero-kopf:has(.jabuti-sprech), .hero-kopf:has([data-sprech]) { padding-top: 30px; }
.kopf + .inhalt, .inhalt { scroll-padding-top: 70px; }
.urteil-zeile { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.urteil-zeile .jabuti { margin: 16px 0 -6px; }
.urteil-zeile .jabuti-sprech { right: 55%; left: auto; }   /* Blase nach links: rechts ist kein Platz */
.urteil-zeile .jabuti-sprech::after { right: 12px; left: auto; }
.fertig .jabuti { margin: 26px auto 4px; display: block; }
.fertig .jabuti-sprech { right: 50%; transform-origin: bottom right; }
.blatt .jabuti { display: block; margin: -58px auto 4px; }
.laden-box { text-align: center; padding: 40px 10px; }
.laden-box .jabuti { display: block; margin: 0 auto 8px; }
.kopf .marke img { transition: transform .3s; }
.kopf .marke:hover img, .kopf .marke:active img { transform: rotate(-12deg) scale(1.1); }

@media (prefers-reduced-motion: reduce) {
  .jabuti *, .jabuti svg, .jabuti-sprech { animation: none !important; }
  .st-schlaf .j-zzz text { opacity: 1; }
  .st-jubel .j-konfetti rect, .st-freude .j-funken path { opacity: 1; }
}

/* ===================================================================== Kursweg (0.6.2, E-32) */
.stufenleiste { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; }
.stufe { background: var(--flaeche-2); border-radius: 14px; padding: 10px; text-align: center; border: 2px solid transparent; }
.stufe b { font-size: 1.3rem; display: block; margin-bottom: 6px; }
.stufe span { font-size: .75rem; color: var(--leise); display: block; margin-top: 6px; }
.stufe.aktiv { border-color: var(--primaer); background: var(--tint); }
.stufe.geschafft b { color: var(--gut); }
.kursstand .jetzt { margin: 14px 0 0; line-height: 1.5; }
.kursweg { border-top: 1px solid var(--linie); padding: 10px 0; }
.kursweg summary { cursor: pointer; padding: 4px 0; }
.einheiten { list-style: none; padding: 0; margin: 8px 0 0; }
.einheiten li { display: grid; grid-template-columns: 26px 1fr 60px; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; }
.einheiten li.jetzt { background: var(--tint); font-weight: 700; }
.einheiten li.st-offen { color: var(--leise); }
.einheiten .sym { text-align: center; }
.einheiten .mini { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.einheiten .mini span { display: block; height: 100%; background: var(--primaer); }
.einheiten li.st-sicher .mini span { background: var(--akzent); }
.satzzeile { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.satzzeile:last-child { border-bottom: 0; }
.satzzeile .pt { font-weight: 700; font-size: 1.05rem; }
.erklaerung summary { cursor: pointer; }
.leer { text-align: center; padding: 10px; }
.leer .jabuti { display: block; margin: 0 auto; }
.start-hero .kursinfo { font-size: .9rem; opacity: .95; margin: -4px 0 12px; }
.start-hero .kursinfo a { color: inherit; }

/* ===================================================================== Ressourcen-Monitor (0.6.2, E-33) */
.monitor { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.monitor .mess { background: var(--flaeche-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.monitor .mess > span { font-size: .8rem; color: var(--leise); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.monitor .mess b { font-size: 1.05rem; }
.balkenzeile > div { transition: width .6s ease; }
.balkenzeile > div.mittel { background: var(--warn); }
.balkenzeile > div.hoch { background: var(--schlecht); }
.vertonung { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--tint); color: var(--tint-text); }
.vertonung[hidden] { display: none; }
.vertonung .jetzt-text { font-weight: 700; margin-top: 2px; }

/* ===================================================================== Splash und Startmenü (0.6.3, E-34) */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
          background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--primaer) 75%, var(--akzent)), var(--primaer) 70%);
          color: var(--primaer-text); text-align: center; transition: opacity .5s ease, transform .5s ease; }
.splash[hidden] { display: none; }
.splash.weg { opacity: 0; transform: scale(1.06); pointer-events: none; }
.splash h1 { font-size: 3rem; font-weight: 900; margin: 6px 0 2px; letter-spacing: -.02em; animation: splash-hoch .7s .3s both; }
.splash p { margin: 0; opacity: .9; animation: splash-hoch .7s .45s both; }
.splash .jabuti { animation: splash-rein 1.1s cubic-bezier(.2, .8, .3, 1) both; color: var(--primaer-text); }
.splash-punkte { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.splash-punkte i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .35; animation: splash-punkt 1s infinite; }
.splash-punkte i:nth-child(2) { animation-delay: .15s; } .splash-punkte i:nth-child(3) { animation-delay: .3s; }
.splash-fuss { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); font-size: .8rem; opacity: .75 !important; }
@keyframes splash-rein { from { transform: translateX(-70vw); } }
@keyframes splash-hoch { from { transform: translateY(14px); opacity: 0; } }
@keyframes splash-punkt { 50% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .splash *, .splash .jabuti { animation: none !important; } }

.menue-hero { padding-bottom: 16px; }
.menue-hero .hallo { margin: 0; font-size: 1.05rem; opacity: .9; }
.menue-hero h1 { margin: 0 0 4px; font-size: 2.1rem; }
.menue-hero .serie { margin: 2px 0 0; font-size: .95rem; }
.menue-hero .heute { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.menue-hero .heute p { margin: 0 0 10px; }
.ring { --p: 0; flex: none; width: 88px; height: 88px; border-radius: 50%; display: grid; place-content: center; text-align: center;
        background: radial-gradient(closest-side, color-mix(in srgb, var(--primaer) 80%, #000) 78%, transparent 80% 100%),
                    conic-gradient(var(--akzent) calc(var(--p) * 1%), rgba(255, 255, 255, .25) 0); }
.ring b { font-size: 1.5rem; line-height: 1; } .ring span { font-size: .68rem; opacity: .9; }
.gross-knopf { display: block; text-align: center; background: var(--flaeche); color: var(--primaer); font-weight: 800; font-size: 1.08rem;
               text-decoration: none; }
.gross-knopf.zweit-hell { background: rgba(255, 255, 255, .2); color: var(--primaer-text); }
.wochenpunkte { display: flex; justify-content: space-between; margin-top: 16px; }
.wochenpunkte span { display: grid; justify-items: center; gap: 4px; font-size: .72rem; opacity: .9; }
.wochenpunkte i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); }
.wochenpunkte .voll i { background: var(--akzent); border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(242, 179, 61, .25); }
.wochenpunkte .tag-heute { font-weight: 800; opacity: 1; }
.wochenpunkte .tag-heute i { border-color: #fff; border-width: 3px; }
.wochenpunkte .zukunft { opacity: .5; }
.kachel.hervor { border: 2px solid var(--akzent); }
.satz-des-tages .pt { font-size: 1.3rem; font-weight: 800; margin: 6px 0 2px; }
.satz-des-tages .leise { margin: 0 0 10px; }
.menue-raster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0; }
.menue-feld { background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); padding: 16px 14px; text-decoration: none;
              color: var(--text); display: grid; gap: 2px; transition: transform .15s; }
.menue-feld:active { transform: scale(.97); }
.menue-feld span { font-size: 1.9rem; margin-bottom: 4px; }
.menue-feld small { color: var(--leise); font-size: .8rem; }
.tipp p { margin: 6px 0 0; }
.fusszeile { text-align: center; color: var(--leise); font-size: .78rem; margin: 22px 0 8px; }

/* ===================================================================== Statistik-Diagramme (0.6.4, E-36) */
.diagramm-svg { width: 100%; height: auto; display: block; }
.diagramm-svg .gitter { stroke: var(--linie); stroke-width: 1; }
.diagramm-svg .ziel { stroke: var(--akzent); stroke-width: 1.5; stroke-dasharray: 5 4; }
.diagramm-svg .achse { fill: var(--leise); font-size: 11px; font-family: inherit; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; margin-top: 6px; color: var(--leise); align-items: center; }
.legende i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.kalender-box { overflow-x: auto; }
.kalender rect.k-1 { fill: transparent; }
.kalender rect.k0, .legende i.k0 { fill: var(--bg-2); background: var(--bg-2); }
.kalender rect.k1, .legende i.k1 { fill: color-mix(in srgb, var(--primaer) 30%, var(--bg-2)); background: color-mix(in srgb, var(--primaer) 30%, var(--bg-2)); }
.kalender rect.k2, .legende i.k2 { fill: color-mix(in srgb, var(--primaer) 55%, var(--bg-2)); background: color-mix(in srgb, var(--primaer) 55%, var(--bg-2)); }
.kalender rect.k3, .legende i.k3 { fill: color-mix(in srgb, var(--primaer) 80%, var(--bg-2)); background: color-mix(in srgb, var(--primaer) 80%, var(--bg-2)); }
.kalender rect.k4, .legende i.k4 { fill: var(--primaer); background: var(--primaer); }
table.statistik td, table.statistik th { white-space: nowrap; }

/* ===================================================================== Meldungen, Profil (0.6.4, E-37/E-38) */
.melden-zeile { text-align: center; margin: 12px 0 0; }
.melden-zeile button { font-size: .85rem; padding: 6px 12px; color: var(--leise); }
.blatt .wahl { font-weight: 500; color: var(--text); margin: 6px 0; align-items: flex-start; }
.blatt textarea, .karte-box textarea { width: 100%; box-sizing: border-box; margin-top: 8px; font: inherit; padding: 10px;
  border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche-2); color: var(--text); }
.zaehler { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; background: var(--schlecht); color: #fff;
  font-size: .72rem; font-weight: 800; text-align: center; }
.meldung-karte.st-erledigt, .meldung-karte.st-abgelehnt { opacity: .7; }
.meldung-form { gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.formular input, .formular select { width: 100%; box-sizing: border-box; }
ul.errorlist { color: var(--schlecht); margin: 4px 0; padding-left: 18px; font-size: .88rem; }

/* ===================================================================== Wortpaare (0.6.4, E-39) */
.wp-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.wp-kopf h2 { margin: 2px 0 6px; }
.wp-feld { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.wp-spalte { display: grid; gap: 10px; align-content: start; }
.wp-karte { background: var(--flaeche); color: var(--text); box-shadow: inset 0 0 0 2px var(--linie), 0 2px 0 var(--linie);
  font-weight: 700; font-size: 1.02rem; padding: 14px 10px; min-height: 54px; transition: transform .12s, background .2s, opacity .4s; }
.wp-karte.gewaehlt { background: var(--tint); color: var(--tint-text); box-shadow: inset 0 0 0 2px var(--primaer), 0 2px 0 var(--primaer); }
.wp-karte.richtig { background: var(--gut-hell); color: var(--gut); box-shadow: inset 0 0 0 2px var(--gut); opacity: .55; transform: scale(.96); }
.wp-karte.falsch { background: var(--schlecht-hell); color: var(--schlecht); box-shadow: inset 0 0 0 2px var(--schlecht); animation: wp-wackeln .4s; }
@keyframes wp-wackeln { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.wp-ende { text-align: center; margin-top: 14px; }
.wp-ende .jabuti { display: block; margin: 8px auto 0; }
@media (prefers-reduced-motion: reduce) { .wp-karte.falsch { animation: none; } }

/* Tagesziel / Abschluss (0.6.5, E-41) */
.knoepfe.senkrecht { display: grid; gap: 10px; margin: 12px 0; }
.knoepfe.senkrecht .knopf { text-align: center; text-decoration: none; }
.klein-titel { font-size: 1rem; margin: 18px 0 4px; color: var(--leise); }

/* ===================================================================== Größere Schrift, deutliche Rückmeldung (0.7.0, E-43) */
html { font-size: 112.5%; }          /* 18 px statt 16 px – alle rem-Größen wachsen mit */
.satz { font-size: 1.75rem; }
.de { font-size: 1.15rem; }
.lernkarte input[type=text], #eingabe { font-size: 1.3rem !important; padding: 14px 16px; }
.hinweis { font-size: 1.02rem; }
.urteil-zeile { margin: -4px -4px 14px; padding: 14px 16px; border-radius: 18px; gap: 14px; min-height: 0;
  border: 3px solid transparent; animation: urteil-rein .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.urteil-zeile.richtig { background: var(--gut-hell); border-color: var(--gut); }
.urteil-zeile.fast { background: var(--warn-hell); border-color: var(--warn); }
.urteil-zeile.falsch { background: var(--schlecht-hell); border-color: var(--schlecht); animation: urteil-rein .35s both, urteil-wackeln .45s .1s; }
.urteil-symbol { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-content: center;
  font-size: 1.9rem; font-weight: 900; color: var(--flaeche); line-height: 1; }
.urteil-zeile.richtig .urteil-symbol { background: var(--gut); }
.urteil-zeile.fast .urteil-symbol { background: var(--warn); }
.urteil-zeile.falsch .urteil-symbol { background: var(--schlecht); }
.urteil-text { flex: 1; min-width: 0; }
.urteil { font-size: 1.55rem; line-height: 1.1; margin: 0; }
.urteil-unter { font-size: .95rem; color: var(--text); opacity: .85; margin-top: 3px; }
.urteil-zeile .jabuti { margin: 0 0 -8px; }
.lernkarte.erg-richtig { box-shadow: 0 0 0 3px var(--gut), var(--schatten); }
.lernkarte.erg-fast { box-shadow: 0 0 0 3px var(--warn), var(--schatten); }
.lernkarte.erg-falsch { box-shadow: 0 0 0 3px var(--schlecht), var(--schatten); }
.deine-antwort { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 1.15rem; margin: 0 0 8px; }
.deine-antwort span { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--schlecht); }
.deine-antwort s { text-decoration-color: var(--schlecht); text-decoration-thickness: 2px; color: var(--leise); }
.loesung-titel { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--gut); margin-top: 6px; }
.loesung { font-size: 1.4rem; font-weight: 700; }
@keyframes urteil-rein { from { transform: scale(.9); opacity: 0; } }
@keyframes urteil-wackeln { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@media (prefers-reduced-motion: reduce) { .urteil-zeile { animation: none !important; } }

/* 0.7.0: Kursliste in den Einstellungen */
.kurszeile { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linie, rgba(0,0,0,.08)); }
.kurszeile:first-of-type { border-top: 0; }
.kursflagge { font-size: 2rem; line-height: 1; }

/* ------------------------------------------------------------------ Satzbaukasten (0.7.1, E-49) */
.bk-ziel { min-height: 64px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px;
  margin: 14px 0 10px; border: 2px dashed var(--akzent); border-radius: 16px; background: var(--flaeche2, transparent); }
.bk-leer { opacity: .6; font-size: .95rem; }
.bk-pool { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.bk-kachel { font: inherit; font-size: 1.15rem; font-weight: 600; padding: 10px 14px; min-height: 48px; border-radius: 12px;
  background: var(--flaeche); color: var(--text); border: 2px solid var(--rand, rgba(0,0,0,.15));
  box-shadow: 0 3px 0 rgba(0,0,0,.12); cursor: pointer; transition: transform .08s ease, opacity .15s ease; }
.bk-kachel:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.bk-kachel.gesetzt { border-color: var(--akzent); }
.bk-kachel.benutzt { visibility: hidden; }
.bk-umschalten { text-align: center; margin: 8px 0 0; }

/* ------------------------------------------------------------------ Artikel-Wischer (0.7.1, E-50) */
:root { --g-m: #2f6db5; --g-f: #c2412d; --g-n: #2e8653; }
.aw-buehne { position: relative; height: 230px; display: grid; place-items: center; margin: 8px 0; touch-action: none; }
.aw-karte { width: min(78%, 300px); min-height: 150px; border-radius: 22px; display: grid; place-content: center; gap: 6px;
  text-align: center; padding: 18px; background: var(--flaeche); color: var(--text); border: 3px solid var(--rand, rgba(0,0,0,.15));
  box-shadow: var(--schatten); touch-action: none; user-select: none; cursor: grab; transition: transform .25s ease, background .2s ease; }
.aw-karte.zieht { transition: none; cursor: grabbing; }
.aw-karte.neu { animation: aw-rein .25s ease; }
@keyframes aw-rein { from { transform: scale(.85); opacity: 0; } }
.aw-wort { font-size: 2.1rem; font-weight: 800; line-height: 1.15; word-break: break-word; }
.aw-bed { font-size: 1rem; opacity: .75; }
.aw-karte[data-zeigt="m"] { border-color: var(--g-m); }
.aw-karte[data-zeigt="f"] { border-color: var(--g-f); }
.aw-karte[data-zeigt="n"] { border-color: var(--g-n); }
.aw-karte.g-m.ok, .aw-karte.g-m.nein { background: var(--g-m); color: #fff; border-color: var(--g-m); }
.aw-karte.g-f.ok, .aw-karte.g-f.nein { background: var(--g-f); color: #fff; border-color: var(--g-f); }
.aw-karte.g-n.ok, .aw-karte.g-n.nein { background: var(--g-n); color: #fff; border-color: var(--g-n); }
.aw-karte.ok.weg-links { transform: translateX(-130%) rotate(-14deg); opacity: 0; transition-delay: .35s; }
.aw-karte.ok.weg-rechts { transform: translateX(130%) rotate(14deg); opacity: 0; transition-delay: .35s; }
.aw-karte.ok.weg-oben { transform: translateY(-120%); opacity: 0; transition-delay: .35s; }
.aw-karte.nein { animation: wp-wackeln .4s ease; }
.aw-knoepfe { display: flex; gap: 10px; justify-content: center; }
.aw-knopf { flex: 1; max-width: 140px; font-size: 1.3rem; font-weight: 800; color: #fff; border: 0; min-height: 56px; border-radius: 16px; }
.aw-knopf.g-m { background: var(--g-m); }
.aw-knopf.g-f { background: var(--g-f); }
.aw-knopf.g-n { background: var(--g-n); }
.aw-knopf .pfeil { opacity: .8; margin-right: 4px; }
.aw-stand { text-align: center; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .aw-karte, .aw-karte.neu, .aw-karte.nein { animation: none; transition: none; } }
.aw-symbol { font-size: 1.8rem; font-weight: 900; line-height: 1; }

/* Tablets (0.8.0): Leiste mittig, Schrift lesbar, Inhalt etwas breiter */
@media (min-width: 700px) {
  .leiste { justify-content: center; }
  .leiste a { flex: 0 1 120px; font-size: .8rem; padding: 10px 0 11px; }
  .leiste a span { font-size: 1.55rem; }
  .inhalt { max-width: 760px; }
}

/* Benachrichtigungen (0.8.1) */
.push-status { padding: 10px 12px; border-radius: var(--radius-s); background: var(--tint); color: var(--tint-text); font-size: .95rem; }
.push-status.gut { background: var(--gut-hell); color: var(--text); }
.push-status.warn { background: var(--warn-hell); color: var(--text); }
label.haken { display: flex; gap: 10px; align-items: center; font-weight: 600; }
label.haken input { width: 22px; height: 22px; flex: none; }
#push-box .knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
#push-box [hidden] { display: none !important; }
#push-box input[type="time"] { font-size: 1.1rem; padding: 8px 12px; min-width: 9em; }

/* ---------------------------------------------------------------- Lernablauf 2.0 (0.9.0/0.9.1) */
.wahl { display: grid; gap: 10px; margin: 14px 0 8px; }
.wahl-knopf { text-align: left; background: var(--flaeche); color: var(--text); border: 2px solid var(--linie);
  border-radius: var(--radius-s, 12px); padding: 14px 16px; font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.wahl-knopf:not(:disabled):hover { border-color: var(--primaer); }
.wahl-knopf.richtig { border-color: var(--gut); background: var(--gut-hell); }
.wahl-knopf.falsch { border-color: var(--schlecht); background: var(--schlecht-hell); }
.wahl-knopf:disabled { opacity: 1; cursor: default; }
.wahl.bilder { grid-template-columns: repeat(2, 1fr); }
.wahl-knopf.gross { font-size: 3.2rem; text-align: center; padding: 14px 0; line-height: 1.1; }
.wortbild { font-size: 3.6rem; line-height: 1; text-align: center; margin: 4px 0 8px; }
.wortbild.klein { font-size: 2.6rem; margin: 0 0 4px; }
.de.verdeckt { cursor: pointer; color: var(--leise); border: 1px dashed var(--linie); border-radius: 10px;
  padding: 8px 12px; display: inline-block; font-size: .95rem; }
.raten-kopf { display: flex; justify-content: center; margin: 4px 0; }
.toast { position: fixed; left: 50%; bottom: calc(var(--leiste-h, 70px) + 18px); transform: translateX(-50%); z-index: 60;
  background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 14px; max-width: min(92vw, 520px);
  box-shadow: 0 6px 24px rgba(0,0,0,.25); font-weight: 600; transition: opacity .5s, transform .5s; }
.toast.weg { opacity: 0; transform: translate(-50%, 10px); }
.sticker-neu { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 6px 0 10px; font-weight: 600; }
.sticker { font-size: 3rem; display: inline-block; animation: sticker-pop .8s ease-out; }
@keyframes sticker-pop { 0% { transform: scale(.2) rotate(-30deg); } 70% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .sticker { animation: none; } }

/* ---------------------------------------------------------------- Junior (0.10.0) */
body.junior { font-size: 1.12rem; }
body.junior .lernkarte .satz { font-size: 1.7rem; }
body.junior button, body.junior .knopf { min-height: 56px; font-size: 1.1rem; }
body.junior .wahl-knopf { font-size: 1.25rem; padding: 18px; }
body.junior .bk-kachel { font-size: 1.3rem; padding: 12px 16px; }
.junior-weiter { display: flex; gap: 10px; }
.junior-weiter button { flex: 1; font-size: 1.2rem; }

/* ---------------------------------------------------------------- Geschichten und Garten (0.10.0) */
.gs-zeilen { display: flex; flex-direction: column; gap: 10px; }
.gs-zeile { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; animation: gs-rein .35s ease-out; }
.gs-zeile.gs-jabuti { flex-direction: row-reverse; }
.gs-zeile.gs-jabuti .gs-blase { background: var(--tint); color: var(--tint-text); }
.gs-zeile.spricht .gs-blase { outline: 3px solid var(--akzent); }
@keyframes gs-rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gs-zeile { animation: none; } }
.gs-av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem;
  background: var(--flaeche-2); }
.gs-av.buchst { font-size: 1.1rem; font-weight: 800; color: #fff; background: var(--primaer); }
.gs-av.buchst[data-f="1"] { background: #b5523b; } .gs-av.buchst[data-f="2"] { background: #6b4fa0; }
.gs-av.buchst[data-f="3"] { background: #1b6f8c; } .gs-av.buchst[data-f="4"] { background: #9a6400; }
.gs-blase { flex: 1; background: var(--flaeche-2); border-radius: 16px; padding: 10px 14px; }
.gs-name { font-size: .78rem; font-weight: 700; color: var(--leise); text-transform: uppercase; letter-spacing: .04em; }
.gs-text { font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.gs-ueb { color: var(--leise); margin-top: 4px; }
.gs-hoer { flex: none; }
.gs-frage { font-size: 1.3rem; margin: 6px 0; }
.gs-urteil.gut { color: var(--gut); font-weight: 700; }
.geschichte-kachel.gesperrt { opacity: .6; }
.beet { display: flex; flex-wrap: wrap; gap: 2px; font-size: 1.7rem; line-height: 1.2; }
.album { display: flex; flex-wrap: wrap; gap: 8px; font-size: 2.2rem; }
.sticker-feld { position: relative; }
.sticker-feld small { position: absolute; right: -6px; bottom: -4px; font-size: .7rem; background: var(--akzent); color: var(--akzent-text);
  border-radius: 8px; padding: 0 4px; font-weight: 700; }

/* Einladungen (0.10.1) */
.link-feld { display: flex; gap: 8px; margin: 10px 0; }
.link-feld input { flex: 1; font-family: ui-monospace, monospace; font-size: .9rem; }
.teilen { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.knopf.whatsapp { background: #25d366; color: #0b2e17; }
pre.nachricht { white-space: pre-wrap; background: var(--flaeche-2); padding: 10px; border-radius: 10px; font-size: .9rem; }
.einladung-neu { border: 2px solid var(--primaer); }

/* Statistik 0.10.1: Raster, Ring */
.diagramm-svg.raster rect.leer { fill: var(--bg-2); }
.diagramm-svg.raster rect.voll { fill: var(--primaer); }
.ring-box { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ring-box svg { width: 180px; flex: none; }
.ring-zahl { font-size: 28px; font-weight: 800; fill: var(--text); }
.legende.senkrecht { display: flex; flex-direction: column; gap: 6px; }
.kurs-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.kurs-stat .zahl b { font-size: 1.4rem; }
.protokoll td, .protokoll th { white-space: nowrap; }
.einsicht { background: var(--tint); color: var(--tint-text); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.balkenzeile.warn > div { background: var(--akzent); }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 26px; }
.spark i { display: block; width: 5px; background: var(--primaer); border-radius: 2px; min-height: 2px; opacity: .85; }
.spark i.null { background: var(--bg-2); }

/* Kopf: etwas größeres Logo, Version und Autor darunter (0.10.2) */
.marke img { width: 36px; height: 36px; }
.marke-text { display: flex; flex-direction: column; line-height: 1.05; }
.marke-text b { font-size: 1.2rem; }
.marke-text small { font-size: .66rem; font-weight: 600; color: var(--leise); letter-spacing: .01em; white-space: nowrap; }

/* 0.11.0: Schalter unterwegs, Doppellücke */
.schalter { font-size: 1rem; }
.schalter.aus { opacity: .45; text-decoration: line-through; position: relative; }
.schalter.aus::after { content: ""; position: absolute; left: 22%; right: 22%; top: 50%; height: 2px; background: var(--schlecht); transform: rotate(-35deg); }
.luecke-feld { display: inline-block; min-width: 3.2em; min-height: 1.5em; padding: 0 8px; margin: 0 2px; vertical-align: baseline;
  border: none; border-bottom: 3px solid var(--primaer); border-radius: 6px 6px 0 0; background: var(--tint); color: var(--tint-text);
  font: inherit; font-weight: 700; }
.luecke-feld.voll { background: var(--akzent-hell); color: var(--akzent-text); border-bottom-color: var(--akzent); }

/* Familie (0.11.0) */
.familie-karte.ich { border: 2px solid var(--primaer); }
.fam-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primaer); color: var(--primaer-text);
  font-weight: 800; font-size: 1.2rem; margin-right: 10px; flex: none; }
.fam-serie { font-size: 1.3rem; }
.fam-woche { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0 6px; }
.fam-tag { text-align: center; }
.fam-saeule { height: 46px; background: var(--bg-2); border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.fam-saeule i { display: block; width: 100%; background: var(--primaer); min-height: 0; border-radius: 6px 6px 0 0; }
.fam-tag small { color: var(--leise); font-size: .72rem; }
.fam-zahlen { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; }
.fam-sticker { font-size: 1.5rem; margin: 6px 0 0; letter-spacing: 2px; }
.balkenzeile.hell { background: rgba(255,255,255,.25); height: 10px; }
.balkenzeile.hell > div { background: var(--akzent); }
.fam-tag.heute small { color: var(--primaer); font-weight: 800; }

/* Spracherkennung (0.11.0) */
.stt-ergebnis { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); }
.stt-woerter { font-size: 1.15rem; line-height: 1.6; }
.stt-woerter .ok { color: var(--gut); font-weight: 700; }
.stt-woerter .falsch { color: var(--schlecht); font-weight: 700; text-decoration: underline wavy; }
.stt-zeile { margin-top: 4px; }
/* Sitzungskopf mit 🎧/🎙 (0.11.0): auf schmalen Handys alles in einer Zeile */
.status > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status > .zeile { flex-wrap: nowrap; gap: 4px; flex: none; }
@media (max-width: 400px) {
  .status button.rund { width: 34px; height: 34px; font-size: .85rem; }
  .status { font-size: .78rem; gap: 6px; }
}
.start-hero .fam-ziel { color: rgba(255,255,255,.85); }

/* Verwaltung → Sprache → Erkennung (0.11.1) */
.tabs.unter { padding-top: 0; }
.tabs.unter a { font-size: .82rem; padding: 6px 12px; }
pre.code { background: var(--bg-2); padding: 10px 12px; border-radius: 10px; overflow-x: auto; font-size: .85rem; user-select: all; }
.stt-aufnahme { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stt-aufnahme .aufnahme { flex: 0 0 auto; width: auto; min-width: 190px; }
.stt-aufnahme .aufnahme.laeuft { background: var(--schlecht); color: #fff; }
.stt-pegel { flex: 1; min-width: 120px; height: 12px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.stt-pegel > div { height: 100%; width: 0; background: var(--gut); transition: width .08s; }
.stt-treffer { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 240px; overflow-y: auto; }
.stt-treffer button { text-align: left; font-weight: 500; }
.stt-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.stt-spalten > div { background: var(--flaeche-2); border-radius: 12px; padding: 12px; }
.stt-gross { font-size: 2rem; font-weight: 800; }
.stt-conf { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.stt-conf span { padding: 2px 8px; border-radius: 99px; font-size: .85rem; background: var(--gut-hell); }
.stt-conf span.mittel { background: var(--warn-hell); }
.stt-conf span.niedrig { background: var(--schlecht-hell); }
#p-tabelle td { font-size: .85rem; vertical-align: top; }

/* QR-Code der Einladung (0.11.4): immer schwarz auf weiß, groß genug für die Kamera */
.qr-feld { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.qr-bild { background: #fff; padding: 10px; border-radius: 14px; border: 1px solid var(--linie); cursor: zoom-in;
  width: min(100%, 360px); flex: 0 0 auto; line-height: 0; box-shadow: none; }
.qr-bild svg, .qr-gross svg { width: 100%; height: auto; display: block; image-rendering: pixelated; shape-rendering: crispEdges; }
.qr-text { flex: 1 1 220px; }
@media (max-width: 600px) { .qr-bild { width: 100%; max-width: 420px; margin: 0 auto; } .qr-feld { justify-content: center; } }
.qr-ueberlagerung { position: fixed; inset: 0; z-index: 1000; background: #fff; color: #111; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.qr-ueberlagerung[hidden] { display: none; }
.qr-gross { width: min(92vw, 80vh, 900px); }
.qr-ueberlagerung p { margin: 0; font-size: 1.1rem; text-align: center; }
.qr-ueberlagerung button { background: #111; color: #fff; }
