/* Rand: Inhalt hält überall mindestens 18 px Abstand zum Fensterrand (Alex, 23.10.2026). Fenster fast so hoch wie der Bildschirm (Alex, 23.10.2026). */
/* Gemeinsames Einstellungsfenster, kompakt im Stil von carosclass.com/aquarium.html (Alex, 23.10.2026).
   Gilt für jedes .tk-fenster, an dem tk-einstellungen.js eingerichtet wurde (Klasse .tke).
   Knöpfe im Fenster dürfen kleiner als 44 px sein (Alex, 23.10.2026). Tafel, Leiste und Spielknöpfe nicht. */
html .tk-fenster.tke{
  --tke-ink:#1c2230;--tke-muted:#6b7385;--tke-line:#e6e8ef;--tke-soft:#f0f1f6;--tke-card:#f7f8fb;--tke-card-line:#e3e6ee;
  --tke-akzent:#e11d48;--tke-akzent-soft:#ffe4ea;--tke-ok:#16a34a;--tke-ok-soft:#dcfce7;
  font-family:Rubik,system-ui,sans-serif;font-size:13px;color:var(--tke-ink)}
html body .tk-fenster.tke.tke:not([hidden]):not(dialog):not([popover]),html body dialog.tk-fenster.tke.tke[open]{display:flex!important}
html body .tk-fenster.tke.tke:not([hidden]){
  flex-direction:column!important;gap:0!important;
  width:min(520px,calc(100vw - 24px))!important;height:calc(100dvh - var(--tk-leiste-h,68px) - 24px)!important;max-height:calc(100dvh - var(--tk-leiste-h,68px) - 24px)!important;
  padding:0 0 16px!important;overflow:auto!important;overscroll-behavior:contain;border-radius:20px!important;
  box-shadow:0 2px 6px rgba(20,27,45,.08),0 24px 48px -16px rgba(20,27,45,.35)!important;background:#fff!important}
html .tk-fenster.tke>*{grid-column:auto!important;grid-row:auto!important;margin-left:18px!important;margin-right:18px!important;flex:none}
html .tk-fenster.tke>.tke-oben{order:0!important;position:sticky;top:0;z-index:3;margin:0!important;padding:14px 18px 0;background:#fff;border-bottom:1px solid var(--tke-line)}
html body .tk-fenster.tke .tke-aus.tke-aus,html body .tk-fenster.tke .tke-weg.tke-weg,html body .tk-fenster.tke .tke-nein.tke-nein{display:none!important}
html .tk-fenster.tke .tke-sym{width:1em;height:1em;flex:none}

/* Kopf */
.tke-kopf{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
html .tk-fenster.tke .tke-titel{margin:0;font-family:Baloo,"Baloo Tamma 2",system-ui,sans-serif;font-size:1.15rem;font-weight:800;line-height:1.1}
.tke-unter{margin:1px 0 0;color:var(--tke-muted);font-size:.72rem}
html .tk-fenster.tke .tke-zu{display:grid;place-items:center;flex:none;width:32px;height:32px;min-height:0;padding:0;border:0;border-radius:50%;background:var(--tke-soft);font-size:14px;cursor:pointer}

/* Suche */
.tke-suche{position:relative;margin-top:8px}
html .tk-fenster.tke .tke-such{width:100%;min-height:34px;padding:0 34px 0 32px;border:1.5px solid var(--tke-card-line);border-radius:10px;background:var(--tke-soft);color:var(--tke-ink);font:inherit;font-size:.8rem}
.tke-such:focus{outline:none;border-color:var(--tke-akzent)!important;background:#fff!important}
.tke-such::-webkit-search-cancel-button{display:none}
.tke-suche>.tke-sym{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:15px;opacity:.75;pointer-events:none}
html .tk-fenster.tke .tke-such-weg{position:absolute;right:0;top:0;display:grid;place-items:center;width:34px;height:34px;min-height:0;padding:0;border:0;background:transparent;font-size:12px;cursor:pointer}
.tke-such-weg[hidden]{display:none!important}

/* Reiter */
.tke-reiter{display:flex;gap:2px;margin-top:4px}
html .tk-fenster.tke .tke-reiter button{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:44px;padding:5px 2px 7px;border:0;border-radius:0;background:transparent;color:var(--tke-muted);font:inherit;font-size:.7rem;font-weight:600;cursor:pointer}
.tke-reiter button .tke-sym{font-size:17px}
.tke-reiter button[aria-selected="true"]{color:var(--tke-akzent)!important}
.tke-reiter button[aria-selected="true"]::after{content:"";position:absolute;left:22%;right:22%;bottom:-1px;height:3px;border-radius:3px;background:var(--tke-akzent)}
.tke-reiter button[hidden]{display:none!important}
html .tk-fenster.tke.tke-flach .tke-reiter,html .tk-fenster.tke.tke-sucht .tke-reiter{display:none}
.tke-leer{order:9999!important;margin-top:20px!important;text-align:center;color:var(--tke-muted);font-size:.8rem}
.tke-leer[hidden]{display:none!important}
html .tk-fenster.tke [data-tke-erste]::before{content:attr(data-tke-erste);display:block;margin:14px 0 4px;font-family:Baloo,"Baloo Tamma 2",system-ui,sans-serif;font-size:.95rem;font-weight:800;color:var(--tke-ink)}

/* Inhalte der Module: Überschriften, Abstände */
html .tk-fenster.tke>:not(.tke-oben):first-of-type{margin-top:10px}
html .tk-fenster.tke>h3,html .tk-fenster.tke>h4,html .tk-fenster.tke .menu-title,html .tk-fenster.tke section>h3,html .tk-fenster.tke section>h4,html .tk-fenster.tke .gsr-lu-allg>h3{
  margin-top:12px!important;margin-bottom:5px!important;color:var(--tke-muted)!important;font-family:Rubik,system-ui,sans-serif!important;font-size:.62rem!important;font-weight:700!important;letter-spacing:.08em;text-transform:uppercase;line-height:1.3}
html .tk-fenster.tke .menu-group-title{margin:0 0 3px!important;font-size:.6rem!important;letter-spacing:.07em}
html .tk-fenster.tke p,html .tk-fenster.tke small{font-size:.74rem;line-height:1.35}
html .tk-fenster.tke .menu-note{margin-top:4px!important;margin-bottom:4px!important;color:var(--tke-muted);font-size:.72rem!important}
html .tk-fenster.tke section{margin-top:0!important;margin-bottom:0!important;padding:0!important;border:0!important;background:none!important}

/* Umschalter und Vorgaben als Pillen */
html .tk-fenster.tke .segmented{display:flex!important;flex-wrap:wrap;align-items:center;gap:5px!important;padding:0!important;background:none!important;border:0!important;margin-top:0!important;margin-bottom:4px!important}
html .tk-fenster.tke .segmented>button,html .tk-fenster.tke [role=group]>button,html .tk-fenster.tke [role=radiogroup]>button{
  min-height:30px!important;padding:0 11px!important;border:1.5px solid var(--tke-card-line)!important;border-radius:999px!important;background:var(--tke-card)!important;color:var(--tke-ink)!important;font-size:.76rem!important;font-weight:600!important;box-shadow:none!important}
html .tk-fenster.tke .segmented>button[aria-pressed="true"],html .tk-fenster.tke [role=group]>button[aria-pressed="true"],html .tk-fenster.tke [role=radiogroup]>button[aria-checked="true"],html .tk-fenster.tke [role=group]>button.is-active{
  border-color:var(--tke-akzent)!important;background:var(--tke-akzent-soft)!important;color:var(--tke-akzent)!important}
html .tk-fenster.tke .segmented>*{flex:0 0 auto!important;width:auto!important}
html .tk-fenster.tke .segmented label{margin:0!important;display:inline-flex;align-items:center;gap:5px;padding-right:4px!important;min-height:30px;padding:2px 2px 2px 10px;border:1.5px solid var(--tke-card-line);border-radius:999px;background:var(--tke-card);font-size:.76rem;font-weight:600}
html .tk-fenster.tke .segmented label input{width:6ch!important;min-height:26px!important;padding:0 6px!important;border:1.5px solid var(--tke-card-line)!important;border-radius:999px!important;background:#fff!important;font:inherit;font-size:.8rem!important;font-weight:700;text-align:center;box-shadow:none!important}
html .tk-fenster.tke .segmented label input:focus{outline:none;border-color:var(--tke-akzent)!important}
html .tk-fenster.tke .segmented label.is-selected{border-color:var(--tke-akzent);background:var(--tke-akzent-soft)}

/* Zahlenfeld mit − und + */
.tke-stepper{display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:999px;background:var(--tke-soft)}
html .tk-fenster.tke .tke-schritt{display:grid;place-items:center;width:26px;height:26px;min-height:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#fff!important;color:var(--tke-ink);font-size:.95rem!important;font-weight:600;line-height:1;box-shadow:0 1px 2px rgba(0,0,0,.12)!important;cursor:pointer}
html .tk-fenster.tke .tke-stepper input{width:6ch!important;min-width:0;min-height:26px!important;padding:0 2px!important;border:2px solid transparent!important;border-radius:8px!important;background:transparent!important;color:var(--tke-ink);font:inherit;font-size:.85rem!important;font-weight:700;text-align:center;font-variant-numeric:tabular-nums;box-shadow:none!important}
html .tk-fenster.tke .tke-stepper input:focus{outline:none;border-color:var(--tke-akzent)!important;background:#fff!important}
html .tk-fenster.tke .tke-stepper input:invalid{border-color:#ea6c0c!important}

/* Aufgaben als Kacheln mit Haken */
/* Aufgaben füllen die Breite: so viele Spalten, wie in das Fenster passen (Alex, 23.10.2026: „so viel ungenutzter Platz“). */
html .tk-fenster.tke .menu-list{columns:auto!important;display:block}
html .tk-fenster.tke .menu-list .menu-group{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:4px!important;margin-bottom:8px!important}
html .tk-fenster.tke .menu-list .menu-group>.menu-group-title{grid-column:1/-1}
html .tk-fenster.tke .menu-item{min-width:0;min-height:30px!important;margin:0!important;padding:3px 8px!important;gap:7px!important;border:1.5px solid var(--tke-card-line);border-radius:10px!important;background:var(--tke-card);font-size:.76rem!important;break-inside:avoid}
html .tk-fenster.tke .menu-item:has(input:checked){border-color:var(--tke-ok);background:#fff}
html .tk-fenster.tke .menu-box{width:18px!important;height:18px!important;border-radius:6px!important}
html .tk-fenster.tke .menu-box svg{width:16px!important;height:16px!important}

/* Schalterzeilen */
html .tk-fenster.tke .menu-switch{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:6px!important;margin-bottom:0!important;padding:6px 10px!important;border:1px solid var(--tke-card-line);border-radius:11px!important;background:var(--tke-card)!important}
html .tk-fenster.tke .menu-switch-text b{font-size:.8rem!important}
html .tk-fenster.tke .menu-switch-text small{font-size:.68rem!important}
html .tk-fenster.tke .switch-track{width:38px!important;height:22px!important}
html .tk-fenster.tke .switch-track::after{top:3px!important;left:3px!important;width:16px!important;height:16px!important}
html .tk-fenster.tke .menu-switch input:checked+.switch-track::after{transform:translateX(16px)!important}

/* Knöpfe und Auswahl in Abschnitten */
html .tk-fenster.tke section button:not(.tke-schritt):not([role=tab]),html .tk-fenster.tke .menu-reset,html .tk-fenster.tke .gsr-lu-allg button{
  min-height:30px!important;padding:3px 11px!important;border-radius:9px!important;font-size:.76rem!important}
html .tk-fenster.tke select{min-height:30px!important;padding:2px 8px!important;border-radius:9px!important;font-size:.76rem!important}
html .tk-fenster.tke .menu-reset{align-self:flex-start;margin-top:8px!important;border:1.5px solid var(--tke-card-line)!important;background:var(--tke-card)!important}
html .tk-fenster.tke .gsr-lu-allg .zeile{min-height:36px!important;padding:3px 0!important}
html .tk-fenster.tke label{font-size:.78rem}

/* Fertiger Zahlen-Baustein für neue Module */
.tke-zahlwahl{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.tke-chips{display:flex;flex-wrap:wrap;gap:5px}
.tke-zahlfeld{display:inline-flex;align-items:center;gap:8px;padding:2px 2px 2px 10px;border:1px solid var(--tke-card-line);border-radius:999px;background:var(--tke-card);font-size:.78rem;font-weight:600}
.tke-hinweis{flex-basis:100%;min-height:1.2em;margin:0;color:var(--tke-muted);font-size:.7rem}
.tke-hinweis.tke-fehler{color:#b45309;font-weight:600}


/* Moderne Bedienelemente für Bestandsabschnitte (Alex, 24.10.2026: „nutze bitte moderne Möglichkeiten“).
   Häkchen werden Schalter, Auswahllisten Pillen, Umschaltgruppen ein Segment-Schalter, Ein-Aus-Knöpfe Schalterzeilen. */
html .tk-fenster.tke section label:has(> input[type=checkbox]),
html .tk-fenster.tke section label:has(> select){
  display:flex!important;align-items:center;justify-content:space-between;gap:10px;min-height:40px;margin:4px 0 0!important;padding:5px 6px 5px 10px!important;
  border:1px solid var(--tke-card-line);border-radius:11px;background:var(--tke-card);font-size:.8rem!important;font-weight:600;cursor:pointer}
html .tk-fenster.tke section label[hidden]{display:none!important}
html .tk-fenster.tke input[type=checkbox]:not(.menu-item input):not(.menu-switch input){
  -webkit-appearance:none;appearance:none;flex:none;width:38px!important;height:22px!important;min-width:0!important;min-height:0!important;max-height:22px!important;padding:0!important;margin:0!important;border:0!important;border-radius:999px!important;cursor:pointer;
  background:radial-gradient(circle 8px at 11px 50%,#fff 96%,transparent 100%),#cfd4e0!important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)!important;transition:background .15s}
html .tk-fenster.tke input[type=checkbox]:not(.menu-item input):not(.menu-switch input):checked{
  background:radial-gradient(circle 8px at 27px 50%,#fff 96%,transparent 100%),var(--tke-ok)!important}
html .tk-fenster.tke input[type=checkbox]:focus-visible{outline:3px solid #2563eb!important;outline-offset:2px}
html .tk-fenster.tke section select{
  -webkit-appearance:none;appearance:none;max-width:60%;min-height:28px!important;padding:2px 28px 2px 12px!important;border:1.5px solid var(--tke-card-line)!important;border-radius:999px!important;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236b7385' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center/10px 7px!important;
  color:var(--tke-ink);font:inherit;font-size:.78rem!important;font-weight:600;cursor:pointer}
/* Umschaltgruppe mit mehreren Knöpfen: Segment-Schalter */
html .tk-fenster.tke section [role=group]:has(> button:nth-child(2)){display:inline-flex!important;gap:2px!important;padding:3px!important;border-radius:999px!important;background:var(--tke-soft)!important;margin:2px 0 6px!important}
html .tk-fenster.tke section [role=group]:has(> button:nth-child(2))>button{min-height:28px!important;padding:0 14px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:var(--tke-muted)!important;font-size:.78rem!important;font-weight:600!important;box-shadow:none!important}
html .tk-fenster.tke section [role=group]:has(> button:nth-child(2))>button[aria-pressed="true"]{background:#fff!important;color:var(--tke-ink)!important;box-shadow:0 1px 3px rgba(20,27,45,.16)!important}
/* Einzelner Ein-Aus-Knopf: Schalterzeile wie die Häkchen */
html .tk-fenster.tke section div:has(> button[aria-pressed]:only-child){margin:4px 0 0!important}
html .tk-fenster.tke section div > button[aria-pressed]:only-child{
  position:relative;display:flex!important;align-items:center;width:100%;min-height:40px!important;padding:5px 58px 5px 10px!important;border:1px solid var(--tke-card-line)!important;border-radius:11px!important;
  background:var(--tke-card)!important;color:var(--tke-ink)!important;font-size:.8rem!important;font-weight:600!important;text-align:left;box-shadow:none!important}
html .tk-fenster.tke section div > button[aria-pressed]:only-child::after{content:"";position:absolute;right:6px;top:50%;width:38px;height:22px;margin-top:-11px;border-radius:999px;
  background:radial-gradient(circle 8px at 11px 50%,#fff 96%,transparent 100%),#cfd4e0;transition:background .15s}
html .tk-fenster.tke section div > button[aria-pressed="true"]:only-child::after{background:radial-gradient(circle 8px at 27px 50%,#fff 96%,transparent 100%),var(--tke-ok)}
/* Einfache Aktionsknöpfe (Einpassen, Erklärung anhören): kleine Pillen */
html .tk-fenster.tke section button:not([aria-pressed]):not(.tke-schritt):not([role=tab]):not(.menu-seg>button):not(.gsrh-aus){
  display:inline-flex;align-items:center;gap:6px;margin-top:6px!important;padding:3px 12px!important;border:1.5px solid var(--tke-card-line)!important;border-radius:999px!important;background:#fff!important;font-weight:600!important}
html .tk-fenster.tke section button:not([aria-pressed]) svg{width:15px;height:15px}
html .tk-fenster.tke .zdt-layout-note{margin:6px 2px 0!important;color:var(--tke-muted);font-size:.72rem!important}


/* ---------- Automatik: Einstellungsfenster aller Tafeln mit der gemeinsamen Leiste (Alex, 24.10.2026: „roll diese menü bitte auf alle aus“) ----------
   Lage wie Zahl des Tages: unten links knapp über der Leiste (--tke-unten setzt tk-einstellungen.js), fast volle Höhe, kein dunkler Schleier.
   Spalten der Bestandsfenster werden aufgelöst (display:contents), Abschnitte folgen per order den Reitern. */
html body .tk-fenster.tke-auto.tke.tke:not([hidden]){
  position:fixed!important;inset:auto!important;left:12px!important;top:24px!important;right:auto!important;bottom:var(--tke-unten,80px)!important;margin:0!important;transform:none!important;
  height:auto!important;max-height:none!important;min-height:0!important;z-index:90;border:2px solid var(--tk-linie,#1c2230)!important;color:var(--tke-ink)}
html body dialog.tk-fenster.tke-auto::backdrop{background:transparent}
html body .tk-fenster.tke-auto .tke-inhalt.tke-inhalt{display:flex!important;flex-direction:column!important;flex:none!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;margin-top:4px!important;border:0!important;background:none!important;columns:auto!important}
html body .tk-fenster.tke-auto .tke-huelle.tke-huelle{display:contents!important}
html body .tk-fenster.tke-auto [data-tke-teil]:not(h3):not(h4):not(p):not(.menu-title):not(.menu-group-title){margin-top:0!important;margin-bottom:0!important;padding:10px 0 12px!important;border:0!important;border-bottom:1px solid var(--tke-line)!important;background:none!important;min-width:0}
html body .tk-fenster.tke-auto.tke [data-tke-teil]>h3,html body .tk-fenster.tke-auto.tke [data-tke-teil]>h4,html body .tk-fenster.tke-auto.tke [data-tke-teil]>.menu-group-title{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;margin:0 0 6px!important;color:var(--tke-muted)!important;font-family:Rubik,system-ui,sans-serif!important;font-size:.64rem!important;font-weight:700!important;letter-spacing:.07em;text-transform:uppercase;line-height:1.3}
html body .tk-fenster.tke-auto.tke [data-tke-teil] h3 :is(span,small,i){font-weight:600;letter-spacing:.02em;text-transform:none}
html body .tk-fenster.tke-auto.tke p.menu-title[data-tke-teil]{margin:14px 0 2px!important;color:var(--tke-ink)!important;font-family:Baloo,"Baloo Tamma 2",system-ui,sans-serif!important;font-size:.95rem!important;font-weight:800!important;text-transform:none}
/* Tippziele im Fenster kompakt (Ausnahme 44 px, Alex 23.10.2026); raum.css zieht sonst alles auf 44 px */
html body .tk-fenster.tke-auto.tke.tke :is(button,select,input:not([type=checkbox]):not([type=radio])){min-height:0;min-width:0}
/* Umschalter der Bestandstafeln (.menu-seg): Segment-Schalter */
html body .tk-fenster.tke-auto.tke .menu-seg{display:inline-flex!important;flex-wrap:wrap;align-items:center;gap:2px!important;max-width:100%;margin:0!important;padding:3px!important;border:0!important;border-radius:16px!important;background:var(--tke-soft)!important;width:auto!important}
html body .tk-fenster.tke-auto.tke .menu-seg+.menu-seg{margin-top:6px!important}
html body .tk-fenster.tke-auto.tke .menu-seg>button{flex:0 1 auto!important;width:auto!important;min-height:28px!important;min-width:0!important;margin:0!important;padding:0 12px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:var(--tke-muted)!important;font-family:Rubik,system-ui,sans-serif!important;font-size:.78rem!important;font-weight:600!important;line-height:1.15!important;box-shadow:none!important}
html body .tk-fenster.tke-auto.tke .menu-seg>button:is([aria-pressed="true"],[aria-checked="true"],.is-active,.on,.active,[aria-selected="true"]){background:#fff!important;color:var(--tke-ink)!important;box-shadow:0 1px 3px rgba(20,27,45,.16)!important}
html body .tk-fenster.tke-auto.tke .menu-seg>button[hidden]{display:none!important}
html body .tk-fenster.tke-auto.tke .menu-seg>button svg{width:16px;height:16px}
html body .tk-fenster.tke-auto.tke .menu-seg .seg-icon{display:none}
html body .tk-fenster.tke-auto.tke .menu-seg-op>button{min-width:34px!important;font-family:Baloo,"Baloo Tamma 2",system-ui,sans-serif!important;font-size:1rem!important;font-weight:800!important}
html body .tk-fenster.tke-auto.tke .menu-seg :is(input,select){min-height:26px!important;font-size:.78rem!important}
/* Häkchen-Kacheln direkt im Abschnitt: Raster ohne Leerraum */
html body .tk-fenster.tke-auto.tke [data-tke-teil]:has(>label.menu-item){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:4px}
html body .tk-fenster.tke-auto.tke label.menu-item{min-width:0;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
html body .tk-fenster.tke-auto.tke [data-tke-teil]:has(>label.menu-item)>:not(label.menu-item){grid-column:1/-1}
html body .tk-fenster.tke-auto.tke .menu-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(136px,1fr));gap:4px!important;columns:auto!important}
html body .tk-fenster.tke-auto.tke .menu-list>:is(.menu-group,.menu-group-title,p,h3,h4){grid-column:1/-1}
/* Hinweise klein und ruhig */
html body .tk-fenster.tke-auto.tke :is(.menu-hint,.menu-note,.menu-stufe){margin:6px 0 0!important;padding:0!important;border:0!important;background:none!important;color:var(--tke-muted)!important;font-size:.72rem!important;line-height:1.35!important}
html body .tk-fenster.tke-auto.tke .gsrh-aus{min-height:0!important;margin:0 0 0 6px!important;padding:0!important;border:0!important;background:none!important;color:var(--tke-muted)!important;font-size:.68rem!important;text-decoration:underline;box-shadow:none!important}
html body .tk-fenster.tke-auto.tke [data-tke-teil] :is(input[type=text],input[type=number],input:not([type])){min-height:28px!important;padding:0 8px!important;border:1.5px solid var(--tke-card-line)!important;border-radius:9px!important;font-size:.8rem!important}
/* Fuß: nur noch „Zurück zur Grundauswahl“ und Aktionen, „Fertig“ ersetzt das ✕ */
html body .tk-fenster.tke-auto .tk-fenster-fuss{display:flex!important;flex-wrap:wrap;gap:6px;justify-content:flex-start!important;margin-top:auto!important;padding:12px 0 0!important;border:0!important;border-top:1px solid var(--tke-line)!important;background:none!important}
html body .tk-fenster.tke-auto .tk-fenster-fuss:not(:has(>button:not(.tke-weg):not([hidden]))){display:none!important}
html body .tk-fenster.tke-auto .tk-fenster-fuss>button{flex:none!important;max-width:none!important;min-height:32px!important;margin:0!important;padding:0 14px!important;border:1.5px solid var(--tke-card-line)!important;border-radius:999px!important;background:#fff!important;color:var(--tke-ink)!important;font-size:.78rem!important;font-weight:600!important}
html body .tk-fenster.tke-auto .tk-fenster-fuss>button[hidden]{display:none!important}
/* Viele Knöpfe in einer Gruppe (Buchstabenwahl, Zeitvorgaben): umbrechen statt aus dem Fenster ragen */
html body .tk-fenster.tke-auto.tke [role=group],html body .tk-fenster.tke-auto.tke [role=radiogroup]{flex-wrap:wrap!important;max-width:100%!important;width:auto!important;min-width:0!important}
html body .tk-fenster.tke-auto.tke section [role=group]:has(>button:nth-child(7)){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(42px,1fr))!important;border-radius:14px!important;width:100%!important}
html body .tk-fenster.tke-auto.tke section [role=group]:has(>button:nth-child(7))>button{padding:0 6px!important}
/* Überschriften in Feldgruppen (legend) wie Abschnittsüberschriften */
html body .tk-fenster.tke-auto.tke legend{margin:0 0 6px!important;padding:0!important;color:var(--tke-muted)!important;font-family:Rubik,system-ui,sans-serif!important;font-size:.64rem!important;font-weight:700!important;letter-spacing:.07em;text-transform:uppercase;line-height:1.3}
html body .tk-fenster.tke-auto.tke fieldset{min-width:0;margin:0 0 8px!important;padding:0!important;border:0!important}
/* Auswahllisten überall als Pille; in schmalen Karten unter die Beschriftung umbrechen statt den Wert abzuschneiden */
html body .tk-fenster.tke-auto.tke select{
  -webkit-appearance:none;appearance:none;min-width:0;max-width:100%!important;min-height:28px!important;padding:2px 28px 2px 12px!important;border:1.5px solid var(--tke-card-line)!important;border-radius:999px!important;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236b7385' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center/10px 7px!important;
  color:var(--tke-ink)!important;font:inherit;font-size:.78rem!important;font-weight:600;cursor:pointer;box-shadow:none!important}
html body .tk-fenster.tke-auto.tke label:has(>select){flex-wrap:wrap}
html body .tk-fenster.tke-auto.tke label>select{flex:0 1 auto!important;height:auto!important}
/* Fenster ohne eigenen Inhaltsbereich: Abschnitte halten denselben Rand */
html body .tk-fenster.tke-auto.tke-ohne-inhalt.tke.tke:not([hidden]){padding:0 18px 16px!important}
html body .tk-fenster.tke-auto.tke-ohne-inhalt>*,html body .tk-fenster.tke-auto.tke-ohne-inhalt .tke-huelle>*{margin-left:0!important;margin-right:0!important;max-width:100%;box-sizing:border-box}
html body .tk-fenster.tke-auto.tke-ohne-inhalt>.tke-oben.tke-oben{margin:0 -18px!important}
html body .tk-fenster.tke .tke-titel.tke-titel{color:var(--tke-ink)!important}
/* Suchfeld überall so hoch wie bei Zahl des Tages (44 px, von Alex abgenommen) */
html body .tk-fenster.tke .tke-such.tke-such{height:44px!important;min-height:44px!important;margin:0!important;box-shadow:none!important}
html body .tk-fenster.tke-auto.tke :is(h3,h4)[data-tke-teil]{margin:12px 0 4px!important;color:var(--tke-muted)!important;font-family:Rubik,system-ui,sans-serif!important;font-size:.64rem!important;font-weight:700!important;letter-spacing:.07em;text-transform:uppercase;line-height:1.3}
html body .tk-fenster.tke-auto.tke .tke-eng.tke-eng{grid-template-columns:minmax(0,1fr)!important}
/* Ausblenden gewinnt immer gegen die Rasterregeln oben */
html body .tk-fenster.tke.tke.tke [data-tke-teil].tke-aus.tke-aus.tke-aus,html body .tk-fenster.tke.tke.tke [data-tke-teil].tke-weg.tke-weg.tke-weg,html body .tk-fenster.tke.tke.tke .tke-nein.tke-nein.tke-nein.tke-nein{display:none!important}
/* Geschlossene Dialoge und Popover bleiben zu, auch wenn Tafel-CSS .tk-fenster sichtbar schaltet */
html body dialog.tk-fenster.tke.tke:not([open]){display:none!important}
html body .tk-fenster.tke.tke[popover]:not(:popover-open){display:none!important}
/* Schalterzeilen ohne eigene Schiene (Häkchen direkt im .menu-switch): als Schalter zeichnen, Titel über der Erklärung */
html body .tk-fenster.tke-auto.tke .menu-switch:not(:has(.switch-track)) input[type=checkbox]{
  -webkit-appearance:none;appearance:none;flex:none;order:2;margin-left:auto!important;width:38px!important;height:22px!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;border-radius:999px!important;cursor:pointer;
  background:radial-gradient(circle 8px at 11px 50%,#fff 96%,transparent 100%),#cfd4e0!important;box-shadow:none!important}
html body .tk-fenster.tke-auto.tke .menu-switch:not(:has(.switch-track)) input[type=checkbox]:checked{background:radial-gradient(circle 8px at 27px 50%,#fff 96%,transparent 100%),var(--tke-ok)!important}
html body .tk-fenster.tke-auto.tke .menu-switch-text{display:flex!important;flex-direction:column;gap:1px;min-width:0}
html body .tk-fenster.tke-auto.tke .menu-switch-text>:is(b,small,strong,span){display:block}
/* Farbpunkte und Symbole in Zeilen nicht zusammendrücken */
html body .tk-fenster.tke-auto.tke label>:is(span,i):empty,html body .tk-fenster.tke-auto.tke .team-punkt{flex-shrink:0!important;min-width:10px}
html body .tk-fenster.tke-auto.tke label:has(>.team-punkt){display:inline-flex!important;align-items:center;gap:6px;margin:2px 8px 2px 0}
html body .tk-fenster.tke-auto.tke label>.team-punkt{display:block!important}

/* Ruhige Führung (data-tke-ruhig, Pilot Hunderterfeld 26.10.2026): fester, kompakter Kopf mit den Aufgabentypen,
   darunter genau ein Scrollbereich. Das Fenster selbst scrollt nicht, keine Höhenanimation. */
html body .tk-fenster.tke.tke-ruhig.tke-ruhig:not([hidden]){overflow:hidden!important;overscroll-behavior:contain}
html .tk-fenster.tke.tke-ruhig>.tke-oben{position:static!important;flex:none!important}
html body .tk-fenster.tke.tke-ruhig .tke-inhalt.tke-inhalt.tke-inhalt{flex:1 1 auto!important;min-height:96px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;margin-top:0!important;padding:10px 2px 16px!important}
html .tk-fenster.tke.tke-ruhig .tke-oben>.tke-fest{margin:10px 0 0!important;padding:0!important}
html .tk-fenster.tke.tke-ruhig .tke-oben>.tke-fest>h3{margin:0 0 6px!important}
html .tk-fenster.tke.tke-ruhig.tke-flach .tke-oben>.tke-fest{padding-bottom:10px!important}
@media (max-height:820px){
  html .tk-fenster.tke.tke-ruhig .tke-unter{display:none!important}
  html .tk-fenster.tke.tke-ruhig>.tke-oben{padding-top:10px!important}
  html .tk-fenster.tke.tke-ruhig .tke-suche{margin-top:6px!important}
}
/* Mehrfachauswahl (data-tke-mehrfach): jedes Feld mit eigenem Kästchen und Häkchen, anders als die Einzelauswahl. */
html body .tk-fenster.tke.tke [data-tke-mehrfach][data-tke-mehrfach]>button[aria-pressed]{position:relative!important;padding-left:32px!important}
html body .tk-fenster.tke.tke [data-tke-mehrfach][data-tke-mehrfach]>button[aria-pressed]::before{content:"";position:absolute;left:10px;top:50%;width:16px;height:16px;margin-top:-8px;box-sizing:border-box;border:2px solid #9aa2b4;border-radius:5px;background:#fff}
html body .tk-fenster.tke.tke [data-tke-mehrfach][data-tke-mehrfach]>button[aria-pressed=true]::before{border-color:#16a34a;background:#16a34a}
html body .tk-fenster.tke.tke [data-tke-mehrfach][data-tke-mehrfach]>button[aria-pressed=true]::after{content:"";position:absolute;left:15.5px;top:50%;width:4px;height:8px;margin-top:-6px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
