/* Nutzerbereich (Konto): Kopf, Reiter, Zahnrad-Menü, Spielekarten, Einstellungen, Flaschenpost.
   Baut auf glas.css/site.css auf (--glas-*, --site-*). */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Profilbild ---------- */
.avatar-rahmen { position: relative; display: inline-flex; flex: none; border-radius: 50%; vertical-align: middle; --lx-ecke: calc(14px * var(--lx-s, 1)); }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; object-fit: cover; width: 100%; height: 100%; }
.avatar--initialen { color: #fff; font-weight: 800; font-family: var(--site-schrift-anzeige); letter-spacing: 0.02em; user-select: none; }

/* ---------- Kopf ---------- */
.konto-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.konto-kopf__person { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.konto-kopf h1 { margin: 0; font-size: clamp(1.35rem, 4vw, 1.9rem); overflow-wrap: anywhere; }

/* ---------- Zahnrad-Menü ---------- */
.zahnrad { position: relative; }
.zahnrad__knopf {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; border: 0; background: rgba(255,255,255,0.45); color: rgb(var(--glas-marke-dunkel));
  cursor: pointer; transition: transform 0.25s ease, background 0.2s ease;
}
.zahnrad__knopf svg { position: relative; z-index: 1; }
.zahnrad__knopf:hover, .zahnrad__knopf[aria-expanded="true"] { background: rgba(255,255,255,0.7); transform: rotate(35deg); }
.zahnrad__knopf:focus-visible { outline: 3px solid rgba(var(--glas-marke), 0.55); outline-offset: 2px; }
.zahnrad__menue {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 40; min-width: 15.5rem; padding: 0.5rem;
  border-radius: 1rem; background: rgba(255,250,243,0.97); border: 1px solid var(--glas-kante);
  box-shadow: 0 18px 40px rgba(80,40,10,0.22); backdrop-filter: blur(10px);
}
.zahnrad__menue[hidden] { display: none; }
.zahnrad__person { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.6rem 0.8rem; border-bottom: 1px solid rgba(var(--glas-marke-dunkel), 0.12); margin-bottom: 0.4rem; }
.zahnrad__person div { display: flex; flex-direction: column; min-width: 0; }
.zahnrad__person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zahnrad__person span { font-size: 0.78rem; color: var(--site-tinte-mild); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zahnrad__eintrag {
  display: block; width: 100%; text-align: left; padding: 0.6rem 0.75rem; border-radius: 0.6rem; border: 0; background: none;
  font: inherit; font-size: 0.95rem; color: var(--site-tinte); text-decoration: none; cursor: pointer;
}
.zahnrad__eintrag:hover, .zahnrad__eintrag:focus-visible { background: rgba(var(--glas-marke), 0.14); outline: none; }
.zahnrad__eintrag.ist-aktiv { font-weight: 700; color: rgb(var(--glas-marke-dunkel)); }
.zahnrad__trenner { height: 1px; background: rgba(var(--glas-marke-dunkel), 0.12); margin: 0.4rem 0; }
.zahnrad__form { margin: 0; }

/* ---------- Reiter ---------- */
.konto-reiter {
  display: flex; gap: 0.35rem; padding: 0.4rem; border-radius: 999px; background: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}
.konto-reiter__tab {
  position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; text-align: center; padding: 0.65rem 1.1rem; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-weight: 600; color: var(--site-tinte-mild); transition: background 0.2s ease, color 0.2s ease;
}
.konto-reiter__tab:hover { color: rgb(var(--glas-marke-dunkel)); background: rgba(255,255,255,0.7); }
.konto-reiter__tab.ist-aktiv { background: rgb(var(--glas-marke)); color: #fff; box-shadow: 0 4px 14px rgba(var(--glas-marke), 0.4); }
.konto-reiter__tab:focus-visible { outline: 3px solid rgba(var(--glas-marke), 0.55); outline-offset: 1px; }
.konto-reiter__zahl { display: inline-block; min-width: 1.35rem; padding: 0 0.4rem; margin-left: 0.25rem; border-radius: 999px; background: rgba(0,0,0,0.12); font-size: 0.78rem; line-height: 1.35rem; }
.konto-reiter__tab.ist-aktiv .konto-reiter__zahl { background: rgba(255,255,255,0.28); }

/* ---------- Spiele ---------- */
.spiele-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.spiel-karte { display: flex; flex-direction: column; border-radius: 1rem; overflow: hidden; background: rgba(255,255,255,0.7); border: 1px solid var(--glas-kante); text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.spiel-karte:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(80,40,10,0.18); }
.spiel-karte:focus-visible { outline: 3px solid rgba(var(--glas-marke), 0.6); outline-offset: 2px; }
.spiel-karte__bild { aspect-ratio: 16/10; background: #e9e1d6; }
.spiel-karte__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spiel-karte__text { padding: 0.8rem 0.95rem 0.95rem; display: flex; flex-direction: column; gap: 0.15rem; }
.spiel-karte__titel { font-family: var(--site-schrift-anzeige); font-weight: 700; font-size: 1rem; }
.spiel-karte__punkte { font-size: 1.5rem; font-weight: 800; font-family: var(--site-schrift-anzeige); color: rgb(var(--glas-marke-dunkel)); line-height: 1.2; }
.spiel-karte__klein { font-size: 0.8rem; color: var(--site-tinte-mild); }
.spiel-karte--neu .spiel-karte__punkte { font-size: 1rem; color: var(--site-tinte-mild); font-weight: 600; }
.spiel-karte__los { margin-top: 0.4rem; font-size: 0.85rem; font-weight: 700; color: rgb(var(--glas-marke-dunkel)); }

/* ---------- Kleine Kennzahlen (Vokabeltrainer) ---------- */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.kennzahl { padding: 0.9rem 1rem; border-radius: 0.9rem; background: rgba(255,255,255,0.6); border: 1px dashed var(--glas-kante); }
.kennzahl strong { display: block; font-size: 1.5rem; font-family: var(--site-schrift-anzeige); color: var(--site-tinte-mild); }
.kennzahl span { font-size: 0.82rem; color: var(--site-tinte-mild); }

/* ---------- Einstellungen ---------- */
.einst-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
.einst-menue { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 0.25rem; padding: 0.5rem; border-radius: 1rem; background: rgba(255,255,255,0.6); border: 1px solid var(--glas-kante); }
.einst-menue a { padding: 0.65rem 0.8rem; border-radius: 0.7rem; text-decoration: none; color: var(--site-tinte); font-weight: 600; }
.einst-menue a small { display: block; font-weight: 400; font-size: 0.76rem; color: var(--site-tinte-mild); }
.einst-menue a:hover { background: rgba(var(--glas-marke), 0.12); }
.einst-menue a.ist-aktiv { background: rgb(var(--glas-marke)); color: #fff; }
.einst-menue a.ist-aktiv small { color: rgba(255,255,255,0.85); }
.einst-zurueck { display: inline-block; margin-bottom: 1rem; font-size: 0.92rem; text-decoration: none; color: var(--site-tinte-mild); }
.einst-zurueck:hover { color: rgb(var(--glas-marke-dunkel)); }
.einst-block + .einst-block { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(var(--glas-marke-dunkel), 0.12); }
.einst-block h2 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.avatar-zeile { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin: 0.9rem 0; }
.farb-wahl { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0 0.9rem; }
.farb-wahl label { position: relative; cursor: pointer; }
.farb-wahl input { position: absolute; opacity: 0; inset: 0; }
.farb-perle { display: block; width: 2.1rem; height: 2.1rem; border-radius: 50%; transition: transform 0.15s ease; --lx-s: 0.5; --lx-ecke: 9px; }
.farb-wahl input:checked + .farb-perle { outline: 3px solid rgb(var(--lx-marke-dunkel, 132, 107, 85)); outline-offset: 3px; transform: scale(1.08); }
.farb-wahl input:focus-visible + .farb-perle { outline: 3px dashed rgb(var(--lx-marke-dunkel, 132, 107, 85)); outline-offset: 3px; }
.upload-feld { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.upload-feld input[type=file] { max-width: 100%; font-size: 0.9rem; }

/* ---------- Flaschenpost im Menü: Zähler am Reiter, im Zahnrad-Menü und als Punkt am Zahnrad ---------- */
.konto-reiter__zahl[hidden], .zahnrad__zahl[hidden], .zahnrad__punkt[hidden] { display: none; }
.konto-reiter__zahl--neu, .konto-reiter__tab.ist-aktiv .konto-reiter__zahl--neu { background: #dc2626; color: #fff; font-weight: 800; }
.zahnrad__eintrag--post { display: flex; align-items: center; gap: 0.6rem; }
.zahnrad__symbol { display: inline-flex; color: rgb(var(--glas-marke-dunkel)); }
.zahnrad__zahl { margin-left: auto; min-width: 1.3rem; height: 1.3rem; padding: 0 0.35rem; border-radius: 999px; background: #dc2626; color: #fff; font-size: 0.72rem; font-weight: 800; line-height: 1.3rem; text-align: center; }
.zahnrad__punkt { position: absolute; top: 0.05rem; right: 0.05rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #dc2626; border: 2px solid #fff8ef; pointer-events: none; z-index: 2; }

@media (max-width: 720px) {
  .konto-reiter { gap: 0.2rem; padding: 0.3rem; }
  .konto-reiter__tab { flex: 1 1 auto; padding: 0.55rem 0.6rem; font-size: 0.86rem; }
  .konto-reiter__zahl { min-width: 1.15rem; padding: 0 0.3rem; font-size: 0.7rem; line-height: 1.15rem; }
  .einst-layout { grid-template-columns: 1fr; }
  .einst-menue { position: static; flex-direction: row; overflow-x: auto; }
  .einst-menue a { white-space: nowrap; }
  .einst-menue a small { display: none; }
  /* vier Reiter passen auf dem Handy nicht nebeneinander: der Reiter-Rahmen lässt sich seitlich wischen */
  .konto-reiter { overflow-x: auto; scrollbar-width: none; }
  .konto-reiter::-webkit-scrollbar { display: none; }
  .konto-reiter__tab { flex: 1 0 auto; }
}
@media (max-width: 480px) {
  .konto-reiter__tab { padding: 0.55rem 0.3rem; font-size: 0.78rem; }
  .konto-reiter__zahl { margin-left: 0.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .zahnrad__knopf, .spiel-karte { transition: none; }
}

/* ---------- Flaschenpost: Verlauf, Eingabe, Zähler ---------- */
.fp-verlauf { display: flex; flex-direction: column; gap: 0.65rem; }
.fp-blase { max-width: 90%; padding: 0.6rem 0.8rem 0.7rem; border-radius: 1rem; line-height: 1.45; }
.fp-blase--lehrkraft { align-self: flex-start; background: #fff; border: 1px solid var(--glas-kante); border-bottom-left-radius: 0.3rem; }
.fp-blase--ich { align-self: flex-end; background: rgba(var(--glas-marke), 0.16); border-bottom-right-radius: 0.3rem; }
.fp-blase.ist-neu { box-shadow: 0 0 0 2px rgba(var(--glas-marke), 0.55); }
.fp-blase__kopf { font-size: 0.72rem; color: var(--site-tinte-mild); margin-bottom: 0.2rem; }
.fp-blase__text { overflow-wrap: anywhere; }
.fp-blase__text a { color: rgb(var(--glas-marke-dunkel)); text-decoration: underline; }
.fp-code { margin-top: 0.55rem; padding: 0.5rem 0.65rem; border-radius: 0.7rem; background: rgba(22,163,74,0.08); border: 1px dashed #86efac; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; font-size: 0.88rem; }
.fp-code .knopf { padding: 0.4rem 0.8rem; font-size: 0.82rem; }
.fp-code__ok { color: #166534; font-weight: 700; }
.fp-leer { color: var(--site-tinte-mild); text-align: center; margin: 1rem 0; }
.fp-formular textarea { width: 100%; padding: 0.7rem 0.85rem; border-radius: 0.7rem; border: 1px solid var(--glas-kante); font: inherit; font-size: 0.95rem; resize: vertical; background: #fff; }
.fp-formular__zeile { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.fp-fehler { color: #991b1b; font-size: 0.85rem; margin: 0.4rem 0 0; }
.fp-fehler[hidden] { display: none; }

/* ---------- Vokabeltrainer-Reiter ---------- */
.kennzahl--voll { border-style: solid; }
.kennzahl--voll strong { color: rgb(var(--glas-marke-dunkel)); }
.nl-status { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; }
.nl-status--an { background: rgba(22,163,74,0.12); color: #166534; }
.vt-code { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; border-radius: 0.9rem; background: rgba(22,163,74,0.08); border: 1px dashed #86efac; }
.vt-code__wert { font-family: var(--site-schrift-anzeige); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.18em; color: #166534; user-select: all; }

/* ---------- Dashboard im Reiter Vokabeltrainer, Fortschritt im Reiter Grammatik ---------- */
.dash-kopf { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem 1rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.dash-kopf h2 { margin: 0; }
.dash-kopf .knopf { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.dash-diagramme { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.2rem 0 0.6rem; }
.dash-titel { margin: 0 0 0.6rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--site-tinte-mild); }
.dash-balken { display: flex; align-items: flex-end; gap: 0.5rem; height: 9.5rem; padding: 0.6rem 0.7rem 0; border-radius: 0.9rem; background: rgba(255,255,255,0.5); border: 1px solid var(--glas-kante); }
.dash-balken__spalte { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.2rem; }
.dash-balken__zahl { font-size: 0.74rem; font-weight: 700; color: var(--site-tinte-mild); }
.dash-balken__saeule { display: block; width: 100%; max-width: 2.6rem; min-height: 2px; border-radius: 0.45rem 0.45rem 0.15rem 0.15rem; background: linear-gradient(180deg, rgba(var(--glas-marke), 0.95), rgba(var(--glas-marke-dunkel), 0.85)); }
.dash-balken__saeule--archiv { background: linear-gradient(180deg, #4ade80, #16a34a); }
.dash-balken__name { font-size: 0.72rem; color: var(--site-tinte-mild); padding: 0.3rem 0 0.4rem; white-space: nowrap; }
.gn-niveau { margin-top: 1.6rem; }
.gn-niveau__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.35rem; }
.gn-niveau__name { margin: 0; font-family: var(--site-schrift-anzeige); font-size: 1.25rem; color: rgb(var(--glas-marke-dunkel)); }
.gn-balken { height: 0.55rem; border-radius: 999px; background: rgba(var(--glas-marke-dunkel), 0.12); overflow: hidden; margin-bottom: 0.5rem; }
.gn-balken span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(var(--glas-marke), 0.95), rgba(var(--glas-marke-dunkel), 0.9)); }
.gn-punkte { display: inline-block; padding: 0.05rem 0.6rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.gn-punkte--gut { background: rgba(22,163,74,0.14); color: #166534; }
.gn-punkte--mittel { background: rgba(217,119,6,0.15); color: #92400e; }
.gn-punkte--schwach { background: rgba(220,38,38,0.1); color: #991b1b; }
.gn-offen { margin-top: 0.7rem; }
.gn-offen summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--site-tinte-mild); }
.gn-offen ul { margin: 0.5rem 0 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; font-size: 0.9rem; }
.gn-offen li { margin-bottom: 0.25rem; break-inside: avoid; }
@media (max-width: 720px) {
  .dash-diagramme { grid-template-columns: 1fr; }
  .gn-offen ul { columns: 1; }
}
.kennzahlen--drei { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .kennzahlen--drei { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Klassen (Lehrer-Portal und Redaktion): Karten, Formulare, Personenlisten
   ========================================================================== */
.kl-abschnitt { margin-top: 1.25rem; }
.kl-kopf { border-left: 6px solid var(--kl-farbe, #f07e26); padding: 0.15rem 0 0.15rem 1rem; margin: 1rem 0 0.25rem; }
.kl-kopf h2 { margin: 0; font-size: 1.5rem; line-height: 1.25; }
.kl-kopf p { margin: 0.25rem 0 0; color: var(--site-tinte-mild); font-size: 0.9rem; }
.kl-kopf .kl-beschreibung { color: var(--site-tinte); }
.kl-marke { display: inline-block; vertical-align: middle; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.15rem 0.6rem; border-radius: 999px; background: rgba(100, 116, 139, 0.16); color: #475569; }

.kl-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.kl-karte { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.1rem 0.9rem; border-radius: 1.1rem; text-decoration: none; color: inherit; border-top: 5px solid var(--kl-farbe, #f07e26); transition: transform 0.15s; }
.kl-karte:hover { transform: translateY(-2px); }
.kl-karte__name { font-weight: 700; font-size: 1.05rem; }
.kl-karte__meta { font-size: 0.82rem; color: var(--site-tinte-mild); }
.kl-karte__zahlen { display: flex; gap: 0.9rem; margin-top: 0.3rem; font-size: 0.85rem; color: var(--site-tinte-mild); }
.kl-karte__zahlen strong { color: var(--site-tinte); }
.kl-karte__neu { color: #b91c1c; font-weight: 600; }
.kl-karte__neu strong { color: #b91c1c; }

.kl-formular { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: flex-end; }
.kl-formular--zeile { margin-top: 0.6rem; }
.kl-mail-titel { margin: 1.4rem 0 0.5rem; font-size: 1rem; }
.kl-feld label.kl-haken { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }
.kl-haken input { margin-top: 0.2rem; flex: none; }
.kl-mailform textarea { width: 100%; min-height: 7rem; resize: vertical; }
.kl-feld { display: flex; flex-direction: column; gap: 0.3rem; min-width: 9rem; }
.kl-feld--breit { flex: 1 1 100%; }
.kl-feld label { font-weight: 600; font-size: 0.88rem; }
.kl-feld label em { font-weight: 400; color: var(--site-tinte-mild); font-style: normal; }
.kl-feld input, .kl-feld select, .kl-feld textarea { padding: 0.6rem 0.75rem; border-radius: 0.6rem; border: 1px solid var(--glas-kante); background: #fff; font: inherit; max-width: 100%; }
.kl-feld input[type=color] { padding: 0.15rem; height: 2.5rem; width: 4rem; }
.kl-inline { display: inline; margin: 0; }
.kl-linkzeile { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin: 0.4rem 0 0.9rem; }
.kl-linkzeile input { flex: 1; min-width: 240px; padding: 0.55rem 0.7rem; border-radius: 0.55rem; border: 1px solid var(--glas-kante); background: #fff; font: inherit; font-size: 0.85rem; }
.kl-gefahr { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(var(--glas-marke-dunkel), 0.12); }

.kl-personen { list-style: none; margin: 0; padding: 0; }
.kl-personen li { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(var(--glas-marke-dunkel), 0.08); flex-wrap: wrap; }
.kl-personen li:last-child { border-bottom: 0; }
.kl-personen__name { flex: 1; min-width: 10rem; font-weight: 600; display: flex; flex-direction: column; }
.kl-personen__name small { font-weight: 400; color: var(--site-tinte-mild); font-size: 0.8rem; }
.kl-personen__aktionen { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.klein-knopf { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.kl-vereinbarung { margin: 0.8rem 0 1rem; padding-left: 1.4rem; }
.kl-vereinbarung li { margin: 0.55rem 0; line-height: 1.5; }

/* Flaschenpost: Auswahl des Postfachs (Lehrkräfte und Redaktion) */
.fp-partner { display: flex; gap: 0.45rem; flex-wrap: wrap; margin: 0 0 1rem; }
.fp-partner a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.95rem; border-radius: 999px; text-decoration: none; color: inherit; font-weight: 600; font-size: 0.9rem; border: 1px solid var(--glas-kante); background: rgba(255, 255, 255, 0.6); }
.fp-partner a:hover { background: rgba(var(--glas-marke), 0.14); }
.fp-partner a.ist-aktiv { background: rgb(var(--glas-marke)); color: #fff; border-color: rgb(var(--glas-marke-dunkel)); }

/* Lehrer-Portal: Flaschenpost mit Klassenmitgliedern (Liste links, Verlauf rechts) */
.fp-lehrer { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.fp-lehrer .fp-liste { display: flex; flex-direction: column; gap: 0.3rem; max-height: 70vh; overflow-y: auto; }
.fp-lehrer .fp-liste a { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: 0.8rem; text-decoration: none; color: inherit; }
.fp-lehrer .fp-liste a:hover { background: rgba(var(--glas-marke), 0.12); }
.fp-lehrer .fp-liste a.ist-aktiv { background: rgba(var(--glas-marke), 0.22); }
.fp-lehrer .fp-liste small { display: block; color: var(--site-tinte-mild); font-size: 0.75rem; }
.fp-lehrer .fp-liste .zahl { margin-left: auto; min-width: 1.3rem; text-align: center; padding: 0 0.35rem; border-radius: 999px; background: #dc2626; color: #fff; font-size: 0.75rem; font-weight: 800; line-height: 1.3rem; }
@media (max-width: 820px) { .fp-lehrer { grid-template-columns: 1fr; } .fp-lehrer .fp-liste { max-height: 14rem; } }
.kl-umzug { margin-top: 1rem; }
.kl-umzug summary { cursor: pointer; font-weight: 600; }
.kl-auswahl { max-height: 14rem; overflow-y: auto; border: 1px solid var(--glas-kante); border-radius: 0.7rem; padding: 0.5rem 0.7rem; background: #fff; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.15rem 0.8rem; }
.kl-auswahl label { display: flex; gap: 0.5rem; align-items: center; font-weight: 500; padding: 0.15rem 0; }

/* Aufgaben und Unterricht (Klassen und "Meine Aufgaben") */
.zw-eintrag { padding: 0.9rem 0; border-bottom: 1px solid rgba(var(--glas-marke-dunkel), 0.1); }
.zw-eintrag:last-child { border-bottom: 0; }
.zw-eintrag--unterricht { border-left: 4px solid rgba(var(--glas-marke), 0.4); padding-left: 0.8rem; }
.zw-kopf, .zw-schueler__kopf { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.zw-titel { font-weight: 700; }
.zw-art--ha { background: rgba(240, 126, 38, 0.18); color: #9a4a08; }
.zw-art--u { background: rgba(14, 116, 144, 0.14); color: #0e7490; }
.zw-meta { margin: 0.25rem 0; font-size: 0.85rem; color: var(--site-tinte-mild); }
.zw-notiz { margin: 0.35rem 0; font-size: 0.92rem; }
.zw-ueberfaellig { color: #b91c1c; }
.zw-details { margin-top: 0.5rem; }
.zw-details summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; }
.zw-tabelle { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 0.88rem; }
.zw-tabelle th, .zw-tabelle td { text-align: left; padding: 0.35rem 0.6rem; border-bottom: 1px solid rgba(var(--glas-marke-dunkel), 0.08); }
.zw-tabelle .zw-ja td:nth-child(2) { color: #166534; font-weight: 600; }
.zw-tabelle .zw-nein td { color: var(--site-tinte-mild); }
.zw-liste { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.zw-schueler { padding: 0.8rem 0; border-bottom: 1px solid rgba(var(--glas-marke-dunkel), 0.1); }
.zw-schueler:last-child { border-bottom: 0; }
.zw-schueler.ist-erledigt .zw-titel { color: #166534; }
.zw-ergebnis { margin: 0.3rem 0; font-weight: 600; color: #166534; }
.zw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.zw-code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: 0.12em; }
.zw-tabelle--auswertung th { white-space: nowrap; vertical-align: bottom; }
.zw-tabelle--auswertung td.zw-ja { color: #166534; font-weight: 600; }
.zw-tabelle--auswertung td.zw-nein { color: var(--site-tinte-mild); }
.zw-tabelle--auswertung td:first-child { white-space: normal; min-width: 9rem; }
/* Meine Versuche (Verlauf der Prüfungen) */
.pv-liste { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.pv-karte { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.9rem 0; border-bottom: 1px solid rgba(var(--glas-marke-dunkel), 0.1); }
.pv-karte:last-child { border-bottom: 0; }
.pv-titel { font-weight: 700; }
.pv-fazit { font-weight: 600; margin: 0.4rem 0 0.8rem; }
.pv-hoch { color: #166534; }
.pv-runter { color: #b91c1c; }
.pv-gleich { color: var(--site-tinte-mild); }
.pv-diagramm { width: 100%; min-width: 520px; height: auto; max-width: 640px; display: block; margin: 0.5rem 0 1rem; }
.pv-gitter { stroke: rgba(var(--glas-marke-dunkel), 0.14); stroke-width: 1; }
.pv-achse { stroke: rgba(var(--glas-marke-dunkel), 0.4); }
.pv-linie { fill: none; stroke: #f07e26; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.pv-punkt { fill: #fff; stroke: #f07e26; stroke-width: 3; }
.pv-beschriftung { font-size: 14px; fill: #64748b; }
.pv-wert { font-size: 15px; font-weight: 700; fill: #9a4a08; }
table.pv-tabelle { width: 100%; border-collapse: collapse; margin-top: 0.6rem; font-size: 0.9rem; }
table.pv-tabelle th, table.pv-tabelle td { text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid rgba(var(--glas-marke-dunkel), 0.08); white-space: nowrap; }
table.pv-tabelle th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--site-tinte-mild); }
table.pv-themen td:first-child { white-space: normal; min-width: 9rem; }

/* Fortschritt einer Klasse (Lehrer/Redaktion): Stärken und Schwächen */
.fs-drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.fs-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.fs-liste { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.fs-liste li { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: baseline; }
@media (max-width: 860px) { .fs-drei { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fs-zwei { grid-template-columns: 1fr; } }

/* Kursmaterial (Art "material") und Tests zuteilen */
.zw-art--m { background: rgba(22, 163, 74, 0.16); color: #166534; }
.zt-klasse { border: 1px solid var(--glas-kante); border-left: 4px solid var(--kl-farbe, rgba(var(--glas-marke), 0.5)); border-radius: 0.7rem; padding: 0.6rem 0.9rem 0.8rem; margin: 0; min-width: 0; }
.zt-klasse legend { font-weight: 700; padding: 0 0.4rem; }
.zt-klasse .kl-auswahl { margin-top: 0.5rem; }
.test-karte__zuteilen { margin-top: 0.7rem; }
.kl-personen__name a { color: inherit; text-decoration: underline; text-decoration-color: rgba(var(--glas-marke), 0.9); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.kl-personen__name a:hover { text-decoration-color: currentColor; }
.zw-ergebnis--offen { color: var(--site-tinte-mild); font-weight: 400; }
