/* Die Werteliste aus 16.13, neu gefasst am 18.10.2026 (Umbau der Oberfläche, Muster in entwuerfe/umbau-2026-10/).
   Fünfzehn Farben, fünf Schriftgrößen, ein Vierer-Raster, fünf Radien, eine Linienstärke, zwei Schatten.
   Was hier nicht steht, gibt es nicht (Grundsatz 4). */
:root {
  --text: #24262B; --leise: #6F7178; --flaeche: #FFFFFF; --grund: #F6F7F9; --senke: #F2F3F6; --linie: #E5E6EA; --linie-stark: #D9DBE0;
  --akzent: #5D63CD; --akzent-tief: #3E438D; --akzent-flach: #EEF0F8; --rot: #D53236; --warnung: #8F6516;
  /* 9.6 (18.10.2026): Statustöne — Wort und Zeichen tragen die Bedeutung, der Ton hilft dem Auge */
  --gruen: #276B43; --gruen-flach: #E7F2EB; --bernstein-flach: #FBF1DC; --rot-flach: #FBE9E9;
  --schatten: 0 1px 2px rgba(36, 38, 43, .05), 0 1px 1px rgba(36, 38, 43, .03);
  --schatten-hoch: 0 12px 32px rgba(36, 38, 43, .14), 0 2px 6px rgba(36, 38, 43, .06);
}
@font-face { font-family: Inter; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(inter/InterVariable.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body { min-height: 100%; background: var(--grund); color: var(--text);
  font: 13px/1.5 Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.zeichen { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.leiser { color: var(--leise); }
.zahl { font-variant-numeric: tabular-nums; }

/* ======================= Kopfzeile 48 ======================= */
.kopfzeile { height: 48px; display: flex; align-items: center; background: var(--flaeche); border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 20; }
.haus { width: 208px; flex: none; height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-right: 1px solid var(--linie);
  min-width: 0; }
.haus-zeichen { width: 24px; height: 24px; border-radius: 6px; background: var(--akzent); color: var(--flaeche); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.haus b { font-weight: 600; display: block; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.haus small { display: block; font-size: 11px; color: var(--leise); line-height: 1.2; }
.haus > div { min-width: 0; }
.bereiche { display: flex; gap: 4px; padding: 0 12px; min-width: 0; }
.bereich { height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; color: var(--leise); font-weight: 500; white-space: nowrap; }
.bereich:hover { color: var(--text); background: var(--grund); }
.bereich.aktiv { color: var(--text); background: var(--senke); }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; padding-right: 16px; min-width: 0; }
.benutzer { width: 28px; height: 28px; border-radius: 50%; background: var(--akzent); color: var(--flaeche);
  font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.abmelden-form { display: inline; }
.abmelden { background: none; border: 0; color: var(--leise); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.abmelden:hover { color: var(--text); background: var(--senke); }
/* N13 · unter 1440 treten die Bereichszeichen zurück */
@media (max-width: 1439px) { .bereich svg { display: none; } }

/* ======================= Die Ansage — unten in der Mitte, schiebt nichts (N12, seit 18.10.2026) ======================= */
.meldungsleiste { position: fixed; left: 0; right: 0; bottom: 24px; z-index: 60; pointer-events: none; display: flex; justify-content: center; }
.meldung { pointer-events: auto; max-width: min(100% - 32px, 720px); min-height: 40px; display: flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 12px; border-radius: 12px; background: var(--text); color: var(--flaeche); box-shadow: var(--schatten-hoch); }
.meldung::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gruen); color: var(--flaeche);
  font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.meldung.stufe-1::before, .meldung.stufe-2::before { content: "!"; background: var(--warnung); }
.meldung.stufe-3::before { content: "!"; background: var(--rot); }
.meldung .knopf { height: 28px; background: transparent; color: var(--flaeche); border-color: var(--leise); box-shadow: none; }
.meldung .knopf:hover { background: var(--leise); }
.meldung.stehend { position: static; margin: 0 0 16px; width: auto; max-width: none; box-shadow: none; background: var(--rot-flach); color: var(--rot); }
.meldung.stehend.stufe-1, .meldung.stehend.stufe-2 { background: var(--bernstein-flach); color: var(--warnung); }

/* ======================= Seitenleiste 208 ======================= */
.rumpf { display: flex; align-items: stretch; min-height: calc(100vh - 48px); }
.leiste { width: 208px; flex: none; background: var(--flaeche); border-right: 1px solid var(--linie); padding: 16px 12px;
  position: sticky; top: 48px; height: calc(100vh - 48px); overflow-y: auto; }
.leisten-titel { display: block; font-size: 11px; font-weight: 600; color: var(--leise); padding: 0 8px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.familien-titel { display: flex; align-items: center; gap: 4px; width: 100%; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--leise); padding: 0 8px; margin: 12px 0 4px; background: none; border: 0; cursor: pointer; border-radius: 6px; height: 28px; }
.familie:first-child .familien-titel { margin-top: 0; }
.familien-titel::before { content: "▾"; font-size: 11px; width: 12px; }
.familie.zu .familien-titel::before { content: "▸"; }
.familie.zu .familien-punkte { display: none; }
.familien-titel:hover { background: var(--grund); color: var(--text); }
.punkt { min-height: 32px; display: flex; align-items: center; gap: 12px; padding: 4px 8px; border-radius: 8px; color: var(--leise); font-weight: 500;
  margin-bottom: 2px; line-height: 1.25; }
.punkt:hover { background: var(--grund); color: var(--text); }
.punkt.aktiv { background: var(--akzent-flach); color: var(--akzent-tief); }
.punkt.aktiv svg { color: var(--akzent); }
.inhalt { flex: 1; min-width: 0; }
/* N13 · 1280 ist der Boden; darunter klappt die Seitenleiste weg */
@media (max-width: 1279px) {
  .leiste { display: none; }
  .haus { width: auto; border-right: 0; }
}

/* ======================= Das Band: Kurzpfad, Titel, Handlungen, Reiter ======================= */
.band { background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 20px 32px 20px; }
.band.mit-reitern { padding-bottom: 0; }
.kurzpfad { font-size: 12px; color: var(--leise); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.kurzpfad a:hover { color: var(--text); }
.ortskopf { display: flex; align-items: center; gap: 12px; min-height: 32px; flex-wrap: wrap; }
.ortskopf h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.titelzeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.treffer, .meta { font-size: 12px; color: var(--leise); }
.meta a { color: var(--leise); }
.meta a:hover { color: var(--text); }
.handlungen { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reiter { display: flex; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.reiter a { position: relative; height: 40px; display: inline-flex; align-items: center; gap: 8px; color: var(--leise); font-weight: 500; white-space: nowrap; }
.reiter a:hover { color: var(--text); }
.reiter a.aktiv { color: var(--text); }
.reiter a.aktiv::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--akzent); }
.zaehler { font-size: 11px; font-weight: 500; color: var(--leise); background: var(--senke); border-radius: 12px; padding: 0 8px; line-height: 20px;
  font-variant-numeric: tabular-nums; }
.reiter a.aktiv .zaehler { background: var(--akzent-flach); color: var(--akzent-tief); }
.flaeche { padding: 24px 32px 48px; }
@media (max-width: 680px) { .flaeche { padding: 16px 16px 32px; } .band { padding-left: 16px; padding-right: 16px; } }
.flaeche > .karte + .karte, .flaeche > .karte + .abschnitt, .flaeche > .abschnitt + .abschnitt, .flaeche > .abschnitt + .karte,
.spalte > * + * { margin-top: 16px; }

/* ======================= Knöpfe ======================= */
.knopf { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text);
  font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; box-shadow: var(--schatten); }
.knopf svg { color: var(--leise); }
.knopf:hover { background: var(--grund); }
.knopf:active { background: var(--senke); }
.knopf.tragend { background: var(--akzent); border-color: var(--akzent-tief); color: var(--flaeche); }
.knopf.tragend svg { color: var(--flaeche); }
.knopf.tragend:hover { background: var(--akzent-tief); }
.knopf.symbol { width: 32px; padding: 0; justify-content: center; }
.knopf.stumm { border-color: transparent; background: transparent; box-shadow: none; color: var(--leise); }
.knopf.stumm:hover { background: var(--senke); color: var(--text); }
.knopf.klein { height: 28px; font-size: 12px; padding: 0 8px; }
.knopf[disabled], .knopf.gesperrt { background: var(--senke); color: var(--leise); cursor: default; box-shadow: none; }

/* ======================= Status und Marken ======================= */
.status { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 12px; font-size: 12px; font-weight: 500;
  white-space: nowrap; background: var(--senke); color: var(--leise); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status.offen::before { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.status.ton-gruen { background: var(--gruen-flach); color: var(--gruen); }
.status.ton-akzent { background: var(--akzent-flach); color: var(--akzent-tief); }
.status.ton-bernstein { background: var(--bernstein-flach); color: var(--warnung); }
.status.ton-rot { background: var(--rot-flach); color: var(--rot); }
.rubrik { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500;
  white-space: nowrap; background: color-mix(in srgb, var(--f, var(--leise)) 10%, white); color: color-mix(in srgb, var(--f, var(--leise)) 80%, black); }
.rubrik::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--f, var(--leise)); flex: none; }
/* 19.10.2026 (Konzept): der Buchungstyp als Marke — eckig wie die Rubrik, ohne Farbe, damit er neben dem Status nicht konkurriert */
.typ { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
  white-space: nowrap; border: 1px solid var(--linie-stark); color: var(--text); background: var(--flaeche); }
.typ.typ-sperre { color: var(--leise); background: var(--senke); }
.liste-tabelle td .typ + .unterzeile { margin-top: 2px; }
/* 19.10.2026: die Wahl vor dem Anlegen — je Typ eine Zeile mit Titel und einem Satz */
.dialog-wahl .wahl { list-style: none; display: grid; gap: 8px; }
.wahl-eintrag { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--linie); border-radius: 8px; color: var(--text); text-decoration: none; }
.wahl-eintrag:hover { border-color: var(--akzent); background: var(--akzent-flach); }
.wahl-titel { font-weight: 600; }
.wahl-text { font-size: 12px; color: var(--leise); }
.einstellung { display: inline-block; font-size: 11px; color: var(--leise); border: 1px solid var(--linie); border-radius: 6px; padding: 0 4px; margin-left: 4px; line-height: 16px; }

/* ======================= Karten ======================= */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten); overflow-x: auto; }
.karte-polster { padding: 16px; }
.karten-titel { font-size: 13px; font-weight: 600; display: block; margin-bottom: 12px; color: var(--text); }
.karte-kopf { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--linie); min-height: 52px; flex-wrap: wrap; }
.karte-kopf h2, .karte-kopf .karten-titel { font-size: 13px; font-weight: 600; margin: 0; }
.karte-kopf .handlungen { gap: 4px; }
.karte-rumpf { padding: 16px; }
.paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

/* ======================= Felder ======================= */
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.feld-form { min-width: 0; }
.feld-form.breit, .breit { grid-column: 1 / -1; }
.spann2 { grid-column: span 2; }
.etikett { display: block; font-size: 12px; color: var(--leise); margin-bottom: 6px; width: fit-content; }
.feld { height: 32px; width: 100%; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); padding: 0 12px; color: var(--text);
  transition: border-color .1s, box-shadow .1s; }
.feld:hover { border-color: var(--linie-stark); }
.feld:focus { outline: 0; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-flach); }
.feld[readonly], .feld[disabled] { background: var(--grund); border-color: transparent; color: var(--leise); }
.feld.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.feld.mehrzeilig { height: auto; padding: 8px 12px; resize: vertical; line-height: 1.5; }
.feld.fehler { border-color: var(--rot); box-shadow: 0 0 0 3px var(--rot-flach); }
.feld.datei { padding: 4px 8px; }
select.feld { appearance: none; padding-right: 28px; cursor: pointer;
  background: var(--flaeche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236F7178' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
select.feld[disabled] { background-color: var(--grund); }
.hinweis { display: block; font-size: 12px; color: var(--leise); margin-top: 4px; }
.hinweis.oben { margin: 0 0 12px; }
.feldmarke { display: block; font-size: 12px; min-height: 0; }
.feldmarke.warnung { color: var(--warnung); margin-top: 4px; }
.feldmarke.fehler { color: var(--rot); margin-top: 4px; }
.haken { display: inline-flex; align-items: center; gap: 8px; height: 32px; cursor: pointer; color: var(--leise); }
.haken input { width: 16px; height: 16px; accent-color: var(--akzent); }
.mehrfach { display: flex; flex-wrap: wrap; column-gap: 16px; }   /* P6c (c2): je Wert ein Haken */
.platzhalter { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }   /* P6c (c3): die Knöpfe unter dem Text */
/* 18.10.2026: der Ja-Nein-Haken eines Felds ist ein Schalter — dasselbe Eingabefeld, nur gezeichnet */
.feld-form > .haken input[type=checkbox] { appearance: none; position: relative; width: 32px; height: 20px; border-radius: 12px;
  background: var(--linie-stark); transition: background .15s; cursor: pointer; flex: none; }
.feld-form > .haken input[type=checkbox]::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--flaeche); box-shadow: 0 1px 2px rgba(36, 38, 43, .2); transition: transform .15s; }
.feld-form > .haken input[type=checkbox]:checked { background: var(--akzent); }
.feld-form > .haken input[type=checkbox]:checked::after { transform: translateX(12px); }
.feld-form > .haken input[type=checkbox]:disabled { opacity: .5; cursor: default; }
.feld-form > .haken input[type=checkbox] + span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* das „ja" liest der Screenreader, das Auge sieht den Schalter */
.farbfeld { display: inline-flex; align-items: center; gap: 8px; height: 32px; }
.farbfeld input { width: 32px; height: 32px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); padding: 2px; }
.feldwege { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.feldweg { font-size: 12px; color: var(--akzent-tief); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.feldweg svg { width: 12px; height: 12px; }
.feldweg:hover { text-decoration: underline; }

/* ======================= Die Erklärung als Tooltip (18.10.2026 — statt einer Zeile unter dem Feld) ======================= */
.erklaert { position: relative; cursor: help; text-decoration: underline dotted var(--linie-stark); text-underline-offset: 4px; }
.erklaert:hover { text-decoration-color: var(--leise); }
.erklaert .tooltip { position: absolute; left: -4px; bottom: calc(100% + 8px); z-index: 40; width: max-content; max-width: 288px;
  background: var(--text); color: var(--flaeche); font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; white-space: normal;
  text-align: left; padding: 8px 12px; border-radius: 8px; box-shadow: var(--schatten-hoch); visibility: hidden; opacity: 0; transform: translateY(4px);
  transition: opacity .12s, transform .12s; pointer-events: none; }
.erklaert .tooltip::after { content: ""; position: absolute; left: 12px; top: 100%; border: 4px solid transparent; border-top-color: var(--text); }
.erklaert:hover .tooltip, .erklaert:focus .tooltip { visibility: visible; opacity: 1; transform: none; transition-delay: .25s; }
.band .erklaert .tooltip, .karte-kopf .erklaert .tooltip { bottom: auto; top: calc(100% + 8px); transform: translateY(-4px); }
.band .erklaert .tooltip::after, .karte-kopf .erklaert .tooltip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--text); }
.band .erklaert:hover .tooltip, .band .erklaert:focus .tooltip, .karte-kopf .erklaert:hover .tooltip, .karte-kopf .erklaert:focus .tooltip { transform: none; }
.karte:has(.erklaert:hover), .karte:has(.erklaert:focus) { overflow: visible; }

