/*
 * Ansichten der Verwaltung: Übersicht, Kategorien und Schlagwörter, Standorte,
 * Rollen und Rechte, Digitale Rechte, Statistik (js/views/verwaltung.js).
 * Alle Regeln unter .v-verwaltung; Dialoginhalte (außerhalb von <main>) unter .dlg .vw-…
 */

.v-verwaltung { padding-bottom: var(--s8); }
.v-verwaltung .page-head { margin-bottom: var(--s5); }
.v-verwaltung .tabs { margin-bottom: var(--s6); }
.v-verwaltung code { font-size: .9em; background: var(--of-section); padding: 1px 5px; }

/* ---------- Abschnitte und Köpfe ---------- */
.v-verwaltung .vw-abschnitt { margin-top: var(--s7); }
.v-verwaltung .vw-abschnitt--erst { margin-top: 0; }
.v-verwaltung .vw-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s5); margin-bottom: var(--s4); }
.v-verwaltung .vw-kopf__text { flex: 1 1 420px; min-width: 0; max-width: 80ch; }
.v-verwaltung .vw-kopf .kicker { margin-bottom: 4px; }
.v-verwaltung .vw-kopf h2 { font-size: var(--fs-xl); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.v-verwaltung .vw-kopf__text p { margin: 6px 0 0; color: var(--of-text-2); }
.v-verwaltung .vw-kopf__aktionen { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.v-verwaltung .vw-bereichshinweis { margin-bottom: var(--s5); }
.v-verwaltung .vw-zaehler { font-size: var(--fs-sm); color: var(--of-text-2); margin: 0 0 var(--s3); }

/* ---------- Kennzahlen ---------- */
.v-verwaltung .vw-kpis {
  list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}
.v-verwaltung .vw-kpis > li { margin: 0; display: flex; min-width: 0; }
.v-verwaltung .vw-kpis .kpi { flex: 1; min-width: 0; }
.v-verwaltung .kpi__value { font-variant-numeric: proportional-nums; margin: 4px 0 6px; }
.v-verwaltung .kpi__label { color: var(--of-text); font-weight: var(--fw-medium); line-height: 1.3; }
.v-verwaltung .vw-kpi__kicker { font-size: var(--fs-xxs); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--of-muted); }
.v-verwaltung .vw-kpi__zusatz { font-size: var(--fs-xs); color: var(--of-muted); margin-top: 2px; line-height: 1.35; }
.v-verwaltung .vw-abschnitt + .vw-kpis, .v-verwaltung .vw-kpis + .vw-abschnitt { margin-top: var(--s6); }

/* ---------- Schnellzugriff (Kacheln wie auf offenbach.de) ---------- */
.v-verwaltung .vw-schnell { margin-bottom: var(--s6); }
.v-verwaltung .vw-schnell__titel { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--of-text-2); margin: 0 0 var(--s3); }
.v-verwaltung .vw-schnell__liste { list-style: none; margin: 0; padding: 0; }
.v-verwaltung .vw-schnell__liste li { margin: 0; }
.v-verwaltung .vw-schnell .tile { font-size: var(--fs-base); min-height: 48px; padding: 10px 18px; }
.v-verwaltung .vw-schnell .tile > span { min-width: 0; overflow-wrap: break-word; }

/* ---------- Übersicht: Aufgaben ---------- */
.v-verwaltung .vw-uebersicht-unten { align-items: start; }
.v-verwaltung .vw-aufgaben { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--of-border); }
.v-verwaltung .vw-aufgabe { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s4); margin: 0; padding: var(--s4) 0 var(--s5); border-bottom: 1px solid var(--of-border); }
.v-verwaltung .vw-aufgabe__icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--warn-tint); color: var(--warn-text); }
.v-verwaltung .vw-aufgabe--info .vw-aufgabe__icon { background: var(--of-sky-tint); color: var(--of-navy); }
.v-verwaltung .vw-aufgabe__inhalt { min-width: 0; }
.v-verwaltung .vw-aufgabe__titel { font-size: var(--fs-md); margin: 2px 0 4px; }
.v-verwaltung .vw-aufgabe__text { margin: 0 0 var(--s2); font-size: var(--fs-sm); color: var(--of-text-2); max-width: 70ch; }
.v-verwaltung .vw-aufgabe__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
.v-verwaltung .vw-aufgabe .arrow-link { font-size: var(--fs-xs); min-height: 32px; }
.v-verwaltung .vw-aufgabe .arrow-link .icon { width: 24px; height: 24px; }
.v-verwaltung .vw-aufklapper { font-size: var(--fs-sm); min-height: 32px; }
.v-verwaltung .vw-aufklapper .icon { width: 18px; height: 18px; transition: transform .15s var(--ease); }
.v-verwaltung .vw-aufklapper[aria-expanded='true'] .icon { transform: rotate(180deg); }
.v-verwaltung .vw-aufgabe__liste { list-style: none; margin: var(--s3) 0 0; padding: var(--s3) var(--s4); background: var(--of-section); font-size: var(--fs-sm); }
.v-verwaltung .vw-aufgabe__liste li { margin: 0; padding: 4px 0; overflow-wrap: anywhere; }
.v-verwaltung .vw-mini-link { font-size: var(--fs-xs); font-weight: var(--fw-bold); margin-left: 4px; white-space: nowrap; }
.v-verwaltung .vw-erledigt { display: flex; gap: 10px; align-items: flex-start; margin: var(--s4) 0 0; font-size: var(--fs-sm); color: var(--of-text-2); }
.v-verwaltung .vw-erledigt .icon { color: var(--ok); width: 20px; height: 20px; margin-top: 1px; }
.v-verwaltung .vw-alles-erledigt { display: flex; align-items: center; gap: var(--s3); padding: var(--s5); background: var(--ok-tint); }
.v-verwaltung .vw-alles-erledigt .icon { width: 32px; height: 32px; color: var(--ok); }
.v-verwaltung .vw-alles-erledigt p { margin: 0; }

