/* MKK Zentrale. Nur heller Modus. Alle Farben als Variablen, auf farbigen Flächen immer weiße Schrift.
   Schriften liegen lokal unter schrift/ (Figtree für alles, Bricolage Grotesque für Überschriften und große Zahlen, beide OFL). */

@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('schrift/figtree-latin-ext-wght.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('schrift/figtree-latin-wght.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url('schrift/bricolage-grotesque-latin-ext-opsz.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url('schrift/bricolage-grotesque-latin-opsz.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD; }

:root {
  --gruen: #1F6B4F;
  --gruen-gedrueckt: #17553F;
  --rot: #C43434;
  --rot-gedrueckt: #A82B2B;
  --rot-schrift: #B02A2A;
  --warn: #8A5300;
  --warn-gedrueckt: #6F4300;
  --grund: #F3F3F3;
  --karte: #FFFFFF;
  --flaeche: #E9EAE9;
  --flaeche-gedrueckt: #DCDEDD;
  --text: #18201C;
  --text2: #515A55;
  --linie: #E0E1E0;
  --rand: #868C88;
  --dunkel: #2C3531;
  --plan: #E3E5E4;

  --rund-klein: 4px;
  --rund: 8px;
  --rund-gross: 12px;
  --schatten: 0 1px 2px rgba(24, 32, 28, .05);
  --schatten-blatt: 0 12px 40px rgba(24, 32, 28, .22);

  --kurve: cubic-bezier(.23, 1, .32, 1);
  --kurve-blatt: cubic-bezier(.32, .72, 0, 1);

  --schrift: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --schrift-gross: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --oben: env(safe-area-inset-top, 0px);
  --unten: env(safe-area-inset-bottom, 0px);
  --links: env(safe-area-inset-left, 0px);
  --rechts: env(safe-area-inset-right, 0px);
  --rand-seite: 16px;
  --tab-hoehe: 58px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; background: var(--grund); }
body { margin: 0; min-height: 100dvh; background: var(--grund); color: var(--text); font: 400 15.5px/1.45 var(--schrift); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--gruen); text-underline-offset: 3px; }
::selection { background: var(--gruen); color: #fff; }
input, textarea { caret-color: var(--gruen); }
html { scrollbar-color: var(--rand) transparent; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 2px; border-radius: var(--rund-klein); }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

button, a, [role="button"], label.wahl, .tab, summary { touch-action: manipulation; }
button, [role="button"], .tab, .kn { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* ---------- Grundgerüst ---------- */
.huelle { min-height: 100dvh; }
.leiste { display: none; }
.inhalt { display: block; padding: calc(var(--oben) + 14px) calc(var(--rechts) + var(--rand-seite)) calc(var(--tab-hoehe) + var(--unten) + 24px) calc(var(--links) + var(--rand-seite)); max-width: 1180px; margin: 0 auto; outline: none; }
.tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: .8fr 1.32fr .8fr .8fr .8fr; padding: 0 var(--rechts) var(--unten) var(--links); background: var(--karte); border-top: 1px solid var(--linie); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tab-hoehe); font-size: 11.5px; font-weight: 600; color: var(--text2); text-decoration: none; position: relative; }
.tab .ic { width: 23px; height: 23px; transition: transform 120ms var(--kurve); }
.tab:active .ic { transform: scale(.9); }
.tab.aktiv { color: var(--gruen); }
.tab.aktiv::before { content: ''; position: absolute; top: -1px; left: 16%; right: 16%; height: 3px; background: var(--gruen); border-radius: 0 0 3px 3px; }
.zaehler { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gruen); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.zaehler.rot { background: var(--rot); }
.tab .zaehler { position: absolute; top: 5px; left: calc(50% + 7px); min-width: 17px; height: 17px; font-size: 11px; padding: 0 4px; }

@media (min-width: 900px) {
  :root { --rand-seite: 40px; }
  .huelle { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
  .tabs { display: none; }
  .inhalt { padding: 32px var(--rand-seite) 56px; width: 100%; }
  .leiste { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 18px 12px 12px; background: var(--karte); border-right: 1px solid var(--linie); }
}

.marke { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; color: var(--text); text-decoration: none; }
.marke-fels { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--rund); background: var(--gruen); color: #fff; flex: none; }
.marke-fels .ic { width: 20px; height: 20px; }
.marke-text { line-height: 1.15; min-width: 0; }
.marke-text strong { display: block; font: 700 16.5px/1.15 var(--schrift-gross); letter-spacing: -.01em; }
.marke-text span { font-size: 12.5px; color: var(--text2); }
.nav { display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; overflow-y: auto; }
.nav-gruppe { display: grid; gap: 1px; }
.nav-titel { padding: 0 10px 3px; font-size: 12.5px; font-weight: 650; color: var(--text2); }
.nav a { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 10px; border-radius: var(--rund); color: var(--text); font-size: 15px; font-weight: 550; text-decoration: none; }
.nav a .zaehler { margin-left: auto; }
.nav a.aktiv { background: var(--gruen); color: #fff; font-weight: 650; }
.nav a.aktiv .zaehler { background: #fff; color: var(--gruen); }
.nav a:active { background: var(--flaeche-gedrueckt); }
.nav a.aktiv:active { background: var(--gruen-gedrueckt); }
.leiste-fuss { border-top: 1px solid var(--linie); padding-top: 8px; margin-top: 10px; }
.leiste-fuss a, .leiste-fuss button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border-radius: var(--rund); color: var(--text); font-size: 14.5px; text-decoration: none; text-align: left; }
.leiste-fuss button:active, .leiste-fuss a:active { background: var(--flaeche-gedrueckt); }
.leiste-konto { display: flex; align-items: center; gap: 2px; }
.leiste-konto button:first-child { flex: 1; min-width: 0; }
.leiste-name { min-width: 0; font-weight: 600; line-height: 1.15; }
.leiste-name small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text2); }
.leiste-fuss button.leiste-ab { flex: none; width: 38px; padding: 0; justify-content: center; color: var(--text2); }

@media (hover: hover) and (pointer: fine) {
  .nav a:not(.aktiv):hover, .leiste-fuss a:hover, .leiste-fuss button:hover { background: var(--flaeche); }
  .nav a.aktiv:hover { background: var(--gruen-gedrueckt); }
}

/* ---------- Seitenkopf, Karten, Schrift ---------- */
.kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-height: 44px; margin-bottom: 18px; }
.kopf h1 { font: 700 28px/1.12 var(--schrift-gross); letter-spacing: -.018em; margin-right: auto; }
.kopf-text { min-width: 0; margin-right: auto; }
.kopf-text h1 { margin-right: 0; }
.kopf-unter { margin-top: 2px; color: var(--text2); }
.kopf-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
h2.titel { font: 650 18px/1.2 var(--schrift-gross); letter-spacing: -.005em; }
h3.unter { font-size: 14.5px; font-weight: 700; margin: 18px 0 6px; }
h3.unter:first-child { margin-top: 0; }
.karte { background: var(--karte); border-radius: var(--rund-gross); min-width: 0; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px 10px; }
.karte-kopf .rechts { color: var(--text2); font-weight: 550; }
.karte-inhalt { padding: 0 16px 16px; }
.leise { color: var(--text2); }
.klein { font-size: 13.5px; }
.fett { font-weight: 700; }
.zahl { font-variant-numeric: tabular-nums; }
.rechtsbuendig { text-align: right; }
.stapel { display: grid; gap: 20px; min-width: 0; }
.schmal { max-width: 640px; }
.schmal-breit { max-width: 860px; }
.rot-text { color: var(--rot-schrift); font-weight: 700; }
.warn-text { color: var(--warn); font-weight: 650; }
.passt { color: var(--gruen); font-weight: 650; }
.karte-notiz { padding: 10px 16px; }
.karte-notiz.mit-linie { border-top: 1px solid var(--linie); }
.bon-marke { margin-top: 6px; }
.sitzung-warnung { margin-top: 4px; }
.zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zwischen { justify-content: space-between; }
.nur-handy { display: initial; }
.nur-gross { display: none; }
@media (min-width: 760px) { .nur-handy { display: none !important; } .nur-gross { display: initial; } }