/* ======================= Werkzeugleiste: Suche und Filterknöpfe ======================= */
.werkzeugleiste { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.suche { display: flex; align-items: center; gap: 8px; }
.suchfeld { height: 32px; width: 256px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--linie); border-radius: 8px;
  color: var(--leise); background: var(--flaeche); }
.suchfeld:focus-within { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-flach); }
.suchfeld input { border: 0; outline: 0; width: 100%; background: transparent; color: var(--text); }
.filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter[hidden] { display: none; }
.chip { height: 32px; display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 12px; border-radius: 8px; border: 1px dashed var(--linie-stark);
  color: var(--leise); font-weight: 500; white-space: nowrap; cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--leise); }
.chip span { color: inherit; }
.chip select { appearance: none; border: 0; background: transparent; height: 28px; font-weight: 500; color: inherit; cursor: pointer; padding: 0 20px 0 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236F7178' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center; }
.chip.gesetzt { border-style: solid; border-color: var(--akzent-flach); background: var(--akzent-flach); color: var(--akzent-tief); }
.chip.gesetzt select { font-weight: 600; }
.rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ======================= Tabelle ======================= */
table.liste-tabelle { width: 100%; border-collapse: separate; border-spacing: 0; }
.liste-tabelle thead th { position: sticky; top: 0; z-index: 2; background: var(--grund); font-size: 12px; font-weight: 500; color: var(--leise); text-align: left;
  height: 36px; padding: 0 8px; border-bottom: 1px solid var(--linie); white-space: nowrap; }   /* P2: 8 statt 12 — die Nummer braucht eine Spalte */
.liste-tabelle thead th:first-child, .liste-tabelle tbody td:first-child { padding-left: 16px; }
.liste-tabelle thead th:last-child, .liste-tabelle tbody td:last-child { padding-right: 16px; }
.liste-tabelle thead th a:hover { color: var(--text); }
.liste-tabelle thead th.sortiert, .liste-tabelle thead th.sortiert a { color: var(--text); }
.liste-tabelle tbody td { height: 40px; padding: 4px 8px; border-bottom: 1px solid var(--linie); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px; }   /* F9 (27.10.2026): bei 1280 passt die Buchungsliste nur so — Abgeschnittenes trägt seinen Text als Tooltip */
.liste-tabelle tbody tr:last-child td { border-bottom: 0; }
.liste-tabelle tbody tr.verweis, .liste-tabelle tbody tr.aufklappen { cursor: pointer; }
.liste-tabelle tbody tr:hover td { background: var(--grund); }
.liste-tabelle td.zahl, .liste-tabelle th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.liste-tabelle td.stark { font-weight: 500; }
.liste-tabelle td.haupt { width: 100%; max-width: 0; min-width: 176px; }   /* F9: 176 statt 224, damit sieben Spalten in 1280 passen */
.liste-tabelle td.nummer, .liste-tabelle td.haupt.nummer { width: 1px; min-width: 0; max-width: none; font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }   /* P2: die Nummer so breit wie sie ist, nicht fett */
.liste-tabelle td a:hover { text-decoration: underline; }
.unterzeile { display: block; font-size: 12px; font-weight: 400; color: var(--leise); overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.liste-tabelle td .oben { display: block; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.liste-tabelle td .status + .unterzeile { margin-top: 2px; }
.leerer-zustand { padding: 16px; color: var(--leise); }   /* N15: linksbündig, wo die erste Zeile stünde */
.listenfuss { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 12px; color: var(--leise); border-top: 1px solid var(--linie); }
/* Eine Zeile mit Feldern klappt auf; ohne Skript stehen die Felder offen da */
.js .liste-tabelle tr.feldzeile { display: none; }
.js .liste-tabelle tr.feldzeile.offen { display: table-row; }
.liste-tabelle tr.feldzeile td { height: auto; white-space: normal; max-width: none; padding: 16px; background: var(--grund); overflow: visible; }
.liste-tabelle tr.feldzeile:hover td { background: var(--grund); }
.liste-tabelle td.zeilenhandlungen { width: 1px; white-space: nowrap; }
.liste-tabelle td.zeilenhandlungen .knopf { margin-right: 4px; }
.zeilenmenue { display: inline-block; }
.auswahl-zeile.gesperrt { opacity: .55; cursor: not-allowed; }   /* 19.10.2026 (Teil 5): das belegte Zimmer, nicht wählbar */
.zeilenmenue > .aktionen-menue { position: fixed; right: auto; }   /* 20.10.2026: über dem scrollenden Rahmen der Tabelle, gesetzt von geruest.js */
.liste-tabelle td.zeilenfeld, .liste-tabelle th.zeilenfeld { width: 1px; white-space: nowrap; }
.zeilenfeld .feld-form { margin: 0; }
.zeilenfeld .etikett { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* der Spaltenkopf trägt das Wort */
.liste-tabelle td.art9 { color: var(--warnung); }   /* Sonderkost, besondere Bedürfnisse: Art. 9 — steht nur, wo es gebraucht wird (7.6) */

/* ======================= Unterlisten: Karte mit Kopf, einklappbar ======================= */
.abschnitt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten); overflow-x: auto; }
.abschnitt > .karte { border: 0; border-radius: 0; box-shadow: none; }
.abschnitt > .filter { padding: 12px 16px; border-bottom: 1px solid var(--linie); }
.abschnitt > .meta { padding: 0 16px 12px; }
.einklappen { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 6px; margin-left: -4px; }
.einklappen:hover { background: var(--senke); }
.einklappen:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.einklappen::before { content: "▾"; font-size: 11px; color: var(--leise); }
.abschnitt.zu .einklappen::before { content: "▸"; }
.abschnitt.zu > :not(.karte-kopf), .abschnitt.zu .karte-kopf .handlungen { display: none; }
.abschnitt.zu .karte-kopf { border-bottom: 0; }

/* ======================= Rechte (180) ======================= */
.rechte { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 8px 24px; align-items: start; }
.rechte-gruppe > summary { cursor: pointer; padding: 4px 0; }
.rechte-gruppe > summary .karten-titel { display: inline; }
.rechte-alle { display: flex; gap: 8px; margin: 4px 0 8px; }
.recht .haken { height: auto; min-height: 28px; align-items: flex-start; padding: 4px 0; line-height: 1.4; color: var(--text); }
.recht .haken input { margin-top: 2px; }

/* ======================= Zwei Spalten am Ding: Inhalt und Seitenspalte (18.10.2026, statt des stehenden Kopfs) ======================= */
.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 24px; align-items: start; }
.seitenspalte { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.seitenspalte .karte { overflow: visible; }
@media (max-width: 1279px) { .zweispaltig { grid-template-columns: minmax(0, 1fr); } .seitenspalte { position: static; } }
.eigenschaften { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; }
.eigenschaften dt { color: var(--leise); font-size: 12px; padding-top: 1px; }
.eigenschaften dd { min-width: 0; overflow-wrap: anywhere; }
.eigenschaften dd.zahl { font-variant-numeric: tabular-nums; }
.eigenschaften dd.betrag { font-weight: 600; font-variant-numeric: tabular-nums; }
.eigenschaften .trennlinie { height: 1px; background: var(--linie); grid-column: 1 / -1; }
.person { display: inline-flex; align-items: flex-start; gap: 8px; min-width: 0; max-width: 100%; }
.person .kreis { width: 22px; height: 22px; border-radius: 50%; background: var(--senke); color: var(--leise); font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.person a, .eigenschaften a { color: var(--akzent-tief); font-weight: 500; }
.person a:hover, .eigenschaften a:hover { text-decoration: underline; }
.marken { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.warnmarke { border-radius: 12px; padding: 12px 16px; background: var(--bernstein-flach); color: var(--warnung); font-size: 13px; line-height: 1.45; }
.warnmarke.stufe-3 { background: var(--rot-flach); color: var(--rot); }
.flaeche > .marken { margin-bottom: 16px; }
.zeitachse { list-style: none; }
.zeitachse li { position: relative; padding: 0 0 12px 20px; font-size: 12px; }
.zeitachse li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--linie-stark); }
.zeitachse li::after { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--linie); }
.zeitachse li:last-child { padding-bottom: 0; }
.zeitachse li:last-child::after { display: none; }
.zeitachse b { font-weight: 500; color: var(--text); }
.zeitachse span { color: var(--leise); display: block; }
.alle { margin-left: auto; font-size: 12px; color: var(--akzent-tief); font-weight: 500; }
.alle:hover { text-decoration: underline; }

/* Die Feldgruppen am Ding: Karten untereinander, zwei Ein-Feld-Gruppen nebeneinander (Kunde und Notiz) */
.feldgruppen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.feldgruppen > * { grid-column: 1 / -1; }
.spalte.feldgruppen > * + * { margin-top: 0; }
.feldgruppen > .karte.halb { grid-column: auto; }
.feldgruppen > .karte.halb .felder { grid-template-columns: minmax(0, 1fr); }
.kostenblock .traegt { margin-bottom: 16px; }

/* ======================= Kennzahlen ======================= */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kennzahl { padding: 16px; overflow: visible; }
.kennzahl dt { font-size: 12px; color: var(--leise); }
.kennzahl dd { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.25; }
.kennzahl small { display: block; font-size: 12px; color: var(--leise); margin-top: 4px; }
/* P8a (S12): der Rezeptionskopf — fünf Kennzahlen, die ganze Karte ist der Link in die Liste */
.rezeption .kennzahl { position: relative; }
.rezeption .kennzahl dt a { color: inherit; text-decoration: none; }
.rezeption .kennzahl dt a::after { content: ""; position: absolute; inset: 0; }
.rezeption .kennzahl:hover { border-color: var(--akzent); }
.rezeption .kennzahl .dazu { position: relative; z-index: 1; display: block; }   /* B9: über dem Link der Karte */
.rezeption .kennzahl .dazu a { color: var(--warnung); }

/* ======================= Dialog: Kopf, Rumpf, Fuß — eine Unterbrechung, kein Aufenthalt ======================= */
dialog.dialog-rahmen { margin: auto; border: 0; border-radius: 16px; padding: 0; background: var(--flaeche); width: min(100% - 32px, 560px); color: var(--text);
  box-shadow: var(--schatten-hoch); }
dialog.dialog-rahmen::backdrop { background: rgba(36, 38, 43, .32); }
.dialog { position: relative; padding: 20px 24px 0; }
.dialog > h2 { font-size: 15px; font-weight: 600; margin-bottom: 16px; padding-right: 32px; }
.dialog .felder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dialog .felder > :only-child { grid-column: 1 / -1; }
.dialog-knoepfe { display: flex; flex-direction: row-reverse; gap: 8px; justify-content: flex-start; margin: 20px -24px 0; padding: 16px 24px;
  border-top: 1px solid var(--linie); background: var(--grund); border-radius: 0 0 16px 16px; }
.dialog-knoepfe .knopf.stumm { border-color: var(--linie-stark); background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }
.dialog-schliessen { position: absolute; top: 16px; right: 16px; }
.pflicht { color: var(--rot); margin-left: 2px; }
.dialog-seite { max-width: 560px; }
.dialog-seite .dialog { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; box-shadow: var(--schatten); }
.vorschau { margin-bottom: 12px; line-height: 1.55; }
.wortlaut { background: var(--grund); border: 1px solid var(--linie); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.wortlaut .stark { font-weight: 600; margin-bottom: 8px; }
.wortlaut pre { font: inherit; white-space: pre-wrap; margin: 0; }
.auswahl-gruppen { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 50vh; overflow: auto; }
.auswahl-gruppen details { border: 1px solid var(--linie); border-radius: 8px; padding: 0 12px; }
.auswahl-gruppen summary { min-height: 36px; display: list-item; line-height: 36px; cursor: pointer; font-weight: 500; }
.auswahl-gruppen summary .leiser { font-weight: 400; margin-left: 4px; }
.auswahl-gruppen details.abgesetzt { border: 0; padding: 0; margin-bottom: 4px; }
.auswahl-gruppen details.abgesetzt > summary { font-weight: 400; color: var(--leise); }
.auswahl-zeile { display: grid; grid-template-columns: 16px auto 1fr; align-items: center; gap: 8px; min-height: 36px; padding: 4px 0; cursor: pointer; border-top: 1px solid var(--linie); }
.auswahl-zeile input { width: 16px; height: 16px; accent-color: var(--akzent); }
.auswahl-zeile > span:first-of-type { white-space: nowrap; }
.auswahl-zeile:has(.auswahl-zahl) { grid-template-columns: 16px auto 1fr auto; }   /* 12.10.2026 (E3): Zimmer verteilen */
.auswahl-zahl { display: flex; align-items: center; gap: 4px; }
.auswahl-zahl input.feld { width: 56px; height: 28px; accent-color: auto; }
.vorschlag-zeile { margin: 8px 0 0; }
.auswahl-zeile .leiser { font-size: 12px; }

/* ======================= Das ruhige Register: Anmeldung, Zugang (N10, N13) ======================= */
body.ruhig { padding: 48px 16px; }
.bahn { max-width: 880px; margin: 0 auto; }
.bahn.schmal { max-width: 400px; }
.bahn h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 16px 0 16px; }
.bahn .wortmarke { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; font-weight: 600; }
.anmeldung { display: grid; gap: 16px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 24px; box-shadow: var(--schatten); }
.anmeldung .knopf { justify-self: stretch; justify-content: center; }
.geheimnis code { font-size: 15px; letter-spacing: .08em; }

/* ======================= Druck am Bildschirm: 190 geht als PDF hinaus, das Gerüst druckt nicht ======================= */
@media print { .kopfzeile, .leiste, .handlungen, .filter, .meldungsleiste, .seitenspalte { display: none !important; } .flaeche, .band { padding: 0; } }

/* ======================= Blöcke (1.6b): Kostenvorschau, Sichtung, Kursstand ======================= */
.block .summen { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px 24px; margin-bottom: 16px; }
.block .summen dt { font-size: 12px; color: var(--leise); }
.block .summen dd { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.block .summen div:first-child dd { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.block .steuerzeile { font-size: 12px; color: var(--leise); margin: -8px 0 16px; }
.block table { width: 100%; border-collapse: collapse; }
.block th { font-size: 12px; font-weight: 500; color: var(--leise); text-align: left; height: 32px; border-bottom: 1px solid var(--linie); padding: 0 8px 0 0; }
.block td { height: 36px; border-bottom: 1px solid var(--linie); padding: 0 8px 0 0; }
.block .zahl, .block th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.block details { margin-top: 4px; }
.block summary { font-size: 12px; color: var(--leise); cursor: pointer; }
.block .rechenweg { margin: 4px 0 8px; font-size: 12px; color: var(--leise); }
.block .rechenweg th, .block .rechenweg td { height: 28px; font-size: 12px; }
.block .marke.leise { font-size: 11px; color: var(--leise); border: 1px solid var(--linie); border-radius: 6px; padding: 0 4px; margin-left: 4px; }
.block .sichtung { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 16px 24px; }
.block .sichtung ul.schlicht { list-style: none; margin: 8px 0; }
.block .sichtung ul.schlicht li { padding: 4px 0; border-bottom: 1px solid var(--linie); }
.block .kursstand { font-size: 15px; margin-bottom: 8px; }

/* ======================= Das Raster (55) ======================= */
.raster td { height: 36px; }
.raster .raster-feld { display: inline-flex; align-items: center; gap: 8px; }
.raster .raster-feld .haken span { font-size: 12px; color: var(--leise); }
.raster .raster-feld .feldmarke:empty { display: none; }
.raster td.zelle-pauschale, .raster td.zelle-zimmerpreis, .raster td.zelle-mehrtaegig { font-size: 12px; }

/* ======================= Menü „Aktionen" und Kontofenster ======================= */
.aktionen { position: relative; }
.aktionen > summary { list-style: none; cursor: pointer; }
.aktionen > summary::-webkit-details-marker { display: none; }
.aktionen-menue { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 256px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 12px; padding: 4px; display: flex; flex-direction: column; box-shadow: var(--schatten-hoch); }
.aktionen-menue a { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 8px; color: var(--text); white-space: nowrap; }
.aktionen-menue a:hover { background: var(--grund); }
.konto > summary.benutzer { cursor: pointer; }
.konto > summary.benutzer:hover, .konto[open] > summary.benutzer { background: var(--akzent-tief); }
.konto-kopf { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--linie); font-size: 12px; }
.konto-kopf strong { font-size: 13px; }
.konto-kopf span { color: var(--leise); }
.konto-hilfe { display: flex; flex-direction: column; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--linie); }
.konto-etikett { padding: 4px 12px; font-size: 11px; color: var(--leise); }
.konto-abmelden { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--linie); }
.konto-kopf + .konto-abmelden { margin-top: 0; padding-top: 0; border-top: 0; }
.konto-abmelden button { display: flex; align-items: center; width: 100%; min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: none;
  color: var(--text); text-align: left; cursor: pointer; }