/* ---------- Übersicht: letzte Änderungen (Zeitleiste) ---------- */
.v-verwaltung .vw-seitenspalte { background: var(--of-section); padding: var(--s5); }
.v-verwaltung .vw-seitenspalte .vw-kopf h2 { font-size: var(--fs-lg); }
.v-verwaltung .vw-log { list-style: none; margin: 0; padding: 0; position: relative; }
.v-verwaltung .vw-log::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 10px; width: 2px; background: var(--of-border-cool); }
.v-verwaltung .vw-log__eintrag { position: relative; margin: 0; padding: 0 0 var(--s4) 24px; display: flex; flex-direction: column; gap: 1px; font-size: var(--fs-sm); line-height: 1.4; }
.v-verwaltung .vw-log__eintrag::before { content: ''; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; background: var(--of-sky); box-shadow: 0 0 0 3px var(--of-section); }
.v-verwaltung .vw-log__zeit { font-size: var(--fs-xxs); font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--of-muted); }
.v-verwaltung .vw-log__aktion { font-weight: var(--fw-bold); }
.v-verwaltung .vw-log__objekt { color: var(--of-text-2); overflow-wrap: anywhere; }
.v-verwaltung .vw-log__wer { font-size: var(--fs-xs); color: var(--of-muted); }

/* ---------- Werkzeugleisten, Tabellen ---------- */
.v-verwaltung .vw-werkzeug { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3) var(--s4); margin-bottom: var(--s3); }
.v-verwaltung .vw-werkzeug .field + .field { margin-top: 0; }
.v-verwaltung .vw-werkzeug__suche { flex: 1 1 260px; max-width: 460px; }
.v-verwaltung .vw-werkzeug__auswahl { flex: 0 1 300px; }
.v-verwaltung .vw-werkzeug__aktionen { display: flex; flex-wrap: wrap; gap: var(--s2); }
/* Unsichtbare Beschriftungen (position: absolute) in breiten, seitlich scrollenden Tabellen bleiben im Tabellenrahmen */
.v-verwaltung .table-wrap { position: relative; }
.v-verwaltung .vw-tabelle th, .v-verwaltung .vw-tabelle td { vertical-align: middle; }
.v-verwaltung .vw-tabelle tbody th[scope='row'] { font-weight: var(--fw-medium); }
.v-verwaltung .vw-spalte-aktionen { text-align: right; }
.v-verwaltung .vw-aktionen { text-align: right; white-space: nowrap; }
.v-verwaltung .vw-aktionen .btn + .btn { margin-left: 6px; }
.v-verwaltung .icon-btn[aria-disabled='true'] { opacity: .32; cursor: not-allowed; }
.v-verwaltung .icon-btn[aria-disabled='true']:hover { background: transparent; }
.v-verwaltung .vw-icon-gefahr { color: var(--eko-rot); }
.v-verwaltung .vw-icon-gefahr:hover { background: var(--eko-rot-tint); }
.v-verwaltung .vw-kennung { display: block; margin-top: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-xxs); font-weight: var(--fw-regular); color: var(--of-muted); }
.v-verwaltung .vw-badge-aus { background: var(--of-section); color: var(--of-text-2); box-shadow: inset 0 0 0 1.5px var(--of-border-strong); }
.v-verwaltung .vw-badge-aus .icon { color: var(--of-muted); }
.v-verwaltung .vw-sortknopf {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; font-weight: inherit;
}
.v-verwaltung .vw-sortknopf:hover { color: var(--of-navy); }
.v-verwaltung .vw-sortknopf__neutral { display: inline-flex; opacity: .45; }
.v-verwaltung .vw-sortknopf .icon { width: 16px; height: 16px; }

