/* Übersichtsseite als gemeinsamer Baustein (11.11.2026, Anordnung „kompakt“). Liegt Zeichen für Zeichen gleich im Kerstens-Portal und im 369-Portal.
   Keine Firmenfarben: Alle Farben kommen aus den Namen, die beide Portale haben (design-tokens.css bei Kerstens, design-tokens-369.css bei 369):
   --card --ink --muted --line --bad --bad-bg --bad-text --warn-bg --warn-text --neutral-bg --neutral-text --marke-akzent --r --r-pille.
   Die dunkle Ansicht steht von Hand am Ende dieser Datei: eine Entsprechung je sichtbarer Regel. Ein Generator wird dafür nicht gebraucht.
   Breiten: bis 640 px Handy · bis 860 px Suchfeld statt Such-Knopf · bis 900 px große Tippflächen.
   WICHTIG: Änderungen immer in beiden Portalen zugleich einspielen. */

/* 14.11.2026 (Inhaber, Variante A): die Seite wächst mit dem Bildschirm. .ub misst die verfügbare Breite, .ub-flaeche ordnet an:
   schmaler als 1600 px eine Spalte (übrige Karten als Raster unter „Zu erledigen“), ab 1600 px rechts eine Seitenleiste. */
.ub { container:ub / inline-size; min-width:0; max-width:2200px; }
.ub-flaeche { display:grid; grid-template-columns:minmax(0, 1fr); gap:16px; align-items:start; }
.ub-oben { display:flex; flex-direction:column; gap:12px; min-width:0; }
.ub-neben { display:flex; flex-direction:column; gap:8px; min-width:0; }
.ub-neben-titel { margin:4px 0 0; font-size:14px; font-weight:700; color:var(--muted); }
@container ub (min-width: 1600px) {
  .ub-breit .ub-flaeche { grid-template-columns:minmax(0, 1fr) minmax(300px, 360px); }
  .ub-breit .ub-neben { margin-top:0; }
  .ub-breit .ub-neben-titel { margin-top:0; }
  .ub-breit .ub-klappen { grid-template-columns:minmax(0, 1fr); }
}
.ub-neu { float:right; margin:2px 0 0 10px; font-size:13px; font-weight:600; letter-spacing:0; line-height:1.2; }
.ub-datum { display:block; margin-top:6px; font-size:15px; font-weight:400; letter-spacing:0; color:var(--muted); }