.konto-abmelden button:hover { background: var(--grund); }

/* ======================= Der Belegplan (10.7, N14): Zeile 44, Balken 32, Rand 1, Radius 6 ======================= */
.steuerung { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.gruppenschalter { display: inline-flex; background: var(--senke); border-radius: 8px; padding: 2px; }
.gruppenschalter a { height: 28px; border-radius: 6px; padding: 0 12px; font-size: 12px; font-weight: 500; color: var(--leise); display: inline-flex; align-items: center; }
.gruppenschalter a.an { background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }
.blaettern { display: inline-flex; align-items: center; gap: 4px; }
.knopf.pfeil { width: 32px; padding: 0; justify-content: center; }
.knopf.pfeil.aus { color: var(--linie-stark); cursor: default; box-shadow: none; }
.zoom { margin-left: auto; }
.zoom .zeitraum { font-size: 12px; color: var(--leise); font-weight: 400; min-width: 44px; text-align: center; }
.zeitraum { font-size: 13px; font-weight: 600; white-space: nowrap; }
.plan { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten); overflow: hidden; user-select: none; }
.planzeile { display: grid; border-bottom: 1px solid var(--linie); }
.planzeile:last-child { border-bottom: 0; }
.planzeile.gruppenzeile { display: block; }
.gruppe { padding: 4px 12px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--leise); background: var(--grund); }
.eckfeld { padding: 8px 12px; font-size: 12px; color: var(--leise); }
.tagkopf { padding: 8px 4px; font-size: 12px; color: var(--leise); border-left: 1px solid var(--linie); display: flex; align-items: baseline; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; }
.tagkopf b { font-weight: 600; color: var(--text); }
.tagkopf i { font-style: normal; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.tagkopf.eng { flex-direction: column; align-items: center; gap: 0; padding: 4px 0; font-size: 11px; line-height: 1.25; }
.tagkopf.eng b { font-size: 12px; }
.tagkopf.frei { background: var(--grund); }
.tagkopf.heute { box-shadow: inset 0 -2px 0 var(--akzent); }
.tagkopf.heute b { color: var(--akzent-tief); }
/* 26.9.2026: vier Größenstufen, Plus und Minus am Plan; 3 ist die Vorgabe (V) */
.plan { --namen: 224px; --zeile: 44px; --balken: 32px; --schrift: 12px; --raumschrift: 13px; }
.plan.stufe-1 { --namen: 128px; --zeile: 24px; --balken: 20px; --schrift: 11px; --raumschrift: 11px; }
.plan.stufe-2 { --namen: 176px; --zeile: 32px; --balken: 24px; --schrift: 11px; --raumschrift: 12px; }
.plan.stufe-4 { --namen: 256px; --zeile: 56px; --balken: 44px; --schrift: 13px; --raumschrift: 13px; }
.plan.stufe-1 .balken, .plan.stufe-2 .balken { padding: 0 4px; gap: 4px; }
.plan.stufe-1 .raum .plaetze { display: none; }
.raum { padding: 0 12px; display: flex; align-items: center; gap: 8px; font-size: var(--raumschrift); min-height: var(--zeile); min-width: 0; }
.raum .raumname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raum .plaetze { margin-left: auto; font-size: 11px; color: var(--leise); font-variant-numeric: tabular-nums; white-space: nowrap; }
.raum.sammel { font-weight: 500; }
.raum.mitglied { padding-left: 24px; color: var(--leise); }
.raum.mitglied::before { content: ""; width: 8px; height: 8px; border-left: 1px solid var(--linie-stark); border-bottom: 1px solid var(--linie-stark); margin-top: -4px; flex: none; }
.spuren { display: grid; position: relative; align-items: center; min-height: var(--zeile); }
.spuren .zelle { border-left: 1px solid var(--linie); min-height: var(--zeile); align-self: stretch; }   /* 24.9.2026: das Wochenende über die ganze Zeile */
.spuren .zelle.frei { background: var(--grund); }
.spuren .zelle.ziel-frei { background: var(--akzent-flach); }
.spuren .zelle.ziel-belegt { background: var(--senke); }
.balken { margin: 0 2px; height: var(--balken, 32px); border-radius: 6px; display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: var(--schrift, 12px);
  position: relative; z-index: 1; overflow: hidden; white-space: nowrap; min-width: 0; box-sizing: border-box; }
.balken b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.balken .pers { margin-left: auto; font-variant-numeric: tabular-nums; flex: none; }
.balken.voll { background: var(--f); color: var(--flaeche); border: 1px solid var(--f); }
.balken.umrandet { background: var(--fb); border: 1px solid var(--ft); color: var(--ft); }
.balken.sperrung { background: repeating-linear-gradient(135deg, var(--senke) 0 4px, var(--grund) 4px 8px); border: 1px solid var(--linie); color: var(--leise); }
.balken.abgeleitet { background: repeating-linear-gradient(135deg, var(--fb) 0 4px, transparent 4px 8px); color: var(--ft); border: 0; }
/* 1.16c (10.7, c4): das zweite Bett bei allein — nicht verkauft: schraffiert wie die Sperrung, aber ohne Rahmen und leise */
.balken.nicht-verkauft { background: repeating-linear-gradient(135deg, var(--senke) 0 4px, transparent 4px 8px); border: 0; color: var(--leise); cursor: default; }
.balken .pers.kleinkind { font-style: normal; }
.balken.abgeleitet .zeichenab { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.balken.ziehbar { cursor: grab; }
/* P8b (b5): im Zimmer mit zwei Betten ist jede Bahn eine halbe Zeile; in Stufe 1 trägt sie nur die Farbe, der Name steht im Hinweis */
.spuren.zweibett .balken { height: calc(var(--zeile) / 2 - 2px); border-radius: 4px; font-size: 11px; line-height: 1; padding: 0 4px; gap: 4px; }
.plan.stufe-1 .spuren.zweibett .balken > * { display: none; }
.balken.geist { position: fixed; pointer-events: none; opacity: .8; z-index: 40; margin: 0; }
.balken.gezogen { opacity: .4; }
.balken .konfliktmarke { margin-left: auto; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--flaeche); color: var(--warnung); border: 1px solid var(--warnung);
  font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.balken .pers + .konfliktmarke { margin-left: 0; }
.spuren.anlegen-spur .zelle.gewaehlt { background: var(--akzent-flach); }
.legende { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--leise); }
.legende span { display: inline-flex; align-items: center; gap: 8px; }
.legende .legende-farbe { padding-left: 12px; border-left: 1px solid var(--linie); }
.probe { width: 28px; height: 16px; border-radius: 6px; flex: none; }
.probe.voll { background: var(--f); }
.probe.umrandet { background: var(--fb); border: 1px solid var(--ft); }
.probe.sperrung { background: repeating-linear-gradient(135deg, var(--senke) 0 4px, var(--grund) 4px 8px); border: 1px solid var(--linie); }
.probe.abgeleitet { background: repeating-linear-gradient(135deg, var(--fb, var(--senke)) 0 4px, transparent 4px 8px); }
.dialog.aufheben { display: flex; align-items: center; gap: 12px; padding-top: 0; }
.dialog.aufheben .hinweis { margin: 0; }

/* ======================= Der Tagesbetrieb (10.6): Band mit Tag, die sechs Zahlen als Kennzahlen ======================= */
.tageskopf { align-items: center; }
.tageskopf .blaettern { margin-left: 4px; }
.tag-lang { font-size: 13px; font-weight: 600; padding: 0 4px; white-space: nowrap; }
.sechs { display: grid; grid-template-columns: repeat(auto-fit, minmax(144px, 1fr)); gap: 16px; margin-bottom: 16px; }
.zahlfach { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten); padding: 12px 16px; }
.zahlfach b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.zahlfach span { display: block; font-size: 12px; color: var(--leise); margin-top: 2px; white-space: nowrap; }
.mahlzeiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 16px; margin-bottom: 16px; }
.mahlzeit { padding: 16px; overflow: visible; }
.mahlzeit .karten-titel { margin-bottom: 8px; }
.mahlzeit .zahl2 { display: flex; align-items: baseline; gap: 8px; }
.mahlzeit .zahl2 b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mahlzeit .zahl2 span, .mahlzeit .nebenzahl { font-size: 12px; color: var(--leise); }
.mahlzeit .warnmarke { margin-top: 8px; padding: 8px 12px; font-size: 12px; }
.gruppensummen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.summe { height: 28px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie); padding: 0 12px; font-size: 12px;
  display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.summe b { font-weight: 600; }