/* ---------- Segmentierte Filter (Digitale Rechte) und Umschalter (Statistik) ---------- */
.v-verwaltung .vw-segment { display: flex; flex-wrap: wrap; gap: 6px; }
.v-verwaltung .vw-segment__knopf {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 2px solid var(--of-navy); background: var(--white); color: var(--of-navy);
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
}
.v-verwaltung .vw-segment__knopf:hover { background: var(--of-sky-tint); }
.v-verwaltung .vw-segment__knopf[aria-pressed='true'] { background: var(--of-navy); color: var(--white); }
.v-verwaltung .vw-aufklapper .count, .v-verwaltung .vw-werkzeug__aktionen .count { margin-left: 2px; }
.v-verwaltung .vw-umschalter { display: inline-flex; flex: 0 0 auto; border: 1.5px solid var(--of-navy); }
.v-verwaltung .vw-umschalter__knopf {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 0;
  background: var(--white); color: var(--of-navy); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase;
}
.v-verwaltung .vw-umschalter__knopf .icon { width: 16px; height: 16px; }
.v-verwaltung .vw-umschalter__knopf:not([aria-pressed='true']):hover { background: var(--of-sky-tint); }
.v-verwaltung .vw-umschalter__knopf[aria-pressed='true'] { background: var(--of-navy); color: var(--white); }

/* ---------- Kategorien ---------- */
.v-verwaltung .vw-katlayout { align-items: start; }
@media (min-width: 960px) {
  .v-verwaltung .vw-katlayout { grid-template-columns: 250px minmax(0, 1fr); }
  .v-verwaltung .vw-katnav { position: sticky; top: var(--s4); }
}
.v-verwaltung .vw-katnav__liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--of-border); }
.v-verwaltung .vw-katnav__liste li { margin: 0; border-bottom: 1px solid var(--of-border); }
.v-verwaltung .vw-katnav__link {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px 10px 14px;
  color: var(--of-text); text-decoration: none; font-weight: var(--fw-medium); border-left: 4px solid transparent;
}
.v-verwaltung .vw-katnav__link:hover { background: var(--of-section); color: var(--of-navy); }
.v-verwaltung .vw-katnav__link[aria-current='page'] { border-left-color: var(--of-sky); background: var(--of-sky-tint); color: var(--of-navy); font-weight: var(--fw-bold); }
.v-verwaltung .vw-katnav__label { flex: 1; min-width: 0; }
.v-verwaltung .vw-katnav__link .count { flex: 0 0 auto; }
.v-verwaltung .vw-katnav__marke { font-size: var(--fs-xxs); font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; background: var(--eko-gelb-tint); color: var(--warn-text); }
.v-verwaltung .vw-katnav__schloss { width: 16px; height: 16px; color: var(--of-muted); }
.v-verwaltung .vw-katnav__info { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--of-text-2); }
.v-verwaltung .vw-katnav__info p { display: flex; gap: 8px; margin: 0 0 var(--s3); }
.v-verwaltung .vw-katnav__info .icon { width: 20px; height: 20px; color: var(--of-navy); margin-top: 1px; }
.v-verwaltung .vw-katbereich .vw-kopf { margin-bottom: var(--s5); }
.v-verwaltung .vw-angepasst { margin-bottom: var(--s4); }
.v-verwaltung .vw-angepasst p { margin: 0 0 var(--s2); }
.v-verwaltung .vw-kattabelle__nr { width: 3.5em; color: var(--of-muted); font-variant-numeric: tabular-nums; }
.v-verwaltung .vw-kattabelle__name { min-width: 15em; }
.v-verwaltung .vw-kattabelle__label { font-size: var(--fs-base); font-weight: var(--fw-bold); }
.v-verwaltung .vw-kattabelle__beschr { display: block; margin-top: 2px; max-width: 62ch; color: var(--of-text-2); font-weight: var(--fw-regular); }
.v-verwaltung .vw-kattabelle .num a { white-space: nowrap; }
.v-verwaltung .vw-kattabelle .vw-aktionen { width: 1%; }
.v-verwaltung .vw-kattabelle .badge { vertical-align: 2px; }

.v-verwaltung .vw-bep { display: grid; gap: var(--s4); margin-top: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.v-verwaltung .vw-bep__gruppe { background: var(--white); border: 1px solid var(--of-border); border-top: 4px solid var(--of-sky); padding: var(--s4) var(--s5); }
.v-verwaltung .vw-bep__titel { font-size: var(--fs-base); margin: 0 0 var(--s3); }
.v-verwaltung .vw-bep__liste { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.v-verwaltung .vw-bep__liste li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin: 0; padding: 8px 0; border-top: 1px solid var(--of-border); }
.v-verwaltung .vw-bep__liste a, .v-verwaltung .vw-bep__liste .muted { white-space: nowrap; }

.v-verwaltung .vw-doppelt { margin-bottom: var(--s5); padding: var(--s4) var(--s5); background: var(--warn-tint); border-left: 5px solid var(--eko-gelb); }
.v-verwaltung .vw-doppelt__titel { display: flex; align-items: center; gap: 8px; font-size: var(--fs-base); margin: 0 0 4px; }
.v-verwaltung .vw-doppelt__titel .icon { color: var(--warn-text); }
.v-verwaltung .vw-doppelt__text { margin: 0 0 var(--s3); font-size: var(--fs-sm); color: var(--of-text-2); max-width: 75ch; }
.v-verwaltung .vw-doppelt__liste { list-style: none; margin: 0; padding: 0; }
.v-verwaltung .vw-doppelt__liste li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px var(--s4); margin: 0; padding: 8px 0; border-top: 1px solid var(--of-border); }
.v-verwaltung .vw-doppelt__wort { font-weight: var(--fw-bold); }
.v-verwaltung .vw-doppelt__trenner { margin: 0 8px; color: var(--of-border-strong); }
.v-verwaltung .vw-swtabelle__wahl { width: 48px; }
.v-verwaltung .vw-check { padding: 0; }
.v-verwaltung .vw-swtabelle tr.is-gewaehlt { background: var(--of-sky-tint); }
.v-verwaltung .vw-swtabelle tbody th[scope='row'] a { font-weight: var(--fw-medium); }

