:root {
  --rot: #E30613;
  --rot-dunkel: #B4040F;
  --rot-hell: #FDECEE;
  --tinte: #16171B;
  --text-2: #5E616E;
  --text-3: #8A8D99;
  --flaeche: #F6F6F8;
  --karte: #FFFFFF;
  --linie: #E7E7EC;
  --linie-2: #D7D8DF;
  --blau: #029AC9;
  --blau-hell: #E3F4FA;
  --gruen: #18864B;
  --gruen-hell: #E5F5EC;
  --gelb: #B7791F;
  --gelb-hell: #FDF3E1;
  --radius: 16px;
  --radius-s: 10px;
  --schatten: 0 1px 2px rgba(16, 18, 27, .05), 0 1px 1px rgba(16, 18, 27, .03);
  --schatten-hoch: 0 12px 32px rgba(16, 18, 27, .14), 0 2px 6px rgba(16, 18, 27, .06);
  --schrift: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --schrift-titel: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --nav-breite: 232px;
  --teal: #38A7BA;
  --teal-dunkel: #2A8A9C;
  --teal-hell: #E6F4F7;
  --kopf-hoehe: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--schrift); font-size: 15px; line-height: 1.5; color: var(--tinte);
  background: var(--flaeche); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--schrift-titel); letter-spacing: -.015em; margin: 0; }
