/* ODH-Zentrale: gemeinsame Stile für Gesamtsuche, Startseite, Projekt-Verlauf, Plantafel-Vorschau.
   Hell und dunkel (Filament setzt .dark). Präfix oz-, damit nichts mit Filament kollidiert. */
.oz {
    --oz-text: #1c1917;
    --oz-leise: #78716c;
    --oz-rand: rgb(0 0 0 / 0.1);
    --oz-flaeche: #ffffff;
    --oz-flaeche-2: #fafaf9;
    --oz-akzent: #f39200;
    --oz-akzent-weich: rgb(243 146 0 / 0.1);
    --oz-link: #b45309;
    --oz-gut: #15803d;
    --oz-warn: #b45309;
    --oz-schlecht: #b91c1c;
    --oz-schatten: 0 1px 2px rgb(0 0 0 / 0.06), 0 6px 20px rgb(0 0 0 / 0.06);
    color: var(--oz-text);
}
.dark .oz {
    --oz-text: #f5f5f4;
    --oz-leise: #a8a29e;
    --oz-rand: rgb(255 255 255 / 0.12);
    --oz-flaeche: rgb(255 255 255 / 0.04);
    --oz-flaeche-2: rgb(255 255 255 / 0.03);
    --oz-akzent-weich: rgb(243 146 0 / 0.14);
    --oz-link: #fbbf24;
    --oz-gut: #4ade80;
    --oz-warn: #fbbf24;
    --oz-schlecht: #f87171;
    --oz-schatten: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 20px rgb(0 0 0 / 0.25);
}
.oz a { color: var(--oz-link); text-decoration: none; }
.oz a:hover { text-decoration: underline; }
.oz-leise { color: var(--oz-leise); }

/* ---------- Gesamtsuche ---------- */
.oz-suchfeld { display: flex; align-items: center; gap: 0.6rem; width: 100%; background: var(--oz-flaeche);
    border: 1px solid var(--oz-rand); border-radius: 999px; padding: 0.55rem 0.6rem 0.55rem 1.2rem; box-shadow: var(--oz-schatten); }
.dark .oz-suchfeld { background: rgb(255 255 255 / 0.06); }
.oz-suchfeld:focus-within { border-color: var(--oz-akzent); box-shadow: 0 0 0 3px var(--oz-akzent-weich), var(--oz-schatten); }
.oz-suchfeld svg { width: 1.4rem; height: 1.4rem; color: var(--oz-leise); flex: none; }
.oz-suchfeld input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.2rem; padding: 0.2rem 0; outline: none; color: inherit; }
.oz-suchfeld input::placeholder { color: var(--oz-leise); }
.oz-suchfeld input:focus { box-shadow: none; }
.oz-such-hinweis { margin: 0.5rem 0 0 1.2rem; font-size: 0.85rem; }

.oz-treffer { display: grid; gap: 1rem; margin-top: 1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.oz-kategorie { border: 1px solid var(--oz-rand); border-radius: 0.75rem; background: var(--oz-flaeche); overflow: hidden; }
.oz-kategorie h3 { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 0.55rem 0.9rem;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--oz-leise); background: var(--oz-flaeche-2);
    border-bottom: 1px solid var(--oz-rand); }
.oz-kategorie ul { list-style: none; margin: 0; padding: 0; }
.oz-kategorie li + li { border-top: 1px solid var(--oz-rand); }
.oz-kategorie li a { display: block; padding: 0.55rem 0.9rem; color: inherit; }
.oz-kategorie li a:hover { background: var(--oz-akzent-weich); text-decoration: none; }
.oz-kategorie .oz-titel { font-weight: 600; }
.oz-kategorie .oz-details { display: flex; flex-wrap: wrap; gap: 0 0.9rem; font-size: 0.82rem; color: var(--oz-leise); margin-top: 0.1rem; }
.oz-kategorie .oz-fuss { padding: 0.45rem 0.9rem; font-size: 0.85rem; border-top: 1px solid var(--oz-rand); background: var(--oz-flaeche-2); }
.oz-leer { margin-top: 1rem; padding: 1rem; text-align: center; color: var(--oz-leise); }

/* ---------- Formularteile in eigenen Ansichten ---------- */
.oz-formular { display: grid; gap: 0.5rem; margin-bottom: 0.75rem; }
.oz-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.oz-eingabe { width: 100%; border: 1px solid var(--oz-rand); border-radius: 0.5rem; background: var(--oz-flaeche); color: inherit;
    padding: 0.45rem 0.7rem; font-size: 0.9rem; }
.dark .oz-eingabe { background: rgb(255 255 255 / 0.05); }
.oz-eingabe:focus { outline: none; border-color: var(--oz-akzent); box-shadow: 0 0 0 3px var(--oz-akzent-weich); }
.oz-eingabe.oz-klein { width: auto; padding: 0.3rem 0.5rem; font-size: 0.85rem; }
.oz-hinweis { font-size: 0.8rem; }
.oz-fehler { color: var(--oz-schlecht); font-size: 0.85rem; }
.oz-textknopf { margin-top: 0.5rem; font-size: 0.85rem; color: var(--oz-link); background: none; border: 0; cursor: pointer; text-decoration: underline; }

/* ---------- Verlauf (Kommentare mit Datum am Projekt) ---------- */
.oz-verlauf { list-style: none; margin: 0; padding: 0; }
.oz-verlauf li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--oz-rand); }
.oz-verlauf li:last-child { border-bottom: 0; }
.oz-verlauf time { font-variant-numeric: tabular-nums; color: var(--oz-leise); font-size: 0.85rem; }
.oz-verlauf .oz-wer { font-size: 0.78rem; color: var(--oz-leise); }
.oz-verlauf .oz-text { white-space: pre-line; }
.oz-verlauf .oz-art { display: inline-block; font-size: 0.72rem; padding: 0 0.4rem; border-radius: 999px; background: var(--oz-akzent-weich); margin-right: 0.35rem; }