/* ---------- Standorte ---------- */
.v-verwaltung .vw-ort__name { font-weight: var(--fw-bold); }
.v-verwaltung .vw-ort__typ { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: var(--fw-regular); color: var(--of-muted); }
.v-verwaltung .vw-orttabelle tr.is-inaktiv { background: var(--of-section); }
.v-verwaltung .vw-orttabelle tfoot th, .v-verwaltung .vw-orttabelle tfoot td { font-weight: var(--fw-bold); border-top: 2px solid var(--of-navy); border-bottom: 0; }
.v-verwaltung .vw-hinweise-unten { margin-top: var(--s5); }

/* ---------- Rollen und Rechte ---------- */
.v-verwaltung .vw-legende { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--fs-sm); }
.v-verwaltung .vw-legende li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.v-verwaltung .vw-matrix { min-width: 860px; table-layout: fixed; }
.v-verwaltung .vw-matrix--bearbeiten { min-width: 920px; }
.v-verwaltung .vw-matrix .vw-matrix__ecke { width: 210px; }
.v-verwaltung .vw-matrix-tipp { display: none; align-items: center; gap: 8px; margin: 0 0 var(--s2); font-size: var(--fs-xs); color: var(--of-muted); }
.v-verwaltung .vw-matrix-tipp .icon { width: 18px; height: 18px; }
.v-verwaltung .vw-matrix th, .v-verwaltung .vw-matrix td { vertical-align: top; }
.v-verwaltung .vw-matrix thead th { vertical-align: bottom; white-space: normal; letter-spacing: .05em; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: anywhere; }
.v-verwaltung .vw-matrix-wrap:focus-visible { outline-offset: 4px; }
.v-verwaltung .vw-matrix th[scope='row'], .v-verwaltung .vw-matrix .vw-matrix__ecke {
  position: sticky; left: 0; z-index: 1; background: var(--white); text-align: left; min-width: 180px; max-width: 230px;
  box-shadow: 1px 0 0 var(--of-border);
}
.v-verwaltung .vw-matrix th[scope='row'] { font-weight: var(--fw-medium); }
.v-verwaltung .vw-matrix td { min-width: 0; }
.v-verwaltung .vw-matrix__select { width: 100%; }
.v-verwaltung .vw-matrix .is-aktuell { background: var(--of-sky-tint); }
.v-verwaltung .vw-matrix__rolle { display: block; }
.v-verwaltung .vw-matrix__ihre { display: inline-block; margin-top: 4px; padding: 2px 6px; background: var(--of-navy); color: var(--white); font-size: var(--fs-xxs); letter-spacing: .08em; }
.v-verwaltung .vw-matrix__select { min-height: 40px; padding: 6px 32px 6px 10px; font-size: var(--fs-sm); background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%; }
.v-verwaltung .vw-matrix td.is-geaendert { background: var(--eko-gelb-tint); box-shadow: inset 0 0 0 2px var(--eko-gelb); }
.v-verwaltung .vw-stufe { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.v-verwaltung .vw-stufe .icon { width: 20px; height: 20px; }
.v-verwaltung .vw-stufe--ja { color: var(--ok); }
.v-verwaltung .vw-stufe--teil { color: var(--warn-text); }
.v-verwaltung .vw-stufe--nein { color: var(--of-muted); font-weight: var(--fw-medium); }
.v-verwaltung .vw-stufe__hinweis { display: block; margin-top: 4px; font-size: var(--fs-xs); font-weight: var(--fw-regular); line-height: 1.35; color: var(--of-text-2); }
.v-verwaltung .vw-stufe__hinweis .icon { width: 14px; height: 14px; vertical-align: -2px; }
.v-verwaltung .vw-stufe__hinweis--neu { color: var(--warn-text); font-weight: var(--fw-bold); }
.v-verwaltung .vw-entwurf { display: flex; gap: var(--s3); margin-top: var(--s4); padding: var(--s4) var(--s5); background: var(--eko-gelb-tint); border-left: 5px solid var(--eko-gelb); font-size: var(--fs-sm); }
.v-verwaltung .vw-entwurf .icon { color: var(--warn-text); flex: 0 0 auto; }
.v-verwaltung .vw-entwurf ul { margin: 6px 0 0; }
.v-verwaltung .vw-erklaerung { margin-top: var(--s6); }
.v-verwaltung .vw-erklaerung__titel { font-size: var(--fs-md); margin: 0 0 var(--s3); }
.v-verwaltung .vw-erklaerung__tabelle th[scope='row'] { width: 26%; }
.v-verwaltung .vw-erklaerung__tabelle td:last-child { width: 30%; color: var(--of-text-2); }
.v-verwaltung .vw-erklaerung__fuss { display: flex; gap: 8px; margin: var(--s3) 0 0; font-size: var(--fs-sm); color: var(--of-text-2); max-width: 90ch; }
.v-verwaltung .vw-erklaerung__fuss .icon { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; color: var(--of-navy); }

.v-verwaltung .vw-rollenkarten { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 196px), 1fr)); }
.v-verwaltung .vw-rollenkarte { display: flex; flex-direction: column; gap: var(--s2); margin: 0; padding: var(--s4) var(--s4) var(--s3); background: var(--white); border: 1px solid var(--of-border); border-top: 4px solid var(--of-border-strong); }
.v-verwaltung .vw-rollenkarte.is-aktuell { background: var(--of-sky-tint); border-top-color: var(--of-sky); }
.v-verwaltung .vw-rollenkarte__titel { font-size: var(--fs-base); margin: 0; }
.v-verwaltung .vw-rollenkarte__text { flex: 1; margin: 0; font-size: var(--fs-sm); color: var(--of-text-2); }
.v-verwaltung .vw-rollenkarte__fakten { margin: 0; font-size: var(--fs-xs); color: var(--of-muted); }
.v-verwaltung .vw-rollenkarte__aktiv { display: flex; align-items: center; gap: 6px; min-height: 38px; margin: 0; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--of-navy); }
.v-verwaltung .vw-rollenkarte__wechsel { align-self: flex-start; min-height: 38px; font-size: var(--fs-sm); font-weight: var(--fw-bold); text-align: left; }
.v-verwaltung .vw-rollenkarte__wechsel .icon { width: 20px; height: 20px; flex: 0 0 20px; }

