/* DPB – angelehnt an das bisherige Design (roter Kopf, schlichte weiße Fenster) */
:root {
  --dpb-rot: #c61832;
  --hintergrund: #e9ebee;
  --flaeche: #ffffff;
  --text: #1d2330;
  --leise: #6b7280;
  --linie: #d4d8de;
  --aktiv: #d97706;          /* aktivierte Knöpfe (wie button_activate) */
  --auswahl: rgba(255, 255, 0, 0.5);
  --warn-bg: #fff4e5;
  --warn-text: #8a4b00;
  --test: #fff3bf;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 13px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text); background: var(--hintergrund);
  display: flex; flex-direction: column; overflow: hidden;
}
body.ziehen { user-select: none; cursor: grabbing; }
input, select, button, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.platz { flex: 1; }
.symbol { width: 18px; height: 18px; display: block; }

.testbanner { background: var(--test); text-align: center; font-size: 11px; padding: 1px; flex: none; }
.meldung { background: #ffe3e3; padding: 6px 16px; flex: none; }

/* ---------- Kopfzeile (rot wie bisher) ---------- */
.kopf {
  flex: none; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px;
  background: var(--dpb-rot); color: #fff; overflow-x: auto;
}
.kopf-titel { font-size: 15px; white-space: nowrap; }
.kopf-text { white-space: nowrap; opacity: 0.9; }
.kopf select { height: 26px; min-width: 200px; max-width: 320px; border: 0; border-radius: 4px; padding: 0 6px; background: #fff; color: var(--text); }
.kopf .kn { color: #fff; }
.kopf .kn:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Knöpfe ---------- */
.kn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 5px;
  background: transparent; color: #374151; cursor: pointer; text-decoration: none;
}
.kn:hover { background: #eef0f3; }
.kn.aktiv { color: var(--aktiv); background: #fff7e6; }
.kn:disabled { opacity: 0.25; cursor: default; }
.kn[hidden] { display: none; }
button.klein { font-size: 12px; padding: 2px 8px; border: 1px solid var(--linie); border-radius: 4px; background: #f8f9fa; cursor: pointer; }
button[type=submit], #imp-ok { background: var(--dpb-rot); color: #fff; border: 0; border-radius: 4px; padding: 6px 14px; cursor: pointer; }
button.leise { background: #eef0f3; color: var(--text); border: 0; border-radius: 4px; padding: 6px 14px; cursor: pointer; }
:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }

/* ---------- Dashboard: 1 Karte + 4 Tabellen, Größen ziehbar ---------- */
#dashboard { flex: 1; min-height: 0; padding: 4px; gap: 0; }
.zeile { display: flex; flex-direction: row; min-height: 0; min-width: 0; flex: 1 1 0; }
.spalten { display: flex; flex-direction: column; min-height: 0; min-width: 0; flex: 1 1 0; }
#l-oben { flex-grow: 60; } #l-unten { flex-grow: 40; }
#l-karte { flex-grow: 55; } #l-rechts { flex-grow: 45; }
.trenner { flex: none; background: transparent; position: relative; z-index: 5; touch-action: none; }
.trenner[data-richtung=x] { width: 6px; cursor: ew-resize; }
.trenner[data-richtung=y] { height: 6px; cursor: ns-resize; }
.trenner:hover, body.ziehen .trenner { background: #b8bec7; border-radius: 3px; }

.fenster {
  flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: 6px;
}
.fenster-kopf {
  flex: none; display: flex; align-items: center; gap: 2px; padding: 3px 4px;
  border-bottom: 1px solid var(--linie); overflow-x: auto; overflow-y: hidden;
}
.fenster-inhalt { flex: 1; min-height: 0; position: relative; }
.fenster-fuss {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 2px 6px;
  border-top: 1px solid var(--linie); font-size: 12px; color: var(--leise); overflow-x: auto;
}
.fenster.im-bearbeiten { border-color: var(--aktiv); box-shadow: inset 0 0 0 1px var(--aktiv); }
.ansicht-wahl { height: 26px; max-width: 230px; border: 1px solid var(--linie); border-radius: 4px; padding: 0 4px; background: #fff; }
.zaehler { white-space: nowrap; font-variant-numeric: tabular-nums; }
.filter-text { flex: 1; min-width: 140px; height: 22px; border: 1px solid var(--linie); border-radius: 4px; padding: 0 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.filter-text.fehler { border-color: #dc2626; background: #fef2f2; }
.tabulator-ziel { position: absolute; inset: 0; }
.leer { color: var(--leise); padding: 16px; text-align: center; }
.such { width: 82px; height: 26px; border: 1px solid var(--linie); border-radius: 4px; padding: 0 6px; }
.hinweis-klein { font-size: 11px; color: var(--leise); white-space: nowrap; margin-right: 6px; }
#karte { position: absolute; inset: 0; }

/* ---------- Tabulator (wie table.css: zentriert, gelbe Auswahl, NULL grau) ---------- */
.tabulator { font-size: 12px; border: 0; background: var(--flaeche); }
.tabulator .tabulator-header .tabulator-col-title { text-align: center; }
.tabulator .tabulator-header-filter input { text-align: center; height: 20px; padding: 1px 4px; }
.tabulator .tabulator-cell { text-align: center; }
.tabulator .tabulator-row.tabulator-selected { background: var(--auswahl) !important; }
.tabulator .tabulator-row.tabulator-selectable:hover { background: #fff9c4; }
.tabulator .tabulator-cell.geaendert { background: #ffedd5; font-weight: 600; }
.fenster.im-bearbeiten .tabulator-cell.tabulator-editable { background: #fffdf5; box-shadow: inset 0 0 0 1px #fde68a; }
.null { color: #9ca3af; font-style: italic; }
.ziel { color: #6b7280; cursor: pointer; display: inline-flex; }
.ziel:hover { color: var(--dpb-rot); }
.ziel .symbol { width: 16px; height: 16px; }
.menue-zeile { display: flex; gap: 6px; align-items: center; cursor: pointer; }

/* ---------- Karte ---------- */
.gst-label { pointer-events: none; }
.gst-label span {
  display: block; white-space: nowrap; text-align: center; line-height: 1.1; color: #222;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff;
}
.gst-label .gnr { font-weight: 700; }
.gst-label .kg, .gst-label .ez { color: #444; }
.gst-label .etn, .gst-label .et { color: #7a0d1f; }
.gst-label.dkm span { color: #777; font-weight: 400; }
.ebenen-regler { background: #fff; }
.ebenen-regler .kn { width: 30px; height: 30px; }
.ebenen-regler .ebenen-inhalt { display: none; padding: 6px 10px 8px; min-width: 190px; }
.ebenen-regler.offen .ebenen-inhalt { display: grid; gap: 6px; }
.ebenen-regler label { display: flex; gap: 6px; align-items: center; justify-content: space-between; font-size: 12px; }
.ebenen-regler input[type=range] { width: 100px; }

/* ---------- Popups (wie popup_template) ---------- */
.popup {
  position: fixed; max-height: calc(100vh - 60px); display: flex; flex-direction: column;
  resize: both; overflow: hidden; min-width: 320px; min-height: 140px; max-width: calc(100vw - 16px);
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.popup-kopf {
  display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; cursor: move;
  background: var(--dpb-rot); color: #fff; border-radius: 8px 8px 0 0; touch-action: none;
}
.popup-kopf .kn { color: #fff; }
.popup-kopf .kn:hover { background: rgba(255, 255, 255, 0.2); }
.popup-titel { font-weight: 600; }
.popup-inhalt { padding: 12px 14px 16px; overflow: auto; flex: 1 1 auto; min-height: 0; }
.popup h3 { font-size: 13px; margin: 14px 0 6px; color: var(--dpb-rot); }
.eigenschaften { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 0; }
.eigenschaften dt { color: var(--leise); }
.eigenschaften dd { margin: 0; }
table.einfach { border-collapse: collapse; width: 100%; font-size: 12px; }
table.einfach th, table.einfach td { border-bottom: 1px solid var(--linie); padding: 4px 6px; text-align: left; vertical-align: top; }
table.einfach th { background: #f3f4f6; }
.formular { display: grid; gap: 8px; }
.form-zeile { display: grid; grid-template-columns: auto 160px 1fr; align-items: center; gap: 8px; }
.form-zeile:not(:has(.aendern)) { grid-template-columns: 160px 1fr; }
.form-zeile input[type=text], .form-zeile input[type=number], .form-zeile input[type=date], .form-zeile select {
  height: 28px; border: 1px solid var(--linie); border-radius: 4px; padding: 0 6px; min-width: 0;
}
.form-zeile input[type=checkbox] { justify-self: start; width: 16px; height: 16px; }
fieldset { border: 1px solid var(--linie); border-radius: 6px; display: grid; gap: 8px; }
.hinweis { color: var(--leise); margin: 2px 0; }
.warnung { background: var(--warn-bg); color: var(--warn-text); padding: 8px 10px; border-radius: 6px; margin: 0 0 8px; }
pre { background: #f3f4f6; padding: 8px; border-radius: 6px; overflow: auto; font-size: 12px; }
.toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 9999; background: #1f2937; color: #fff;
  padding: 8px 14px; border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ---------- Login ---------- */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 16px; display: grid; gap: 10px; }
.karte.schmal { width: min(360px, calc(100vw - 32px)); margin: 10vh auto; }
.karte h1 { font-size: 18px; margin: 0 0 4px; color: var(--dpb-rot); font-weight: 600; }
.karte label { display: grid; gap: 4px; }
.karte input { height: 32px; border: 1px solid var(--linie); border-radius: 4px; padding: 0 8px; }

/* ---------- Handy: nur die Karte (Tabellen sind dort unübersichtlich) ---------- */
@media (max-width: 800px) {
  #dashboard, .zeile, .spalten { display: block; }
  .trenner, .tabellen-fenster, #k-layout { display: none !important; }
  #l-karte { height: calc(100dvh - 52px); margin: 0; }
  .hinweis-klein { display: none; }
  .kopf { flex-wrap: wrap; height: auto; row-gap: 4px; }
  .kopf-titel, .kopf-text { display: none; }
  .kopf select { min-width: 0; max-width: 46vw; }
  .popup { max-width: calc(100vw - 8px) !important; left: 4px !important; }
}

/* ---------- Import (Drag & Drop) ---------- */
.import .ablage {
  border: 2px dashed var(--linie); border-radius: 8px; padding: 18px; text-align: center; display: grid; gap: 6px;
  justify-items: center; background: #fafafa; transition: background .15s, border-color .15s;
}
.import .ablage.drueber { border-color: var(--dpb-rot); background: #fdecef; }
.import .paketliste { margin-top: 10px; }
.import .paketliste tr.fehler td { color: var(--dpb-rot); }
.import .knopfreihe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.import .import-karte { border: 1px solid var(--linie); border-radius: 6px; padding: 8px 10px; margin: 8px 0; }
.import .zahlen { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.import .chip { background: #f1f1f1; border-radius: 10px; padding: 1px 8px; font-size: 11px; }
.import .ampel { font-size: 11px; padding: 1px 7px; border-radius: 10px; color: #fff; }
.import .ampel.gruen { background: #2e8540; } .import .ampel.gelb { background: #c98a00; } .import .ampel.rot { background: var(--dpb-rot); }

/* ---------- Projektmanagement ---------- */
.projekt-popup .projekt-karte { height: 360px; border: 1px solid var(--linie); border-radius: 6px; margin: 6px 0; }
.projekt-popup .gebiet-werkzeug { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.projekt-popup .ag-liste { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.projekt-popup .ag-liste input[type=text] { flex: 1 1 220px; }
.projekt-popup .ag { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.projekt-popup .rechte-tabelle-wrap { max-height: 240px; overflow: auto; }
.projekt-popup .rechte-tabelle select { width: 100%; }
#k-aktualisieren.dreht svg { animation: dreht 0.8s linear infinite; }
@keyframes dreht { to { transform: rotate(360deg); } }

/* ---------- Kontakte & Stammdaten ---------- */
.form-zeile textarea { font: inherit; padding: 5px 8px; border: 1px solid var(--linie); border-radius: 4px; resize: vertical; }
td.knoepfe { white-space: nowrap; }
td.knoepfe button + button { margin-left: 4px; }
.kontakt-tabelle tr[data-ereignis] { cursor: pointer; }
.kontakt-tabelle tr.offen td:nth-child(7) { color: var(--dpb-rot); font-weight: 600; }
.popup h3 .klein { margin-left: 8px; vertical-align: middle; }
.stammdaten .reiter { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--linie); margin-bottom: 8px; }
.stammdaten .reiter-knopf { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; border-bottom: 3px solid transparent; }
.stammdaten .reiter-knopf.aktiv { border-bottom-color: var(--dpb-rot); font-weight: 600; }
.stammdaten .liste { max-height: 55vh; overflow: auto; }
.stammdaten-tabelle input[type=text], .stammdaten-tabelle input[type=number], .stammdaten-tabelle select { width: 100%; min-width: 60px; }
.stammdaten-tabelle tr.inaktiv td { opacity: 0.55; }
.stammdaten .knopfreihe { display: flex; gap: 10px; align-items: center; margin-top: 8px; }

/* ---------- Färbung ---------- */
.legende { background: rgba(255,255,255,0.92); padding: 6px 9px; border-radius: 6px; font-size: 11px; line-height: 1.5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25); max-height: 40vh; overflow: auto; }
.legende .lf { display: inline-block; width: 14px; height: 10px; margin-right: 6px; border: 1px solid #555; vertical-align: -1px; }
.legende[hidden] { display: none; }
.ebenen-regler select { font-size: 12px; }
.tabulator-row.gefaerbt:not(.tabulator-selected) { background-color: var(--zf) !important; }
.tabulator-row.gefaerbt { box-shadow: inset 5px 0 0 var(--zr); }
.status-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: 0; border: 1px solid rgba(0,0,0,.3); }
.lr-popup .gst-liste { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.lr-popup table input[type=text] { width: 100%; }
.lr-popup .aenderungen { margin: 6px 0; padding-left: 18px; }
tr.klickbar { cursor: pointer; }

/* ---------- Benutzerverwaltung ---------- */
.benutzer-popup .reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--linie); margin-bottom: 8px; }
.benutzer-popup .reiter-knopf { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; border-bottom: 3px solid transparent; }
.benutzer-popup .reiter-knopf.aktiv { border-bottom-color: var(--dpb-rot); font-weight: 600; }
.benutzer-popup .zwei-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.benutzer-popup .links .tabelle-scroll { max-height: 62vh; margin-top: 6px; }
.benutzer-popup .rechts-form { max-height: 66vh; overflow: auto; padding-right: 4px; }
.benutzer-popup tr.gewaehlt td { background: var(--auswahl); }
.benutzer-popup tr.inaktiv td { opacity: 0.55; }
.benutzer-popup h4 { margin: 12px 0 4px; }
.benutzer-popup .ag-liste, .lr-popup .ag-liste { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.benutzer-popup .ag { display: inline-flex; gap: 4px; align-items: center; }
.benutzer-popup select { max-width: 100%; }
.marke { display: inline-block; background: #eef1f5; border: 1px solid var(--linie); border-radius: 10px; padding: 0 7px; margin: 1px 0; font-size: 11px; }
button.gefahr { color: var(--dpb-rot); border-color: var(--dpb-rot); }
@media (max-width: 800px) { .benutzer-popup .zwei-spalten { grid-template-columns: 1fr; } }

/* ---------- Abrechnung & Auszahlung ---------- */
.tabelle-scroll { overflow: auto; max-height: 50vh; }
td.rechts, .rechts { text-align: right; white-space: nowrap; }
input.zahl-klein { width: 78px; }
.abrechnung th { white-space: nowrap; }
.auszahlung-popup .knopfreihe { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.auszahlung-popup tr.inaktiv td { opacity: 0.55; }
.auszahlung-popup tfoot td { font-weight: 600; border-top: 2px solid var(--linie); }
.ebenen-regler .zoom-zahl { width: 48px; }

/* ---------- Vertretung ---------- */
.lr-popup .vertreter-zeile { margin: 4px 0; padding: 4px 8px; background: #f3f6fb; border-left: 3px solid var(--dpb-rot); }
.vertretung-abschnitt tr.inaktiv td { opacity: 0.55; }
.formular .et-wahl { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 2px 0 0 20px; }

/* ---------- Anordnung ---------- */
.layout-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.layout-knopf { display: flex; flex-direction: column; gap: 6px; align-items: stretch; padding: 8px; border: 1px solid var(--linie);
  border-radius: 6px; background: var(--flaeche); cursor: pointer; font: inherit; text-align: center; }
.layout-knopf.aktiv { border: 2px solid var(--dpb-rot); }
.layout-knopf:hover { background: #f3f4f6; }
.layout-bild { display: flex; height: 70px; }
.layout-bild .lz, .layout-bild .ls { display: flex; flex: 1; gap: 2px; min-width: 0; }
.layout-bild .lz { flex-direction: row; } .layout-bild .ls { flex-direction: column; }
.layout-bild .lk, .layout-bild .lt { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 10px; border-radius: 2px; min-width: 0; }
.layout-bild .lk { background: #cfe8d0; color: #24572a; flex: 1.6; }
.layout-bild .lt { background: #dde3ea; color: #334; }

/* ---------- Download-Menü ---------- */
.format-menue { position: fixed; z-index: 3000; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.2); display: flex; flex-direction: column; min-width: 140px; padding: 4px; }
.format-menue button { border: 0; background: none; text-align: left; padding: 6px 10px; cursor: pointer; font: inherit; border-radius: 4px; }
.format-menue button:hover { background: #f1f3f5; }
.et-lr-andere { display: inline-block; font-size: 11px; background: #fff4e5; color: #8a4b00; border-radius: 8px; padding: 0 6px; margin-left: 4px; }
.kn .kn-text { font-size: 11px; font-weight: 600; margin-left: 2px; }

/* ---------- LR-Filter im Ebenen-Menü ---------- */
.ebenen-regler .lr-filter { border: 1px solid var(--linie); border-radius: 6px; padding: 4px 8px 6px; margin: 4px 0; }
.ebenen-regler .lr-filter legend { font-weight: 600; font-size: 12px; padding: 0 4px; }
.ebenen-regler .stat-liste, .ebenen-regler .vorl-liste { display: flex; flex-wrap: wrap; gap: 0 10px; max-width: 260px; }
.ebenen-regler .stat-liste .lf { display: inline-block; width: 10px; height: 10px; margin: 0 4px 0 2px; border: 1px solid #555; }
.ebenen-regler .lrnr-feld { width: 110px; }
.ebenen-regler .filter-knoepfe { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.projekt-popup .rollen-wahl { display: flex; flex-wrap: wrap; gap: 2px 12px; }

/* ---------- Kontakt-Import ---------- */
.kontaktimport .reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--linie); margin-bottom: 8px; }
.kontaktimport .reiter-knopf { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; border-bottom: 3px solid transparent; }
.kontaktimport .reiter-knopf.aktiv { border-bottom-color: var(--dpb-rot); font-weight: 600; }
.kontaktimport .ablage { border: 2px dashed var(--linie); border-radius: 8px; padding: 16px; text-align: center; margin-bottom: 8px; }
.kontaktimport .ablage.ueber { border-color: var(--dpb-rot); background: #fff5f5; }
.kontaktimport .knopf-label { cursor: pointer; text-decoration: underline; }
.kontaktimport .zuordnung-tabelle select { min-width: 200px; }
.kontaktimport .beispiel { color: var(--leise); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kontaktimport .knopfreihe { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.marke.grund-nachname { background: #e6f4ea; border-color: #9fd3ad; }
.marke.grund-name_in_bez { background: #fff4e5; border-color: #f3c58b; }
.formular .ist-pflicht label { color: var(--dpb-rot); }
.formular .pflicht { color: var(--dpb-rot); font-weight: 700; }
.formular .vorlagen { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.lr-gst { max-height: 240px; margin-bottom: 8px; }
.stand-wahl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0 6px; } .stand-wahl .aktiv { background: var(--dpb-rot); color: #fff; border-color: var(--dpb-rot); }

/* ---------- Aufgaben ---------- */
.kn .zahl:not(:empty) {
  position: relative; margin-left: -6px; top: -8px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  background: #fff; color: var(--dpb-rot); font-size: 10px; font-weight: 700; line-height: 15px; text-align: center;
}
.kn.dringend .zahl:not(:empty) { background: #fbbf24; color: #111; }
.aufgaben-popup tr.faellig td:first-child { color: #b91c1c; font-weight: 600; }
.aufgaben-popup tr[data-id] { cursor: pointer; }
.kontakt-tabelle tr.geplant { background: #fffbeb; }
.lr-hinweise .konflikt { color: #b91c1c; }
.lr-hinweise .weitere-gst { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0; }
.lr-hinweise .weitere-gst label { white-space: nowrap; }
.lr-hinweise .passt { font-weight: 600; }

/* ---------- Zeichnen in der Karte (Teilungslinie, Skizzen) ---------- */
.zeichen-hinweis {
  position: absolute; z-index: 1000; left: 50%; top: 10px; transform: translateX(-50%); max-width: min(560px, 90%);
  background: #111827e6; color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; pointer-events: none;
}
.teil-info { background: #eef6ff; padding: 6px 8px; border-radius: 4px; }
.skizzen-knopf, .einreichung-knopf { background: #fff; }
.skizzen-knopf .kn, .einreichung-knopf .kn { width: 30px; height: 30px; font-size: 16px; }
.skizzen-menue, .er-menue { position: absolute; left: 34px; top: 0; background: #fff; border: 1px solid var(--linie); border-radius: 6px; padding: 6px 8px;
  display: grid; gap: 4px; min-width: 190px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.skizzen-menue[hidden], .er-menue[hidden] { display: none; }
.skizzen-menue button, .er-menue button { justify-content: flex-start; display: flex; align-items: center; gap: 6px; text-align: left; }
.farbpunkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid #0003; }
.leaflet-tooltip.skizze-text { font-size: 11px; padding: 2px 5px; }

/* ---------- Hilfe ---------- */
.hilfe { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.hilfe-themen { display: grid; align-content: start; gap: 2px; border-right: 1px solid var(--linie); padding-right: 8px; }
.hilfe-themen a { padding: 4px 6px; border-radius: 4px; color: inherit; text-decoration: none; }
.hilfe-themen a:hover { background: #eef0f3; }
.hilfe-themen a.aktiv { background: #fdecef; color: var(--dpb-rot); font-weight: 600; }
.hilfe-text p, .hilfe-text li { line-height: 1.45; }
.hilfe-text code { background: #f3f4f6; padding: 0 3px; border-radius: 3px; }
.ebenen-inhalt .hilfe-link { font-size: 12px; }
.uebernehmen { margin: 6px 0 10px; padding: 6px 8px; border: 1px dashed var(--linie); border-radius: 6px; }
.uebernehmen summary { cursor: pointer; font-weight: 600; }
.team-sicht { background: #f9fafb; padding: 6px 8px; border-radius: 6px; }
@media (max-width: 800px) { .hilfe { grid-template-columns: 1fr; } .hilfe-themen { border-right: 0; } }

/* ---------- Sitzungen / Passwort ---------- */
.kopf-name { background: transparent; border: 0; color: #fff; cursor: pointer; white-space: nowrap; padding: 2px 6px; border-radius: 4px; font: inherit; opacity: 0.95; }
.kopf-name:hover { background: rgba(255, 255, 255, 0.18); }
.pw-regeln { margin: 4px 0; padding-left: 18px; font-size: 12px; color: #4b5563; }

/* 032: Skizzen nach Kategorien, Texte, Einreichungen, Hintergrund */
.skizzen-menue, .er-menue { max-height: 70vh; overflow: auto; min-width: 250px; }
.skizzen-kats { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 4px 0; font-size: 12px; }
.skizzen-suche { width: 100%; margin: 4px 0; }
.skizzen-kat { font-weight: 600; font-size: 12px; margin-top: 6px; color: var(--grau, #555); border-bottom: 1px solid var(--linie); }
.skizzen-typ[hidden] { display: none !important; }
.skizzen-typ.e2 { margin-left: 14px; }
.skizzen-typ.e3 { margin-left: 28px; }
.skizze-textlabel { background: transparent; border: 0; white-space: nowrap; font-weight: 600; font-size: 13px;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.skizze-textlabel span { display: inline-block; transform: translate(-50%, -50%); cursor: pointer; }
.einreichung-gst { max-height: 260px; overflow: auto; }
.einreichung-gst td .klein { padding: 0 6px; }
.formen-liste { display: flex; flex-wrap: wrap; gap: 4px; }
.formen-liste .chip { border-radius: 10px; padding: 1px 8px; color: #fff; font-size: 12px; }
.hg-liste td { vertical-align: top; }
