/* OSP-Server-Monitor · css/ansichten/devboard.css — Dev-Board (0.9.7, Plan PLAN_DEV_BOARD_2026-11-11.md §2.8, Paket D5a)
   Startfläche im Standard-Rahmen. Nur dunkel. Schrift mindestens 12 px (auch Badges: app.css hat 10,5 px), Ziele ≥ 24 px.

   Höhenrechnung 1640 × 650 bei 150 % (Rumpf 389 px; main.content hat bei max-height 560 px 4 px Polster oben und unten
   → 381 px Inhalt, rahmen.css):
     Zeile 1 (--db-z1) 36 + Zeile 2 (--db-z2) 72 + 2 Lücken (--db-luecke) 16 = 124 → bleiben 257 für Zeile 3.
     Zeitstrahl: 10 Bahnen × 24 (--db-bahn) + Achse 14 (--db-achse) + Rand 2 = 256 ≤ 257.
     Wartet:     Kopf 28 (--db-wkopf) + 5 × 40 (--db-wzeile) + „+ n weitere“ 24 (--db-wmehr) + Rand 2 = 254 ≤ 256.
     Summe 36 + 72 + 16 + 256 = 380 ≤ 381 — ohne Seitenscrollen. tests/test_devboard_web.py rechnet das aus diesen Werten nach.
   Breite: Zeile 3 links knapp ⅓ (0,9 : 2), rechts gut ⅔ — bei 1640 × 650 / 150 % (Inhalt ≈ 845 px) ≈ 575 px Zeitstrahl. Unter 560 px Zeitstrahl-Fläche Tabelle, unter 800 px kompakt (nur Name);
   unter 760 px Board-Breite stehen Wartet und Zeitstrahl untereinander (960 × 1000).
   Statusfarben der Balken (Füllung ≥ 3 : 1 gegen --panel #141a24, WCAG 1.4.11; der Status steht zusätzlich als Icon am
   Balken und als Text im Tooltip/aria-label, nie nur Farbe): Werte in --db-f-* (Prüfung im Test). */