.v-verwaltung .vw-konto { display: inline-flex; align-items: center; gap: 12px; }
.v-verwaltung .vw-konto__kreis {
  display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
  background: var(--of-sky-tint-2); color: var(--of-navy); font-size: var(--fs-xs); font-weight: var(--fw-bold);
}
.v-verwaltung .vw-konto__kreis--gelb { background: var(--eko-gelb-tint); color: var(--warn-text); }
.v-verwaltung .vw-konto__kreis--beige { background: var(--of-beige); color: var(--of-text); }
.v-verwaltung .vw-konto__kreis--rot { background: var(--eko-rot-tint); color: var(--eko-rot); }
.v-verwaltung .vw-konto__name { display: flex; flex-direction: column; font-weight: var(--fw-bold); }
.v-verwaltung .vw-konto__hinweis { font-size: var(--fs-xs); font-weight: var(--fw-regular); color: var(--of-muted); }
.v-verwaltung .vw-kontotabelle tr.is-inaktiv .vw-konto__name, .v-verwaltung .vw-kontotabelle tr.is-inaktiv td { color: var(--of-muted); }
.v-verwaltung .vw-kontotabelle tr.is-inaktiv .vw-konto__kreis { filter: grayscale(1); }

.v-verwaltung .vw-idm { padding: var(--s6); background: var(--of-section); }
.v-verwaltung .vw-idm__punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.v-verwaltung .vw-idm__punkt { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s3); margin: 0; padding: var(--s4); background: var(--white); }
.v-verwaltung .vw-idm__icon { display: grid; place-items: center; width: 44px; height: 44px; background: var(--of-navy); color: var(--white); }
.v-verwaltung .vw-idm__punkt h3 { font-size: var(--fs-base); margin: 2px 0 4px; }
.v-verwaltung .vw-idm__punkt p { margin: 0; font-size: var(--fs-sm); color: var(--of-text-2); }
.v-verwaltung .vw-gruppentabelle { background: var(--white); }
.v-verwaltung .vw-gruppentabelle caption { padding: 0 0 var(--s2); }
.v-verwaltung .vw-idm__fuss { display: flex; gap: 8px; margin: var(--s4) 0 0; font-size: var(--fs-sm); color: var(--of-text-2); }
.v-verwaltung .vw-idm__fuss .icon { color: var(--of-navy); width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.v-verwaltung .vw-idm__fuss + .vw-idm__fuss { margin-top: var(--s2); }

/* ---------- Digitale Rechte ---------- */
.v-verwaltung .vw-liz { display: flex; flex-direction: column; gap: 6px; min-width: 120px; }
.v-verwaltung .vw-liz__text { font-size: var(--fs-sm); white-space: nowrap; }
.v-verwaltung .vw-liz__meta { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: var(--fw-regular); color: var(--of-muted); }
.v-verwaltung .vw-meter { display: block; position: relative; width: 100%; max-width: 160px; height: 8px; background: var(--of-sky-tint-2); }
.v-verwaltung .vw-meter > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--of-navy); }
.v-verwaltung .vw-meter--gross { max-width: none; height: 14px; }
.v-verwaltung .vw-janein { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); white-space: nowrap; color: var(--of-text-2); }
.v-verwaltung .vw-janein .icon { width: 18px; height: 18px; }
.v-verwaltung .vw-janein--ja { color: var(--ok); font-weight: var(--fw-bold); }
.v-verwaltung .vw-liztabelle tbody th[scope='row'] a { font-weight: var(--fw-bold); }
.v-verwaltung .vw-recht { padding: var(--s5); border: 1px solid var(--of-border); border-top: 4px solid var(--of-navy); }
.v-verwaltung .vw-recht__titel { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s3); font-size: var(--fs-lg); }
.v-verwaltung .vw-recht__titel .icon { flex: 0 0 auto; }
.v-verwaltung .vw-recht__titel > span { min-width: 0; }
.v-verwaltung .vw-recht__liste { margin: 0; padding-left: 1.2em; font-size: var(--fs-sm); color: var(--of-text-2); max-width: 90ch; }
.v-verwaltung .vw-recht__liste li + li { margin-top: 6px; }