.summe.art9 { border-color: var(--bernstein-flach); background: var(--bernstein-flach); color: var(--warnung); }
/* 1.15: je Gast ein Häkchen-Raster dessen, was ihm enthalten ist */
.gastraster + .gastraster { margin-top: 8px; }
.gastraster > summary { display: flex; align-items: baseline; gap: 8px; cursor: pointer; padding: 8px 0; }
.gastraster > .raster { margin-bottom: 8px; }
.kuechennotizen { padding: 16px; margin-bottom: 16px; }
.kuechennotizen dl { display: grid; gap: 8px; margin: 0; }
.kuechennotizen dl div { display: grid; grid-template-columns: 208px 1fr; gap: 16px; }
.kuechennotizen dt { font-size: 13px; font-weight: 600; }
.kuechennotizen dd { margin: 0; font-size: 13px; white-space: pre-line; }

/* ======================= Kacheln mit Horizont — die Startseite der Betreiberoberfläche; der Blocktitel auch am Ding ======================= */
.blocktitel { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--leise); margin: 0 0 8px 4px; }
.kachel { padding: 0; overflow: hidden; }
.kachel-kopf { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-bottom: 1px solid var(--linie); }
.kachel-kopf .karten-titel { margin: 0; }
.kachel-kopf a.karten-titel:hover { color: var(--akzent-tief); }
.horizont { margin-left: auto; font-size: 11px; color: var(--leise); white-space: nowrap; }
.zeilen { list-style: none; padding: 4px 16px 8px; }
.zeilen li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--linie); white-space: nowrap; min-width: 0; }
.zeilen li:last-child { border-bottom: 0; }
.zeilen .name { overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.zeilen a.name:hover { color: var(--akzent-tief); }
.zeilen .rechts { margin-left: auto; color: var(--leise); font-size: 12px; font-variant-numeric: tabular-nums; flex: none; display: inline; }
.zeilen.zweispaltig { columns: 2; column-gap: 24px; }
.zeilen.zweispaltig li { break-inside: avoid; }
.warnzeile .name { color: var(--warnung); }
.leer-satz { font-size: 12px; color: var(--leise); padding: 12px 16px; }
.zeilen li:has(.grund) { flex-wrap: wrap; row-gap: 0; }
.zeilen .grund { flex-basis: 100%; font-size: 11px; color: var(--leise); white-space: normal; }   /* 26.9.2026: der Grund unter dem Namen */
.ausschnitt { overflow-x: auto; padding: 12px 16px 16px; }
.ausschnitt .plan { box-shadow: none; }
.ausschnitt .legende { display: none; }   /* die Legende steht am Belegplan; der Ausschnitt zeigt nur den Plan */

/* ======================= Der Wochenblick (10.7, neu gefasst 3.11.2026 nach entwuerfe/wochenblick-2026-11/) ======================= */
.wochenblick .wb-block + .wb-block, .wochenblick .kennzahlen + .wb-block { margin-top: 24px; }
.wochenblick .karte-kopf h2 { font-size: 13px; font-weight: 600; }
.wochenblick .karte-kopf .weiter { margin-left: auto; font-size: 12px; color: var(--leise); white-space: nowrap; }
.wochenblick .karte-kopf .weiter:hover { color: var(--akzent-tief); }
.wochenblick .karte-kopf a.karten-titel:hover { color: var(--akzent-tief); }
.wochenblick .leise { color: var(--leise); }
.wb-zeitraum { width: 1px; font-variant-numeric: tabular-nums; }
.wb-laeuft { font-size: 11px; font-weight: 600; color: var(--gruen); margin-left: 8px; }
/* Heute | Morgen — ein Link je Tag, kein Skript */
.wb-umschalter { display: inline-flex; gap: 2px; padding: 2px; background: var(--senke); border-radius: 8px; }
.wb-umschalter a { height: 28px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 6px; color: var(--leise);
  font-weight: 500; white-space: nowrap; }
.wb-umschalter a:hover { color: var(--text); }
.wb-umschalter a.aktiv { background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }
.wb-umschalter a.aktiv .zaehler { background: var(--akzent-flach); color: var(--akzent-tief); }
.wb-spalten { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
.wb-spalten > section + section { border-left: 1px solid var(--linie); }
.wb-spalten h3 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--leise); padding: 12px 16px 4px; }
.wb-spalten h3 a { color: inherit; }
.wb-spalten h3 a:hover { color: var(--akzent-tief); }
@media (max-width: 1279px) { .wb-spalten { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
  .wb-spalten > section + section { border-left: 0; border-top: 1px solid var(--linie); } }
.wb-eintraege { list-style: none; padding: 0 16px 8px; }
.wb-eintraege li { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--linie); }
.wb-eintraege li:last-child { border-bottom: 0; }
.wb-zeit { font-size: 12px; color: var(--leise); font-variant-numeric: tabular-nums; }
.wb-was { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.wb-was small { display: block; font-size: 12px; font-weight: 400; color: var(--leise); overflow: hidden; text-overflow: ellipsis; }
a.wb-was:hover { color: var(--akzent-tief); }
.wb-dazu { font-size: 12px; color: var(--leise); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wb-eintraege li.wb-leer, .wb-eintraege li.wb-fuss { display: block; font-size: 12px; color: var(--leise); }
/* Zu erledigen: drei Körbe, je Vorgang eine Zeile */
.wb-abschnitt { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px 4px; }
.wb-abschnitt h2 { font-size: 13px; font-weight: 600; }
.wb-abschnitt span, .wb-hinweis { font-size: 12px; color: var(--leise); }
.wb-koerbe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1279px) { .wb-koerbe { grid-template-columns: minmax(0, 1fr); } }
.wb-korb .zaehler.voll { background: var(--akzent-flach); color: var(--akzent-tief); }
.wb-konflikt .zaehler.voll { background: var(--rot-flach); color: var(--rot); }
.wb-erklaerung { padding: 8px 16px 0; font-size: 12px; color: var(--leise); }
.wb-vorgaenge { list-style: none; padding: 4px 16px 8px; }
.wb-vorgaenge > li { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.wb-vorgaenge > li:last-child { border-bottom: 0; }
.wb-vorgang { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.wb-vorgang > a, .wb-vorgang > span:first-child { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-vorgang > a:hover { color: var(--akzent-tief); }
.wb-wann { margin-left: auto; flex: none; font-size: 12px; color: var(--leise); font-variant-numeric: tabular-nums; }
.wb-wann.eilt { color: var(--warnung); font-weight: 500; }
.wb-gruende { list-style: none; margin-top: 4px; display: grid; gap: 4px; }
.wb-gruende li { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--leise); line-height: 1.4; }
.wb-marke { flex: none; font-size: 11px; font-weight: 600; height: 20px; padding: 0 6px; border-radius: 6px; display: inline-flex; align-items: center;
  border: 1px solid var(--linie-stark); color: var(--text); background: var(--flaeche); }
.wb-konflikt .wb-marke { border-color: transparent; background: var(--rot-flach); color: var(--rot); }
.wb-marke.eilt { border-color: transparent; background: var(--bernstein-flach); color: var(--warnung); }
.wb-ausdrucke { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }

/* Y19, Y30 (1.12a) · Die Marke unserer Sitzung im Haus: an der Stelle des Benutzerzeichens */
.sitzung { height: 28px; border-radius: 28px; background: var(--akzent-flach); color: var(--akzent-tief); font-size: 12px;
  font-weight: 500; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* 20.10.2026 (Konzept): im Belegplan die Auslastung im Tagkopf und der Reinigungsstand an der Zimmerzeile */
.tagkopf .auslastung { display: block; font-size: 11px; color: var(--leise); font-weight: 400; }
.raum .reinigung { font-size: 11px; color: var(--leise); margin-left: 8px; }
.raum .reinigung-zu_reinigen { color: var(--warnung); font-weight: 600; }
.kategoriewahl { display: inline-flex; align-items: center; gap: 8px; }

/* ======================= Die Dialoge der Zimmerzuweisung (20.10.2026, Konzept) ======================= */
dialog.dialog-rahmen:has(.dialog.zuweisen), dialog.dialog-rahmen:has(.dialog.upgrade), dialog.dialog-rahmen:has(.dialog.schutz) { width: min(100% - 32px, 720px); }
.zuweisen-kopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(144px, 1fr)); gap: 8px 16px; margin: 0 0 12px; padding: 8px 12px;
  background: var(--senke); border-radius: 8px; }
.zuweisen-kopf dt { font-size: 11px; color: var(--leise); }
.zuweisen-kopf dd { font-weight: 500; }
.kat-mismatch { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--bernstein-flach); color: var(--warnung); font-size: 13px; }
.badge-mismatch { display: inline-block; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 6px; border: 1px solid currentColor; margin-right: 6px; white-space: nowrap; }
.zuweisen-filter { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.zuweisen-filter .filtergruppe { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.zuweisen-filter .filtergruppe > .leiser { font-size: 12px; margin-right: 2px; }
.zuweisen-block { border: 1px solid var(--linie); border-radius: 8px; padding: 0 12px 8px; }
.zuweisen-block h3 { font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
.zuweisen-block .leer-zeile { padding: 8px 0; border-top: 1px solid var(--linie); }
.auswahl-zeile.empfohlen { background: var(--akzent-flach); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.empfohlen-marke { font-size: 11px; font-weight: 600; color: var(--akzent-tief); }
.upgrade-block { margin-top: 8px; border: 1px dashed var(--linie-stark) !important; }
.upgrade-kategorie { font-weight: 500; margin: 8px 0 2px; }
.auswahl-zeile.upgrade-zeile { grid-template-columns: 0 auto 1fr auto; cursor: default; }
.upgrade-vergleich { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 13px; }
.upgrade-vergleich th, .upgrade-vergleich td { text-align: left; padding: 8px; border-top: 1px solid var(--linie); }
.upgrade-vergleich th { font-weight: 500; width: 34%; }
.upgrade-vergleich th .leiser { display: block; font-weight: 400; font-size: 11px; }
.upgrade-wahl { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.upgrade-art { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: start; cursor: pointer; }
.upgrade-art .leiser { display: block; font-size: 12px; }
.upgrade-feld { margin-left: 24px; max-width: 320px; }
.dialog.schutz h2 { display: flex; align-items: center; gap: 6px; }
.zuweisen-filter .knopf.an { background: var(--akzent-flach); color: var(--akzent-tief); border-color: var(--akzent); }

/* ======================= Der Belegplan nach dem Konzept (20.10.2026) ======================= */
.raum .reinigung-in_reinigung { color: var(--akzent-tief); font-weight: 600; }
.raum .reinigung-gesperrt { color: var(--rot); font-weight: 600; }
.balken .schloss, .legende .schloss { display: inline-flex; flex: none; }
.balken .schloss .zeichen { width: 12px; height: 12px; }
.legende .schloss .zeichen { width: 12px; height: 12px; margin-right: 4px; }
.balken.fixiert { box-shadow: inset 0 0 0 1px var(--flaeche); }
.tagkopf .stunden { display: flex; justify-content: space-around; width: 100%; font-size: 11px; color: var(--leise); font-weight: 400; }
.tagkopf.eng .stunden { display: none; }
/* 23.10.2026 (entschieden): rechts neben dem Zimmerplan die Seitenleiste mit dem Gebuchten ohne Zimmer — wie in Opera oder protel */
.plan-mit-leiste { display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: 12px; align-items: start; }
/* klebt unter der Kopfzeile (48) mit 16 Abstand; Kopf und Hinweis bleiben stehen, nur die Karten scrollen */
.offen-leiste { position: sticky; top: calc(48px + 16px); max-height: calc(100vh - 48px - 32px); display: flex; flex-direction: column; gap: 8px; background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten); padding: 12px; user-select: none; }
.offen-karten { display: grid; gap: 8px; min-height: 0; overflow-y: auto; }
.offen-kopf { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.offen-kopf .zahl { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--akzent-flach); color: var(--akzent-tief);
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.offen-hinweis { margin: 0; font-size: 12px; color: var(--leise); }
.offen-leiste .leerer-zustand { margin: 0; font-size: 12px; }
.karte-offen { display: grid; gap: 2px; padding: 8px 12px; border: 1px solid var(--linie); border-left: 3px solid var(--f); border-radius: 8px;
  background: var(--flaeche); color: var(--text); text-decoration: none; font-size: 12px; }
.karte-offen.umrandet { border-left-style: dashed; }
.karte-offen[data-ziehbar] { cursor: grab; }
.karte-offen:hover { background: var(--grund); }
.karte-offen .offen-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.karte-offen .offen-zeile { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.karte-offen .leise { color: var(--leise); white-space: normal; }
.karte-offen .badge-mismatch { justify-self: start; color: var(--warnung); background: var(--bernstein-flach); margin-top: 4px; }
.karte-offen.gezogen { opacity: .4; }
.karte-offen.geist { position: fixed; pointer-events: none; opacity: .9; z-index: 40; margin: 0; box-shadow: var(--schatten-hoch); }
.karte-offen.geist.frei { outline: 2px solid var(--gruen); }
.karte-offen.geist.belegt { outline: 2px solid var(--rot); }
/* die Live-Prüfung beim Ziehen: über die ganze Spanne grün oder rot */
.zelle.ziel-spanne-frei { background: var(--gruen-flach); box-shadow: inset 0 0 0 1px var(--gruen); }
.zelle.ziel-spanne-belegt { background: var(--rot-flach); box-shadow: inset 0 0 0 1px var(--rot); }
.balken.geist.frei { outline: 2px solid var(--gruen); }
.balken.geist.belegt { outline: 2px solid var(--rot); }
/* die Namensspalte zweizeilig: Zimmer und Reinigungsstand oben, Kapazität und Eigenschaften darunter */
.plan .raum { flex-wrap: wrap; row-gap: 0; align-content: center; line-height: 1.25; }
.plan .raum .raumname { flex: 1 1 0; min-width: 0; }
.plan .raum .reinigung { order: 2; margin-left: 4px; white-space: nowrap; }
.plan .raum .plaetze { order: 3; flex: 0 0 100%; margin-left: 0; overflow: hidden; text-overflow: ellipsis; }
.plan .raum .badge-mismatch { order: 4; }

/* ======================= P2 (S1) · Das Feld Kontakt: Suchfeld, Vorschläge darunter im Fluss, „+ Neu“ mit fünf Unterfeldern ======================= */
.kontaktwahl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kontakt-vorschlaege { border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); box-shadow: var(--schatten-hoch);
  padding: 4px; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; }
.kontakt-vorschlaege[hidden], .kontakt-neu[hidden] { display: none; }
.kontakt-treffer { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 0; padding: 8px 12px; border-radius: 6px;
  cursor: pointer; }
.kontakt-treffer:hover, .kontakt-treffer.aktiv { background: var(--akzent-flach); }
.kontakt-treffer[disabled] { cursor: default; color: var(--leise); background: none; }
.kontakt-treffer.neu { flex-direction: row; align-items: center; gap: 8px; color: var(--akzent-tief); font-weight: 500; border-top: 1px solid var(--linie);
  border-radius: 0 0 6px 6px; }
.kontakt-name { font-weight: 500; }
.kontakt-zeile { font-size: 12px; color: var(--leise); }
.kontakt-leer { padding: 8px 12px; color: var(--leise); }
.kontakt-neu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border: 1px solid var(--linie); border-radius: 8px; background: var(--grund); }
.kontakt-neu .breit { grid-column: 1 / -1; }
.kontakt-neu .knopf { justify-self: start; }
.kontakt-hinweis { font-size: 12px; color: var(--warnung); }
.kontakt-nehmen { all: unset; cursor: pointer; color: var(--akzent-tief); text-decoration: underline; }
.kontakt-treffer .marke { font-size: 11px; font-weight: 400; color: var(--leise); border: 1px solid var(--linie); border-radius: 6px; padding: 0 4px; margin-left: 4px; }

/* ======================= P2 (S2) · Die Schnellsuche in der Kopfzeile (188, 8.3, 9.3) ======================= */
.schnellsuche { position: relative; margin-left: auto; width: 256px; flex: none; }
.schnellsuche .feld { padding-right: 32px; }
.schnellsuche kbd { position: absolute; right: 8px; top: 8px; height: 16px; min-width: 16px; padding: 0 4px; border: 1px solid var(--linie);
  border-radius: 6px; font: 11px/1.3 Inter, sans-serif; color: var(--leise); text-align: center; pointer-events: none; }
.schnellsuche:focus-within kbd { display: none; }
.schnellsuche + .kopf-rechts { margin-left: 0; }
.schnellsuche-treffer { position: absolute; right: 0; top: calc(100% + 4px); width: 400px; max-height: 560px; overflow-y: auto; z-index: 30;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten-hoch); padding: 8px; }
.schnellsuche-treffer[hidden] { display: none; }
.suche-gruppe + .suche-gruppe { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--linie); }
.suche-gruppe-titel { font-size: 11px; font-weight: 600; color: var(--leise); text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px;
  display: flex; align-items: center; gap: 8px; }
.suche-treffer { display: flex; flex-direction: column; padding: 8px; border-radius: 8px; }
.suche-treffer:hover, .suche-treffer.aktiv { background: var(--akzent-flach); }
.suche-titel { font-weight: 500; }
.suche-zeile { font-size: 12px; color: var(--leise); }
.suche-alle { display: block; padding: 4px 8px; font-size: 12px; color: var(--akzent-tief); }
.suche-leer { padding: 8px; color: var(--leise); }
.suche-seite { padding: 16px; max-width: 720px; }

/* ======================= P4a (S6) · Der dichte Kopf des Dings: Statusleiste und eine Zeile ======================= */
.dingkopf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.dingzeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--leise); }
.dingzeile a { color: var(--text); font-weight: 500; }
.dingzeile a:hover { text-decoration: underline; }
.dingzeile .trenner { color: var(--linie-stark); }
.statusleiste { list-style: none; display: flex; align-items: center; gap: 4px; font-size: 12px; }
.statusleiste li { padding: 2px 8px; border-radius: 12px; color: var(--leise); border: 1px solid var(--linie); }
.statusleiste li.erledigt { color: var(--gruen); border-color: var(--gruen-flach); background: var(--gruen-flach); }
.statusleiste li.aktiv { color: var(--flaeche); background: var(--akzent); border-color: var(--akzent); font-weight: 500; }
.status-ende { font-size: 12px; padding: 2px 8px; border-radius: 12px; color: var(--rot); background: var(--rot-flach); font-weight: 500; }
.aktionen-menue a.gefahr { color: var(--rot); }