.db {
  --db-z1: 36px; --db-z2: 72px; --db-luecke: 8px;
  --db-bahn: 24px; --db-achse: 14px; --db-bahnen: 10;
  --db-wkopf: 28px; --db-wzeile: 40px; --db-wmehr: 24px; --db-wmax: 5;
  --db-mitte: calc(var(--db-bahn) * var(--db-bahnen) + var(--db-achse) + 2px);
  --db-label: 168px;
  --db-links: .9fr;   /* knapp ⅓: bei 1640 × 650 / 150 % bleibt die Zeitstrahl-Fläche ≥ 560 px (kompakter Zeitstrahl, A-28) */
  --db-f-arbeitet: #388bfd; --db-f-wartet: #dc500f; --db-f-rot: #f85149; --db-f-grau: #7d8a9e;
  --db-f-lauf: #2ea4e6; --db-f-op: #e6edf3;
  container: db / inline-size;
  display: flex; flex-direction: column; gap: var(--db-luecke); min-width: 0;
}
.db .badge { font-size: 12px; line-height: 16px; padding: 1px 7px; font-family: var(--font); white-space: nowrap; }
.db .badge svg { width: 12px; height: 12px; }
.db a { color: var(--blue-2); }
.db-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Zeile 1: Reiter · Lage · Zeitraum · Umschalter ── */
.db-kopf { display: flex; align-items: center; gap: 8px; height: var(--db-z1); min-width: 0; border-bottom: 1px solid var(--border); }
.db-reiter { display: flex; gap: 2px; flex: none; overflow-x: auto; scrollbar-width: none; }
.db-reiter a {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 8px; border-radius: 8px; color: var(--text-2);
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.db-reiter a:hover { background: var(--panel); color: var(--text); }
.db-reiter a[aria-current="page"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--blue-2); }
.db-lage { flex: 1 1 auto; min-width: 0; margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); container: lage / inline-size; }
.db-lage-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-lage-warn { flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.db-lage-warn-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Befund 6: Ist die Fläche für den Lagesatz zu schmal (150 %), fällt er weg (die Kacheln tragen dieselben Zahlen);
   die Warnung bleibt als Symbol mit Tooltip und aria-label stehen. */
@container lage (max-width: 260px) {
  .db-lage-text, .db-lage-warn-text { display: none; }
  .db-lage-warn { max-width: none; padding: 1px 5px; }
}
.db-zr { display: inline-flex; flex: none; border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; }
.db-zr button {
  min-height: 28px; min-width: 44px; padding: 0 8px; border: 0; border-right: 1px solid var(--border-2); background: var(--panel);
  color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.db-zr button:last-child { border-right: 0; }
.db-zr button[aria-pressed="true"] { background: #0070b0; color: #fff; }   /* weiß darauf 5,32 : 1 (wie die Leiste) */
.db-zr button:hover:not([aria-pressed="true"]) { color: var(--text); background: var(--panel-2); }
.db-umschalter {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 8px;
  border: 1px solid var(--border-2); background: var(--panel); color: var(--text-2);
}
.db-umschalter:hover { color: var(--text); }

/* ── Zeile 2: fünf Kacheln (je ein Link) ── */
.db-kacheln { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; height: var(--db-z2); }
.db-kachel {
  display: flex; flex-direction: column; justify-content: center; min-width: 0; height: var(--db-z2); padding: 6px 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--panel-2));
  color: var(--text); text-decoration: none;
}
.db-kachel:hover { border-color: var(--border-2); }
.db .db-kachel { color: var(--text); }
.db-kachel-titel, .db-kachel-kontext { font-size: 12px; line-height: 16px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-kachel-zahl { font-size: 22px; line-height: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.db-kachel-kontext { display: flex; align-items: center; gap: 4px; }
.db-kachel-kontext svg { flex: none; width: 12px; height: 12px; }
.db-kachel--leer .db-kachel-zahl { color: var(--text-3); }
.db-kachel--rot { border-color: rgba(248, 81, 73, .55); box-shadow: inset 3px 0 0 var(--db-f-rot); }
.db-kachel--rot .db-kachel-kontext { color: #ff6b63; }

/* ── Zeile 3 ── */
.db-mitte { display: grid; grid-template-columns: minmax(0, var(--db-links)) minmax(0, 2fr); gap: 12px; height: var(--db-mitte); min-height: 0; }
.db-wartet, .db-strahl, .db-rechts { min-width: 0; height: var(--db-mitte); }
.db-wartet, .db-strahl {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden;
}

/* Wartet auf dich: Kopf 28 + 5 × 40 + „+ n weitere“ 24 */
.db-wkopf { display: flex; align-items: center; gap: 8px; flex: none; height: var(--db-wkopf); padding: 0 10px; border-bottom: 1px solid var(--border); }
.db-wkopf h2 { font-size: 13px; font-weight: 600; margin: 0; min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* Befund 5 */
.db-wkopf .badge { flex: none; }
.db-wliste { list-style: none; margin: 0; padding: 0; flex: none; }
.db-w {
  display: flex; align-items: center; gap: 8px; height: var(--db-wzeile); padding: 1px 8px; border-bottom: 1px solid var(--border);
  overflow: hidden; box-sizing: border-box;
}
.db-w--rot { box-shadow: inset 3px 0 0 var(--db-f-rot); }
.db-w--orange { box-shadow: inset 3px 0 0 var(--db-f-wartet); }
.db-w--erkannt .db-w-titel { color: var(--text-2); }
.db-w-ikon { flex: none; display: inline-flex; color: var(--text-2); }
.db-w--rot .db-w-ikon { color: #ff6b63; }
.db-w-text { flex: 1 1 auto; min-width: 0; }
.db-w-titel { font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-w-titel a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.db-w-zeile { display: flex; align-items: center; gap: 6px; height: 20px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.db-w-zeile > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.db-mehr { display: flex; align-items: center; flex: none; height: var(--db-wmehr); padding: 0 10px; font-size: 12.5px; }
.db-leer { padding: 10px 12px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.db-leer p { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Kopierzeile mit einem Klick: Knopf ≥ 24 × 24, Rückmeldung „Kopiert“ */
.db-kopie {
  flex: none; display: inline-flex; align-items: center; gap: 4px; min-width: 24px; min-height: 24px; padding: 0 6px;
  border: 1px solid var(--border-2); border-radius: 6px; background: var(--panel-2); color: var(--text-2); font-size: 12px;
}
.db-kopie svg { width: 14px; height: 14px; }
.db-kopie:hover { color: var(--text); }
.db-kopie--ok { color: #3fb950; border-color: rgba(46, 160, 67, .5); }
.db-kopie-text:empty { display: none; }

/* Zeitstrahl: 10 Bahnen à 24 px + Achse 14 px */
.db-strahl--kompakt { --db-label: 112px; }
.db-flaeche { position: relative; flex: none; height: calc(var(--db-bahn) * var(--db-bahnen)); }
.db-hinter { position: absolute; top: 0; bottom: 0; left: calc(var(--db-label) + 8px); right: 8px; pointer-events: none; }
.db-nacht { position: absolute; top: 0; bottom: 0; background: rgba(56, 139, 253, .08); border-left: 1px dotted rgba(56, 139, 253, .25); }
.db-jetzt { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--orange-text); transform: translateX(-1px); }
.db-bahnen { position: relative; }
.db-bahn { display: grid; grid-template-columns: var(--db-label) minmax(0, 1fr); gap: 8px; height: var(--db-bahn); padding-right: 8px; align-items: center; }
.db-label { display: flex; align-items: center; gap: 6px; min-width: 0; padding-left: 8px; font-size: 12px; line-height: 16px; }
.db-label .badge { flex: none; }
.db-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.db-label a { display: inline-flex; align-items: center; min-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-spur { position: relative; height: var(--db-bahn); min-width: 0; }
.db-spur--text { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.db-link { min-height: 24px; padding: 0 6px; border: 1px solid var(--border-2); border-radius: 6px; background: var(--panel-2); color: var(--blue-2); font-size: 12px; }

.db-fuell { position: absolute; top: 4px; height: 16px; min-width: 4px; border-radius: 4px; pointer-events: none; background: var(--db-f-grau); }
.db-fuell.db-st--arbeitet, .db-fuell.db-st--wartet_auf_agenten { background: var(--db-f-arbeitet); }
.db-fuell.db-st--wartet_auf_agenten { background-image: repeating-linear-gradient(90deg, transparent 0 10px, rgba(11, 14, 20, .35) 10px 12px); }
.db-fuell.db-st--wartet_auf_al { background: var(--db-f-wartet); }
.db-fuell.db-st--rot { background: var(--db-f-rot); }
.db-fuell.db-st--abgebrochen { background: var(--db-f-wartet) repeating-linear-gradient(135deg, transparent 0 4px, rgba(11, 14, 20, .45) 4px 6px); }
.db-fuell.db-st--doppelt { outline: 2px solid var(--db-f-rot); outline-offset: 1px; }
.db-balken {
  position: absolute; top: 0; height: var(--db-bahn); min-width: 24px; padding: 0 0 0 2px; border: 0; border-radius: 6px;
  background: transparent; display: flex; align-items: center; cursor: pointer;
}
.db-balken:hover { background: rgba(255, 255, 255, .05); }
.db-balken:focus-visible { outline-offset: -2px; }   /* Befund 19: Fokusrahmen bleibt in der Fläche (oberster Balken) */
.db-bahn-badge { flex: none; text-decoration: none; }
.db-st-ikon { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); color: var(--text); box-shadow: 0 0 0 1px var(--db-f-grau); }
.db-st-ikon svg { width: 12px; height: 12px; }
.db-balken.db-st--arbeitet .db-st-ikon, .db-balken.db-st--wartet_auf_agenten .db-st-ikon { box-shadow: 0 0 0 1px var(--db-f-arbeitet); }
.db-balken.db-st--wartet_auf_al .db-st-ikon, .db-balken.db-st--abgebrochen .db-st-ikon { box-shadow: 0 0 0 1px var(--db-f-wartet); }
.db-balken.db-st--rot .db-st-ikon, .db-balken.db-st--doppelt .db-st-ikon { box-shadow: 0 0 0 1px var(--db-f-rot); color: #ff6b63; }

.db-marke { position: absolute; top: 6px; height: 12px; min-width: 3px; border-radius: 2px; background: var(--db-f-grau); opacity: .9; }
.db-marke--lauf { background: var(--db-f-lauf); top: 8px; height: 8px; }
.db-marke--laeuft { background: var(--db-f-wartet); }
.db-marke--fehler { background: var(--db-f-rot); top: 4px; height: 16px; z-index: 1; }
.db-op { position: absolute; top: 6px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: var(--db-f-op); border: 1px solid var(--bg); }
.db-op--vorfall, .db-op--sperre { background: var(--db-f-rot); }
.db-bahn--auto, .db-bahn--op { border-top: 1px dashed var(--border); }

.db-achse { display: grid; grid-template-columns: var(--db-label) minmax(0, 1fr); gap: 8px; height: var(--db-achse); padding-right: 8px; }
.db-ticks { position: relative; height: var(--db-achse); }
.db-tick { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; line-height: 14px; color: var(--text-3); white-space: nowrap; }
.db-tick:first-child { transform: none; }
/* Hinweis „gekürzt“ in der Achsenzeile (Läufe im Zeitstrahl gekappt; Erklärung im Tooltip und für Screenreader) */
.db-achse .db-label { min-height: 0; }
.db-gekappt { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 14px; color: var(--orange-text); white-space: nowrap; }   /* #F27C47 auf --panel ≥ 4,5 : 1 */
.db-gekappt svg { width: 12px; height: 12px; flex: none; }

/* Tabellenform (unter 560 px oder gewählt): bleibt in der Fläche von Zeile 3 und scrollt dort */
.db-rechts { display: flex; flex-direction: column; min-height: 0; }
.db-tab { flex: 1 1 auto; min-height: 0; overflow: auto; }
.db-tab td[data-spalte="name"] .ot-z, .db-tab th[data-key="name"] { text-align: left; }
.db-tab td[data-spalte="status_text"] .ot-z { overflow: visible; }
.db-tab-summe { flex: none; margin: 4px 0 0; font-size: 12px; color: var(--text-2); }

/* Hinweise, Unterrouten (D5b), Platzhalter */
.db-hinweis { display: flex; align-items: center; gap: 8px; margin: 16px auto; max-width: 70ch; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.db-unter { min-width: 0; }
.db-platzhalter { max-width: 70ch; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); font-size: 13px; color: var(--text-2); }
.db-platzhalter h2 { margin: 0 0 6px; font-size: 14px; color: var(--text); }
.db-platzhalter p { margin: 0 0 6px; }

/* Schmal: unter 760 px Board-Breite untereinander, Kopf darf umbrechen (genug Höhe, z. B. 960 × 1000) */
@container db (max-width: 760px) {
  .db-kopf { flex-wrap: wrap; height: auto; padding-bottom: 4px; }
  .db-lage { order: 5; flex-basis: 100%; }
  .db-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
  .db-mitte { grid-template-columns: minmax(0, 1fr); height: auto; }
  .db-wartet { height: auto; }
}

/* ═══ Unteransichten (Paket D5b, devboard_details.js) ═══════════════════════════════════════════════════════════════
   Die Seite scrollt nie: Kopfzeile (Reiter, Zeitraum) 36 px, darunter Lagezeile und Fläche; Tabellen, Karte und Panel
   scrollen in sich. Höhe wie der Rumpf (main.content: 8 px Polster oben und unten, bei max-height 560 px 4 px). */
.db--unter { height: calc(100dvh - 44px - 16px); min-height: 0; }
@media (max-height: 560px) { .db--unter { height: calc(100dvh - 44px - 8px); } }
.db--unter > .db-unter { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.db-reiter-neben {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--border-2); background: var(--panel); color: var(--text-2);
}
.db .db-reiter-neben { color: var(--text-2); }
.db-reiter-neben:hover { color: var(--text); background: var(--panel-2); }

.dbd { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.dbd-lage { flex: none; display: flex; align-items: center; flex-wrap: nowrap; gap: 6px 10px; min-height: 28px; }   /* Befund 7: eine Zeile */
.dbd-satz { margin: 0; flex: 1 1 auto; min-width: 120px; font-size: 13px; line-height: 18px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbd-satz b { color: var(--text); font-weight: 600; }
.dbd-rot { color: #ff6b63; font-weight: 600; }
.dbd-grau-text { color: var(--text-3); }
.dbd-quelle { flex: 0 1 auto; min-width: 28px; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd-filter { flex: none; display: flex; flex-wrap: nowrap; gap: 4px; }
.dbd-chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 10px; border: 1px solid var(--border-2);
  border-radius: 13px; background: var(--panel); color: var(--text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.db .dbd-chip { color: var(--text-2); }
.dbd-chip:hover { color: var(--text); background: var(--panel-2); }
.db .dbd-chip[aria-current="page"] { background: #0070b0; border-color: #0070b0; color: #fff; }   /* weiß darauf 5,32 : 1 */
.dbd-chip-n { font-variant-numeric: tabular-nums; opacity: .9; }
.dbd-seiten { margin-left: 8px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }

.dbd-koerper { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.dbd-koerper--panel { grid-template-columns: minmax(0, 1fr) minmax(300px, 42%); }
.dbd-haupt { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.dbd-tab { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.dbd-tab > .ot { flex: 1 1 0; height: auto; min-height: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.dbd-tab tr.dbd-grau td { color: var(--text-3); }
.dbd-tab td .ot-z.dbd-z { display: flex; align-items: center; justify-content: safe center; gap: 6px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }   /* Befund 2: nie beidseitig abgeschnitten */
.dbd-tab td .ot-z.dbd-z > .badge { flex: none; }
/* Befund 7: bei 150 % mindestens 8 Zeilen — Zeilen 2 Schrifthöhen hoch, jede Zelle einzeilig (voller Text im Tooltip) */
.dbd-tab .ot { --ot-zf: 2; }
.dbd-tab .ot-z.ot-kuerz { display: block; -webkit-line-clamp: unset; line-clamp: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbd-pfad { font-family: var(--mono); font-size: 12px; }
.dbd-tab td.ot-frei .ot-z.dbd-z { justify-content: flex-start; }
.dbd-tab td .ot-z.dbd-z > a, .dbd-tab td .ot-z.dbd-z > span:not(.badge) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd-zname { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.dbd-zname svg { flex: none; color: var(--text-2); }
.dbd-zeit { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dbd-auf-knopf {
  display: inline-flex; align-items: center; gap: 4px; min-height: 24px; max-width: 100%; padding: 0 4px 0 0; border: 0;
  background: none; color: var(--blue-2); font: inherit; text-align: left; cursor: pointer;
}
.dbd-auf-knopf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd-auf-knopf svg { flex: none; transition: transform .15s; }
.dbd-auf-knopf[aria-expanded="true"] svg { transform: rotate(90deg); }

.dbd-leer { max-width: 75ch; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); font-size: 13px; color: var(--text-2); line-height: 1.5; }
.dbd-leer p { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dbd-leer p:last-child { margin-bottom: 0; }

/* Seitenpanel (Vorschau, Einzelläufe): neben der Liste, scrollt in sich; Esc schließt */
.dbd-panel { min-height: 0; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--bg-2); }
.dbd-panel-kopf { flex: none; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 6px 0 12px; border-bottom: 1px solid var(--border); }
.dbd-panel-kopf h2 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd-zu { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--border-2); border-radius: 8px; background: var(--panel); color: var(--text-2); }
.dbd-zu:hover { color: var(--text); }
.dbd-panel-inhalt { flex: 1 1 0; min-height: 0; overflow: auto; padding: 8px 12px; font-size: 13px; }
.dbd-panel-meta, .dbd-ziele { margin: 0 0 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.dbd-pre { margin: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Listen in Karte und Panel */
.dbd-liste { list-style: none; margin: 0; padding: 0; }
.dbd-liste > li { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 2px; border-bottom: 1px solid var(--border); }
.dbd-liste--dicht > li { min-height: 32px; }
.dbd-liste > li.dbd-grau { opacity: .85; }
.dbd-liste > li.dbd-grau .dbd-li-titel { color: var(--text-2); }
.dbd-li-ikon { flex: none; display: inline-flex; color: var(--text-2); }
.dbd-li-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dbd-li-titel { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; line-height: 18px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd-li-zeile { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; line-height: 16px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd-li-akt { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.dbd-mono { font-family: var(--mono); display: block; }
.db code, .dbd code { font-family: var(--mono); font-size: 12px; padding: 1px 5px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg); color: var(--text); }

/* Sitzungskarte: Kopf steht, der Rumpf (Auftrag, Ergebnis, Aufklapper) scrollt in sich */
.dbd-haupt--karte { overflow: hidden; }
.dbd-karte { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.dbd-karte-kopf { flex: none; padding: 8px 12px 6px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.dbd-karte-titel { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.dbd-karte-titel h2 { margin: 0; font-size: 16px; font-weight: 700; line-height: 22px; }
.dbd-karte-meta, .dbd-ort { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text); }
.dbd-ort { gap: 6px; }
.dbd-label { margin-right: 6px; font-size: 12px; font-weight: 600; color: var(--blue-2); }
.dbd-karte-rumpf { flex: 1 1 0; min-height: 0; overflow: auto; padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.dbd-kurz { margin: 0 0 4px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; font-size: 13px; line-height: 1.5; }
.dbd-kurz dt { font-size: 12px; font-weight: 600; color: var(--blue-2); padding-top: 1px; }
.dbd-kurz dd { margin: 0; max-width: 90ch; }
.dbd-kurz dd p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dbd-auf { border: 1px solid var(--border); border-radius: 8px; background: var(--bg-2); }
.dbd-auf > summary {
  display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600;
}
.dbd-auf > summary::-webkit-details-marker { display: none; }
.dbd-auf > summary::before { content: "›"; display: inline-block; width: 12px; color: var(--text-2); font-size: 16px; line-height: 1; transition: transform .15s; }
.dbd-auf[open] > summary::before { transform: rotate(90deg); }
.dbd-auf-kurz { min-width: 0; font-size: 12px; font-weight: 400; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd-auf-inhalt { padding: 2px 10px 8px; font-size: 13px; }
.dbd-auf-inhalt > p { margin: 4px 0; }
.dbd-auf-inhalt .dbd-leer { border: 0; padding: 4px 0; background: none; }
.dbd-h3 { margin: 10px 0 2px; font-size: 12px; font-weight: 600; color: var(--blue-2); }
.dbd-hinweis-zeile { margin: 4px 0; }

/* Schmal (960 × 1000): Panel unter die Liste */
@container db (max-width: 760px) {
  .dbd-lage, .dbd-filter { flex-wrap: wrap; }
  .dbd-koerper--panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
}