/* ---------- Statistik ---------- */
.v-verwaltung .vw-statkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s5); margin-bottom: var(--s4); }
.v-verwaltung .vw-statkopf__feld { flex: 0 1 380px; }
.v-verwaltung .vw-statkopf__fest, .v-verwaltung .vw-statkopf__zeit { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-sm); color: var(--of-text-2); }
.v-verwaltung .vw-statkopf__fest .icon, .v-verwaltung .vw-statkopf__zeit .icon { color: var(--of-navy); width: 20px; height: 20px; }
.v-verwaltung .vw-diagramme { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.v-verwaltung .vw-diagramm { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; margin: 0; padding: var(--s5); background: var(--white); border: 1px solid var(--of-border); }
.v-verwaltung .vw-diagramm--breit { grid-column: 1 / -1; }
.v-verwaltung .vw-diagramm__kopf { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.v-verwaltung .vw-diagramm__titelblock { flex: 1 1 220px; min-width: 0; }
.v-verwaltung .vw-diagramm__titel { margin: 0 0 6px; font-size: var(--fs-lg); }
.v-verwaltung .vw-diagramm__unter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: var(--fs-sm); color: var(--of-text-2); }
.v-verwaltung .vw-quelle { padding: 2px 7px; font-size: var(--fs-xxs); font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; background: var(--ok-tint); color: var(--ok); }
.v-verwaltung .vw-quelle--beispiel { background: var(--warn-tint); color: var(--warn-text); }
.v-verwaltung .vw-diagramm__inhalt { flex: 1; min-width: 0; }
.v-verwaltung .vw-diagramm__quelle { padding-top: var(--s3); border-top: 1px solid var(--of-border); font-size: var(--fs-xs); color: var(--of-muted); }

/* Waagerechte Balken: Name, Balken, Wert je Zeile */
.v-verwaltung .vw-balken { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.v-verwaltung .vw-balken__zeile { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr) 3.4em; align-items: center; gap: var(--s3); margin: 0; }
.v-verwaltung .vw-balken__label { min-width: 0; font-size: var(--fs-sm); line-height: 1.25; overflow-wrap: anywhere; }
.v-verwaltung .vw-balken__label a { color: var(--of-text); text-decoration-color: var(--of-border-strong); }
.v-verwaltung .vw-balken__label a:hover { color: var(--of-navy); text-decoration-color: currentColor; }
.v-verwaltung .vw-balken__zusatz { display: block; font-size: var(--fs-xxs); color: var(--of-muted); }
.v-verwaltung .vw-balken__spur { position: relative; display: block; height: 14px; background: var(--of-section); }
.v-verwaltung .vw-balken__fuellung { position: absolute; left: 0; top: 0; bottom: 0; background: var(--of-navy); transition: background-color .15s var(--ease); }
.v-verwaltung .vw-balken__zeile:hover .vw-balken__fuellung { background: var(--of-navy-hover); }
.v-verwaltung .vw-balken__wert { font-size: var(--fs-sm); font-weight: var(--fw-bold); text-align: right; font-variant-numeric: tabular-nums; }
.v-verwaltung .vw-balken--emphase .vw-balken__fuellung { background: var(--of-border-strong); }
.v-verwaltung .vw-balken--emphase .is-hervor .vw-balken__fuellung { background: var(--of-navy); }
.v-verwaltung .vw-balken--emphase .is-hervor .vw-balken__label { font-weight: var(--fw-bold); }

/* Säulen (Monate) */
.v-verwaltung .vw-saeulen { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; padding-top: 30px; }
.v-verwaltung .vw-saeulen__achse { position: relative; height: 220px; min-width: 2.4em; font-size: var(--fs-xxs); color: var(--of-muted); font-variant-numeric: tabular-nums; }
.v-verwaltung .vw-saeulen__achse span { position: absolute; right: 0; transform: translateY(50%); line-height: 1; }
.v-verwaltung .vw-saeulen__flaeche { position: relative; min-width: 0; }
.v-verwaltung .vw-saeulen__gitter { position: absolute; left: 0; right: 0; top: 0; height: 220px; pointer-events: none; }
.v-verwaltung .vw-saeulen__gitter span { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--of-section); }
.v-verwaltung .vw-saeulen__gitter span:first-child { border-top-color: var(--of-border-strong); }
.v-verwaltung .vw-saeulen__liste { position: relative; display: flex; list-style: none; margin: 0; padding: 0; }
.v-verwaltung .vw-saeule { flex: 1 1 0; min-width: 0; margin: 0; display: flex; flex-direction: column; }
.v-verwaltung .vw-saeule__ziel { display: flex; flex-direction: column; min-width: 0; cursor: default; outline-offset: -3px; }
.v-verwaltung .vw-saeule__feld { display: flex; align-items: flex-end; justify-content: center; height: 220px; }
.v-verwaltung .vw-saeule__balken { position: relative; width: min(24px, 64%); min-height: 1px; background: var(--of-navy); transition: background-color .15s var(--ease); }
.v-verwaltung .vw-saeule:hover .vw-saeule__balken, .v-verwaltung .vw-saeule__ziel:focus .vw-saeule__balken { background: var(--of-navy-hover); }
.v-verwaltung .vw-saeule__wert { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--of-text); white-space: nowrap; }
.v-verwaltung .vw-saeule__monat { display: block; height: 26px; padding-top: 7px; text-align: center; font-size: var(--fs-xxs); color: var(--of-text-2); }
.v-verwaltung .vw-saeule__tipp {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 3;
  display: none; flex-direction: column; gap: 2px; padding: 8px 10px; white-space: nowrap; pointer-events: none;
  background: var(--of-navy); color: var(--white); font-size: var(--fs-xs); box-shadow: var(--shadow-2);
}
.v-verwaltung .vw-saeule__tipp strong { font-size: var(--fs-sm); }
.v-verwaltung .vw-saeule.is-start .vw-saeule__tipp { left: 0; transform: none; }
.v-verwaltung .vw-saeule.is-ende .vw-saeule__tipp { left: auto; right: 0; transform: none; }
.v-verwaltung .vw-saeule:hover .vw-saeule__tipp, .v-verwaltung .vw-saeule__ziel:focus .vw-saeule__tipp { display: flex; }
.v-verwaltung .vw-saeule:hover .vw-saeule__wert, .v-verwaltung .vw-saeule__ziel:focus .vw-saeule__wert { visibility: hidden; }
.v-verwaltung .vw-saeule__ziel:focus-visible { outline: 3px solid var(--focus); box-shadow: none; }

