/* ROTHEN DB — Karte „Hue“ (TabletLicht.razor, TabletLichtRaum, TabletLichtAufteilung, HueStimmungEditor, HueSymbol). Gehört dem Licht-Chat.
   Entwurf „Licht – Variante A“ (704×814-Einzelkarte), hier in der Dashboard-Bühne (1920er-Einheiten, Karte ca. 900×1050):
   Masse ca. ×1.3, Akzent über --fd-acc (Violett), Helligkeit als warme Füllung (--hell). Eigene Klassen .hl-*; die alten
   .hm-*-Lichtregeln in tablet-heim.css werden von der Karte nicht mehr verwendet (ausser Feinregler .hm-fein, .hm-fehler, .hm-leer).
   Dunkelmodus am Ende dieser Datei (:is(.tb-wisch, .tb-ueber).dunkel, Variablen --dk-* aus tablet-dunkel.css). */

/* ───────────── Karte, Kopf, Seiten ───────────── */
.hm-karte.hl-karte { padding: 22px 26px 24px; gap: 18px; --hl-warm: #FFEFCF; --hl-warm-zieht: #F8C76A; --hl-flaeche: #F7F8FA; --hl-rand: #E6E8EE; --hl-text2: #4A4E58; }
.hl-karte .fd-k-ico.licht.hl-ico-aus { background: #F1F1F4; color: #6B6F7B; }
.hl-kopf-info { font-size: 17px; font-weight: 600; color: var(--fd-muted); white-space: nowrap; }
.hl-seite { display: flex; flex-direction: column; gap: 18px; flex: 1; min-height: 0; }
.hl-seite[hidden] { display: none; }
.hl-inhalt { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.hl-seite > .hl-inhalt { flex: 1; }
.hl-hinweis { color: var(--fd-muted); font-size: 15px; }
.hl-info { padding: 10px 14px; border-radius: 14px; background: #EEF8F2; color: #17694A; font-size: 16px; font-weight: 600; }
.hl-abschnitt { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fd-muted); }
.hl-abschnitt-zusatz { font-weight: 600; letter-spacing: 0; text-transform: none; }
.hl-spacer { flex: 1; }

/* Unterseiten-Kopf: Zurück, Titel (klein „Hue“ + Name), Knöpfe rechts */
.hl-unterkopf { display: flex; align-items: center; gap: 14px; }
.hl-titel { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.hl-titel > span { font-size: 15px; font-weight: 600; color: var(--fd-muted); line-height: 1.1; }
.hl-titel h3 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Knöpfe */
.fd .hl-eckknopf { width: 56px; height: 56px; flex: none; border-radius: 16px; border: 1.5px solid var(--hl-rand); background: #fff; color: var(--hl-text2);
                   display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fd .hl-textknopf { height: 56px; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--hl-rand); background: #fff; color: var(--hl-text2);
                    display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.fd .hl-knopf { height: 56px; padding: 0 22px; border-radius: 16px; border: 1.5px solid var(--hl-rand); background: #fff; color: #15202B;
                display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.fd .hl-knopf.primaer { border-color: var(--fd-acc); background: var(--fd-acc); color: #fff; font-weight: 800; }
.fd .hl-knopf.gross { height: 64px; font-size: 19px; }
.fd .hl-knopf.gefahr { color: #A8322A; }
.fd .hl-knopf.gefahr.voll { border-color: #B42318; background: #B42318; color: #fff; }
.fd .hl-knopf:disabled, .fd .hl-mini:disabled { opacity: .4; cursor: default; }
.fd .hl-mini { width: 52px; height: 52px; flex: none; border: 0; border-radius: 14px; background: transparent; color: var(--fd-muted);
               display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.hl-mini-platz { width: 52px; height: 52px; flex: none; }
.fd .hl-mini.rand { border: 1.5px solid #DCDCE3; background: #fff; color: var(--hl-text2); }
.fd .hl-text-rot { height: 56px; padding: 0 12px; border: 0; background: transparent; font-size: 18px; font-weight: 700; color: #A8322A; cursor: pointer; }
.fd .hl-pille { height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--hl-rand); background: #fff; font-size: 17px; font-weight: 700; cursor: pointer; }
.fd .hl-plus { min-height: 62px; border-radius: 18px; border: 1.5px dashed #CFCFD8; background: transparent; font-size: 18px; font-weight: 700; color: var(--hl-text2); cursor: pointer; }
.hl-breit { grid-column: 1 / -1; }

/* Schalter (ein/aus) */
.fd .hl-schalter { position: relative; flex: none; width: 74px; height: 44px; border-radius: 999px; border: 0; background: #DCDCE3; cursor: pointer; padding: 0; }
.hl-schalter span { position: absolute; top: 4px; left: 4px; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.fd .hl-schalter.an { background: var(--fd-acc); }
.hl-schalter.an span { left: 34px; }
.fd .hl-schalter.klein { width: 60px; height: 36px; }
.hl-schalter.klein span { width: 28px; height: 28px; }
.hl-schalter.klein.an span { left: 28px; }

/* Prozent-Anzeige */
.hl-prozent { font-size: 29px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; line-height: 1; font-variant-numeric: tabular-nums; }
.hl-prozent small { font-size: 19px; font-weight: 600; letter-spacing: 0; }
.hl-aus { font-size: 19px; font-weight: 600; color: var(--fd-muted); white-space: nowrap; }
.hl-prozent.gross { font-size: 30px; }
.hl-aus.gross { font-size: 20px; }

/* Kacheln als Helligkeitsregler: Füllung = --hell, waagrecht wischen (rothen.js setzt .zieht + data-zieht) */
.hl-st, .hl-kind, .hl-raum { position: relative; overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.hl-fuellung { position: absolute; left: 0; top: 0; bottom: 0; width: var(--hell, 0%); background: var(--hl-warm); pointer-events: none; transition: width .25s; }
.hl-st:not(.an, .leuchtet) .hl-fuellung, .hl-kind:not(.an) .hl-fuellung, .hl-raum:not(.an) .hl-fuellung { width: 0; }
.zieht > .hl-fuellung { width: var(--hell, 0%) !important; background: var(--hl-warm-zieht); transition: none; }
:is(.hl-st, .hl-kind, .hl-raum).zieht::after { content: attr(data-zieht) " %"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
                                              padding: 4px 12px; border-radius: 12px; background: rgba(255,255,255,.85); font-size: 30px; font-weight: 800; color: #8A3F06; pointer-events: none; }
.zieht :is(.hl-prozent, .hl-aus, .hl-kind-pz, .hl-badge) { visibility: hidden; }

/* ───────────── Start: Lichtstimmungen ───────────── */
.hl-stimmungen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; flex: 0 1 auto; }
.fd .hl-st { height: 132px; border-radius: 22px; border: 2px solid transparent; background: var(--hl-flaeche); padding: 0; text-align: left; cursor: pointer; }
.fd .hl-st.an { border-color: var(--fd-acc); }
/* Räume der Stimmung leuchten (aber nicht genau wie gespeichert): ebenfalls umrandet, ohne „aktiv“ */
.fd .hl-st.leuchtet { border-color: var(--fd-acc); }
.hl-st.leuchtet .hl-st-ico { color: #C77A0A; }
.hl-st-innen { position: relative; height: 100%; padding: 16px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.hl-st-zeile { display: flex; align-items: center; gap: 13px; min-width: 0; }
.hl-st-zeile.unten { align-items: flex-end; justify-content: space-between; gap: 10px; }
.hl-st-ico { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff; color: #8A8E99; display: flex; align-items: center; justify-content: center; }
.hl-st.an .hl-st-ico { color: #C77A0A; }
.hl-st-name { font-size: 21px; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hl-badge { margin-left: auto; flex: none; padding: 5px 10px; border-radius: 999px; background: var(--fd-acc); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.hl-st-info { font-size: 15.5px; line-height: 1.3; color: #5C606B; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Alles aus: ruhige weisse Kacheln mit Rand (Entwurf AllesAus) */
.hl-stimmungen.alle-aus .hl-st { background: #fff; border: 1.5px solid var(--hl-rand); }
.hl-stimmungen.alle-aus .hl-st-ico { background: #F4F4F7; color: #6B6F7B; }
.hl-stimmungen.alle-aus .hl-kinder { background: #fff; border: 1.5px solid var(--hl-rand); }
.fd .hl-stimmungen.alle-aus .hl-kind { background: var(--hl-flaeche); }

/* Kinderzimmer wecken */
.hl-kinder { border-radius: 22px; background: var(--hl-flaeche); padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 13px; }
.hl-kinder-kopf { display: flex; align-items: center; gap: 12px; }
.fd .hl-kinder-titel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 13px; height: 42px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: #15202B; }
.hl-kinder-titel > .icon { color: #8A8E99; flex: none; }
.hl-kinder-titel b { font-size: 19px; font-weight: 800; white-space: nowrap; }
.hl-kinder-titel > span:not(.hl-chev) { font-size: 16px; color: var(--fd-muted); white-space: nowrap; }
.hl-chev { display: inline-flex; color: var(--fd-muted); transition: transform .15s; }
.hl-chev.offen { transform: rotate(90deg); }
.hl-kinder-raster { display: grid; gap: 10px; }
.fd .hl-kind { height: 68px; border-radius: 18px; border: 1.5px solid #ECECF1; background: #fff; padding: 0; text-align: left; cursor: pointer; }
.fd .hl-kind.an { border: 2px solid var(--fd-acc); background: var(--hl-warm); }
.hl-kind-innen { position: relative; height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.hl-kz { width: 40px; height: 40px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.hl-kz.klein { width: 32px; height: 32px; font-size: 12px; }
.hl-kind-name { font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hl-kind-pz { margin-left: auto; font-size: 17px; font-weight: 700; white-space: nowrap; color: var(--fd-muted); }
.hl-kind.an .hl-kind-pz { color: inherit; font-weight: 800; }
.hl-kind.zieht::after, .hl-raum.zieht::after { font-size: 24px; right: 10px; }

/* Alles aus / Alles ist aus */
.fd .hl-alles-aus { flex: none; height: 72px; border-radius: 20px; border: 0; background: #2A3038; color: #fff; display: flex; align-items: center; gap: 15px; padding: 0 26px; cursor: pointer; }
.hl-alles-aus b { font-size: 21px; font-weight: 800; }
.hl-alles-aus span { margin-left: auto; font-size: 16px; color: #B9BEC8; }
.hl-alles-ist-aus { flex: none; height: 72px; border-radius: 20px; border: 1.5px dashed #D9D9E1; background: var(--hl-flaeche); color: var(--hl-text2); display: flex; align-items: center; gap: 15px; padding: 0 26px; }
.hl-alles-ist-aus b { font-size: 21px; font-weight: 800; }
.hl-alles-ist-aus span { margin-left: auto; font-size: 16px; color: var(--fd-muted); }

/* Erweitert-Zeile */
.fd .hl-erweitert { flex: none; height: 66px; border-radius: 18px; border: 1.5px solid var(--hl-rand); background: #fff; display: flex; align-items: center; gap: 10px; padding: 0 20px; text-align: left; cursor: pointer; }
.hl-erweitert b { font-size: 19px; font-weight: 700; }
.hl-erweitert span { font-size: 16px; color: var(--fd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-erweitert .icon { margin-left: auto; flex: none; color: var(--fd-muted); }

/* Bewegung (unten) */
.hl-bewegung { flex: none; height: 52px; border-radius: 16px; background: #F3F5F7; color: var(--fd-muted); display: flex; align-items: center; gap: 13px; padding: 0 18px; }
.hl-bewegung b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-bewegung span { margin-left: auto; font-size: 16px; white-space: nowrap; }
.hl-bewegung.jetzt { background: #EEF8F2; color: #17694A; }
.hl-bewegung.jetzt span { color: #2E6B52; }

/* Fusszeile (unten in der Karte): Bewegung + Legende */
.hl-fusszeile { flex: none; margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.hl-fusszeile > .hl-hinweis { text-align: center; }

/* Bearbeiten (Stimmungen, Raum, Aufteilung): Karte über die ganze linke Seite */
.hm-raster:has(> .hl-voll) > .hm-karte:not(.hl-karte) { display: none; }
.hm-karte.hl-karte.hl-voll { grid-column: 1 / -1; padding: 24px 34px 26px; }
.hl-voll .hl-ed-raum, .hl-voll .hl-ed-wert { flex: 1 1 0; width: auto; min-width: 0; }
.hl-voll .hl-lampe-name { width: 380px; }

/* ───────────── Erweitert: alle Räume ───────────── */
.hl-gruppen { display: flex; flex-direction: column; gap: 12px; }
.hl-gruppen .hl-abschnitt:not(:first-child) { margin-top: 8px; }
.hl-raum-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.fd .hl-raum { height: 94px; border-radius: 18px; border: 1.5px solid #ECECF1; background: #fff; padding: 0; text-align: left; cursor: pointer; }
.fd .hl-raum.an { border: 2px solid var(--fd-acc); background: var(--hl-flaeche); }
.hl-raum-innen { position: relative; height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.hl-raum-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hl-raum-text b { font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-raum-info { font-size: 16px; color: var(--fd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-raum.an .hl-raum-info { color: var(--hl-text2); }

/* ───────────── Chips (Szenen, Reiter, Räume der Aufteilung) ───────────── */
.hl-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.fd .hl-chip { height: 50px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--hl-rand); background: #fff; font-size: 18px; font-weight: 600;
               display: inline-flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap; }
.fd .hl-chip.an { border-color: var(--fd-acc); background: var(--fd-acc); color: #fff; font-weight: 800; }
.fd .hl-chip.markiert { box-shadow: 0 0 0 3px var(--fd-acc-soft), 0 0 0 5px var(--fd-acc); }
.fd .hl-chip.neu, .fd .hl-chip.hierher { border-style: dashed; border-color: #CFCFD8; color: var(--hl-text2); }
.fd .hl-chip.hierher { border-color: var(--fd-acc); color: var(--fd-acc); font-weight: 700; }
.fd .hl-chip.raum { padding-left: 10px; }
.hl-chip-badge { font-size: 13px; font-weight: 800; background: rgba(255,255,255,.22); padding: 4px 10px; border-radius: 999px; }
.hl-reiter { flex: none; }

/* Formularfelder */
.fd .hl-feld { width: 100%; height: 56px; padding: 0 16px; border-radius: 14px; border: 1.5px solid #DCDCE3; background: #fff; font: inherit; font-size: 19px; font-weight: 600;
               color: #15202B; outline-color: var(--fd-acc); min-width: 0; }
.fd select.hl-feld { padding: 0 10px; }
.hl-feld-lbl { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 700; color: var(--hl-text2); min-width: 0; }
.hl-feld-lbl.klein { font-size: 13px; color: var(--fd-muted); gap: 3px; }
.hl-feld-lbl.klein .hl-feld { height: 52px; font-size: 18px; }

/* Eigene Auswahl (HueWahl) statt <select> */
.fd .hl-wahl { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.hl-wahl-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-wahl-text.leer { color: var(--fd-muted); font-weight: 500; }
.hl-wahl > .icon { flex: none; color: var(--fd-muted); transform: rotate(90deg); }
.fd .hl-wahl.hl-wahl-titel { height: 40px; width: auto; max-width: 520px; margin-top: 2px; padding: 0; border: 0; background: transparent; font-size: 24px; font-weight: 800; }
.fd-dialog.hl-wahl-dialog { width: 1100px; max-height: calc(100% - 80px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
                            padding: 20px 24px 22px; box-shadow: 0 18px 48px rgba(21,32,43,.28); }
.hl-wahl-dialog .fd-dialog-kopf h2 { font-size: 22px; }
.fd-dialog-hg.hl-wahl-hg { background: rgba(21,32,43,.18); }
.hl-wahl-raster { display: flex; flex-wrap: wrap; gap: 10px; }

/* Segment Szene | Helligkeit | Aus */
.hl-segment { display: flex; flex: none; padding: 4px; border-radius: 14px; border: 1.5px solid #DCDCE3; background: #fff; align-self: flex-end; }
.fd .hl-segment button { height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font-size: 16px; font-weight: 600; cursor: pointer; }
.fd .hl-segment button.an { background: var(--fd-acc); color: #fff; font-weight: 800; }
.fd .hl-segment button.an.hl-seg-aus { background: #2A3038; }

/* ───────────── Raum einstellen ───────────── */
.hl-raumwahl { display: flex; flex-direction: column; margin-right: auto; min-width: 0; font-size: 15px; font-weight: 600; color: var(--fd-muted); }
.fd .hl-raumwahl select { height: 40px; max-width: 420px; margin-top: 2px; padding: 0 4px 0 0; border: 0; background: transparent; font: inherit; font-size: 24px; font-weight: 800; color: #15202B; cursor: pointer; }
.hl-raum-seite { display: flex; flex-direction: column; gap: 14px; }
.hl-szene-zeile { display: flex; align-items: center; gap: 10px; }
.hl-szene-zeile .hl-feld { flex: 1; }
.hl-szene-name { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-lampen { display: flex; flex-direction: column; }
.hl-lampe { display: flex; align-items: center; gap: 16px; min-height: 62px; border-bottom: 1px solid #F0F0F4; }
.hl-lampe:last-of-type { border-bottom: 0; }
.fd .hl-farbpunkt { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--hl-rand); padding: 0; cursor: pointer; }
.fd .hl-farbpunkt:disabled { cursor: default; }
.hl-lampe-name { width: 270px; flex: none; font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-lampe:not(.an) .hl-lampe-name { color: var(--hl-text2); }
.hl-balken { flex: 1; min-width: 80px; height: 48px; display: flex; align-items: center; touch-action: pan-y; cursor: ew-resize; }
.hl-balken.leer { cursor: default; }
.hl-balken-spur { flex: 1; height: 10px; border-radius: 999px; background: #EFEFF3; overflow: hidden; }
.hl-balken-fuellung { display: block; width: var(--hell, 0%); height: 100%; background: #F2B84B; }
.hl-balken.zieht .hl-balken-spur { height: 14px; }
.hl-balken.zieht .hl-balken-fuellung { background: #E0A030; }
.hl-lampe-pz { width: 62px; flex: none; text-align: right; font-size: 17px; font-weight: 800; white-space: nowrap; }
.hl-lampe:not(.an) .hl-lampe-pz { font-weight: 600; color: var(--fd-muted); }
.hl-farben { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0 14px 50px; border-bottom: 1px solid #F0F0F4; }
.fd .hl-farbe { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--hl-rand); padding: 0; cursor: pointer; }
.hl-farben-trenner { width: 1px; height: 32px; background: var(--hl-rand); margin: 0 4px; }
.hl-farben-trenner:first-child { display: none; }

/* Fuss der Unterseiten */
.hl-fuss { flex: none; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid #F0F0F4; margin: 0; }
.hl-fuss-frage { font-size: 17px; color: var(--hl-text2); }
.hl-fuss-knoepfe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.hl-fuss-ok { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: #17694A; }
.hl-fuss-text { font-size: 16px; color: var(--hl-text2); }

/* ───────────── Stimmungen bearbeiten ───────────── */
.hl-ed { display: flex; flex-direction: column; gap: 12px; }
.hl-ed-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; margin-bottom: 6px; }
.hl-symbole { display: flex; gap: 6px; justify-content: flex-end; }
.fd .hl-symbol { width: 50px; height: 56px; border-radius: 14px; border: 1.5px solid var(--hl-rand); background: #fff; color: var(--hl-text2); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fd .hl-symbol.an { border: 2px solid var(--fd-acc); background: var(--fd-acc-soft); color: var(--fd-acc); }
.hl-ed-schritt { display: flex; align-items: flex-end; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--hl-flaeche); }
.hl-ed-raum { width: 196px; flex: none; }
.hl-ed-wert { flex: 1; min-width: 0; }
.hl-ed-hell { display: flex; align-items: center; gap: 10px; height: 52px; }
.hl-ed-hell input { flex: 1; min-width: 0; accent-color: var(--fd-acc); height: 44px; touch-action: none; }
.hl-ed-hell b { width: 62px; flex: none; text-align: right; font-size: 18px; font-weight: 800; color: #15202B; }
.hl-ed-aus { align-self: center; padding-top: 18px; font-size: 17px; color: var(--fd-muted); }
.hl-ed-fuss { flex-direction: row; align-items: center; gap: 8px; }
.hl-leer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-size: 18px; color: var(--fd-muted); }

/* ───────────── Aufteilung bearbeiten ───────────── */
.hl-auft { display: flex; flex-direction: column; gap: 14px; }
.hl-auft-gruppe { border-radius: 20px; background: var(--hl-flaeche); padding: 13px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.hl-auft-gruppe.ausgeblendet { background: transparent; border: 1.5px dashed #D9D9E1; }
.hl-auft-kopf { display: flex; align-items: center; gap: 8px; }
.hl-auft-kopf .hl-feld { flex: 1; height: 48px; font-size: 19px; font-weight: 800; }
.hl-auft-gruppe.ausgeblendet .hl-auft-kopf { gap: 12px; color: var(--hl-text2); }
.hl-auft-gruppe.ausgeblendet .hl-auft-kopf b { font-size: 19px; font-weight: 800; }
.fd .hl-auft-gruppe.ausgeblendet .hl-chip.raum { background: var(--hl-flaeche); color: var(--hl-text2); }

/* ═════════════ Dunkelmodus ═════════════ */
:is(.tb-wisch, .tb-ueber).dunkel .hm-karte.hl-karte { --hl-warm: #47305C; --hl-warm-zieht: #6A4787; --hl-flaeche: #231F2B; --hl-rand: #3F3A4A; --hl-text2: #CFC6DA;
    --hl-lila: #C9A0DC; --hl-lila-bg: #2C2437; --hl-lila-rand: #8E5BA6; }
:is(.tb-wisch, .tb-ueber).dunkel .hl-karte .fd-k-ico.licht { background: #3A2647; color: var(--hl-lila); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-karte .fd-k-ico.licht.hl-ico-aus { background: var(--dk-flaeche2); color: var(--fd-muted); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-info { background: var(--dk-gruen-bg); color: var(--dk-gruen-text); }

/* Knöpfe */
:is(.tb-wisch, .tb-ueber).dunkel .fd :is(.hl-eckknopf, .hl-textknopf, .hl-knopf, .hl-pille, .hl-symbol) { background: var(--dk-flaeche); border-color: var(--dk-rand); color: var(--dk-text); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-knopf.primaer { background: var(--dk-voll); border-color: var(--dk-voll); color: #fff; }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-knopf.gefahr { color: var(--dk-fehler); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-knopf.gefahr.voll { background: var(--dk-fehler-bg); border-color: var(--dk-fehler); color: var(--dk-fehler-text); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-mini.rand { background: var(--dk-flaeche2); border-color: var(--dk-rand); color: var(--dk-text); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-text-rot { color: var(--dk-fehler); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-plus { border-color: var(--dk-rand); color: #C3CDD6; }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-schalter { background: var(--dk-rand); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-schalter span { background: #E9EEF2; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-schalter.an { background: var(--dk-voll); }

/* Kacheln */
:is(.tb-wisch, .tb-ueber).dunkel :is(.hl-st, .hl-kind, .hl-raum).zieht::after { background: rgba(20,14,26,.8); color: var(--dk-acc-text); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-st { background: var(--hl-flaeche); }
:is(.tb-wisch, .tb-ueber).dunkel .fd :is(.hl-st.an, .hl-st.leuchtet) { background: var(--hl-lila-bg); border-color: var(--hl-lila-rand); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-st.leuchtet .hl-st-ico { background: #3A2647; color: var(--hl-lila); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-st-ico { background: #2E2938; color: #8C8499; }
:is(.tb-wisch, .tb-ueber).dunkel .hl-st.an .hl-st-ico { background: #3A2647; color: var(--hl-lila); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-badge { background: var(--dk-voll); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-st-info { color: var(--fd-muted); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-stimmungen.alle-aus .hl-st { background: var(--dk-karte); border-color: var(--dk-rand); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-stimmungen.alle-aus .hl-st-ico { background: var(--dk-flaeche); color: var(--fd-muted); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-stimmungen.alle-aus .hl-kinder { background: var(--dk-karte); border-color: var(--dk-rand); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-kinder { background: var(--hl-flaeche); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-kinder-titel { color: var(--dk-text); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-kinder-titel > .icon { color: var(--fd-muted); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-kind { background: #2B2635; border-color: var(--hl-rand); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-kind.an { background: var(--hl-warm); border-color: var(--hl-lila-rand); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-raum { background: transparent; border-color: var(--dk-rand); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-raum.an { background: var(--hl-lila-bg); border-color: var(--hl-lila-rand); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-raum.an .hl-raum-info { color: #C3CDD6; }

/* Alles aus, Erweitert, Bewegung */
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-alles-aus { background: #303B46; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-alles-aus span { color: var(--fd-muted); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-alles-ist-aus { background: var(--dk-flaeche); border-color: var(--dk-rand); color: var(--dk-text); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-erweitert { background: transparent; border-color: var(--dk-rand); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-bewegung { background: var(--dk-flaeche); color: var(--fd-muted); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-bewegung.jetzt { background: var(--dk-gruen-bg); color: var(--dk-gruen-text); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-bewegung.jetzt span { color: var(--dk-gruen); }

/* Chips, Felder, Segment */
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-chip { background: var(--dk-flaeche); border-color: var(--dk-rand); color: var(--dk-text); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-chip.an { background: var(--dk-voll); border-color: var(--dk-voll); color: #fff; }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-chip.markiert { box-shadow: 0 0 0 3px var(--dk-karte), 0 0 0 5px var(--fd-acc); }
:is(.tb-wisch, .tb-ueber).dunkel .fd :is(.hl-chip.neu, .hl-chip.hierher) { background: transparent; border-color: var(--dk-rand); color: #C3CDD6; }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-chip.hierher { border-color: var(--fd-acc); color: var(--fd-acc); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-feld { background: var(--dk-tief); border-color: var(--dk-rand); color: var(--dk-text); color-scheme: dark; }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-feld::placeholder { color: #7D8A97; }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-wahl.hl-wahl-titel { background: transparent; color: var(--dk-text); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-segment { background: var(--dk-tief); border-color: var(--dk-rand); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-segment button { color: var(--dk-text); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-segment button.an { background: var(--dk-voll); color: #fff; }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-segment button.an.hl-seg-aus { background: #4A5560; }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-symbol.an { background: var(--fd-acc-soft); border-color: var(--fd-acc); color: var(--dk-acc-text); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-ed-hell input { accent-color: var(--fd-acc); color-scheme: dark; }
:is(.tb-wisch, .tb-ueber).dunkel .hl-ed-hell b { color: var(--dk-text); }

/* Raum einstellen */
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-raumwahl select { color: var(--dk-text); color-scheme: dark; }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-raumwahl select option { background: var(--dk-karte); color: var(--dk-text); }
:is(.tb-wisch, .tb-ueber).dunkel :is(.hl-lampe, .hl-farben) { border-bottom-color: var(--fd-line); }
:is(.tb-wisch, .tb-ueber).dunkel .fd :is(.hl-farbpunkt, .hl-farbe) { border-color: var(--dk-karte); box-shadow: 0 0 0 1.5px var(--dk-rand); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-balken-spur { background: var(--dk-flaeche2); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-balken-fuellung { background: #A874C2; }
:is(.tb-wisch, .tb-ueber).dunkel .hl-balken.zieht .hl-balken-fuellung { background: var(--hl-lila); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-fuss { border-top-color: var(--fd-line); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-fuss-ok { color: var(--dk-gruen-text); }

/* Aufteilung */
:is(.tb-wisch, .tb-ueber).dunkel .hl-auft-gruppe { background: var(--dk-flaeche); }
:is(.tb-wisch, .tb-ueber).dunkel .hl-auft-gruppe.ausgeblendet { background: transparent; border-color: var(--dk-rand); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-auft-gruppe .hl-chip.raum { background: var(--dk-flaeche2); }
:is(.tb-wisch, .tb-ueber).dunkel .fd .hl-auft-gruppe.ausgeblendet .hl-chip.raum { background: var(--dk-flaeche); color: #C3CDD6; }