/* ---------- Startseite: Kennzahlen, Diagramme, Listen ---------- */
.oz-zahlen { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.oz-zahl { border: 1px solid var(--oz-rand); border-radius: 0.75rem; padding: 0.75rem 0.9rem; background: var(--oz-flaeche); }
.oz-zahl small { display: block; color: var(--oz-leise); font-size: 0.78rem; }
.oz-zahl strong { display: block; font-size: 1.45rem; font-variant-numeric: tabular-nums; line-height: 1.3; }
.oz-zahl span { font-size: 0.78rem; color: var(--oz-leise); }
.oz-balken { display: grid; gap: 0.35rem; }
.oz-balken-zeile { display: grid; grid-template-columns: 11rem 1fr 3.5rem; gap: 0.6rem; align-items: center; font-size: 0.88rem; }
.oz-balken-zeile a { color: inherit; }
.oz-balken-spur { height: 0.8rem; border-radius: 999px; background: var(--oz-flaeche-2); border: 1px solid var(--oz-rand); overflow: hidden; }
.oz-balken-wert { height: 100%; background: var(--oz-akzent); border-radius: 999px; }
.oz-balken-zeile b { text-align: right; font-variant-numeric: tabular-nums; }
.oz-saeulen { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 11rem; }
.oz-saeule { display: grid; grid-template-rows: 1rem 1fr 1.1rem; height: 100%; text-align: center; font-size: 0.72rem; }
.oz-saeule:hover .oz-saeule-spur > div, .oz-saeule:focus .oz-saeule-spur > div { background: var(--oz-link); }
.oz-saeule-wert { color: var(--oz-leise); font-variant-numeric: tabular-nums; white-space: nowrap; }
.oz-saeule-spur { position: relative; border-bottom: 1px solid var(--oz-rand); }
.oz-saeule-spur > div { position: absolute; left: 12%; right: 12%; bottom: 0; background: var(--oz-akzent); border-radius: 4px 4px 0 0; }
.oz-saeule-name { color: var(--oz-leise); white-space: nowrap; overflow: hidden; }
/* ---------- Plantafel-Vorschau ---------- */
.oz-mini { overflow-x: auto; }
.oz-mini-raster { display: grid; grid-template-columns: minmax(9rem, 16rem) minmax(36rem, 1fr); row-gap: 3px; min-width: 46rem; }
.oz-mini-tage { display: grid; grid-template-columns: repeat(var(--tage), 1fr); font-size: 0.68rem; line-height: 1.15; text-align: center; color: var(--oz-leise); border-bottom: 1px solid var(--oz-rand); padding-bottom: 2px; }
.oz-mini-tage span.frei { background: var(--oz-flaeche-2); }
.oz-mini-tage span.heute { color: var(--oz-akzent); font-weight: 700; }
.oz-mini-titel { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 3px 8px 3px 0; }
.oz-mini-spur { position: relative; height: 1.5rem; border-bottom: 1px solid var(--oz-rand); }
.oz-mini-frei { position: absolute; top: 0; bottom: 0; background: var(--oz-flaeche-2); }
.oz-mini-balken { position: absolute; top: 3px; height: calc(100% - 6px); border-radius: 4px; color: #fff !important; font-size: 0.7rem; line-height: 1.1rem;
    padding: 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; }
.oz-mini-balken.geplant { background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / 0.3) 0 5px, transparent 5px 10px) !important; outline: 1px dashed rgb(0 0 0 / 0.4); }
.oz-liste { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.oz-liste li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.35rem 0; border-bottom: 1px solid var(--oz-rand); }
.oz-liste li:last-child { border-bottom: 0; }
.oz-marke { display: inline-block; font-size: 0.72rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--oz-akzent-weich); color: var(--oz-text); }
@media (max-width: 640px) { .oz-balken-zeile { grid-template-columns: 7rem 1fr 3rem; } .oz-verlauf li { grid-template-columns: 1fr; gap: 0.1rem; } }
/* ---------- Schnellzugriff in der Kopfzeile, Footer ---------- */
.oz-schnell { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-inline-end: 0.5rem; }
/* Filament 5 hat keine Klasse für den Knopftext: auf schmalen Bildschirmen nur Symbole, eine Zeile (Paul, 30.09.2026: Mobilansicht verzerrt) */
@media (max-width: 1100px) {
  .oz-schnell { flex-wrap: nowrap; gap: 0.25rem; margin-inline-end: 0.25rem; }
  .oz-schnell .fi-btn:not(:where(.fi-modal .fi-btn)) { font-size: 0; gap: 0; padding: 0.4rem; min-width: 0; }
  .oz-schnell .fi-btn:not(:where(.fi-modal .fi-btn)) .fi-icon, .oz-schnell .fi-btn:not(:where(.fi-modal .fi-btn)) svg { font-size: 1rem; width: 1.25rem; height: 1.25rem; flex: none; }
}
.oz-fuss { text-align: center; padding: 0.75rem 0 1rem; font-size: 0.8rem; }
.oz-fuss a { color: var(--oz-leise, #6b7280); text-decoration: underline; }
/* ---------- Aktuelle Projekte, Abwesenheiten ---------- */
.oz-phasen { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.9rem; }
.oz-phase { border: 1px solid var(--oz-rand); border-top: 4px solid var(--oz-akzent); border-radius: 8px; padding: 0.6rem 0.7rem; background: var(--oz-flaeche-2); }
.oz-phase h4 { margin: 0 0 0.4rem; font-size: 0.85rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.oz-phase-montage { border-top-color: #16a34a; }
.oz-phase-werkstatt { border-top-color: #f39200; }
.oz-phase-verzinkung { border-top-color: #64748b; }
.oz-phase-werkplanung { border-top-color: #2563eb; }
.oz-projektchip { display: block; padding: 0.35rem 0.5rem; margin-bottom: 0.3rem; border-radius: 6px; background: var(--oz-flaeche, #fff); border: 1px solid var(--oz-rand); text-decoration: none !important; color: inherit; line-height: 1.25; }
.oz-projektchip:hover { border-color: var(--oz-akzent); box-shadow: 0 0 0 2px var(--oz-akzent-weich); }
.oz-projektchip strong { display: block; font-size: 0.85rem; }
.oz-projektchip small { color: var(--oz-leise); font-size: 0.75rem; }
.oz-teil { margin: 0.4rem 0 0.15rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--oz-leise); }
/* ---------- Projektseite: Nummer und Name bleiben beim Scrollen sichtbar ---------- */
.oz-projektseite .fi-header { position: sticky; top: 4rem; z-index: 20; padding: 0.5rem 0; background: var(--color-gray-50, #fafafa); border-bottom: 1px solid rgb(0 0 0 / 0.08); }
.dark .oz-projektseite .fi-header { background: var(--color-gray-950, #09090b); border-bottom-color: rgb(255 255 255 / 0.1); }
.oz-projektseite .fi-header-heading { font-size: 1.25rem; }
/* ---------- Finanzübersicht am Projekt ---------- */
.oz-fin-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap: 1.25rem; }
.oz-tabelle { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.oz-tabelle td { padding: 0.3rem 0.4rem; border-bottom: 1px solid var(--oz-rand); vertical-align: top; }
.oz-tabelle td.r { text-align: right; white-space: nowrap; }
.oz-tabelle tr.summe td { font-weight: 700; border-top: 2px solid var(--oz-rand); }
.oz-knopf { display: inline-block; padding: 0.25rem 0.6rem; border: 1px solid var(--oz-rand); border-radius: 6px; font-size: 0.8rem; text-decoration: none !important; color: inherit; }
.oz-knopf:hover { border-color: var(--oz-akzent); background: var(--oz-akzent-weich); }
.oz-projektseite .fi-breadcrumbs { display: none; }
.oz-projektseite .fi-header-subheading { margin-top: 0; }
/* Projektseite auf dem Handy: Kopf nicht festhalten (er verdeckte sonst Inhalt unter der Kopfzeile), nichts über den Rand */
@media (max-width: 768px) {
  .oz-projektseite .fi-header { position: static; }
  .oz-projektseite .fi-main, .oz-projektseite .fi-page { min-width: 0; max-width: 100%; }
  .oz-projektseite .oz-tabelle { table-layout: auto; word-break: break-word; }
}

/* Seitenleiste ein-/ausklappen: Knopf gut sichtbar (Paul, 30.09.2026) */
.fi-topbar-open-collapse-sidebar-btn, .fi-topbar-close-collapse-sidebar-btn { border: 1px solid rgb(243 146 0 / .6); background: rgb(243 146 0 / .12); }
.fi-topbar-open-collapse-sidebar-btn:hover, .fi-topbar-close-collapse-sidebar-btn:hover { background: rgb(243 146 0 / .3); }

/* Eingabe- und Suchfelder deutlicher abgesetzt (Paul, 01.10.2026) */
.fi-input-wrp { background: #fff; box-shadow: 0 0 0 1px #6b7280, 0 1px 2px rgb(0 0 0 / .06) !important; }
.fi-input-wrp:hover { box-shadow: 0 0 0 1px #374151, 0 1px 2px rgb(0 0 0 / .08) !important; }
.fi-input-wrp:focus-within { box-shadow: 0 0 0 2px #f39200 !important; }
.fi-input-wrp.fi-disabled, .fi-input-wrp:has(:disabled) { background: #f3f4f6; box-shadow: 0 0 0 1px #d1d5db !important; }
.dark .fi-input-wrp { background: rgb(255 255 255 / .06); box-shadow: 0 0 0 1px #9ca3af !important; }
.dark .fi-input-wrp:hover { box-shadow: 0 0 0 1px #d1d5db !important; }
.dark .fi-input-wrp:focus-within { box-shadow: 0 0 0 2px #f39200 !important; }
.fi-fo-checkbox-list .fi-checkbox-input, .fi-checkbox-input { border-color: #6b7280; }

/* Tabellen: Spaltenbreite begrenzt, Umbruch statt Überbreite; Spaltenränder lassen sich ziehen (public/zentrale/tabellen.js) */
/* Wörter brechen nur, wenn sie allein nicht in die Spalte passen (09.10.2026); „anywhere“ zerlegte Dateinamen auf dem Handy in Einzelbuchstaben.
   Zu breite Tabellen scrollen in sich, Überschriften bleiben einzeilig und jede Spalte behält eine lesbare Mindestbreite. */
.fi-ta-table td { overflow-wrap: break-word; }
.fi-ta-table th { white-space: nowrap; min-width: 4.5rem; }
.fi-ta-content { overflow-x: auto; }
.fi-ta-table:not([data-breiten]) td .fi-ta-text, .fi-ta-table:not([data-breiten]) td > .fi-ta-col > * { max-width: 32rem; }
.fi-ta-table[data-breiten] { table-layout: fixed; }
.fi-ta-table[data-breiten] th, .fi-ta-table[data-breiten] td { overflow: hidden; text-overflow: ellipsis; }
.fi-ta-table th { position: relative; }
.oz-griff { position: absolute; top: 0; right: 0; bottom: 0; width: 8px; cursor: col-resize; user-select: none; touch-action: none; }
.oz-griff::after { content: ""; position: absolute; top: 25%; bottom: 25%; right: 3px; width: 2px; background: transparent; }
.fi-ta-table th:hover .oz-griff::after, .oz-griff.zieht::after { background: #f39200; }

/* Zurück-Knopf und Favoriten-Stern in der Kopfzeile (02.10.2026) */
.oz-kopfnav-btn { border: 1px solid rgba(128,128,128,.35); background: transparent; color: inherit; border-radius: 6px; min-width: 2.25rem; height: 2.25rem; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.oz-kopfnav-btn:hover { background: rgba(128,128,128,.15); }
.oz-kopfnav-btn.an { color: #f39200; border-color: #f39200; }

/* ---------- Kompakter und aufgeräumter (02.10.2026) ---------- */
/* Kleinere Abstände in Karten, Formularen und Dashboards */
.fi-sc-has-gap { gap: 0.75rem !important; }
.fi-section-content { padding: 0.75rem 1rem !important; }
.fi-section-header { padding: 0.6rem 1rem !important; }
.fi-main.fi-width-7xl { max-width: 92rem; }
.fi-fo-field { row-gap: 0.25rem; }
.fi-page-main { row-gap: 1rem; }

/* Karten nebeneinander: gleich hoch, gleiche Kante (Formulare) */
.fi-sc-has-gap > .fi-section, .fi-sc-has-gap > .fi-grid-col > .fi-section { height: 100%; }

/* Dashboards: zwei Spalten ohne Lücken (Karten rutschen nach oben), breite Karten über beide Spalten */
@media (min-width: 1024px) {
  .fi-grid:has(> .fi-wi-widget), .fi-grid:has(> .fi-loading-section) { display: block !important; column-count: 2; column-gap: 0.75rem; }
  .fi-grid > .fi-wi-widget, .fi-grid > .fi-loading-section { display: block; width: 100%; break-inside: avoid; margin: 0 0 0.75rem; grid-column: auto !important; }
  .fi-grid > .fi-wi-widget[style*="--col-span-lg: 1 / -1"], .fi-grid > .fi-loading-section[style*="--col-span-lg: 1 / -1"] { column-span: all; }
  .fi-grid > .fi-wi-widget[style*="--col-span-lg: 1 / -1"]:not(:first-child), .fi-grid > .fi-loading-section[style*="--col-span-lg: 1 / -1"]:not(:first-child) { margin-top: 0.75rem; }
}
.fi-wi-widget .fi-section { margin: 0; }

/* Eingabefelder: kräftigerer Rand, dunklerer Text (mehr Kontrast) */
.fi-input-wrp { box-shadow: 0 0 0 1.5px #4b5563, 0 1px 2px rgb(0 0 0 / .08) !important; }
.fi-input-wrp:hover { box-shadow: 0 0 0 1.5px #1f2937, 0 1px 2px rgb(0 0 0 / .1) !important; }
.fi-input-wrp:focus-within { box-shadow: 0 0 0 2px #f39200 !important; }
.fi-input-wrp .fi-input, .fi-input-wrp .fi-select-input { color: #111827; font-weight: 500; }
.fi-input-wrp.fi-disabled, .fi-input-wrp:has(:disabled) { background: #eceff3; box-shadow: 0 0 0 1px #9ca3af !important; }
.dark .fi-input-wrp { box-shadow: 0 0 0 1.5px #d1d5db !important; }
.dark .fi-input-wrp .fi-input, .dark .fi-input-wrp .fi-select-input { color: #f9fafb; }
.fi-fo-field-label-content { font-weight: 600; }
.fi-checkbox-input, .fi-radio-input { border-color: #4b5563; }

/* ---------- Mobilansicht: nichts über den Bildschirmrand (Paul, 03.10.2026) ----------
   Die Spaltenbreiten der Balkenzeilen stehen teils inline; deshalb !important. */
@media (max-width: 768px) {
  html, body { overflow-x: clip; }
  .fi-main, .fi-page, .fi-page-main, .fi-section, .fi-section-content, .fi-wi-widget, .fi-grid > * { min-width: 0; max-width: 100%; }
  .oz, .oz > *, .oz-balken, .oz-balken-zeile > * { min-width: 0; }
  /* Balkenzeile: Name und Wert oben, Balken darunter über die volle Breite */
  .oz-balken-zeile, .oaw-person { grid-template-columns: minmax(0, 1fr) auto !important; row-gap: 0.15rem; }
  .oz-balken-zeile > :nth-child(1), .oaw-person > :nth-child(1) { grid-area: 1 / 1; overflow-wrap: anywhere; }
  .oz-balken-zeile > :nth-child(3), .oaw-person > :nth-child(3) { grid-area: 1 / 2; text-align: right; white-space: nowrap; }
  .oz-balken-zeile > :nth-child(2), .oaw-person > :nth-child(2) { grid-area: 2 / 1 / 3 / 3; }
  /* Kennzahlen, Diagramm-Gitter: eine Spalte, Mindestbreite nie größer als der Bildschirm */
  .oz-zahlen { grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr)); }
  .oa-gitter, .oa-diagramme, .oaw-gitter, .an-raster, .oz-phasen, .oz-fin-spalten { grid-template-columns: minmax(0, 1fr) !important; }
  .oz-zahl strong { font-size: 1.2rem; overflow-wrap: anywhere; }
  /* Grafiken und Tabellen passen sich an oder scrollen in sich */
  .fi-section svg:not(.fi-icon), .oz svg { max-width: 100%; height: auto; }
  .fi-section img { max-width: 100%; height: auto; }
  .fi-section-content table, .oz table { display: block; max-width: 100%; overflow-x: auto; }
  .fi-ta-content { overflow-x: auto; }
  /* Kopfzeile: Suche schrumpft, Schnellzugriffe bleiben in einer Zeile */
  .fi-topbar-ctn, .fi-topbar { min-width: 0; max-width: 100vw; }
  .fi-topbar { gap: 0.25rem; padding-inline: 0.5rem; }
  .fi-topbar-start, .fi-topbar-end { min-width: 0; gap: 0.25rem; flex-shrink: 1; }
  .fi-global-search { min-width: 0; width: 5.5rem; flex: 0 1 5.5rem; }
  .fi-global-search .fi-input-wrp, .fi-global-search input { min-width: 0; width: 100%; }
  .oz-schnell { margin-inline-end: 0; }
  .oz-kopfnav-btn { min-width: 2rem; height: 2rem; }
  /* Auswahlfelder: nie breiter als die Karte */
  .oz select, .fi-section select { max-width: 100%; }
  .oz label:has(> select) { flex-wrap: wrap; max-width: 100%; }
}

/* ---------- Dashboards gestalten (Administrator, 03.10.2026) ---------- */
.oz-dl-start { display: flex; justify-content: flex-end; margin: 0.5rem 0 0; }
.oz-dl-start button { font-size: 0.8rem; padding: 0.25rem 0.7rem; border: 1px solid rgba(128, 128, 128, .4); border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.oz-dl-start button:hover { border-color: #f39200; background: rgb(243 146 0 / .1); }
.oz-dl-leiste { position: sticky; top: 4rem; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin: 0.75rem 0; padding: 0.6rem 0.9rem; border: 2px solid #f39200; border-radius: 0.75rem; background: #fff7ea; color: #1c1917; font-size: 0.85rem; }
.dark .oz-dl-leiste { background: #2a2113; color: #f5f5f4; }
.oz-dl-knoepfe { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-inline-start: auto; }
.oz-dl-leiste button, .oz-dl-bar button { font: inherit; font-size: 0.8rem; padding: 0.25rem 0.65rem; border: 1px solid rgba(128, 128, 128, .5); border-radius: 0.5rem; background: #fff; color: #1c1917; cursor: pointer; }
.oz-dl-leiste button.primaer { background: #f39200; border-color: #f39200; color: #fff; font-weight: 600; }
.oz-dl-leiste button:hover, .oz-dl-bar button:hover { border-color: #f39200; }
.oz-dl-versteckt { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.oz-dl-versteckt[hidden] { display: none; }
.oz-dl-karte { position: relative; outline: 2px dashed rgb(243 146 0 / .7); outline-offset: 2px; border-radius: 0.75rem; }
.oz-dl-karte.zieht { opacity: .45; }
.oz-dl-karte.ziel { outline-style: solid; }
.oz-dl-karte.oz-dl-weg { opacity: .4; }
.oz-dl-bar { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; padding: 0.3rem 0.4rem; margin-bottom: 0.3rem; border-radius: 0.5rem; background: rgb(243 146 0 / .15); }
.oz-dl-bar .griff { cursor: grab; touch-action: none; padding-inline: 0.5rem; }
.oz-dl-bar .marke { font-size: 0.72rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #f39200; color: #fff; }
html .fi-grid > [data-oz-breite="voll"] { column-span: all !important; grid-column: 1 / -1 !important; }
html .fi-grid > [data-oz-breite="halb"] { column-span: none !important; grid-column: span 1 !important; }
.oz-dl-start { gap: 0.6rem; align-items: center; }
.oz-dl-start-link { font-size: 0.8rem; text-decoration: underline; color: inherit; opacity: .8; }

/* ---------- Abläufe und Prozesslandkarte (04.10.2026) ---------- */
.oz-ablauf-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.oz-ablauf-balken { display: inline-block; width: 12rem; max-width: 100%; height: 0.5rem; border-radius: 999px; background: var(--oz-rand); overflow: hidden; }
.oz-ablauf-balken > span { display: block; height: 100%; background: var(--oz-gut); }
.oz-ablauf-balken.klein { width: 100%; height: 0.3rem; }
.oz-ablauf { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.oz-ablauf-schritt { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; padding: 0.9rem 1rem; border: 1px solid var(--oz-rand); border-radius: 0.75rem; background: var(--oz-flaeche); }
.oz-ablauf-schritt.ist-aktuell { border-color: var(--oz-akzent); box-shadow: 0 0 0 1px var(--oz-akzent); }
.oz-ablauf-schritt.ist-fertig { opacity: 0.8; }
.oz-ablauf-nr { width: 2rem; height: 2rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 600; background: var(--oz-flaeche-2); border: 1px solid var(--oz-rand); }
.oz-ablauf-schritt.ist-fertig .oz-ablauf-nr { background: var(--oz-gut); color: #fff; border-color: transparent; }
.oz-ablauf-schritt.ist-aktuell .oz-ablauf-nr { background: var(--oz-akzent); color: #fff; border-color: transparent; }
.oz-ablauf-titel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.oz-ablauf-text { margin-top: 0.2rem; font-size: 0.9rem; }
.oz-ablauf-info { margin-top: 0.35rem; font-size: 0.85rem; padding: 0.3rem 0.5rem; border-radius: 0.4rem; background: var(--oz-flaeche-2); }
.oz-ablauf-warnung { margin-top: 0.35rem; font-size: 0.85rem; color: var(--oz-warn); }
.oz-ablauf-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.oz-ablauf-link { display: inline-block; font-size: 0.82rem; padding: 0.2rem 0.65rem; border: 1px solid var(--oz-rand); border-radius: 999px; }
.oz-ablauf-start { font-size: 0.82rem; padding: 0.2rem 0.65rem; border: 1px solid var(--oz-akzent); border-radius: 999px; background: var(--oz-akzent-weich); color: inherit; cursor: pointer; }
.oz-ablaeufe-karte { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.6rem; }
.oz-ablauf-knopf { display: flex; flex-direction: column; gap: 0.2rem; text-align: left; padding: 0.7rem 0.8rem; border: 1px solid var(--oz-rand); border-radius: 0.6rem; background: var(--oz-flaeche-2); color: inherit; cursor: pointer; font-size: 0.85rem; }
.oz-ablauf-knopf:hover { border-color: var(--oz-akzent); text-decoration: none !important; }
.oz-ablauf-knopf.ist-laufend { border-left: 4px solid var(--oz-akzent); }
.oz-ablauf-knopf-titel { font-weight: 600; }
.oz-ablaeufe-verweise { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; margin-top: 0.8rem; font-size: 0.85rem; }
.oz-landkarte-bereiche { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.oz-landkarte-bereiche a { font-size: 0.85rem; padding: 0.2rem 0.7rem; border: 1px solid var(--oz-rand); border-radius: 999px; }
.oz-landkarte-bereich h2 { font-size: 1.05rem; font-weight: 600; margin: 0.5rem 0; }
.oz-landkarte-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: 0.75rem; align-items: start; }
.oz-prozess { border: 1px solid var(--oz-rand); border-radius: 0.75rem; background: var(--oz-flaeche); padding: 0.8rem 1rem; }
.oz-prozess > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; list-style: none; }
.oz-prozess > summary::-webkit-details-marker { display: none; }
.oz-prozess-name { font-weight: 600; }
.oz-prozess-kurz { flex-basis: 100%; font-size: 0.88rem; color: var(--oz-leise); }
.oz-prozess-schritte { margin: 0.7rem 0 0.4rem 1.2rem; padding: 0; list-style: decimal; display: grid; gap: 0.35rem; font-size: 0.88rem; }
.oz-prozess-laeufe { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.oz-prozess-luecken { margin-top: 0.5rem; font-size: 0.85rem; }
.oz-prozess-luecken ul { margin: 0.2rem 0 0 1.1rem; list-style: disc; }
.oz .oz-marke.hell { color: #1c1917; }

/* Funktionsübersicht „Was kann die Zentrale?“ (10.11.2026) */
.oz-fu { display: grid; gap: 0.75rem; }
.oz-fu-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.oz-fu-leiste .oz-landkarte-bereiche a { min-height: 2.25rem; display: inline-flex; align-items: center; gap: 0.35rem; font-variant-numeric: tabular-nums; }
.oz-fu-suche { flex: 1 1 14rem; max-width: 24rem; min-height: 2.5rem; padding: 0.4rem 0.75rem; border: 1px solid var(--oz-rand); border-radius: 0.5rem; background: var(--oz-flaeche); color: var(--oz-text); font-size: 0.9rem; }
.oz-fu-nebenlink { margin-left: auto; font-size: 0.85rem; color: var(--oz-link); }
.oz-fu-link { color: var(--oz-link); text-decoration: underline; margin-left: 0.4rem; }
.oz-fu-treffer { font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.oz-fu-bereich { scroll-margin-top: 5rem; display: grid; gap: 0.6rem; margin-top: 0.75rem; }
.oz-fu-bereich > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; border-bottom: 2px solid var(--oz-akzent); padding-bottom: 0.3rem; }
.oz-fu-bereich h2 { font-size: 1.25rem; font-weight: 600; margin: 0; }
.oz-fu-kurz { flex: 1 1 18rem; font-size: 0.9rem; text-wrap: pretty; }
.oz-fu-menue { font-size: 0.8rem; white-space: nowrap; }
.oz-fu-ablaeufe { display: grid; gap: 0.5rem; }
.oz-fu-ablauf { border: 1px solid var(--oz-rand); border-radius: 0.75rem; background: var(--oz-flaeche); padding: 0.6rem 0.8rem 0.7rem; }
.oz-fu-ablauf > strong { display: block; font-size: 0.85rem; margin-bottom: 0.45rem; }
.oz-fu-kette { display: flex; flex-wrap: wrap; gap: 0.4rem 0; list-style: none; margin: 0; padding: 0; }
.oz-fu-kette li { display: flex; align-items: center; }
.oz-fu-kette li + li::before { content: "→"; color: var(--oz-leise); padding: 0 0.4rem; }
.oz-fu-kette a, .oz-fu-kette span { display: inline-flex; flex-direction: column; justify-content: center; min-height: 2.5rem; max-width: 12rem; padding: 0.25rem 0.7rem; border-radius: 0.5rem; font-size: 0.85rem; font-weight: 500; line-height: 1.25; }
.oz-fu-kette a { border: 2px solid var(--oz-akzent); color: var(--oz-text); background: var(--oz-flaeche); }
.oz-fu-kette a:hover { background: var(--oz-akzent-weich); text-decoration: none; }
.oz-fu-kette span { border: 2px dashed var(--oz-leise); color: var(--oz-leise); }
.oz-fu-kette span.app { border-style: solid; }
.oz-fu-kette small { font-size: 0.7rem; font-weight: 400; }
.oz-fu-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0.6rem; align-items: start; }
.oz-fu-karte { border: 1px solid var(--oz-rand); border-left: 4px solid var(--oz-akzent); border-radius: 0.6rem; background: var(--oz-flaeche); padding: 0.6rem 0.8rem; display: grid; gap: 0.5rem; scroll-margin-top: 5rem; }
.oz-fu-karte.teilweise { border-left-color: var(--oz-warn); }
.oz-fu-karte.gefuehrt { border-left-color: var(--oz-gut); }
.oz-fu-karte:target, .oz-fu-karte:has(details[open]) { box-shadow: var(--oz-schatten); }
.oz-fu-karte summary { cursor: pointer; list-style: none; display: grid; gap: 0.25rem; border-radius: 0.3rem; }
.oz-fu-karte summary::-webkit-details-marker { display: none; }
.oz-fu-titel { font-weight: 600; font-size: 0.98rem; line-height: 1.3; text-wrap: balance; }
.oz-fu-wann { font-size: 0.85rem; color: var(--oz-leise); text-wrap: pretty; }
.oz-fu-wann b { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 0.2rem; }
.oz-fu-statt { font-size: 0.8rem; color: var(--oz-gut); }
.oz-fu-mehr { font-size: 0.8rem; color: var(--oz-link); }
.oz-fu-mehr::before { content: "▸ "; }
.oz-fu-karte details[open] .oz-fu-mehr::before { content: "▾ "; }
.oz-fu-inhalt { display: grid; gap: 0.45rem; font-size: 0.87rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--oz-rand); }
.oz-fu-inhalt ol { margin: 0 0 0 1.2rem; padding: 0; list-style: decimal; display: grid; gap: 0.2rem; }
.oz-fu-inhalt ul { margin: 0.15rem 0 0 1.1rem; list-style: disc; }
.oz-fu-karte footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.oz-fu-wo { flex: 1 1 8rem; min-width: 0; font-size: 0.78rem; color: var(--oz-leise); overflow-wrap: anywhere; }
.oz-fu-oeffnen { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 0.8rem; border: 1px solid var(--oz-akzent); border-radius: 0.5rem; font-size: 0.85rem; font-weight: 500; color: var(--oz-link); white-space: nowrap; }
.oz-fu-oeffnen:hover { background: var(--oz-akzent-weich); text-decoration: none; }
.oz-fu a:focus-visible, .oz-fu summary:focus-visible, .oz-fu-suche:focus-visible, .oz-fu button:focus-visible { outline: 2px solid var(--oz-akzent); outline-offset: 2px; }
@media (max-width: 640px) {
    .oz-fu-kette { flex-direction: column; gap: 0; }
    .oz-fu-kette li { flex-direction: column; align-items: stretch; }
    .oz-fu-kette li + li::before { content: "↓"; padding: 0.1rem 0 0.1rem 0.9rem; }
    .oz-fu-kette a, .oz-fu-kette span { max-width: none; }
    .oz-fu-nebenlink { margin-left: 0; }
}
@media (max-width: 640px) { .oz-ablauf-schritt { grid-template-columns: 1fr; } .oz-ablauf-nr { display: none; } }
.oz-ablauf-vorschlaege { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.7rem; }
.oz-ablauf-vorschlaege:first-child { margin-top: 0; }
.oz-ablauf-mehr { display: contents; }
.oz-ablauf-mehr > summary { cursor: pointer; font-size: 0.82rem; color: var(--oz-link); }
.oz-ablauf-mehr[open] > summary { flex-basis: 100%; }

/* Teilen (06.10.2026): Dialog „Seite teilen“ und Hervorhebung des Abschnitts, zu dem ein Link springt */
.oz-teilen .oz-kopfnav-btn { display: inline-flex; align-items: center; justify-content: center; }
.oz-teilen-dialog { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 1rem 1rem; overflow-y: auto; }
.oz-teilen-karte { width: 100%; max-width: 30rem; background: #fff; color: #111; border-radius: 10px; padding: 1rem 1.1rem 1.1rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: .9rem; }
.dark .oz-teilen-karte { background: #1f2937; color: #f3f4f6; }
.oz-teilen-kopf { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.oz-teilen-zu { border: 0; background: transparent; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.oz-teilen-titel { margin: .25rem 0 .75rem; color: #6b7280; font-size: .85rem; }
.oz-teilen-feld { display: block; margin-bottom: .75rem; }
.oz-teilen-feld > span:first-child { display: block; font-weight: 600; margin-bottom: .25rem; font-size: .8rem; }
.oz-teilen-feld input[type=text], .oz-teilen-feld select, .oz-teilen-feld textarea { width: 100%; border: 1px solid rgba(128,128,128,.45); border-radius: 6px; padding: .4rem .5rem; background: transparent; color: inherit; font-size: .85rem; }
.oz-teilen-zeile { display: flex; gap: .4rem; }
.oz-teilen-liste { max-height: 9rem; overflow-y: auto; border: 1px solid rgba(128,128,128,.35); border-radius: 6px; padding: .3rem .5rem; }
.oz-teilen-liste label, .oz-teilen-feld > label { display: block; padding: .1rem 0; }
.oz-teilen-trenner { border: 0; border-top: 1px solid rgba(128,128,128,.3); margin: .75rem 0; }
.oz-teilen-knopf { border: 1px solid rgba(128,128,128,.5); background: transparent; color: inherit; border-radius: 6px; padding: .4rem .8rem; cursor: pointer; white-space: nowrap; }
.oz-teilen-knopf.haupt { background: #f39200; border-color: #f39200; color: #fff; font-weight: 600; }
.oz-teilen-knopf:disabled { opacity: .5; cursor: not-allowed; }
.oz-teilen-fuss { display: flex; justify-content: flex-end; gap: .5rem; }
.fi-section { scroll-margin-top: 5rem; }
.fi-section.oz-abschnitt-markiert { outline: 3px solid #f39200; outline-offset: 2px; transition: outline-color 1s; }
/* Finanzblock am Projekt (09.10.2026): Überschrift links, Knöpfe rechts, Verweise in der Tabelle */
.oz-fin-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; margin-bottom: .35rem; }
.oz-fin-kopf .oz-teil { margin: 0; }
.oz-fin .oz-zeile { display: flex; flex-wrap: wrap; gap: .35rem; }
.oz-fin .oz-link { background: none; border: 0; padding: 0 .3rem; font-size: .8rem; color: var(--oz-link, #184982); cursor: pointer; }
.oz-fin .oz-link:hover { text-decoration: underline; }
.oz-fin .oz-link-rot { color: #b42318; }
.oz-fin button.oz-knopf { background: transparent; cursor: pointer; font-family: inherit; }
/* Einrichtungsdialog (09.10.2026): als App installieren und Meldungen erlauben */
.oz-einr { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgb(0 0 0 / .45); }
.oz-einr[hidden] { display: none; }
.oz-einr-karte { width: min(32rem, 100%); max-height: 100%; overflow-y: auto; padding: 1.25rem 1.4rem; border-radius: 10px; background: #fff; color: #16202e; box-shadow: 0 20px 50px rgb(0 0 0 / .3); }
.dark .oz-einr-karte { background: #18212c; color: #e9edf1; }
.oz-einr-karte h2 { margin: 0 0 .4rem; font-size: 1.15rem; font-weight: 700; }
.oz-einr-text { margin: 0 0 .9rem; font-size: .9rem; opacity: .85; }
.oz-einr-schritte { display: flex; flex-direction: column; gap: .6rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
.oz-einr-schritte > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; padding: .7rem .8rem; border: 1px solid rgb(128 128 128 / .3); border-radius: 6px; }
.oz-einr-schritte > li[hidden] { display: none; }
.oz-einr-schritte strong { display: block; }
.oz-einr-klein { display: block; font-size: .8rem; opacity: .75; }
.oz-einr-knopf { padding: .45rem .9rem; border: 0; border-radius: 4px; background: #f39200; color: #16202e; font-weight: 600; cursor: pointer; }
.oz-einr-knopf:hover { background: #ffa31f; }
.oz-einr-ok, .oz-einr-fertig { font-weight: 600; color: #2e6b2f; }
.dark .oz-einr-ok, .dark .oz-einr-fertig { color: #8fd18f; }
.oz-einr-fuss { display: flex; justify-content: space-between; gap: 1rem; }
.oz-einr-link { background: none; border: 0; padding: 0; font-size: .85rem; text-decoration: underline; cursor: pointer; opacity: .75; }

/* Datumsfeld: Pfeile ‹ › für den Monatswechsel (datum.js, Paul 14.10.2026) */
.fi-fo-date-time-picker-panel-header.oz-monat-kopf { justify-content: center; gap: .25rem; }
.oz-monat-kopf .fi-fo-date-time-picker-month-select { flex: 0 1 auto; width: auto; text-align: right; padding-right: .25rem !important; background-image: none !important; }
.oz-monat-kopf .fi-fo-date-time-picker-year-input { width: 3.25rem; text-align: left; -moz-appearance: textfield; appearance: textfield; }
.oz-monat-kopf .fi-fo-date-time-picker-year-input::-webkit-inner-spin-button,
.oz-monat-kopf .fi-fo-date-time-picker-year-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.oz-monat-pfeil { flex: none; width: 2rem; height: 2rem; border: 0; border-radius: .5rem; background: none; font-size: 1.35rem; line-height: 1; color: #374151; cursor: pointer; }
.oz-monat-pfeil:first-child { margin-right: auto; }
.oz-monat-pfeil:last-child { margin-left: auto; }
.oz-monat-pfeil:hover { background: rgba(0, 0, 0, .06); }
.dark .oz-monat-pfeil { color: #e5e7eb; }
.dark .oz-monat-pfeil:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Anfragen über der Angebotsliste (20.10.2026): Vorschau der fehlenden Angaben und der Positionen ---------- */
.oz-anfrage-vorschau { font-size: .9rem; line-height: 1.45; }
.oz-anfrage-vorschau p { margin: 0 0 .5rem; }
.oz-anfrage-offen { padding: .45rem .7rem; border-radius: 6px; background: #fff4e0; border: 1px solid #f6d9a8; }
.dark .oz-anfrage-offen { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); }
.oz-anfrage-vollstaendig { color: #047857; }
.dark .oz-anfrage-vollstaendig { color: #6ee7b7; }
.oz-anfrage-pakete { margin: 0; padding-left: 1.1rem; }
.oz-anfrage-pakete li { margin-bottom: .2rem; }

/* Briefing (Paul, 12.11.2026): Seite /briefing und Karte der Startseite. Je Thema eine Akzentfarbe --bf (Klasse oz-bf-f-<farbe>);
   Flächen und Beschriftungen mischen sie mit der Textfarbe bzw. Transparenz, damit helle und dunkle Ansicht denselben Kontrast behalten.
   Schmuck nur aus eigenen Mitteln (Verläufe, Symbole, Strichzeichnung), keine Bilder aus den Quellen. */
.oz-bf { max-width: 76rem; --bf: #4f7fd6; }
.oz-bf-f-stahl { --bf: #4f7fd6; } .oz-bf-f-land { --bf: #4c9a52; } .oz-bf-f-betrieb { --bf: #c98a1a; }
.oz-bf-f-normen { --bf: #8b6fd6; } .oz-bf-f-schutz { --bf: #d9603b; } .oz-bf-f-recht { --bf: #2a9d9d; }
.oz-bf-stand { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; padding: 0.6rem 0.8rem; border: 1px solid var(--oz-rand); border-radius: 8px; font-size: 0.9rem; }
.oz-bf-fehler { border-color: #b45309; }
.oz-bf-puls { flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #4f7fd6; animation: oz-bf-puls 1.4s ease-in-out infinite; }
@keyframes oz-bf-puls { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .oz-bf-puls { animation: none; } }

/* Kopf: Verlauf aus den Themenfarben, Hallenrahmen als Strichzeichnung rechts */
.oz-bf-kopf { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.1rem 1.5rem; padding: 2rem 2rem 1.4rem; overflow: hidden; border: 1px solid var(--oz-rand); border-radius: 18px;
    background:
        radial-gradient(60rem 22rem at 0% 0%, color-mix(in srgb, #4f7fd6 30%, transparent), transparent 60%),
        radial-gradient(40rem 18rem at 100% 0%, color-mix(in srgb, #c98a1a 22%, transparent), transparent 65%),
        radial-gradient(40rem 20rem at 60% 120%, color-mix(in srgb, #2a9d9d 18%, transparent), transparent 60%); }
.oz-bf-halle { position: absolute; right: 1.5rem; top: 0.9rem; width: 19rem; max-width: 45%; height: auto; opacity: 0.16; pointer-events: none; }
.oz-bf-kopf-text { position: relative; min-width: 0; }
.oz-bf-ueber { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, #4f7fd6 60%, currentColor); }
.oz-bf-kopf h2 { margin: 0.3rem 0 0.4rem; font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.oz-bf-unter { margin: 0; font-size: 0.92rem; color: var(--oz-leise); font-variant-numeric: tabular-nums; text-wrap: pretty; }
.oz-bf-archiv { position: relative; display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--oz-leise); }
.oz-bf-archiv select { min-height: 40px; padding: 0.25rem 2rem 0.25rem 0.6rem; border: 1px solid var(--oz-rand); border-radius: 8px; background-color: color-mix(in srgb, currentColor 6%, transparent); color: inherit; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.oz-bf-sprung { position: relative; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.oz-bf-sprung a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.3rem 0.85rem 0.3rem 0.35rem; border: 1px solid color-mix(in srgb, var(--bf) 40%, transparent); border-radius: 999px;
    background: color-mix(in srgb, var(--bf) 12%, transparent); font-size: 0.88rem; font-weight: 500; text-decoration: none; color: inherit; transition-property: background-color, transform; transition-duration: 150ms; }
.oz-bf-sprung a:hover { background: color-mix(in srgb, var(--bf) 26%, transparent); transform: translateY(-1px); }
.oz-bf-sprung .oz-bf-icon { width: 2rem; height: 2rem; border-radius: 50%; }
.oz-bf-sprung b { font-weight: 700; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--bf) 65%, currentColor); }
.oz-bf-icon { display: inline-grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: color-mix(in srgb, var(--bf) 20%, transparent); color: var(--bf); }
.oz-bf-icon svg { width: 1.25rem; height: 1.25rem; }

/* Auf einen Blick: Zahlen aus den Meldungen */
.oz-bf-blick { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.7rem; margin-top: 0.9rem; }
.oz-bf-zahl { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; padding: 0.85rem 1rem; border: 1px solid var(--oz-rand); border-left: 4px solid var(--bf); border-radius: 12px; text-decoration: none; color: inherit;
    background: color-mix(in srgb, var(--bf) 7%, transparent); transition-property: background-color; transition-duration: 150ms; }
.oz-bf-zahl:hover { background: color-mix(in srgb, var(--bf) 16%, transparent); }
.oz-bf-zahl b { font-size: 1.55rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--bf) 55%, currentColor); overflow-wrap: anywhere; }
.oz-bf-zahl span { font-size: 0.84rem; line-height: 1.35; overflow-wrap: anywhere; }
.oz-bf-zahl small { margin-top: 0.2rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--oz-leise); }

/* Themen */
.oz-bf-thema { margin-top: 2.4rem; scroll-margin-top: 6rem; }
.oz-bf-thema > header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; }
.oz-bf-thema h3 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.oz-bf-linie { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--bf) 70%, transparent), transparent); }
.oz-bf-anzahl { font-size: 0.8rem; color: var(--oz-leise); font-variant-numeric: tabular-nums; }
.oz-bf-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 0.9rem; }
.oz-bf-meldung { position: relative; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; padding: 1.05rem 1.15rem 0.85rem; overflow: hidden; border: 1px solid var(--oz-rand); border-radius: 14px;
    background: color-mix(in srgb, var(--bf) 4%, transparent); box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); transition-property: border-color, transform, box-shadow; transition-duration: 150ms; }
.oz-bf-meldung:hover { border-color: color-mix(in srgb, var(--bf) 55%, transparent); transform: translateY(-2px); box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--bf) 70%, transparent); }
.oz-bf-meldung::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: color-mix(in srgb, var(--bf) 75%, transparent); }
/* Sprungmarke aus einem geteilten Link (#m-…): Meldung hervorheben, bis eine andere Marke gewählt wird */
.oz-bf-meldung { scroll-margin-top: 7rem; }
.oz-bf-meldung:target { border-color: var(--bf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bf) 55%, transparent), 0 12px 30px -14px var(--bf); background: color-mix(in srgb, var(--bf) 16%, transparent); animation: oz-bf-ziel 1.6s ease-out 1; }
@keyframes oz-bf-ziel { 0%, 60% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--bf) 60%, transparent), 0 12px 30px -14px var(--bf); } }
@media (prefers-reduced-motion: reduce) { .oz-bf-meldung:target { animation: none; } }
.oz-bf-inhalt { position: relative; display: flex; flex-direction: column; flex: 1; gap: 0.4rem; min-width: 0; }
.oz-bf-top { grid-column: 1 / -1; flex-direction: row; align-items: stretch; gap: 1.5rem; padding: 1.5rem 1.6rem 1.2rem;
    background: linear-gradient(115deg, color-mix(in srgb, var(--bf) 20%, transparent), color-mix(in srgb, var(--bf) 5%, transparent) 70%); }
.oz-bf-wasser { position: absolute; right: -1.2rem; bottom: -1.8rem; color: var(--bf); opacity: 0.1; pointer-events: none; }
.oz-bf-wasser svg { width: 11rem; height: 11rem; }
.oz-bf-meta { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-size: 0.78rem; color: var(--oz-leise); font-variant-numeric: tabular-nums; }
.oz-bf-nr { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: color-mix(in srgb, var(--bf) 22%, transparent); color: color-mix(in srgb, var(--bf) 60%, currentColor); font-weight: 700; }
.oz-bf-marke { padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--bf); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.oz-bf-f-betrieb .oz-bf-marke, .oz-bf-f-land .oz-bf-marke, .oz-bf-f-recht .oz-bf-marke { color: #10141a; }
.oz-bf-meldung h4 { margin: 0; font-size: 1.02rem; font-weight: 650; line-height: 1.35; text-wrap: balance; overflow-wrap: anywhere; }
.oz-bf-top h4 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.01em; }
.oz-bf-meldung p { margin: 0; font-size: 0.9rem; line-height: 1.55; text-wrap: pretty; overflow-wrap: anywhere; }
.oz-bf-top .oz-bf-inhalt > p:not(.oz-bf-meta) { font-size: 0.96rem; max-width: 60rem; }
.oz-bf-bedeutung { margin-top: 0.3rem !important; padding: 0.55rem 0.75rem; border-radius: 10px; background: color-mix(in srgb, var(--bf) 12%, transparent); }
.oz-bf-bedeutung strong { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--bf) 60%, currentColor); }
.oz-bf-unten { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding-top: 0.3rem; min-width: 0; }
.oz-bf-teilen { display: inline-flex; align-items: center; gap: 0.35rem; flex: none; min-height: 36px; padding: 0.25rem 0.7rem; border: 1px solid color-mix(in srgb, var(--bf) 45%, transparent); border-radius: 999px;
    background: transparent; color: inherit; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition-property: background-color; transition-duration: 150ms; }
.oz-bf-teilen:hover, .oz-bf-teilen:focus-visible { background: color-mix(in srgb, var(--bf) 20%, transparent); }
.oz-bf-teilen svg { width: 0.95rem; height: 0.95rem; color: var(--bf); }
.oz-bf-quelle { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px; font-size: 0.8rem; color: var(--oz-leise); text-decoration: none; min-width: 0; }
.oz-bf-quelle svg { flex: none; width: 0.95rem; height: 0.95rem; }
.oz-bf-quelle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oz-bf-quelle b { font-weight: 600; color: color-mix(in srgb, var(--bf) 55%, currentColor); }
.oz-bf-quelle:hover span { text-decoration: underline; text-underline-offset: 2px; }
.oz-bf-kennzahl { position: relative; order: -1; display: flex; flex-direction: column; margin: 0 !important; }
.oz-bf-kennzahl b { font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--bf) 55%, currentColor); overflow-wrap: anywhere; }
.oz-bf-kennzahl span { font-size: 0.78rem; color: var(--oz-leise); }
.oz-bf-top .oz-bf-kennzahl { order: 1; flex: none; justify-content: center; align-items: flex-start; width: 13rem; padding-left: 1.5rem; border-left: 1px solid color-mix(in srgb, var(--bf) 35%, transparent); }
.oz-bf-top .oz-bf-kennzahl b { font-size: 2.4rem; }
.oz-bf-top .oz-bf-kennzahl span { font-size: 0.85rem; }
@media (max-width: 760px) {
    .oz-bf-kopf { grid-template-columns: 1fr; padding: 1.3rem 1.1rem 1.1rem; }
    .oz-bf-top { flex-direction: column; gap: 0.7rem; padding: 1.1rem; }
    .oz-bf-top .oz-bf-kennzahl { order: -1; width: auto; padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .oz-bf-meldung:hover, .oz-bf-sprung a:hover { transform: none; } }

.oz-bf-fuss { margin-top: 2.2rem; padding-top: 0.9rem; border-top: 1px solid var(--oz-rand); font-size: 0.82rem; }
.oz-bf-fuss p { margin: 0 0 0.4rem; text-wrap: pretty; }
.oz-bf-diagnose summary { display: inline-block; min-height: 36px; padding: 0.5rem 0; cursor: pointer; }
.oz-bf-diagnose table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.oz-bf-diagnose th, .oz-bf-diagnose td { padding: 0.25rem 1rem 0.25rem 0; text-align: right; border-bottom: 1px solid var(--oz-rand); font-weight: 400; }
.oz-bf-diagnose th:first-child, .oz-bf-diagnose td:first-child { text-align: left; }

/* Karte der Startseite */
.oz-bf-karte ul { list-style: none; margin: 0.4rem 0; padding: 0; }
.oz-bf-karte li a { display: flex; align-items: center; gap: 0.65rem; min-height: 44px; padding: 0.35rem 0.5rem; margin: 0 -0.5rem; border-radius: 10px; text-decoration: none; color: inherit; transition-property: background-color; transition-duration: 150ms; }
.oz-bf-karte li a:hover { background: color-mix(in srgb, var(--bf) 12%, transparent); }
.oz-bf-karte li a > span:nth-child(2) { flex: 1; min-width: 0; font-size: 0.9rem; line-height: 1.35; overflow-wrap: anywhere; }
.oz-bf-karte small { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--bf) 60%, currentColor); }
.oz-bf-karte .oz-bf-icon { width: 2.1rem; height: 2.1rem; }
.oz-bf-karte li a > b { flex: none; font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--bf) 55%, currentColor); }
.oz-bf-karte .oz-link { display: inline-block; padding: 0.4rem 0; font-size: 0.85rem; }