.v-verwaltung .vw-auslastung { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--of-border); }
.v-verwaltung .vw-keine-daten { display: flex; align-items: center; gap: 8px; margin: 0; padding: var(--s4); background: var(--of-section); font-size: var(--fs-sm); color: var(--of-text-2); }
.v-verwaltung .vw-keine-daten .icon { color: var(--of-navy); width: 20px; height: 20px; }
.v-verwaltung .vw-auslastung__text { margin: 0 0 8px; font-size: var(--fs-sm); }
.v-verwaltung .vw-datentabelle tbody th[scope='row'] { font-weight: var(--fw-medium); }

/* ---------- Dialoge (liegen außerhalb von <main>) ---------- */
.dlg .vw-dlg-medium { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); background: var(--of-section); }
.dlg .vw-dlg-info { display: flex; gap: 8px; margin: var(--s4) 0 0; font-size: var(--fs-sm); color: var(--of-text-2); }
.dlg .vw-dlg-info .icon { flex: 0 0 20px; width: 20px; height: 20px; color: var(--of-navy); }
.dlg .vw-optional { font-weight: var(--fw-regular); color: var(--of-muted); }
.dlg .vw-dlg-einrueckung { margin: 4px 0 0 32px; }
.dlg .vw-dlg-gruppe legend { font-size: var(--fs-sm); }
.dlg .vw-zugriffwahl { display: grid; gap: 8px; }
.dlg .vw-zugriffwahl__option { padding: 12px 14px; border: 1.5px solid var(--of-border); }
.dlg .vw-zugriffwahl__option:has(input:checked) { border-color: var(--of-navy); background: var(--of-sky-tint); }
.dlg .vw-zugriffwahl__text { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--of-text-2); }
.dlg .vw-rollenwahl { display: grid; gap: 0 var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.dlg code { font-size: .9em; background: var(--of-section); padding: 1px 5px; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 959px) {
  .v-verwaltung .vw-matrix-tipp { display: flex; }
  .v-verwaltung .vw-katnav__liste { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); border: 0; }
  .v-verwaltung .vw-katnav__liste li { border: 1px solid var(--of-border); }
  .v-verwaltung .vw-katnav__link { min-height: 44px; padding: 8px 10px 8px 12px; }
  .v-verwaltung .vw-katnav__info p { margin-bottom: var(--s2); }
}

