/* Whit3rabbito Lernplattform — Design nach design/*.dc.html */

:root {
  --bg: #0b0c0e;
  --bg-header: #0e0f12;
  --panel: #14161a;
  --panel-2: #16181d;
  --panel-hover: #1a1d22;
  --border: #24272c;
  --border-2: #2e3238;
  --linie: #1e2126;
  --text: #f2f3f5;
  --muted: #9aa0a8;
  --faint: #6b7078;
  --track: #1e2126;

  --orange: #f0964a;
  --orange-hell: #ffb066;
  --orange-grad: linear-gradient(180deg, #f79b45, #e87f22);
  --orange-grad-h: linear-gradient(90deg, #e87f22, #f79b45);
  --orange-schrift: #17120c;
  --gruen: #45c483;
  --gruen-grad: linear-gradient(180deg, #4ecb8d, #2f9e66);
  --gruen-grad-h: linear-gradient(90deg, #2f9e66, #45c483);
  --gruen-schrift: #0c1810;
  --blau: #6ea8ff;
  --blau-grad-h: linear-gradient(90deg, #3d7fe0, #6ea8ff);
  --rot: #e5646c;

  --schatten-karte: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 60px rgba(240, 150, 74, 0.06);
  --titel-schrift: 'Nunito', 'Segoe UI', 'Trebuchet MS', sans-serif;
}

[data-theme="light"] {
  --bg: #f2f3f6;
  --bg-header: #ffffff;
  --panel: #ffffff;
  --panel-2: #f2f3f6;
  --panel-hover: #f7f8fa;
  --border: #e2e5ea;
  --border-2: #dde0e5;
  --linie: #eceef2;
  --text: #1a1d21;
  --muted: #5f6670;
  --faint: #8a9099;
  --track: #e2e5ea;

  --orange: #d97a1e;
  --orange-hell: #b56312;
  --gruen: #2f9e66;
  --blau: #3d7fe0;

  --schatten-karte: 0 8px 32px rgba(20, 24, 32, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  min-height: 100vh;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hell); }

button { font-family: inherit; cursor: pointer; }

/* ---------- Kopfzeile ---------- */

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 32px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.kopf-marke { display: flex; align-items: center; gap: 12px; }
.kopf-marke img { width: 34px; height: 34px; border-radius: 50%; }
.kopf-marke .name {
  font-family: var(--titel-schrift);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.kopf-marke .trenner { color: var(--border-2); }
.kopf-marke .untertitel {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kopf-nav { display: flex; align-items: center; gap: 28px; }
/* :not(.benutzer-pille): Die Profil-Pille ist auch ein Link in der Nav —
   ohne Ausnahme würde ihr der Unterstrich-Stil den unteren Rand kaputt machen */
.kopf-nav a:not(.benutzer-pille) {
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.kopf-nav a:not(.benutzer-pille):hover { color: var(--text); }
.kopf-nav a.aktiv {
  color: var(--orange);
  font-weight: 600;
  border-bottom-color: var(--orange);
}

/* ---------- Menü-Knopf und Gruppen-Menü (Handy) ---------- */

.menue-knopf {
  display: none;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--muted);
  padding: 0;
}
.menue-knopf:hover { color: var(--orange); }

.kopf-menue {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  flex-direction: column;
  gap: 14px;
  min-width: 230px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  z-index: 60;
}
.menue-gruppe { display: flex; flex-direction: column; gap: 2px; }
.menue-titel {
  padding: 2px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.kopf-menue a {
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
}
.kopf-menue a:hover { background: var(--panel-2); }
.kopf-menue a.aktiv {
  background: var(--panel-2);
  color: var(--orange);
  font-weight: 600;
}

.theme-knopf {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--muted);
  padding: 0;
}
.theme-knopf:hover { color: var(--orange); }
[data-theme="light"] .theme-knopf { color: var(--orange); }

.benutzer-pille {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: 999px;
}
.benutzer-pille .avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  background: var(--orange-grad);
  border-radius: 50%;
  color: var(--orange-schrift);
  font-weight: 600;
  font-size: 13px;
}
[data-theme="light"] .benutzer-pille .avatar { color: #ffffff; }
.benutzer-pille .name { font-size: 13px; font-weight: 500; }
.benutzer-pille .abmelden {
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 12px;
  padding: 0 2px;
}
.benutzer-pille .abmelden:hover { color: var(--rot); }

/* ---------- Inhalt ---------- */

.inhalt {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 48px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.seitentitel {
  font-family: var(--titel-schrift);
  font-weight: 600;
  font-size: 28px;
}
.untertext { color: var(--muted); font-size: 15px; }

.abschnittstitel {
  font-family: var(--titel-schrift);
  font-weight: 600;
  font-size: 17px;
}

/* ---------- Login ---------- */

.login-buehne {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.login-links {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex: 1.2;
  background:
    radial-gradient(ellipse 480px 360px at 40% 32%, rgba(240, 150, 74, 0.14), transparent 70%),
    radial-gradient(ellipse 420px 320px at 68% 78%, rgba(69, 196, 131, 0.10), transparent 70%),
    var(--bg-header);
}
.login-links img {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(240, 150, 74, 0.35), 0 0 24px rgba(255, 255, 255, 0.12);
}
.login-wortmarke {
  font-family: var(--titel-schrift);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: 0.03em;
}
.login-untertitel-zeile { display: flex; align-items: center; gap: 12px; }
.login-untertitel-zeile .linie-l { width: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--orange)); }
.login-untertitel-zeile .linie-r { width: 48px; height: 1px; background: linear-gradient(90deg, var(--gruen), transparent); }
.login-untertitel {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.login-merkmale { display: flex; gap: 24px; margin-top: 12px; }
.login-merkmale span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }

.login-rechts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  background: var(--panel-2);
  border-left: 1px solid var(--border);
  padding: 48px 32px;
}
[data-theme="light"] .login-rechts { background: var(--panel); }
.login-formular { display: flex; flex-direction: column; gap: 22px; width: 380px; max-width: 100%; }
.login-formular h1 {
  margin: 0;
  font-family: var(--titel-schrift);
  font-weight: 600;
  font-size: 26px;
}

/* ---------- Formulare ---------- */

.feld { display: flex; flex-direction: column; gap: 8px; }
.feld label { font-size: 13px; font-weight: 500; color: var(--muted); }
.feld input {
  height: 46px;
  padding: 0 14px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}
[data-theme="light"] .feld input { background: var(--bg); }
.feld input::placeholder { color: var(--faint); }
.feld input:focus { outline: none; border-color: var(--orange); }

.knopf-primaer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  background: var(--orange-grad);
  border: 0;
  border-radius: 10px;
  color: var(--orange-schrift);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 24px rgba(240, 150, 74, 0.25);
}
[data-theme="light"] .knopf-primaer { color: #ffffff; }
.knopf-primaer:hover { filter: brightness(1.06); }
.knopf-primaer:disabled { opacity: 0.6; cursor: default; }

.formular-fehler {
  display: none;
  padding: 10px 14px;
  background: rgba(229, 100, 108, 0.10);
  border: 1px solid var(--rot);
  border-radius: 10px;
  color: var(--rot);
  font-size: 14px;
}
.formular-fehler.sichtbar { display: block; }

.oder-zeile { display: flex; align-items: center; gap: 12px; }
.oder-zeile .linie { flex-grow: 1; height: 1px; background: var(--border); }
.oder-zeile span { color: var(--faint); font-size: 12px; }
.wechsel-hinweis { text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Dashboard ---------- */

.begruessung-zeile { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.statistik-kacheln { display: flex; gap: 16px; }
.statistik-kachel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.statistik-kachel .wert { font-family: var(--titel-schrift); font-weight: 700; font-size: 18px; }
.statistik-kachel .beschriftung { color: var(--muted); font-size: 12px; }

.bereich-raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) { .bereich-raster { grid-template-columns: 1fr; } }

.bereich-karte {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 16px;
}
.bereich-karte.englisch { background: linear-gradient(160deg, rgba(240, 150, 74, 0.08), rgba(240, 150, 74, 0.02) 55%), var(--panel); }
.bereich-karte.informatik { background: linear-gradient(160deg, rgba(69, 196, 131, 0.08), rgba(69, 196, 131, 0.02) 55%), var(--panel); }
.bereich-karte.abu { background: linear-gradient(160deg, rgba(110, 168, 255, 0.08), rgba(110, 168, 255, 0.02) 55%), var(--panel); }

.bereich-kopf { display: flex; justify-content: space-between; align-items: center; }
.bereich-kopf .titelgruppe { display: flex; align-items: center; gap: 10px; }
.bereich-ikone {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.englisch .bereich-ikone { background: rgba(240, 150, 74, 0.14); }
.informatik .bereich-ikone { background: rgba(69, 196, 131, 0.14); }
.abu .bereich-ikone { background: rgba(110, 168, 255, 0.14); }
.bereich-karte .name { font-family: var(--titel-schrift); font-weight: 600; font-size: 18px; }

.zaehler-pille {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.englisch .zaehler-pille { background: rgba(240, 150, 74, 0.12); color: var(--orange); }
.informatik .zaehler-pille { background: rgba(69, 196, 131, 0.12); color: var(--gruen); }
.abu .zaehler-pille { background: rgba(110, 168, 255, 0.12); color: var(--blau); }

.bereich-karte .beschreibung { color: var(--muted); font-size: 13px; line-height: 1.5; }

.fortschritt-gruppe { display: flex; flex-direction: column; gap: 8px; }
.fortschritt-zeile { display: flex; justify-content: space-between; font-size: 13px; }
.fortschritt-zeile .beschriftung { color: var(--muted); }
.fortschritt-zeile .wert { font-weight: 600; }
.englisch .fortschritt-zeile .wert { color: var(--orange); }
.informatik .fortschritt-zeile .wert { color: var(--gruen); }
.abu .fortschritt-zeile .wert { color: var(--blau); }

.balken { height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; }
.balken .fuellung { height: 100%; border-radius: 999px; }
.englisch .fuellung { background: var(--orange-grad-h); }
.informatik .fuellung { background: var(--gruen-grad-h); }
.abu .fuellung { background: var(--blau-grad-h); }

.bereich-knopf {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 42px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 0;
}
.englisch .bereich-knopf { background: var(--orange-grad); color: var(--orange-schrift); }
[data-theme="light"] .englisch .bereich-knopf { color: #ffffff; }
.informatik .bereich-knopf { background: var(--panel-hover); border: 1px solid var(--gruen); color: var(--gruen); }
.abu .bereich-knopf { background: var(--panel-hover); border: 1px solid var(--blau); color: var(--blau); }
.bereich-knopf:hover { filter: brightness(1.08); }
.bereich-knopf:disabled { opacity: 0.5; cursor: default; filter: none; }

/* ---------- Listen (Zuletzt gelernt, Themen) ---------- */

.liste {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.listenzeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--linie);
  color: inherit;
}
.listenzeile:last-child { border-bottom: 0; }
a.listenzeile:hover, button.listenzeile:hover { background: var(--panel-hover); color: inherit; }
.listenzeile .links { display: flex; align-items: center; gap: 14px; }
.listenzeile .punkt { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.punkt.englisch { background: var(--orange); }
.punkt.informatik { background: var(--gruen); }
.punkt.abu { background: var(--blau); }
.listenzeile .haupttext { font-size: 14px; font-weight: 500; }
.listenzeile .nebentext { color: var(--faint); font-size: 13px; }
.listenzeile .rechts { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
.listenzeile .status-gut { color: var(--gruen); font-weight: 600; }

.leer-hinweis {
  padding: 28px 22px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Themenliste Englisch */
.thema-zeile { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--linie); }
.thema-zeile:last-child { border-bottom: 0; }
.thema-zeile .titel { font-size: 15px; font-weight: 500; }
.level-knoepfe { display: flex; gap: 10px; }
.level-knopf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--panel-hover);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.level-knopf:hover { border-color: var(--orange); color: var(--orange); }
.level-knopf .stand { font-size: 11px; font-weight: 400; color: var(--faint); }

/* ---------- Vokabeltrainer ---------- */

.trainer { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.trainer-kopfzeile { display: flex; justify-content: space-between; align-items: center; width: 720px; max-width: 100%; }
.brotkruemel { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.brotkruemel .aktuell { color: var(--text); font-weight: 500; }
.brotkruemel a { color: var(--muted); }
.brotkruemel a:hover { color: var(--orange); }
.karten-pille {
  padding: 4px 12px;
  background: rgba(240, 150, 74, 0.12);
  border-radius: 999px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.trainer-balken { width: 720px; max-width: 100%; height: 6px; background: var(--track); border-radius: 999px; overflow: hidden; }
.trainer-balken .fuellung { height: 100%; background: var(--orange-grad-h); border-radius: 999px; transition: width 0.25s; }

.lernkarte {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  width: 720px;
  max-width: 100%;
  min-height: 320px;
  padding: 48px 40px;
  background: linear-gradient(180deg, var(--panel-hover), var(--panel));
  border: 1px solid var(--border-2);
  border-radius: 20px;
  box-shadow: var(--schatten-karte);
  cursor: pointer;
  user-select: none;
}
.lernkarte .sprach-pille {
  padding: 5px 14px;
  background: rgba(240, 150, 74, 0.12);
  border-radius: 999px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lernkarte .vorderseite {
  font-family: var(--titel-schrift);
  font-weight: 600;
  font-size: 42px;
  text-align: center;
}
.lernkarte .trennzeile { display: flex; align-items: center; gap: 14px; width: 420px; max-width: 100%; color: var(--faint); }
.lernkarte .trennzeile .linie { flex-grow: 1; height: 1px; background: var(--border-2); }
.lernkarte .aufdeck-hinweis { color: var(--faint); font-size: 13px; }
.lernkarte .antwort { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lernkarte .antwort .beschriftung {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lernkarte .antwort .wort {
  font-family: var(--titel-schrift);
  font-weight: 500;
  font-size: 26px;
  color: var(--gruen);
  text-align: center;
}

.antwort-knoepfe { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.knopf-falsch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 220px;
  height: 52px;
  background: var(--panel-hover);
  border: 1px solid var(--rot);
  border-radius: 12px;
  color: var(--rot);
  font-weight: 600;
  font-size: 15px;
}
.knopf-falsch:hover { background: rgba(229, 100, 108, 0.10); }
.knopf-richtig {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 220px;
  height: 52px;
  background: var(--gruen-grad);
  border: 0;
  border-radius: 12px;
  color: var(--gruen-schrift);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 24px rgba(69, 196, 131, 0.2);
}
[data-theme="light"] .knopf-richtig { color: #ffffff; }
.knopf-richtig:hover { filter: brightness(1.06); }
.antwort-knoepfe button:disabled { opacity: 0.4; cursor: default; }

.punkte-reihe { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; justify-content: center; }
.punkte-reihe .strich { width: 24px; height: 5px; border-radius: 999px; background: var(--border); }
.punkte-reihe .strich.richtig { background: var(--gruen); }
.punkte-reihe .strich.falsch { background: var(--rot); }
.punkte-reihe .strich.aktuell { background: var(--orange); }

/* Abschlussbild */
.abschluss {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 720px;
  max-width: 100%;
  padding: 56px 40px;
  background: linear-gradient(180deg, var(--panel-hover), var(--panel));
  border: 1px solid var(--border-2);
  border-radius: 20px;
  box-shadow: var(--schatten-karte);
  text-align: center;
}
.abschluss .gross { font-family: var(--titel-schrift); font-weight: 700; font-size: 34px; }
.abschluss .ergebnis { color: var(--muted); font-size: 15px; }
.abschluss-knoepfe { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.knopf-sekundaer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  background: var(--panel-hover);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.knopf-sekundaer:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Platzhalterseite ---------- */

.platzhalter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 72px 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}
.platzhalter .titel { font-family: var(--titel-schrift); font-weight: 600; font-size: 22px; }
.platzhalter .text { color: var(--muted); max-width: 440px; line-height: 1.6; }

/* ---------- Lernmodus-Auswahl ---------- */

.modus-raster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 720px;
  max-width: 100%;
}
@media (max-width: 800px) { .modus-raster { grid-template-columns: repeat(2, 1fr); } }
.modus-karte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 16px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}
.modus-karte:hover { border-color: var(--orange); transform: translateY(-2px); }
.modus-karte .symbol { font-size: 26px; }
.modus-karte .hinweis { color: var(--faint); font-size: 12px; font-weight: 400; text-align: center; }

.streak-anzeige {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(240, 150, 74, 0.12);
  border-radius: 999px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Auswahl-Modus (Multiple Choice) ---------- */

.mc-optionen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 720px;
  max-width: 100%;
}
@media (max-width: 800px) { .mc-optionen { grid-template-columns: 1fr; } }
.mc-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  text-align: left;
}
.mc-option:hover:not(:disabled) { border-color: var(--orange); }
.mc-option .taste {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  background: var(--panel-hover);
  border: 1px solid var(--border-2);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.mc-option.richtig { border-color: var(--gruen); background: rgba(69, 196, 131, 0.10); }
.mc-option.falsch { border-color: var(--rot); background: rgba(229, 100, 108, 0.10); }
.mc-option:disabled { cursor: default; }

/* ---------- Tippen-Modus ---------- */

.tipp-bereich { display: flex; flex-direction: column; gap: 14px; width: 720px; max-width: 100%; }
.tipp-eingabe {
  height: 52px;
  padding: 0 16px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
}
.tipp-eingabe:focus { outline: none; border-color: var(--orange); }
.tipp-eingabe.richtig { border-color: var(--gruen); }
.tipp-eingabe.falsch { border-color: var(--rot); }
.tipp-rueckmeldung { min-height: 22px; font-size: 15px; color: var(--muted); }
.tipp-rueckmeldung strong { color: var(--gruen); }

/* ---------- Tabellen (Verwalten, Benutzer, Statistik) ---------- */

.tabelle-umschlag {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto;
}
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th {
  padding: 12px 16px;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tabelle td { padding: 10px 16px; border-bottom: 1px solid var(--linie); }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle input, .tabelle select {
  width: 100%;
  min-width: 90px;
  padding: 7px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.tabelle input:focus, .tabelle select:focus { outline: none; border-color: var(--orange); }

.knopf-klein {
  padding: 7px 14px;
  background: var(--panel-hover);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.knopf-klein:hover { border-color: var(--orange); color: var(--orange); }
.knopf-klein.gefahr:hover { border-color: var(--rot); color: var(--rot); }
.knopf-klein.gruen:hover { border-color: var(--gruen); color: var(--gruen); }
.knopf-klein:disabled { opacity: 0.5; cursor: default; }

.rollen-pille {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.rollen-pille.superadmin { background: rgba(240, 150, 74, 0.14); color: var(--orange); }
.rollen-pille.admin { background: rgba(69, 196, 131, 0.14); color: var(--gruen); }
.rollen-pille.benutzer { background: rgba(110, 168, 255, 0.14); color: var(--blau); }

/* ---------- Formulare in Karten (Profil, Benutzer anlegen) ---------- */

.formular-karte {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.formular-karte h3 { margin: 0; font-family: var(--titel-schrift); font-weight: 700; font-size: 17px; }
.formular-karte textarea {
  min-height: 110px;
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}
.formular-karte textarea:focus { outline: none; border-color: var(--orange); }
.formular-zeile { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.formular-zeile .feld { flex: 1; min-width: 160px; }
.feld select {
  height: 46px;
  padding: 0 14px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

.erfolg-meldung {
  display: none;
  padding: 10px 14px;
  background: rgba(69, 196, 131, 0.10);
  border: 1px solid var(--gruen);
  border-radius: 10px;
  color: var(--gruen);
  font-size: 14px;
}
.erfolg-meldung.sichtbar { display: block; }

/* ---------- Upload-Fläche ---------- */

.upload-flaeche {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 24px;
  background: var(--panel);
  border: 2px dashed var(--border-2);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
}
.upload-flaeche:hover, .upload-flaeche.dragover { border-color: var(--orange); color: var(--orange); }
.upload-flaeche .gross { font-size: 15px; font-weight: 700; color: var(--text); }

/* ---------- Dialog ---------- */

.dialog-hintergrund {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
  padding: 16px;
}
.dialog {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 440px;
  max-width: 100%;
  padding: 26px 28px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  box-shadow: var(--schatten-karte);
}
.dialog h3 { margin: 0; font-family: var(--titel-schrift); font-weight: 800; font-size: 19px; }
.dialog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.dialog .code {
  align-self: center;
  padding: 8px 18px;
  background: var(--panel-2);
  border: 1px dashed var(--rot);
  border-radius: 10px;
  color: var(--rot);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  user-select: all;
}
.dialog-knoepfe { display: flex; gap: 12px; justify-content: flex-end; }
.knopf-gefahr {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  background: var(--rot);
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}
.knopf-gefahr:hover { filter: brightness(1.08); }
.knopf-gefahr:disabled { opacity: 0.4; cursor: default; filter: none; }

/* ---------- Box-Verteilung (Statistik) ---------- */

.box-verteilung { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--track); min-width: 140px; }
.box-verteilung span { height: 100%; }
.box-verteilung .b0 { background: var(--border-2); }
.box-verteilung .b1 { background: #e5646c; }
.box-verteilung .b2 { background: #f0964a; }
.box-verteilung .b3 { background: #e8c04a; }
.box-verteilung .b4 { background: #7fd0a2; }
.box-verteilung .b5 { background: #45c483; }
.legende { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.legende span { display: flex; align-items: center; gap: 6px; }
.legende i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- Profilbild ---------- */

.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profil-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 96px;
  height: 96px;
  background: var(--orange-grad);
  border-radius: 50%;
  color: var(--orange-schrift);
  font-size: 36px;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}
.profil-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Merkkarte (Eselsbrücke) ---------- */

.merk-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 14px 18px;
  background: rgba(240, 150, 74, 0.10);
  border: 1px dashed var(--orange);
  border-radius: 12px;
  color: var(--orange);
  text-align: left;
}

/* ---------- Laden ---------- */

.laden { padding: 64px; text-align: center; color: var(--muted); }

@media (max-width: 800px) {
  /* Kopf bleibt eine Zeile: Links wandern ins Gruppen-Menü hinter dem ☰-Knopf */
  .kopf { height: 56px; padding: 0 14px; }
  .kopf-marke .untertitel, .kopf-marke .trenner { display: none; }
  .kopf-nav { gap: 10px; }
  .kopf-nav a:not(.benutzer-pille) { display: none; }
  .menue-knopf { display: flex; }
  .kopf-menue:not([hidden]) { display: flex; }
  .benutzer-pille .name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .inhalt { padding: 24px 16px 48px; }
  .login-buehne { flex-direction: column; }
  .login-links { padding: 48px 16px; }
  .login-rechts { border-left: 0; border-top: 1px solid var(--border); }
  .statistik-kacheln { width: 100%; }
}

/* ---------- Aufgaben-Bilder (Referenzgrafik und Bild-Klick) ---------- */

.aufgabe-bild {
  width: 720px;
  max-width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--schatten-karte);
}
.aufgabe-bild:empty { display: none; }
.aufgabe-bild svg { display: block; width: 100%; height: auto; }
.aufgabe-bild .bild-label { transition: opacity 0.3s; }
.aufgabe-bild .ohne-labels .bild-label { opacity: 0; }
.aufgabe-bild.klickbar .hotspot { cursor: pointer; }
.aufgabe-bild.klickbar .hotspot:hover { opacity: 0.75; }
.aufgabe-bild .hotspot.richtig { filter: drop-shadow(0 0 7px var(--gruen)); opacity: 1; }
.aufgabe-bild .hotspot.falsch { animation: bild-wackeln 0.4s; filter: drop-shadow(0 0 7px var(--rot)); }

@keyframes bild-wackeln {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