/* ---------- Knöpfe ---------- */
.kn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 15px; border-radius: var(--rund); border: 1px solid #C4C8C6; background: var(--karte); color: var(--text); font-weight: 600; font-size: 15px; line-height: 1.1; text-decoration: none; white-space: nowrap; transition: transform 120ms var(--kurve), background-color 120ms ease, border-color 120ms ease; }
.kn .ic { width: 18px; height: 18px; stroke-width: 2; }
.kn:active:not(:disabled) { transform: scale(.97); background: var(--flaeche-gedrueckt); }
.kn:disabled, .kn[aria-busy="true"] { background: var(--flaeche); border-color: var(--flaeche); color: var(--text2); cursor: default; }
.kn.haupt { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.kn.haupt:active:not(:disabled) { background: var(--gruen-gedrueckt); border-color: var(--gruen-gedrueckt); }
.kn.haupt:disabled, .kn.haupt[aria-busy="true"] { background: var(--flaeche); border-color: var(--flaeche); color: var(--text2); }
.kn.rot { background: var(--rot); border-color: var(--rot); color: #fff; }
.kn.rot:active:not(:disabled) { background: var(--rot-gedrueckt); border-color: var(--rot-gedrueckt); }
.kn.still { border-color: transparent; background: transparent; color: var(--gruen); }
.kn.still:active:not(:disabled) { background: var(--flaeche-gedrueckt); }
.kn.klein { min-height: 36px; padding: 0 11px; font-size: 14px; }
.kn.ring { width: 44px; padding: 0; }
.kn.breit { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .kn:hover:not(:disabled) { background: var(--flaeche); }
  .kn.haupt:hover:not(:disabled) { background: var(--gruen-gedrueckt); border-color: var(--gruen-gedrueckt); color: #fff; }
  .kn.rot:hover:not(:disabled) { background: var(--rot-gedrueckt); border-color: var(--rot-gedrueckt); color: #fff; }
  .kn.still:hover:not(:disabled) { background: var(--flaeche); color: var(--gruen-gedrueckt); }
}
@media (pointer: coarse) { .kn.klein { min-height: 44px; } }

/* ---------- Etiketten ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; min-height: 21px; border-radius: var(--rund-klein); font-size: 12.5px; font-weight: 650; line-height: 1.2; white-space: nowrap; background: var(--flaeche); color: var(--text); }
.tag.gruen { background: var(--gruen); color: #fff; }
.tag.rot { background: var(--rot); color: #fff; }
.tag.warn { background: var(--warn); color: #fff; }
.tag.dunkel { background: var(--dunkel); color: #fff; }
.tag.rand { background: transparent; box-shadow: inset 0 0 0 1px var(--rand); color: var(--text); }
.tag.test { background: transparent; box-shadow: none; border: 1px dashed var(--rand); color: var(--text2); font-weight: 600; }
.tag .ic { width: 13px; height: 13px; stroke-width: 2.4; }

/* ---------- Formularfelder ---------- */
.feld { display: grid; gap: 4px; min-width: 0; }
.feld > span, .feld > label, .feld-titel { font-size: 13.5px; font-weight: 650; color: var(--text); }
.feld small { color: var(--text2); font-size: 13px; }
.ein { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--rand); border-radius: var(--rund); background: var(--karte); font-size: 16px; line-height: 1.3; transition: border-color 120ms ease; appearance: none; -webkit-appearance: none; }
textarea.ein { min-height: 84px; resize: vertical; }
select.ein { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318201C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 9 6.5 6.5L18.5 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
input[type="date"].ein, input[type="month"].ein, input[type="time"].ein, input[type="datetime-local"].ein { min-width: 0; }
.ein::placeholder { color: var(--text2); opacity: 1; }
.ein:focus { outline: 2px solid var(--gruen); outline-offset: -1px; border-color: var(--gruen); }
.ein:disabled { background: var(--flaeche); color: var(--text2); }
.suche { position: relative; flex: 1 1 200px; min-width: 0; }
.suche .ic { position: absolute; left: 11px; top: 12px; color: var(--text2); pointer-events: none; }
.suche .ein { padding-left: 38px; }
.reihe { display: grid; gap: 12px; }
.reihe-2 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.formfehler { color: var(--rot-schrift); font-weight: 600; font-size: 14.5px; }
.formfehler:empty { display: none; }
.wahlen { display: flex; flex-wrap: wrap; gap: 6px; }
label.wahl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--rand); border-radius: var(--rund); background: var(--karte); font-weight: 600; font-size: 15px; cursor: pointer; transition: transform 120ms var(--kurve); user-select: none; -webkit-user-select: none; }
label.wahl:active { transform: scale(.97); }
label.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.wahl:has(input:checked) { background: var(--gruen); border-color: var(--gruen); color: #fff; }
label.wahl:has(input:focus-visible) { outline: 2px solid var(--gruen); outline-offset: 2px; }
label.haken { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
label.haken input { width: 22px; height: 22px; accent-color: var(--gruen); margin: 0; flex: none; }

/* Umschalter für Unterseiten */
.schalter { display: flex; gap: 2px; padding: 3px; background: var(--flaeche); border-radius: var(--rund); max-width: 100%; }
.schalter button { flex: 1 1 auto; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 0 7px; border-radius: 6px; font-weight: 600; font-size: 14.5px; color: var(--text); white-space: nowrap; transition: transform 120ms var(--kurve); }
.schalter button:active { transform: scale(.97); }
.schalter button[aria-pressed="true"] { background: var(--gruen); color: #fff; }
.schalter button[aria-pressed="true"] .zaehler { background: #fff; color: var(--gruen); }
@media (pointer: coarse) { .schalter button { min-height: 44px; } }
@media (min-width: 760px) { .schalter button { padding: 0 13px; } }
@media (hover: hover) and (pointer: fine) { .schalter button:not([aria-pressed="true"]):hover { background: var(--flaeche-gedrueckt); } }
/* Reiter für Unterseiten: gleiche Stelle auf jeder Seite, direkt unter dem Kopf */
.reiter { display: flex; gap: 22px; margin-bottom: 18px; border-bottom: 1px solid var(--flaeche-gedrueckt); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.reiter::-webkit-scrollbar { display: none; }
.reiter button { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 1px; color: var(--text2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.reiter button[aria-pressed="true"] { color: var(--text); }
.reiter button[aria-pressed="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gruen); border-radius: 3px 3px 0 0; }
.reiter button:focus-visible { outline-offset: -2px; }
.reiter button:active { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .reiter button:hover { color: var(--text); } }
/* Als Rollbereich fiele die Zeile im Raster sonst auf null zusammen */
.blatt-rumpf > .reiter { position: sticky; top: -14px; z-index: 2; min-height: 45px; margin: -14px -16px 2px; padding: 0 16px; background: var(--karte); }
.blatt-teil { display: grid; gap: 12px; min-width: 0; }
.blatt-teil[hidden] { display: none; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.filter select.ein { width: auto; flex: 0 1 auto; }

/* Datum vor und zurück */
.tagwahl { display: flex; align-items: center; gap: 6px; }
.tagwahl .ein { width: auto; min-width: 0; }
.tagwahl strong { min-width: 7.5em; text-align: center; font-weight: 700; }

/* ---------- Zustände einer Karte ---------- */
.sk { display: block; background: var(--flaeche); border-radius: var(--rund-klein); height: 15px; animation: sk 1.1s ease-in-out infinite alternate; }
.sk + .sk { margin-top: 10px; }
.sk.hoch { height: 44px; border-radius: var(--rund); }
.sk.b70 { width: 70%; } .sk.b45 { width: 45%; }
@keyframes sk { from { opacity: 1; } to { opacity: .55; } }
.skelett { padding: 16px; }
.leer { padding: 22px 16px; color: var(--text2); }
.leer strong { display: block; color: var(--text); font-weight: 650; margin-bottom: 2px; }
.ausfall { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; }
.ausfall-text { flex: 1 1 220px; min-width: 0; }
.ausfall-text strong { display: block; color: var(--rot-schrift); font-weight: 700; }
.ausfall-text span { color: var(--text2); font-size: 14.5px; overflow-wrap: anywhere; }
.veraltet { padding: 8px 16px; color: var(--rot-schrift); font-size: 14px; font-weight: 600; }

.stoerungen { display: grid; gap: 6px; margin-bottom: 16px; }
.stoerung { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: var(--rund); background: var(--rot); color: #fff; font-weight: 600; }

/* ---------- Tabelle, am Handy Liste ---------- */
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { padding: 8px 12px; font-size: 13px; font-weight: 650; color: var(--text2); text-align: left; white-space: nowrap; border-bottom: 1px solid var(--linie); }
.tabelle td { padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle th:first-child, .tabelle td:first-child { padding-left: 16px; }
.tabelle th:last-child, .tabelle td:last-child { padding-right: 16px; }
.tabelle .re { text-align: right; }
.tabelle tbody tr[data-act] { cursor: pointer; }
.zeilen-kn { font-weight: 650; text-align: left; color: var(--text); min-height: 28px; }
.zeilen-kn small { display: block; font-weight: 400; color: var(--text2); font-size: 13px; }
tr[data-act]:active td { background: var(--flaeche); }
@media (hover: hover) and (pointer: fine) { tr[data-act]:hover td { background: #F7F7F7; } }
@media (max-width: 759.98px) {
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: auto; }
  .tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tabelle tr { padding: 10px 16px; border-bottom: 1px solid var(--linie); min-height: 48px; }
  .tabelle tbody tr:last-child { border-bottom: 0; }
  .tabelle td, .tabelle td:first-child, .tabelle td:last-child { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border: 0; text-align: right; align-items: baseline; }
  .tabelle td::before { content: attr(data-label); color: var(--text2); font-size: 14px; flex: none; }
  .tabelle td[data-label=""]::before { display: none; }
  .tabelle td.kopfzelle { font-size: 16px; text-align: left; padding-bottom: 4px; }
  .tabelle td.kopfzelle::before { display: none; }
  .tabelle td.nur-breit { display: none; }
  tr[data-act]:active { background: var(--flaeche); }
  tr[data-act]:active td { background: transparent; }
}

/* ---------- Listen ---------- */
.liste > li { border-top: 1px solid var(--linie); }
.portal-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; }
.portal-zeile > div:first-child { min-width: 0; flex: 1 1 220px; }
.portal-zeile small { display: block; }
.portal-zeile .ein { max-width: 100%; min-width: 0; flex: 1 1 200px; }
.portal-zeile .zeile { flex: 1 1 280px; flex-wrap: nowrap; }
.liste > li:first-child { border-top: 0; }
.liste-kn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px; text-align: left; color: var(--text); text-decoration: none; }
.liste-kn:active { background: var(--flaeche); }
.liste-kn .ic.pfeil { margin-left: auto; color: var(--text2); width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .liste-kn:hover { background: #F7F7F7; } }
.wichtig { min-width: 0; flex: 1; }
.wichtig strong { font-weight: 650; }
.wichtig > span { display: block; color: var(--text2); font-size: 14px; }

/* ---------- Anmeldung ---------- */
.anmelden { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--karte); }
.anmelden-marke { background: var(--gruen); color: #fff; padding: calc(var(--oben) + 28px) 24px 26px; }
.anmelden-marke .ic { width: 34px; height: 34px; display: block; margin-bottom: 44px; }
.anmelden-marke h1 { font: 700 34px/1.05 var(--schrift-gross); letter-spacing: -.02em; }
.anmelden-marke p { margin-top: 6px; font-weight: 500; }
.anmelden-form { padding: 28px 24px calc(var(--unten) + 28px); width: 100%; max-width: 420px; margin: 0 auto; display: grid; align-content: start; gap: 14px; }
@media (min-width: 860px) {
  .anmelden { grid-template-rows: none; grid-template-columns: minmax(340px, 42%) 1fr; }
  .anmelden-marke { display: flex; flex-direction: column; padding: 40px 44px; }
  .anmelden-marke .ic { margin-bottom: auto; }
  .anmelden-marke h1 { font-size: 56px; }
  .anmelden-marke p { font-size: 17px; }
  .anmelden-form { align-content: center; }
}

/* ---------- Übersicht ---------- */
.tag-kopf { margin: calc(-14px - var(--oben)) calc(0px - var(--rand-seite) - var(--rechts)) 16px calc(0px - var(--rand-seite) - var(--links)); padding: calc(var(--oben) + 16px) calc(var(--rand-seite) + var(--rechts)) 18px calc(var(--rand-seite) + var(--links)); background: var(--gruen); color: #fff; }
.tag-kopf :focus-visible { outline-color: #fff; }
.tag-kopf-oben { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.tag-kopf h1 { font: 650 19px/1.2 var(--schrift-gross); margin-right: auto; }
.training { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--rund-klein); box-shadow: inset 0 0 0 1px #fff; font-size: 13px; font-weight: 650; }
.tag-kopf-zahlen { display: grid; gap: 12px 40px; margin-top: 12px; }
.tz { min-width: 0; }
.tz span { display: block; font-size: 13.5px; font-weight: 500; }
.tz-umsatz strong { display: block; font: 700 46px/1.05 var(--schrift-gross); letter-spacing: -.02em; }
.tz-ausfall { font-weight: 600; }
.tz-ausfall strong { display: block; font: 650 19px/1.2 var(--schrift-gross); }
/* Wie die Zeilen auf einem Bon: Bezeichnung, Punkte, Zahl */
.bonliste { display: grid; gap: 3px; }
.bonliste div { display: flex; align-items: baseline; gap: 8px; }
.bonliste dt { display: flex; flex: 1; align-items: baseline; gap: 6px; min-width: 0; font-weight: 500; }
.bonliste dt::after { content: ''; flex: 1; min-width: 16px; border-bottom: 2px dotted #fff; transform: translateY(-3px); }
.bonliste dd { font: 650 19px/1.25 var(--schrift-gross); }
.tag-kopf .sk { background: rgba(255, 255, 255, .32); }
.tag-kopf .kn { justify-self: start; background: #fff; color: var(--gruen); border-color: #fff; }
.tag-kopf .kn:active:not(:disabled) { background: var(--flaeche); }
@media (min-width: 900px) {
  .tag-kopf { margin: -28px calc(0px - var(--rand-seite)) 20px; padding: 22px var(--rand-seite) 24px; }
  .tag-kopf-zahlen { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: end; margin-top: 14px; }
  .tz-umsatz strong { font-size: 58px; }
}
/* Reihenfolge: Aufgabenleiste, drei Kennzahlen, Reservierungen und Dienst */
.aufgaben { display: grid; gap: 8px 20px; padding: 12px 16px; margin-bottom: 26px; background: var(--karte); border-radius: var(--rund-gross); }
.aufgaben h2 { font: 650 15px/1.2 var(--schrift-gross); align-self: center; }
.aufgaben ul { display: grid; min-width: 0; }
.aufgaben li { min-width: 0; }
.aufgabe { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); text-decoration: none; border-top: 1px solid var(--linie); }
.aufgaben li:first-child .aufgabe { border-top: 0; }
.aufgabe { padding: 6px 0; }
.aufgabe-text { flex: 1; min-width: 0; }
.aufgabe strong { display: block; font-weight: 650; }
.aufgabe-text > span { display: block; color: var(--text2); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aufgabe .pfeil { flex: none; width: 16px; height: 16px; color: var(--text2); margin-left: auto; }
.aufgabe:active strong { color: var(--gruen-gedrueckt); }
.aufgaben-stoerungen { display: grid; gap: 6px; }
a.stoerung { color: #fff; text-decoration: none; min-height: 44px; }
a.stoerung > span { flex: 1; min-width: 0; }
a.stoerung .pfeil { flex: none; width: 16px; height: 16px; margin-left: auto; }
a.stoerung:active { background: var(--rot-gedrueckt); }
.stoerung.in-karte { margin: 0 16px 10px; }
.aufgaben-leer { display: flex; align-items: center; gap: 7px; margin-bottom: 26px; color: var(--text2); font-weight: 550; }
.aufgaben-leer .ic { width: 18px; height: 18px; color: var(--gruen); stroke-width: 2.2; }
@media (hover: hover) and (pointer: fine) {
  .aufgabe:hover strong { color: var(--gruen-gedrueckt); }
  a.stoerung:hover { background: var(--rot-gedrueckt); }
}
@media (min-width: 760px) {
  .aufgaben { grid-template-columns: auto minmax(0, 1fr); padding: 8px 12px 8px 18px; }
  .aufgaben-stoerungen { grid-column: 2; }
  .aufgaben h2 { grid-column: 1; grid-row: 1; align-self: start; line-height: 44px; }
  .aufgaben ul { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0 32px; }
  .aufgabe { border-top: 0; padding: 0; }
  .aufgabe-text { display: flex; align-items: baseline; gap: 8px; flex: none; max-width: 100%; }
  .aufgabe .pfeil { margin-left: 0; }
}

.kennzahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-bottom: 30px; }
.kz { display: block; min-width: 0; color: var(--text); text-decoration: none; }
.kz-gross { grid-column: 1 / -1; }
.kz-name { display: block; font-size: 14px; font-weight: 600; color: var(--text2); }
.kz strong { display: block; margin-top: 1px; font: 700 34px/1.1 var(--schrift-gross); letter-spacing: -.015em; }
.kz-gross strong { font-size: 44px; letter-spacing: -.02em; }
.kz small { display: block; margin-top: 3px; font-size: 14px; color: var(--text2); }
.kz strong.kz-weg, .kz-gross strong.kz-weg { font: 650 19px/1.25 var(--schrift-gross); letter-spacing: 0; color: var(--rot-schrift); margin: 5px 0 8px; }
.kz .sk.hoch { margin-top: 8px; }
a.kz:active strong { color: var(--gruen-gedrueckt); }
.start-ausfall { margin-bottom: 26px; }
@media (hover: hover) and (pointer: fine) { a.kz:hover strong { color: var(--gruen); } }
@media (min-width: 760px) {
  .kennzahlen { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .kz-gross { grid-column: auto; }
  .kz + .kz { padding-left: 26px; border-left: 1px solid var(--flaeche-gedrueckt); }
  .kz-gross strong { font-size: 52px; line-height: 1.04; }
}

.bereich { min-width: 0; }
.bereich-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bereich-kopf a { font-weight: 600; white-space: nowrap; display: inline-block; padding: 8px 0; margin: -8px 0; }
.start-raster { display: grid; gap: 26px; }
@media (min-width: 1040px) { .start-raster { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; } }

/* Dienst heute: Zeitachse */
.dienst-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 16px 6px; }
.dienst-kopf h2 { white-space: nowrap; }
.imdienst { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; white-space: nowrap; padding: 0 10px; border-radius: var(--rund-klein); background: var(--gruen); color: #fff; font-weight: 700; font-size: 14px; }
.achse { --name: 132px; padding: 12px 16px 14px; }
.achse-hinweis { margin-top: 8px; }
.achse-stunden { position: relative; height: 22px; margin-left: calc(var(--name) + 12px); font-size: 12.5px; color: var(--text2); }
.achse-stunden span { position: absolute; transform: translateX(-50%); }
.achse-zeile { display: grid; grid-template-columns: var(--name) minmax(0, 1fr); gap: 12px; align-items: center; min-height: 40px; }
.achse-name { min-width: 0; line-height: 1.2; }
.achse-name strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.achse-name span { display: block; font-size: 13px; color: var(--text2); white-space: nowrap; }
.achse-name .spaet { color: var(--warn); font-weight: 650; }
.achse-spur { position: relative; height: 26px; background-image: repeating-linear-gradient(to right, var(--linie) 0 1px, transparent 1px calc(100% / var(--stunden, 12))); background-position: left; }
.balken { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; }
.balken.plan { background: var(--plan); box-shadow: inset 0 0 0 1px #C4C8C6; }
.balken.ist { background: var(--gruen); color: #fff; font-size: 12.5px; font-weight: 650; line-height: 20px; padding: 0 6px; overflow: hidden; white-space: nowrap; }
.balken.ist.pause { background: var(--dunkel); }
.jetzt-linie { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); pointer-events: none; }
@media (max-width: 759.98px) {
  .achse { --name: 0px; }
  .achse-stunden { margin-left: 0; }
  .achse-zeile { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 7px 0; border-top: 1px solid var(--linie); }
  .achse-name { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
  .achse-spur { height: 20px; }
  .balken { top: 2px; bottom: 2px; }
  .balken.ist { line-height: 16px; font-size: 12px; }
}

.res-mini { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 7px 16px; border-top: 1px solid var(--linie); }
.res-mini:first-child { border-top: 0; }
.res-mini time { flex: none; width: 46px; font-weight: 700; font-size: 16px; }
.res-mini .name { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-mini-p { flex: none; }
.res-mehr { padding: 9px 16px; border-top: 1px solid var(--linie); }
.res-gross-zahl { display: flex; align-items: baseline; gap: 14px; padding: 0 16px 12px; }
.res-gross-zahl b { font: 650 30px/1 var(--schrift-gross); letter-spacing: -.01em; }
.res-gross-zahl span { color: var(--text2); }
.karte-fuss { padding: 0 16px; border-top: 1px solid var(--linie); }
.karte-fuss a { display: flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Reservierungen ---------- */
.res-zeile { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 16px; align-items: start; width: 100%; text-align: left; color: var(--text); }
.res-zeile .uhr { font: 650 20px/1.2 var(--schrift-gross); }
.res-zeile .wer { font-weight: 650; font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.res-zeile .was { grid-column: 2 / 4; color: var(--text2); font-size: 14.5px; min-width: 0; }
.res-zeile .marken { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.res-zeile.vorbei .uhr, .res-zeile.vorbei .wer { color: var(--text2); font-weight: 500; }
.res-aktionen { display: flex; gap: 6px; padding: 0 16px 12px 86px; flex-wrap: wrap; }
.res-eintrag { border-top: 1px solid var(--linie); }
.res-eintrag:first-child { border-top: 0; }
.res-eintrag > button { display: block; width: 100%; }
.res-eintrag > button:active { background: var(--flaeche); }
@media (hover: hover) and (pointer: fine) { .res-eintrag > button:hover { background: #F7F7F7; } }
@media (max-width: 480px) { .res-aktionen { padding-left: 16px; } }
.angaben { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 6px 14px; }
.angaben dt { color: var(--text2); font-size: 14px; }
.angaben dd { font-weight: 550; overflow-wrap: anywhere; }

/* ---------- Kasse ---------- */
.kasse-raster { display: grid; gap: 16px; }
.kasse-knopfe { flex-wrap: wrap; justify-content: flex-start; }
.ma-abgleich { padding: 0 16px 12px; }
@media (min-width: 1040px) { .kasse-raster { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.umsatz-zahl { font: 700 44px/1.05 var(--schrift-gross); letter-spacing: -.02em; color: var(--gruen); padding: 2px 16px 12px; }
.kenn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 12px 16px 16px; border-top: 1px solid var(--linie); }
@media (min-width: 560px) { .kenn { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kenn dt { font-size: 13.5px; color: var(--text2); }
.kenn dd { font-weight: 700; font-size: 17px; }
.anteil { padding: 8px 16px; border-top: 1px solid var(--linie); }
.anteil-oben { display: flex; justify-content: space-between; gap: 12px; }
.anteil-oben b { font-weight: 700; }
.anteil-balken { height: 6px; margin-top: 5px; background: var(--gruen); border-radius: 2px; min-width: 3px; }
.summen { padding: 0 16px 12px; }
.summen div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.summen .gesamt { border-top: 1px solid var(--linie); font-weight: 700; margin-top: 4px; padding-top: 8px; }
.hinweisband { display: flex; gap: 9px; align-items: flex-start; padding: 12px 16px; border-radius: var(--rund-gross); background: var(--karte); color: var(--warn); font-weight: 600; margin-bottom: 14px; }
.hinweisband .ic { margin-top: 1px; }
.hinweisband ul { display: grid; gap: 4px; min-width: 0; }
.stapel > .hinweisband { margin-bottom: 0; }
.status-netz { display: grid; gap: 0; grid-template-columns: repeat(1, minmax(0, 1fr)); }
.status-netz > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--linie); }
.status-netz a { display: inline-block; padding: 12px 8px; margin: -12px -8px; }
.status-netz span:last-child { text-align: right; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }

/* Bon im Blatt */
.bon { background: var(--karte); padding: 4px 2px 18px; font-size: 14.5px; }
.bon-kopf { text-align: center; padding-bottom: 10px; }
.bon-kopf strong { display: block; font: 700 19px/1.2 var(--schrift-gross); }
.bon-linie { border: 0; border-top: 1px dashed var(--rand); margin: 10px 0; }
.bon-z { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; }
.bon-z span:last-child { flex: none; font-weight: 600; }
.bon-z.gross { font-weight: 700; font-size: 17px; }
.bon-z.rotzeile { color: var(--rot-schrift); font-weight: 650; }

/* ---------- Mitarbeiter ---------- */
.tabelle .sehr-breit { display: none; }
@media (min-width: 1500px) { .tabelle .sehr-breit { display: table-cell; } }
.bereich-marken { display: inline-flex; gap: 3px; }
.bm { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: var(--rund-klein); font-size: 12.5px; font-weight: 700; line-height: 1; }
.bm.kueche { background: var(--gruen); color: #fff; }
.bm.service { background: var(--dunkel); color: #fff; }
.bm.lieferung { background: var(--karte); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--dunkel); }
.abschnitt { padding: 16px 0; border-top: 1px solid var(--linie); display: grid; gap: 12px; }
.abschnitt:first-child { border-top: 0; padding-top: 4px; }
.abschnitt h3 { font-size: 15px; font-weight: 700; }

/* ---------- Schichtplan ---------- */
.raster-huelle { overflow-x: auto; overscroll-behavior-x: contain; }
.raster { display: grid; grid-template-columns: 58px repeat(7, minmax(100px, 1fr)); min-width: 758px; }
.r-kopf { padding: 9px 8px; border-bottom: 1px solid var(--linie); border-left: 1px solid var(--linie); line-height: 1.15; min-height: 54px; }
.r-kopf b { display: block; font: 650 15.5px/1.2 var(--schrift-gross); }
.r-kopf span { font-size: 13px; color: var(--text2); }
.r-kopf.heute { background: var(--gruen); color: #fff; }
.r-kopf.heute span { color: #fff; }
.r-kopf:first-child { border-left: 0; }
.r-feier { display: block; font-size: 12px; color: var(--warn); font-weight: 650; line-height: 1.2; }
.r-kopf.heute .r-feier { color: #fff; }
.r-schicht { padding: 9px 8px; border-bottom: 1px solid var(--linie); line-height: 1.2; }
.r-schicht b { display: block; font-weight: 700; }
.r-schicht span { font-size: 12.5px; color: var(--text2); }
.r-zelle { padding: 6px; border-bottom: 1px solid var(--linie); border-left: 1px solid var(--linie); display: flex; flex-direction: column; gap: 4px; min-height: 104px; min-width: 0; }
.r-zelle.heute { background: #FAFAFA; }
.raster > .r-letzte { border-bottom: 0; }
.r-zu { display: grid; place-items: center; text-align: center; color: var(--text2); font-size: 13px; background: var(--grund); }
.sch { display: flex; align-items: center; gap: 6px; min-height: 32px; width: 100%; padding: 3px 5px 3px 4px; border-radius: 5px; background: var(--grund); text-align: left; font-size: 14px; font-weight: 600; color: var(--text); transition: transform 120ms var(--kurve), background-color 120ms ease; }
.sch:active { transform: scale(.98); background: var(--flaeche-gedrueckt); }
.sch .name { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch.test { outline: 1px dashed var(--rand); outline-offset: -1px; }
.sch.warnt .ic { width: 15px; height: 15px; color: var(--warn); stroke-width: 2.2; }
.sch.sperrt .ic { color: var(--rot-schrift); }
.neu-sch { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 30px; border-radius: 5px; color: var(--gruen); font-size: 13.5px; font-weight: 650; margin-top: auto; box-shadow: inset 0 0 0 1px var(--linie); transition: transform 120ms var(--kurve), background-color 120ms ease; }
.neu-sch .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.neu-sch:active { transform: scale(.97); background: var(--flaeche-gedrueckt); }
@media (hover: hover) and (pointer: fine) { .sch:hover { background: var(--flaeche); } .neu-sch:hover { background: var(--gruen); color: #fff; box-shadow: none; } }
.legende { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 16px; border-top: 1px solid var(--linie); font-size: 13.5px; color: var(--text2); }
.legende > span { display: inline-flex; align-items: center; gap: 5px; }
.tageleiste { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; padding: 3px; background: var(--flaeche); border-radius: var(--rund); margin-bottom: 12px; }
.tageleiste button { display: grid; justify-items: center; gap: 0; min-height: 52px; padding: 5px 0; border-radius: 6px; color: var(--text); line-height: 1.15; }
.tageleiste button b { font-weight: 700; }
.tageleiste button span { font-size: 12.5px; }
.tageleiste button[aria-pressed="true"] { background: var(--gruen); color: #fff; }
.tageleiste button.heute:not([aria-pressed="true"]) { box-shadow: inset 0 0 0 1.5px var(--gruen); }
.tag-schicht { padding: 12px 14px 14px; border-top: 1px solid var(--linie); display: grid; gap: 8px; }
.tag-schicht:first-child { border-top: 0; }
.tag-schicht .sch { min-height: 46px; padding: 6px 10px; font-size: 15.5px; }
.tag-schicht .neu-sch { min-height: 44px; font-size: 15px; }
.std-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; padding: 2px 16px 12px; }
.std-liste > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--linie); min-width: 0; }
.std-liste span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.std-liste .ueber { color: var(--warn); font-weight: 700; }
.warnliste { display: grid; gap: 6px; }
.warnung { display: flex; gap: 7px; align-items: flex-start; color: var(--warn); font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.warnung .ic { width: 17px; height: 17px; margin-top: 1px; stroke-width: 2.2; }
.warnung.sperrt { color: var(--rot-schrift); }


/* Schichtplan: am Handy tageweise, ab Tablet das Raster */
.plan-woche { display: none; }
@media (min-width: 760px) { .plan-woche { display: block; } .plan-tag { display: none; } }

/* Kartei am Handy: zwei Zeilen statt Tabelle */
@media (max-width: 759.98px) {
  .ma-tabelle tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
  .ma-tabelle td, .ma-tabelle td:first-child, .ma-tabelle td:last-child { display: block; padding: 0; text-align: left; }
  .ma-tabelle td::before { display: none; }
  .ma-tabelle td.kopfzelle { grid-column: 1; padding: 0; }
  .ma-tabelle td.ma-pin { grid-column: 2; grid-row: 1; text-align: right; }
  .ma-tabelle td.ma-unter { grid-column: 1; grid-row: 2; color: var(--text2); font-size: 14px; }
  .ma-tabelle td.ma-bereiche { grid-column: 2; grid-row: 2; text-align: right; }
  .ma-tabelle td.nur-breit { display: none; }

  /* Zahlenzeilen am Handy: Name oben, Werte nebeneinander */
  .dicht tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 8px; }
  .tabelle.dicht td, .tabelle.dicht td.re, .tabelle.dicht td:first-child, .tabelle.dicht td:last-child { display: block; padding: 0; text-align: left; font-weight: 600; }
  .dicht td::before { display: block; font-size: 12.5px; font-weight: 500; }
  .tabelle.dicht td.kopfzelle, .tabelle.dicht td.ganz { grid-column: 1 / -1; font-weight: 400; }
  .dicht td.ganz::before { display: none; }
  .tabelle.dicht td.ganz:empty, .tabelle.dicht td.nur-breit { display: none; }
}

/* ---------- Zeit ---------- */
.zeit-person { padding: 12px 16px; border-top: 1px solid var(--linie); }
.zeit-person:first-child { border-top: 0; }
.zeit-kopf { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; width: 100%; text-align: left; color: var(--text); }
.zeit-kopf .wichtig strong { font-size: 16px; }
.sitzung { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; font-size: 14.5px; }
.sitzung b { font-weight: 700; }
.sitz-block { padding: 12px 0; border-top: 1px solid var(--linie); display: grid; gap: 8px; }
.sitz-block:first-child { border-top: 0; padding-top: 0; }
.stempel { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 6px 0; }
.stempel .art { color: var(--text2); font-size: 14px; }
.stempel .wann { font-weight: 700; font-size: 16px; }
.stempel .quelle { color: var(--text2); font-size: 13px; font-weight: 400; margin-left: 6px; }
.stempel .kn-reihe { display: flex; gap: 4px; }
.verlauf { grid-column: 1 / -1; margin: 2px 0 4px; padding: 6px 10px; background: var(--grund); border-radius: var(--rund-klein); font-size: 13.5px; display: grid; gap: 3px; }
.verlauf s { color: var(--text2); }
.verlauf-grund { font-weight: 600; }
.differenz-minus { color: var(--warn); font-weight: 700; }
.differenz-plus { color: var(--gruen); font-weight: 700; }
.export { white-space: nowrap; }

/* ---------- Urlaub ---------- */
.urlaub-raster { display: grid; gap: 16px; }
@media (min-width: 1040px) { .urlaub-raster { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: start; } }
.antrag { padding: 12px 16px; border-top: 1px solid var(--linie); display: grid; gap: 6px; }
.antrag:first-child { border-top: 0; }
.antrag .kopfzeile { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.antrag strong { font-weight: 650; font-size: 16px; }
.monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 8px 8px; }
.monat .wt { padding: 4px 6px; font-size: 13px; font-weight: 650; color: var(--text2); }
.monat .t { display: flex; flex-direction: column; gap: 3px; min-height: 76px; padding: 5px 4px; border-top: 1px solid var(--linie); text-align: left; min-width: 0; color: var(--text); }
.monat .t.aus { background: transparent; border-top-color: transparent; }
.t .nr { font-weight: 650; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.t.heute .nr span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; background: var(--gruen); color: #fff; border-radius: var(--rund-klein); }
.t.feiertag .nr span { color: var(--warn); font-weight: 800; }
.t.heute.feiertag .nr span { color: #fff; }
.t[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--gruen); border-radius: var(--rund-klein); }
.abw { font-size: 12.5px; font-weight: 650; line-height: 1.15; padding: 2px 4px; border-radius: 3px; background: var(--gruen); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abw.offen { background: var(--karte); color: var(--text); box-shadow: inset 0 0 0 1px var(--rand); }
.legende .abw { display: inline-block; }
.monat .anz { display: none; }
@media (max-width: 759.98px) {
  .monat { padding: 0 4px 6px; }
  .monat .t { min-height: 48px; align-items: stretch; }
  .monat .abw { display: none; }
  .monat .anz { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 3px; border-radius: 3px; background: var(--gruen); color: #fff; font-size: 12px; font-weight: 700; align-self: flex-start; }
  .monat .anz.nur-offen { background: var(--karte); color: var(--text); box-shadow: inset 0 0 0 1px var(--rand); }
}
.tag-detail { padding: 10px 16px 14px; border-top: 1px solid var(--linie); }

/* ---------- Produkte ---------- */
.pr-ansicht { margin-bottom: 10px; }
.pr-ansicht .schalter { display: inline-flex; }
.pr-bild { display: grid; place-items: center; width: 56px; height: 56px; padding: 3px; background: #fff; border: 1px solid var(--linie); border-radius: var(--rund); overflow: hidden; color: var(--text2); flex: none; }
.pr-bild img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pr-bild.aus img { opacity: .4; }
.pr-bild.gross { width: 128px; height: 128px; padding: 6px; }
.pr-bild.gross small { font-size: 13px; }
.pr-tabelle thead th:first-child { width: 72px; }
.pr-z-nr { width: 76px; font-weight: 650; white-space: nowrap; }
.pr-z-name .tag { margin-top: 3px; }
.pr-marken { display: flex; flex-wrap: wrap; gap: 0 4px; }
.pr-vgruppe { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--linie); border-radius: var(--rund); }
.pr-vgruppe .kn.klein { justify-self: start; }
.pr-vgruppe-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.pr-voptionen { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pr-voption { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; align-items: end; padding-top: 12px; border-top: 1px solid var(--linie); }
.pr-v-name { grid-column: 1 / -1; }
.pr-voption .haken { font-weight: 500; }
.pr-vknoepfe { display: flex; gap: 6px; justify-content: flex-end; }
.pr-z-status { width: 168px; }
.pr-preis { font-weight: 700; white-space: nowrap; }
.pr-plan { display: block; font-size: 13px; color: var(--text2); white-space: nowrap; }
.tabelle .pr-gruppe th { padding: 16px 16px 6px; background: var(--grund); color: var(--text); font-size: 14.5px; font-weight: 700; border-bottom: 1px solid var(--linie); }
.tabelle .pr-gruppe th span { color: var(--text2); font-weight: 600; }
.pr-schalter { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 2px; color: var(--text); }
.pr-schalter-text { min-width: 5.6em; text-align: right; font-size: 14px; font-weight: 600; }
.pr-schalter[aria-checked="false"] .pr-schalter-text { color: var(--warn); font-weight: 700; }
.pr-spur { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--rand); transition: background-color 140ms ease, transform 120ms var(--kurve); }
.pr-spur span { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(24, 32, 28, .3); transition: transform 160ms var(--kurve); }
.pr-schalter[aria-checked="true"] .pr-spur { background: var(--gruen); }
.pr-schalter[aria-checked="true"] .pr-spur span { transform: translateX(16px); }
.pr-schalter:active .pr-spur { transform: scale(.95); }
@media (max-width: 759.98px) {
  .pr-filter .suche { flex-basis: 100%; }
  .pr-filter select.ein { flex: 1 1 40%; min-width: 0; }
  .pr-tabelle tr { padding: 0; min-height: 0; }
  .pr-tabelle tr[data-act] { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 0 12px; align-items: center; padding: 10px 16px; }
  .pr-tabelle td, .pr-tabelle td:first-child, .pr-tabelle td:last-child { display: block; padding: 0; text-align: left; }
  .pr-tabelle td::before { display: none; }
  .pr-tabelle td.pr-z-bild { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .pr-tabelle td.pr-z-nr { display: none; }
  .pr-tabelle td.pr-z-name { grid-column: 2 / -1; grid-row: 1; }
  .pr-tabelle td.pr-z-preis { grid-column: 2; grid-row: 2; text-align: left; }
  .pr-tabelle td.pr-z-status { grid-column: 3; grid-row: 2; }
  .tabelle .pr-gruppe th { display: block; }
  .pr-schalter-text { min-width: 0; }
}
.pr-bildfeld { display: flex; gap: 14px; align-items: center; }
.pr-bildwahl { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.pr-bildwahl small { font-size: 13px; }
.pr-bildwahl .kn.still { padding: 0; min-height: 36px; }
label.pr-datei { position: relative; cursor: pointer; }
label.pr-datei input { position: absolute; width: 1px; height: 1px; opacity: 0; }
label.pr-datei:has(input:focus-visible) { outline: 2px solid var(--gruen); outline-offset: 2px; }
.pr-hilfe { margin-top: -6px; }
.pr-steuer .wahl { flex: 1 1 0; padding: 0 6px; }
.pr-allergene { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pr-allergene label.wahl { justify-content: flex-start; padding: 0 10px; }
.pr-allergene b { min-width: 1.3em; color: var(--text2); font-weight: 700; }
.pr-allergene label.wahl:has(input:checked) b { color: #fff; }
.pr-geplant { display: grid; gap: 8px; }
.pr-geplant small { font-size: 13px; }
.pr-geplant-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--grund); border-radius: var(--rund); font-weight: 600; }
.pr-geplant-zeile small { display: block; color: var(--text2); font-weight: 400; }
/* Der Rumpf hat unten Innenabstand, ohne Ausgleich schaut dort Inhalt unter dem Knopf hervor */
.pr-fuss { position: sticky; bottom: calc(-18px - var(--unten)); z-index: 1; display: grid; gap: 8px; margin: 0 -16px; padding: 10px 16px calc(10px + var(--unten)); background: var(--karte); border-top: 1px solid var(--linie); }
.pr-kat { display: flex; align-items: center; gap: 8px; padding-right: 12px; }
.pr-kat-text { flex: 1; min-width: 0; display: grid; gap: 1px; min-height: 60px; padding: 10px 4px 10px 16px; text-align: left; color: var(--text); }
.pr-kat-text strong { font-weight: 650; }
.pr-kat-text > span { color: var(--text2); font-size: 14px; }
.pr-kat-folge { display: flex; gap: 6px; flex: none; }
.pr-kat-text:active { background: var(--flaeche); }
.pr-weg { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 12px 16px; }
@media (max-width: 559.98px) { .pr-weg .kn { grid-column: 2 / -1; justify-self: start; } }
@media (hover: hover) and (pointer: fine) { .pr-kat-text:hover { background: #F7F7F7; } }
@media (min-width: 900px) { .pr-fuss { bottom: -24px; margin: 0 -20px; padding: 12px 20px; } }

/* ---------- Mehr ---------- */
.mehr-gruppe { overflow: hidden; }
.mehr-block h2 { margin-bottom: 6px; font-size: 15px; color: var(--text2); }

/* ---------- Blatt und Rückfrage ---------- */
dialog { color: var(--text); }
.blatt { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; height: auto; max-height: calc(100dvh - var(--oben) - 32px); margin: 0; padding: 0; border: 0; background: var(--karte); border-radius: 14px 14px 0 0; box-shadow: var(--schatten-blatt); overflow: hidden; flex-direction: column; transform: translateY(100%); transition: transform 280ms var(--kurve-blatt), display 280ms allow-discrete, overlay 280ms allow-discrete; }
.blatt[open] { display: flex; transform: translateY(0); }
.blatt.weg { transform: translateY(100%); }
@starting-style { .blatt[open] { transform: translateY(100%); } }
.blatt::backdrop { background: rgba(20, 28, 24, .44); opacity: 1; transition: opacity 240ms ease, display 240ms allow-discrete, overlay 240ms allow-discrete; }
@starting-style { .blatt[open]::backdrop { opacity: 0; } }
.blatt.weg::backdrop { opacity: 0; }
.griff { display: flex; justify-content: center; padding: 8px 0 2px; touch-action: none; cursor: grab; }
.griff span { width: 38px; height: 4px; border-radius: 2px; background: var(--rand); }
.blatt-kopf { display: flex; align-items: center; gap: 6px; padding: 4px 8px 8px 16px; touch-action: none; border-bottom: 1px solid var(--linie); }
.blatt-kopf h2 { font: 650 19px/1.2 var(--schrift-gross); margin-right: auto; min-width: 0; overflow-wrap: anywhere; }
.blatt-kopf .ring { flex: none; border-color: transparent; background: transparent; }
.blatt-rumpf { padding: 14px 16px calc(var(--unten) + 18px); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 12px; align-content: start; -webkit-overflow-scrolling: touch; }
.blatt-fuss { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.blatt-fuss .kn { flex: 1 1 auto; }
@media (min-width: 900px) {
  .blatt { inset: 0 0 0 auto; width: 500px; height: 100dvh; max-height: none; border-radius: 0; transform: translateX(100%); }
  .blatt[open] { transform: translateX(0); }
  .blatt.weg { transform: translateX(100%); }
  @starting-style { .blatt[open] { transform: translateX(100%); } }
  .griff { display: none; }
  .blatt-kopf { padding: 14px 10px 10px 20px; }
  .blatt-rumpf { padding: 18px 20px 24px; }
  .blatt-rumpf > .reiter { top: -18px; margin: -18px -20px 2px; padding: 0 20px; }
}

.frage { width: min(420px, calc(100vw - 32px)); margin: auto; padding: 18px; border: 0; border-radius: var(--rund-gross); background: var(--karte); box-shadow: var(--schatten-blatt); }
.frage::backdrop { background: rgba(20, 28, 24, .5); }
.frage h2 { font: 650 19px/1.25 var(--schrift-gross); margin-bottom: 6px; }
.frage p { color: var(--text2); margin-bottom: 12px; }
.frage form { display: grid; gap: 12px; }
.frage-fuss { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.frage-fuss .kn { flex: 1 1 auto; }

/* ---------- Meldungen ---------- */
.meldungen { position: fixed; inset: auto auto calc(var(--tab-hoehe) + var(--unten) + 14px) 50%; transform: translateX(-50%); margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; display: none; width: min(92vw, 440px); pointer-events: none; }
.meldungen:popover-open { display: grid; gap: 6px; justify-items: center; }
.meldung { padding: 10px 14px; border-radius: var(--rund); background: var(--dunkel); color: #fff; font-weight: 600; box-shadow: var(--schatten-blatt); transition: opacity 200ms ease, transform 200ms var(--kurve); }
.meldung.ok { background: var(--gruen); }
.meldung.fehler { background: var(--rot); }
.meldung.warn { background: var(--warn); }
@starting-style { .meldung { opacity: 0; transform: translateY(8px); } }
.meldung.geht { opacity: 0; }
@media (min-width: 900px) { .meldungen { bottom: 22px; left: calc(50% + 118px); } }

@media (prefers-reduced-motion: reduce) {
  .blatt, .blatt.weg, .blatt[open] { transform: none; transition: opacity 160ms ease, display 160ms allow-discrete, overlay 160ms allow-discrete; opacity: 1; }
  .blatt.weg { opacity: 0; }
  @starting-style { .blatt[open] { transform: none; opacity: 0; } }
  .kn:active:not(:disabled), label.wahl:active, .sch:active, .neu-sch:active, .schalter button:active, .pr-schalter:active .pr-spur { transform: none; }
  .pr-spur span { transition: none; }
  .tab:active .ic { transform: none; }
  .sk { animation: none; }
  .meldung { transition: opacity 160ms ease; }
  @starting-style { .meldung { transform: none; } }
}

/* ---------- Webshop ---------- */
.ws-schalterliste { display: grid; padding: 0 16px; }
.ws-schalter { display: flex; width: 100%; justify-content: space-between; gap: 14px; min-height: 58px; text-align: left; border-top: 1px solid var(--linie); }
.ws-schalter-text { display: grid; min-width: 0; }
.ws-schalter-text small { color: var(--text2); font-size: 13.5px; font-weight: 400; }
section.karte > .ws-schalter { padding: 8px 16px; border-top: 0; }
.ws-pause { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--linie); }
.ws-gebiete { display: grid; gap: 14px; }
.ws-gebiet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; padding-bottom: 14px; border-bottom: 1px solid var(--linie); }
.ws-gebiet:last-child { border-bottom: 0; padding-bottom: 0; }
.ws-beispiel { justify-self: start; align-self: center; }
.ws-werte { display: grid; gap: 12px; }
.ws-zeiten { display: grid; gap: 12px; }
.ws-tag { display: grid; gap: 6px; }
.ws-fenster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ws-stoerungen { border: 1px solid var(--rot); }
.ws-stoerung { display: grid; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--linie); }
.ws-stoerung .wichtig { display: grid; gap: 2px; }
@media (min-width: 900px) {
  .ws-gebiet { grid-template-columns: 110px minmax(0, 1fr) 130px 150px 44px 104px; border-bottom: 0; padding-bottom: 0; }
  .ws-werte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-tag { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; }
  .ws-stoerung { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

/* ---------- Portal in der Zentrale: Verfügbarkeit im Plan, Stundenkonto, Dokumente, Protokoll ---------- */
.vf-plan { display: grid; gap: 2px; font-size: 12.5px; line-height: 1.25; }
.vf-plan b { font-weight: 700; }
.vf-kann { color: var(--gruen-gedrueckt); }
.vf-nicht { color: var(--text2); }
.tag-schicht .vf-plan { font-size: 14px; }
.konto-monat { justify-content: space-between; }
.konto-monat strong { flex: 1; }
.konto-summen { padding: 0; }
.proto { display: grid; gap: 8px; font-size: 14px; }
.proto li { display: grid; gap: 1px; overflow-wrap: anywhere; }
.proto .leise { font-size: 13px; }
.dok-liste { overflow: hidden; }
.dok-zeile { display: flex; align-items: center; gap: 8px; padding-right: 10px; }
.dok-kn { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 56px; padding: 8px 4px 8px 14px; text-align: left; color: var(--text); }
.dok-kn:active { background: var(--flaeche); }
.dok-zeile .kn.klein { padding: 0; width: 44px; flex: none; }
@media (hover: hover) and (pointer: fine) { .dok-kn:hover { background: #F7F7F7; } }
.konten-hilfe { padding: 8px 16px 12px; border-top: 1px solid var(--linie); }
.konten .warnung { font-size: 13.5px; }
@media (max-width: 479.98px) { .schalter { flex-wrap: wrap; } }

/* ---------- Einstellungen: Unternavigation ---------- */
.einst { display: grid; gap: 14px; min-width: 0; }
.einst-nav { display: none; }
.einst-inhalt { min-width: 0; }
.einst-gruppe { display: grid; gap: 1px; }
.einst-titel { padding: 0 10px 3px; font-size: 12.5px; font-weight: 650; color: var(--text2); }
.einst-nav button { display: block; width: 100%; min-height: 36px; padding: 0 10px; border-radius: var(--rund); text-align: left; font-size: 14.5px; font-weight: 550; color: var(--text); }
.einst-nav button:active { background: var(--flaeche-gedrueckt); }
.einst-nav button[aria-pressed="true"] { background: var(--karte); color: var(--gruen-gedrueckt); font-weight: 650; }
@media (hover: hover) and (pointer: fine) { .einst-nav button:not([aria-pressed="true"]):hover { background: var(--flaeche); } }
@media (min-width: 900px) {
  .einst { grid-template-columns: 196px minmax(0, 1fr); gap: 28px; align-items: start; }
  .einst-nav { display: grid; gap: 16px; position: sticky; top: 24px; margin-left: -10px; }
  .einst-wahl { display: none; }
}

/* Stationen: eine Zeile je Drucker, wenn der Platz reicht */
.st-form { display: grid; gap: 12px; }
@media (min-width: 1160px) {
  .st-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 84px auto auto; align-items: end; gap: 10px 12px; }
  .st-form.st-bon { grid-template-columns: minmax(0, 1fr) 84px auto auto; }
  .st-form .reihe-2 { display: contents; }
  .st-form h3, .st-form .formfehler { grid-column: 1 / -1; }
  .st-form .blatt-fuss { padding-top: 0; }
}

/* Kategorien: Name und Station in einer Zeile */
.kat-feld { grid-template-columns: minmax(0, 1fr) minmax(130px, 200px); align-items: center; gap: 10px; }
.kat-feld > span { font-size: 15px; font-weight: 600; }

/* Geräte: Freigabe-Code zum Abtippen */
.geraet-code { font: 700 34px/1.1 var(--schrift-gross); letter-spacing: .06em; font-variant-numeric: tabular-nums; text-align: center; padding: 14px 8px; background: var(--grund); border-radius: var(--rund-klein); user-select: all; -webkit-user-select: all; }
.antrag .kn-reihe { display: flex; flex-wrap: wrap; gap: 8px; }

/* Belege */
.beleg-bon { padding: 12px; border: 1px solid var(--linie); border-radius: var(--rund); background: #fff; color: var(--text); font: 12.5px/1.45 ui-monospace, Menlo, Consolas, monospace; overflow-x: auto; }
.beleg-bon .bz { white-space: pre-wrap; word-break: break-all; }
.beleg-bon .mitte { text-align: center; }
.beleg-bon .fett { font-weight: 700; }

/* Tischplan in den Einstellungen */
.tp { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .tp { grid-template-columns: minmax(0, 1fr) 300px; } }
.tp-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-plan { position: relative; width: 100%; max-width: 680px; aspect-ratio: 1; margin-inline: auto; background: var(--plan); border-radius: var(--rund); overflow: hidden; }
.tp-el { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0; border: 1px solid var(--rand); border-radius: var(--rund-klein); background: var(--karte); color: var(--text); font-weight: 650; font-size: 14px; line-height: 1.1; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; overflow: hidden; }
.tp-el::after { content: ''; position: absolute; inset: -4px; }
.tp-el small { font-size: 11.5px; font-weight: 550; color: var(--text2); }
.tp-el.rund { border-radius: 50%; }
.tp-el.deko { background: var(--flaeche); border-style: dashed; color: var(--text2); font-weight: 550; font-size: 12.5px; }
.tp-el.offen { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.tp-el.offen small { color: #fff; }
.tp-el.zieht { cursor: grabbing; z-index: 2; outline: 2px solid var(--gruen); outline-offset: 1px; box-shadow: var(--schatten-blatt); }
.tp-el:focus-visible { outline: 2px solid var(--gruen); outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) { .tp-el:not(.offen):not(.deko):hover { background: var(--flaeche); } }

/* Storno-Bericht */
@media (min-width: 1040px) { .storno-raster { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.zeilen-text { font-weight: 600; }
.zeilen-text small { display: block; font-weight: 450; color: var(--text2); }

/* Kasse-Verwaltung: Gutscheine, Kunden, Erstattung, Tagesabschluss */
.kunde-tel { display: inline-flex; align-items: center; min-height: 44px; }
.gs-code { font-variant-numeric: tabular-nums; letter-spacing: .02em; overflow-wrap: anywhere; }
.gs-gross { font-size: 28px; overflow-wrap: anywhere; }
.blatt-rumpf .summen.gs-summen, .blatt-rumpf .summen.ab-summen, .blatt-rumpf .summen.er-summe { padding: 0; }
.blatt-rumpf .liste { margin: 0 -16px; }
.gs-treffer { border: 1px solid var(--linie); border-radius: var(--rund); overflow: hidden; }
.blatt-rumpf .gs-treffer { margin: 0; }
label.wahl:has(input:disabled) { background: var(--flaeche); border-color: var(--flaeche); color: var(--text2); cursor: default; }
.er-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linie); }
.er-zeile:first-child { border-top: 0; }
.er-name { min-width: 0; }
.er-name small { display: block; color: var(--text2); font-size: 13.5px; }
.er-menge { display: flex; align-items: center; gap: 6px; flex: none; }
.er-menge b { min-width: 2ch; text-align: center; font-size: 17px; }
.zaehl-raster { display: grid; gap: 10px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .zaehl-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ab-warn { display: grid; gap: 10px; justify-items: start; padding-top: 14px; }
@media (min-width: 900px) { .blatt-rumpf .liste { margin: 0 -20px; } .blatt-rumpf .gs-treffer { margin: 0; } }