/* Tabellen als Karten-Zeilen */
@media (max-width: 760px) {
  .v-verwaltung .vw-stapel { font-size: var(--fs-sm); }
  .v-verwaltung .vw-stapel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .v-verwaltung .vw-stapel, .v-verwaltung .vw-stapel tbody, .v-verwaltung .vw-stapel tfoot { display: block; width: 100%; }
  .v-verwaltung .vw-stapel caption { display: block; }
  .v-verwaltung .vw-stapel tr { display: block; padding: var(--s3) 0; border-bottom: 1px solid var(--of-border); }
  .v-verwaltung .vw-stapel tbody tr:hover { background: transparent; }
  .v-verwaltung .vw-stapel th, .v-verwaltung .vw-stapel td { display: flex; align-items: baseline; gap: var(--s3); min-width: 0; padding: 3px 0; border: 0; text-align: left; }
  .v-verwaltung .vw-stapel td.num, .v-verwaltung .vw-stapel th.num { text-align: left; }
  .v-verwaltung .vw-stapel [data-label]::before {
    content: attr(data-label); flex: 0 0 7.6em; padding-top: 2px;
    font-size: var(--fs-xxs); font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--of-muted);
  }
  .v-verwaltung .vw-stapel .vw-stapel__kopf { display: block; padding-bottom: 6px; font-size: var(--fs-base); }
  .v-verwaltung .vw-stapel .vw-aktionen { flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 8px; white-space: normal; text-align: left; width: auto; }
  .v-verwaltung .vw-stapel .vw-aktionen::before { display: none; }
  .v-verwaltung .vw-stapel .vw-aktionen .btn + .btn { margin-left: 0; }
  .v-verwaltung .vw-stapel tfoot tr { border-bottom: 0; border-top: 2px solid var(--of-navy); }
  .v-verwaltung .vw-stapel tfoot th, .v-verwaltung .vw-stapel tfoot td { border: 0; }
  .v-verwaltung .vw-stapel tfoot td:empty { display: none; }
  .v-verwaltung .vw-kattabelle .vw-kattabelle__nr { display: none; }
  .v-verwaltung .vw-kattabelle__name { min-width: 0; }
  .v-verwaltung .vw-liz { min-width: 0; flex: 1; }
  .v-verwaltung .vw-swtabelle .vw-nur-breit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .v-verwaltung .vw-swtabelle th, .v-verwaltung .vw-swtabelle td { padding-left: 6px; padding-right: 6px; }
  .v-verwaltung .vw-idm { padding: var(--s4); }
  .v-verwaltung .vw-matrix { min-width: 780px; }
  .v-verwaltung .vw-matrix--bearbeiten { min-width: 900px; }
  .v-verwaltung .vw-matrix .vw-stufe { font-size: var(--fs-xs); gap: 5px; }
  .v-verwaltung .vw-matrix .vw-stufe .icon { width: 17px; height: 17px; }
  .v-verwaltung .vw-matrix .vw-matrix__ecke { width: 130px; }
  .v-verwaltung .vw-matrix th[scope='row'], .v-verwaltung .vw-matrix .vw-matrix__ecke { min-width: 0; font-size: var(--fs-xs); }
  .v-verwaltung .vw-matrix thead th { padding-left: 8px; padding-right: 8px; letter-spacing: .03em; }
  .v-verwaltung .vw-erklaerung__tabelle th[scope='row'], .v-verwaltung .vw-erklaerung__tabelle td:last-child { width: auto; }
}

@media (max-width: 600px) {
  .v-verwaltung .vw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .v-verwaltung .vw-kpis .kpi { padding: var(--s4); }
  .v-verwaltung .kpi__value { font-size: 28px; }
  .v-verwaltung .vw-schnell__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .v-verwaltung .vw-schnell .tile { width: 100%; height: 100%; padding: 10px 12px; font-size: var(--fs-sm); }
  .v-verwaltung .vw-seitenspalte { padding: var(--s4); }
  .v-verwaltung .vw-aufgabe { grid-template-columns: 36px minmax(0, 1fr); gap: var(--s3); }
  .v-verwaltung .vw-aufgabe__icon { width: 36px; height: 36px; }
  .v-verwaltung .vw-aufgabe__icon .icon { width: 20px; height: 20px; }
  .v-verwaltung .vw-diagramm { padding: var(--s4); }
  .v-verwaltung .vw-segment__knopf { min-height: 40px; padding: 6px 10px; }
}

/* Sehr schmal (bis 400 px): Schnellzugriffe einspaltig, damit lange Wörter nicht mitten im Wort brechen */
@media (max-width: 400px) {
  .v-verwaltung .vw-schnell__liste { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .v-verwaltung .vw-schnell .tile { min-height: 44px; }
}

@media (max-width: 520px) {
  .v-verwaltung .vw-swtabelle thead th { font-size: var(--fs-xxs); letter-spacing: .02em; }
  .v-verwaltung .vw-swtabelle .vw-aktionen .btn { padding-left: 10px; padding-right: 10px; }
  .v-verwaltung .vw-swtabelle .vw-sortknopf { gap: 3px; }
  .v-verwaltung .vw-swtabelle .vw-sortknopf .icon { width: 14px; height: 14px; }
  .v-verwaltung .vw-swtabelle tbody th[scope='row'] { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
  .v-verwaltung .vw-balken__zeile { grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--s3); }
  .v-verwaltung .vw-balken__spur { grid-column: 1 / -1; grid-row: 2; }
  .v-verwaltung .vw-saeulen__achse, .v-verwaltung .vw-saeulen__gitter, .v-verwaltung .vw-saeule__feld { height: 180px; }
  .v-verwaltung .vw-saeule:nth-child(even) .vw-saeule__monat { visibility: hidden; }
}
