/* Prüfungsumgebung der SPITZKE AKADEMIE – Farben aus den Logos (Blau des S-Logos, Blau und Rot der Akademie).
   Nur eigene Dateien (CSP: style-src 'self'), keine Fremdschriften. */
:root {
  --spitzke: #034b9b; --spitzke-dunkel: #02386f; --akademie: #066dba; --rot: #e8321f;
  --grund: #eef2f7; --karte: #ffffff; --text: #18212f; --leise: #5f6b7a; --rand: #dde3ec; --rand-stark: #c5cfdc;
  --haupt-hell: #e8f0fa; --gut: #1c7c3c; --gut-hell: #e6f4ea; --schlecht: #c8261a; --schlecht-hell: #fdecea;
  --offen: #8a5a00; --offen-hell: #fff5d9;
  --schatten: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(3, 75, 155, .07);
  --rund: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column;
       font-family: "Segoe UI", "Helvetica Neue", "DejaVu Sans", Arial, sans-serif; font-size: 17px; line-height: 1.55;
       color: var(--text); background: var(--grund); }
a { color: var(--akademie); }
a:hover { color: var(--spitzke); }
:focus-visible { outline: 3px solid rgba(6, 109, 186, .45); outline-offset: 2px; }

/* --- Kopf ------------------------------------------------------------------------------------------- */
.kopf { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 1px 0 var(--rand); }
.kopf-innen { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.kopf .logo { height: 46px; width: auto; display: block; }
.kopf .trenner { width: 1px; align-self: stretch; background: var(--rand); }
.kopf .titel { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.kopf .titel strong { color: var(--spitzke); font-size: 1.02rem; letter-spacing: .01em; }
.kopf .titel span { color: var(--leise); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf .titel a { color: var(--leise); }
.kopf .rechts-oben { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.kopf .rechts-oben form { margin: 0; }
.kopf .rechts-oben .knopf, .kopf .rechts-oben button { padding: 6px 14px; font-size: .9rem; }
.streifen { height: 4px; background: linear-gradient(90deg, var(--spitzke) 0 72%, var(--rot) 72% 100%); }
.zeit { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; color: #fff; background: var(--spitzke);
        padding: 4px 14px; border-radius: 999px; }
.zeit::before { content: "⏱ "; font-weight: 400; }
.zeit.knapp { background: var(--rot); animation: puls 1.6s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .75; } }
.rolle { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--spitzke);
         background: var(--haupt-hell); padding: 3px 10px; border-radius: 999px; }

/* --- Rahmen --------------------------------------------------------------------------------------------- */
.inhalt { width: 100%; max-width: 1120px; margin: 26px auto; padding: 0 20px; flex: 1; }
.fuss { color: var(--leise); font-size: .82rem; padding: 18px 20px 26px; text-align: center; }
.fuss strong { color: var(--spitzke); letter-spacing: .04em; }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--rund); box-shadow: var(--schatten);
         padding: 24px 28px; margin-bottom: 20px; }