/* --- vier Zahlen als schmale Leiste --- */
.ub-zahlen { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; }
.ub-zahlen-3 { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.ub-zahlen-2 { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.ub-zahlen-1 { grid-template-columns:minmax(0, 1fr); }
.ub-zahl { display:flex; align-items:center; gap:10px; min-height:48px; padding:6px 12px; margin:0; background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:var(--r); font:inherit; text-align:left; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.ub-zahl b { flex:none; font-size:22px; line-height:1; font-variant-numeric:tabular-nums; }
.ub-zahl span { font-size:13.5px; font-weight:600; line-height:1.2; overflow-wrap:anywhere; }
.ub-zahl em { min-width:0; margin-left:auto; font-style:normal; font-size:12px; line-height:1.2; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ub-z-rot b { color:var(--bad); }
.ub-z-gelb b { color:var(--warn-text); }
.ub-z-ruhig b { color:var(--muted); }
.ub-zahl:hover { border-color:var(--muted); }
.ub-zahl:focus-visible, .ub-klappe-knopf:focus-visible, .ub-link:focus-visible, .ub-klappe > summary:focus-visible, .ub-suche:focus-visible, .ub-anp-zeile button:focus-visible, .ub-alle:focus-visible, .ub-sammel-knopf:focus-visible { outline:2px solid var(--fokus, var(--marke-akzent)); outline-offset:2px; }
/* eine Zahl als Filter (ziel.filter): gedrückt = dicker Rand; darunter in „Zu erledigen“ die Leiste „Nur: … · Alle zeigen ✕“ */
.ub-zahl-an, .ub-zahl-an:hover { border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); }
.ub-filter { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; padding:4px 6px 4px 12px; background:var(--neutral-bg); color:var(--neutral-text); border:1px solid var(--line); border-radius:var(--r); font-size:14px; }
.ub-filter-aus { min-height:36px; margin:0; padding:0 12px; background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:8px; font:inherit; font-size:13px; font-weight:600; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.ub-filter-aus:hover { border-color:var(--muted); }

/* --- Zeile „Heute“ ganz oben: eigene Termine als Knöpfe, bricht um --- */
.ub-heute { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; min-width:0; padding:6px 12px; background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:var(--r); font-size:14px; }
.ub-heute-titel { flex:none; font-weight:700; }
.ub-heute-teile { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; }
.ub-heute-teil { display:inline-flex; align-items:center; gap:6px; box-sizing:border-box; min-width:0; max-width:100%; min-height:32px; margin:0; padding:3px 10px; background:var(--neutral-bg); color:var(--neutral-text); border:1px solid transparent; border-radius:8px; font:inherit; font-size:13.5px; line-height:1.25; text-align:left; -webkit-tap-highlight-color:transparent; }
button.ub-heute-teil { cursor:pointer; }
button.ub-heute-teil:hover { border-color:var(--muted); }
.ub-heute-zeit { flex:none; font-weight:700; font-variant-numeric:tabular-nums; }
.ub-heute-text { min-width:0; overflow-wrap:anywhere; }
.ub-heute-leise { background:none; color:var(--muted); border-color:var(--line); }
.ub-heute-zusatz, .ub-heute-leer { min-width:0; font-size:13px; color:var(--muted); overflow-wrap:anywhere; }
.ub-heute-weitere { display:none; align-items:center; min-height:44px; margin:0; padding:0 8px; background:none; color:var(--ink); border:0; font:inherit; font-size:13px; font-weight:600; text-decoration:underline; cursor:pointer; }

/* --- Suchfeld (nur schmal) und Schnellzugriff --- */
.ub-suche { display:none; width:100%; box-sizing:border-box; align-items:center; gap:8px; min-height:48px; margin:0; padding:10px 14px; background:var(--card); color:var(--muted); border:1px solid var(--line); border-radius:var(--r); font:inherit; font-size:15px; text-align:left; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.ub-schnell { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.ub-schnell > a { text-decoration:none; }
.ub-trenner { flex:none; width:1px; align-self:stretch; min-height:24px; background:var(--line); margin:0 2px; }
.ub-s-knopf { display:none; }

/* --- „Zu erledigen“: Kopf, rote feste Zeilen, darunter je Bereich eine Karte im Raster --- */
.ub .ub-karte { margin:0; min-width:0; }
.ub-ze { container:ubze / inline-size; display:flex; flex-direction:column; gap:10px; }
.ub-ze-kopf { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 14px; }
.ub-ze-kopf .ub-fuss { margin:0; }
.ub-kopf { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0; font-size:18px; }
.ub-ze-kopf > .ub-kopf { margin-right:auto; }   /* Überschrift links, Schalter und „Alle Aufgaben“ rechts */
/* Schalter „Einfach / Experte“ (nur wenn das Portal modus übergibt) */
.ub-modus { display:inline-flex; flex:none; background:var(--card); border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.ub-modus button { min-height:32px; margin:0; padding:0 12px; background:none; color:var(--ink); border:0; border-radius:0; font:inherit; font-size:13px; font-weight:600; line-height:1.2; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.ub-modus button + button { border-left:1px solid var(--line); }
.ub-modus button[aria-pressed="true"] { background:var(--ink); color:var(--card); }
.ub-modus button:focus-visible { outline:2px solid var(--fokus, var(--marke-akzent)); outline-offset:-3px; }
.ub-modus-allein { justify-content:flex-end; }
/* „Einfach“: ein Knopf für alles Übrige; solange er zu ist, stehen die Karten unten nicht da */
.ub-mehr { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; box-sizing:border-box; width:100%; min-height:48px; margin:0; padding:8px 12px; background:var(--neutral-bg); color:var(--neutral-text); border:1px solid var(--line); border-radius:var(--r); font:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.ub-mehr:hover { border-color:var(--muted); }
.ub-mehr-text { font-size:14.5px; font-weight:700; }
.ub-mehr-was { max-width:100%; font-size:12.5px; font-weight:400; line-height:1.35; text-align:center; overflow-wrap:anywhere; }
.ub-mehr-zu .ub-neben { display:none; }
@container ub (min-width: 1600px) { .ub-breit.ub-mehr-zu .ub-flaeche { grid-template-columns:minmax(0, 1fr); } }
/* „N Bereiche ausgeblendet“: nichts verschwindet still – der Knopf öffnet „Anpassen“ */
.ub-ausgeblendet { min-height:28px; margin:0; padding:0 4px; background:none; color:var(--muted); border:0; font:inherit; font-size:12.5px; font-weight:400; text-decoration:underline; cursor:pointer; }
.ub-ausgeblendet:hover { color:var(--ink); }
.ub-mehr:focus-visible, .ub-ausgeblendet:focus-visible, .ub-filter-aus:focus-visible, .ub-heute-teil:focus-visible, .ub-heute-weitere:focus-visible { outline:2px solid var(--fokus, var(--marke-akzent)); outline-offset:2px; }
.ub-raster { display:grid; grid-template-columns:minmax(0, 1fr); gap:12px; align-items:start; }
@container ubze (min-width: 680px) { .ub-raster { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@container ubze (min-width: 1050px) { .ub-raster { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@container ubze (min-width: 1400px) { .ub-raster { grid-template-columns:repeat(4, minmax(0, 1fr)); } }
.ub-gk { min-width:0; background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:10px 14px 8px; }
.ub-gk-kopf { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin:0 0 4px; padding:2px 0 6px; font-size:15px; font-weight:700; border-bottom:1px solid var(--line); }
.ub-gk-kopf .ub-zusatz { flex-basis:100%; white-space:normal; }
.ub-rest { display:none; }
.ub-ganz > .ub-rest { display:block; }
/* nicht zählende Zeilen am Ende (z. B. „⏰ N auf später gelegt“): immer zu sehen, mit Trennstrich zur Liste darüber */
.ub-liste + .ub-liste.ub-ende { border-top:1px solid var(--line); }
.ub-alle { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-height:44px; margin:4px 0 0; padding:6px 10px; background:none; color:var(--ink); border:0; border-top:1px solid var(--line); border-radius:0 0 8px 8px; font:inherit; font-size:14px; font-weight:600; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.ub-alle:hover { text-decoration:underline; }
.ub-alle .ub-pfeil { transform:none; }
.ub-ganz > .ub-alle .ub-pfeil { transform:rotate(180deg); }
.ub-gk-fuss { margin:6px 0 2px; padding-top:8px; border-top:1px solid var(--line); font-size:13.5px; }
/* Stand-Leiste unter einem Bereich (Kerstens: Angebote je Status) */
.ub-stand { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.ub-stand-titel { flex-basis:100%; font-size:12px; font-weight:700; color:var(--muted); }
.ub-stand-zahlen { display:flex; flex-wrap:wrap; gap:6px; flex:1 1 auto; min-width:0; }
.ub-stand-feld { display:inline-flex; align-items:baseline; gap:4px; padding:3px 8px; background:var(--neutral-bg); color:var(--neutral-text); border-radius:var(--r-pille); font-size:12.5px; white-space:nowrap; }
.ub-stand-feld b { font-variant-numeric:tabular-nums; }
.ub-stand-link { min-height:44px; margin-left:auto; padding:0 4px; background:none; border:0; color:var(--ink); font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.ub-stand-link:hover { text-decoration:underline; }
.ub-stand-link:focus-visible { outline:2px solid var(--fokus, var(--marke-akzent)); outline-offset:2px; }
/* gesammelte Zeilen (z. B. „Anfrage 4 · Krüger, Lange, …“): eine Zeile, die die einzelnen aufklappt */
.ub-liste > li.ub-sammel { display:block; border-bottom:1px solid var(--line); }
.ub-sammel-knopf { all:unset; box-sizing:border-box; display:flex; flex-wrap:nowrap; align-items:center; gap:2px 8px; width:100%; min-height:44px; padding:6px 0; cursor:pointer; color:var(--ink); font-size:14px; -webkit-tap-highlight-color:transparent; }
.ub-sammel-titel { display:inline-flex; align-items:center; gap:6px; }
.ub-sammel-namen { flex:1 1 0; min-width:0; color:var(--muted); font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ub-sammel-knopf .ub-pfeil { transform:none; }
.ub-sammel-auf > .ub-sammel-knopf .ub-pfeil { transform:rotate(90deg); }
.ub-sammel-liste { display:none; margin:0 0 6px 12px; }
.ub-sammel-auf > .ub-sammel-liste { display:block; }
.ub-zahl-gross { background:var(--ink); color:var(--card); border-radius:12px; padding:0 9px; font-size:13px; font-weight:700; line-height:20px; }
.ub-zahl-klein, .ub-n { flex:none; background:var(--neutral-bg); color:var(--neutral-text); border-radius:var(--r-pille); padding:0 8px; font-size:12px; font-weight:700; line-height:20px; font-variant-numeric:tabular-nums; }
.ub-dazu { font-size:12.5px; font-weight:400; color:var(--muted); }
.ub-liste { list-style:none; margin:0; padding:0; }
.ub-liste > li { min-width:0; }
.ub-zeile { display:flex; align-items:center; gap:8px; min-height:40px; padding:6px 0; border-bottom:1px solid var(--line); font-size:14px; }
.ub-liste > li:last-child { border-bottom:0; }
.ub-haken { flex:none; width:22px; height:22px; margin:0; }
.ub-link, .ub-text { flex:1; min-width:0; text-align:left; color:var(--ink); font:inherit; line-height:1.35; }
.ub-link { background:none; border:0; padding:4px 0; cursor:pointer; }
.ub-link:hover { text-decoration:underline; }
.ub-leise { color:var(--muted); }
.ub-fertig { margin:6px 0; }
.ub-symbol { display:inline-block; width:1.4em; text-align:center; }
.ub-knoepfe { display:flex; flex:none; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.ub-fuss { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.ub-fuss > a { text-decoration:none; }
.ub-liste > li.ub-zwischen { display:block; border-bottom:0; padding:8px 2px 2px; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
/* Dringendes und Überfälliges: rot, ganz oben, immer sichtbar */
.ub-liste.ub-fest { margin:0 0 6px; }
.ub-liste.ub-fest > li { background:var(--bad-bg); color:var(--bad-text); border:0; border-radius:8px; padding:6px 10px; }
.ub-liste.ub-fest > li + li { margin-top:4px; }
.ub-fest .ub-link, .ub-fest .ub-text, .ub-fest .ub-leise, .ub-fest button, .ub-fest span { color:inherit; }
/* Welle 1, 18.11.2026 (FG-V5b-1): Kerstens-Aufgaben stehen jetzt auch fest oben. Ihr Zielverweis ist ein Knopf ohne eigenen Grund (button.aufg-ziel); auf der
   roten Zeile stünde die geerbte Schrift sonst dunkel auf dem grauen Browser-Grund (Kontrast 2,7). 369 nutzt dort einen Link und ist nicht betroffen. */
.ub-liste.ub-fest button.aufg-ziel { background:none; }
/* Schild „wartet seit …“ (Uebersicht.wartetHtml): ruhig, ab 2 Tagen gelb, ab 4 Tagen rot */
.ub-wartet { display:inline-block; padding:0 8px; background:var(--neutral-bg); color:var(--neutral-text); border-radius:var(--r-pille); font-size:12px; font-weight:700; line-height:20px; white-space:nowrap; }
.ub-wartet.ub-w-1 { background:var(--warn-bg); color:var(--warn-text); }
.ub-wartet.ub-w-2 { background:var(--bad-bg); color:var(--bad-text); }
.ub-fest .ub-wartet { background:none; padding:0; color:inherit; }
/* Hinweis „Nächster Schritt“ (Welle 1, 18.11.2026, FG-V5b-1; Uebersicht.schrittHtml): eigene Zeile im Textbereich, die Knöpfe bleiben daneben; bricht um, wird nie
   abgeschnitten und bleibt auch am Handy stehen. Gilt mit .ub .ub-liste auch auf den roten festen Zeilen (stärker als .ub-fest span { color:inherit }). */
.ub .ub-liste .ub-schritt { display:block; flex:1 1 100%; box-sizing:border-box; min-width:0; max-width:100%; margin:4px 0 0; padding:3px 8px; background:var(--neutral-bg); color:var(--neutral-text); border-radius:6px; font-size:12.5px; font-weight:400; line-height:1.35; text-align:left; white-space:normal; overflow-wrap:anywhere; }
.ub .ub-liste li:has(> .ub-schritt), .ub .ub-liste li > :has(> .ub-schritt) { flex-wrap:wrap; }   /* Zeile oder Textbereich als Flex: der Hinweis rutscht in eine eigene Zeile */
.ub .ub-liste input[type="checkbox"] ~ .ub-schritt { margin-left:30px; }   /* unter dem Text, nicht unter dem Haken */
/* Menü-Knopf in einer Zeile (Uebersicht.menueHtml): Liste rechtsbündig unter dem Knopf, bei Platzmangel linksbündig bzw. nach oben (setzt uebersicht.js) */
.ub-menue { position:relative; display:inline-flex; flex:none; }
.ub-menue-liste { position:absolute; z-index:40; top:calc(100% + 4px); right:0; display:flex; flex-direction:column; box-sizing:border-box; width:max-content; min-width:200px; max-width:min(320px, calc(100vw - 24px)); padding:4px; background:var(--card); color:var(--ink); border:1px solid var(--muted); border-radius:var(--r); text-align:left; }
.ub-menue-liste[hidden] { display:none; }
.ub-menue-liste.ub-menue-links { right:auto; left:0; }
.ub-menue-liste.ub-menue-oben { top:auto; bottom:calc(100% + 4px); }
.ub-menue-liste.ub-menue-fest { position:fixed; right:auto; bottom:auto; }   /* aus einer Karte gelöst, die Überstehendes abschneidet; Lage setzt uebersicht.js */
.ub-menue-liste > [role="menuitem"] { display:flex; align-items:center; box-sizing:border-box; width:100%; min-height:44px; margin:0; padding:6px 12px; background:none; color:var(--ink); border:0; border-radius:6px; font:inherit; font-size:14px; font-weight:400; line-height:1.3; text-align:left; text-decoration:none; white-space:normal; overflow-wrap:anywhere; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.ub-menue-liste > [role="menuitem"]:hover, .ub-menue-liste > [role="menuitem"]:focus-visible { background:var(--neutral-bg); color:var(--neutral-text); }
.ub-menue-liste > [role="menuitem"]:focus-visible { outline:2px solid var(--fokus, var(--marke-akzent)); outline-offset:-2px; }
.ub-menue-trenner { flex:none; height:1px; margin:4px 8px; background:var(--line); }
/* die Karte mit dem offenen Menü liegt über allem daneben und darunter (auch über Landkarten in den Karten unten) */
.ub-ze:has(.ub-menue-offen), .ub-kl:has(.ub-menue-offen) { z-index:1100; }
/* Dringlichkeit als ruhiges Wort statt als farbiges Schild (die Klasse .prio haben beide Portale) */
.ub-gruppe .prio, .ub-fest .prio { display:inline-block; min-width:68px; background:none; padding:0; border-radius:0; font-size:11.5px; font-weight:700; text-transform:none; letter-spacing:0; color:var(--muted); }
.ub-gruppe .prio.p1 { color:var(--bad); }
.ub-gruppe .prio.p2 { color:var(--warn-text); }
.ub-fest .prio, .ub-fest .prio.p1, .ub-fest .prio.p2 { color:inherit; }

/* --- Kleinteile der Bereiche --- */
.ub-klappe-knopf { all:unset; box-sizing:border-box; display:flex; align-items:center; gap:8px; width:100%; min-height:44px; padding:6px 2px; font-weight:700; color:var(--ink); cursor:pointer; -webkit-tap-highlight-color:transparent; }
.ub-zusatz { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12.5px; font-weight:400; color:var(--muted); }
.ub-pfeil { flex:none; margin-left:auto; display:inline-block; width:1.2em; text-align:center; font-size:14px; color:var(--muted); transition:transform .15s; transform:rotate(90deg); }
.ub-alle .ub-pfeil { margin-left:0; }
.ub-karte, .ub-kl, .ub-gruppe { scroll-margin-top:72px; }
.ub-blink { animation:ub-blink 1.4s ease-out 1; }
@keyframes ub-blink { 0% { box-shadow:0 0 0 3px var(--marke-akzent); } 100% { box-shadow:0 0 0 3px transparent; } }

/* --- alles Übrige: breit offene Karten im Raster (Inhalt höchstens 380 px hoch, darin blättern), am Handy zugeklappte Zeilen --- */
.ub-klappen { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; align-items:start; }
.ub-breit .ub-klappen { grid-template-columns:repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap:12px; }
.ub-neben:has(> .ub-klappen[hidden]) { display:none; }
.ub-klappen[hidden] { display:none; }
.ub-kl { min-width:0; background:var(--card); border:1px solid var(--line); border-radius:var(--r); }
.ub-kl[hidden] { display:none; }
.ub:not(.ub-breit) .ub-kl.ub-offen { grid-column:1 / -1; }
.ub-breit .ub-klappe[open] > .ub-innen { max-height:380px; overflow:auto; overscroll-behavior:contain; }
.ub-kl.ub-wichtig { border-color:var(--bad); }
.ub-klappe > summary { display:flex; align-items:center; gap:8px; min-height:48px; padding:6px 14px; font-size:15px; font-weight:700; color:var(--ink); cursor:pointer; list-style:none; border-radius:var(--r); -webkit-tap-highlight-color:transparent; }
.ub-klappe > summary::-webkit-details-marker { display:none; }
.ub-kl-titel { min-width:0; overflow-wrap:anywhere; }
.ub-notiz { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12.5px; font-weight:400; color:var(--muted); }
.ub-klappe > summary .ub-pfeil { transform:none; }
.ub-klappe[open] > summary .ub-pfeil { transform:rotate(90deg); }
/* die Karte des Portals liegt ohne eigenen Rahmen in der Klappe; ihre Überschrift steht schon in der Kopfzeile */
.ub .ub-klappe > .ub-innen > * { border:0 !important; box-shadow:none; background:none; border-radius:0; margin:0; padding:0 14px 14px; min-width:0; }
.ub-innen > * > h3:first-child { display:flex; flex-wrap:wrap; align-items:center; gap:0 8px; margin:0 0 6px; padding:0; font-size:0; line-height:0; }
.ub-innen > * > h3:first-child > * { font-size:13px; line-height:1.4; }

/* --- Anpassen: Zeilen ausblenden und umsortieren (je Gerät) --- */
.ub-anp-leiste { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; justify-content:space-between; background:var(--neutral-bg); color:var(--neutral-text); border:1px solid var(--line); border-radius:var(--r); padding:9px 12px; font-size:14px; }
.ub-anp-knoepfe { display:flex; gap:8px; flex-wrap:wrap; }
.ub-kl.ub-aus { display:none; }
.ub-anp > .ub-kl.ub-aus { display:block; opacity:.5; }
.ub-anp-zeile { display:flex; flex-wrap:wrap; gap:6px; padding:0 14px 10px; }
.ub-anp-zeile button { min-height:44px; min-width:44px; padding:0 12px; background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:8px; font:inherit; font-size:13px; cursor:pointer; }
.ub-anp-zeile button:hover { border-color:var(--muted); }
/* dieselbe Knopfzeile an den Bereichen in „Zu erledigen“ (data-ub-anpgr); ein ausgeblendeter Bereich steht beim Anpassen blass da */
.ub-gk > .ub-anp-zeile { margin-top:6px; padding:8px 0 2px; border-top:1px solid var(--line); }
.ub-gk.ub-aus > :not(.ub-anp-zeile) { opacity:.5; }
.ub-gk-leer { margin:6px 0; font-size:13.5px; }

/* --- schmale Bildschirme --- */
@media (min-width:641px) { .ub-zahl span { white-space:nowrap; } }
@media (max-width:900px) {
  .ub-schnell > a, .ub-schnell > button, .ub-fuss > a, .ub-fuss > button, .ub-neu, .ub-anp-knoepfe > button { min-height:44px; box-sizing:border-box; display:inline-flex; align-items:center; }
  .ub-modus button, .ub-filter-aus, .ub-ausgeblendet, button.ub-heute-teil { min-height:44px; }
  .ub-liste a[class*="btn"], .ub-liste button[class*="btn"], .ub-innen a[class*="btn"], .ub-innen button[class*="btn"] { min-height:44px; box-sizing:border-box; }
}
@media (max-width:860px) {
  .ub-suche { display:flex; }
  .ub-schnell > .ub-nur-breit { display:none; }
}
@media (max-width:640px) {
  .ub-flaeche, .ub-oben { gap:10px; }
  .ub-zahlen { gap:6px; }
  .ub-zahl { flex-direction:column; justify-content:center; gap:3px; min-height:60px; padding:6px 3px; text-align:center; }
  .ub-zahl span { font-size:11.5px; font-weight:400; }
  .ub-zahl em { display:none; }
  .ub-schnell > .ub-s-mehr, .ub-schnell > .ub-trenner { display:none; }
  .ub-schnell.ub-s-offen > .ub-s-mehr { display:inline-flex; }
  .ub-schnell > .ub-s-knopf { display:inline-flex; }
  .ub-zusatz { display:none; }
  .ub-zeile { flex-wrap:wrap; min-height:44px; }
  .ub-liste > li { flex-wrap:wrap; }   /* Knöpfe einer Zeile rutschen unter den Text statt ihn schmal zu drücken */
  .ub-knoepfe { width:100%; justify-content:flex-start; padding-left:30px; }
  .ub-haken { width:24px; height:24px; }
  .ub-liste input[type="checkbox"] { width:24px; height:24px; }
  .ub-klappen { grid-template-columns:minmax(0, 1fr); }
  .ub .ub-klappe > .ub-innen > * { padding:0 12px 12px; }
  .ub-notiz { display:none; }
  .ub-gruppe .prio, .ub-fest .prio { min-width:0; }
  /* Zeile „Heute“: 3 Teile, der Rest hinter „… und N weitere“ */
  .ub-heute { padding:6px 10px; }
  .ub-heute-teile > .ub-heute-mehr { display:none; }
  .ub-heute-offen > .ub-heute-teile > .ub-heute-mehr { display:inline-flex; }
  .ub-heute-weitere { display:inline-flex; }
  .ub-heute-zusatz, .ub-heute-leer { flex-basis:100%; }
}
@media (prefers-reduced-motion:reduce) { .ub-pfeil { transition:none; } .ub-blink { animation:none; } }
@media print { .ub-schnell, .ub-suche, .ub-anp-leiste, .ub-anp-zeile, .ub-neu, .ub-modus, .ub-mehr, .ub-ausgeblendet, .ub-filter-aus, .ub-heute-weitere, .ub-menue-liste { display:none; } }

/* --- dunkle Ansicht: von Hand, eine Entsprechung je sichtbarer Regel (nur am Bildschirm; Gedrucktes bleibt hell) --- */
@media screen {
:root[data-theme="dark"] .ub-datum { color:var(--muted); }
:root[data-theme="dark"] .ub-zahl { background:var(--card); color:var(--ink); border-color:var(--line); }
:root[data-theme="dark"] .ub-zahl em { color:var(--muted); }
:root[data-theme="dark"] .ub-z-rot b { color:var(--bad); }
:root[data-theme="dark"] .ub-z-gelb b { color:var(--warn-text); }
:root[data-theme="dark"] .ub-z-ruhig b { color:var(--muted); }
:root[data-theme="dark"] .ub-zahl:hover { border-color:var(--muted); }
:root[data-theme="dark"] .ub-zahl:focus-visible, :root[data-theme="dark"] .ub-klappe-knopf:focus-visible, :root[data-theme="dark"] .ub-link:focus-visible, :root[data-theme="dark"] .ub-klappe > summary:focus-visible, :root[data-theme="dark"] .ub-suche:focus-visible, :root[data-theme="dark"] .ub-anp-zeile button:focus-visible { outline-color:var(--fokus, var(--marke-akzent)); }
:root[data-theme="dark"] .ub-suche { background:var(--card); color:var(--muted); border-color:var(--line); }
:root[data-theme="dark"] .ub-trenner { background:var(--line); }
:root[data-theme="dark"] .ub-zahl-gross { background:var(--ink); color:var(--card); }
:root[data-theme="dark"] .ub-zahl-klein, :root[data-theme="dark"] .ub-n { background:var(--neutral-bg); color:var(--neutral-text); }
:root[data-theme="dark"] .ub-dazu, :root[data-theme="dark"] .ub-leise, :root[data-theme="dark"] .ub-pfeil, :root[data-theme="dark"] .ub-zusatz, :root[data-theme="dark"] .ub-notiz, :root[data-theme="dark"] .ub-liste > li.ub-zwischen { color:var(--muted); }
:root[data-theme="dark"] .ub-zeile, :root[data-theme="dark"] .ub-gruppe { border-color:var(--line); }
:root[data-theme="dark"] .ub-link, :root[data-theme="dark"] .ub-text, :root[data-theme="dark"] .ub-klappe-knopf { color:var(--ink); }
:root[data-theme="dark"] .ub-liste.ub-fest > li { background:var(--bad-bg); color:var(--bad-text); border:0; }
:root[data-theme="dark"] .ub-fest .ub-link, :root[data-theme="dark"] .ub-fest .ub-text, :root[data-theme="dark"] .ub-fest .ub-leise, :root[data-theme="dark"] .ub-fest button, :root[data-theme="dark"] .ub-fest span { color:inherit; }
:root[data-theme="dark"] .ub .ub-gruppe .prio, :root[data-theme="dark"] .ub .ub-fest .prio { background:none !important; color:var(--muted); }
:root[data-theme="dark"] .ub .ub-gruppe .prio.p1 { background:none; color:var(--bad); }
:root[data-theme="dark"] .ub .ub-gruppe .prio.p2 { background:none; color:var(--warn-text); }
:root[data-theme="dark"] .ub .ub-fest .prio, :root[data-theme="dark"] .ub .ub-fest .prio.p1, :root[data-theme="dark"] .ub .ub-fest .prio.p2 { background:none; color:inherit; }
:root[data-theme="dark"] .ub-kl { background:var(--card); border-color:var(--line); }
:root[data-theme="dark"] .ub-kl.ub-wichtig { border-color:var(--bad); }
:root[data-theme="dark"] .ub-klappe > summary { color:var(--ink); }
:root[data-theme="dark"] .ub .ub-klappe > .ub-innen > * { border:0 !important; box-shadow:none; background:none !important; }
:root[data-theme="dark"] .ub-anp-leiste { background:var(--neutral-bg); color:var(--neutral-text); border-color:var(--line); }
:root[data-theme="dark"] .ub-anp-zeile button { background:var(--card); color:var(--ink); border-color:var(--line); }
:root[data-theme="dark"] .ub-anp-zeile button:hover { border-color:var(--muted); }
:root[data-theme="dark"] .ub-neben-titel { color:var(--muted); }
:root[data-theme="dark"] .ub-gk { background:var(--card); border-color:var(--line); }
:root[data-theme="dark"] .ub-gk-kopf, :root[data-theme="dark"] .ub-gk-fuss, :root[data-theme="dark"] .ub-liste > li.ub-sammel, :root[data-theme="dark"] .ub-liste + .ub-liste.ub-ende { border-color:var(--line); }
:root[data-theme="dark"] .ub-alle { background:none; color:var(--ink); border-color:var(--line); }
:root[data-theme="dark"] .ub-alle:focus-visible, :root[data-theme="dark"] .ub-sammel-knopf:focus-visible { outline-color:var(--fokus, var(--marke-akzent)); }
:root[data-theme="dark"] .ub-sammel-knopf { color:var(--ink); }
:root[data-theme="dark"] .ub-sammel-namen, :root[data-theme="dark"] .ub-stand-titel { color:var(--muted); }
:root[data-theme="dark"] .ub-stand-feld { background:var(--neutral-bg); color:var(--neutral-text); }
:root[data-theme="dark"] .ub-stand-link { background:none; color:var(--ink); }
:root[data-theme="dark"] .ub-stand-link:focus-visible { outline-color:var(--fokus, var(--marke-akzent)); }
/* Ausbaustufe 2 (14.11.2026): Heute, Filter, Einfach/Experte, Menü, „wartet seit“, Bereiche anpassen */
:root[data-theme="dark"] .ub-zahl-an, :root[data-theme="dark"] .ub-zahl-an:hover { border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); }
:root[data-theme="dark"] .ub-filter { background:var(--neutral-bg); color:var(--neutral-text); border-color:var(--line); }
:root[data-theme="dark"] .ub-filter-aus { background:var(--card); color:var(--ink); border-color:var(--line); }
:root[data-theme="dark"] .ub-filter-aus:hover { border-color:var(--muted); }
:root[data-theme="dark"] .ub-heute { background:var(--card); color:var(--ink); border-color:var(--line); }
:root[data-theme="dark"] .ub-heute-teil { background:var(--neutral-bg); color:var(--neutral-text); border-color:transparent; }
:root[data-theme="dark"] button.ub-heute-teil:hover { border-color:var(--muted); }
:root[data-theme="dark"] .ub-heute-leise { background:none; color:var(--muted); border-color:var(--line); }
:root[data-theme="dark"] .ub-heute-zusatz, :root[data-theme="dark"] .ub-heute-leer { color:var(--muted); }
:root[data-theme="dark"] .ub-heute-weitere { background:none; color:var(--ink); }
:root[data-theme="dark"] .ub-modus { background:var(--card); border-color:var(--line); }
:root[data-theme="dark"] .ub-modus button { background:none; color:var(--ink); }
:root[data-theme="dark"] .ub-modus button + button { border-left-color:var(--line); }
:root[data-theme="dark"] .ub-modus button[aria-pressed="true"] { background:var(--ink); color:var(--card); }
:root[data-theme="dark"] .ub-mehr { background:var(--neutral-bg); color:var(--neutral-text); border-color:var(--line); }
:root[data-theme="dark"] .ub-mehr:hover { border-color:var(--muted); }
:root[data-theme="dark"] .ub-ausgeblendet { background:none; color:var(--muted); }
:root[data-theme="dark"] .ub-ausgeblendet:hover { color:var(--ink); }
:root[data-theme="dark"] .ub-mehr:focus-visible, :root[data-theme="dark"] .ub-ausgeblendet:focus-visible, :root[data-theme="dark"] .ub-filter-aus:focus-visible, :root[data-theme="dark"] .ub-heute-teil:focus-visible, :root[data-theme="dark"] .ub-heute-weitere:focus-visible, :root[data-theme="dark"] .ub-modus button:focus-visible, :root[data-theme="dark"] .ub-menue-liste > [role="menuitem"]:focus-visible { outline-color:var(--fokus, var(--marke-akzent)); }
:root[data-theme="dark"] .ub-wartet { background:var(--neutral-bg); color:var(--neutral-text); }
:root[data-theme="dark"] .ub-wartet.ub-w-1 { background:var(--warn-bg); color:var(--warn-text); }
:root[data-theme="dark"] .ub-wartet.ub-w-2 { background:var(--bad-bg); color:var(--bad-text); }
:root[data-theme="dark"] .ub-fest .ub-wartet { background:none; color:inherit; }
:root[data-theme="dark"] .ub .ub-liste .ub-schritt { background:var(--neutral-bg); color:var(--neutral-text); }   /* Welle 1, 18.11.2026 (FG-V5b-1): Hinweis „Nächster Schritt“ */
:root[data-theme="dark"] .ub-liste.ub-fest button.aufg-ziel { background:none; }   /* Welle 1 (FG-V5b-1): Zielverweis auf der roten festen Zeile */
:root[data-theme="dark"] .ub-menue-liste { background:var(--card); color:var(--ink); border-color:var(--muted); }
:root[data-theme="dark"] .ub-menue-liste > [role="menuitem"] { background:none; color:var(--ink); }
:root[data-theme="dark"] .ub-menue-liste > [role="menuitem"]:hover, :root[data-theme="dark"] .ub-menue-liste > [role="menuitem"]:focus-visible { background:var(--neutral-bg); color:var(--neutral-text); }
:root[data-theme="dark"] .ub-menue-trenner { background:var(--line); }
:root[data-theme="dark"] .ub-gk > .ub-anp-zeile { border-top-color:var(--line); }
}
/* Fokusrahmen (FG-V8e-1a, 19.11.2026): Im gedrückten Umschalter (Einfach/Experte) liegt der Ring innen auf der dunklen bzw. im Dunkeln hellen Fläche –
   dort in Kartenfarbe, sonst nur 1,7 bis 3 zu 1. Doppelte Klasse: eine Stufe stärker als die erzeugten Abschriften in dunkel.css (0,5,1). */
.ub-modus.ub-modus button[aria-pressed="true"]:focus-visible, :root[data-theme="dark"] .ub-modus.ub-modus button[aria-pressed="true"]:focus-visible { outline-color:var(--card); }

/* FG-V5c-1 (Vorschau 20.11.2026): Kopf des Bereichs klappt auf und zu und nennt, wie viele Zeilen ausgeblendet sind */
.ub-gk-kopf-klappe { padding-top:0; }
.ub-gk-klappe { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; flex:1 1 auto; min-width:0; min-height:36px; margin:0; padding:2px 0; background:none; border:0; border-radius:6px; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.ub-gk-klappe:hover .ub-gr-titel { text-decoration:underline; }
.ub-gk-klappe .ub-gk-verborgen { font-size:13px; font-weight:600; color:var(--muted); }
.ub-gk-klappe .ub-pfeil { margin-left:auto; padding:0 4px; font-size:16px; transform:none; transition:transform .15s; }   /* .ub-pfeil dreht sonst um 90° */
.ub-ganz .ub-gk-klappe .ub-pfeil { transform:rotate(180deg); }
.ub-gk-klappe:focus-visible { outline:3px solid var(--fokus, var(--marke-akzent)); outline-offset:2px; }
.ub .ub-schritt-oben { margin:2px 0 6px; }
.ub .ub-schritt-oben .ub-schritt { display:block; box-sizing:border-box; padding:3px 8px; background:var(--neutral-bg); color:var(--neutral-text); border-radius:6px; font-size:12.5px; line-height:1.35; }
:root[data-theme="dark"] .ub-gk-klappe { color:inherit; background:none; }
:root[data-theme="dark"] .ub .ub-schritt-oben .ub-schritt { background:var(--neutral-bg); color:var(--neutral-text); }
/* FG-V5c-2 (21.11.2026): Pfeil im Klappkopf bleibt rechts in der Ecke, statt am Handy allein in eine zweite Zeile zu rutschen */
.ub-gk-klappe { position:relative; padding-right:30px; }
.ub-gk-klappe .ub-pfeil { position:absolute; top:0; right:0; bottom:0; width:26px; margin:0; padding:0; display:flex; align-items:center; justify-content:center; }