h1 { font-size: 28px; font-weight: 650; line-height: 1.2; }
h2 { font-size: 19px; font-weight: 620; }
h3 { font-size: 15px; font-weight: 620; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon.s { width: 16px; height: 16px; }
.icon.l { width: 28px; height: 28px; }
/* Logo ohne die kleine Adresszeile darunter */
.logo-schnitt { display: block; height: calc(var(--h) * .5); overflow: hidden; line-height: 0; }
.logo-schnitt img { height: var(--h) !important; width: auto !important; max-width: none !important; display: block; }
.mono { font-family: "Cascadia Mono", "SF Mono", Consolas, monospace; letter-spacing: .03em; }
.leise { color: var(--text-2); }
.sehr-leise { color: var(--text-3); font-size: 13px; }
.versteckt { display: none !important; }

/* ---------------- Rahmen ---------------- */
/* Kopfzeile im Blaugrün der Homepage */
.kopfleiste { position: sticky; top: 0; z-index: 20; height: var(--kopf-hoehe); background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 16px; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 14px rgba(42, 138, 156, .18); }
.kl-marke { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.kl-logo { background: #fff; border-radius: 12px; padding: 7px 12px 6px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.kl-titel { font-family: var(--schrift-titel); font-weight: 600; font-size: 17px; letter-spacing: .01em; opacity: .97; }
.kl-rechts { display: flex; align-items: center; gap: 10px; }
.kl-link { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; font-weight: 560; padding: 8px 12px; border-radius: 10px; }
.kl-link:hover { background: rgba(255,255,255,.14); }
.kl-neu { background: #fff; border-color: #fff; color: var(--rot); }
.kl-neu:hover { background: #fff5f5; }
.rahmen { display: grid; grid-template-columns: var(--nav-breite) 1fr; min-height: calc(100vh - var(--kopf-hoehe)); }
.seitenleiste {
  position: sticky; top: var(--kopf-hoehe); height: calc(100vh - var(--kopf-hoehe)); background: #fff; border-right: 1px solid var(--linie);
  display: flex; flex-direction: column; padding: 18px 14px;
}
.seitenleiste .marke { padding: 6px 8px 18px; border-bottom: 1px solid var(--linie); margin-bottom: 14px; }
.seitenleiste .marke img { width: 100%; max-width: 205px; display: block; }
.seitenleiste .marke small { display: block; color: var(--text-3); font-size: 12px; margin-top: 6px; letter-spacing: .02em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--text-2); font-weight: 520;
}
.nav a:hover { background: var(--flaeche); color: var(--tinte); }
.nav a.aktiv { background: var(--teal-hell); color: var(--teal-dunkel); }
.nav a.aktiv .icon { stroke: var(--teal-dunkel); }
.nav.sortieren a { cursor: grab; border: 1px dashed var(--teal); background: #fff; position: relative; }
.nav.sortieren a.aktiv { background: var(--teal-hell); }
.nav.sortieren a.zieht { opacity: .45; }
.nav-griff { margin-left: auto; color: var(--teal-dunkel); letter-spacing: -2px; font-weight: 700; }
.nav-sortier-leiste { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--teal-hell); display: flex; flex-direction: column; gap: 8px; }
.nav-sortier-leiste small { color: var(--text-2); font-size: 12.5px; }
.seitenleiste .unten { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.prototyp-hinweis { font-size: 12px; color: var(--text-2); background: var(--flaeche); border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.prototyp-hinweis b { color: var(--tinte); }

.inhalt { min-width: 0; padding: 32px 40px 64px; max-width: 1240px; width: 100%; }
.kopfzeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.kopfzeile .unterzeile { color: var(--text-2); margin-top: 6px; }
.kopfzeile .aktionen { display: flex; gap: 10px; flex-wrap: wrap; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.zurueck:hover { color: var(--tinte); }

.mobil-kopf, .mobil-nav { display: none; }

/* ---------------- Bausteine ---------------- */
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); }
.karte.pad { padding: 22px 24px; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--linie); }
.karte-kopf p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.karte-inhalt { padding: 20px 24px; }
.raster { display: grid; gap: 20px; }
.raster.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.raster.haupt { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.abstand { height: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--radius-s); border: 1px solid var(--linie-2); background: #fff; color: var(--tinte);
  font-weight: 560; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn:hover { background: var(--flaeche); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(227, 6, 19, .22); }
.btn.primaer { background: var(--rot); border-color: var(--rot); color: #fff; }
.btn.primaer:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.btn.dunkel { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.btn.dunkel:hover { background: #000; }
.btn.leicht { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.leicht:hover { background: var(--flaeche); color: var(--tinte); }
.btn.gefahr { color: var(--rot-dunkel); }
.btn.klein { height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; }
.btn.gross { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-gruppe { display: inline-flex; border: 1px solid var(--linie-2); border-radius: var(--radius-s); overflow: hidden; background: #fff; }
.btn-gruppe button { border: 0; background: transparent; padding: 0 14px; height: 38px; cursor: pointer; color: var(--text-2); font-weight: 540; }
.btn-gruppe button + button { border-left: 1px solid var(--linie); }
.btn-gruppe button.an { background: var(--tinte); color: #fff; }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 560; background: var(--flaeche); color: var(--text-2); white-space: nowrap; }
.chip .punkt { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.gruen { background: var(--gruen-hell); color: var(--gruen); }
.chip.gelb { background: var(--gelb-hell); color: var(--gelb); }
.chip.rot { background: var(--rot-hell); color: var(--rot-dunkel); }
.chip.blau { background: var(--blau-hell); color: #046c8f; }
.chip.dunkel { background: var(--tinte); color: #fff; }
.art-chip { background: #fff; border: 1px solid var(--linie); color: var(--tinte); }

/* Formulare */
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld > span { font-size: 13.5px; font-weight: 580; color: var(--tinte); }
.feld > span em { font-style: normal; color: var(--text-3); font-weight: 450; }
.feld small { color: var(--text-3); font-size: 12.5px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=password], input[type=url], select, textarea {
  width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--linie-2); border-radius: var(--radius-s);
  background: #fff; transition: border-color .12s, box-shadow .12s; min-width: 0;
}
textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px rgba(227, 6, 19, .14); }
[hidden] { display: none !important; }
.formular { display: grid; gap: 18px; }
.formular .zeile { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.formular .zeile.z2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.formular .zeile.z3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.abschnitt-titel { font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 -4px; }
.schalter { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; white-space: nowrap; }
.schalter input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--linie-2); position: relative; cursor: pointer; transition: background .15s; flex: 0 0 auto; margin: 0; }
.schalter input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.schalter input:checked { background: var(--gruen); }
.schalter input:checked::after { transform: translateX(16px); }
.schalter.rot input:checked { background: var(--rot); }
.haken { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.haken input { width: 20px; height: 20px; accent-color: var(--rot); margin-top: 1px; flex: 0 0 auto; }

/* Auswahlkarten */
.wahl { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.wahl label { position: relative; display: block; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl .wahl-karte { border: 1.5px solid var(--linie-2); border-radius: 14px; padding: 14px 16px; background: #fff; height: 100%; transition: border-color .12s, box-shadow .12s, background .12s; }
.wahl .wahl-karte b { display: flex; align-items: center; gap: 8px; font-weight: 620; }
.wahl .wahl-karte small { display: block; color: var(--text-2); margin-top: 4px; font-size: 13px; line-height: 1.4; }
.wahl .wahl-karte .punkt { width: 10px; height: 10px; border-radius: 50%; }
.wahl input:checked + .wahl-karte { border-color: var(--rot); box-shadow: 0 0 0 3px rgba(227, 6, 19, .12); background: #fffafa; }
.wahl input:focus-visible + .wahl-karte { box-shadow: 0 0 0 3px rgba(227, 6, 19, .25); }
.wahl.gross { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wahl.gross .wahl-karte { padding: 18px 20px; }
.wahl.gross .wahl-karte .icon { stroke: var(--rot); }

/* Tabellen */
.tabelle { width: 100%; border-collapse: separate; border-spacing: 0; }
.tabelle th { text-align: left; font-size: 12.5px; font-weight: 620; color: var(--text-3); letter-spacing: .03em; text-transform: uppercase; padding: 12px 14px; border-bottom: 1px solid var(--linie); white-space: nowrap; background: #fcfcfd; }
.tabelle td { padding: 13px 14px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr.klickbar { cursor: pointer; }
.tabelle tbody tr.klickbar:hover td { background: #fafafb; }
.tabelle .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabelle-huelle { overflow-x: auto; }
.dok .btn-gruppe { display: grid; grid-template-columns: 1fr 1fr; align-self: stretch !important; }
.dok .btn-gruppe button { height: auto; min-height: 40px; padding: 7px 8px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; line-height: 1.2; }
.re-liste { display: flex; flex-direction: column; border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.re-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--linie); text-decoration: none; }
.re-zeile:last-child { border-bottom: 0; }
a.re-zeile:hover { background: #fafafb; }
.re-zeile b { display: block; font-size: 14px; font-weight: 600; }
.re-zeile small { color: var(--text-2); font-size: 12.5px; }
.uv-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.uv-karte { border: 1px solid var(--linie); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.uv-karte.fehlt { border-color: #f0c987; background: #fffbf2; }
.uv-karte.neu { border-style: dashed; }
.uv-karte textarea { min-height: 110px; font-size: 14px; }
.leer { text-align: center; padding: 48px 20px; color: var(--text-2); }
.leer .icon { width: 40px; height: 40px; stroke: var(--text-3); margin-bottom: 10px; }

/* Kennzahlen */
.kennzahl { padding: 20px 22px; }
.kennzahl .wert { font-family: var(--schrift-titel); font-size: 32px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kennzahl .bez { color: var(--text-2); font-size: 13.5px; font-weight: 540; display: flex; align-items: center; gap: 8px; }
.kennzahl .bez .icon { stroke: var(--rot); }

/* Kurskarten */
.kursliste { display: flex; flex-direction: column; }
.kurszeile { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--linie); text-decoration: none; }
.kurszeile .datumsblock { grid-row: span 2; }
.kurszeile .status { grid-column: 2; justify-content: flex-start !important; margin-top: 4px; }
.kurszeile:last-child { border-bottom: 0; }
.kurszeile:hover { background: #fafafb; }
/* Ausbildungsleitfaden und Teilnehmerunterlagen */
.ul-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ul-kachel { display: grid; grid-template-columns: 54px 1fr; gap: 10px 14px; border: 1px solid var(--linie); border-left: 4px solid var(--teal); border-radius: 14px; padding: 14px; background: #fff; }
.ul-kachel.fehlt { border-left-color: #f08a24; background: #fffaf4; }
.ul-ic { width: 54px; height: 62px; border-radius: 10px; background: var(--teal-hell); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ul-ic .icon { stroke: var(--teal-dunkel); }
.ul-ic.mit-bild { background: var(--flaeche); overflow: hidden; border: 1px solid var(--linie); }
.ul-ic.mit-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ul-kachel[draggable] { cursor: grab; }
.ul-kachel.zieht { opacity: .45; outline: 2px dashed var(--teal); }
.ul-ic span { font-size: 10.5px; font-weight: 700; color: var(--teal-dunkel); letter-spacing: .05em; }
.ul-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ul-text b { font-weight: 620; }
.ul-text small { color: var(--text-2); font-size: 12.5px; }
.ul-datei { color: var(--text-3) !important; overflow-wrap: anywhere; }
.ul-knoepfe { grid-column: 1 / -1; display: flex; gap: 4px; flex-wrap: wrap; }
.ul-neu { grid-template-columns: auto 1fr; align-items: center; cursor: pointer; border: 2px dashed var(--rot); border-left-width: 2px; background: #fff5f5; color: var(--rot); font: inherit; text-align: left; min-height: 92px; }
.ul-neu:hover { background: #ffecec; }
.ul-neu .icon { stroke: var(--rot); }
/* Menü hinter dem Namenskürzel */
.ich-menue { position: fixed; z-index: 60; background: #fff; border: 1px solid var(--linie); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16); padding: 6px; display: flex; flex-direction: column; min-width: 230px; animation: rein .15s ease-out; }
.ich-menue button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 10px 12px; border-radius: 8px; cursor: pointer; font: inherit; text-align: left; color: var(--tinte); }
.ich-menue button:hover { background: var(--flaeche); }
.rechte-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.rechte-liste > div { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; }
.rechte-liste .ja { background: var(--gruen-hell); }
.rechte-liste .ja .icon { stroke: #1a7f45; }
.rechte-liste .nein { background: var(--flaeche); color: var(--text-3); }
/* Passwortfeld mit Auge */
.pw-feld { position: relative; display: block; }
.feld > .pw-feld { font-size: inherit; font-weight: inherit; color: inherit; }
.pw-feld > input { width: 100%; padding-right: 48px; }
.pw-feld > input::-ms-reveal { display: none; }
.pw-auge { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 8px; cursor: pointer; display: grid; place-items: center; color: var(--text-2); touch-action: manipulation; }
.pw-auge:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.pw-auge:hover { background: var(--flaeche); }
.pw-auge .icon { stroke: currentColor; }
/* Kurse in den nächsten 7 Tagen */
.kurszeile.bald { box-shadow: inset 0 0 0 2px var(--teal); border-radius: 12px; background: #f2fafb; margin: 4px 6px; border-bottom-color: transparent; }
.kurszeile.bald:hover { background: #e6f4f6; }
.datumsblock { flex: 0 0 auto; width: 56px; height: 60px; border-radius: 12px; background: var(--flaeche); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.datumsblock .tag { font-size: 22px; font-weight: 680; font-family: var(--schrift-titel); }
.datumsblock .monat { font-size: 11.5px; text-transform: uppercase; color: var(--rot); font-weight: 680; letter-spacing: .06em; margin-top: 4px; }
.datumsblock.heute { background: var(--rot); color: #fff; }
.datumsblock.heute .monat { color: #fff; }
.kurszeile .titel { font-weight: 620; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kurszeile .meta { color: var(--text-2); font-size: 13.5px; margin-top: 3px; display: flex; gap: 14px; flex-wrap: wrap; }
.kurszeile .meta span { display: inline-flex; align-items: center; gap: 5px; }
.kurszeile .status { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.art-punkt { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }

/* Aufgaben */
.aufgabe { display: flex; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--linie); text-decoration: none; align-items: flex-start; }
.aufgabe:last-child { border-bottom: 0; }
.aufgabe:hover { background: #fafafb; }
.aufgabe .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: var(--flaeche); }
.aufgabe .ic .icon { width: 18px; height: 18px; }
.aufgabe.rot .ic { background: var(--rot-hell); color: var(--rot); }
.aufgabe.gelb .ic { background: var(--gelb-hell); color: var(--gelb); }
.aufgabe.blau .ic { background: var(--blau-hell); color: var(--blau); }
.aufgabe b { font-weight: 600; display: block; }
.aufgabe small { color: var(--text-2); font-size: 13px; }

/* Reiter */
.reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--linie); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.reiter a { padding: 11px 14px; text-decoration: none; color: var(--text-2); font-weight: 560; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.reiter a:hover { color: var(--tinte); }
.reiter a.aktiv { color: var(--tinte); border-bottom-color: var(--rot); }
.reiter .zahl { background: var(--flaeche); border-radius: 999px; padding: 0 8px; font-size: 12px; color: var(--text-2); }

/* Kurskopf */
.kurskopf { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.kurskopf .links { display: flex; gap: 18px; align-items: flex-start; }
.kurskopf .datumsblock { width: 68px; height: 74px; }
.kurskopf .datumsblock .tag { font-size: 28px; }
.kurskopf .fakten { display: flex; gap: 18px; color: var(--text-2); font-size: 14px; margin-top: 6px; flex-wrap: wrap; }
.kurskopf .fakten span { display: inline-flex; gap: 6px; align-items: center; }
.schrittleiste { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-bottom: 22px; }
.schritt { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-right: 1px solid var(--linie); min-width: 0; }
.schritt:last-child { border-right: 0; }
.schritt .kreis { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche); color: var(--text-3); flex: 0 0 auto; font-weight: 650; font-size: 13px; }
.schritt.fertig .kreis { background: var(--gruen); color: #fff; }
.schritt.jetzt .kreis { background: var(--rot); color: #fff; }
.schritt b { font-size: 13.5px; font-weight: 600; display: block; line-height: 1.25; }
.schritt small { font-size: 12px; color: var(--text-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dokumentkarten */
.dok { display: flex; flex-direction: column; }
.dok .vorschaubild { height: 128px; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #f7f7f9, #eeeef2); display: grid; place-items: center; border-bottom: 1px solid var(--linie); overflow: hidden; }
.dok .papier { background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); border-radius: 2px; position: relative; }
.dok .papier.quer { width: 120px; height: 85px; }
.dok .papier.hoch { width: 62px; height: 88px; }
.dok .papier.paar { width: 120px; height: 85px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; }
.dok .papier .balken { position: absolute; left: 8px; right: 8px; height: 4px; background: #e9e9ee; border-radius: 2px; }
.dok .papier.paar i { display: block; border: 1.5px solid var(--blau); border-top: 9px solid var(--blau); border-radius: 1px; }
.dok .papier.paar.rot i { border-color: #ddd; border-top-color: #c5d9f1; }
.dok .karte-inhalt { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.dok .karte-inhalt p { margin: 0; color: var(--text-2); font-size: 14px; }
.dok .fuss { padding: 14px 24px 20px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Hinweise */
.hinweis { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--flaeche); color: var(--text-2); font-size: 14px; line-height: 1.5; }
.hinweis .icon { flex: 0 0 auto; margin-top: 1px; }
.hinweis b { color: var(--tinte); }
.hinweis.gelb { background: var(--gelb-hell); color: #6b4a12; }
.hinweis.gelb .icon { stroke: var(--gelb); }
.hinweis.blau { background: var(--blau-hell); color: #0d4d63; }
.hinweis.blau .icon { stroke: var(--blau); }
.hinweis.gruen { background: var(--gruen-hell); color: #0f5131; }
.hinweis.gruen .icon { stroke: var(--gruen); }
.hinweis.rot { background: var(--rot-hell); color: #7a0a12; }
.hinweis.rot .icon { stroke: var(--rot); }

/* Teilnehmerliste */
.tn-name { font-weight: 600; }
.tn-unter { color: var(--text-3); font-size: 12.5px; }
.code-pill { display: inline-block; font-family: "Cascadia Mono", Consolas, monospace; font-weight: 650; background: var(--flaeche); border-radius: 7px; padding: 2px 8px; letter-spacing: .12em; font-size: 13.5px; }
.anw { display: inline-flex; gap: 6px; align-items: center; }

/* Dialog */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(620px, calc(100vw - 24px)); box-shadow: var(--schatten-hoch); color: var(--tinte); }
dialog::backdrop { background: rgba(18, 19, 24, .45); backdrop-filter: blur(2px); }
.dialog-kopf { padding: 20px 24px 6px; display: flex; justify-content: space-between; align-items: center; }
.dialog-inhalt { padding: 14px 24px 8px; }
.dialog-fuss { padding: 16px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; }

/* Toast */
#toast { position: fixed; inset: auto auto 28px 50%; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--tinte); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--schatten-hoch); font-weight: 520; display: flex; gap: 10px; align-items: center; animation: rein .2s ease-out; max-width: 92vw; }
.toast .icon { stroke: #7ee2a8; }
@keyframes rein { from { opacity: 0; transform: translateY(8px); } }

/* ---------------- Öffentliche Seiten (Anmeldung, Prüfung) ---------------- */
.oeffentlich { min-height: 100vh; background: linear-gradient(180deg, #fff 0, #fff 260px, var(--flaeche) 260px); }
.oeff-kopf { max-width: 900px; margin: 0 auto; padding: 26px 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.oeff-kopf img { height: 58px; }
.oeff-kopf .kontakt { text-align: right; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.oeff-band { max-width: 900px; margin: 0 auto; padding: 28px 20px 26px; }
.oeff-band .kicker { color: var(--rot); font-weight: 650; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.oeff-band h1 { font-size: 34px; margin-top: 6px; }
.oeff-band p { color: var(--text-2); max-width: 620px; margin: 10px 0 0; font-size: 16px; }
.oeff-inhalt { max-width: 900px; margin: 0 auto; padding: 0 20px 60px; }
.oeff-fuss { max-width: 900px; margin: 0 auto; padding: 0 20px 40px; color: var(--text-3); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; }
.kursinfo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kursinfo div { padding: 16px 20px; border-right: 1px solid var(--linie); }
.kursinfo div:last-child { border-right: 0; }
.kursinfo small { display: block; color: var(--text-3); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kursinfo b { font-size: 15.5px; font-weight: 620; }
.tn-karte { border: 1px solid var(--linie); border-radius: 14px; padding: 16px; background: #fff; position: relative; }
.tn-karte .nr { position: absolute; top: -11px; left: 14px; background: var(--tinte); color: #fff; font-size: 12px; font-weight: 650; border-radius: 999px; padding: 1px 10px; }
.tn-karte .weg { position: absolute; top: 10px; right: 10px; }
.tn-liste { display: grid; gap: 22px; margin-top: 8px; }
.erfolg-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gruen-hell); display: grid; place-items: center; margin-bottom: 14px; }
.erfolg-icon .icon { width: 32px; height: 32px; stroke: var(--gruen); stroke-width: 2.4; }

.pruef-ergebnis { text-align: center; padding: 34px 26px; }
.pruef-ergebnis .siegel { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; }
.pruef-ergebnis .siegel .icon { width: 42px; height: 42px; stroke-width: 2.4; }
.pruef-ergebnis.echt .siegel { background: var(--gruen-hell); }
.pruef-ergebnis.echt .siegel .icon { stroke: var(--gruen); }
.pruef-ergebnis.falsch .siegel { background: var(--rot-hell); }
.pruef-ergebnis.falsch .siegel .icon { stroke: var(--rot); }
.pruef-daten { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; text-align: left; max-width: 460px; margin: 22px auto 0; padding: 18px 22px; background: var(--flaeche); border-radius: 14px; }
.pruef-daten dt { color: var(--text-2); }
.pruef-daten dd { margin: 0; font-weight: 600; }
/* Anleitungen */
.anleitung-dialog { max-width: 720px; }
.anleitung { font-size: 15px; line-height: 1.5; }
.anl-kurz { margin: 0 0 8px; }
.anl-fuer { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--teal-dunkel); background: var(--teal-hell); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; }
.anl-fuer .icon { stroke: var(--teal-dunkel); }
.anl-schritte { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.anl-schritte > li { counter-increment: s; position: relative; padding: 2px 0 0 40px; }
.anl-schritte > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--rot); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.anl-schritte > li > b { display: block; font-size: 16px; }
.anl-schritte ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); }
.anl-schritte ul li { margin: 3px 0; }
.anl-probleme { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--gelb-hell); }
.anl-probleme > b { display: flex; gap: 6px; align-items: center; }
.anl-probleme dl { margin: 6px 0 0; }
.anl-probleme dt { font-weight: 600; margin-top: 8px; }
.anl-probleme dd { margin: 0; color: var(--text-2); }
.anl-kachel { font: inherit; text-align: left; cursor: pointer; color: inherit; }
.anl-kachel:hover { background: var(--teal-hell); }
.anl-kunde { padding: 14px 18px; }
.anl-kunde summary { cursor: pointer; font-weight: 650; display: flex; gap: 8px; align-items: center; color: var(--teal-dunkel); }
.anl-kunde ol { margin: 10px 0; padding-left: 22px; line-height: 1.55; }
.anl-kunde li { margin: 4px 0; }
/* Elektronische Signatur */
.esig-box { display: flex; gap: 12px; align-items: flex-start; text-align: left; max-width: 560px; margin: 16px auto 0; padding: 14px 18px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); }
.esig-box > .icon { flex: none; margin-top: 2px; }
.esig-box.echt { background: #ecf8f1; border-color: #9fd8b5; }
.esig-box.echt > .icon { stroke: #1d8a4c; }
.esig-box.falsch { background: #fdecec; border-color: #f2b1b1; }
.esig-box.falsch > .icon { stroke: var(--rot); }
.esig-box.warn { background: var(--gelb-hell); border-color: #f0cf8a; }
.esig-box.warn > .icon { stroke: var(--gelb); }
.esig-box ul { margin: 6px 0; padding-left: 18px; }
.esig-box small { display: block; margin-top: 8px; color: var(--text-2); }
.esig-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 8px 0 0; font-size: 14px; }
.esig-dl dt { color: var(--text-2); }
.esig-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.esig-abgleich { max-width: 560px; margin: 18px auto 0; text-align: left; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--linie); }
.esig-abgleich .zeile { align-items: end; }
.esig-abgleich .esig-box { margin: 0; }
.esig-liste { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow: auto; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 12px; }
.esig-erklaerung { background: var(--teal-hell); padding: 10px 12px; border-radius: 12px; }
.esig-mehr summary { cursor: pointer; font-weight: 600; color: var(--teal-dunkel); }
.code-eingabe { display: flex; gap: 10px; }
.code-eingabe input { font-family: "Cascadia Mono", Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; font-size: 18px; height: 52px; }

/* ---------------- Tablet-Anwesenheit (Kiosk) ---------------- */
.kiosk { min-height: 100vh; background: radial-gradient(1200px 600px at 50% -10%, #fff 0, #f3f3f6 60%, #ececf1 100%); display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }
.kiosk-kopf { display: flex; justify-content: space-between; align-items: center; padding: 22px 30px; }
.kiosk-kopf img { height: 54px; }
.kiosk-kopf .zaehler { text-align: right; }
.kiosk-kopf .zaehler b { font-size: 30px; font-family: var(--schrift-titel); font-weight: 680; font-variant-numeric: tabular-nums; }
.kiosk-kopf .zaehler small { display: block; color: var(--text-2); font-size: 14px; }
.kiosk-mitte { flex: 1; display: grid; place-items: center; padding: 10px 20px 30px; }
.kiosk-feld { width: min(440px, 100%); text-align: center; }
.kiosk-feld h1 { font-size: 30px; }
.kiosk-feld .kurs { color: var(--text-2); margin: 6px 0 26px; font-size: 16px; }
.code-anzeige { display: flex; gap: 10px; justify-content: center; margin-bottom: 26px; }
.code-anzeige span { width: 54px; height: 66px; border-radius: 14px; background: #fff; border: 1.5px solid var(--linie-2); display: grid; place-items: center; font-size: 30px; font-weight: 680; font-family: var(--schrift-titel); box-shadow: var(--schatten); }
.code-anzeige span.voll { border-color: var(--tinte); }
.code-anzeige.wackeln { animation: wackeln .4s; }
.code-anzeige.wackeln span { border-color: var(--rot); color: var(--rot); }
@keyframes wackeln { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.tastatur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tastatur button { height: 74px; border-radius: 18px; border: 1px solid var(--linie); background: #fff; font-size: 28px; font-weight: 600; cursor: pointer; box-shadow: var(--schatten); font-family: var(--schrift-titel); touch-action: manipulation; }
.tastatur button:active { transform: scale(.97); background: var(--flaeche); }
.tastatur button.ok { background: var(--rot); color: #fff; border-color: var(--rot); font-size: 18px; }
.tastatur button.ok:disabled { background: #f0b4b8; border-color: #f0b4b8; }
.tastatur button.loeschen { font-size: 18px; color: var(--text-2); }
.kiosk-meldung { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.96); z-index: 20; animation: rein .2s; text-align: center; padding: 30px; }
.kiosk-meldung .gross-icon { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; background: var(--gruen-hell); }
.kiosk-meldung .gross-icon .icon { width: 64px; height: 64px; stroke: var(--gruen); stroke-width: 2.4; }
.kiosk-meldung.warn .gross-icon { background: var(--gelb-hell); }
.kiosk-meldung.warn .gross-icon .icon { stroke: var(--gelb); }
.kiosk-meldung h2 { font-size: 34px; }
.kiosk-meldung p { font-size: 19px; color: var(--text-2); margin: 10px 0 0; }
.kiosk-schritt { position: fixed; inset: 0; z-index: 15; background: rgba(243, 243, 246, .98); display: grid; place-items: center; padding: 24px; animation: rein .2s; }
.ks-feld { width: min(560px, 100%); text-align: center; display: flex; flex-direction: column; gap: 16px; }
.ks-feld h2 { font-size: 34px; }
.ks-feld p { font-size: 19px; color: var(--text-2); margin: 0; }
.ks-feld input { height: 66px; font-size: 24px; text-align: center; border-radius: 16px; border-width: 1.5px; }
.ks-mail { font-size: 26px; font-weight: 600; background: #fff; border: 1.5px solid var(--linie-2); border-radius: 16px; padding: 16px; font-family: var(--schrift-titel); }
.ks-ok { height: 66px; font-size: 20px; border-radius: 16px; }
.ks-unten { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ks-unten .btn { height: 50px; font-size: 16px; }
.ks-fehler { color: var(--rot-dunkel); font-weight: 560; }
.kiosk-fuss { display: flex; justify-content: space-between; align-items: center; padding: 14px 30px 22px; color: var(--text-3); font-size: 13px; }

/* ---------------- Druckvorschau-Leiste ---------------- */
.druckleiste { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.druckleiste .innen { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.druckleiste .titel { font-weight: 620; margin-right: auto; display: flex; flex-direction: column; line-height: 1.25; }
.druckleiste .titel small { color: var(--text-2); font-weight: 450; }
body.druckmodus { background: #e9e9ee; }
#druckbereich { display: none; }
body.druckmodus #druckbereich { display: block; }

/* Statistik */
.stat-tab th, .stat-tab td { text-align: right; }
.stat-tab th:first-child, .stat-tab td:first-child { text-align: left; }
.stat-tab tfoot td { font-weight: 680; border-top: 2px solid var(--tinte); }
.stat-tab .jahr { text-align: center !important; border-left: 1px solid var(--linie); }
.balken-zelle { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.balken-zelle i { display: block; height: 8px; border-radius: 4px; background: var(--rot); opacity: .85; }

/* ---------------- Responsiv ---------------- */
@media (max-width: 1100px) {
  .raster.vier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raster.haupt { grid-template-columns: 1fr; }
  .schrittleiste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schritt:nth-child(3) { border-right: 0; }
}
@media (max-width: 900px) {
  .rahmen { grid-template-columns: 1fr; }
  .seitenleiste { display: none; }
  .kopfleiste { padding: 0 12px; --kopf-hoehe: 56px; height: 56px; }
  .kl-titel, .kl-link span, .kl-neu span { display: none; }
  .kl-neu { padding: 0 10px; }
  .mobil-kopf { display: none !important; position: sticky; top: 0; z-index: 15; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); padding: 10px 16px; align-items: center; justify-content: space-between; }
  .mobil-kopf img { height: 36px; }
  .mobil-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--linie); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .mobil-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; text-decoration: none; color: var(--text-2); padding: 4px 0; font-weight: 560; }
  .mobil-nav a.aktiv { color: var(--rot); }
  .mobil-nav a.plus .icon { background: var(--rot); stroke: #fff; border-radius: 12px; width: 40px; height: 32px; padding: 6px 10px; }
  .inhalt { padding: 22px 16px 100px; }
  h1 { font-size: 24px; }
  .raster.zwei, .raster.drei { grid-template-columns: 1fr; }
  .kursinfo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kursinfo div:nth-child(2) { border-right: 0; }
  .kursinfo div:nth-child(-n+2) { border-bottom: 1px solid var(--linie); }
  .formular .zeile.z2, .formular .zeile.z3 { grid-template-columns: 1fr; }
  .wahl.gross { grid-template-columns: 1fr; }
  .kurszeile { grid-template-columns: 56px minmax(0, 1fr); padding: 14px 16px; }
  .kurszeile .status { grid-column: 2; justify-content: flex-start; }
  .karte-kopf, .karte-inhalt { padding-left: 16px; padding-right: 16px; }
  .schrittleiste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schritt { border-right: 0; border-bottom: 1px solid var(--linie); }
  .tabelle.karten thead { display: none; }
  .tabelle.karten, .tabelle.karten tbody, .tabelle.karten tr, .tabelle.karten td { display: block; }
  .tabelle.karten tr { padding: 12px 16px; border-bottom: 1px solid var(--linie); }
  .tabelle.karten td { border: 0; padding: 3px 0; }
  .tabelle.karten td[data-l]::before { content: attr(data-l) ": "; color: var(--text-3); font-size: 12.5px; }
  .oeff-kopf img { height: 42px; }
  .oeff-kopf .kontakt { display: none; }
  .oeff-band h1 { font-size: 27px; }
  .tastatur button { height: 64px; }
  .code-anzeige span { width: 46px; height: 58px; }
}
@media (max-width: 520px) {
  .raster.vier { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kennzahl { padding: 16px; }
  .kennzahl .wert { font-size: 26px; }
  .kopfzeile .aktionen { width: 100%; }
  .kopfzeile .aktionen .btn { flex: 1; }
}

/* ---------------- Einstellungen als Kacheln ---------------- */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; align-items: start; }
.kachel { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); scroll-margin-top: 84px; }
.kachel > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; border-radius: var(--radius); }
.kachel > summary::-webkit-details-marker { display: none; }
.kachel > summary:hover { background: #fafafb; }
.kachel-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-hell); display: grid; place-items: center; flex: 0 0 auto; }
.kachel-ic .icon { stroke: var(--teal-dunkel); }
.kachel-txt { flex: 1; min-width: 0; }
.kachel-txt b { display: block; font-weight: 620; }
.kachel-txt small { display: block; color: var(--text-2); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.kachel-pfeil { color: var(--text-3); transition: transform .15s; }
.kachel[open] { grid-column: 1 / -1; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(56,167,186,.14), var(--schatten); }
.kachel[open] > summary { border-bottom: 1px solid var(--linie); border-radius: var(--radius) var(--radius) 0 0; }
.kachel[open] > summary .kachel-pfeil { transform: rotate(90deg); }
.kachel-inhalt > .karte-inhalt { padding: 20px 22px; }
/* Unterkacheln innerhalb einer Hauptkachel */
/* Unterkacheln: eine blaugrüne Zeile je Bereich (wie im Lager) */
.unter-kacheln { padding: 16px 18px 18px; background: #f7f8fa; border-radius: 0 0 var(--radius) var(--radius); display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.kachel-inhalt > .karte-inhalt + .unter-kacheln { border-top: 1px solid var(--linie); }
.kachel.unter { box-shadow: none; border: 1px solid var(--teal); border-radius: 12px; overflow: hidden; }
.kachel.unter > summary { padding: 9px 16px; gap: 12px; background: var(--teal); color: #fff; border-radius: 0; }
.kachel.unter > summary:hover { background: var(--teal-dunkel); }
.kachel.unter .kachel-ic { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.18); }
.kachel.unter .kachel-ic .icon { stroke: #fff; }
.kachel.unter .kachel-txt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.kachel.unter .kachel-txt b { font-size: 15px; }
.kachel.unter .kachel-txt small { color: rgba(255,255,255,.88); margin: 0; font-size: 12.5px; }
.kachel.unter .kachel-pfeil { color: #fff; }
.kachel.unter .kachel-pfeil .icon { stroke: #fff; }
.kachel.unter[open] { box-shadow: 0 0 0 3px rgba(56,167,186,.14); }
.kachel.unter[open] > summary { border-bottom: 0; }
/* Hinzufügen-Auswahl im Lager rot wie alle Hinzufügen-Knöpfe */
.lb-wahl { background-color: var(--rot); border-color: var(--rot); color: #fff; font-weight: 560; }
.lb-wahl option { background: #fff; color: var(--tinte); }
/* Auswahlfeld mit „Neu eingeben“ (Hygiene) */
.wahl-feld { display: block; min-width: 0; }
.wahl-feld select, .wahl-feld input { width: 100%; min-width: 0; }
/* Klappgruppen in den Einstellungen (Hygiene, Lehrgangsorte) */
.klapp-liste { display: flex; flex-direction: column; gap: 10px; }
.klapp-inhalt { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.ort-raster { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.ort-adr { display: grid; grid-template-columns: 2fr 90px 100px 1.4fr; gap: 10px; }
.ort-fuss { display: flex; gap: 8px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.maps-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.maps-link:hover { color: var(--teal-dunkel); text-decoration-style: solid; }
.pausch-zeile { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 10px; align-items: end; }
@media (max-width: 720px) { .ort-raster, .ort-adr { grid-template-columns: 1fr 1fr; } }

/* ---------------- Anmeldung ---------------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 50% -10%, var(--teal-hell), var(--flaeche) 70%); }
.login-karte { width: min(400px, 100%); background: #fff; border-radius: 22px; box-shadow: var(--schatten-hoch); padding: 34px 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.login-karte h1 { text-align: center; font-size: 26px; margin-top: 4px; }
.login-karte > .leise { text-align: center; margin: -10px 0 6px; }
.login-logo { width: 78px; height: 78px; margin: 0 auto; display: block; }

/* Kopfzeile mit K-Logo und Benutzer */
.kl-k { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.kl-titel span { font-weight: 450; opacity: .85; margin-left: 6px; }
.kl-ich { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(255,255,255,.18); color: #fff; font-weight: 650; cursor: pointer; font-size: 13px; }
.kl-ich:hover { background: rgba(255,255,255,.3); }
.ich-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 6px 8px 12px; border: 1px solid var(--linie); border-radius: 10px; font-size: 14px; }
.rechte-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* vorzeitig gegangen */
.vorz { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vorz input.vorz-zeit { width: 104px; height: 34px; padding: 0 8px; }
.vorz input.vorz-text { width: 150px; height: 34px; padding: 0 9px; font-size: 13.5px; }

/* Steuern */
.st-monate { display: flex; flex-direction: column; gap: 7px; }
.st-monat { display: grid; grid-template-columns: 34px 1fr 92px; gap: 10px; align-items: center; font-size: 13px; }
.st-monat span { color: var(--text-2); }
.st-monat b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.st-monat b.neg { color: var(--rot-dunkel); }
.mbalken { display: flex; flex-direction: column; gap: 2px; }
.mbalken i { display: block; height: 6px; border-radius: 3px; min-width: 2px; }
i.e { background: var(--gruen); } i.a { background: #e46a72; }
.legende { display: flex; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Hygiene */
/* Lager */
.lg-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.lg-karte { display: grid; grid-template-columns: 84px 1fr; gap: 12px; border: 1px solid var(--linie); border-radius: 14px; padding: 12px; background: #fff; }
.lg-karte.knapp { border-color: #f0d49b; background: var(--gelb-hell); }
.lg-karte[draggable] { cursor: grab; }
.lg-karte.zieht { opacity: .45; outline: 2px dashed var(--teal); }
.lg-ziel { padding: 12px 14px 14px; }
.lg-leer { display: none; border: 2px dashed var(--linie-2); border-radius: 14px; padding: 18px; text-align: center; color: var(--text-3); font-size: 13px; }
.lg-ziel > .lg-leer:only-child { display: block; }
.kat-liste { display: flex; flex-direction: column; gap: 6px; }
.kat-zeile { display: grid; grid-template-columns: 1fr auto auto auto; gap: 4px; align-items: center; }
.lg-foto { width: 84px; height: 84px; border-radius: 10px; background: var(--flaeche, #f4f5f7); display: grid; place-items: center; overflow: hidden; color: var(--text-2); }
.lg-foto img { width: 100%; height: 100%; object-fit: cover; }
.lg-foto .icon { width: 30px; height: 30px; }
.lg-foto.gross { width: 120px; height: 120px; }
.lg-foto-wahl { display: flex; gap: 14px; align-items: center; }
.lg-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.lg-text b { font-size: 15px; }
.lg-text small { color: var(--text-2); font-size: 12.5px; }
.lg-bestand { font-size: 13px; color: var(--text-2); }
.lg-bestand span { font-size: 24px; font-weight: 700; color: var(--tinte, #111); }
.lg-knoepfe { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
/* Lager-Einstellungen: je Kursart eine blaugrüne Kopfzeile */
.lb-liste { display: flex; flex-direction: column; gap: 10px; }
.lb-art { border: 1px solid var(--teal); border-radius: 12px; overflow: hidden; background: #fff; }
.lb-art > summary { list-style: none; cursor: pointer; display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; padding: 11px 16px; background: var(--teal); color: #fff; }
.lb-art > summary::-webkit-details-marker { display: none; }
.lb-art > summary::before { content: '▸'; transition: transform .15s; display: inline-block; }
.lb-art[open] > summary::before { transform: rotate(90deg); }
.lb-art > summary:hover { background: var(--teal-dunkel); }
.lb-titel { font-weight: 650; font-size: 15px; }
.lb-art > summary small { color: rgba(255,255,255,.88); font-size: 12.5px; }
.lb-inhalt { padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.lb-zeile { display: grid; grid-template-columns: minmax(180px, 2fr) 140px 110px 110px 84px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--linie); }
.lb-zeile[hidden] { display: none; }
.lb-zeile.lb-kopf { font-size: 12px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding-top: 0; }
.lb-name { display: flex; gap: 10px; align-items: center; min-width: 0; }
.lb-name img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }
.lb-name b { display: block; font-weight: 600; }
.lb-name small { display: block; color: var(--text-2); font-size: 12px; }
.lb-zeile input { width: 100%; }
.lb-knoepfe { display: flex; gap: 4px; justify-content: flex-end; }
.lb-wahl { align-self: flex-start; margin-top: 8px; max-width: 320px; }
@media (max-width: 760px) {
  .lb-zeile { grid-template-columns: 1fr 1fr; }
  .lb-zeile.lb-kopf { display: none; }
  .lb-name { grid-column: 1 / -1; }
}
/* Bearbeitbare Tabellen (Hygiene) */
.ed-tabelle { display: flex; flex-direction: column; gap: 6px; }
.ed-kopf, .ed-zeile { display: grid; grid-template-columns: var(--ed-raster); gap: 8px; align-items: center; }
.ed-kopf { font-size: 12px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding: 0 2px; }
.ed-tabelle [data-ed-ziel] { display: flex; flex-direction: column; gap: 6px; }
.ed-zelle { display: block; min-width: 0; }
.ed-zelle > span:not(.wahl-feld) { display: none; }
.ed-zeile input { width: 100%; min-width: 0; }
.ed-neu { animation: rein .25s ease-out; }
.ed-neu input, .uv-karte.ed-neu { border-color: var(--teal); }
@media (max-width: 760px) {
  .ed-kopf { display: none; }
  .ed-zeile { grid-template-columns: 1fr 40px; border: 1px solid var(--linie); border-left: 4px solid var(--teal); border-radius: 10px; padding: 8px 10px; gap: 6px; background: #fff; }
  .ed-zelle { grid-column: 1; }
  .ed-zelle > span:not(.wahl-feld) { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
  .ed-zeile > .btn { grid-column: 2; grid-row: 1; align-self: start; }
}
/* Kacheln umsortieren */
.kachel-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; margin-bottom: 10px; }
.kachel-info .icon { vertical-align: -3px; }
.kachel.zieht { opacity: .45; outline: 2px dashed var(--teal); }
.kachel:not([open]) > summary[draggable="true"] { cursor: grab; }
.hy-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.hy-teil { border-radius: 12px; padding: 10px 12px; border: 1px solid var(--linie); background: #fff; }
.hy-teil b { display: block; font-size: 13.5px; font-weight: 600; }
.hy-teil small { font-size: 12px; color: var(--text-2); }
.hy-teil.sauber { background: var(--gruen-hell); border-color: #bfe5cf; }
.hy-teil.benutzt { background: #ffe9d2; border-color: #f5a35c; }
.hy-wahl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hy-chip { position: relative; cursor: pointer; }
.hy-chip input { position: absolute; opacity: 0; }
.hy-chip span { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 9px; border: 1.5px solid var(--linie-2); background: #fff; font-size: 13.5px; font-weight: 560; }
.hy-chip.benutzt span { background: #ffe0bf; border-color: #f08a24; color: #8a4500; }
.hy-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--text-2); }
.hy-legende .hy-chip span { height: 26px; padding: 0 9px; font-size: 12.5px; cursor: default; }
.hy-legende [data-offene] { margin-left: auto; }
.hy-chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Postausgang */
.mail-zeile { border-bottom: 1px solid var(--linie); }
.mail-zeile summary { display: flex; gap: 12px; align-items: center; padding: 13px 22px; cursor: pointer; flex-wrap: wrap; }
.mail-zeile pre { white-space: pre-wrap; font-family: var(--schrift); font-size: 14px; margin: 0; padding: 4px 22px 18px; color: var(--text-2); }

@media (max-width: 900px) {
  .kl-k { width: 34px; height: 34px; }
  .rechte-raster { grid-template-columns: 1fr; }
}
/* Kalender */
.kal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kal-wt { padding: 8px 10px; font-size: 12px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--linie); }
.kal-tag { min-height: 104px; padding: 6px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kal-tag:nth-child(7n) { border-right: 0; }
.kal-tag.fremd { background: #fbfbfc; }
.kal-tag.fremd .kal-nr { color: var(--text-3); }
.kal-nr { font-size: 13px; font-weight: 600; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.kal-tag.heute .kal-nr { background: var(--rot); color: #fff; }
.kal-kurs { display: block; font-size: 12px; line-height: 1.3; padding: 4px 6px; border-radius: 7px; background: color-mix(in srgb, var(--f) 14%, white); border-left: 3px solid var(--f); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tinte); }
.kal-kurs:hover { background: color-mix(in srgb, var(--f) 24%, white); }
.kal-zeile { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--linie); }
.kal-zeile > a:first-child { text-decoration: none; min-width: 0; }
.kal-zeile b { display: block; font-size: 13.5px; }
.kal-zeile span { display: block; font-weight: 560; }
.kal-zeile small { display: block; color: var(--text-2); font-size: 12.5px; }

/* E-Mail */
.mail-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.mail-ordner { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.mail-ordner a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-weight: 540; }
.mail-ordner a.aktiv { background: var(--teal-hell); color: var(--teal-dunkel); }
.mail-ordner .zahl { margin-left: auto; font-size: 12px; background: var(--flaeche); border-radius: 999px; padding: 0 8px; }
@media (max-width: 900px) {
  .mail-layout { grid-template-columns: 1fr; }
  .kal-tag { min-height: 64px; padding: 3px; }
  .kal-kurs { font-size: 0; padding: 0; height: 6px; border-left-width: 0; background: var(--f); }
}
/* Tablet: Angaben prüfen */
.ks-daten { background: #fff; border: 1.5px solid var(--linie-2); border-radius: 16px; padding: 6px 18px; text-align: left; }
.ks-zeile { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--linie); font-size: 19px; }
.ks-zeile:last-child { border-bottom: 0; }
.ks-zeile span { color: var(--text-2); }
.ks-zeile b { font-weight: 650; text-align: right; word-break: break-all; }
.ks-zeile em { color: var(--rot); font-style: normal; }
.ks-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.ks-label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; text-align: left; }
.ks-label small { font-weight: 450; color: var(--text-2); }
.ks-raster input, .ks-feld > input { height: 58px; font-size: 20px; border-radius: 14px; }
@media (max-width: 600px) { .ks-raster { grid-template-columns: 1fr; } }
.volumen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.volumen div { background: var(--teal-hell); border-radius: 12px; padding: 10px 12px; }
.volumen b { display: block; font-size: 18px; font-family: var(--schrift-titel); }
.volumen span { font-size: 12px; color: var(--text-2); }
.tabelle tfoot td { font-weight: 600; border-top: 1px solid var(--linie-2); background: #fcfcfd; }

.sig-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sig-vorschau { border: 1px solid var(--linie); border-radius: 12px; padding: 16px 18px; background: #fff; overflow: hidden; }
.mail-sig { padding: 0 22px 18px; }
@media (max-width: 900px) { .sig-raster { grid-template-columns: 1fr; } }

/* Rechnungsdialog: Positionen */
.re-pos { display: flex; flex-direction: column; gap: 10px; }
.re-pos-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 80px 110px 90px auto; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--linie); border-radius: 12px; background: #fcfcfd; }
.re-pos-text { display: flex; flex-direction: column; gap: 6px; }
.re-pos-text textarea { min-height: 52px; font-size: 13px; }
.re-pos-zeile label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); font-weight: 560; }
.re-pos-zeile input[type=number] { height: 40px; }
.re-pos-gesamt { padding-top: 26px; text-align: right; font-weight: 650; white-space: nowrap; }
.re-pos-aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
.re-summe { text-align: right; font-size: 16px; }
.re-summe b { font-size: 19px; margin-left: 8px; }
@media (max-width: 700px) { .re-pos-zeile { grid-template-columns: 1fr 1fr; } .re-pos-text { grid-column: 1 / -1; } }
/* ---- Adressfelder: Straße breit, Hausnummer und PLZ schmal ---- */
.zeile.adr-zeile { grid-template-columns: minmax(0, 3fr) minmax(70px, 1fr) minmax(80px, 1.1fr) minmax(0, 2.2fr); }
@media (max-width: 720px) { .zeile.adr-zeile { grid-template-columns: 2fr 1fr; } }

/* ---- E-Mail: Empfängerfeld, Editor, Adressbuch, Vorlagen ---- */
.empf-feld { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 44px; padding: 5px 6px 5px 8px; border: 1px solid var(--linie-2); border-radius: var(--radius-s); background: #fff; cursor: text; }
.empf-feld:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-hell); }
.empf-feld .chips { display: contents; }
.empf-feld input { flex: 1; min-width: 180px; border: 0 !important; box-shadow: none !important; height: 32px; padding: 0 4px; background: transparent; }
.empf-feld .anzahl { font-size: 12px; }
.mail-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--teal-hell); color: var(--tinte); font-size: 13px; border: 0; max-width: 100%; }
.mail-chip.falsch { background: #fde3e4; color: #a3141b; }
.mail-chip button { border: 0; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; width: 22px; height: 22px; border-radius: 50%; color: var(--text-2); }
.mail-chip button:hover { background: rgba(0,0,0,.08); }
button.mail-chip { cursor: pointer; padding-right: 10px; }
.anhang-liste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.editor { border: 1px solid var(--linie-2); border-radius: var(--radius-s); background: #fff; overflow: hidden; }
.editor-leiste { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; padding: 6px; border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.editor-leiste button, .editor-bild { border: 1px solid transparent; background: transparent; border-radius: 8px; height: 32px; min-width: 34px; padding: 0 9px; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--tinte); }
.editor-leiste button:hover, .editor-bild:hover { background: #fff; border-color: var(--linie-2); }
.editor-tipp { margin-left: auto; font-size: 12px; color: var(--text-3); padding-right: 4px; }
.editor-text { min-height: 220px; max-height: 46vh; overflow: auto; padding: 12px 14px; font-size: 14.5px; line-height: 1.55; outline: none; }
.editor-text p { margin: 0 0 .7em; }
.editor-text img { max-width: 100%; height: auto; border-radius: 6px; }
.ab-liste { max-height: 48vh; overflow: auto; border: 1px solid var(--linie); border-radius: 12px; }
.ab-zeile { display: flex; gap: 12px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--linie); cursor: pointer; }
.ab-zeile:last-child { border-bottom: 0; }
.ab-zeile:hover { background: var(--flaeche); }
.ab-zeile input { width: 18px; height: 18px; flex: 0 0 auto; }
.ab-zeile small { display: block; color: var(--text-3); font-size: 12.5px; }
.mail-kachel { border-radius: 16px; border: 1px solid var(--linie); text-align: left; font: inherit; cursor: pointer; width: 100%; }
.mail-kachel.aktiv { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-hell); }
.mail-body { padding: 4px 22px 14px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.mail-body img { max-width: min(100%, 480px); height: auto; }
.mail-body p { margin: 0 0 .7em; }
.vorlagen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.vorlage-karte { display: flex; flex-direction: column; }
.vorlage-karte h3 { margin: 0 0 4px; font-size: 16px; }
.vorlage-karte .karte-inhalt { flex: 1; }
.vorlage-karte .fuss { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--linie); }
.vorlage-text { font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; }
.vorlage-neu { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; border: 2px dashed var(--linie-2); background: transparent; cursor: pointer; font: inherit; color: var(--text-2); border-radius: 16px; }
.vorlage-neu:hover { border-color: var(--teal); color: var(--tinte); }
.vorlage-neu small { color: var(--text-3); }
/* ---- Aufgaben in der Übersicht ---- */
.aufg-liste.lang { max-height: 560px; overflow: auto; }
.aufg-zeile { display: flex; align-items: center; border-bottom: 1px solid var(--linie); }
.aufg-zeile:last-child { border-bottom: 0; }
.aufg-zeile > .aufgabe { flex: 1; min-width: 0; border-bottom: 0; }
.aufg-akt { display: flex; gap: 2px; padding-right: 10px; opacity: .55; transition: opacity .15s; }
.aufg-zeile:hover .aufg-akt, .aufg-akt:focus-within { opacity: 1; }
.verlauf-liste { max-height: 60vh; overflow: auto; }
.verlauf-zeile { display: flex; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--linie); }
.verlauf-zeile small { display: block; color: var(--text-3); font-size: 12.5px; }

/* ---- E-Mail: Suche, Auswahl ---- */
.mail-werkzeug { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.mail-wahl { width: 17px; height: 17px; flex: 0 0 auto; cursor: pointer; }

/* ---- Lehrkräfte mit Ausbilderfortbildung ---- */
.lk-tabelle { display: grid; gap: 8px; }
.lk-kopf, .lk-zeile { display: grid; grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr) minmax(140px, 1fr) 90px; gap: 10px; align-items: center; }
.lk-kopf span { font-size: 13px; font-weight: 580; color: var(--text-2); }
.lk-zeile input[readonly] { background: var(--flaeche); }
.lk-zeile input.ueberfaellig { border-color: var(--rot); color: var(--rot); }
.lk-zeile.neu input { border-style: dashed; }
@media (max-width: 720px) { .lk-kopf { display: none; } .lk-zeile { grid-template-columns: 1fr 1fr; } }
.re-zeile.aus { opacity: .6; }

/* ---- Bescheinigung gestalten ---- */
.gestalter { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .gestalter { grid-template-columns: 1fr; } }
.g-buehne { padding: 12px; display: flex; justify-content: center; background: repeating-conic-gradient(#f2f3f6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.g-huelle { position: relative; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.12); background: #fff; }
.g-blatt { position: absolute; left: 0; top: 0; width: 148mm; height: 210mm; transform-origin: 0 0; user-select: none; }
.g-blatt .a5blatt { position: relative; width: 148mm; height: 210mm; }
.g-blatt [data-el] { cursor: move; touch-action: none; }
.g-blatt [data-el]:hover { outline: 1px dashed var(--teal); outline-offset: 1px; }
.g-blatt .b-kopf { cursor: pointer; }
.g-blatt .g-aktiv { outline: 2px solid var(--rot) !important; outline-offset: 1px; }
.g-panel { padding: 18px; position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; }
.g-panel h3 { margin: 0 0 12px; font-size: 16px; }
.g-platzhalter { display: flex; flex-wrap: wrap; gap: 5px; }
.g-platzhalter .mail-chip { height: 24px; font-size: 12px; padding: 0 8px; cursor: pointer; border: 0; }
.g-haken { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.g-knoepfe { display: grid; gap: 8px; }
.g-knoepfe .btn { justify-content: flex-start; }
.g-fuss { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linie); }
.login-marke { display: block; width: min(300px, 100%); height: auto; margin: 2px auto 6px; }

/* ---- Tablet: Logo über „Willkommen“, Zähler unter dem Ziffernblock, eigene Darstellung ---- */
.kiosk.eigen-bg { background: var(--kiosk-bg); }
.kiosk-logo { display: block; width: min(360px, 86%); height: auto; margin: 6px auto 14px; }
.kiosk-bild { display: block; max-width: 100%; height: auto; margin: 16px auto; border-radius: 14px; }
.kiosk-zaehler { margin-top: 18px; color: var(--text-2); font-size: 16px; }
.kiosk-zaehler b { font-size: 24px; font-weight: 680; color: var(--tinte); font-variant-numeric: tabular-nums; margin-right: 4px; }
.kiosk .tastatur button.ok { background: var(--kiosk-akzent, var(--rot)); border-color: var(--kiosk-akzent, var(--rot)); }
.kiosk .tastatur button.ok:disabled { opacity: .4; }
.kiosk-vorschau { border: 1px solid var(--linie); border-radius: 14px; padding: 14px; text-align: center; }