.karte.schmal { max-width: 480px; margin: 34px auto; }
h1 { font-size: 1.4rem; margin: 0 0 14px; color: var(--spitzke); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
h2 { font-size: 1.12rem; margin: 22px 0 10px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
h3 { font-size: 1rem; margin: 0 0 6px; }
.karte > h1:first-child, .karte > h2:first-child { margin-top: 0; }
.punkte { margin-left: auto; font-size: .88rem; color: var(--leise); font-weight: 500; }
.leise { color: var(--leise); font-size: .9rem; }
.fehler { color: var(--schlecht); background: var(--schlecht-hell); padding: 10px 14px; border-radius: 10px;
          border-left: 4px solid var(--schlecht); }
.meldung { background: var(--haupt-hell); padding: 12px 16px; border-radius: 10px; border-left: 4px solid var(--akademie); }

/* --- Einstieg (Anmeldung Teilnehmer/Prüfer, Abgabe) --------------------------------------------------- */
.einstieg { text-align: center; padding-top: 30px; }
.einstieg .zeichen { width: 76px; height: 76px; border-radius: 16px; box-shadow: var(--schatten); margin-bottom: 6px; }
.einstieg h1 { justify-content: center; font-size: 1.55rem; }
.einstieg p { margin: 0 0 14px; }
.einstieg form { text-align: left; margin-top: 18px; }
.einstieg button { width: 100%; margin-top: 16px; padding: 12px 16px; font-size: 1.05rem; }
.karte.mittel { max-width: 680px; margin: 30px auto; }
.untertitel { margin: -8px 0 6px !important; font-weight: 600; color: var(--leise); text-transform: uppercase;
  letter-spacing: .08em; font-size: .85rem; }
.vorstart h2 { margin: 24px 0 6px; font-size: 1.05rem; color: var(--spitzke); }
.vorstart .links { text-align: left; margin-bottom: 10px; }
.zwei-felder { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.zwei-felder label { margin: 0; }
.regeln { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.regeln li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #f7f9fc;
  border: 1px solid var(--rand); font-size: .95rem; line-height: 1.45; }
.regel-zeichen { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; background: var(--haupt-hell); color: var(--spitzke); font-size: 1rem; }
.zustimmung { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0; padding: 14px 16px; border-radius: 12px;
  border: 2px solid var(--spitzke); background: var(--haupt-hell); font-weight: 500; cursor: pointer; }
.zustimmung input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--spitzke); }
@media (max-width: 600px) { .zwei-felder { grid-template-columns: 1fr; } }
.haken { font-size: 3rem; color: var(--gut); line-height: 1; }
.abstand-oben { margin-top: 18px !important; }

/* --- Formulare -------------------------------------------------------------------------------------------- */
label { display: block; margin: 12px 0 5px; font-weight: 500; }
input, select, textarea, button { font: inherit; }
input[type=text], input:not([type]), input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rand-stark); border-radius: 10px; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--akademie);
  box-shadow: 0 0 0 3px rgba(6, 109, 186, .18); }
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
input[type=file] { font-size: .95rem; }
button, .knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px;
  border: 1px solid var(--rand-stark); border-radius: 10px; background: #fff; color: var(--text); cursor: pointer;
  text-decoration: none; font-weight: 500; transition: background .15s, border-color .15s, color .15s; }
