:root {
  --bg: #000; --karte: #111; --text: #f3efe4; --text2: #c5bba8; --linie: rgba(212,179,106,.4);
  --akzent: #d4b36a; --knopf: #c9a45a; --knopf-text: #1a1408; --feld: #0c0c0c;
}
html[data-theme="hell"] {
  --bg: #f6f1e7; --karte: #fffaf2; --text: #1c160f; --text2: #8a6a32; --linie: #e4d3b4;
  --akzent: #b08a45; --knopf: #c4a15a; --knopf-text: #fff; --feld: #fffaf2;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 600 18px/1.5 Palatino, "Palatino Linotype", Georgia, serif; min-height: 100vh; }
h1, h2, h3, button, .theme, .knopf, .zeile { font: inherit; font-weight: 700; }
a { color: var(--akzent); }
.innen { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }
.kopf { position: sticky; top: 0; z-index: 3; background: var(--bg); }
.kopfzeile { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 12px; padding: 16px 0; }
.logo { text-decoration: none; color: var(--akzent); }
.logo b { font-size: 28px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.sprachen { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.theme, .knopf, a.knopf, button, .zeile { border-radius: 999px; border: 1px solid var(--linie); background: var(--feld); color: var(--text); padding: 8px 14px; text-decoration: none; cursor: pointer; }
.theme.an, a.knopf, button.knopf.voll, .tor-karte button {
  background: linear-gradient(180deg, #f0d78c, #c4a15a 48%, #8d6b32);
  color: #1a1408;
  border-color: #e6c87a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.schublade { position: fixed; top: 76px; right: 24px; z-index: 20; width: 300px; background: var(--karte); color: var(--text); border: 1px solid var(--linie); border-radius: 22px; padding: 22px 20px; }
.schublade[hidden] { display: none; }
.schublade h2 { font-size: 22px; margin: 8px 0; }
.fein { color: var(--akzent); margin: 0; font-size: 14px; }
.name { margin: 2px 0 12px; }
.modus { display: flex; gap: 8px; }
.zeile svg { vertical-align: -2px; margin-right: 6px; }
main { padding: 28px 0 48px; }
h1 { font-size: clamp(36px, 5vw, 52px); margin: 8px 0 12px; font-weight: 500; }
.tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--akzent); }
.lead, .meta { color: var(--text2); }
.raster { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) { .raster, .kopfzeile { grid-template-columns: 1fr; } }
.karte summary { cursor: pointer; font-weight: 650; }
.loesung { background: #b7e4c7; color: #1a1408; border-radius: 8px; padding: 2px 6px; }
.fragenfenster { min-height: 440px; display: flex; flex-direction: column; }
.fragenfenster h2 { min-height: 5.4em; }
.frageaktionen { display: flex; gap: 8px; margin-top: auto; }
.frageende { margin-left: auto; display: flex; gap: 8px; }
.opt input { position: absolute; left: 0; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt:has(input:checked), .opt.gewaehlt { background: #ffe36e; color: #1a1408; border-color: #e2c15a; }
.opt { position: relative; cursor: pointer; }
.opt.rot { background: #f4b4ae; color: #1a1408; }
.opt.gruen { background: #b7e4c7; color: #1a1408; }
.beispiel { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 10px 12px; white-space: pre-line; }
p.falsch { background: #f4b4ae; color: #1a1408; border-radius: 14px; padding: 10px 12px; }
p.richtig { background: #e8f6ee; color: #1a1408; border-radius: 14px; padding: 10px 12px; }
.liste .zeile { justify-content: flex-start; }
input, select { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linie); background: var(--feld); color: var(--text); font: inherit; }
.opt { display: block; margin: 0 0 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--linie); background: var(--feld); }
table { width: 100%; border-collapse: collapse; background: var(--karte); }
th, td { border: 1px solid var(--linie); padding: 8px 10px; text-align: left; }
footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; text-align: center; color: var(--akzent); background: transparent; padding: 8px 0 6px; pointer-events: none; }
main { padding-bottom: 72px; }
.lunetten { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.dreh { transform-origin: 600px 400px; animation: dreh 48s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
body.tor { background: #000; color: #f3efe4; overflow: hidden; }
body.tor .fluester { letter-spacing: .28em; text-transform: uppercase; color: #d4b36a; font-size: 12px; }
body.tor h1 { font-weight: 500; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.02; white-space: nowrap; }
.tor-sub { color: #c5bba8; }
.tor-karte { position: relative; z-index: 1; width: min(460px, calc(100% - 32px)); margin: 16vh auto 0; text-align: center; }
.tor-karte input { text-align: center; letter-spacing: .18em; background: #000; border-color: #d4b36a; color: #f3efe4; }
.tor-karte button { margin-top: 16px; background: #d4b36a; color: #1a1408; border: 0; cursor: pointer; }
.tor-fuss { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 1; text-align: center; color: #c5bba8; }
.lunetten svg { width: 100%; height: 100%; }
.lunetten ellipse { fill: none; stroke: var(--akzent); stroke-width: 1.1; opacity: .45; }
.lunetten { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.kopf, main { position: relative; z-index: 1; }
footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; text-align: center; color: var(--akzent); background: transparent; padding: 8px 0 6px; pointer-events: none; }
.schublade { z-index: 30; }
.rechner { z-index: 31; }
.rechner { position: fixed; left: auto; right: 24px; bottom: 16px; width: 300px; background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; padding: 12px; display: none; z-index: 31; }
.zurueck { position: fixed; left: 16px; bottom: 12px; z-index: 4; }
main { padding-bottom: 90px; }
.reset-ecke form { display: flex; gap: 8px; }
.reset-ecke form[hidden] { display: none; }
.reset-ecke input { width: 180px; }
.punkte { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.punkt { width: 36px; height: 36px; padding: 0; }
.punkt.jetzt { outline: 2px solid var(--akzent); }
.punkt.mark { background: #c0392b; color: #fff; border-color: #c0392b; }
.frage-rahmen { background: #fffaf2; color: #1a1408; border: 2px solid #d4b36a; border-radius: 18px; padding: 18px 20px; }
.frage-rahmen .frage-gross { color: #1a1408; margin: 0; }
html[data-theme="hell"] .frage-rahmen { background: #000; color: #fff; }
html[data-theme="hell"] .frage-rahmen .frage-gross { color: #fff; }
.zeit { font-size: 28px; font-weight: 700; color: #f0d78c; margin: 0; }
.punkt.zu { opacity: .35; display: inline-flex; align-items: center; justify-content: center; }
.sprachspalte { display: flex; align-items: flex-start; justify-content: center; gap: 8px; }
.sprachblock { display: inline-grid !important; justify-items: stretch; width: auto !important; }
.sprachen { grid-row: 1; }
.sprachhinweis { grid-row: 2; width: 0 !important; min-width: 100% !important; box-sizing: border-box; margin: 8px 0 0 !important; padding: 8px 14px !important; border-radius: 999px !important; border: 1px solid var(--linie) !important; background: var(--feld) !important; color: var(--akzent) !important; text-align: center; font-size: 13px; }
#einstellungen { justify-self: end; align-self: start; }
.rechner-kopf { display: flex; justify-content: space-between; align-items: flex-start; }
.rechner .x { width: 28px; height: 28px; padding: 0; line-height: 1; border-radius: 999px; }
.rechner-tasten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rechner.offen { display: block; }
.material { width: 100%; height: 78vh; border: 1px solid var(--linie); background: var(--bg); }
.sperre { position: fixed; inset: 0; background: rgba(0,0,0,.86); z-index: 40; display: flex; align-items: center; justify-content: center; }
.sperre[hidden] { display: none; }
.navpunkte { display: flex; flex-wrap: wrap; gap: 6px; }
.punkt { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--linie); background: var(--feld); color: var(--text); }
body.tor { background: #000; color: #f3efe4; }
.tor-karte { width: min(460px, calc(100% - 32px)); margin: 16vh auto 0; text-align: center; position: relative; z-index: 1; }
.tor-karte h1 { font-size: clamp(42px, 7vw, 72px); font-weight: 500; }
.tor-karte button { margin-top: 16px; background: #d4b36a; color: #1a1408; border: 0; }
.tor-fuss { position: fixed; left: 0; right: 0; bottom: 18px; text-align: center; color: #c5bba8; }
.zeile { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; white-space: nowrap; }
.zeile svg { display: block; width: 16px; height: 16px; flex: 0 0 16px; margin: 0; }
/* Geschuetzte Knoepfe (Passwort/Code noetig): farblich umgekehrt */
.knopf.btn-locked, a.knopf.btn-locked, button.knopf.btn-locked, button.knopf.voll.btn-locked {
  background: #000; color: #f0d78c; border: 1px solid #e6c87a; box-shadow: none;
}
html[data-theme="hell"] .knopf.btn-locked, html[data-theme="hell"] a.knopf.btn-locked, html[data-theme="hell"] button.knopf.btn-locked, html[data-theme="hell"] button.knopf.voll.btn-locked {
  background: #fffaf2; color: #8d6b32; border: 1px solid #c4a15a; box-shadow: none;
}
/* "Alles zuruecksetzen" fest oben rechts */
.reset-ecke { position: fixed; top: 16px; right: 16px; z-index: 6; display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.reset-ecke .theme, .reset-ecke .knopf { line-height: 1.2; padding: 8px 14px; margin: 0; }
.kopfrechts { display: flex; justify-content: flex-end; gap: 8px; }
.kopfzeile > .kopfrechts { grid-column: 3; }
@media (max-width: 800px) { .kopfzeile > .kopfrechts { grid-column: auto; } .reset-ecke { position: static; justify-content: flex-end; margin: 0 auto; max-width: 1160px; padding: 0 16px 8px; } .reset-ecke form { flex-wrap: wrap; justify-content: flex-end; } }
@media (max-width: 1360px) { .reset-ecke { top: 72px; } }

/* ==========================================================================
   Theme D „Frisch · Petrol/Apricot“ (überschreibt die Farben oben, Struktur bleibt)
   Hell = Kühlweiß/Petrol/Apricot, Dunkel = Schieferblau/Petrol. Kontraste ≥ AA.
   ========================================================================== */
:root, html[data-theme="hell"] {
  --bg: #F7F9FC; --bg2: #EEF3F7; --karte: #FFFFFF; --text: #1F2A37; --text2: #5B6B7D;
  --linie: #D6E0E9; --akzent: #1F6F8B; --akzent-hell: #DDEFF4; --akzent-text: #1F6F8B;
  --apri: #F2A365; --apri-text: #A84E16; --apri-hell: #FCE6D4;
  --knopf: #1F6F8B; --knopf-text: #FFFFFF; --feld: #FFFFFF;
  --schatten: 0 1px 2px rgba(31,42,55,.05), 0 8px 24px rgba(31,42,55,.08);
  --wolke1: rgba(31,111,139,.10); --wolke2: rgba(242,163,101,.14); --wolke3: rgba(31,111,139,.06);
}
html[data-theme="dunkel"] {
  --bg: #0F1B24; --bg2: #14232E; --karte: #1A2C38; --text: #E6EDF3; --text2: #A3B4C4;
  --linie: #2C4352; --akzent: #5FB3CE; --akzent-hell: #18394A; --akzent-text: #7CC4DC;
  --apri: #F2A365; --apri-text: #F6B98A; --apri-hell: #3A2A20;
  --knopf: #5FB3CE; --knopf-text: #0F1B24; --feld: #1A2C38;
  --schatten: 0 1px 2px rgba(0,0,0,.25), 0 10px 28px rgba(0,0,0,.30);
  --wolke1: rgba(95,179,206,.10); --wolke2: rgba(242,163,101,.08); --wolke3: rgba(95,179,206,.05);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg: #0F1B24; --bg2: #14232E; --karte: #1A2C38; --text: #E6EDF3; --text2: #A3B4C4;
    --linie: #2C4352; --akzent: #5FB3CE; --akzent-hell: #18394A; --akzent-text: #7CC4DC;
    --apri: #F2A365; --apri-text: #F6B98A; --apri-hell: #3A2A20;
    --knopf: #5FB3CE; --knopf-text: #0F1B24; --feld: #1A2C38;
    --schatten: 0 1px 2px rgba(0,0,0,.25), 0 10px 28px rgba(0,0,0,.30);
    --wolke1: rgba(95,179,206,.10); --wolke2: rgba(242,163,101,.08); --wolke3: rgba(95,179,206,.05);
  }
}
html, body, body.tor {
  background-color: var(--bg);
  background-image:
    radial-gradient(42rem 30rem at 92% -6%, var(--wolke1), transparent 70%),
    radial-gradient(36rem 28rem at -8% 104%, var(--wolke2), transparent 70%),
    radial-gradient(30rem 22rem at 60% 60%, var(--wolke3), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed;
  color: var(--text);
}
body { font: 400 17px/1.55 Calibri, Carlito, "Segoe UI", Lato, system-ui, sans-serif; }
h1, h2, h3, button, .theme, .knopf, .zeile { font-family: inherit; font-weight: 700; }
h1 { font-weight: 700; letter-spacing: -.01em; color: var(--text); }
h2, h3 { color: var(--text); }
a { color: var(--akzent-text); }
.lunetten { display: none; }
.kopf { background: transparent; }
.logo { color: var(--akzent-text); }
.logo b { font-weight: 700; }
.tag { color: var(--akzent-text); font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.innen > .tag::before { content: ""; width: 34px; height: 8px; border-radius: 999px; background: var(--akzent); }
.karte .tag { background: var(--apri-hell); color: var(--apri-text); padding: 3px 10px; border-radius: 999px; }
.lead, .meta, .fein { color: var(--text2); }

/* Kacheln */
.karte { background: var(--karte); color: var(--text); border: 1px solid var(--linie); border-radius: 22px; box-shadow: var(--schatten); padding: 18px 22px; }
.raster { gap: 18px; }
.liste { display: grid; gap: 12px; }
.liste .karte.zeile { border-radius: 999px; padding: 14px 22px; justify-content: flex-start; color: var(--text); font-weight: 700; }
.liste .karte.zeile:hover { border-color: var(--akzent); }

/* Pillen: normal = Kontur, aktiv/frei = Petrol gefüllt */
.theme, .knopf, a.knopf, button, .zeile { background: var(--feld); color: var(--text); border: 1px solid var(--linie); box-shadow: none; }
.theme.an, a.knopf, button.knopf.voll, .tor-karte button {
  background: var(--knopf); color: var(--knopf-text); border: 1px solid var(--knopf); box-shadow: 0 2px 8px rgba(31,111,139,.22);
}
a.knopf:hover, button.knopf.voll:hover, .tor-karte button:hover { filter: brightness(1.06); }
/* Geschützt (Passwort/Code): umgekehrt = Umriss in Petrol + Schloss */
.knopf.btn-locked, a.knopf.btn-locked, button.knopf.btn-locked, button.knopf.voll.btn-locked,
html[data-theme="hell"] .knopf.btn-locked, html[data-theme="hell"] a.knopf.btn-locked, html[data-theme="hell"] button.knopf.btn-locked, html[data-theme="hell"] button.knopf.voll.btn-locked {
  background: var(--karte); color: var(--akzent-text); border: 2px solid var(--akzent); box-shadow: none;
  padding: 7px 13px; display: inline-flex; align-items: center; gap: 6px;
}
.knopf.btn-locked::before {
  content: ""; width: 13px; height: 13px; flex: 0 0 13px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2.5'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2.5'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.knopf.btn-locked:hover { background: var(--akzent-hell); }
:focus-visible { outline: 3px solid var(--apri); outline-offset: 2px; }

/* Felder, Schublade, Rechner */
input, select { background: var(--feld); color: var(--text); border: 1px solid var(--linie); }
input:focus, select:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 3px var(--akzent-hell); }
.schublade, .rechner { background: var(--karte); border-color: var(--linie); box-shadow: var(--schatten); }
.sprachhinweis { color: var(--text2) !important; }
footer { color: var(--text2); }
.zurueck { box-shadow: var(--schatten); }

/* Üben / IL / Klausur */
.frage-rahmen, html[data-theme="hell"] .frage-rahmen { background: var(--akzent-hell); color: var(--text); border: 0; border-left: 6px solid var(--akzent); border-radius: 18px; }
.frage-rahmen .frage-gross, html[data-theme="hell"] .frage-rahmen .frage-gross { color: var(--text); }
.opt { background: var(--karte); border-color: var(--linie); }
.opt:has(input:checked), .opt.gewaehlt { background: var(--apri-hell); color: var(--text); border-color: var(--apri); }
.zeit { color: var(--apri-text); }
.punkt.jetzt { outline-color: var(--akzent); }
.sperre { background: rgba(15,27,36,.82); }
.beispiel { background: var(--akzent-hell); border-color: transparent; }
table { background: var(--karte); }

/* Tür und Login */
body.tor { color: var(--text); }
.tor-karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 26px; box-shadow: var(--schatten); padding: 34px 32px 26px; width: min(500px, calc(100% - 32px)); margin-top: 12vh; }
body.tor h1, .tor-karte h1 { color: var(--text); font-weight: 700; font-size: clamp(28px, 4vw, 38px); white-space: normal; line-height: 1.15; }
body.tor .fluester { color: var(--akzent-text); }
.tor-sub, .tor-fuss { color: var(--text2); }
.tor-karte input { background: var(--feld); border-color: var(--linie); color: var(--text); }
.tor-karte button { border: 0; }
.tor-fehler { color: var(--apri-text); }

/* Sanftes Einblenden der Kacheln */
@keyframes einblenden { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.karte, .tor-karte { animation: einblenden .45s ease-out both; }
.raster .karte:nth-child(2) { animation-delay: .06s; } .raster .karte:nth-child(3) { animation-delay: .12s; }
.raster .karte:nth-child(4) { animation-delay: .18s; } .raster .karte:nth-child(5) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .karte, .tor-karte { animation: none; } }
h1 { line-height: 1.15; }
footer { background: linear-gradient(180deg, transparent, var(--bg2) 55%); padding-top: 18px; }
.zurueck { z-index: 6; }
/* Theme D – Feedback & Sperrfenster */
:root, html[data-theme="hell"] { --ok-bg: #DDF2E6; --ok-rand: #2E8B62; --ok-text: #17583C; --nein-bg: #FCE3E0; --nein-rand: #C8463C; --nein-text: #8F2A22; }
html[data-theme="dunkel"] { --ok-bg: #1C3B2E; --ok-rand: #5CC59A; --ok-text: #A6E6C8; --nein-bg: #45221F; --nein-rand: #E0786E; --nein-text: #F5B8B1; }
@media (prefers-color-scheme: dark) { html:not([data-theme]) { --ok-bg: #1C3B2E; --ok-rand: #5CC59A; --ok-text: #A6E6C8; --nein-bg: #45221F; --nein-rand: #E0786E; --nein-text: #F5B8B1; } }
.opt.rot, .opt.rot:has(input:checked) { background: var(--nein-bg); color: var(--text); border: 2px solid var(--nein-rand); padding-right: 40px; }
.opt.gruen, .opt.gruen:has(input:checked) { background: var(--ok-bg); color: var(--text); border: 2px solid var(--ok-rand); padding-right: 40px; }
.opt.rot::after, .opt.gruen::after { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 1.15em; }
.opt.rot::after { content: "\2717"; color: var(--nein-rand); }
.opt.gruen::after { content: "\2713"; color: var(--ok-rand); }
p.falsch { background: var(--nein-bg); color: var(--text); border-left: 4px solid var(--nein-rand); }
p.richtig { background: var(--ok-bg); color: var(--text); border-left: 4px solid var(--ok-rand); }
.hinweis.fehler { background: var(--nein-bg); color: var(--nein-text); border-left: 4px solid var(--nein-rand); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.hinweis.ok { background: var(--ok-bg); color: var(--ok-text); border-left: 4px solid var(--ok-rand); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
main:has(.sperre) { z-index: 50; }

.fsprache{display:flex;gap:8px;align-items:center;justify-content:flex-end;font-size:13px;margin:0 0 8px;color:var(--text2)}
.fsprache select{font:inherit;padding:4px 8px;border-radius:8px}
[dir=rtl] .frage-gross,[dir=rtl] .opt{text-align:right}

/* ==== Willkommensseite (Stil D, Petrol -> Tiefblau) ==== */
body.willkommen { min-height: 100vh; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; box-sizing: border-box; background: linear-gradient(160deg, #1F6F8B 0%, #174F6E 50%, #0F2F4D 100%); color: #fff; overflow-x: hidden; position: relative; }
.wk-szene { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.wk-ding { position: absolute; width: 84px; height: 84px; opacity: .9; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); animation: wk-schweben 9s ease-in-out infinite; }
.wk-buch1 { top: 12%; left: 9%; animation-delay: 0s; }
.wk-stift { top: 18%; right: 11%; width: 72px; animation-delay: -2s; animation-duration: 8s; }
.wk-heft { bottom: 14%; left: 14%; width: 76px; animation-delay: -4s; animation-duration: 10s; }
.wk-buch2 { bottom: 12%; right: 13%; animation-delay: -6s; animation-duration: 11s; }
.wk-stift2 { top: 52%; left: 3%; width: 60px; animation-delay: -3s; animation-duration: 12s; }
@keyframes wk-schweben { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(6deg); } }
.wk-karte { position: relative; z-index: 1; width: 100%; max-width: 480px; box-sizing: border-box; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 26px; padding: 36px 28px; text-align: center; box-shadow: 0 24px 60px rgba(5,25,45,.35); animation: wk-auf .6s ease-out both; }
@keyframes wk-auf { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wk-karte h1 { color: #fff; font-size: clamp(28px, 6vw, 40px); margin: 0 0 10px; line-height: 1.15; }
.wk-sub { color: #DDEFF4; margin: 0 0 24px; }
.wk-knopf, a.wk-knopf { display: inline-block; background: #F4A261; color: #2b1606; border: 0; border-radius: 999px; padding: 14px 28px; font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.wk-knopf:hover { filter: brightness(1.05); }
.wk-knopf:focus-visible, .willkommen a:focus-visible { outline: 3px solid #FFD9B8; outline-offset: 3px; }
.wk-hinweis { font-size: 14px; color: #DDEFF4; margin: 20px 0 0; line-height: 1.5; }
.willkommen a { color: #FFD9B8; text-underline-offset: 2px; }
.wk-fehler { background: rgba(231,111,81,.25); border: 1px solid #F4A261; border-radius: 12px; padding: 8px 12px; }
.wk-fuss { position: relative; z-index: 1; margin-top: 24px; font-size: 13px; color: #B8D7E3; }
.richtlinien { justify-content: flex-start; }
.wk-text { max-width: 760px; text-align: left; }
.wk-text h1 { font-size: clamp(24px, 5vw, 32px); }
.wk-text h2 { color: #FFD9B8; margin: 28px 0 6px; font-size: 22px; }
.wk-text h3 { color: #fff; margin: 18px 0 4px; font-size: 17px; }
.wk-text p, .wk-text li { color: #E8F4F8; line-height: 1.55; }
.wk-entwurf { background: #F4A261; color: #2b1606; font-weight: 700; border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.wk-zurueck { margin-top: 18px; }
@media (max-width: 600px) { .wk-ding { width: 56px; height: 56px; opacity: .55; } .wk-stift2 { display: none; } .wk-karte { padding: 28px 20px; } }
@media (prefers-reduced-motion: reduce) { .wk-ding, .wk-karte { animation: none; } }
.willkommen a.wk-knopf { color: #2b1606; text-decoration: none; }
.konto form label { display: block; margin: 10px 0 4px; }
.konto form input[type=password] { width: 100%; box-sizing: border-box; }
.konto .haken { display: flex; gap: 10px; align-items: center; margin: 14px 0; }
.konto .haken input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; padding: 0; }
.konto .haken label { margin: 0; }
.konto form button { margin-top: 12px; }
/* Info-Kachel + Info-Seite */
.info-kachel { border-color: var(--akzent) !important; background: var(--akzent-hell) !important; color: var(--akzent-text) !important; }
.info-schritte { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.info-schritte li.karte { display: flex; gap: 16px; align-items: flex-start; }
.info-schritte h2 { font-size: 19px; margin: 2px 0 6px; }
.info-schritte p { margin: 4px 0; }
.info-nr { flex: 0 0 36px; height: 36px; border-radius: 999px; background: var(--akzent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.reset-ecke [hidden] { display: none !important; }

/* Tages-Fortschrittsbalken (Petrol -> Apricot) */
.tagbalken { margin: 10px 0 12px; }
.tagbalken-kopf { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.tagbalken-kopf strong { color: var(--akzent-text, var(--akzent)); }
.tagbalken-spur { height: 10px; border-radius: 999px; background: var(--akzent-hell, var(--linie)); overflow: hidden; border: 1px solid var(--linie); }
.tagbalken-fuell { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--akzent), var(--apri, var(--akzent))); transition: width .4s; }
.tagbalken.fertig .tagbalken-fuell { background: var(--apri, var(--akzent)); }
.tagbalken-text { font-size: 12px; color: var(--text2); margin-top: 4px; }

/* Startseite: Anmelden / Neu registrieren */
.wahl-knoepfe { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.wahl-knoepfe .wahl { min-width: 170px; text-align: center; padding: 12px 20px; }

/* Dozent: Teilnehmer-Uebersicht */
.ue-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 16px; }
.ue-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text2); }
.ue-filter select, .ue-filter input { width: auto; min-width: 150px; }
.ue-filter .knopf.voll { margin-left: auto; }
.ue-tab th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text2); background: transparent; }
.ue-tab td, .ue-tab th { border: 0; border-bottom: 1px solid var(--linie); }
.ue-name { font-weight: 700; color: var(--akzent-text, var(--akzent)); }
.chip { display: inline-block; min-width: 60px; text-align: center; border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 13px; }
.chip-g { background: #DDF3E6; color: #1E7A45; } .chip-m { background: var(--apri-hell); color: var(--apri-text); }
.chip-s { background: #FBE0E0; color: #B23B3B; } .chip-o { background: var(--bg2, #EEF3F7); color: var(--text2); }
html[data-theme="dunkel"] .chip-g { background: #173B2A; color: #7FD3A2; } html[data-theme="dunkel"] .chip-s { background: #3D1F22; color: #F2A0A0; }
.ue-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.ue-nav select { width: auto; }
.ue-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 8px; }
.ue-kachel { border: 1px solid var(--linie); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; }
.ue-kachel b { font-size: 26px; }
.ue-legende { margin-top: 12px; }

/* Üben: Neu starten */
.neustart-form { margin: 10px 0 0; text-align: right; }
.knopf.neustart { background: var(--apri-hell); color: var(--apri-text); border: 1px solid var(--apri); }
.knopf.neustart:hover { filter: brightness(1.05); }

/* Feinschliff Handy: lange Woerter, Tabellen, Zaehler */
.innen h1, .innen h2 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.dl-zahl { display: inline-block; min-width: 18px; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: #2e9d5b; color: #fff; line-height: 1.5; }
@media (max-width: 700px) {
  .innen table:not(.dl-t) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .modulgruppe > summary { flex-wrap: wrap; }
  .modulgruppe .anzahl { white-space: normal; }
}
@media (max-width: 360px) { .innen h1 { font-size: 30px; } }
.innen select { max-width: 100%; }
.bn-person > summary, .bn-inhalt { box-sizing: border-box; max-width: 100%; min-width: 0; }
.bn-person { min-width: 0; }
@media (max-width: 400px) { .innen label:has(> select) { display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; } .innen label > select { min-width: 0; flex: 1 1 100%; } }
.liste .karte.zeile { box-sizing: border-box; max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
/* Taschenrechner: Ausdruck + Ergebnis, Punkt vor Strich, Prozent */
.rech-feld { background: var(--grund, rgba(0,0,0,.25)); border: 1px solid var(--linie); border-radius: 12px; padding: 8px 12px; margin: 8px 0 10px; text-align: right; }
.rech-ausdruck { min-height: 18px; font-size: 13px; opacity: .7; overflow-wrap: anywhere; font-family: "TC Mono", monospace; }
#rech-anzeige { display: block; font-size: 26px; font-weight: 700; overflow-wrap: anywhere; }
#rech-anzeige.fehler { font-size: 16px; color: #e5484d; }
.rechner-tasten .op { font-weight: 800; }
.rechner-tasten .gleich { grid-column: 1 / -1; font-weight: 800; }
.rech-hinweis { margin: 8px 0 0; font-size: 11px; opacity: .65; text-align: center; }

/* === <cod_ies/> WORTMARKE MIT ZWINKERNDEM & HÜPFENDEM DOPPELPUNKT-i === */
.cd-i { position: relative; display: inline-block; font-style: normal; }
.cd-i-stem { display: inline-block; }
.cd-i-eyes {
  position: absolute; left: 50%; top: 0.05em; transform: translate(-50%, 0);
  display: inline-flex; gap: 0.065em; align-items: center; justify-content: center;
  pointer-events: none; animation: cdEyesMove 4.2s ease-in-out infinite;
}
.cd-i-eyes b {
  display: block; width: 0.13em; height: 0.13em; min-width: 2.5px; min-height: 2.5px;
  border-radius: 50%; background: var(--gold, #F2C75C);
  box-shadow: 0 0 6px rgba(242,199,92,0.58);
  transform-origin: center center; animation: cdEyesWink 4.2s ease-in-out infinite;
}
.cd-i-eyes b:last-child { animation-name: cdEyesWinkRight; }
html[data-theme="hell"] .cd-i-eyes b {
  background: var(--gold, #B87D14);
  box-shadow: 0 0 5px rgba(184,125,20,0.45);
}
