﻿:root {
  --gruen: #2F6B2A;
  --gruen-hell: #E8F0E1;
  --text: #1E2A1C;
  --grau: #5B6B58;
  --rand: #D5DDD0;
  --fehler: #B3261E;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #F4F6F1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.kopf {
  background: var(--gruen);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 16px;
}
.kopf .titel { color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; }
.kopf .benutzer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kopf .benutzer form { margin: 0; }
.kopf .link { color: #fff; text-decoration: underline; }
.inhalt { flex: 1; padding: 24px; max-width: 980px; width: 100%; margin: 0 auto; }
.fuss { padding: 14px 24px; color: var(--grau); font-size: 14px; text-align: center; }
.karte {
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
}
.karte.schmal { max-width: 440px; margin-left: auto; margin-right: auto; }
h1 { margin: 0 0 8px; font-size: 26px; }
h2 { margin: 0 0 8px; font-size: 20px; }
p { line-height: 1.5; }
.hinweis { color: var(--grau); margin-top: 0; }
label { display: block; font-weight: 600; margin-bottom: 14px; }
input[type=text], input[type=password] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  font-size: 16px;
  border: 1px solid #B8C4B2;
  border-radius: 10px;
  background: #fff;
}
input:focus { outline: 2px solid var(--gruen); outline-offset: 1px; }
.knopf {
  background: var(--gruen);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.knopf.klein { padding: 8px 14px; min-height: 36px; background: #fff; color: var(--gruen); }
.knopf:hover { filter: brightness(1.08); }
.fehler {
  background: #FCEBEA;
  color: var(--fehler);
  border: 1px solid #F3C4C0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.erfolg {
  background: var(--gruen-hell);
  color: var(--gruen);
  border: 1px solid #C9DABB;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.zahlen { display: flex; gap: 14px; flex-wrap: wrap; }
.zahl { background: var(--gruen-hell); border-radius: 12px; padding: 14px 18px; min-width: 150px; }
.zahl b { display: block; font-size: 26px; }
.kopf .menue { display: flex; gap: 18px; flex-wrap: wrap; }
.kopf .menue a { color: #fff; text-decoration: none; font-weight: 600; }
.kopf .menue a:hover { text-decoration: underline; }
.tabelle { overflow-x: auto; }
.tabelle table { border-collapse: collapse; width: 100%; font-size: 14px; }
.tabelle th, .tabelle td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rand); vertical-align: top; }
.tabelle th { background: var(--gruen-hell); position: sticky; top: 0; }
.tabelle tr.gruppe td { background: #F4F6F1; font-weight: 700; color: var(--gruen); }
.inhalt { max-width: 1200px; }
a.knopf { display: inline-block; text-decoration: none; }
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.kopfzeile h1 { margin: 0; }
.formular { max-width: 560px; }
.beschriftung { font-weight: 600; margin: 18px 0 8px; }
label.auswahl { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 8px 10px; border: 1px solid var(--rand); border-radius: 10px; margin-bottom: 8px; }
label.auswahl input { margin-top: 4px; width: 18px; height: 18px; }
label.auswahl small { color: var(--grau); }
.kennwortbox { font-family: Consolas, "Courier New", monospace; font-size: 26px; letter-spacing: 1px; background: var(--gruen-hell); border: 1px dashed var(--gruen); border-radius: 10px; padding: 14px 18px; display: inline-block; user-select: all; }
.knopfreihe { display: flex; gap: 12px; flex-wrap: wrap; }
.knopfreihe form { margin: 0; }
a.link { color: var(--gruen); }
form.zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
form.zeile input[type=text] { width: 260px; margin-top: 0; }
form.abstand { margin-top: 14px; }
label.klein-label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; }
.knopf.klein { border: 1px solid var(--gruen); }
.kopf .knopf.klein { border: 0; }
.marke { display: inline-block; background: var(--gruen-hell); border-radius: 999px; padding: 4px 12px; margin: 0 8px 8px 0; font-size: 14px; }
.tabelle.eng table { font-size: 13px; }
.tabelle.eng th, .tabelle.eng td { padding: 6px 8px; }
.abstand-unten { margin-bottom: 12px; align-items: center; }
.streifen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.streifen { background: #fff; border: 1px dashed #7A8B76; border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.6; break-inside: avoid; page-break-inside: avoid; }
.streifen-kopf { font-weight: 700; color: var(--gruen); margin-bottom: 4px; }
.streifen-fuss { color: var(--grau); font-size: 12px; margin-top: 4px; }
.kennwortbox.klein-box { font-size: 18px; padding: 4px 10px; }
@media print {
  .kopf, .fuss, .nicht-drucken { display: none !important; }
  body { background: #fff; }
  .inhalt { padding: 0; max-width: none; }
  .streifen-raster { grid-template-columns: repeat(2, 1fr); }
}
select { padding: 10px 12px; font-size: 16px; border: 1px solid #B8C4B2; border-radius: 10px; background: #fff; }
form.zeile select { margin-top: 0; }
input.zahlfeld { width: 90px; text-align: right; }
.tabelle input[type=text] { margin-top: 0; padding: 6px 8px; font-size: 14px; }
.tabelle td small { color: var(--grau); }
.zaehlliste { background: #fff; padding: 16px 20px; margin-bottom: 18px; border: 1px solid var(--rand); border-radius: 8px; }
.zaehlliste h2 { font-size: 18px; }
.zaehlliste h3 { margin: 16px 0 6px; font-size: 15px; }
.zaehltabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.zaehltabelle th, .zaehltabelle td { border: 1px solid #8A9A86; padding: 5px 6px; text-align: left; vertical-align: top; }
.zaehltabelle th.feld, .zaehltabelle td.feld { width: 16%; height: 30px; }
.zaehltabelle tr { break-inside: avoid; page-break-inside: avoid; }
@media print {
  .zaehlliste { border: 0; padding: 0; margin: 0; break-before: page; page-break-before: always; }
  .zaehlliste:first-of-type { break-before: auto; page-break-before: auto; }
  .zaehltabelle { font-size: 11px; }
}

/* ---- Seitengerüst mit Seitenleiste (Optik wie im Prototyp) ---- */
:root { --gruen-aktiv: #3A7A33; --aktiv-hg: #E6F0DA; --schatten: 0 1px 2px rgba(30,42,28,.05), 0 6px 18px rgba(30,42,28,.06); }
body { font-family: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
.kopf { position: sticky; top: 0; z-index: 30; padding: 0 24px; min-height: 64px; justify-content: flex-start; }
.kopf .titel { flex: 1; }
.kopf .benutzer { flex-wrap: nowrap; }
.benutzer-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.benutzer-text small { opacity: .85; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.menueknopf { display: none; background: transparent; border: 0; color: #fff; padding: 6px; margin-right: 4px; cursor: pointer; border-radius: 8px; }
.menueknopf:hover { background: rgba(255,255,255,.15); }
.huelle { flex: 1; display: flex; min-height: 0; }
.seite { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.seite .inhalt { padding: 28px 32px; }
.seitenleiste { width: 276px; flex: 0 0 276px; background: #fff; border-right: 1px solid var(--rand); padding: 16px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 64px; align-self: flex-start; height: calc(100vh - 64px); overflow-y: auto; }
.logo { display: block; border: 1px solid var(--rand); border-radius: 14px; padding: 10px 12px; background: #fff; }
.logo img { display: block; width: 100%; height: auto; }
.hauptmenue { display: flex; flex-direction: column; gap: 4px; }
.menue-eintrag { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 500; cursor: pointer; list-style: none; position: relative; }
.menue-eintrag:hover { background: #F0F4EB; }
.menue-eintrag .symbol { flex: 0 0 22px; color: var(--grau); }
.menue-eintrag.aktiv { background: var(--aktiv-hg); color: var(--gruen-aktiv); font-weight: 600; box-shadow: inset 4px 0 0 #8BC34A; }
.menue-eintrag.aktiv .symbol, .menue-eintrag.aktiv-gruppe .symbol { color: var(--gruen-aktiv); }
.menue-eintrag.aktiv-gruppe { font-weight: 600; color: var(--gruen-aktiv); }
.menue-eintrag .pfeil { margin-left: auto; color: var(--grau); transition: transform .15s ease; flex: none; }
details.gruppe > summary { list-style: none; }
details.gruppe > summary::-webkit-details-marker { display: none; }
details.gruppe[open] > summary .pfeil { transform: rotate(90deg); }
.untermenue { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 8px 46px; }
.untermenue a { padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; }
.untermenue a:hover { background: #F0F4EB; }
.untermenue a.aktiv { background: var(--aktiv-hg); color: var(--gruen-aktiv); font-weight: 600; }
.menue-fuss { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 6px 0; border-top: 1px solid var(--rand); }
.menue-fuss form { margin: 0; }
.karte { box-shadow: var(--schatten); border-radius: 16px; }
body.ohne-menue .huelle { justify-content: center; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; }
a.kachel { display: block; background: #fff; border: 1px solid var(--rand); border-radius: 16px; padding: 18px 20px; text-decoration: none; color: var(--text); box-shadow: var(--schatten); }
a.kachel:hover { border-color: var(--gruen); }
a.kachel b { display: block; font-size: 18px; margin-bottom: 4px; }
a.kachel span { color: var(--grau); font-size: 14px; }
a.kachel.stark { background: var(--gruen-aktiv); border-color: var(--gruen-aktiv); color: #fff; }
a.kachel.stark span { color: rgba(255,255,255,.88); }
.begruessung h1 { font-size: 32px; margin-bottom: 4px; }
.begruessung p { margin: 0 0 20px; color: var(--grau); }
.datumkarte { display: flex; gap: 24px; align-items: baseline; flex-wrap: wrap; }
.datumkarte .tag { font-size: 28px; font-weight: 700; }
.datumkarte .datum { font-size: 18px; }
.datumkarte .woche { color: var(--grau); }

@media (max-width: 900px) {
  .menueknopf { display: inline-flex; }
  .kopf { padding: 0 14px; }
  .benutzer-text { display: none; }
  .seitenleiste { position: fixed; top: 64px; left: 0; height: calc(100vh - 64px); height: calc(100dvh - 64px); z-index: 25; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
  body.menue-offen .seitenleiste { transform: none; }
  .seite .inhalt { padding: 18px 14px; }
}

@media print {
  .seitenleiste, .menueknopf { display: none !important; }
  .huelle { display: block; }
  .karte { box-shadow: none; }
  .kopf { position: static; }
}

/* ---- Feinabstimmung nach dem Prototyp (Maße aus dem Prototyp ausgelesen) ---- */
body { background: #F4F7F1; color: #1B261A; }
.kopf { min-height: 78px; padding: 12px 20px; }
.seitenleiste { width: 262px; flex: 0 0 262px; padding: 18px 14px; top: 78px; height: calc(100vh - 78px); }
.karte { box-shadow: 0 1px 2px rgba(20,40,30,.04), 0 10px 28px -14px rgba(20,40,30,.14); }
h1 { font-size: 28px; }
details.gruppe[open] > summary { background: #ECF0E8; }
.menue-eintrag.aktiv-gruppe { font-weight: 500; color: var(--text); }
.menue-eintrag.aktiv-gruppe .symbol { color: var(--grau); }
.untermenue { margin: 2px 0 8px 22px; padding: 0 0 0 10px; border-left: 2px solid var(--rand); gap: 2px; }
.untermenue a { padding: 8px 10px; border-radius: 12px; font-size: 15px; }
.untermenue a.aktiv { background: var(--aktiv-hg); color: var(--gruen-aktiv); font-weight: 600; box-shadow: inset 4px 0 0 #8BC34A; }
.warnstreifen { background: #FFF4D6; color: #6A4B00; border-bottom: 1px solid #F0DFA6; padding: 8px 20px; font-size: 14px; }
@media (max-width: 900px) {
  .seitenleiste { top: 78px; height: calc(100vh - 78px); height: calc(100dvh - 78px); }
}
@font-face { font-family: "Figtree"; src: local("Figtree"), url("/fonts/Figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

/* ---- Links in Tabellen und Listen im Farbton des Portals; Löschen als Textknopf ---- */
.tabelle a, .karte li a { color: var(--gruen-aktiv); font-weight: 600; text-decoration: none; }
.tabelle a:hover, .karte li a:hover { text-decoration: underline; }
form.inline { display: inline; margin: 0; }
.linkknopf { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--fehler); cursor: pointer; text-decoration: none; }
.linkknopf:hover { text-decoration: underline; }

/* ---- Zähllisten: überall gleiche Spaltenbreiten ---- */
.zaehltabelle { table-layout: fixed; }
.zaehltabelle th:first-child { width: 38%; }
.zaehltabelle th:nth-child(2) { width: 22%; }
.zaehltabelle th.feld { width: 13%; }

/* ---- Bauabschnitt 7a: Glocke, Plus bei Aktionen, untere Leiste am Handy ---- */
.glocke { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; text-decoration: none; margin-right: 6px; }
.glocke:hover { background: rgba(255,255,255,.12); }
.glocke svg { width: 23px; height: 23px; }
.zahl-badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #C73A30; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.kopf .benutzer { margin-left: auto; }
.untermenue a.aktion { color: var(--gruen-aktiv); font-weight: 700; }
.untermenue a.aktion::before { content: "+"; display: inline-block; width: 20px; font-weight: 800; font-size: 17px; line-height: 1; }
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--rand); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 4px; overflow-x: auto; }
  .tabbar a { flex: 1 0 68px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; font-size: 12px; color: var(--grau); text-decoration: none; text-align: center; }
  .tabbar a svg { width: 20px; height: 20px; flex: none; }
  .tabbar a.aktiv { color: var(--gruen-aktiv); background: var(--aktiv-hg); font-weight: 600; }
  .seitenleiste, .menueknopf { display: none !important; }
  .seite .inhalt { padding-bottom: 90px; }
}
@media print { .tabbar, .glocke { display: none !important; } }
.px { display: block; }
.hinweisliste { list-style: none; margin: 0; padding: 0; }
.hinweisliste li { display: flex; gap: 12px; align-items: baseline; padding: 12px 4px; border-bottom: 1px solid var(--rand); }
.hinweisliste li.neu { background: #F3F8EC; font-weight: 600; }
.hinweisliste time { color: var(--grau); font-size: 13px; white-space: nowrap; margin-left: auto; }
.telefonliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 24px; }
.telefonliste h3 { margin: 14px 0 6px; font-size: 15px; color: var(--gruen); }
.telefonliste a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 4px; border-bottom: 1px solid var(--rand); color: var(--text); text-decoration: none; }
.telefonliste a b { white-space: nowrap; color: var(--gruen-aktiv); }

/* Tickets (Paket 7b): Zeilen und Untermenü als Links, Empfänger-Chips mit Kontrollkästchen */
.px a.row, .px a.chip, .px a.btn { color: inherit; text-decoration: none; }
.px a.btn.primary { color: var(--brand-ink); }
.px a.linkbtn { display: inline; }
.px .subnav a { border: 0; background: var(--grey-soft); padding: 9px 14px; border-radius: 999px; white-space: nowrap; color: var(--ink); text-decoration: none; }
.px .subnav a.on { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.px label.chip { display: inline-flex; align-items: center; }
.px .chip input.nurtext { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.px label.chip:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.px .subrow { margin-left: 28px; }
.px .tkcol form + form { margin-top: 0; }
.px label.ptogcb { display: inline-flex; align-items: center; position: relative; }
.px label.ptogcb:has(input:checked) { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.px label.ptogcb:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.px label.chip:has(input:checked) { background: var(--brand); color: var(--brand-ink); }
/* In den Modulen (.px) sind nur die Feldüberschriften fett, nicht die Eingaben. */
.px label { font-weight: 400; margin-bottom: 0; }
/* Checkliste im Ticket: Ergebnis-Knöpfe als Auswahlfelder, Mangel-Feld nur bei "!" */
.px label.rb { display: inline-flex; align-items: center; justify-content: center; position: relative; margin: 0; }
.px label.rb.aus { opacity: .4; cursor: default; }
.px label.rb.r-done:has(input:checked) { background: #3E8E3A; border-color: #3E8E3A; color: #fff; }
.px label.rb.r-na:has(input:checked) { background: #7A867A; border-color: #7A867A; color: #fff; }
.px label.rb.r-mangel:has(input:checked) { background: #D64545; border-color: #D64545; color: #fff; }
.px label.rb.r-mangel.fixed:has(input:checked) { background: #3E8E3A; border-color: #3E8E3A; }
.px label.rb:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.px .ckm { display: none; flex-direction: column; gap: 2px; }
.px .ckrow2:has(input[value="mangel"]:checked:not(:disabled)) .ckm { display: flex; }
.px .ckrow2.geaendert { background: #FFFBEA; outline: 1px dashed #E0A100; }
.px .ckdurch { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.px .ckrow2:not(:has(input[data-ckwahl]:checked)) .ckdurch { display: none; }
/* Druckblatt Ticket mit Checkliste */
.tkblatt { background: #fff; border: 1px solid var(--rand, #ddd); border-radius: 12px; padding: 24px; max-width: 800px; font-size: 14px; }
.tkkopf { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #2F6B2A; padding-bottom: 8px; margin-bottom: 12px; }
.tkkopf h2 { margin: 0; font-size: 20px; }
.tkkopf img { height: 46px; }
.tkinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-bottom: 10px; }
.tkinfo div b, .tkdesc b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #5B6B57; }
.tkinfo .full { grid-column: 1 / -1; font-size: 16px; font-weight: 600; }
.tkdesc { margin-bottom: 10px; white-space: pre-line; }
.tklegende { font-size: 12px; color: #5B6B57; margin: 6px 0; }
.tkhead, .tkr { display: grid; grid-template-columns: 84px 1fr 180px; gap: 10px; align-items: center; }
.tkhead { font-size: 11px; font-weight: 700; color: #5B6B57; border-bottom: 1px solid #999; padding: 4px 0; }
.tkh3, .tkbox { display: flex; gap: 6px; }
.tkh3 i, .tkbox i { width: 20px; text-align: center; font-style: normal; }
.tkbox i { height: 20px; border: 1.5px solid #333; border-radius: 3px; line-height: 18px; }
.tkr { border-bottom: 1px solid #ddd; padding: 6px 0; break-inside: avoid; }
.tkr.done .tktx { color: #5B6B57; }
.tktag { font-size: 11px; background: #E6F0DA; border-radius: 6px; padding: 0 6px; margin-left: 6px; }
.tkwho { font-size: 12px; color: #5B6B57; }
.tkgrp { display: flex; justify-content: space-between; background: #E6F0DA; padding: 4px 8px; margin-top: 10px; border-radius: 4px; }
.tkend { margin-top: 18px; }
.tkln { border-bottom: 1px solid #333; height: 28px; position: relative; }
.tkln span { position: absolute; bottom: 2px; font-size: 11px; color: #5B6B57; }
.tksig { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tkfuss { display: flex; justify-content: space-between; font-size: 11px; color: #5B6B57; border-top: 1px solid #ccc; margin-top: 20px; padding-top: 6px; }
@media print { .tkblatt { border: 0; padding: 0; max-width: none; } }
.px details.ckmrow > summary { list-style: none; display: inline-flex; margin: 6px 0; }
.px details.ckmrow > summary::-webkit-details-marker { display: none; }
.px details.ckmrow:not([open]) { padding: 0; background: none; border: 0; }
.px input.nurtext { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; margin: 0; }
.px #checkliste:not(:has(.geaendert)) .cksave { position: static; background: var(--grey-soft); border-color: var(--line); }
/* Aufgaben (Paket 7c): Reiter als Links, Kalendertage als Links */
.px .ttabs a { padding: 10px 14px; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 500; white-space: nowrap; text-decoration: none; }
.px .ttabs a.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.px a.cald { color: inherit; text-decoration: none; }
/* Material (Paket 7d) */
.px a.mcat { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.px .mrowu { display: flex; gap: 8px; align-items: center; }
.px .mrowu input[type=number], .px .cartrow input[type=number] { width: 76px; }
.px .mi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.px .mq { display: flex; flex-direction: column; gap: 6px; }
.px .cartrow { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.px .cartrow > span { display: flex; flex-direction: column; }
.pltab { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.pltab th { text-align: left; font-size: 11px; color: #5B6B57; border-bottom: 1px solid #999; padding: 4px; }
.pltab td { border-bottom: 1px solid #ddd; padding: 6px 4px; vertical-align: top; }
.plbox { display: inline-block; width: 16px; height: 16px; border: 1.5px solid #333; border-radius: 3px; }
.plnote { background: #FFF1CC; border: 1px solid #E8C45A; border-radius: 6px; padding: 6px 8px; font-size: 12px; margin: 6px 0; }
.plh { font-size: 14px; margin: 12px 0 2px; }
.tkblatt.seite { margin-bottom: 18px; }
@media print { .tkblatt.seite { break-after: page; } }
/* Speiseplan (Paket 7f) */
/* Speiseplan-Woche wie im Prototyp */
.px .spgrid{display:grid;grid-template-columns:130px repeat(3,minmax(0,1fr));gap:10px;align-items:start}
.px .sph{font-weight:700;color:var(--muted,#5B6B58);font-size:13px}
.px .spd{padding-top:6px}
.px .spd.heute b{color:var(--brand)}
.px .spgrid textarea{width:100%;min-height:74px;font:inherit;padding:8px 10px;border:1px solid var(--line);border-radius:10px;resize:vertical}
.px .spgrid textarea.vor{background:#F4F6F1;font-style:italic;color:#5B6B58;border-style:dashed}
.px .spgrid textarea:disabled{background:#F1F3EF;color:#8a8a8a}
.px .spkitop{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 12px}
.px .warnt{color:#9A5B00;font-weight:600}
.px .tabs a{padding:10px 14px;color:var(--muted);border-bottom:3px solid transparent;font-weight:500;white-space:nowrap;text-decoration:none}
.px .tabs a.on{color:var(--brand);border-bottom-color:var(--brand);font-weight:600}
@media (max-width: 760px) { .px .spgrid { grid-template-columns: minmax(0, 1fr); } .px .sph { display: none; } }
.sptab td { font-size: 14px; padding: 10px 6px; }
/* Monitor (Paket 7g) */
.px .moni { background: var(--bg, #F3F5F0); }
.px .moni:fullscreen { padding: 20px; overflow: auto; }
.px .moni-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.px .moni-kopf b { font-size: 22px; margin-right: 10px; }
.px .moni-uhr { font-size: 28px; font-weight: 800; }
.px .moni-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.px .moni-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.px .moni-kpi b { display: block; font-size: 30px; line-height: 1.1; }
.px .moni-kpi.rot b { color: #C0392B; }
.px .moni-kpi.gelb b { color: #B7791F; }
.px .moni-raster { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.px .moni-seite { display: grid; gap: 14px; align-content: start; }
.px .moni-tk { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0 8px 10px; border-bottom: 1px solid var(--line); border-left: 5px solid #8BB174; }
.px .moni-tk > div { display: flex; flex-direction: column; }
.px .moni-tk.amp-red { border-left-color: #C0392B; }
.px .moni-tk.amp-yellow { border-left-color: #E0A800; }
.px .moni-prio { font-size: 13px; font-weight: 700; }
.px .moni-frist { font-size: 13px; min-width: 110px; text-align: right; }
@media (max-width: 900px) { .px .moni-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .px .moni-raster { grid-template-columns: minmax(0, 1fr); } }
/* Controlling (Paket 7g) */
.px .ctrl-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 14px 0; }
.px .ctrl-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.px .cbar { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; }
.px .cbar-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px .cbar-l { background: #EEF2EA; border-radius: 6px; height: 14px; overflow: hidden; }
.px .cbar-l i { display: block; height: 100%; background: #4E8A3E; border-radius: 6px; }
.px .cbar-w { font-weight: 700; white-space: nowrap; }
/* Wie im Prototyp: Schnellaktionen ohne Unterstreichung, rote Zahl im Menü */
.px a.qtile { text-decoration: none; }
.px button.qtile { width: 100%; }
.hauptmenue .nbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #C0392B; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; margin-left: auto; }
.hauptmenue summary .nbadge + svg { margin-left: 8px; }
.hauptmenue .untermenue a { display: flex; align-items: center; gap: 8px; }
.px .lgnone { color: var(--muted); }
/* Speiseplan: Reiter Wochenplan/Rotationsplan auch auf großen Bildschirmen (sonst wäre der Rotationsplan nicht erreichbar) */
.px .tabs.sptabs { display: flex; }
.px a.urow { color: inherit; text-decoration: none; }
.px .uhead { display: grid; grid-template-columns: minmax(0,1fr) 150px minmax(0,1.1fr) 170px 100px; gap: 14px; padding: 0 18px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 900px) { .px .uhead { display: none; } }
/* Bewohnerliste: Zeilen der Hausübersicht als Raster (eine spätere Monitor-Regel für .hr gilt hier nicht) */
.px .haus .hr { display: grid; grid-template-columns: 30px minmax(0,1fr) 22px 52px auto; gap: 8px; align-items: center; padding: 4px 4px; border-radius: 8px; font-size: 14px; border-bottom: 0; }
.px .bdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--bh,130) calc(45% * var(--bsf, 1)) calc(50% + var(--blp, 0%))); margin-right: 6px; vertical-align: middle; }
/* Seiten mit voller Breite (Bewohnerliste wie im Prototyp); die Hausübersicht begrenzt sich selbst auf etwa 1280 Punkte */
.inhalt.breit { max-width: none; }
/* Bewohnerliste A bis Z (eine A4-Seite, drei Spalten) */
.bwblatt { background: #fff; width: 190mm; margin: 0 auto; color: #1B2A19; }
.bwkopf { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid #2F6B2A; padding: 6px 0 6px; margin-bottom: 6px; }
.bwkopf img { height: 44px; }
.bwkopf h2 { margin: 0; font-size: 16pt; color: #2F6B2A; }
.bwkopf small { color: #5B6B58; }
.bwspalten { column-count: 3; column-gap: 6mm; column-fill: balance; line-height: 1.15; }
.bwz { display: grid; grid-template-columns: minmax(0,1fr) auto 2.4em; gap: 6px; break-inside: avoid; border-bottom: 0.5px solid #E3E9DC; padding: 0.6px 0; }
.bwz span, .bwz b { white-space: nowrap; overflow: hidden; }
.bwz b { text-align: right; }
.bwh { font-weight: 700; color: #5B6B58; border-bottom: 1.5px solid #2F6B2A; }
.bwbuchstabe { font-weight: 800; color: #2F6B2A; margin-top: 1px; line-height: 1.1; break-after: avoid; }
.bwfuss { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #C9D2C4; margin-top: 6px; padding-top: 4px; font-size: 7.5pt; color: #5B6B58; }
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  .bwblatt { width: 190mm; margin: 0 auto !important; }
  .inhalt:has(.bwblatt) { padding: 0 !important; margin: 0 auto !important; max-width: none !important; }
}
/* Benutzermenü oben rechts (wie im Prototyp) */
.kontowahl { position: relative; margin-left: 8px; }
.kopf button.benutzer { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; font: inherit; text-align: right; cursor: pointer; padding: 4px 6px; border-radius: 10px; }
.kopf button.benutzer:hover, .kopf button.benutzer[aria-expanded="true"] { background: rgba(255,255,255,0.12); }
.kontomenue { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: #1B2A19; border: 1px solid #E3E9DC; border-radius: 12px; padding: 6px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); z-index: 30; min-width: 210px; }
.kontomenue a, .kontomenue button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: #1B2A19; font: inherit; font-size: 15px; text-decoration: none; }
.kontomenue a:hover, .kontomenue button:hover { background: #EEF1EA; }
.kontomenue form { margin: 0; }
/* Hilfetexte */
.tipblase { position: fixed; z-index: 60; max-width: 300px; background: #1B2A19; color: #fff; font-size: 13px; line-height: 1.35; padding: 8px 10px; border-radius: 8px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); pointer-events: none; }
/* Verweise ohne Blau, wie im Prototyp */
a { color: var(--brand, #2F6B2A); }
.px .trow .tnr { color: inherit; text-decoration: none; }
@media print { html, body, .seite, .huelle, .inhalt { background: #fff !important; } }
/* Artikelliste zum Ausdrucken (A4 quer) */
.arblatt { background: #fff; color: #1B2A19; max-width: 277mm; margin: 0 auto; }
.artab { width: 100%; border-collapse: collapse; font-size: 8pt; }
.artab th { text-align: left; font-size: 7.5pt; color: #5B6B58; border-bottom: 1.5px solid #2F6B2A; padding: 3px 4px; vertical-align: bottom; }
.artab td { border-bottom: 0.5px solid #C9D2C4; padding: 4px 4px; vertical-align: top; height: 7mm; }
.artab .arname { width: 20%; font-weight: 600; }
.artab .arname small { font-weight: 400; color: #5B6B58; }
.artab .arnotiz { width: 17%; border-left: 0.5px solid #C9D2C4; }
.artab .arleer { background: #fff; outline: 0.75px solid #9AA595; outline-offset: -3px; }
.artab .arzahl { text-align: right; }
.artab .argruppe td { height: auto; font-weight: 800; color: #2F6B2A; background: #EEF3E8; border-bottom: 1px solid #2F6B2A; padding: 3px 4px; }
.artab thead { display: table-header-group; }
.artab tr { break-inside: avoid; }
@media print {
  @page arquer { size: A4 landscape; margin: 10mm; }
  .arblatt { page: arquer; max-width: none; }
  .artab .argruppe td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Bewohnerliste: Telefonnummern so groß wie die Namen (Wunsch der Geschäftsführung 10.11.2026) */
.px .haus .hr .ht { font-size: 14px; font-weight: 600; color: var(--muted, #5B6B58); font-variant-numeric: tabular-nums; text-align: right; }
/* Speiseplan: von der KI gefüllte Felder (noch nicht gespeichert) */
.px .spgrid textarea.ki { background: #EEF6E6; border-color: #9CC744; }
/* Hilfe */
.hilfe .hgitter { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.hilfe .hinhalt { position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; padding: 14px; font-size: 14px; }
.hilfe .hinhalt input { width: 100%; margin-bottom: 10px; }
.hilfe .hinhalt b { display: block; margin: 10px 0 4px; color: #5B6B58; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.hilfe .hinhalt ul { list-style: none; margin: 0; padding: 0; }
.hilfe .hinhalt li a { display: block; padding: 4px 8px; border-radius: 8px; color: #1B2A19; text-decoration: none; }
.hilfe .hinhalt li a:hover, .hilfe .hinhalt li a.aktiv { background: #EEF3E8; color: #2F6B2A; font-weight: 600; }
.hilfe .habschnitt { margin-bottom: 16px; scroll-margin-top: 80px; line-height: 1.55; max-width: 820px; }
.hilfe .habschnitt.hier { box-shadow: 0 0 0 3px #9CC744; }
.hilfe .hkopf h2 { margin: 2px 0 8px; }
.hilfe .hgruppe { font-size: 12px; color: #5B6B58; text-transform: uppercase; letter-spacing: .04em; }
.hilfe .habschnitt h3 { font-size: 17px; margin: 18px 0 6px; }
.hilfe .habschnitt h4 { font-size: 15px; margin: 14px 0 4px; }
.hilfe .habschnitt ul, .hilfe .habschnitt ol { padding-left: 22px; }
.hilfe .habschnitt li { margin: 3px 0; }
.hilfe .hbeg { font-weight: 600; }
.hilfe .htipp { background: #F4F8EE; border-left: 4px solid #9CC744; padding: 8px 12px; border-radius: 8px; margin: 10px 0; }
.hilfe .hbild { margin: 12px 0; }
.hilfe .hbild img { max-width: 100%; border: 1px solid #E3E9DC; border-radius: 10px; box-shadow: 0 6px 18px -12px rgba(0,0,0,.35); }
.hilfe .hbild figcaption { font-size: 12px; color: #5B6B58; margin-top: 4px; }
.hilfe .hvideo { margin: 6px 0 12px; }
.hilfe .hvideo summary { cursor: pointer; font-weight: 600; color: #2F6B2A; }
.hilfe .hvideo video { width: 100%; max-width: 760px; margin-top: 8px; border-radius: 10px; background: #000; }
.hilfe .hzur { margin: 12px 0 0; }
@media (max-width: 900px) { .hilfe .hgitter { grid-template-columns: 1fr; } .hilfe .hinhalt { position: static; max-height: none; } }
/* Speiseplan drucken (wie im Prototyp: A4 hochkant, eine Woche je Seite) */
.spdruck .spdgitter { display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 22px; align-items: start; }
.spdruck .spPrevListe { display: flex; flex-wrap: wrap; gap: 10px; max-width: 790px; }
.spPrev { width: 357px; height: 520px; overflow: hidden; border: 1px solid #E3E9DC; border-radius: 8px; background: #fff; }
.spPrev .spPage { transform: scale(0.5); transform-origin: 0 0; }
#spSeiten { position: absolute; left: -10000px; top: 0; }
.spPage { width: 188mm; height: 275mm; box-sizing: border-box; background: #fff; color: #1B2A19; font-family: Figtree, "Segoe UI", "Helvetica Neue", Arial, sans-serif; display: flex; flex-direction: column; --sf: 13.5pt; padding: 0; }
.spPage .spkopf { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 4.5mm; border-bottom: 0.7mm solid #2F6B2A; margin-bottom: 5mm; }
.spPage .spkopf h1 { font-size: 34pt; margin: 0; line-height: 1.05; font-weight: 800; color: #1B2A19; }
.spPage .spkopf .z { font-size: 19pt; color: #2F6B2A; font-weight: 700; margin-top: 2mm; }
.spPage .kw { background: #2F6B2A; color: #fff; border-radius: 999px; padding: 2.2mm 7mm; font-size: 15pt; font-weight: 700; }
.spPage .tabelle { flex: 1 1 0%; display: grid; grid-template-columns: 32mm 1fr 1fr 1fr; grid-template-rows: auto repeat(7, minmax(min-content, 1fr)); gap: 2.2mm; min-height: 0; }
.spPage .sph { background: #E8F1E2; color: #1F5A1B; border-radius: 3mm; padding: 2.2mm 3mm; font-weight: 800; font-size: 10.5pt; text-align: center; }
.spPage .spr { display: contents; }
.spPage .spr > div { border-radius: 3mm; padding: 3mm; min-width: 0; overflow: hidden; }
.spPage .spr.a > div { background: #F5F8F2; }
.spPage .spr.b > div { background: #fff; box-shadow: inset 0 0 0 0.3mm #DFE7D8; }
.spPage .spt { display: flex; flex-direction: column; justify-content: center; border-left: 1.8mm solid #2F6B2A; }
.spPage .spt b { font-size: var(--sf); font-weight: 800; }
.spPage .spt span { font-size: var(--sf); color: #4A5A47; font-weight: 600; margin-top: 0.8mm; }
.spPage .spc { font-size: var(--sf); font-weight: 600; line-height: 1.3; }
.spPage .spc.span2 { grid-column: span 2; }
.spPage .spr.so > div { background: #FFF6E0; box-shadow: none; }
.spPage .spr.so .spt { border-left-color: #C98A14; }
.spPage .sg { display: block; font-size: 8.5pt; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8A5A00; margin-bottom: 1mm; }
.spPage .spfuss { margin-top: 5mm; font-size: 8.5pt; color: #6A7A67; text-align: center; line-height: 1.55; border-top: 0.3mm solid #DFE7D8; padding-top: 3mm; }
@media print {
  @page spa4 { size: A4 portrait; margin: 11mm; }
  .inhalt:has(#spSeiten) { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  #spSeiten { position: static; }
  #spSeiten .spPage { page: spa4; break-after: page; }
  #spSeiten .spPage:last-child { break-after: auto; }
  .spPage .spr > div, .spPage .sph, .spPage .kw, .spPage .spr.so > div { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 900px) { .spdruck .spdgitter { grid-template-columns: 1fr; } }
/* Veranstaltungsplan: Symbole und Rückfrage */
.vsymbole { display: flex; gap: 4px; align-items: center; }
.vsymbole form { margin: 0; }
.vsym { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid #E3E9DC; background: #fff; color: #2F6B2A; cursor: pointer; }
.vsym:hover { background: #EEF3E8; }
.vsym.rot { color: #B4232A; }
.vsym.rot:hover { background: #FBEAEA; }
.vdialog { border: 0; border-radius: 16px; padding: 22px 24px; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); }
.vdialog::backdrop { background: rgba(27, 42, 25, .45); }
.vdialog h2 { margin: 0 0 6px; font-size: 19px; }
.vdknoepfe { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; }
.vdknoepfe[hidden] { display: none; }
.vdknoepfe .btn { justify-content: center; text-align: center; }
.btn.rotbtn { background: #B4232A; border-color: #B4232A; color: #fff; }
.btn.rotbtn:hover { background: #962026; }
.vdialog .btn, .vdialog button.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; border-radius: 11px; font: inherit; font-size: 15px; font-weight: 600; border: 1px solid #DCE5D4; background: #fff; color: #1B2A19; cursor: pointer; text-decoration: none; width: 100%; box-sizing: border-box; }
.vdialog .btn.primary { background: #2F6B2A; border-color: #2F6B2A; color: #fff; }
.vdialog .btn.rotbtn { background: #B4232A; border-color: #B4232A; color: #fff; }
.vdialog #vdAbbrechen { width: auto; }
.vdialog p { margin: 0 0 6px; line-height: 1.45; }
/* Heimzeitung: eingebettete Anwendung füllt den Inhaltsbereich */
.hzrahmen { display: block; width: 100%; height: calc(100vh - 110px); min-height: 600px; border: 0; border-radius: 14px; background: #F3F6F0; }
.inhalt:has(.hzrahmen) { padding: 12px 14px 0; }
/* ---- Zimmerliste drucken (Prototyp: openPrintDialog, prGesamtHtml, prAushangHtml) ---- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chips .chip { border: 1px solid #B8C4B2; border-radius: 999px; padding: 6px 14px; cursor: pointer; background: #fff; }
.chips .chip.on { background: #2F6B2A; color: #fff; border-color: #2F6B2A; }
fieldset.feld { border: 0; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
fieldset.feld legend { font-weight: 700; margin-bottom: 4px; }
.zd { background: #DDE5D6; padding: 12px 0; border-radius: 14px; }
.zd .sheet { background: #fff; color: #1B261A; margin: 20px auto; box-shadow: 0 2px 14px rgba(0,0,0,.25); zoom: .7; position: relative; overflow: hidden; box-sizing: border-box; padding: 19mm 10mm 19mm; }
.zd .sheet::before { content: ""; position: absolute; left: 10mm; right: 10mm; top: 10mm; height: 3.5mm; border-radius: 1mm; background: #2F6B2A; }
.zd .sheet::after { content: ""; position: absolute; left: 10mm; top: 13.5mm; width: 32mm; height: 1.2mm; background: #9CC744; }
.zd .sheet.land { width: 297mm; height: 210mm; page: zlgesamt; padding-top: 16.5mm; }
.zd .sheet.port { width: 210mm; height: 297mm; page: zlaushang; }
.zd .ph { display: flex; align-items: center; gap: 6mm; border-bottom: .6mm solid #D5DECC; padding-bottom: 3.5mm; margin-bottom: 3mm; }
.zd .ph img { height: 14mm; width: auto; }
.zd .pt { font-size: 21pt; font-weight: 800; color: #2F6B2A; line-height: 1.1; }
.zd .ps { font-size: 10.5pt; color: #5B6B57; margin-top: 1mm; }
.zd .land .ph { padding-bottom: 2mm; margin-bottom: 2mm; }
.zd .land .ph img { height: 10mm; }
.zd .land .pt { font-size: 16pt; }
.zd .land .ps { font-size: 9pt; margin-top: .5mm; }
.zd .pf { position: absolute; left: 10mm; right: 10mm; bottom: 10mm; display: flex; justify-content: space-between; gap: 8mm; font-size: 7.5pt; color: #5B6B57; border-top: .3mm solid #D5DECC; padding-top: 1.6mm; }
.zd .land .pf { font-size: 6.8pt; padding-top: 1mm; }
.zd .pcols { display: grid; gap: 6mm; }
.zd .pcol h3 { background: #2F6B2A; color: #fff; font-size: 9pt; margin: 0 0 .8mm; padding: .9mm 2mm; border-radius: 1mm; }
.zd .pbh { font-size: 7pt; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #2F6B2A; margin: 1.3mm 0 .2mm; border-bottom: .35mm solid #9CC744; }
.zd .pr { display: grid; gap: 1.2mm; align-items: center; height: var(--rh); font-size: var(--fs); line-height: 1; border-bottom: .15mm solid #E3EADC; }
.zd .pr:nth-of-type(even) { background: #F4F7F1; }
.zd .pr b { font-weight: 800; color: #2F6B2A; }
.zd .pr b small { font-weight: 600; color: #5B6B57; font-size: .8em; }
.zd .pr span { white-space: nowrap; overflow: hidden; }
.zd .pr em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.zd .pr.phd { background: none !important; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #2F6B2A; border-bottom: .35mm solid #2F6B2A; font-size: calc(var(--fs) * .85); }
.zd .ahead { display: grid; gap: 3mm; padding: 0 3mm 1.5mm; font-size: 9pt; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #2F6B2A; border-bottom: .6mm solid #9CC744; }
.zd .ahead span:last-child { text-align: right; }
.zd .arow { display: grid; gap: 3mm; align-items: center; height: var(--rh); padding: 0 3mm; font-size: var(--fs); border-bottom: .2mm solid #E3EADC; }
.zd .arow:nth-of-type(even) { background: #F4F7F1; }
.zd .arow span { white-space: nowrap; overflow: hidden; }
.zd .arow b { font-size: 1.15em; font-weight: 800; color: #2F6B2A; }
.zd .arow b small { font-weight: 600; color: #5B6B57; font-size: .7em; }
.zd .arow em { font-style: normal; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.zd .ablks { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
.zd .ablk .arow b.c, .zd .ablk .ahead .c { text-align: center; }
.zd .ablk .arow b { font-size: 1em; }
.zd .ablk .arow, .zd .ablk .ahead { gap: 2mm; padding: 0 1.5mm; }
.zd .ablk .ahead span:last-child { text-align: left; }
.zd .ablk .arow em { text-align: left; font-weight: 600; }
@page zlgesamt { size: A4 landscape; margin: 0; }
@page zlaushang { size: A4 portrait; margin: 0; }
@media print {
  .inhalt:has(.zd) { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .zd { background: none; padding: 0; border-radius: 0; }
  .zd .sheet { margin: 0; box-shadow: none; zoom: 1; break-after: page; page-break-after: always; }
  .zd .sheet:last-child { break-after: auto; page-break-after: auto; }
  .zd .sheet, .zd .sheet *, .zd .sheet::before, .zd .sheet::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Zimmerliste: Farben der Bereiche wie in der Bewohnerliste, Spalten Pflegegrad und Vermerk */
.zd .sheet.port::before { background: hsl(var(--bh, 110) calc(45% * var(--bsf, 1)) calc(32% + var(--blp, 0%))); }
.zd .sheet.port::after { background: hsl(var(--bh, 110) calc(50% * var(--bsf, 1)) calc(60% + var(--blp, 0%))); }
.zd .sheet.port .pt, .zd .sheet.port .ahead, .zd .sheet.port .arow b { color: hsl(var(--bh, 110) calc(45% * var(--bsf, 1)) calc(30% + var(--blp, 0%))); }
.zd .sheet.port .ahead { border-bottom-color: hsl(var(--bh, 110) calc(50% * var(--bsf, 1)) calc(60% + var(--blp, 0%))); }
.zd .sheet.port .arow:nth-of-type(even) { background: hsl(var(--bh, 110) 40% 96%); }
.zd .pbh { color: hsl(var(--bh, 110) calc(45% * var(--bsf, 1)) calc(30% + var(--blp, 0%))); border-bottom-color: hsl(var(--bh, 110) calc(50% * var(--bsf, 1)) calc(60% + var(--blp, 0%))); }
.zd .pr:not(.phd) b { color: hsl(var(--bh, 110) calc(45% * var(--bsf, 1)) calc(30% + var(--blp, 0%))); }
.zd .pr:not(.phd):nth-of-type(even) { background: hsl(var(--bh, 110) 40% 96%); }
.zd .pr i, .zd .arow i { font-style: normal; font-weight: 700; white-space: nowrap; overflow: hidden; }
.zd .arow i.c, .zd .pr i, .zd .ahead .c { text-align: center; }
.zd .pr u, .zd .arow u { text-decoration: none; white-space: nowrap; overflow: hidden; font-weight: 600; }
.nopost{display:inline-flex;vertical-align:-0.12em;color:#B3261E}
.nopost svg{width:1em;height:1em}
/* Zimmerliste: kompakte Auswahl wie im Prototyp (openPrintDialog) */
.zlwahl { max-width: 760px; margin-top: 12px; padding: 14px 16px; }
.zlzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; }
.zlzeile > b { min-width: 74px; font-size: 14px; }
.zlcheck { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.zlcheck input { width: 18px; height: 18px; }
/* Gesamtliste wie die Hausübersicht: farbiges Bereichsband */
.zd .pbh { background: hsl(var(--bh, 110) calc(45% * var(--bsf, 1)) calc(32% + var(--blp, 0%))); color: #fff !important; border: 0 !important; border-radius: .8mm; padding: .5mm 1.6mm; margin: 1.2mm 0 .4mm; letter-spacing: .03em; }
/* Neues Logo „Lindenriek Mitarbeiterportal“ (11.11.2026) */
.kopf .titel.kopfmarke { display: inline-flex; align-items: center; flex: 1; line-height: 0; }
.kopf .titel.kopfmarke img { height: 44px; width: auto; display: block; }
@media (max-width: 599px) { .kopf .titel.kopfmarke img { height: 34px; } }
.anmeldelogo { display: block; width: 220px; max-width: 70%; height: auto; margin: 0 auto 18px; }
/* Ausdrucke: das neue Logo bekommt exakt den Rahmen des alten (Höhe wie bisher, Breite im alten Verhältnis 380:102) und wird darin
   eingepasst, damit sich an der Anordnung nichts verschiebt. Im Druckkopf rechts steht es rechtsbündig, sonst linksbündig. */
img.marke-druck { aspect-ratio: 380 / 102; object-fit: contain; object-position: left center; }
.tkkopf img.marke-druck { object-position: right center; }
/* Liste je Bereich: Aufbau der bisherigen Excel-Liste, Gestaltung wie die übrigen Ausdrucke des Portals (A4 quer, ohne Logo) */
.zd .sheet.altm { width: 297mm; height: 210mm; page: zlgesamt; padding: 19mm 14mm 14mm; }
.zd .sheet.altm::before { background: hsl(var(--bh, 110) calc(45% * var(--bsf, 1)) calc(32% + var(--blp, 0%))); left: 14mm; right: 14mm; }
.zd .sheet.altm::after { background: hsl(var(--bh, 110) calc(50% * var(--bsf, 1)) calc(60% + var(--blp, 0%))); left: 14mm; }
.zd .altm .amkopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8mm; border-bottom: .6mm solid #D5DECC; padding-bottom: 3mm; margin-bottom: 5mm; }
.zd .altm .amtitel { font-size: 22pt; font-weight: 800; color: hsl(var(--bh, 110) calc(45% * var(--bsf, 1)) calc(30% + var(--blp, 0%))); line-height: 1.1; }
.zd .altm .amsub { font-size: 13pt; font-weight: 700; color: #5B6B57; }
.zd .altm .amcols { display: grid; grid-template-columns: 1fr 1fr; gap: 12mm; }
.zd .altm .amrow { display: grid; gap: 3mm; align-items: center; height: var(--rh); padding: 0 3mm; font-size: var(--fs); line-height: 1; border-bottom: .2mm solid #E3EADC; }
.zd .altm .amrow:nth-of-type(even):not(.amhead) { background: hsl(var(--bh, 110) 40% 96%); }
.zd .altm .amrow span { white-space: nowrap; overflow: hidden; }
.zd .altm .amrow .c { text-align: center; font-variant-numeric: tabular-nums; }
.zd .altm .amrow b.c { font-weight: 800; color: hsl(var(--bh, 110) calc(45% * var(--bsf, 1)) calc(30% + var(--blp, 0%))); }
.zd .altm .amhead { height: auto; padding-bottom: 1.6mm; font-size: 9.5pt; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: hsl(var(--bh, 110) calc(45% * var(--bsf, 1)) calc(30% + var(--blp, 0%))); border-bottom: .6mm solid hsl(var(--bh, 110) calc(50% * var(--bsf, 1)) calc(60% + var(--blp, 0%))); }
.zd .altm .amfuss { position: absolute; left: 14mm; right: 14mm; bottom: 12mm; display: flex; align-items: center; justify-content: center; gap: 7mm; padding: 3.2mm 6mm; border-radius: 3mm; background: hsl(var(--bh, 110) 40% 94%); border: .3mm solid hsl(var(--bh, 110) 40% 82%); font-size: 13pt; }
.zd .altm .amfuss .amlabel { font-size: 9.5pt; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--bh, 110) calc(45% * var(--bsf, 1)) calc(30% + var(--blp, 0%))); }
.zd .altm .amfuss b { font-weight: 800; color: #1B261A; }
.zd .altm .amfuss .amtel { font-weight: 700; color: #1B261A; font-variant-numeric: tabular-nums; }
/* Ansprechpartner-Karte mit Foto */
.zd .altm .amfuss { justify-content: flex-start; gap: 10mm; }
.zd .altm .amfuss > div { display: flex; flex-direction: column; gap: .8mm; }
.zd .altm .amfuss b { font-size: 14pt; }
.zd .altm .amfuss .amfoto { width: 17mm; height: 17mm; border-radius: 50%; object-fit: cover; border: .6mm solid #fff; box-shadow: 0 0 0 .35mm hsl(var(--bh, 110) calc(50% * var(--bsf, 1)) calc(60% + var(--blp, 0%))); }
.zd .altm .amfuss .amtel { padding-left: 10mm; border-left: .35mm solid hsl(var(--bh, 110) 40% 82%); }
/* Hinweis vor der Abmeldung wegen Inaktivität */
.inaktivhinweis { position: fixed; right: 18px; bottom: 18px; z-index: 1000; max-width: 360px; background: #fff; border: 2px solid #C98A14; border-radius: 14px; padding: 14px 16px; box-shadow: 0 8px 28px rgba(0,0,0,.22); display: flex; flex-direction: column; gap: 10px; }
.inaktivhinweis p { margin: 0; line-height: 1.4; }
@media print { .inaktivhinweis { display: none; } }
/* Ansprechpartner-Karte größer (Wunsch Geschäftsführung 11.11.2026) */
.zd .altm .amfuss { padding: 4.5mm 8mm; gap: 12mm; border-radius: 4mm; }
.zd .altm .amfuss .amfoto { width: 27mm; height: 27mm; border-width: .9mm; }
.zd .altm .amfuss .amlabel { font-size: 11pt; }
.zd .altm .amfuss b { font-size: 19pt; }
.zd .altm .amfuss .amtel { padding-left: 12mm; }
.zd .altm .amfuss > div { gap: 1.4mm; }
/* Glocke: Aufklappmenü wie im Prototyp */
.glockewrap { position: relative; display: inline-flex; }
.glockemenu { position: absolute; right: -8px; top: calc(100% + 10px); z-index: 300; width: min(380px, 92vw); max-height: 70vh; overflow: auto; background: #fff; color: #1B261A; border-radius: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.22); border: 1px solid #DFE7D8; }
.glockemenu .gm-kopf { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; font-weight: 800; position: sticky; top: 0; background: #fff; }
.glockemenu .gm-kopf button { border: 0; background: none; color: #2F6B2A; font-weight: 700; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.glockemenu .gm-kopf button:hover { background: #E8F1E2; }
.glockemenu .gm-eintrag { display: block; padding: 10px 14px; border-top: 1px solid #EEF2EA; color: inherit; text-decoration: none; line-height: 1.35; font-size: 14.5px; position: relative; }
.glockemenu .gm-eintrag:hover { background: #F4F7F1; }
.glockemenu .gm-eintrag.neu { font-weight: 700; padding-left: 28px; }
.glockemenu .gm-eintrag.neu::before { content: ""; position: absolute; left: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: #2F6B2A; }
.glockemenu .gm-eintrag small { display: block; font-weight: 400; color: #5B6B57; font-size: 12.5px; margin-top: 2px; }
.glockemenu .gm-leer { padding: 8px 14px 14px; margin: 0; color: #5B6B57; font-size: 14px; }
.glockemenu .gm-alle { display: block; text-align: center; padding: 10px; border-top: 1px solid #EEF2EA; color: #2F6B2A; font-weight: 700; text-decoration: none; }
@media print { .glockemenu { display: none !important; } }
/* Hilfetext der Glocke ausblenden, solange das Menü offen ist */
.glockewrap:has(.glockemenu:not([hidden])) [data-tip]::before,
.glockewrap:has(.glockemenu:not([hidden])) [data-tip]::after { display: none !important; }
/* KI-Textprüfung auch auf Seiten ohne .px */
.kibox { border: 1px solid #CFE0C6; background: #F4F9F0; border-radius: 12px; padding: 12px 14px; margin: 8px 0 12px; }
.kibox h3 { margin: 0 0 6px; font-size: 15px; }
.kibox .kitext { margin: 0 0 8px; padding: 8px 10px; background: #fff; border-radius: 8px; border: 1px solid #DFE7D8; white-space: pre-wrap; }
.kibox .kihinweise { margin: 4px 0 8px 18px; padding: 0; color: #5B6B57; font-size: 14px; }
.kibox .kiknoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
/* Standortwahl über dem Menü (12.11.2026) */
.standortwahl{margin:4px 12px 12px;display:flex;flex-direction:column;gap:4px}
.standortwahl label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#5B6B57)}
.standortwahl select{appearance:none;-webkit-appearance:none;width:100%;padding:10px 36px 10px 12px;border:1px solid var(--line,#DFE7D8);border-radius:12px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232F6B2A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;font:inherit;font-weight:600;color:var(--g,#2F6B2A);cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.standortwahl select:focus{outline:2px solid var(--g2,#9CC744);outline-offset:1px}
/* Störung Microsoft 365 (13.11.2026) */
.m365stoerung{display:flex;flex-direction:column;gap:3px;margin:0 0 16px;padding:12px 16px;border-radius:14px;background:#FFF4E5;border:1px solid #F2C27A;color:#5A3B00;font-size:14px}
.m365stoerung b{font-size:15px}
@media print{.m365stoerung{display:none}}


/* Menü nach Vorschlag A + C + D (Nils 13.11.2026) */
.menue-abschnitt { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--grau); margin: 14px 12px 2px; }
.hauptmenue > .menue-abschnitt:first-child { margin-top: 2px; }
.zurueck-uebersicht { display: inline-block; margin: 0 0 10px; color: var(--gruen-aktiv); font-weight: 600; text-decoration: none; }
.zurueck-uebersicht:hover { text-decoration: underline; }
.menuereiter { margin: 0 0 4px; }
.menuereiter .subnav { margin-bottom: 8px; }
.inhalt:has(.menuereiter) .hzrahmen { height: calc(100vh - 168px); }
.admin-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.admin-kacheln .karte { margin: 0; }
.admin-kacheln h2 { font-size: 16px; margin: 0 0 8px; }
.admin-kacheln ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.admin-kacheln a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.admin-kacheln a:hover { background: #F0F4EB; }
.admin-kacheln a b { display: block; font-weight: 600; color: var(--gruen-aktiv); }
.admin-kacheln a small { color: var(--grau); font-size: 13.5px; }
/* Reiter, die auch auf großen Bildschirmen stehen (Controlling, Heimzeitung), weil diese Punkte im Menü nur noch ein Eintrag sind */
.inhalt .px .subnav.immer { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding-bottom: 2px; }

/* Administration › Menü anpassen: Ziehen und Ablegen */
.menueanpassen .ma-ueberschrift { margin: 16px 4px 6px; }
.ma-liste, .ma-unter { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ma-liste { min-height: 44px; border-radius: 12px; padding: 2px; }
.ma-liste.ziel { background: #F0F4EB; outline: 2px dashed #8BC34A; outline-offset: 2px; }
.ma-gruppe { border: 1px solid #DFE7D8; border-radius: 10px; padding: 8px 10px; background: #fff; cursor: grab; }
.ma-gruppe.zieht, .ma-unterpunkt.zieht { opacity: .45; }
.ma-zeile { display: flex; align-items: center; gap: 10px; }
.ma-zeile b { flex: 1; }
.ma-griff { color: #9AA894; font-weight: 800; letter-spacing: -2px; cursor: grab; user-select: none; }
.ma-symbol { display: inline-flex; width: 22px; height: 22px; color: #2E7D32; }
.ma-hinweis { font-size: 12.5px; color: var(--grau); }
.ma-knoepfe { margin: 0; display: flex; gap: 4px; }
.ma-unterhinweis { margin: 4px 0 0 52px; }
.ma-details { margin: 4px 0 0 52px; }
.ma-details summary { cursor: pointer; }
.ma-unter { margin-top: 6px; gap: 2px; }
.ma-unterpunkt { display: flex; align-items: center; gap: 10px; padding: 3px 6px; border-radius: 8px; cursor: grab; }
.ma-unterpunkt:hover { background: #F4F6F1; }
.ma-leer { border: 2px dashed #DFE7D8; border-radius: 10px; padding: 10px 12px; color: var(--grau); font-size: 14px; }
.ma-marke { height: 0; border-top: 3px solid #2E7D32; border-radius: 2px; margin: -2px 0; list-style: none; }
/* Zähler im Menü bei Führerscheinkontrolle und Fahrzeugen (wie .count im Prototyp) */
.hauptmenue .nbadge.fszahl { background: #FCE8E6; color: #B3261E; font-weight: 800; }
/* Benutzer-Dialog: Abschnitt Führerscheinkontrolle (Prototyp openUser) und Hinweis in der Benutzerliste */
.fsline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 4px; }
.fspille { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.fsnote { background: #F5F8F2; border: 1px solid #DFE7D8; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 6px 0; }
.fsnote.warn { background: #FFF6E0; border-color: #C98A14; color: #5A3E00; }
.fsfakten { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; margin: 10px 0; }
.fsfakten dt { color: var(--grau); }
.fsfakten dd { margin: 0; }
.urow .uflag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #2F6B2A; font-weight: 600; }
.urow .uflag svg { width: 14px; height: 14px; }

/* Untermenüs einheitlich als Reiter mit Unterstrich (Nils 14.11.2026, Vorschlag A): deutlich anders als die runden
   Auswahl- und Filterknöpfe. Gilt für alle .subnav (Reiter oben, Tickets, Material, Controlling, Tagespflege,
   Heimzeitung), die Reiterzeilen .navreiter und die Speiseplan-Reiter .tabs. Die Ordner im E-Mail-Modul stehen in mail/app.css. */
.seite .inhalt .subnav, .seite .inhalt .px .subnav.immer, .seite .inhalt .px .tabs, .seite .inhalt .navreiter { display: flex; gap: 0; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-bottom: 0; box-shadow: inset 0 -2px 0 #DFE7D8; padding: 0; margin: 0 0 14px; }
/* Keine Scrollleiste unter den Reitern (Nils 14.11.2026); auf dem Handy wischt man weiter. */
.seite .inhalt .subnav::-webkit-scrollbar, .seite .inhalt .px .tabs::-webkit-scrollbar, .seite .inhalt .navreiter::-webkit-scrollbar { display: none; }
.seite .inhalt .subnav a, .seite .inhalt .subnav button, .seite .inhalt .px .tabs a, .seite .inhalt .px .tabs button, .seite .inhalt .navreiter a {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 0; background: transparent; color: #5B6B57;
  padding: 10px 18px 9px; margin: 0; border-bottom: 3px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none; cursor: pointer; }
.seite .inhalt .subnav a:hover, .seite .inhalt .subnav button:hover, .seite .inhalt .px .tabs a:hover, .seite .inhalt .px .tabs button:hover, .seite .inhalt .navreiter a:hover { color: #1B2A19; background: transparent; }
.seite .inhalt .subnav a.on, .seite .inhalt .subnav button.on, .seite .inhalt .px .tabs a.on, .seite .inhalt .px .tabs button.on, .seite .inhalt .navreiter a.on { color: #2F6B2A; border-bottom-color: #2F6B2A; background: transparent; font-weight: 700; }
/* zweite Ebene direkt darunter (Controlling › Module): kleiner, ohne Grundlinie */
.seite .inhalt .px .subnav.immer + .subnav.immer { border-bottom: 0; box-shadow: none; margin-top: -8px; }
.seite .inhalt .px .subnav.immer + .subnav.immer a { font-size: 14px; padding: 8px 14px 6px; border-bottom-width: 2px; }
.seite .menuereiter .subnav { margin-bottom: 14px; }
/* Unterpunkte der Gruppe nur auf dem Handy (unten stehen dort nur die Gruppen) */
.menuereiter.nurhandy { display: none; }
@media (max-width: 900px) { .menuereiter.nurhandy { display: block; } }
/* Seiten mit eigenem Handy-Untermenü (Tickets, Material, Tagespflege) brauchen die Leiste aus dem Layout nicht doppelt */

/* Reiterzeile zu lang: weicher Rand statt Scrollleiste (reiter.js setzt mehr-links/mehr-rechts) */
.navreiter.mehr-rechts, .subnav.mehr-rechts, .tabs.mehr-rechts { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.navreiter.mehr-links, .subnav.mehr-links, .tabs.mehr-links { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
.navreiter.mehr-links.mehr-rechts, .subnav.mehr-links.mehr-rechts, .tabs.mehr-links.mehr-rechts { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
/* Abschnitte als Reiter (abschnitte.js) */
[data-reiter][hidden] { display: none !important; }
/* Material und Tickets (Nils 14.11.2026: „Doppelt macht ja keinen Sinn, Submenü oben und links“): Auf dem Rechner stehen die
   Unterpunkte nur links im Menü; auf dem Handy steht oben dieselbe Liste wie links (Layout, .menuereiter.nurhandy).
   Die alten Reiterzeilen der Seiten (_Navigation.cshtml) sind deshalb ausgeblendet. */
.seite .inhalt nav.subnav:not(.immer) { display: none; }
/* Rollen und Rechte (Nils 14.11.2026: ohne Seitwärtsscrollen): je Rolle ein Reiter, Stufen als Schalter, Vergleich kompakt. */
.px.rollen .rollenlayout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.px.rollen .rollenliste { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.px.rollen .rollenliste a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: #1B2A19; border: 1px solid transparent; }
.px.rollen .rollenliste a span { display: block; font-size: 12px; color: #6B7766; }
.px.rollen .rollenliste a:hover { background: #EEF3EA; }
.px.rollen .rollenliste a.on { background: #fff; border-color: #CFDAC6; box-shadow: inset 3px 0 0 var(--gruen); }
@media (max-width: 900px) { .px.rollen .rollenlayout { grid-template-columns: 1fr; } .px.rollen .rollenliste { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; } .px.rollen .rollenliste a { border-color: #CFDAC6; background: #fff; } }
.px.rollen .rollenvergleich th.dreh { height: 150px; vertical-align: bottom; padding: 4px 0; width: 38px; }
.px.rollen .rollenvergleich th.dreh a { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 145px; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.px.rollen .rollenvergleich td:not(:first-child) { width: 38px; padding: 6px 0; }
.px.rollen .rollenvergleich tbody tr:hover td { background: #F7FAF4; }
.px.rollen .rollenkopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.px.rollen .rollenrang { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.px.rollen .rollenmodul { max-width: 900px; margin: 0 0 14px; padding: 14px 18px; }
.px.gruppen .gruppenform { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.px.gruppen .gruppenform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; min-width: 240px; flex: 1 1 240px; }
.px.gruppen .gruppenrollen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.px.gruppen .gruppenrollen > div { grid-column: 1 / -1; margin-top: 6px; }
.px.gruppen .gruppenrollen label { display: flex; gap: 8px; align-items: center; }
.px.rollen .rollenmodul h3 { margin: 0 0 6px; font-size: 15px; }
.px.rollen .rollenzeile { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid #EEF2EA; flex-wrap: wrap; }
.px.rollen .rollenzeile:first-of-type { border-top: 0; }
.px.rollen .rollentext { flex: 1 1 280px; font-size: 14px; }
.px.rollen .rollenseg { display: inline-flex; border: 1px solid #CFDAC6; border-radius: 10px; overflow: hidden; flex: none; }
.px.rollen .rollenseg label { margin: 0; cursor: pointer; }
.px.rollen .rollenseg input { position: absolute; opacity: 0; pointer-events: none; }
.px.rollen .rollenseg span { display: block; padding: 6px 12px; font-size: 13px; white-space: nowrap; border-left: 1px solid #CFDAC6; background: #fff; color: #44533F; }
.px.rollen .rollenseg label:first-child span { border-left: 0; }
.px.rollen .rollenseg input:checked + span { background: var(--gruen); color: #fff; font-weight: 600; }
.px.rollen .rollenseg label.aus input:checked + span { background: #E9ECE6; color: #44533F; }
.px.rollen .rollenseg input:focus-visible + span { outline: 2px solid var(--gruen); outline-offset: -2px; }
.px.rollen .rollenseg input:disabled + span { opacity: .6; cursor: default; }
.px.rollen .rollenzeile.speichert { opacity: .6; }
.px.rollen .note.fehler { border-color: #b42318; color: #8a1c13; }
.px.rollen .rollenvergleich { padding: 0; max-width: 100%; }
.px.rollen .rollenvergleich table { width: 100%; table-layout: auto; font-size: 13px; }
.px.rollen .rollenvergleich th, .px.rollen .rollenvergleich td { padding: 6px 8px; text-align: center; overflow-wrap: anywhere; }
.px.rollen .rollenvergleich th:first-child, .px.rollen .rollenvergleich td:first-child { text-align: left; width: auto; }
.px.rollen .rollenvergleich tr.gruppe th { text-align: left; background: #F4F7F1; font-size: 13px; }
.px.rollen .rollenvergleich td.an { color: var(--gruen); font-weight: 600; }
.px.rollen .rollenvergleich td.leer { color: #9AA595; }
@media (max-width: 700px) { .px.rollen .rollenseg span { padding: 6px 9px; } }
/* Speiseplan: Woche abschließen (Nils 14.11.2026) */
.px .spabschluss { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; margin: 0 0 14px; font-size: 14px; }
.px .spabschluss form { margin: 0; }
.px .spabschluss.offen { background: #FFF6E0; border: 1px solid #F0DFA6; }
.px .spabschluss.zu { background: #EAF3E4; border: 1px solid #C9DDBB; }
/* Fußzeile (Nils 14.11.2026): Copyright, Version, interne Nutzung; Paket und Bauzeit beim Darüberfahren */
.fuss { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 0; padding: 16px 24px 20px; font-size: 13px; color: var(--grau); border-top: 1px solid #E4EADF; margin-top: 12px; }
.fuss > * + *::before { content: "·"; margin: 0 10px; color: #A9B4A4; }
.fuss b { font-weight: 600; color: #44533F; }
.fuss a { color: var(--gruen-aktiv); text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
/* Tablet hochkant (Nils 13./14.11.2026): schmale Symbolleiste links, ein Tipp klappt das Untermenü daneben aus (wwwroot/js/leiste.js).
   Quer und am PC bleibt das normale Seitenmenü, am Handy die untere Leiste. Die Medienabfrage muss zu leiste.js passen. */
details.gruppe.nurleiste { display: none; }
@media screen and (min-width: 700px) and (max-width: 1199px) and (orientation: portrait) {
  .tabbar, .menueknopf { display: none !important; }
  .seite .inhalt { padding: 20px 18px 28px; }
  .menuereiter.nurhandy { display: block; }
  .seitenleiste { display: flex !important; position: sticky; top: 78px; left: auto; transform: none !important; box-shadow: none; width: 92px; flex: 0 0 92px; padding: 10px 6px; gap: 4px; height: calc(100vh - 78px); height: calc(100dvh - 78px); overflow-y: auto; overflow-x: hidden; z-index: 30; }
  .seitenleiste > .standortwahl { display: none; }
  details.gruppe.nurleiste { display: block; }
  .hauptmenue { gap: 2px; }
  .menue-abschnitt { font-size: 0; height: 1px; background: #E4EADF; margin: 6px 10px; }
  .hauptmenue > .menue-abschnitt:first-child { display: none; }
  .hauptmenue .menue-eintrag { flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 8px; font-size: 11.5px; font-weight: 500; line-height: 1.15; text-align: center; box-shadow: none; }
  .hauptmenue .menue-eintrag > span:not(.nbadge) { max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hauptmenue .menue-eintrag .symbol { flex: none; width: 24px; height: 24px; }
  .hauptmenue .menue-eintrag .pfeil { display: none; }
  .hauptmenue .menue-eintrag .nbadge { position: absolute; top: 3px; right: 10px; margin: 0; min-width: 18px; height: 18px; font-size: 11px; }
  .hauptmenue .menue-eintrag.aktiv, .hauptmenue .menue-eintrag.aktiv-gruppe { background: var(--aktiv-hg); color: var(--gruen-aktiv); font-weight: 700; }
  .hauptmenue .menue-eintrag.aktiv-gruppe .symbol { color: var(--gruen-aktiv); }
  details.gruppe[open] > summary { background: #DDE9D2; }
  details.gruppe[open] > .untermenue { position: fixed; left: 92px; top: 78px; bottom: 0; width: 290px; margin: 0; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; background: #fff; border-left: 0; border-right: 1px solid var(--rand); box-shadow: 10px 0 30px rgba(20,40,30,.16); overflow-y: auto; z-index: 40; }
  details.gruppe[open] > .untermenue::before { content: attr(data-titel); display: block; font-weight: 700; font-size: 17px; color: #1B2A19; padding: 4px 10px 12px; border-bottom: 1px solid #E4EADF; margin-bottom: 6px; }
  details.gruppe[open] > .untermenue a { padding: 12px 12px; font-size: 16px; }
  details.gruppe[open] > .untermenue .standortwahl { margin: 4px 10px; }
}
@media print { details.gruppe.nurleiste { display: none !important; } }
/* Bewohner: zugeordnete Ärzte (Nils 14.11.2026) */
.px .bwaerzte .bwarzt { padding: 10px 0; border-top: 1px solid #EEF2EA; }
.px .bwaerzte .bwarzt:first-of-type { border-top: 0; }
.px .bwaerzte .chip { margin-left: 8px; }
.px .bwaerzte .small span { margin-right: 6px; }

/* ---------------------------------------------------------------- Anmeldung mit PIN und Passkey (Übergabe „Mein Konto“ 7 und 8) */
.note[hidden], .pinseite [hidden] { display: none !important; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #F1F4EE; font-size: 14px; margin-bottom: 14px; }
.note.ice { background: #E8F1F8; }
.pinseite { max-width: 520px; margin: 0 auto; padding: 8px 0 24px; }
.pingeraet { text-align: center; margin-bottom: 12px; }
.pingeraet span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--gruen-hell); color: var(--gruen); font-size: 13px; font-weight: 600; }
.pinkarte { background: #fff; border-radius: 18px; box-shadow: var(--schatten); padding: 20px 20px 22px; margin-bottom: 20px; text-align: center; }
.pinkopf { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); margin-bottom: 10px; }
.pinperson { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; text-align: left; }
.pinperson b { display: block; font-size: 19px; }
.pinperson small, .pinkachel small { display: block; color: var(--grau); font-size: 13px; }
.pinav { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gruen-hell); color: var(--gruen); font-weight: 700; flex: none; }
.pinpunkte { display: flex; justify-content: center; gap: 16px; margin: 6px 0 8px; }
.pinpunkte span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gruen); transition: background .12s; }
.pinpunkte span.voll { background: var(--gruen); }
.pinpunkte span.rot { border-color: var(--fehler); background: var(--fehler); }
.pinfehler { min-height: 22px; color: var(--fehler); font-size: 14px; margin-bottom: 8px; }
.pinblock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 300px; margin: 0 auto; }
.pinblock button { min-height: 64px; border-radius: 14px; border: 1px solid var(--rand); background: #fff; font: inherit; font-size: 24px; font-weight: 600; color: var(--text); cursor: pointer; touch-action: manipulation; }
.pinblock button:active { background: var(--gruen-hell); }
.pinblock button:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.wackeln { animation: pinwackeln .4s; }
@keyframes pinwackeln { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.pinh { font-size: 15px; margin: 18px 0 10px; color: var(--grau); font-weight: 600; }
.pinkacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pinkachel { position: relative; }
.pinwahl { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--rand); background: #fff; font: inherit; text-align: left; cursor: pointer; min-height: 64px; color: var(--text); }
.pinwahl .pinav { width: 38px; height: 38px; font-size: 14px; }
.pinweg { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--grau); cursor: pointer; }
.pinweg:hover { background: #F1F4EE; }
#pinSuche { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--rand); font: inherit; font-size: 16px; }
.pinliste { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pinliste button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rand); background: #fff; font: inherit; cursor: pointer; min-height: 48px; color: var(--text); }
.pinliste small { color: var(--grau); }
.pinfuss { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; color: var(--grau); text-align: center; }
.pinfuss a { color: var(--gruen); font-weight: 600; }
.passkeyanmeldung { margin: 6px 0 4px; }
.passkeyanmeldung .knopf { width: 100%; }
.oder { display: flex; align-items: center; gap: 10px; color: var(--grau); font-size: 13px; margin: 16px 0; }
.oder::before, .oder::after { content: ""; flex: 1; height: 1px; background: var(--rand); }
@media (prefers-reduced-motion: reduce) { .wackeln { animation: none; } }

/* Schriftgröße aus Mein Konto › Darstellung (1 / 1,12 / 1,25) */
html[data-schrift="gross"] .inhalt { zoom: 1.12; }
html[data-schrift="sgross"] .inhalt { zoom: 1.25; }

/* Benutzerliste mit Spalte „Anmeldung“ (Übergabe „Mein Konto“ 10.1) */
.px .urow.mitanm, .px .uhead.mitanm { grid-template-columns: minmax(0,1fr) 140px minmax(0,1fr) 170px 150px 90px; }
.px .urow .anm { display: flex; flex-wrap: wrap; gap: 4px; }
.px .urow .anm .badge.ok { background: var(--green-soft); color: var(--green); }
.px .urow .anm .badge.warn { background: var(--amber-soft); color: var(--amber-ink); }
.px .urow .anm .badge.bad { background: var(--red-soft); color: var(--red); }
@media (max-width: 900px) { .px .urow.mitanm { grid-template-columns: minmax(0,1fr); } }

/* Benutzer bearbeiten › Anmeldung */
.note.warn { background: #FFF6E0; color: #5A3E00; }
.anmabschnitt .anmzeile { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rand); }
.anmabschnitt .anmzeile > div { flex: 1; min-width: 0; }
.anmabschnitt .anmzeile b { display: block; }
.anmabschnitt .anmzeile small { color: var(--grau); font-size: 14px; }
.anmabschnitt .anmzeile form { margin: 0; }
.anmabschnitt .rot { color: var(--fehler); font-weight: 700; }
.knopf.klein.gefahr { color: var(--fehler); border-color: var(--fehler); }

/* Handy: Logo schrumpft mit, damit Glocke und Namenskreis immer in die Zeile passen (die Seite ließ sich sonst seitlich verschieben) */
@media (max-width: 599px) {
  .kopf .titel.kopfmarke { min-width: 0; flex: 1 1 auto; }
  .kopf .titel.kopfmarke img { height: auto; max-height: 34px; max-width: 100%; }
  .kopf .benutzer, .kopf .kontowahl, .kopf .glocke { flex: none; }
}
html, body { overflow-x: clip; }

/* Zahl an einem Reiter oben (z. B. Fahrzeuge, Nils 15.11.2026) */
.menuereiter .nbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #FCE8E6; color: #B3261E; font-size: 12px; font-weight: 800; line-height: 1; margin-left: 6px; }

/* Zentrieren (Nils 15.11.2026): breite Seiten mit eigener Höchstbreite stehen in der Mitte wie alle anderen Seiten */
.fsapp > main > .page, .modul-tour > main > .page { margin-left: auto; margin-right: auto; }
.modul-tour:not([data-eingebettet="1"]) > main > .page[style*="max-width:900px"] { max-width: 1180px !important; }
.inhalt.breit:has(> .modul-tour) > a.zurueck-uebersicht, .inhalt.breit:has(> .fsapp) > a.zurueck-uebersicht { margin-left: max(22px, calc((100% - 1180px) / 2 + 22px)); }
.px .haus { margin-left: auto; margin-right: auto; }
.px.hilfe .hgitter { max-width: 1240px; margin-left: auto; margin-right: auto; }
.hilfe .habschnitt { max-width: none; }
@media (min-width: 901px) {
  .inhalt.breit:has(> .fsapp) > .menuereiter { max-width: 1180px; margin: 0 auto 4px; padding: 0 22px; box-sizing: border-box; }
  .inhalt.breit:has(> .hzrahmen) > .menuereiter { max-width: 1240px; margin: 0 auto 4px; padding: 0 26px; box-sizing: border-box; }
}
/* Menü (Nils 15.11.2026): nie seitlich scrollen; zu lange Einträge enden mit „…“, Platz für die Scrollleiste ist fest eingeplant */
@media (min-width: 901px) { .seitenleiste { overflow-x: hidden; scrollbar-gutter: stable; } }
.seitenleiste .menue-eintrag > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Drucken (Nils 16.11.2026): Reiter oben nie mitdrucken */
@media print { .menuereiter, nav.subnav { display: none !important; } }

/* Administration: Marke „NEU“ an neuen Einträgen (MDM, Apple Business; Nils 16.11.2026) */
.neu-marke { display: inline-block; background: #e3f1ff; color: #1d5fa8; font-size: 10px; padding: 1px 6px; border-radius: 8px; margin-left: 6px; font-weight: 700; vertical-align: 2px; letter-spacing: .02em; }

/* Wareneingang: Felder für neue Artikel in der Positionstabelle (.rtable input ist sonst 22 px für Häkchen) */
.px .rtable .belneufelder input[type="text"] { width: 100%; height: auto; min-width: 0; }

/* Administration: Schalter Easteregg (nur GF) */
.easteregg-schalter { margin-top: 18px; }
.zeile-schalter { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.zeile-schalter small { display: block; color: var(--grau); margin-top: 2px; }
.schalter { position: relative; width: 44px; height: 26px; border-radius: 13px; border: 0; background: #C9D3C4; cursor: pointer; flex: 0 0 44px; padding: 0; }
.schalter span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.schalter.an { background: var(--gruen); }
.schalter.an span { left: 21px; }

/* Administration › MediFox › Prüfung nach MediFox-Update */
.mfcheck .mfkopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.mfcheck .mfkopf > div { background: var(--gruen-hell); border-radius: 10px; padding: 10px 12px; }
.mfcheck .mfkopf small { display: block; color: var(--grau); font-size: 12.5px; }
.mfcheck .mfkopf b { font-size: 14.5px; overflow-wrap: anywhere; }
.mfcheck .mfergebnis { font-size: 20px; font-weight: 700; padding: 12px 16px; border-radius: 10px; margin: 6px 0 12px; }
.mfcheck .mfergebnis.gruen { background: #E6F2E2; color: #2F6B2A; }
.mfcheck .mfergebnis.gelb { background: #FDF3D8; color: #8A5A00; }
.mfcheck .mfergebnis.rot { background: #FBE4E1; color: #B3261E; }
.mfcheck .knopf.zweit { background: #fff; color: var(--gruen); border: 1px solid var(--gruen); }
.mfcheck .mftabelle td { vertical-align: top; overflow-wrap: anywhere; }
.mfcheck .mftabelle td.erg { font-weight: 700; white-space: nowrap; }
.mfcheck .mftabelle td.erg small { display: block; font-weight: 400; white-space: normal; color: var(--grau); max-width: 340px; }
.mfcheck .mftabelle tr.ok td.erg { color: #2F6B2A; }
.mfcheck .mftabelle tr.warn td.erg { color: #8A5A00; }
.mfcheck .mftabelle tr.fehler td.erg { color: #B3261E; }
.mfcheck .mftabelle tr.fehler td { background: #FFF6F5; }
.mfcheck .mfzusammen { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 10px; color: var(--grau); }
.mfcheck .mftabelle { table-layout: fixed; width: 100%; }
.mfcheck .mftabelle th:nth-child(1) { width: 92px; }
.mfcheck .mftabelle th:nth-child(2) { width: 24%; }
.mfcheck .mftabelle th:nth-child(5) { width: 26%; }
.mfcheck .mfalle summary { cursor: pointer; color: var(--gruen); font-weight: 600; margin: 10px 0; }
/* Veranstaltungsplan drucken (Nils 17.11.2026): A4 quer, Woche oder Monat */
.vddruck .vdvorschau { overflow-x: auto; background: #E9EEE5; border-radius: 12px; padding: 14px; }
.vdBlatt { width: 297mm; height: 210mm; box-sizing: border-box; padding: 8mm 9mm 6mm; background: #fff; color: #1B2A19; font-family: Figtree, "Segoe UI", system-ui, sans-serif; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(0,0,0,.18); margin: 0 auto; zoom: .8; }
.vdBlatt .vdkopf { display: flex; justify-content: space-between; align-items: center; background: #2F6B2A; color: #fff; border-radius: 10px; padding: 8px 14px; margin-bottom: 6px; }
.vdBlatt .vdkopf .l { display: flex; align-items: center; }
.vdBlatt .vdkopf .mk { width: 30px; height: 30px; border-radius: 8px; background: #fff; display: grid; place-items: center; margin-right: 10px; }
.vdBlatt .vdkopf b { font-size: 19px; font-weight: 800; display: block; line-height: 1.1; }
.vdBlatt .vdkopf small { font-size: 11px; opacity: .85; }
.vdBlatt .vdkopf .r { text-align: right; font-size: 11.5px; }
.vdBlatt .vdkopf .r b { font-size: 14px; display: inline; }
.vdBlatt .vdwoche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2.5mm; flex: 1; min-height: 0; }
.vdBlatt .vdtag { border: 1px solid #DFE7D8; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.vdBlatt .vdtag.we { background: #FAFBF8; }
.vdBlatt .th { background: #E8F1E2; color: #2F6B2A; font-weight: 800; font-size: 12px; padding: 4px 7px; display: flex; justify-content: space-between; }
.vdBlatt .th span { color: #5B6B57; font-weight: 600; }
.vdBlatt .th.heute { background: #2F6B2A; color: #fff; }
.vdBlatt .th.heute span { color: #DDEBD4; }
.vdBlatt .ev { padding: 4px 7px; border-top: 1px solid #EEF2EA; font-size: 10.5px; line-height: 1.3; }
.vdBlatt .th + .ev { border-top: 0; }
.vdBlatt .ev .z { font-weight: 800; font-size: 11px; font-variant-numeric: tabular-nums; }
.vdBlatt .ev .t { font-weight: 700; font-size: 11.5px; }
.vdBlatt .ev .o { color: #5B6B57; }
.vdBlatt .ev .o.vw { font-style: italic; }
.vdBlatt .ev.ab { background: #FCE8E6; }
.vdBlatt .ev.ab .z, .vdBlatt .ev.ab .t { text-decoration: line-through; color: #B3261E; }
.vdBlatt .ev.ab .o { color: #B3261E; font-weight: 600; }
.vdBlatt .in { display: inline-block; background: #E4EEF3; color: #2D5A73; border-radius: 4px; padding: 0 4px; font-size: 9px; font-weight: 700; margin-left: 4px; vertical-align: 1px; }
.vdBlatt .vdfrei { padding: 8px 7px; color: #8A968A; font-size: 10.5px; font-style: italic; }
.vdBlatt .vdfrei.fei { color: #8A5A00; background: #FFF7E6; font-style: normal; font-weight: 700; }
.vdBlatt .vdfuss { display: flex; justify-content: space-between; font-size: 9.5px; color: #5B6B57; border-top: 1px solid #DFE7D8; padding-top: 4px; margin-top: 5px; }
.vdBlatt .vdmonat { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid #DFE7D8; border-radius: 8px; overflow: hidden; min-height: 0; }
.vdBlatt .wt { background: #E8F1E2; color: #2F6B2A; font-weight: 800; font-size: 11px; padding: 3px 6px; border-left: 1px solid #DFE7D8; }
.vdBlatt .zl { border-left: 1px solid #DFE7D8; border-top: 1px solid #DFE7D8; padding: 2px 4px; overflow: hidden; font-size: 8.6px; line-height: 1.28; min-width: 0; }
.vdBlatt .wt:nth-child(7n+1), .vdBlatt .zl:nth-child(7n+1) { border-left: 0; }
.vdBlatt .zl .d { font-weight: 800; font-size: 11px; color: #2F6B2A; display: flex; justify-content: space-between; }
.vdBlatt .zl .d span { font-weight: 600; font-size: 8.5px; color: #8A968A; }
.vdBlatt .zl.aus { background: #F4F6F2; }
.vdBlatt .zl.aus .d { color: #B8C2B4; }
.vdBlatt .zl.heute { background: #F1F7EC; box-shadow: inset 0 0 0 1.5px #2F6B2A; }
.vdBlatt .zl.fei { background: #FFF7E6; }
.vdBlatt .zl .e { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdBlatt .zl .e b { font-variant-numeric: tabular-nums; }
.vdBlatt .zl .e.ab { color: #B3261E; text-decoration: line-through; }
.vdBlatt .zl .e.fr { color: #8A5A00; font-weight: 700; }
@media print {
  @page vdquer { size: A4 landscape; margin: 0; }
  .inhalt:has(.vdBlatt) { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .vddruck { padding: 0 !important; }
  .vddruck .vdvorschau { background: none; padding: 0; border-radius: 0; overflow: visible; }
  .vdBlatt { page: vdquer; zoom: 1; box-shadow: none; margin: 0; }
  .vdBlatt * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Tagesprotokoll „Auf Bereichen drucken“ (Nils 17.11.2026) */
.tpdruck { position: relative; }
.tpdruck > summary { list-style: none; cursor: pointer; }
.tpdruck > summary::-webkit-details-marker { display: none; }
.tpdruck .tpdruckbox { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid #DFE7D8; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 14px 16px; width: 340px; font-size: 14px; }
.tpdruck .tpdruckbox ul { list-style: none; margin: 8px 0 10px; padding: 0; }
.tpdruck .tpdruckbox li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid #EEF2EA; }
.tpdruck .tpdruckbox li:first-child { border-top: 0; }
/* Controlling › Lager: Verbrauch nach Bereich (0.118.0) */
.px table.verbrauch details summary { cursor: pointer; font-weight: 600; }
.px table.verbrauch .vbtop { list-style: none; margin: 6px 0 4px; padding: 0; min-width: 320px; }
.px table.verbrauch .vbtop li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; font-size: 13px; padding: 2px 0; }
/* Rollen und Rechte: Wer hat diese Rolle? (zugeklappt, 0.118.0) */
.px.rollen .rollenwer summary { cursor: pointer; }
.px.rollen .rollenwer .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.px.rollen .rollenleute { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 20px; font-size: 14px; }
.px.rollen .rollenleute li { break-inside: avoid; padding: 2px 0; }

/* Knopf „Einstellungen“ oben rechts, nur GF (Nils 21.11.2026, Vorbild Barbeträge; Rechte/SeitenEinstellungen.cs) */
.inhalt { position: relative; }
.inhalt > a.seiteneinst { position: absolute; top: 24px; right: 24px; z-index: 5; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; border-radius: 10px; border: 1px solid #DFE7D8; background: #fff; color: #1B2A19; font-size: 13px; font-weight: 500; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.inhalt > a.seiteneinst:hover, a.seiteneinst[data-platz="zeile"]:hover { border-color: #3A7A33; }
/* in der Knopfzeile neben der Überschrift (seiteneinst.js) */
a.seiteneinst[data-platz="zeile"] { position: static; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; border-radius: 10px; border: 1px solid #DFE7D8; background: #fff; color: #1B2A19; font-size: 13px; font-weight: 500; text-decoration: none; align-self: center; flex: none; margin-left: 8px; }
a.seiteneinst[data-platz="zeile"] svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] a.seiteneinst[data-platz="zeile"] { background: #1D271C; border-color: #2D322A; color: #E3ECDF; }
.inhalt > a.seiteneinst svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seite .inhalt > a.seiteneinst { top: 28px; right: 32px; }
@media (max-width: 760px) { .seite .inhalt > a.seiteneinst { top: 18px; right: 14px; } .inhalt > a.seiteneinst span, .inhalt > a.seiteneinst { font-size: 0; gap: 0; padding: 0 7px; } }
:root[data-theme="dark"] .inhalt > a.seiteneinst { background: #1D271C; border-color: #2D322A; color: #E3ECDF; }
@media print { .inhalt > a.seiteneinst { display: none; } }

/* Eingabeschutz für Fenster (Nils 21.11.2026, wwwroot/js/eingabeschutz.js): Hinweis statt Schließen, wenn schon etwas eingegeben ist */
.eingabeschutz { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -12px); max-width: calc(100% - 32px); background: #1B2A19; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 100000; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.eingabeschutz.an { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .eingabeschutz { transition: none; } }

/* Administration › Website-Chatbot (0.125.0) */
.px.wcadm .wcgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:18px;margin-bottom:18px}
.px.wcadm > .card{margin-bottom:18px}
.px.wcadm .wczeile{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-bottom:12px}
.px.wcadm .wczeile small{display:block}
.px.wcadm .wccode{background:var(--grey-soft);border:1px solid var(--line);border-radius:10px;padding:10px 12px;overflow-x:auto;font-size:13px;white-space:pre}
.px.wcadm .wcinline{display:inline-block;margin:0 8px 12px 0}
.px.wcadm .wcstand{max-width:260px}
.px.wcadm fieldset{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:0}
.px.wcadm legend{padding:0 6px}.px.wcadm legend .check{margin:0}
.px.wcadm .wctab{width:100%;border-collapse:collapse}
.px.wcadm .wctab td,.px.wcadm .wctab th{padding:5px 6px;border-bottom:1px solid var(--line);text-align:left;font-size:14px}
.px.wcadm .wctab input{width:110px;text-align:right;padding:6px 8px;border:1px solid var(--line);border-radius:8px;font-variant-numeric:tabular-nums}
.px.wcadm .wcliste{margin-top:6px}
.px.wcadm .wctab td:last-child{white-space:nowrap;text-align:right}
.px.wcadm .kpi{background:var(--grey-soft);border-color:var(--line)}
.px.wcadm .kpi b{font-size:30px}
.px.wcadm .kpi span{color:var(--muted);font-size:14px}

/* Administration › Übersicht: Suche und Warnungen (0.126.0) */
.admin-suche { display: block; margin-top: 12px; max-width: 460px; }
.admin-suche input { width: 100%; min-height: 44px; padding: 8px 14px; border: 1px solid var(--rand); border-radius: 12px; background: #fff; color: var(--text); font: inherit; }
.admin-warnungen { border-left: 4px solid var(--fehler); }
.admin-warnungen h2 { font-size: 16px; margin: 0 0 8px; }
.admin-warnungen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.admin-warnungen a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.admin-warnungen a:hover { background: var(--gruen-hell); }
.admin-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--fehler); margin-right: 8px; flex: none; vertical-align: middle; }
.admin-warnungen .admin-punkt { margin-right: 0; }
.admin-nichts { margin-top: 14px; }
.admin-kacheln [hidden], .admin-nichts[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Wichtige Telefonnummern: eine Liste, ein Speichern-Knopf (0.126.0) */
.tel-gruppe h2 { display: flex; align-items: center; gap: 8px; }
.tel-zahl { font-size: 13px; font-weight: 600; color: var(--grau); background: var(--gruen-hell); border-radius: 99px; padding: 1px 9px; }
.tel-tabelle { width: 100%; }
.tel-tabelle th { font-size: 13px; color: var(--grau); font-weight: 600; text-align: left; white-space: nowrap; }
.tel-tabelle td { padding: 3px 4px; vertical-align: top; }
.tel-tabelle input[type=text], .tel-tabelle input[type=tel], .tel-tabelle input[type=email] { width: 100%; min-width: 90px; min-height: 36px; padding: 5px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: inherit; }
.tel-tabelle input:hover { border-color: var(--rand); }
.tel-tabelle input:focus { border-color: var(--gruen); background: #fff; outline: none; }
.tel-tabelle .tel-nr { font-variant-numeric: tabular-nums; min-width: 110px; }
.tel-tabelle .tel-gr { min-width: 120px; color: var(--grau); }
.tel-mitte { text-align: center; vertical-align: middle !important; }
.tel-zeile.geaendert td { background: #FFF6E0; }
.tel-zeile.geaendert td:first-child { box-shadow: inset 3px 0 0 #E2A21B; }
.tel-zeile.weg td { opacity: .5; }
.tel-zeile.weg input { text-decoration: line-through; }
.tel-zeile.tel-fehler td { background: #FDECEA; }
.tel-meldung { display: block; color: var(--fehler); font-size: 12.5px; padding: 0 8px; }
.tel-weg { font-size: 16px; padding: 4px 8px; }
.tel-griff { width: 32px; vertical-align: middle !important; }
.tel-zieh { border: 0; background: none; cursor: grab; touch-action: none; font-size: 18px; line-height: 1; padding: 6px 4px; color: var(--grau); border-radius: 6px; }
.tel-zieh:hover, .tel-zieh:focus-visible { background: var(--gruen-hell); color: var(--text); }
.tel-zeile.tel-zieht td { background: var(--gruen-hell); }
.tel-zeile.tel-zieht .tel-zieh { cursor: grabbing; }
.tel-form > .karte .knopf.zweit { margin-top: 8px; }
.tel-leiste { position: sticky; bottom: 12px; z-index: 20; display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin: 12px 0; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--rand); box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.tel-leiste[hidden] { display: none; }
.tel-leiste #telStand { margin-right: auto; font-weight: 600; }
@media (max-width: 900px) {
  .tel-tabelle thead { display: none; }
  .tel-tabelle tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; padding: 8px 0; border-bottom: 1px solid var(--rand); }
  .tel-tabelle td { display: block; }
  .tel-tabelle td:nth-child(2) { grid-column: 1 / -1; }
}