button:hover, .knopf:hover { border-color: var(--akademie); color: var(--spitzke); }
button:disabled { opacity: .4; cursor: default; }
button.haupt { background: var(--spitzke); border-color: var(--spitzke); color: #fff; }
button.haupt:hover { background: var(--spitzke-dunkel); color: #fff; }
button.warnung { background: var(--rot); border-color: var(--rot); color: #fff; }
button.warnung:hover { background: #c22414; color: #fff; }
.code-eingabe { font-size: 1.7rem; letter-spacing: .18em; text-align: center; text-transform: uppercase;
  font-family: Consolas, "DejaVu Sans Mono", monospace; padding: 14px !important; }

/* --- Aufgaben ----------------------------------------------------------------------------------------------- */
.fortschritt { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; color: var(--leise); font-size: .9rem; }
.fortschritt progress { flex: 1; max-width: 360px; height: 8px; width: auto; }
/* Aufgabenseite: links feste Leiste mit Stand und Aufgabenraster, rechts die Aufgabe */
.pruefung { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 22px; align-items: start; }
.seitenleiste { position: sticky; top: 16px; }
.leiste-karte { padding: 18px 16px; margin: 0; max-height: calc(100vh - 32px); overflow-y: auto; }
.stand { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.stand-zahl { font-size: 1.05rem; color: var(--leise); font-variant-numeric: tabular-nums; }
.stand-zahl b { font-size: 1.7rem; color: var(--spitzke); }
.leiste-karte progress { width: 100%; height: 8px; margin: 8px 0 14px; }
.aufgaben-raster { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.aufgaben-raster .nr { position: relative; height: 36px; padding: 0; font-size: .86rem; font-weight: 600; border-radius: 8px;
  font-variant-numeric: tabular-nums; color: var(--leise); background: #fff; }
.aufgaben-raster .nr.erledigt { background: var(--haupt-hell); border-color: #b9cfea; color: var(--spitzke); }
.aufgaben-raster .nr.erledigt::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gut); }
.aufgaben-raster .nr.aktiv { background: var(--spitzke); border-color: var(--spitzke); color: #fff;
  box-shadow: 0 0 0 3px rgba(3, 75, 155, .18); }
.aufgaben-raster .nr.aktiv::after { background: #fff; }
.legende { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 12px 0 14px; font-size: .78rem;
  color: var(--leise); }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--rand-stark);
  background: #fff; margin-right: -6px; vertical-align: -1px; }
.punkt.aktiv { background: var(--spitzke); border-color: var(--spitzke); }
.punkt.erledigt { background: var(--haupt-hell); border-color: #b9cfea; }
.breit-knopf { width: 100%; }
.aufgabe { margin: 0; padding: 26px 32px 28px; }
.aufgabe-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--rand); }
.aufgabe-nr { font-size: 1.05rem; color: var(--spitzke); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.aufgabe-nr b { font-size: 1.5rem; letter-spacing: 0; }
.aufgabe-nr .leise { text-transform: none; letter-spacing: 0; font-weight: 400; }
.hinweis-klein { display: block; margin: 0 0 8px; font-size: .82rem; color: var(--leise); text-transform: uppercase;
  letter-spacing: .05em; font-weight: 600; }
.buchstabe { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: .9rem; color: var(--spitzke); background: var(--haupt-hell);
  margin-top: -1px; }
.antwort:has(input:checked) .buchstabe { background: var(--spitzke); color: #fff; }
.antwort-text { padding-top: 2px; }
@media (max-width: 900px) {
  .pruefung { grid-template-columns: 1fr; }
  .seitenleiste { position: static; }
  .leiste-karte { max-height: none; }
  .aufgaben-raster { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
  .aufgabe { padding: 20px 18px; }
}
.kennung { font-size: .82rem; color: var(--leise); background: #f2f4f8; border: 1px solid var(--rand); border-radius: 999px;
           padding: 2px 10px; margin-left: auto; font-variant-numeric: tabular-nums; }
.frage.mit-bild { display: grid; grid-template-columns: 1fr minmax(180px, 40%); gap: 22px; align-items: start; }
.fragetext { white-space: pre-wrap; margin: 0 0 16px; font-size: 1.08rem; }
.antworttext { white-space: pre-wrap; margin: 0 0 12px; }
.fragebild { max-width: 100%; max-height: 440px; border: 1px solid var(--rand); border-radius: 10px; background: #fff;
             box-shadow: var(--schatten); }
img.fragebild { cursor: zoom-in; }
.bild-rahmen { margin: 0; }
.bild-knopf { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; }
.bild-knopf:focus-visible { outline: 3px solid var(--akademie); outline-offset: 3px; }
.speicherstand { min-height: 1.3em; margin: 10px 0 0; }
.fehler-text { color: var(--schlecht); font-weight: 600; }
.verbindung-hinweis { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 400; max-width: 92vw;
  padding: 12px 18px; border-radius: 12px; background: var(--schlecht); color: #fff; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.verbindung-hinweis[hidden] { display: none; }
.zeit-hinweis { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 300; max-width: 92vw;
  padding: 12px 18px; border-radius: 12px; background: var(--offen-hell); color: var(--offen); border: 2px solid #e3a21a;
  font-weight: 700; box-shadow: 0 8px 30px rgba(0, 0, 0, .15); }
.bild-lupe { display: block; margin-top: 6px; font-size: .8rem; color: var(--leise); text-align: center; }
.bild-gross { position: fixed; inset: 0; z-index: 200; background: rgba(10, 20, 35, .92); display: flex;
  flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.bild-gross[hidden] { display: none; }
.bild-flaeche { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden;
  cursor: zoom-out; }
.bild-flaeche img { width: 94vw; height: calc(100vh - 110px); object-fit: contain; background: #fff; border-radius: 8px;
  cursor: zoom-in; }
.bild-gross.original .bild-flaeche { overflow: auto; display: block; text-align: center; }
.bild-gross.original .bild-flaeche img { width: auto; height: auto; max-width: none; object-fit: none; cursor: zoom-out; }
.bild-zu { align-self: flex-end; background: #fff; font-weight: 600; margin-bottom: 8px; }
.bild-hinweis { color: #dbe4f0; font-size: .85rem; margin: 8px 0 0; }
body.bild-offen { overflow: hidden; }
.antworten { display: grid; gap: 10px; }
.antwort { display: flex; gap: 14px; align-items: flex-start; padding: 13px 16px; border: 1px solid var(--rand-stark);
  border-radius: 12px; margin: 0; cursor: pointer; font-weight: 400; background: #fff; transition: border-color .15s, background .15s; }
.antwort:hover { border-color: var(--akademie); }
.antwort:has(input:checked) { border-color: var(--spitzke); background: var(--haupt-hell); box-shadow: inset 4px 0 0 var(--spitzke); }
.antwort input { width: 21px; height: 21px; margin-top: 3px; flex: none; accent-color: var(--spitzke); }
.knoepfe { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; flex-wrap: wrap; }
.uebersicht { padding-left: 0; list-style: none; margin: 12px 0 0; }
.uebersicht li { display: grid; grid-template-columns: 120px 1fr 120px; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--rand); }
.uebersicht li.offen em { color: var(--schlecht); font-weight: 600; }
.uebersicht li.erledigt em { color: var(--gut); }
.uebersicht em { font-style: normal; text-align: right; }
.abgabe { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
          padding: 16px; background: #f7f9fc; border: 1px solid var(--rand); border-radius: 12px; }
.abgabe label { margin: 0; font-weight: 400; }

/* --- Prüferbereich ------------------------------------------------------------------------------------------ */
.zeile { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.zeile label { margin: 0; }
.zeile .breit { flex: 1; min-width: 220px; }
.rechts { text-align: right; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kachel { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--rund); box-shadow: var(--schatten);
          padding: 16px 18px; }
.kachel b { display: block; font-size: 1.6rem; color: var(--spitzke); line-height: 1.2; }
.kachel span { color: var(--leise); font-size: .88rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { font-size: .8rem; color: var(--leise); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
     background: #f7f9fc; }
tbody tr:hover td { background: #fafcff; }
tr.gut td { background: var(--gut-hell); }
tr.schlecht td { background: var(--schlecht-hell); }
tr.falsch td { background: #f6f6f6; }
tr.fehlt td { background: var(--offen-hell); }
.sprunglinks { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-weight: 600; color: var(--offen); }
.naechste-schritte { margin: 4px 0 16px; padding: 12px 16px 12px 34px; background: var(--haupt-hell); border-radius: 12px;
  border: 1px solid #b9cfea; display: grid; gap: 4px; }
.art-marke { font-size: .76rem; padding: 3px 10px; border-radius: 999px; background: var(--haupt-hell); color: var(--spitzke);
  font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.status { font-size: .76rem; padding: 3px 10px; border-radius: 999px; background: #eef0f3; font-weight: 700; letter-spacing: .02em; }
.status.offen { background: var(--gut-hell); color: var(--gut); }
.status.geschlossen { background: #e5e7eb; color: #4b5563; }
.status.vorbereitet { background: var(--offen-hell); color: var(--offen); }
.gut { color: var(--gut); font-weight: 600; }
.schlecht { color: var(--schlecht); font-weight: 600; }
.offen { color: var(--offen); }
.ergebnis { font-size: 1.15rem; }
.code { font-family: Consolas, "DejaVu Sans Mono", monospace; letter-spacing: .05em; }
.code.gross { font-size: 1.45rem; font-weight: 700; color: var(--spitzke); }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.loesung { background: var(--gut-hell); padding: 10px 12px; border-radius: 10px; }
.aufgabe-pruefer.ko { border-color: var(--schlecht); box-shadow: inset 4px 0 0 var(--schlecht), var(--schatten); }
.stempel { display: inline-block; border: 3px solid var(--schlecht); color: var(--schlecht); font-weight: 800;
  padding: 0 10px; border-radius: 4px; transform: rotate(-8deg); letter-spacing: .1em; }
progress { width: 110px; height: 10px; vertical-align: middle; accent-color: var(--spitzke); }
progress.falsch { accent-color: #9ca3af; }
progress.bg { accent-color: var(--schlecht); }
.ampel { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--gut); }
.ampel.gelb { background: #d99a00; }
.ampel.rot { background: var(--schlecht); }
/* --- Statistik: Diagramme (SVG vom Server, Farben über Klassen) --------------------------------------------- */
.raster-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.raster-2 > .karte { margin: 0; }
@media (max-width: 900px) { .raster-2 { grid-template-columns: 1fr; } }
.kachel.warn b { color: var(--schlecht); }
.ring-diagramm { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ring { width: 190px; height: 190px; flex: none; transform: rotate(0deg); }
.ring-grund { fill: none; stroke: #edf1f6; stroke-width: 6; }
.ring-teil { fill: none; stroke-width: 6; }
.ring-zahl { font-size: 7px; font-weight: 700; fill: var(--spitzke); text-anchor: middle; dominant-baseline: middle; }
.ring-unter { font-size: 3px; fill: var(--leise); text-anchor: middle; }
.legende-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.legende-liste .farbe { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px;
  vertical-align: -1px; }
/* Farben: Ring über stroke, Säulen über fill, Legende über background – getrennt, damit sich nichts überlagert */
.ring-teil.f-gut { stroke: var(--gut); } .saeule.f-gut { fill: var(--gut); } .farbe.f-gut { background: var(--gut); }
.ring-teil.f-schlecht { stroke: #e0675d; } .saeule.f-schlecht { fill: #e0675d; } .farbe.f-schlecht { background: #e0675d; }
.ring-teil.f-bg { stroke: #8f1309; } .saeule.f-bg { fill: #8f1309; } .farbe.f-bg { background: #8f1309; }
.ring-teil.f-offen { stroke: #e3a21a; } .saeule.f-offen { fill: #e3a21a; } .farbe.f-offen { background: #e3a21a; }
.ring-teil.f-grau { stroke: #b8c2cf; } .saeule.f-grau { fill: #b8c2cf; } .farbe.f-grau { background: #b8c2cf; }
.saeulen { width: 100%; height: auto; display: block; }
.saeule { fill: var(--akademie); }
.achse { stroke: var(--rand-stark); stroke-width: 1; }
.saeulen-wert { font-size: 11px; font-weight: 700; fill: var(--text); text-anchor: middle; }
.saeulen-text { font-size: 10px; fill: var(--leise); text-anchor: middle; }
.grenze { stroke: var(--spitzke); stroke-width: 1.5; stroke-dasharray: 4 3; }
.grenze-text { font-size: 10px; fill: var(--spitzke); font-weight: 600; }
.balken { width: 100%; height: 10px; display: block; }
.balken-grund { fill: #edf1f6; }
.balken-wert { fill: var(--akademie); }
.balken-wert.gut { fill: var(--gut); }
.balken-wert.mittel { fill: #e3a21a; }
.balken-wert.schwach, .balken-wert.falsch { fill: #e0675d; }
.balken-wert.bg { fill: #8f1309; }
table.bereiche td { vertical-align: middle; border-bottom: 1px solid var(--rand); }
.balken-zelle { width: 40%; min-width: 120px; }
.zahl { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.rangliste { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.rangliste li { display: grid; grid-template-columns: minmax(0, 1fr) 110px 56px; gap: 10px; align-items: center;
  font-size: .9rem; }
.rang-text { overflow: hidden; text-overflow: ellipsis; }
.auffaellig-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.auffaellig-liste li { padding: 10px 12px; border: 1px solid var(--rand); border-radius: 10px; background: #fffaf0;
  font-size: .92rem; }
.hinweise { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hinweis-marke { font-size: .78rem; padding: 2px 9px; border-radius: 999px; background: var(--offen-hell); color: var(--offen);
  font-weight: 600; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary h2.inline { display: inline-flex; margin: 0; }
details > summary h2.inline::before { content: "▸"; color: var(--spitzke); margin-right: 6px; }
details[open] > summary h2.inline::before { content: "▾"; }
details[open] > summary { margin-bottom: 14px; }
.statistik td { font-size: .92rem; }
.statistik .antwortzeile { display: grid; grid-template-columns: minmax(160px, 1fr) 110px 50px; gap: 8px; align-items: center; }
.korrektur { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--rand-stark); }
.korrektur input[type=number] { width: 100px; }
.korrektur label .leise { margin-left: 6px; font-weight: 400; }
.vollbild-hinweis { position: fixed; inset: 0; z-index: 100; background: rgba(15, 30, 55, .82);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.vollbild-hinweis[hidden] { display: none; }
.vollbild-hinweis .karte { max-width: 480px; text-align: center; }
.vollbild-logo { width: 64px; height: 64px; }
kbd { border: 1px solid var(--rand-stark); border-bottom-width: 3px; border-radius: 5px; padding: 1px 7px;
  font-family: inherit; font-weight: 700; background: #f7f9fc; }
.hilfe { display: inline-flex; margin: 0; }
.hilfe-knopf, .hilfe-wartet { white-space: nowrap; }
@media (max-width: 600px) { .kopf-innen .titel, .kopf-innen .trenner { display: none; } }
.hilfe-knopf { background: #fff4e5; border-color: #f0b35a; color: #8a4b00; font-weight: 600; }
.hilfe-knopf:hover { background: #ffe8c7; }
.hilfe-wartet { display: inline-block; padding: 7px 12px; border-radius: 999px; background: #fff4e5; color: #8a4b00;
  font-weight: 600; font-size: .9rem; }
.hilfe-alarm { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; padding: 12px 16px;
  background: #fff4e5; border: 2px solid #f0b35a; border-radius: var(--rund); font-weight: 600; }
.hilfe-alarm[hidden] { display: none; }
.leerlauf-warnung { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 300; max-width: 92vw;
  padding: 12px 18px; border-radius: 12px; background: var(--spitzke-dunkel); color: #fff; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.leerlauf-warnung[hidden] { display: none; }
.hilfe-alarm a { color: #8a4b00; }
/* Sperrseite: Meldungen groß, damit man sie von weitem sieht */
.sperre-meldungen p.sperre-ruf, .sperre-meldungen p.sperre-auffaellig { margin: 0 0 8px; padding: 12px 16px;
  border-radius: 10px; font-size: 1.25rem; font-weight: 700; }
.sperre-meldungen p.sperre-ruf { background: #fff4e5; border: 2px solid #f0b35a; color: #8a4b00; }
.sperre-meldungen p.sperre-auffaellig { background: var(--schlecht-hell); border: 2px solid var(--schlecht); color: #7a1d12; }
#sperre-ruhig[hidden] { display: none; }
.hilferufe { border-color: #f0b35a; box-shadow: inset 4px 0 0 #f0b35a, var(--schatten); }
@media print { .hilfe-alarm, .hilfe { display: none !important; } }
.aufsicht-info { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--schlecht-hell);
  border: 1px solid var(--schlecht); color: #7a1d12; font-size: .95rem; }
.aufsicht-info[hidden] { display: none; }
.aufsicht-zelle form { margin-top: 4px; }
.aufsicht-zelle form[hidden] { display: none; }
.au-jetzt { display: block; font-weight: 700; color: var(--schlecht); }
.au-jetzt:empty { display: none; }
tr.au-alarm td { background: var(--schlecht-hell); }
.konto-aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.konto-aktionen form { display: flex; align-items: center; gap: 6px; margin: 0; }
.konto-aktionen label { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 400; font-size: .88rem; }
.konto-aktionen .knopf.klein, .konto-aktionen button.klein { padding: 5px 12px; font-size: .85rem; line-height: 1.4; }
#konten td { vertical-align: middle; }
tr.bearbeiten-zeile td { background: #f7f9fc; padding: 12px 14px 16px; }
.aufsicht-liste { margin: 6px 0 0; padding-left: 18px; font-size: .9rem; }
.entfernen { gap: 8px; align-items: center; margin-top: 12px; }
td .entfernen { margin-top: 0; flex-wrap: nowrap; }
.entfernen label { font-weight: 400; font-size: .88rem; }
button.klein { padding: 5px 12px; font-size: .85rem; }
.unsichtbar { position: absolute; left: -9999px; }
.zettel-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.zettel { border: 1px dashed #999; padding: 16px; min-height: 140px; break-inside: avoid; page-break-inside: avoid;
  display: flex; flex-direction: column; gap: 4px; }
.zettel img { height: 30px; display: block; margin-bottom: 4px; align-self: flex-start; }
.zettel-anleitung { font-size: .8rem; color: #333; }
.zettel-code { margin-top: 6px; }
.zettel-fuss { font-size: .75rem; color: #666; }

@media (max-width: 760px) {
  .frage.mit-bild, .zweispaltig { grid-template-columns: 1fr; }
  .uebersicht li { grid-template-columns: 1fr; }
  .uebersicht em { text-align: left; }
  .kopf .logo { height: 34px; }
  .kopf .trenner, .kopf .titel span { display: none; }
  .karte { padding: 18px; }
}
@media print {
  .kopf, .streifen, .fuss, .nicht-drucken, .leerlauf-warnung, .hilfe-alarm { display: none !important; }
  body { background: #fff; display: block; }
  .inhalt { margin: 0; max-width: none; padding: 0; }
  .karte { box-shadow: none; }
}
