/* Plaud-Brain Agent – nach Brain 03_Wissen/designvorschrift-eigene-apps (Stand 2026-11-21): Zink-Grau, Akzent Violett
   aus projektfarben (hell #8b5cf6, dunkel #6d28d9). Variablennamen fest: --bg --panel --line --text --muted --soft --acc --acc-soft,
   Signalfarben --ok --warn --bad mit -soft. --acc-1/--acc-2 = heller/dunkler Akzentton (Logo-Verlauf). */
:root {
  color-scheme: light;
  --bg: #f4f4f5; --panel: #fff; --line: #e4e4e7; --text: #18181b; --muted: #71717a; --soft: #fafafa;
  --acc: #6d28d9; --acc-soft: #ede9fe; --acc-1: #8b5cf6; --acc-2: #6d28d9;
  --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
  --ok-soft: #dcfce7; --warn-soft: #fef3c7; --bad-soft: #fee2e2;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
html.dark, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b; --panel: #18181b; --line: #27272a; --text: #f4f4f5; --muted: #a1a1aa; --soft: #1f1f23;
  --acc: #8b5cf6; --acc-soft: #2e1065;
  --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --ok-soft: #052e16; --warn-soft: #422006; --bad-soft: #450a0a;
}
*, *::before, *::after { box-sizing: border-box; }
/* Geist wie Faktura (dort per next/font geladen); lokal ausgeliefert, SIL OFL siehe fonts/Geist-OFL.txt */
@font-face { font-family: Geist; src: url(/fonts/Geist-Variable.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
html, body { height: 100%; }
body { margin: 0; font-family: Geist, ui-sans-serif, system-ui, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.5; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Login (Muster Faktura/Vermieterdashboard) ----------
   Maße 1:1 wie Faktura (Marco 2026-11-21): Karte 330 px AUSSEN (border-box, wie dort per *{box-sizing}),
   Padding 28/26/26, Logo 40, Titel 20/700, Felder 42 hoch, Button 40 hoch. Siehe Brain 03_Wissen/designvorschrift-eigene-apps. */
.login-wrap, .login-wrap *, .login-wrap *::before, .login-wrap *::after { box-sizing: border-box; }
.login-wrap { line-height: 1.5; position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #0b0f17; padding: 20px; color: #e5e7eb; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.login-card { background: #131a24; border: 1px solid #273142; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.35); padding: 28px 26px 26px; width: 100%; max-width: 330px; text-align: center; animation: pop .25s ease; }
.lmark, .bmark { display: inline-grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--acc-1), var(--acc-2)); box-shadow: 0 2px 10px rgba(139,92,246,.35); }
.lmark { width: 40px; height: 40px; margin-bottom: 8px; }
.lmark svg, .bmark svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lmark svg { width: 22px; height: 22px; }
.ltitel { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #f3f4f6; line-height: 1.2; }
.ltitel .b1 { color: #8b5cf6; font-weight: 500; }
.lsub { color: #9ca3af; font-size: 12px; margin: 2px 0 26px; }
.login-input { display: block; width: 100%; box-sizing: border-box; border: 1px solid #273142; background: #161d29; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; color: #f3f4f6; outline: none; margin-bottom: 10px; }
.login-input::placeholder { color: #7b8494; }
.login-input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.login-submit { display: block; width: 100%; margin-top: 4px; padding: 10px; border: 0; border-radius: 8px; background: #6d28d9; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s; }
.login-submit:hover { background: #7c3aed; }
.login-submit:disabled { opacity: .7; cursor: default; }
.lhint { color: #9ca3af; font-size: 13px; margin: 0 0 12px; line-height: 1.45; }
.lback { display: inline-block; margin-top: 14px; font-size: 12px; color: #9ca3af; }
.login-error { color: #f87171; font-size: 12.5px; min-height: 1.2em; margin: 2px 0 6px; }
/* Zwei-Faktor (Marco 2026-11-21): gleiche Karte, QR auf weißem Grund (Scanner brauchen Kontrast), Code zentriert */
.login-input.lcode { text-align: center; font-size: 22px; letter-spacing: .3em; font-variant-numeric: tabular-nums; padding: 8px 12px; }
.login-input.lcode.rc { font-size: 15px; letter-spacing: .08em; }
.lqr { width: 196px; height: 196px; margin: 0 auto 10px; background: #fff; border-radius: 8px; padding: 6px; }
.lqr img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.lgeheim { font-size: 12px; color: #9ca3af; margin: 0 0 12px; text-align: center; }
.lgeheim summary { cursor: pointer; }
.lgeheim code { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12.5px; color: #f3f4f6; letter-spacing: .06em; word-break: break-all; user-select: all; }
.lcodes { list-style: none; margin: 0 0 6px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; background: #161d29; border: 1px solid #273142; border-radius: 8px; font: 12.5px/1.5 var(--mono); color: #f3f4f6; user-select: all; }
.lback.lknopf { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; cursor: pointer; margin: 4px 0 12px; text-decoration: underline; }
#zweifaktor .lback { margin: 14px 8px 0; }
.sicher-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 560px; margin-top: 6px; }
.sicher-form .hinweis { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.sicher-form .login-input.lcode { width: 170px; margin: 0; font-size: 16px; letter-spacing: .12em; }
.sicher-form .fehler { flex-basis: 100%; font-size: 13px; min-height: 1.2em; }
.karte .warnung { color: var(--warn); }

/* ---------- App-Rahmen: Menü links (1:1 Vermieterdashboard/UpdateAgent) ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
aside { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; }
.brand { display: flex; gap: 10px; align-items: center; padding: 2px 8px 18px; }
/* Marke: Logo 28 px + zweifarbige Wortmarke wie im Anmeldetitel (Vorschrift 2, E 6), keine Unterzeile */
.wortmarke { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; color: var(--text); white-space: nowrap; }
.wortmarke .b1 { font-weight: 500; color: var(--acc); }
.bmark { width: 28px; height: 28px; flex: none; border-radius: 7px; box-shadow: 0 2px 8px rgba(139,92,246,.3); }
.bmark svg { width: 15px; height: 15px; }
.burger { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--soft); color: var(--text); border-radius: 8px; padding: 4px 9px; cursor: pointer; }
nav { flex: 1; overflow-y: auto; }
nav a { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); margin-bottom: 2px; font-size: 14px; }
nav a:hover { background: var(--soft); color: var(--text); }
nav a.on { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
nav .gh { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 5px; }
nav .navgrp:first-child .gh { padding-top: 4px; }

.aside-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.usermenu { position: relative; }
.usermenu-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 40; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 5px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.usermenu-pop a, .usermenu-pop button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 7px 10px; border-radius: 7px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-decoration: none; text-align: left; cursor: pointer; }
.usermenu-pop a:hover, .usermenu-pop button:hover { background: var(--soft); }
.usermenu-pop .sep { height: 1px; background: var(--line); margin: 4px 2px; }
.userrow { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; background: var(--panel); color: var(--text); cursor: pointer; text-align: left; }
.userrow:hover { background: var(--soft); }
.userrow:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.userrow .caret { color: var(--muted); font-size: 11px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); font-size: 11px; font-weight: 700; flex: none; }
.uname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hell/Dunkel-Pille oben rechts (wie UpdateAgent/Vermieterdashboard) */
.theme-pill { position: relative; display: block; width: 54px; height: 28px; padding: 0; border-radius: 99px; border: 1px solid var(--line); background: var(--soft); flex: none; cursor: pointer; }
.theme-pill:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.theme-pill .knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 2px rgba(15,23,42,.18); display: grid; place-items: center; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.theme-pill svg { position: absolute; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s, transform .35s cubic-bezier(.34,1.56,.64,1); }
.theme-pill .sun { color: #d97706; }
.theme-pill .moon { color: #8b7cff; opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .theme-pill .knob { transform: translateX(26px); }
:root[data-theme="dark"] .theme-pill .sun { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="dark"] .theme-pill .moon { opacity: 1; transform: none; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease !important; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

.app-main { min-width: 0; display: flex; flex-direction: column; position: relative; }
.app-head { position: absolute; top: 12px; right: 28px; z-index: 30; }
main { padding: 14px 28px 28px; min-width: 0; flex: 1; }
/* Kein sichtbarer Seitentitel (Vorschrift 2, E 3): die erste Zeile gehört Hinweis, Auswahl und Aktionen, rechts 60 px für die Pille */
#inhalt > .leiste:first-child { min-height: 28px; padding-right: 60px; }
#inhalt > .karte:first-child { margin-right: 60px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.karte { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.karte .z { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.karte .l { color: var(--muted); font-size: 12px; }
.karte.hinweis { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.karte.hinweis .z { color: var(--acc); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-weight: 500; font-size: 12px; background: var(--soft); }
.fehler { color: var(--bad); }
.btn { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 7px 12px; border-radius: 8px; font: inherit; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--soft); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.zielwahl { max-width: 260px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px; }
.wahlzeile { display: flex; gap: 6px; align-items: center; }
table.aufnahmen td { vertical-align: top; }
.tabhuelle { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; }
.tabhuelle table { min-width: 860px; }
tr.offen td { background: var(--acc-soft); }
tr.verworfen td { color: var(--muted); text-decoration: line-through; }
.btn.gefahr { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.gefahr:hover { background: var(--bad-soft); }
a.btn { text-decoration: none; display: inline-block; }
/* ---------- Aufnahmen als Karten (Marco 20:40: Tabellen-Layout gefiel nicht) ---------- */
.leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.leiste .meta, .leiste .pfad { margin: 0; }
.aufnahmeliste { display: flex; flex-direction: column; gap: 10px; }
.aufnahme { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(240px, 300px); gap: 16px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.aufnahme.st-entscheidung-offen { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.aufnahme.st-verworfen { opacity: .55; }
.aufnahme.st-verworfen .atitel { text-decoration: line-through; }
.adatum { text-align: center; border-right: 1px solid var(--line); padding-right: 12px; }
.adatum .tag { font-weight: 700; font-size: 16px; }
.adatum .uhr { color: var(--muted); font-size: 12px; }
.atitel { font-weight: 600; font-size: 15px; margin-bottom: 6px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.chip.st { background: var(--acc-soft); color: var(--acc); border-color: transparent; font-weight: 600; }
.aauszug { color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.aablage { font-size: 12.5px; color: var(--muted); }
.arechts { display: flex; flex-direction: column; gap: 6px; }
.arechts .zielwahl { max-width: none; width: 100%; }
.aknoepfe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn.primaer { background: var(--acc); color: #fff; border-color: transparent; }
.btn.primaer:hover { background: color-mix(in srgb, var(--acc) 88%, #fff); }
@media (max-width: 900px) { .aufnahme { grid-template-columns: 60px minmax(0, 1fr); } .arechts { grid-column: 1 / -1; } }

/* ---------- Popup: Transkript + Sprecher-Maske ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(9,9,11,.55); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; }
.modalbox { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; width: min(860px, 100%); padding: 18px 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: pop .2s ease; }
.mkopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.mtitel { font-weight: 700; font-size: 17px; }
.mlabel { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 6px; }
.maske { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px 12px; }
.mzeile { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.mzeile:first-of-type { border-top: 0; }
.msp { font-weight: 600; font-size: 13px; }
.mprobe { color: var(--muted); font-size: 12.5px; font-style: italic; }
.login-input.mname { margin: 0; background: var(--panel); color: var(--text); border-color: var(--line); }
.mzus { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.verlauf { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow-y: auto; padding-right: 4px; }
.seg { display: grid; grid-template-columns: 48px 130px minmax(0, 1fr); gap: 10px; font-size: 13.5px; line-height: 1.5; padding: 4px 6px; border-left: 3px solid var(--line); border-radius: 4px; }
.seg .szeit { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }
.seg .ssp { font-weight: 600; overflow-wrap: anywhere; }
.seg.f0 { border-left-color: #8b5cf6; } .seg.f1 { border-left-color: #2a78d6; } .seg.f2 { border-left-color: #1baf7a; }
.seg.f3 { border-left-color: #eda100; } .seg.f4 { border-left-color: #e87ba4; } .seg.f5 { border-left-color: #eb6834; }
@media (max-width: 700px) { .mzeile { grid-template-columns: 1fr; } .seg { grid-template-columns: 40px minmax(0, 1fr); } .seg .ssp { grid-column: 2; } .seg .stext { grid-column: 1 / -1; } }

/* Mouseover mit Transkript-Auszug */
.hatauszug { position: relative; cursor: help; border-bottom: 1px dotted var(--muted); }
.auszug { display: none; position: fixed; z-index: 50; width: min(420px, 80vw); padding: 10px 12px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  font-size: 12.5px; line-height: 1.45; white-space: normal; text-decoration: none; font-weight: 400; }
.hatauszug:hover .auszug, .hatauszug:focus .auszug, .hatauszug:focus-within .auszug { display: block; }
.auszug .akopf { font-weight: 600; margin-bottom: 4px; }
.auszug .alabel { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
.chip { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
/* ---------- Brain-Ansicht ---------- */
.brain { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 14px; }
/* Beide Boxen fensterhoch und einzeln scrollbar, die Seite bleibt stehen (Marco 2026-11-21 16:23) */
.brain { height: calc(100vh - 82px); height: calc(100dvh - 82px); min-height: 360px; }
.bl, .br { min-height: 0; box-sizing: border-box; }
.bl { display: flex; flex-direction: column; padding: 12px 10px 0; overflow: hidden; }
.bl .baum, .bl .btreffer { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 12px; }
.bl .btreffer:empty { display: none; }
.br { overflow-y: auto; }
/* Verzeichnisbaum (Marco 2026-11-21): Ordner auf-/zuklappbar, Icons, Hilfslinien, Akzent Violett */
.bkopf { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.btitel { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-weight: 700; font-size: 13.5px; color: var(--text); text-decoration: none; }
.btitel .bi { width: 26px; height: 26px; padding: 5px; box-sizing: border-box; border-radius: 8px; background: linear-gradient(135deg, var(--acc-1), var(--acc-2)); stroke: #fff; }
.bknopf { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); border-radius: 7px; cursor: pointer; }
.bknopf:hover { color: var(--acc); border-color: var(--acc); }
.bknopf .bi { width: 15px; height: 15px; }
.bi { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bsuche { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--soft); border-radius: 8px; padding: 0 10px; margin: 0 2px 10px; color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.bsuche:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 18%, transparent); }
.bsuche input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; padding: 8px 0; outline: none; }
.baum, .bk { list-style: none; margin: 0; padding: 0; }
.bk { display: none; position: relative; }
li.offen > .bk { display: block; }
/* senkrechte Hilfslinie je Ebene */
.bk::before { content: ""; position: absolute; top: 2px; bottom: 6px; left: calc(var(--tl, 0) * 16px + 13px); width: 1px; background: var(--line); }
.bz { --t: 0; position: relative; display: flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 8px 0 calc(var(--t) * 16px + 6px); border-radius: 5px; color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.25; cursor: pointer; transition: background .1s, color .1s; }
.bz:hover { background: var(--soft); color: var(--text); }
.bz:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
/* Obsidian-Look (Marco 15:15): nur Pfeile und Hilfslinien, keine Ordner-/Notiz-Icons, keine Zähler */
.bz .pf { width: 14px; height: 14px; flex: none; color: var(--muted); opacity: .7; transition: transform .12s ease; }
.bz .pf.leer { display: inline-block; }
li.offen > .bz .pf { transform: rotate(90deg); }
.baum .bz .oz, .baum .bz .oo, .baum .bz .nz, .bz .bnr, .bz .bzahl { display: none; }
.bz .bn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz.ordner { color: var(--text); }
.bz.aktiv { background: var(--acc-soft); color: var(--acc); font-weight: 500; }
.bz.treffer { min-height: 40px; }
.bz.treffer .bn { display: flex; flex-direction: column; }
.bz.treffer small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.bleer { list-style: none; color: var(--muted); font-size: 12px; font-style: italic; padding: 3px 8px 5px calc(var(--tl, 0) * 16px + 40px); }
.btreffer .bleer { padding-left: 8px; }
.pfad { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.pfad a, .wl { color: var(--acc); text-decoration: none; }
.pfad a:hover { text-decoration: underline; }
.pfad .psep { opacity: .5; }
.pfad .pakt { color: var(--text); font-weight: 600; }
.eintrag { display: block; padding: 4px 6px; border-radius: 6px; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eintrag:hover { background: var(--soft); }
.wl:hover { text-decoration: underline; }
.wl.tot { color: var(--muted); text-decoration: line-through; }
.meta { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.md { line-height: 1.55; overflow-wrap: anywhere; }
.md h2 { font-size: 19px; margin: 6px 0 10px; } .md h3 { font-size: 16px; margin: 18px 0 6px; } .md h4, .md h5 { font-size: 14px; margin: 14px 0 4px; }
.md p { margin: 6px 0; } .md ul { margin: 4px 0 8px; padding-left: 20px; }
.md code { font-family: var(--mono); background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: 12.5px; }
.md pre { font-family: var(--mono); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow-x: auto; font-size: 12.5px; margin: 6px 0; white-space: pre-wrap; }
.md pre.fm { color: var(--muted); font-size: 12px; }
.md pre.tab { margin: 0; border-radius: 0; border-top: 0; white-space: pre; }
@media (max-width: 900px) { .brain { grid-template-columns: 1fr; height: auto; } .bl { max-height: 60vh; } .br { overflow: visible; } }
/* ---------- Graph-Ansicht ---------- */
.graph { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.gleiste { justify-content: flex-start; gap: 8px 16px; }
.gleiste .bsuche { margin: 0; flex: 0 1 280px; background: var(--panel); }
.gleiste .bsuche input { padding: 4px 0; }
.gleiste .meta { margin: 0 0 0 auto; }
.gleiste .gknopf { height: 28px; background: var(--panel); }
.gknopf { width: auto; padding: 0 10px; font: inherit; font-size: 12.5px; }
.gschalter { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.gschalter input { accent-color: var(--acc); }
.gbuehne { position: relative; height: calc(100vh - 160px); min-height: 380px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.gbuehne canvas { display: block; touch-action: none; cursor: grab; }
.glegende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.gleg { display: inline-flex; align-items: center; gap: 6px; }
.gleg i { width: 9px; height: 9px; border-radius: 50%; }
/* Schmale Fenster: Menü oben, aufklappbar (wie Vermieterdashboard) */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  aside { position: sticky; height: auto; z-index: 30; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding-bottom: 0; }
  .burger { display: inline-block; }
  aside nav, aside .aside-foot { display: none; }
  aside.offen nav, aside.offen .aside-foot { display: flex; flex-direction: column; margin-top: 10px; }
  main { padding-left: 16px; padding-right: 16px; }
  .app-head { right: 16px; }
}

/* ---------- Nutzungsstatistik ---------- */

.ndiagramm { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.ndiagramm .ntitel { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.ndiagramm svg { width: 100%; height: auto; display: block; overflow: visible; }
.ngitter { stroke: var(--line); stroke-width: 1; }
.nachse { fill: var(--muted); font-size: 11px; }
.nwert { fill: var(--text); font-size: 11.5px; font-weight: 600; }
.nbalken { fill: var(--acc-1); }
.nsaeule.laufend .nbalken { fill: var(--acc-1); opacity: .45; }
.nsaeule:hover .nbalken, .nsaeule:focus .nbalken { fill: var(--acc-2); opacity: 1; }
.nsaeule { outline: none; cursor: default; }
.ntreffer { fill: transparent; }
.nschnitt { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.ntip { position: absolute; width: 160px; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.ntip .ntk { font-weight: 700; }
.ntabelle { margin-top: 8px; font-size: 13px; }
.ntabelle summary { cursor: pointer; color: var(--muted); }
.ntabelle table { margin-top: 6px; max-width: 420px; border: 1px solid var(--line); border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.ntabelle tr:last-child td { border-bottom: 0; }
