:root {
  --bg: #f4f5f7;
  --flaeche: #ffffff;
  --flaeche-2: #f8f9fb;
  --text: #1b2330;
  --text-2: #586273;
  --text-3: #8a93a3;
  --linie: #dfe3e9;
  --linie-2: #eceff3;
  --akzent: #a51d36;
  --akzent-dunkel: #841529;
  --akzent-hell: #fbeef1;
  --ok: #1d7a4b;
  --ok-hell: #e8f5ee;
  --warn: #9a5b00;
  --warn-hell: #fff5e3;
  --fehler: #b42318;
  --fehler-hell: #fdecea;
  --radius: 10px;
  --schatten: 0 1px 2px rgba(20, 30, 50, .06), 0 1px 1px rgba(20, 30, 50, .04);
  --kopf-hoehe: 56px;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); min-height: 100vh; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 650; }
h2 { font-size: 22px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
a { color: var(--akzent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------- Kopf */
.kopf {
  position: sticky; top: 0; z-index: 20; height: var(--kopf-hoehe);
  display: flex; align-items: center; gap: 20px; padding: 0 20px;
  background: var(--flaeche); border-bottom: 1px solid var(--linie);
}
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.logo.gross { font-size: 24px; gap: 10px; }
.kopf-mitte { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.kopf-rechts { display: flex; align-items: center; gap: 12px; }
.kopf-rechts form { margin: 0; }
.bearbeiter { color: var(--text-2); font-size: 14px; }
.bearbeiter::before { content: "●"; color: var(--ok); margin-right: 6px; font-size: 10px; vertical-align: 2px; }
.fall-kennung { font-weight: 650; font-variant-numeric: tabular-nums; }
.speicherstatus { color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.speicherstatus.ok { color: var(--ok); }
.speicherstatus.fehler { color: var(--fehler); font-weight: 600; }
.demo-banner {
  background: var(--warn-hell); color: var(--warn); font-size: 13px; text-align: center;
  padding: 5px 16px; border-bottom: 1px solid #f1dfbd;
}

/* ---------------------------------------------------------- Knöpfe */
.knopf, .knopf-text, .knopf-icon {
  font: inherit; cursor: pointer; border-radius: 8px; transition: background .12s, border-color .12s, color .12s;
}
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--akzent); background: var(--akzent); color: #fff;
  font-weight: 600; text-decoration: none; font-size: 14px;
}
.knopf:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.knopf.zweit { background: var(--flaeche); color: var(--text); border-color: var(--linie); }
.knopf.zweit:hover { border-color: var(--text-3); background: var(--flaeche-2); }
.knopf.gefahr { background: var(--fehler); border-color: var(--fehler); }
.knopf.voll { width: 100%; padding: 11px; margin-top: 18px; font-size: 15px; }
.knopf.hinzufuegen {
  background: transparent; color: var(--akzent); border: 1px dashed #d9a7b1; width: 100%; padding: 10px;
}
.knopf.hinzufuegen:hover { background: var(--akzent-hell); border-color: var(--akzent); }
.knopf-text {
  background: none; border: none; color: var(--text-2); padding: 4px 8px; font-size: 14px; text-decoration: none;
}
.knopf-text:hover { color: var(--text); background: var(--linie-2); }
.knopf-text.an { color: var(--akzent); }
.knopf-text.gefahr:hover, .knopf-icon.gefahr:hover { color: var(--fehler); background: var(--fehler-hell); }
.knopf-icon {
  width: 32px; height: 32px; flex: none; display: inline-grid; place-items: center;
  border: 1px solid transparent; background: none; color: var(--text-3);
}
.knopf-icon:hover { background: var(--linie-2); color: var(--text); }
.knopfreihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.knopfreihe form { margin: 0; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* ---------------------------------------------------------- Eingaben */
.eingabe {
  width: 100%; font: inherit; color: var(--text); background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: 8px; padding: 8px 10px; min-height: 38px;
}
.eingabe:hover { border-color: #c9cfd8; }
.eingabe:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }
.eingabe[readonly] { background: var(--flaeche-2); color: var(--text-2); }
textarea.eingabe { resize: vertical; min-height: 70px; }
select.eingabe { padding-right: 28px; }
.eingabe.zahl { font-variant-numeric: tabular-nums; }
.datum-eingabe { position: relative; display: flex; gap: 6px; align-items: center; }
.eingabe.datum { font-variant-numeric: tabular-nums; }
.eingabe.ungueltig { border-color: var(--fehler); }
.knopf-icon.kalender { height: 38px; width: 38px; border-color: var(--linie); color: var(--text-2); }
.knopf-icon.kalender svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.datum-eingabe .picker { position: absolute; right: 0; bottom: 0; width: 38px; height: 38px; opacity: 0; pointer-events: none; }
.format-fehler { font-size: 12.5px; color: var(--fehler); font-weight: 600; }
.format-fehler:empty { display: none; }
.nurlesen { padding: 8px 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.feld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.feld-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.stern { color: var(--akzent); margin-left: 3px; }
.hinweis { font-size: 12.5px; color: var(--text-3); }
.meldung { font-size: 12.5px; }
.meldung:empty { display: none; }
.hat-pflicht > .meldung { color: var(--warn); }
.hat-fehler > .meldung { color: var(--fehler); font-weight: 600; }
.feld.hat-pflicht > .eingabe, .feld.hat-pflicht > .segment, .feld.hat-pflicht > select { border-color: #e7c27d; }
.feld.hat-fehler > .eingabe, .feld.hat-fehler > select { border-color: var(--fehler); }

.felder {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px 18px;
  grid-auto-flow: row dense; align-items: start;
}
.breit { grid-column: 1 / -1; }

/* Segmente */
.segment { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; background: var(--flaeche); width: fit-content; max-width: 100%; }
.segment button {
  font: inherit; font-size: 13.5px; border: none; background: none; color: var(--text-2); cursor: pointer;
  padding: 7px 12px; border-right: 1px solid var(--linie-2);
}
.segment button:last-child { border-right: none; }
.segment button:hover { background: var(--flaeche-2); color: var(--text); }
.segment button.an { background: var(--akzent); color: #fff; font-weight: 600; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: 13.5px; cursor: pointer; border: 1px solid var(--linie); background: var(--flaeche);
  color: var(--text-2); border-radius: 999px; padding: 5px 12px;
}
.chip:hover { border-color: var(--text-3); color: var(--text); }
.chip.an { background: var(--akzent-hell); border-color: var(--akzent); color: var(--akzent-dunkel); font-weight: 600; }
.chip.fehlt { border-color: var(--fehler); color: var(--fehler); background: var(--fehler-hell); }
.chip.statisch { cursor: default; padding: 2px 9px; font-size: 12px; }
.chips.klein .chip { font-size: 12.5px; padding: 3px 10px; }
.chip b { font-weight: 700; }
.leer { color: var(--text-3); font-size: 13.5px; font-style: italic; }

/* Aussage-Zeilen */
.aussage { padding: 10px 12px; border: 1px solid var(--linie-2); border-radius: var(--radius); background: var(--flaeche-2); }
.aussage-kopf { display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; align-items: center; gap: 12px; }
.aussage-details { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--linie); }
.aussage.hat-pflicht { border-color: #e7c27d; background: #fffbf3; }
.aussage.hat-fehler { border-color: var(--fehler); }

/* Gruppen, Listen, Karten */
.gruppe { border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; background: var(--flaeche); min-width: 0; }
.gruppe > legend { font-weight: 650; font-size: 14px; padding: 0 6px; color: var(--text); }
.gruppe > .hinweis { margin-bottom: 10px; }
.gruppe.hat-fehler { border-color: var(--fehler); }
.schalter { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; cursor: pointer; }
.schalter input { width: 16px; height: 16px; accent-color: var(--akzent); }
.optional { padding: 10px 12px; border: 1px dashed var(--linie); border-radius: var(--radius); }

.erhebung { padding: 16px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); }
.liste { display: flex; flex-direction: column; gap: 8px; }
.karte { border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); box-shadow: var(--schatten); }
.karte.offen { border-color: #cdd3dc; }
.karte.hat-pflicht { border-left: 3px solid #e7a93a; }
.karte.hat-fehler { border-left: 3px solid var(--fehler); }
.karte-kopf { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 4px; }
.karte-auf {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font: inherit; text-align: left;
  border: none; background: none; cursor: pointer; padding: 8px; border-radius: 8px; color: var(--text);
}
.karte-auf:hover { background: var(--flaeche-2); }
.pfeil { color: var(--text-3); width: 12px; }
.id-marke {
  font-size: 12px; font-weight: 700; color: var(--akzent-dunkel); background: var(--akzent-hell);
  border-radius: 6px; padding: 2px 7px; font-variant-numeric: tabular-nums;
}
.karte-titel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte-zaehler { font-size: 12px; color: var(--warn); font-weight: 600; white-space: nowrap; }
.karte-inhalt { padding: 6px 16px 18px; border-top: 1px solid var(--linie-2); padding-top: 16px; }
.textliste { display: flex; flex-direction: column; gap: 6px; }
.textzeile { display: flex; gap: 6px; align-items: center; }
.filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
details.erweitert > summary { cursor: pointer; color: var(--text-2); font-size: 13.5px; font-weight: 600; padding: 4px 0; }
details.erweitert[open] > summary { margin-bottom: 8px; }

/* ---------------------------------------------------------- Editor-Layout */
.editor { display: grid; grid-template-columns: 270px 1fr; align-items: start; max-width: 1400px; margin: 0 auto; }
.seitenleiste {
  position: sticky; top: calc(var(--kopf-hoehe) + 1px); max-height: calc(100vh - var(--kopf-hoehe));
  overflow-y: auto; padding: 20px 12px 30px 20px;
}
.fortschritt { padding: 0 8px 14px; }
.fortschritt-text { font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.balken { height: 6px; background: var(--linie); border-radius: 99px; overflow: hidden; }
.balken-fuellung { height: 100%; background: var(--ok); border-radius: 99px; transition: width .3s; }
.leiste-gruppe { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; padding: 12px 10px 4px; }
.leiste-eintrag {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px;
}
.leiste-eintrag.unter { padding-left: 20px; }
.leiste-eintrag:hover { background: var(--linie-2); }
.leiste-eintrag.aktiv { background: var(--flaeche); box-shadow: var(--schatten); font-weight: 650; color: var(--akzent-dunkel); }
.marke {
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: 11.5px; font-weight: 700;
  display: inline-grid; place-items: center; color: var(--text-3);
}
.marke.ok { color: var(--ok); }
.marke.pflicht { background: var(--warn-hell); color: var(--warn); }
.marke.fehler { background: var(--fehler-hell); color: var(--fehler); }

.abschnitt { padding: 28px 32px 60px; min-width: 0; }
.abschnitt-kopf { margin-bottom: 22px; max-width: 920px; }
.abschnitt-gruppe { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; min-height: 16px; }
.intro { color: var(--text-2); margin: 6px 0 0; max-width: 760px; }
.hinweisbox { background: var(--warn-hell); color: var(--warn); padding: 8px 12px; border-radius: 8px; }
.abschnitt > .felder, .abschnitt > .pruefen {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 22px; box-shadow: var(--schatten);
}
.abschnitt-fuss { display: flex; justify-content: space-between; margin-top: 22px; gap: 12px; }

.blinken { animation: blinken 1.6s ease-out; }
@keyframes blinken { 0%, 30% { box-shadow: 0 0 0 4px rgba(165, 29, 54, .25); border-radius: 8px; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Prüfen */
.pruefen { display: flex; flex-direction: column; gap: 18px; }
.statuskarte { padding: 14px 16px; border-radius: var(--radius); border: 1px solid; }
.statuskarte.ok { background: var(--ok-hell); border-color: #b8dfc9; color: #155a37; }
.statuskarte.offen { background: var(--warn-hell); border-color: #f1dfbd; color: #6f4300; }
.pruefgruppe h3 { margin-bottom: 6px; }
.pruefgruppe ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pruefpunkt {
  width: 100%; text-align: left; font: inherit; cursor: pointer; display: flex; gap: 12px; justify-content: space-between;
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--linie-2); background: var(--flaeche-2);
}
.pruefpunkt:hover { border-color: var(--akzent); background: var(--akzent-hell); }
.pruef-pfad { font-weight: 600; }
.pruef-text { color: var(--text-2); font-size: 13.5px; text-align: right; }
.pruefpunkt.schema .pruef-text, .pruefpunkt.referenz .pruef-text { color: var(--fehler); }
.export p { color: var(--text-2); margin: 4px 0 12px; }
pre.json { background: #1d2430; color: #e3e8ef; padding: 14px; border-radius: 8px; font-size: 12.5px; max-height: 480px; overflow: auto; }

.konflikt {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; width: min(720px, calc(100vw - 32px));
  background: var(--flaeche); border: 1px solid var(--fehler); border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 12px 40px rgba(20, 30, 50, .2);
}
.konflikt p { margin: 0 0 12px; }
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; background: var(--text); color: #fff; padding: 10px 16px;
  border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: opacity .5s;
}
.toast.weg { opacity: 0; }

/* ---------------------------------------------------------- Fallliste */
.seite { max-width: 1240px; margin: 0 auto; padding: 28px 24px 60px; }
.seiten-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.filterzeile { display: grid; grid-template-columns: 1fr 180px 220px; gap: 10px; margin-bottom: 14px; }
.tabelle-rahmen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; box-shadow: var(--schatten); }
.tabelle-rahmen > .leer { padding: 24px; margin: 0; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3);
  padding: 12px 14px; background: var(--flaeche-2); border-bottom: 1px solid var(--linie);
}
.tabelle td { padding: 12px 14px; border-bottom: 1px solid var(--linie-2); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: none; }
.fallzeile { cursor: pointer; }
.fallzeile:hover td { background: #fcfcfd; }
.fall-link { font-weight: 650; text-decoration: none; font-variant-numeric: tabular-nums; }
.frage-zelle { max-width: 420px; }
.frage-zelle .chips { margin-top: 6px; }
.klein { font-size: 13px; color: var(--text-2); }
.aktionen { white-space: nowrap; text-align: right; }
.pille { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--warn-hell); color: var(--warn); white-space: nowrap; }
.pille.ok { background: var(--ok-hell); color: var(--ok); }
.pille.warn { margin-left: 8px; background: var(--fehler-hell); color: var(--fehler); }

/* ---------------------------------------------------------- Konten, Passwort, Historie */
a.bearbeiter { text-decoration: none; }
a.bearbeiter:hover { color: var(--text); text-decoration: underline; }
.seite.schmal { max-width: 760px; }
.seite.schmal > h1 + .intro { margin-bottom: 18px; }
.seite.schmal > .statuskarte { margin-bottom: 14px; }
.abstand { margin-bottom: 16px; }
.abstand-oben { margin: 32px 0 12px; }
.formular { display: flex; flex-direction: column; gap: 6px; padding: 22px; box-shadow: var(--schatten); }
.formular .feld-label { margin-top: 8px; }
.formular .knopfreihe { margin-top: 14px; }
.formular.raster { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr auto; gap: 14px; align-items: end; }
.formular.raster .feld-label { margin-top: 0; }
form.inline { display: inline; margin: 0; }
.eingabe.kompakt { min-height: 32px; padding: 4px 26px 4px 8px; width: auto; font-size: 14px; }
.statuskarte.einmal { background: #eef4ff; border-color: #c4d6f5; color: #1d3a6b; }
code.passwort {
  display: inline-block; margin: 0 6px; padding: 3px 10px; border-radius: 6px; background: var(--flaeche);
  border: 1px solid #c4d6f5; font-size: 16px; font-weight: 700; letter-spacing: .02em; user-select: all;
}
.statuskarte .hinweis { margin-top: 6px; color: inherit; opacity: .8; }
tr.inaktiv td { color: var(--text-3); }
.zeitleiste { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--linie); }
.zeitleiste li { position: relative; padding: 10px 0 14px 16px; }
.zeitleiste li::before {
  content: ""; position: absolute; left: -25px; top: 15px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--flaeche); border: 2px solid var(--text-3);
}
.zeitleiste li.aktuell::before { background: var(--akzent); border-color: var(--akzent); }
.zeitleiste li.anfang::before { background: var(--linie); }
.zeit-kopf { font-weight: 600; }
.zeitleiste .knopfreihe { margin-top: 2px; margin-left: -8px; }

/* ---------------------------------------------------------- Medaillen */
.medaille { flex: none; display: block; }
.medaille .band { fill: #8f1d32; }
.medaille .scheibe { stroke-width: 1; }
.medaille .ring { fill: none; stroke-width: .9; opacity: .55; }
.medaille .stern { fill: #fff; opacity: .9; }
.medaille.bronze .scheibe { fill: #c27c41; stroke: #9a5d2b; }
.medaille.bronze .ring { stroke: #fbe1c8; }
.medaille.silber .scheibe { fill: #a9b2bd; stroke: #7f8995; }
.medaille.silber .ring { stroke: #f2f5f8; }
.medaille.gold .scheibe { fill: #e1ad2b; stroke: #b5861a; }
.medaille.gold .ring { stroke: #fff3c4; }
.medaille.gesperrt .band { fill: #d5d9df; }
.medaille.gesperrt .scheibe { fill: #eceff3; stroke: #d5d9df; }
.medaille.gesperrt .ring { stroke: #fff; }
.medaille.gesperrt .stern { fill: #d5d9df; opacity: 1; }
.kopf-medaille { display: inline-flex; }

.medaillen-karte {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 16px 20px;
  margin-bottom: 18px; box-shadow: var(--schatten);
}
.medaillen-reihe { display: flex; gap: 14px; }
.medaillen-stufe { display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.medaillen-stufe span { display: flex; flex-direction: column; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.medaillen-stufe small { font-weight: 400; font-size: 12px; }
.medaillen-stufe.erreicht { color: var(--text); }
.medaillen-fortschritt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.medaillen-text { font-size: 14px; color: var(--text-2); }
.medaillen-text strong { color: var(--text); }
.team-zahl { display: flex; flex-direction: column; align-items: center; padding-left: 20px; border-left: 1px solid var(--linie-2); }
.team-wert { font-size: 26px; font-weight: 700; color: var(--akzent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.team-label { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.balken-0 { width: 0; } .balken-10 { width: 10%; } .balken-20 { width: 20%; } .balken-30 { width: 30%; }
.balken-40 { width: 40%; } .balken-50 { width: 50%; } .balken-60 { width: 60%; } .balken-70 { width: 70%; }
.balken-80 { width: 80%; } .balken-90 { width: 90%; } .balken-100 { width: 100%; }

.toast.feier {
  display: flex; align-items: center; gap: 14px; background: var(--flaeche); color: var(--text);
  border: 1px solid #f0d78c; padding: 14px 18px; font-size: 15px; animation: einblenden .35s ease-out;
}
.toast.feier .medaille { animation: wippen 1.2s ease-in-out 2; }
@keyframes einblenden { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wippen { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .toast.feier, .toast.feier .medaille { animation: none; } }

/* ---------------------------------------------------------- Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(160deg, #f7f1f3 0%, var(--bg) 55%); }
.login-karte {
  width: min(400px, 100%); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px;
  padding: 32px; box-shadow: 0 10px 40px rgba(20, 30, 50, .08); display: flex; flex-direction: column; gap: 6px;
}
.login-unter { color: var(--text-2); margin: 2px 0 18px; }
.login-karte .feld-label { margin-top: 10px; }
.login-karte .statuskarte { margin-bottom: 6px; }
.login-karte .hinweis { margin-top: 14px; text-align: center; }

/* ---------------------------------------------------------- Schmal */
@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; }
  .seitenleiste { position: static; max-height: none; padding: 12px 16px 0; }
  .seitenleiste nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; }
  .leiste-gruppe { display: none; }
  .leiste-eintrag, .leiste-eintrag.unter { padding: 6px 10px; white-space: nowrap; flex: none; }
  .abschnitt { padding: 16px; }
  .abschnitt > .felder, .abschnitt > .pruefen { padding: 16px; }
  .aussage-kopf { grid-template-columns: 1fr; gap: 8px; }
  .filterzeile, .formular.raster, .medaillen-karte { grid-template-columns: 1fr; }
  .team-zahl { flex-direction: row; gap: 8px; padding-left: 0; border-left: none; }
  .kopf { gap: 10px; padding: 0 12px; }
  .speicherstatus, .bearbeiter { display: none; }
  .tabelle thead { display: none; }
  .tabelle tr { display: block; padding: 10px 4px; border-bottom: 1px solid var(--linie-2); }
  .tabelle td { display: block; border: none; padding: 4px 12px; }
  .aktionen { text-align: left; }
}
