/* Hallmark · checked: 2026-11-12 · genre: modern-minimal (inferred) · shape: app screen · scope: app · theme: brand (Windows 11 Fluent, kept by the owner; Apple Liquid Glass stays selectable) · deal: manual · signature: the shift grid, shifts as calendar events in their template's colour · surface: absolute · posture: restrained · built: the project · redesign: restyle · sweep: browser only, sloplint not run (no Node on this machine) · v2.0.0
 * Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · weakest: V, a restyle keeps every screen's layout by request, so the structure repeats the last build; the change lives in tokens, controls and states
 * Hallmark · waive 3 · the shift grid colours each event's 3px edge by its shift template, the way the owner reads Früh, Mittag and Abend at a glance
 * Hallmark · waive 29 · the Apple design the owner chose needs soft colour behind its glass bars; three fixed blooms, no purple, never animated
 * Hallmark · refract · theme: refract (by request, third design beside Windows and Apple) · redesign: restyle · refract: water/pool · signature: the sidebar lies in moving pool light, its clear panels casting a water-tinted shadow · sweep: browser only, sloplint not run (no Node)
 * Hallmark · waive 29 (refract) · the light is a generated canvas, as the theme asks; it stays in the sidebar, never under running text, and holds one frame under reduced motion
 * Hallmark · karma · theme: brand, shapes from the owner's Karma Food dashboard (tiles not glass, keys set in a seam, small radii, the clock as a dark instrument) with the colours, type and spacing of the earlier Karma Food Glass (white, petrol ink, Karma orange for the selection, Geist, the Karma Food logo) · default design · redesign: restyle · signature: the nav as a key row in a seam with the orange selected key, and the time clock as a dark instrument · sweep: browser only
 * Hallmark · waive 29 (karma, dark only) · the design system's own silver gradient behind the graphite glass; fixed, never animated
 * Hallmark · answered F4 · the clock dialog fills Kommen, Pause and Gehen in their status colours because each is the dialog's one action for its state
 */

/* ---------- Rahmen der App ---------- */
body { height: 100dvh; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
body.solo { display: flex; flex-direction: column; }
body.solo .work { flex: 1; margin: 0; border: 0; border-radius: 0; }

/* Navigation */
.side { display: flex; flex-direction: column; min-height: 0; background: var(--glass); padding: var(--space-sm) var(--space-xs) var(--space-xs); }
.side-head { display: flex; align-items: center; gap: var(--space-xs); padding: 0 var(--space-xs) var(--space-md); min-width: 0; }
.mark { width: 30px; height: 30px; flex: none; display: block; }
.mark svg { width: 100%; height: 100%; display: block; stroke: none; }
.mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.side-name { font-family: var(--font-display); font-weight: var(--weight-strong); font-size: var(--text-sm); line-height: 1.2; }
.side-id { min-width: 0; }
.side-scope { color: var(--muted); font-size: var(--text-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; flex-direction: column; gap: var(--space-3xs); flex: 1; min-height: 0; overflow-y: auto; }
.nav button { position: relative; display: flex; align-items: center; gap: var(--space-sm); width: 100%; min-height: 36px; padding: var(--space-xs) var(--space-sm); border: 0; border-radius: var(--radius-ctl); background: none; color: var(--text); text-align: left; font-size: var(--text-sm); transition: background-color var(--dur-micro) var(--ease-out); }
.nav button svg { width: 18px; height: 18px; flex: none; color: var(--text); }
.nav button:hover { background: var(--fill); }
.nav button:active { background: var(--fill-h); }
.nav button.active { background: var(--fill-h); }
.nav button.active svg { color: var(--accent); }
.nav button.active::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: var(--radius-pill); background: var(--accent); }
.nav .nav-more, .nav .ls { display: none; }
.nav .nav-more.alert svg { color: var(--neg); }
.side-foot { display: flex; flex-direction: column; gap: var(--space-3xs); padding-top: var(--space-xs); }
.foot-btn { display: flex; align-items: center; gap: var(--space-sm); width: 100%; min-height: 36px; padding: var(--space-xs) var(--space-sm); border: 0; border-radius: var(--radius-ctl); background: none; color: var(--muted); text-align: left; font-size: var(--text-xs); transition: background-color var(--dur-micro) var(--ease-out); }
.foot-btn svg { width: 16px; height: 16px; flex: none; }
.foot-btn:hover { background: var(--fill); }
.foot-btn:active { background: var(--fill-h); }
.foot-btn.on svg { color: var(--pos); }
.foot-btn.warn { color: var(--neg); }

/* Inhaltsebene: unter Windows eine Fläche mit runder Ecke oben links */
.work { display: flex; flex-direction: column; min-width: 0; min-height: 0; margin-top: var(--space-xs); background: var(--raised); border: solid var(--line); border-width: var(--rule-hair) 0 0 var(--rule-hair); border-top-left-radius: var(--radius-card); overflow: hidden; }

/* Titelzeile */
.toolbar { flex: none; position: relative; z-index: var(--z-sticky-nav); display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-lg); background: var(--glass); border-bottom: var(--rule-hair) solid var(--line); }
.tb-mark { display: none; }
.tb-left { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); }
.tb-mid { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-xs); }
.tb-right { display: flex; gap: var(--space-xs); }
.pt, .month-nav h1 { font-size: var(--text-lg); line-height: 1.2; white-space: nowrap; }
.month-nav { display: flex; align-items: center; gap: var(--space-2xs); }
.month-nav h1 { margin: 0 var(--space-2xs); min-width: 0; }

/* Hinweis neben dem Titel: weiße Fläche, Schrift wie das Auswahlfeld daneben */
.tb-note { margin: 0; padding: var(--space-2xs) var(--space-sm); min-height: var(--ctl); display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 var(--space-xs); border: var(--rule-hair) solid var(--line); border-radius: var(--radius-ctl); background: var(--bg); color: var(--text); font-size: var(--text-sm); box-shadow: var(--sh-1); }
.tb-note.alert { color: var(--neg-ink); }
.tb-note b { color: var(--accent-ink); font-weight: var(--weight-strong); }
.tb-note button { border: 0; background: none; padding: 0; color: var(--accent); font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tb-note .sm { display: none; }

main { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom); }

/* ---------- Bedienelemente ---------- */
.tbtn, .arrow, .x { width: var(--ctl); height: var(--ctl); border: 0; border-radius: var(--radius-ctl); background: transparent; color: var(--text); display: grid; place-items: center; flex: none; transition: background-color var(--dur-micro) var(--ease-out); }
.tbtn svg, .arrow svg { width: 18px; height: 18px; }
.x svg { width: 14px; height: 14px; }
.tbtn:hover, .arrow:hover, .x:hover { background: var(--fill); }
.tbtn:active, .arrow:active, .x:active { background: var(--fill-h); }
.btn, .todaybtn, .stampsel, .chip { min-height: var(--ctl); border: var(--rule-hair) solid var(--line); border-bottom-color: var(--edge); border-radius: var(--radius-ctl); background: var(--lens); color: var(--text); font-size: var(--text-sm); transition: background-color var(--dur-micro) var(--ease-out); }
.btn, .todaybtn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-sm); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover, .todaybtn:hover, .chip:hover, .stampsel:hover { background: var(--ctl-h); }
.btn:active, .todaybtn:active, .chip:active { background: var(--fill-h); }
.btn.primary { background: var(--accent); border-color: transparent; border-bottom-color: var(--edge); color: var(--accent-text); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 90%, var(--wall)); }
.btn.primary:active { background: color-mix(in srgb, var(--accent) 80%, var(--wall)); }
.btn.danger { color: var(--neg); }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.todaybtn { margin-left: var(--space-2xs); }
.stampsel { height: var(--ctl); padding: 0 var(--space-xs); max-width: 220px; }
.chip { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-sm); white-space: nowrap; }
.chip .d { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip .d.shift, .lst .it .sw.shift { background: var(--green); }
.chip.danger { color: var(--neg); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: var(--space-2xs) 0 var(--space-md); }
.row { display: flex; gap: var(--space-xs); flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: var(--text-xs); }
.hint { font-size: var(--text-xs); color: var(--muted); margin: var(--space-xs) 0; max-width: var(--measure); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.mt { margin-top: var(--space-sm); }
.flush { margin-top: 0; }
.gap-b { margin-bottom: var(--space-sm); }

/* Felder: gleichbleibender Rand, Fokus als Linie unten, ohne Breitenwechsel */
.field { display: flex; flex-direction: column; gap: var(--space-2xs); margin-bottom: var(--space-sm); min-width: 0; }
.field > span { font-size: var(--text-sm); }
.field input:not([type=checkbox]), .field select, .field textarea, .pe select, .pe input[type=time], .ck-q, .staff-search input, .saldi input.box, .details .tbl input, .thm-c input[type=number], .loc-name {
  min-height: var(--ctl); padding: var(--space-2xs) var(--space-xs); border: var(--rule-hair) solid var(--line); border-bottom-color: var(--control); border-radius: var(--radius-field); background: var(--lens); color: var(--text);
}
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .pe select:focus-visible, .pe input:focus-visible, .ck-q:focus-visible, .staff-search input:focus-visible, .saldi input.box:focus-visible, .details .tbl input:focus-visible, .thm-c input:focus-visible, .loc-name:focus-visible { outline: 0; background: var(--bg); box-shadow: inset 0 -2px 0 var(--accent); }
.field input[type=color] { padding: var(--space-3xs); height: var(--ctl); }
.field textarea { min-height: 72px; resize: vertical; }
.field-err { color: var(--neg); font-size: var(--text-xs); margin: 0 0 var(--space-sm); min-height: 1lh; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--space-sm); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-sm); }
.weekdays { display: flex; gap: var(--space-2xs); flex-wrap: wrap; }
.weekdays label { display: inline-flex; }
.weekdays input { position: absolute; opacity: 0; pointer-events: none; }
.weekdays span { min-width: 36px; height: var(--ctl); display: grid; place-items: center; padding: 0 var(--space-xs); border: var(--rule-hair) solid var(--line); border-radius: var(--radius-ctl); background: var(--lens); cursor: pointer; font-size: var(--text-xs); }
.weekdays input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.weekdays input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.toggle { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 40px; height: 20px; margin: var(--space-xs) 0; border: var(--rule-hair) solid var(--control); border-radius: var(--radius-pill); background: var(--lens); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.toggle::before { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: var(--radius-pill); background: var(--muted); transition: transform var(--dur-short) var(--ease-out); }
.toggle:checked { background: var(--accent); border-color: var(--accent); }
.toggle:checked::before { background: var(--accent-text); transform: translateX(20px); }
.seg, .ptabs { display: inline-flex; gap: var(--space-2xs); }
.seg button, .ptabs button { min-height: var(--ctl); padding: var(--space-2xs) var(--space-sm); border: 0; border-radius: var(--radius-ctl); background: none; color: var(--muted); font-size: var(--text-sm); white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out); }
.seg button:hover, .ptabs button:hover { background: var(--fill); color: var(--text); }
.seg button:active, .ptabs button:active { background: var(--fill-h); }
.seg button.active, .ptabs button.active { color: var(--text); font-weight: var(--weight-strong); box-shadow: inset 0 -3px 0 var(--accent); }
details.more { margin: var(--space-xs) 0 var(--space-2xs); }
details.more > summary { cursor: pointer; color: var(--accent); padding: var(--space-xs) 0; list-style-position: inside; }
details.more form { padding-top: var(--space-xs); }

/* ---------- Flächen ---------- */
.page { width: 100%; max-width: 1100px; margin-inline: auto; padding: var(--space-lg); }
.card { background: var(--glass-solid); border: var(--rule-hair) solid var(--line); border-radius: var(--radius-card); padding: var(--space-md); box-shadow: var(--shadow-card); }
.card + .card { margin-top: var(--space-xs); }
.card h2, .details h2.dh2 { font-size: var(--text-md); margin: 0 0 var(--space-sm); }
.card h3 { font-size: var(--text-sm); margin: 0 0 var(--space-xs); }
.sec-title { font-size: var(--text-sm); font-weight: var(--weight-strong); margin: var(--space-md) 0 var(--space-2xs); }
.sec-title.first { margin-top: 0; }
/* Listen: Trennlinien statt eigener Karte, damit nie eine Karte in einer Karte steht */
.lst { margin-bottom: var(--space-xs); border-top: var(--rule-hair) solid var(--line); border-bottom: var(--rule-hair) solid var(--line); }
.lst .it { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-2xs); border-top: var(--rule-hair) solid var(--rule); }
.lst .it:first-child { border-top: 0; }
.lst .it .sw { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lst .it .b { flex: 1; min-width: 0; }
.empty-note { padding: var(--space-sm); }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: var(--space-xs); border-top: var(--rule-hair) solid var(--rule); text-align: left; }
.tbl th { font-size: var(--text-xs); font-weight: var(--weight-strong); border-top: 0; }
.tbl .num { text-align: right; }
.tbl.narrow { max-width: 640px; }
.tbl.narrow.s { max-width: 520px; }
.w-num { width: 80px; }
.table-wrap { overflow-x: auto; }
.table-note { padding: 0 var(--space-md) var(--space-md); }
.help-list { padding-left: var(--space-md); margin: 0; }
.help-list li + li { margin-top: var(--space-xs); }

/* ---------- Dienstplan-Raster ---------- */
.legend { position: sticky; left: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); padding: var(--space-xs) var(--space-lg); font-size: var(--text-xs); color: var(--muted); width: fit-content; max-width: 100%; }
.legend:empty { display: none; }
.legend span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.legend i { width: 18px; height: 12px; border-radius: var(--space-3xs); display: inline-block; }
.head-glass { display: none; }
.grid { border-collapse: separate; border-spacing: 0; background: var(--bg); }
.grid th, .grid td { padding: 0; }
.grid th.c-name { text-align: left; font-weight: inherit; }
.grid thead th { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--bg); }
.grid .c-name { position: sticky; left: 0; z-index: var(--z-raised); background: var(--bg); width: var(--name-w); min-width: var(--name-w); max-width: var(--name-w); border-right: var(--rule-hair) solid var(--line); }
.grid thead .c-name { z-index: var(--z-sticky-nav); }
.dh { width: var(--col-w); min-width: var(--col-w); max-width: var(--col-w); text-align: center; font-size: var(--text-xs); color: var(--muted); padding: var(--space-xs) 0 var(--space-2xs) !important; border-left: var(--rule-hair) solid var(--rule); border-bottom: var(--rule-hair) solid var(--line); line-height: 1.25; scroll-margin-left: calc(var(--name-w) + var(--space-sm)); }
.dh small { display: block; width: fit-content; margin: var(--space-3xs) auto 0; padding: 0 var(--space-xs); border-radius: var(--radius-ctl); font-weight: var(--weight-strong); font-size: var(--text-xs); color: var(--text); }
.grid thead .dh.we, .grid thead .lane-c.we { background: var(--ground); }
.dh.today { color: var(--accent); font-weight: var(--weight-strong); }
.dh.today small { background: var(--accent); color: var(--accent-text); }
.dh .hol { display: block; font-size: var(--text-xs); color: var(--warn); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: var(--space-3xs) var(--space-3xs) 0; }
.tot td { text-align: center; font-size: var(--text-xs); color: var(--muted); padding: var(--space-2xs) 0 !important; border-left: var(--rule-hair) solid var(--rule); border-bottom: var(--rule-hair) solid var(--line); background: var(--bg); }
.tot .c-name { text-align: left; padding: 0 !important; }
.tot td.cur { color: var(--today); font-weight: var(--weight-strong); }
.zr { color: var(--muted); }
.corner { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-xs); }
.corner .tbtn { width: 30px; height: 30px; }
.corner .tbtn svg { width: 15px; height: 15px; }

/* Kalenderwochen: Abstand zwischen den Wochen, einklappbar */
.wk-start { border-left: var(--wk-gap) solid var(--ground) !important; }
.dh.wk-start { width: calc(var(--col-w) + var(--wk-gap)); min-width: calc(var(--col-w) + var(--wk-gap)); max-width: calc(var(--col-w) + var(--wk-gap)); }
.wkrow th { height: 28px; border-bottom: var(--rule-hair) solid var(--rule); }
.wkh { text-align: left; font-weight: var(--weight-strong); font-size: var(--text-xs); cursor: pointer; white-space: nowrap; }
.wkh:hover { background: var(--fill) !important; }
.wkl { position: sticky; left: calc(var(--name-w) + var(--space-xs)); display: inline-flex; align-items: center; gap: var(--space-2xs); padding: 0 var(--space-xs); color: var(--accent); }
.wkl svg { width: 12px; height: 12px; stroke-width: 2.6; transform: rotate(90deg); transition: transform var(--dur-short) var(--ease-out); flex: none; }
.wkh.closed .wkl { padding: 0 var(--space-3xs) 0 var(--space-2xs); gap: var(--space-3xs); }
.wkh.closed .wkl svg { transform: none; }
.wkl small { font-weight: 400; font-size: var(--text-xs); color: var(--muted); margin-left: var(--space-2xs); }
.wk-all { border: 0; background: none; color: var(--accent); font-size: var(--text-xs); padding: var(--space-2xs) var(--space-md); width: 100%; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-all:hover { background: var(--fill); }
.wk-h { vertical-align: middle; }
.wkc { text-align: center; font-weight: var(--weight-strong); font-size: var(--text-xs); background: var(--ground); color: var(--text); }

/* Filialen: Abstand, Band in ihrer Farbe, Farbkante an jeder Person; das Band bleibt beim Scrollen stehen */
.grp-gap td { height: var(--space-md); background: var(--ground); padding: 0; }
.grp th, .grp td { position: sticky; top: var(--head-h, 0); padding: 0 !important; border-top: var(--rule-hair) solid color-mix(in srgb, var(--c) 45%, var(--bg)); border-bottom: var(--rule-hair) solid color-mix(in srgb, var(--c) 45%, var(--bg)); background: color-mix(in srgb, var(--c) 20%, var(--bg)) !important; }
.grp td { z-index: var(--z-raised); }
.grid tbody .grp th.c-name { z-index: calc(var(--z-raised) + 1); border-right: 0; box-shadow: inset 4px 0 0 var(--c); }
.grp-band { display: flex; align-items: center; gap: var(--space-xs); min-height: 36px; padding: var(--space-2xs) var(--space-xs) var(--space-2xs) var(--space-md); font-weight: var(--weight-strong); font-size: var(--text-sm); cursor: pointer; white-space: nowrap; overflow: hidden; color: color-mix(in srgb, var(--c) 42%, var(--text)); }
.grp-band > span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.grp-band .tg { width: 18px; height: 18px; display: grid; place-items: center; flex: none; color: var(--text); }
.grp-band .tg svg { width: 13px; height: 13px; stroke-width: 2.6; transform: rotate(90deg); transition: transform var(--dur-short) var(--ease-out); }
.grp.closed .tg svg { transform: none; }
.grp-info { position: sticky; left: calc(var(--name-w) + var(--space-sm)); display: inline-block; padding-left: var(--space-sm); font-size: var(--text-xs); color: color-mix(in srgb, var(--c) 35%, var(--text)); white-space: nowrap; }
.gm th.c-name { box-shadow: inset 4px 0 0 var(--c); }

/* Personen */
.emp { display: flex; align-items: center; gap: var(--space-xs); padding: 0 var(--space-xs) 0 var(--space-md); height: var(--row-h); border-bottom: var(--rule-hair) solid var(--rule); cursor: pointer; }
.emp:hover { background: var(--fill); }
.av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-weight: var(--weight-strong); font-size: var(--text-xs); background-size: cover; background-position: center; background-color: hsl(var(--h, 210) var(--av-s) var(--av-l)); color: var(--on-fill); }
.emp .info { flex: 1; min-width: 0; }
.emp .top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-xs); }
.emp .nm { font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emp .sub { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Felder im Raster */
.cell { border-left: var(--rule-hair) solid var(--rule); border-bottom: var(--rule-hair) solid var(--rule); height: var(--row-h); vertical-align: middle; cursor: pointer; position: relative; background: var(--bg); }
.cell.we { background: var(--ground); }
.cell.today { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.cell:hover { background: var(--fill-h); }
.cell.static { cursor: default; }
.cell.inactive { background: var(--ground); cursor: default; }
.pill-row td.cell { height: var(--space-xs); cursor: default; }
.dash { display: none; }
/* Schichten wie Termine im Kalender: getönte Fläche, Kante in der Farbe der Vorlage */
.sh, .ab { --ev: var(--green); margin: var(--space-3xs); height: 46px; border-radius: var(--radius-event); font-size: var(--text-xs); line-height: 1.25; overflow: hidden; position: relative; box-shadow: var(--shadow-event); }
.sh { background: color-mix(in srgb, var(--ev) 17%, var(--bg)); color: color-mix(in srgb, var(--ev) 52%, var(--text)); border-left: 3px solid var(--ev); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: var(--text-sm); }
.sh .t { font-weight: var(--weight-strong); }
.sh .more { position: absolute; top: 0; right: var(--space-3xs); font-size: var(--text-xs); font-weight: var(--weight-strong); }
.sh .dot { position: absolute; right: var(--space-2xs); bottom: var(--space-2xs); width: 6px; height: 6px; border-radius: 50%; }
.ab { background: color-mix(in srgb, var(--ev) 20%, var(--bg)); color: color-mix(in srgb, var(--ev) 45%, var(--text)); border-left: 3px solid var(--ev); display: grid; place-items: center; text-align: center; white-space: nowrap; font-size: var(--text-sm); }
.abs-run { margin: var(--space-sm) 0; height: 28px; border-radius: 0; border-left: 0; place-items: center start; padding-left: var(--space-xs); overflow: visible; box-shadow: none; }
.abs-run.first { margin-left: var(--space-3xs); border-left: 3px solid var(--ev); border-top-left-radius: var(--radius-event); border-bottom-left-radius: var(--radius-event); }
.abs-run.last { margin-right: var(--space-3xs); border-top-right-radius: var(--radius-event); border-bottom-right-radius: var(--radius-event); }
.mk-urlaub, .mk-urlaub_halb { --ev: var(--k-urlaub); }
.ab.mk-urlaub, .ab.mk-urlaub_halb { color: var(--k-urlaub-ink); }
.mk-pflege { --ev: var(--k-pflege); }
.mk-sonder { --ev: var(--k-sonder); }
.mk-za { --ev: var(--k-za); }
.mk-frei { --ev: var(--k-frei); }
.mk-krank { --ev: var(--k-krank); }
.ab.mk-krank { background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, var(--k-krank-soft) 2px 6px); }
.legend .mk-urlaub, .legend .mk-urlaub_halb, .legend .mk-pflege, .legend .mk-sonder, .legend .mk-za, .legend .mk-frei { background: color-mix(in srgb, var(--ev) 22%, var(--bg)); box-shadow: inset 3px 0 0 var(--ev); }
.legend .mk-krank { background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 5px); box-shadow: inset 3px 0 0 var(--ev); }
.mk-nv { outline: var(--rule-hair) dashed var(--neg); outline-offset: calc(-1 * var(--rule-hair)); }
.cell.nv { outline: var(--rule-hair) dashed var(--neg); outline-offset: -3px; }
.nv-tag { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--text-xs); font-weight: var(--weight-strong); color: var(--neg); pointer-events: none; }
.cell.nv-conflict .nv-tag, .cell.nv:has(.ab) .nv-tag { display: none; }
.cell.nv-conflict .sh { --ev: var(--red); background: var(--neg-soft); color: var(--neg-ink); }
.nv-sw { background: none !important; outline: 1.5px dashed var(--neg); outline-offset: -1px; }
.nv-warn { color: var(--neg-ink); }

/* Besetzung je Schicht: erscheint beim Ziehen oder wenn eingeschaltet */
.lane { display: none; }
body.drag-emp .lane, .lanes-on .lane { display: table-row; }
.lane th { border-bottom: var(--rule-hair) solid var(--rule); height: 28px; }
.lane-h { display: flex; align-items: center; gap: var(--space-xs); height: 100%; padding: 0 var(--space-md); font-size: var(--text-xs); white-space: nowrap; overflow: hidden; }
.lane-h::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sc); flex: none; }
.lane-h b { font-weight: var(--weight-strong); }
.lane-h span { color: var(--muted); }
.lane-c { border-left: var(--rule-hair) solid var(--rule); text-align: center; cursor: pointer; font-weight: var(--weight-strong); font-size: var(--text-xs); }
.lane-c span { display: inline-block; min-width: 26px; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-ctl); background: color-mix(in srgb, var(--sc, var(--accent)) 18%, var(--bg)); color: var(--text); }
.lane-c span.z { background: none; color: var(--muted); font-weight: 400; }
.grid thead .lane-c:hover { background: var(--fill); }
.lane-row { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); }
.lane-row span:not(.av) { flex: 1; }

/* Ziehen und Markieren */
.emp[data-emp-open], .cell { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.dragging, body.dragging * { cursor: grabbing !important; }
body.selecting, body.selecting * { cursor: cell !important; }
body.drag-emp .grid thead .lane-c { background: var(--accent-soft); }
.grid thead .drop-ok, .drop-ok { background: color-mix(in srgb, var(--accent) 25%, var(--bg)) !important; box-shadow: inset 0 0 0 2px var(--accent); }
.drag-src > * { opacity: .35; }
.dnd-ghost { position: fixed; left: 0; top: 0; z-index: var(--z-tooltip); pointer-events: none; margin: 0 !important; opacity: .96; box-shadow: var(--sh-3); border-radius: var(--radius-ctl); }
.dnd-emp { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-md) var(--space-2xs) var(--space-2xs); background: var(--bg); border-radius: var(--radius-pill); font-weight: var(--weight-strong); white-space: nowrap; }
.cell.sel-range { background: color-mix(in srgb, var(--accent) 22%, var(--bg)) !important; box-shadow: inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent); }
.cell.sel-range.sel-a { box-shadow: inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent), inset 2px 0 0 var(--accent); }
.cell.sel-range.sel-z { box-shadow: inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent), inset -2px 0 0 var(--accent); }
.cell.sel-range.sel-a.sel-z { box-shadow: inset 0 0 0 2px var(--accent); }
.cell.sel-range.sel-skip { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--bg)) 0 3px, var(--bg) 3px 7px) !important; }
.sel-tip { background: var(--accent); color: var(--tip-ink); font-size: var(--text-xs); font-weight: var(--weight-strong); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-ctl); white-space: nowrap; box-shadow: var(--sh-2); }
.range-sum { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-bottom: var(--space-xs); }
.range-sum div { display: flex; flex-direction: column; }
.range-sum b { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--weight-strong); line-height: 1.15; }
.range-sum span { font-size: var(--text-xs); color: var(--muted); }
.range-acts { display: flex; flex-direction: column; gap: var(--space-xs); }
.chip:disabled { opacity: .55; }

/* ---------- Mitarbeiter ---------- */
.staff { display: grid; grid-template-columns: 264px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.staff-list { grid-row: 1 / -1; background: var(--bg); border-right: var(--rule-hair) solid var(--line); overflow-y: auto; padding-bottom: var(--space-xs); }
.staff-search { display: flex; gap: var(--space-xs); padding: var(--space-xs); background: var(--bg); position: sticky; top: 0; z-index: var(--z-raised); }
.staff-search input { flex: 1; min-width: 0; }
.staff-item { position: relative; display: flex; align-items: center; gap: var(--space-sm); width: calc(100% - var(--space-sm)); margin: 0 var(--space-xs) 0 var(--space-2xs); padding: var(--space-xs) var(--space-sm); border: 0; border-radius: var(--radius-ctl); background: none; text-align: left; font-size: var(--text-sm); transition: background-color var(--dur-micro) var(--ease-out); }
.staff-item:hover { background: var(--fill); }
.staff-item:active { background: var(--fill-h); }
.staff-item.sel { background: var(--fill-h); }
.staff-item.sel::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: var(--radius-pill); background: var(--accent); }
.staff-item.off { color: var(--muted); }
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-md); align-items: center; padding: var(--space-md) var(--space-lg) var(--space-xs); background: var(--bg); border-bottom: var(--rule-hair) solid var(--line); }
.staff-back { display: none; }
.photo { grid-row: 1 / 3; width: 60px; height: 60px; border-radius: 50%; background: center / cover; background-color: hsl(var(--h, 210) var(--av-s) var(--av-l)); color: var(--on-fill); display: grid; place-items: center; font-size: var(--text-lg); font-weight: var(--weight-strong); cursor: pointer; position: relative; overflow: hidden; }
.photo span.edit { position: absolute; inset: auto 0 0; background: var(--scrim); color: var(--on-fill); font-size: var(--text-xs); text-align: center; padding: var(--space-3xs) 0; opacity: 0; transition: opacity var(--dur-micro) var(--ease-out); }
.photo:hover span.edit, .photo:focus-within span.edit { opacity: 1; }
.bigname { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.2; letter-spacing: var(--tracking-display); }
.bigname b { font-weight: var(--weight-strong); }
.kv { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0 var(--space-xs); font-size: var(--text-xs); color: var(--muted); }
.kv span:nth-child(even) { color: var(--text); margin-right: var(--space-sm); }
.roundbtns { grid-column: 3; grid-row: 1 / 3; display: flex; gap: var(--space-xs); flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.activesw { display: inline-flex; align-items: center; gap: var(--space-xs); margin-right: var(--space-xs); cursor: pointer; }
.ptabs { grid-column: 1 / -1; margin: var(--space-sm) 0 0; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.details { padding: var(--space-md) var(--space-lg) var(--space-lg); overflow-y: auto; min-width: 0; }
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--space-xs); align-items: start; }
.sec { background: var(--glass-solid); border: var(--rule-hair) solid var(--line); border-radius: var(--radius-card); padding: var(--space-sm) var(--space-md) var(--space-2xs); box-shadow: var(--shadow-card); }
.sec h3 { font-size: var(--text-sm); margin: 0 0 var(--space-2xs); }
.frow { display: grid; grid-template-columns: 44% 56%; align-items: center; border-top: var(--rule-hair) solid var(--rule); min-height: var(--ctl-lg); }
.frow > span:first-child { padding-right: var(--space-xs); font-size: var(--text-sm); }
.frow input:not([type=checkbox]), .frow select, .frow textarea { width: 100%; min-height: 36px; padding: var(--space-xs) var(--space-2xs); border: 0; border-radius: var(--radius-ctl); background: transparent; color: var(--text); }
.frow input:hover:not([type=checkbox]), .frow select:hover, .frow textarea:hover { background: var(--fill); }
.frow input:focus-visible:not([type=checkbox]), .frow select:focus-visible, .frow textarea:focus-visible { outline: 0; background: var(--bg); box-shadow: inset 0 -2px 0 var(--accent); }
.frow textarea { resize: vertical; min-height: 56px; }
.frow .weekdays { padding: var(--space-xs) 0; }
.frow-v { padding: var(--space-xs) var(--space-2xs); }
.details table.tbl { background: var(--bg); border-radius: var(--radius-card); }
.danger-zone { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--line); }
.loc-color { width: 40px; height: 34px; border: 0; background: none; padding: 0; }
.loc-name { flex: 1; }

/* ---------- Salden ---------- */
.saldi { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg); }
.saldi thead th { position: sticky; top: 0; background: var(--bg); padding: var(--space-xs); font-weight: var(--weight-strong); font-size: var(--text-xs); z-index: var(--z-raised); text-align: right; border-bottom: var(--rule-hair) solid var(--line); white-space: nowrap; }
.saldi thead th:first-child { text-align: left; padding-left: var(--space-lg); }
.saldi td { padding: var(--space-xs); border-bottom: var(--rule-hair) solid var(--rule); text-align: right; white-space: nowrap; }
.saldi td.n { min-width: 200px; text-align: left; padding-left: var(--space-lg); }
.saldi td.n .av { margin-right: var(--space-sm); vertical-align: middle; }
.saldi tbody tr:hover td { background: var(--fill); }
.saldi .box { display: block; }
.saldi input.box { width: 76px; text-align: right; margin-left: auto; }
.saldi .btn { min-height: 30px; padding: var(--space-3xs) var(--space-xs); border-color: transparent; background: none; }
.saldi .btn:hover { background: var(--fill); }

/* ---------- Dialoge, Menüs, Hinweise ---------- */
dialog { border: 0; padding: 0; background: transparent; max-width: 560px; width: calc(100% - var(--space-xl)); margin: auto; max-height: 92dvh; color: var(--text); }
dialog::backdrop { background: var(--scrim); }
dialog[open] .sheet { animation: sheet-in var(--dur-short) var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: scale(1.03); } }
.sheet { background: var(--glass-strong); border: var(--rule-hair) solid var(--line); border-radius: var(--radius-sheet); padding: var(--space-lg); max-height: 92dvh; overflow-y: auto; box-shadow: var(--sh-3); }
.sheet-h { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.sheet-h h2 { font-size: var(--text-lg); }
.sheet-h p { margin: var(--space-3xs) 0 0; }
.pop { position: fixed; z-index: var(--z-dropdown); background: var(--glass-strong); border: var(--rule-hair) solid var(--line); border-radius: var(--radius-card); box-shadow: var(--sh-3); padding: var(--space-2xs); min-width: 210px; max-height: 70vh; overflow: auto; }
.pop label, .pop button.mi { display: flex; align-items: center; gap: var(--space-xs); min-height: var(--ctl); padding: var(--space-xs) var(--space-sm); width: 100%; border: 0; background: none; text-align: left; border-radius: var(--radius-ctl); cursor: pointer; }
.pop button.mi:hover { background: var(--fill); }
.pop button.mi:active { background: var(--fill-h); }
.pop button.mi.danger { color: var(--neg); }
.mi-sep { border: 0; border-top: var(--rule-hair) solid var(--line); margin: var(--space-2xs) var(--space-xs); }
#toast { position: fixed; left: 50%; bottom: calc(var(--space-lg) + env(safe-area-inset-bottom)); z-index: var(--z-toast); transform: translateX(-50%) translateY(var(--space-sm)); max-width: calc(100vw - var(--space-xl)); padding: var(--space-xs) var(--space-md); border: var(--rule-hair) solid var(--line); border-radius: var(--radius-card); background: var(--toast-bg); color: var(--toast-ink); box-shadow: var(--sh-3); opacity: 0; pointer-events: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.act { display: flex; align-items: center; gap: var(--space-md); width: max-content; }
#toast.act.show { pointer-events: auto; }
#toast button { border: 0; background: none; color: var(--toast-link); font-weight: var(--weight-strong); padding: var(--space-3xs) 0; }

/* ---------- Verfügbarkeit und Monatskalender ---------- */
.avail { max-width: 760px; }
.sub-h { margin-top: calc(-1 * var(--space-xs)); }
.center-note { text-align: center; }
.ac-head, .ac-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-2xs); }
.ac-head span { text-align: center; padding: var(--space-2xs); font-size: var(--text-xs); font-weight: var(--weight-strong); color: var(--muted); }
/* Tage als getönte Flächen ohne eigenen Rand: keine Karte in der Karte */
.ac-cell { min-height: 64px; min-width: 0; border: 0; border-radius: var(--radius-ctl); background: var(--fill); color: var(--text); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3xs); padding: var(--space-xs); text-align: left; overflow: hidden; transition: background-color var(--dur-micro) var(--ease-out); }
.ac-cell.pad { background: none; cursor: default; }
.ac-cell:disabled { background: none; color: var(--muted); opacity: 1; }
.ac-cell.today .ac-d { background: var(--accent); color: var(--accent-text); border-radius: var(--radius-ctl); padding: 0 var(--space-xs); }
.ac-cell.hol .ac-d { color: var(--warn); }
.ac-d { font-weight: var(--weight-strong); font-size: var(--text-sm); }
.ac-sh { font-size: var(--text-xs); color: var(--pos); line-height: 1.25; }
.ac-cell:disabled .ac-sh { color: inherit; }
.ac-abs { font-size: var(--text-xs); line-height: 1.2; display: inline-flex; align-items: baseline; gap: var(--space-2xs); }
.ac-abs::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); flex: none; }
.ac-cell.nv { outline: var(--rule-hair) dashed var(--neg); outline-offset: calc(-1 * var(--rule-hair)); background: var(--neg-soft); }
.ac-nv { font-size: var(--text-xs); font-weight: var(--weight-strong); color: var(--neg-ink); line-height: 1.2; }
.ac-nv .sm { display: none; }
.ac-cell:not(:disabled):not(.pad):not(.nv):hover { background: var(--accent-soft); }
.ac-cell[data-nvday] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ac-cell.sel-range { background: color-mix(in srgb, var(--accent) 24%, var(--bg)) !important; outline: 2px solid var(--accent); outline-offset: -2px; }
.ac-cell.sel-range.sel-skip { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--bg)) 0 3px, var(--bg) 3px 7px) !important; outline-style: dashed; }
body.selecting .ac-cell { cursor: cell; }

/* ---------- Zeiterfassung ---------- */
.zseg { margin-bottom: var(--space-md); }
.clock, .zeit { max-width: var(--container); }
.ck-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-md) var(--space-xl); flex-wrap: wrap; margin-bottom: var(--space-md); }
.ck-time { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: var(--weight-strong); letter-spacing: var(--tracking-display); line-height: 1; }
.ck-sum { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.ck-sum div { display: flex; flex-direction: column; }
.ck-sum b { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--weight-strong); line-height: 1.15; }
.ck-sum span { font-size: var(--text-xs); color: var(--muted); }
.ck-sum .in b { color: var(--pos); }
.ck-sum .miss b { color: var(--neg); }
.ck-q { width: 100%; max-width: 360px; margin-bottom: var(--space-2xs); }
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(232px, 100%), 1fr)); gap: var(--space-xs); margin: var(--space-xs) 0; }
.ck-tile { display: flex; flex-direction: column; gap: var(--space-xs); text-align: left; min-width: 0; padding: var(--space-sm); border: var(--rule-hair) solid var(--line); border-radius: var(--radius-card); background: var(--glass-solid); color: var(--text); box-shadow: var(--shadow-card); transition: background-color var(--dur-micro) var(--ease-out); }
.ck-tile:hover { background: var(--ctl-h); }
.ck-tile:active { background: var(--fill-h); }
.ck-tile[hidden] { display: none; }
.ck-top { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.ck-b { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ck-b b { font-weight: var(--weight-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-st { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-tile.in .ck-st { color: var(--pos); }
.ck-tile.pause .ck-st { color: var(--warn); }
.ck-tile.miss .ck-st { color: var(--neg); }
.ck-tile.gone { opacity: .72; }
.ck-more summary { cursor: pointer; margin: var(--space-md) 0 var(--space-xs); }
.ck-now { display: flex; flex-direction: column; gap: var(--space-3xs); border-radius: var(--radius-card); padding: var(--space-sm) var(--space-md); background: var(--fill); margin-bottom: var(--space-sm); }
.ck-now b { font-size: var(--text-md); font-weight: var(--weight-strong); }
.ck-now.in { background: var(--ok-soft); }
.ck-now.in b { color: var(--pos); }
.ck-now.pause { background: var(--warn-soft); }
.ck-now.pause b { color: var(--warn); }
.ck-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--space-xs); margin-bottom: var(--space-sm); }
.ck-btns .btn { flex-direction: column; gap: var(--space-3xs); min-height: 76px; font-size: var(--text-md); font-weight: var(--weight-strong); border-radius: var(--radius-card); border-color: transparent; }
.ck-btns .btn small { font-weight: 400; font-size: var(--text-xs); }
.ck-btns .btn.ck-in, .ck-btns .btn.ck-in:hover { background: var(--stamp-in); border-color: transparent; color: var(--on-fill); }
.ck-btns .btn.ck-out, .ck-btns .btn.ck-out:hover { background: var(--stamp-out); border-color: transparent; color: var(--on-fill); }
.ck-btns .btn.ck-pause, .ck-btns .btn.ck-resume, .ck-btns .btn.ck-pause:hover, .ck-btns .btn.ck-resume:hover { background: var(--stamp-pause); border-color: transparent; color: var(--stamp-pause-ink); }
.ck-btns .btn:active { filter: brightness(.92); }
.lst .it .sw.ck-sw-in { background: var(--green); }
.lst .it .sw.ck-sw-out { background: var(--red); }
.lst .it .sw.ck-sw-pause, .lst .it .sw.ck-sw-resume { background: var(--orange); }
/* Stempelkarte: geplant oben, gestempelt darunter, auf derselben Zeitachse */
.strip { position: relative; height: 18px; }
.strip i { position: absolute; display: block; height: 6px; border-radius: var(--space-3xs); }
.strip .p { top: var(--space-3xs); background: var(--fill-h); }
.strip .s { top: 10px; background: var(--pos); }
.zbar { display: flex; gap: var(--space-md); align-items: flex-end; flex-wrap: wrap; }
.zbar .field { min-width: 240px; margin-bottom: var(--space-sm); }
.zdev { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-sm); cursor: pointer; }
.ztot { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); margin: var(--space-2xs) 0 var(--space-md); }
.ztot div { display: flex; flex-direction: column; }
.ztot span { font-size: var(--text-xs); color: var(--muted); }
.ztot b { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--weight-strong); line-height: 1.2; }
.ztot.sm { gap: var(--space-xs) var(--space-lg); margin-bottom: var(--space-sm); }
.ztot.sm b { font-size: var(--text-md); }
.zsum tbody tr { cursor: pointer; }
.zsum tbody tr:hover { background: var(--fill); }
.zn { display: inline-flex; align-items: center; gap: var(--space-xs); white-space: nowrap; }
.zlist { border-top: var(--rule-hair) solid var(--line); }
.zrow { display: grid; grid-template-columns: 96px minmax(130px, 1fr) minmax(130px, 1fr) minmax(150px, 220px) 64px minmax(160px, 1.4fr); gap: var(--space-sm); padding: var(--space-xs); border-bottom: var(--rule-hair) solid var(--rule); align-items: center; cursor: pointer; border-radius: var(--radius-ctl); }
.zrow > div { display: flex; flex-direction: column; min-width: 0; }
.zrow.zh { font-size: var(--text-xs); font-weight: var(--weight-strong); cursor: default; border-bottom-color: var(--line); border-radius: 0; }
.zrow:not(.zh):hover { background: var(--fill); }
.zrow.today .zd b { color: var(--accent); }
.zrow .zd b { font-weight: var(--weight-strong); }
.zrow .num { text-align: right; align-items: flex-end; font-weight: var(--weight-strong); }
.zrow .lbl { display: none; }
.zf { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: var(--space-2xs); }
.zf.gap-b { margin-bottom: var(--space-sm); }
.zf-c { font-size: var(--text-xs); border-radius: var(--radius-ctl); padding: var(--space-3xs) var(--space-xs); background: var(--fill); color: var(--muted); white-space: nowrap; }
.zf-c.warn { background: var(--warn-soft); color: var(--warn); }
.zf-c.miss { background: var(--neg-soft); color: var(--neg-ink); }
.pe { display: flex; gap: var(--space-xs); align-items: center; flex-wrap: wrap; }

/* ---------- Einstellungen ---------- */
.trow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-xs) var(--space-2xs); border-top: var(--rule-hair) solid var(--rule); cursor: pointer; }
.trow:first-child { border-top: 0; }
.trow b { font-weight: 400; display: block; }
.trow small { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-3xs); }
.field .hint { margin: var(--space-3xs) 0 0; }
.trow-d { border-top: var(--rule-hair) solid var(--rule); }
.trow-d:first-child { border-top: 0; }
.thm-s { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-2xs); cursor: pointer; list-style: none; min-height: 48px; }
.thm-s::-webkit-details-marker { display: none; }
.thm-sw { width: 30px; height: 30px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 var(--rule-hair) var(--swatch-edge); }
.thm-t { flex: 1; min-width: 0; }
.thm-t b { display: block; font-weight: 400; }
.thm-t small { display: block; font-size: var(--text-xs); color: var(--muted); }
.thm-v { color: var(--muted); font-size: var(--text-xs); white-space: nowrap; }
.thm-b { padding: var(--space-3xs) var(--space-2xs) var(--space-sm); display: flex; flex-direction: column; gap: var(--space-xs); }
.thm-c { display: grid; grid-template-columns: 72px minmax(0, 1fr) 66px; align-items: center; gap: var(--space-sm); }
.thm-c > span:first-child { font-size: var(--text-xs); }
.thm-c input[type=range] { width: 100%; margin: 0; height: 28px; }
.thm-R input[type=range] { accent-color: var(--ch-r-bar); }
.thm-G input[type=range] { accent-color: var(--ch-g-bar); }
.thm-B input[type=range] { accent-color: var(--ch-b-bar); }
.thm-R > span:first-child { color: var(--ch-r); } .thm-G > span:first-child { color: var(--ch-g); } .thm-B > span:first-child { color: var(--ch-b); }
.thm-c input[type=number] { width: 100%; text-align: right; }
.thm-sep { border: 0; border-top: var(--rule-hair) solid var(--rule); width: 100%; margin: var(--space-2xs) 0; }
.thm-S input[type=range], .thm-L input[type=range] { -webkit-appearance: none; appearance: none; height: 8px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 var(--rule-hair) var(--swatch-edge); }
.thm-S input[type=range] { background: linear-gradient(90deg, hsl(var(--thm-h, 0) 0% var(--thm-l, 50%)), hsl(var(--thm-h, 0) 100% var(--thm-l, 50%))); }
.thm-L input[type=range] { background: linear-gradient(90deg, hsl(var(--thm-h, 0) var(--thm-s, 50%) 0%), hsl(var(--thm-h, 0) var(--thm-s, 50%) 50%), hsl(var(--thm-h, 0) var(--thm-s, 50%) 100%)); }
.thm-S input::-webkit-slider-thumb, .thm-L input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--thumb); box-shadow: var(--sh-2); cursor: pointer; }
.thm-S input::-moz-range-thumb, .thm-L input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--thumb); box-shadow: var(--sh-2); cursor: pointer; }
.thm-pct { position: relative; display: block; }
.thm-pct input { padding-right: var(--space-lg) !important; }
.thm-pct i { position: absolute; right: var(--space-xs); top: 50%; transform: translateY(-50%); font-style: normal; font-size: var(--text-xs); color: var(--muted); pointer-events: none; }
.thm-a { margin-top: var(--space-2xs); }
.thm-pick { display: inline-flex; align-items: center; gap: var(--space-xs); cursor: pointer; color: var(--accent); }
.thm-pick input { width: 34px; height: 34px; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }

/* ---------- Offene Schichten und Rückmeldungen (Planung) ---------- */
.open-row .open-h { cursor: default; }
.open-row .open-h:hover { background: none; }
.open-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px dashed var(--control); color: var(--muted); }
.open-ic svg { width: 16px; height: 16px; }
.sh.open { background: var(--bg); color: var(--text); border: 1.5px dashed var(--control); border-left: 3px solid var(--c, var(--accent)); box-shadow: none; }
/* Offene Schicht: Zeiten links, Zahl der Bewerbungen rechts oben, damit sich nichts überdeckt */
.sh.open { align-items: flex-start; padding-left: var(--space-2xs); }
.sh .ap { position: absolute; top: var(--space-3xs); right: var(--space-3xs); min-width: 13px; height: 13px; padding: 0 var(--space-3xs); border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-text); font-family: var(--font-body); font-size: 10px; font-weight: var(--weight-strong); line-height: 13px; text-align: center; }
.sh.st-declined { --ev: var(--red); background: var(--neg-soft); color: var(--neg-ink); outline: 1.5px dashed var(--neg); outline-offset: -1px; }
.sh.st-declined > span:not(.more):not(.dot) { text-decoration: line-through; }
.sh .okm { position: absolute; top: var(--space-3xs); left: var(--space-2xs); width: 11px; height: 11px; color: var(--pos); }
.sh .okm svg { width: 100%; height: 100%; display: block; stroke-width: 3.2; }
.it-open { align-items: flex-start; }
.open-sw { background: none !important; outline: 1.5px dashed var(--muted); outline-offset: -1px; }
.app-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xs); }
.app-row > .b { display: flex; flex-direction: column; flex: 1; min-width: 140px; }
.row.direct { margin-top: var(--space-xs); }
.inline-field { flex-direction: row; align-items: center; gap: var(--space-sm); }
.stt { margin-top: var(--space-3xs); font-weight: var(--weight-strong); }
.stt-ok { color: var(--pos); }
.stt-declined { color: var(--neg-ink); }
.stt-kept, .stt-pending { color: var(--warn); }
.stt-off { color: var(--muted); font-weight: 400; }

/* ---------- Übersicht, Anträge, Regeln ---------- */
.ov { max-width: 900px; }
.todo-n { min-width: 2ch; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-strong); text-align: right; }
.it-btn { width: 100%; border: 0; background: none; color: inherit; text-align: left; border-radius: var(--radius-ctl); transition: background-color var(--dur-micro) var(--ease-out); }
.lst .it.it-btn { border-top: var(--rule-hair) solid var(--rule); }
.lst .it.it-btn:first-child { border-top: 0; }
.it-btn:hover { background: var(--fill); }
.ov-grp .sec-title { padding-left: var(--space-xs); box-shadow: inset 3px 0 0 var(--c); }
.post-t { white-space: pre-line; margin-top: var(--space-3xs); }
.rule-warn, .warn-t { color: var(--warn); }
.rule-warn { font-weight: var(--weight-strong); }
.sh .rw { position: absolute; bottom: var(--space-3xs); left: var(--space-2xs); font-family: var(--font-body); font-size: 11px; font-weight: 700; line-height: 1; color: var(--warn); }
.stt-swap { color: var(--accent-ink); }
.req-st { font-weight: var(--weight-strong); }

/* ---------- Dokumente ---------- */
.doc-ic { flex: none; min-width: 38px; padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-event); background: var(--fill-h); color: var(--muted); font-size: var(--text-xs); font-weight: var(--weight-strong); text-align: center; }
.doc-img { display: block; max-width: 100%; max-height: 60dvh; margin-inline: auto; border-radius: var(--radius-event); }
a.btn { text-decoration: none; }

/* ---------- Mitarbeiter-Seite ---------- */
.nav button .nb { margin-left: auto; min-width: 20px; height: 20px; padding: 0 var(--space-2xs); border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-text); font-size: var(--text-xs); font-weight: var(--weight-strong); display: inline-grid; place-items: center; }
.it-acts { display: flex; gap: var(--space-xs); flex: none; }
.lst.resp .it { align-items: flex-start; padding-block: var(--space-sm); }
.lst.resp .it-acts { align-self: center; }
.it-wait { box-shadow: inset 3px 0 0 var(--accent); padding-left: var(--space-sm) !important; }
.card.cta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.card.cta h3 { margin: 0; }
.seg-scroll { display: flex; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.wk-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.pdays { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: var(--space-xs); }
.pd { min-width: 0; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-ctl); background: var(--fill); }
.pd.today { box-shadow: inset 0 0 0 2px var(--accent); }
.pd h3 { display: flex; align-items: baseline; gap: var(--space-xs); margin: 0 0 var(--space-2xs); font-size: var(--text-sm); }
.pd h3 small { font-size: var(--text-xs); font-weight: 400; color: var(--muted); }
.pl-r { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-3xs) 0; font-size: var(--text-sm); border-top: var(--rule-hair) solid var(--rule); }
.pd h3 + .pl-r { border-top: 0; }
.pl-r > span:first-child { min-width: 92px; color: var(--muted); }
.pl-r.mine { color: var(--accent-ink); font-weight: var(--weight-strong); }
.pl-r.mine > span:first-child { color: inherit; }
.pl-r.open > span:nth-child(2) { color: var(--warn); font-weight: var(--weight-strong); }
.pl-r .btn { margin-left: auto; min-height: 28px; padding: 0 var(--space-xs); }
.pl-e { padding: var(--space-3xs) 0; }
@media (max-width: 1024px) {
  .nav button .nb { position: absolute; top: var(--space-3xs); left: calc(50% + var(--space-xs)); margin: 0; min-width: 18px; height: 18px; }
}
@media (max-width: 700px) {
  .lst.resp .it { flex-wrap: wrap; }
  .lst.resp .it-acts { width: 100%; padding-left: calc(10px + var(--space-sm)); }
  .lst.resp .it-acts .btn { flex: 1; }
  .card.cta { flex-wrap: wrap; }
  .card.cta .btn { width: 100%; }
}

/* ---------- Fingerbedienung: 44 px Trefferfläche, 16 px in Feldern gegen das Zoomen von iOS ---------- */
@media (pointer: coarse) {
  .btn, .tbtn, .arrow, .x, .chip, .stampsel, .seg button, .todaybtn, .staff-item, .nav button, .foot-btn { min-height: var(--hit); }
  .tbtn, .arrow, .x { min-width: var(--hit); }
  input:not([type=checkbox]):not([type=color]):not([type=range]), select, textarea, .tb-note { font-size: var(--text-touch); }
}

/* ---------- Tablet und Handy: Navigation als Leiste unten ---------- */
@media (max-width: 1024px) {
  body { display: flex; flex-direction: column; }
  .work { flex: 1; order: 1; margin: 0; border: 0; border-radius: 0; }
  .side { order: 2; flex: none; flex-direction: row; padding: 0 0 env(safe-area-inset-bottom); border-top: var(--rule-hair) solid var(--line); background: var(--bg); }
  .side-head, .side-foot { display: none; }
  .nav { flex-direction: row; gap: 0; width: 100%; overflow: visible; }
  .nav button { flex: 1 1 0; min-width: 0; flex-direction: column; gap: var(--space-3xs); min-height: 52px; padding: var(--space-xs) var(--space-3xs); border-radius: 0; font-size: var(--text-xs); text-align: center; justify-content: center; color: var(--muted); }
  .nav button svg { width: 22px; height: 22px; color: inherit; }
  .nav button.active { background: none; color: var(--accent); }
  .nav button.active::before { left: 50%; top: 0; width: 16px; height: 3px; margin: 0 0 0 -8px; }
  .nav button:hover { background: none; }
  .nav .nav-sec { display: none; }
  .nav .nav-more { display: flex; }
  .nav .ls { display: inline; } .nav .lb { display: none; }
  .tb-mark { display: block; }
  #toast { bottom: calc(66px + env(safe-area-inset-bottom)); }
}
@media (max-width: 700px) {
  .toolbar { align-items: flex-start; flex-wrap: wrap; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); }
  .tb-mark { display: none; }
  .tb-mid { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .tb-mid:empty { display: none; }
  .tb-right { display: none; }
  .pt, .month-nav h1 { font-size: var(--text-md); }
  .arrow { width: var(--ctl-lg); min-width: var(--ctl-lg); min-height: var(--ctl-lg); }
  .tb-note .lg { display: none; } .tb-note .sm { display: inline; }
  .btn .tl { display: none; }
  .stampsel { max-width: 170px; flex: none; }
  .page { padding: var(--space-sm); }
  .card { padding: var(--space-sm); }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .emp { padding: 0 var(--space-2xs) 0 var(--space-sm); gap: var(--space-xs); }
  .emp .av { display: none; }
  .emp .top { flex-direction: column; align-items: flex-start; gap: 0; }
  .emp .nm { max-width: 100%; }
  .lane-h { padding: 0 var(--space-sm); } .lane-h span { display: none; }
  .legend { padding: var(--space-xs) var(--space-sm); flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  .corner .small { display: none; }
  .grp-band { font-size: var(--text-sm); gap: var(--space-3xs); padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-sm); }
  .grp-band .tg { width: 14px; }
  .grp-info { padding-left: var(--space-xs); left: calc(var(--name-w) + var(--space-xs)); }
  dialog { margin: auto 0 0; width: 100%; max-width: none; }
  .sheet { border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom)); }
  .pop { max-width: calc(100vw - var(--space-md)); }
  .staff { display: block; height: auto; }
  .staff-list { border-right: 0; }
  .staff.detail .staff-list { display: none; }
  .staff:not(.detail) .profile, .staff:not(.detail) .details { display: none; }
  .staff-back { display: inline-flex; grid-column: 1 / -1; grid-row: 1; justify-self: start; margin-bottom: var(--space-xs); }
  .photo { grid-row: 2 / 4; width: 50px; height: 50px; font-size: var(--text-md); }
  .profile { padding: var(--space-xs) var(--space-sm); grid-template-columns: auto minmax(0, 1fr); }
  .roundbtns { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; margin-top: var(--space-xs); }
  .activesw { width: 100%; margin: 0 0 var(--space-2xs); }
  .details { padding: var(--space-sm); overflow: visible; }
  .sections { grid-template-columns: minmax(0, 1fr); }
  .saldi td.n { position: sticky; left: 0; background: var(--bg); min-width: 130px; padding-left: var(--space-sm); z-index: var(--z-raised); }
  .saldi td.n .av { display: none; }
  .saldi thead th:first-child { position: sticky; left: 0; z-index: calc(var(--z-raised) + 1); padding-left: var(--space-sm); }
  .ck-time { font-size: var(--text-3xl); }
  .ck-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xs); }
  .ck-tile { padding: var(--space-xs); gap: var(--space-xs); }
  .ck-top { gap: var(--space-xs); }
  .ck-tile .av { display: none; }
  .ck-q { max-width: none; }
  .zbar { gap: 0; }
  .zbar .field { min-width: 0; flex: 1 1 100%; margin-bottom: var(--space-xs); }
  .zsum th, .zsum td { padding: var(--space-xs); }
  .zrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xs) var(--space-sm); }
  .zrow.zh { display: none; }
  .zrow > .zd { grid-column: 1; grid-row: 1; flex-direction: row; gap: var(--space-xs); align-items: baseline; flex-wrap: wrap; }
  .zrow > :nth-child(5) { grid-column: 2; grid-row: 1; }
  .zrow > :nth-child(4) { grid-column: 1 / -1; }
  .zrow > :nth-child(5) .lbl { display: none; }
  .zrow .lbl { display: block; font-size: var(--text-xs); color: var(--muted); }
  .zrow .zf { grid-column: 1 / -1; }
  .zrow .zf:empty { display: none !important; }
  .ac-head, .ac-grid { gap: var(--space-3xs); }
  .ac-cell { min-height: 54px; padding: var(--space-2xs); }
  .ac-sh { overflow-wrap: anywhere; }
  .ac-nv .lg { display: none; } .ac-nv .sm { display: inline; }
  .avail .grid2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Apple Liquid Glass: die Bedienebene schwebt über dem Inhalt ---------- */
[data-design="apple"] .side, [data-design="apple"] .toolbar, [data-design="apple"] .pop, [data-design="apple"] .sheet, [data-design="apple"] .head-glass i, [data-design="apple"] #toast { -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
[data-design="apple"] .side { margin: var(--space-xs) 0 var(--space-xs) var(--space-xs); border-radius: 28px; box-shadow: var(--spec), var(--sh-2); padding: var(--space-md) var(--space-xs) var(--space-xs); }
[data-design="apple"] .nav button.active { background: var(--lens); box-shadow: var(--spec), var(--sh-1); }
[data-design="apple"] .nav button.active::before, [data-design="apple"] .staff-item.sel::before { display: none; }
[data-design="apple"] .nav button svg { color: var(--accent); }
[data-design="apple"] .work { position: relative; margin: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
[data-design="apple"] .toolbar { position: absolute; top: calc(var(--space-xs) + env(safe-area-inset-top)); left: var(--space-sm); right: var(--space-sm); border: 0; border-radius: 26px; box-shadow: var(--spec), var(--sh-2); }
[data-design="apple"] main { scroll-padding-top: var(--tb-h, 84px); }
[data-design="apple"] main::before { content: ""; display: block; height: var(--tb-h, 84px); }
[data-design="apple"] .tbtn, [data-design="apple"] .arrow, [data-design="apple"] .x { border-radius: 50%; background: var(--lens); box-shadow: var(--spec), var(--sh-1); }
[data-design="apple"] .btn, [data-design="apple"] .todaybtn, [data-design="apple"] .stampsel, [data-design="apple"] .chip { border: 0; box-shadow: var(--spec), var(--sh-1); }
[data-design="apple"] .btn.primary { box-shadow: var(--spec), var(--sh-2); }
[data-design="apple"] .seg, [data-design="apple"] .ptabs { padding: var(--space-3xs); border-radius: var(--radius-pill); background: var(--fill); }
[data-design="apple"] .seg button, [data-design="apple"] .ptabs button { border-radius: var(--radius-pill); }
[data-design="apple"] .seg button.active, [data-design="apple"] .ptabs button.active { background: var(--glass-solid); box-shadow: var(--spec), var(--sh-1); }
[data-design="apple"] .toggle { width: 46px; height: 28px; border: 0; background: var(--fill-h); }
[data-design="apple"] .toggle::before { top: 2px; left: 2px; width: 24px; height: 24px; background: var(--thumb); box-shadow: var(--sh-1); }
[data-design="apple"] .toggle:checked { background: var(--green); }
[data-design="apple"] .toggle:checked::before { background: var(--thumb); transform: translateX(18px); }
[data-design="apple"] .card, [data-design="apple"] .sec, [data-design="apple"] .ck-tile { border: 0; }
[data-design="apple"] .grid { margin: 0 var(--space-sm) var(--space-lg); border-radius: 22px; box-shadow: var(--sh-2); }
[data-design="apple"] .grid thead th { background: transparent; }
[data-design="apple"] .grid thead .c-name { background: var(--bg); }
[data-design="apple"] .head-glass { display: block; position: sticky; top: var(--tb-h, 84px); left: 0; height: 0; z-index: calc(var(--z-sticky) - 1); pointer-events: none; margin: 0 var(--space-sm); }
[data-design="apple"] .head-glass i { position: absolute; inset: 0 0 auto; height: var(--thead-h, 86px); background: var(--glass-strong); border-radius: 22px 22px var(--space-sm) var(--space-sm); box-shadow: var(--spec), var(--sh-1); }
[data-design="apple"] .legend { margin: 0 var(--space-sm); }
[data-design="apple"] .staff { gap: var(--space-sm); padding: 0 var(--space-sm) var(--space-sm); height: calc(100% - var(--tb-h, 84px)); }
[data-design="apple"] .staff-list, [data-design="apple"] .profile { border: 0; border-radius: 22px; background: var(--glass-solid); box-shadow: var(--shadow-card); }
[data-design="apple"] .staff-item.sel { background: var(--accent); color: var(--accent-text); }
[data-design="apple"] .table-wrap { margin: var(--space-xs) var(--space-sm) var(--space-lg); border-radius: 22px; box-shadow: var(--sh-2); background: var(--bg); }
[data-design="apple"] .tb-note { border: 0; border-radius: 18px; box-shadow: var(--spec), var(--sh-2); }
[data-design="apple"] .ck-btns .btn { border-radius: 24px; box-shadow: var(--spec), var(--sh-2); }
[data-design="apple"] #toast { border: 0; border-radius: var(--radius-pill); }
[data-design="apple"] dialog::backdrop { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
@media (max-width: 1024px) {
  [data-design="apple"] .side { position: fixed; z-index: var(--z-sticky-nav); left: var(--space-sm); right: var(--space-sm); bottom: calc(var(--space-sm) + env(safe-area-inset-bottom)); margin: 0; padding: var(--space-2xs); border: 0; border-radius: 32px; background: var(--glass); box-shadow: var(--spec), var(--sh-3); }
  [data-design="apple"] .nav button { border-radius: 28px; }
  [data-design="apple"] .nav button.active { background: var(--lens); box-shadow: var(--spec), var(--sh-1); }
  [data-design="apple"] main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  [data-design="apple"] #toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 700px) {
  [data-design="apple"] .toolbar { left: var(--space-xs); right: var(--space-xs); border-radius: 22px; }
  [data-design="apple"] .grid { margin: 0 var(--space-xs) var(--space-lg); border-radius: 18px; }
  [data-design="apple"] .head-glass { margin: 0 var(--space-xs); }
  [data-design="apple"] .staff { padding: 0 var(--space-xs) 92px; height: auto; }
  [data-design="apple"] .sheet { border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; }
}

/* ---------- Refract: Wasserlicht in der Seitenleiste, klare Flächen, Pillen, Funnel ---------- */
.light { display: none; }
[data-design="refract"] .side { position: relative; isolation: isolate; gap: var(--space-sm); padding: var(--space-sm); background: var(--shade); overflow: hidden; }
[data-design="refract"] .light { display: block; position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
[data-design="refract"] .side-head, [data-design="refract"] .nav, [data-design="refract"] .side-foot { flex: none; padding: var(--space-xs); border-radius: var(--radius-card); background: var(--glass); box-shadow: var(--shadow-card); }
[data-design="refract"] .side-head { padding: var(--space-sm); }
[data-design="refract"] .nav { min-height: 0; overflow-y: auto; }
[data-design="refract"] .side-foot { margin-top: auto; }
[data-design="refract"] .nav button, [data-design="refract"] .foot-btn { border-radius: var(--radius-pill); }
[data-design="refract"] .nav button.active { background: var(--accent-soft); color: var(--accent-ink); }
[data-design="refract"] .nav button.active::before, [data-design="refract"] .staff-item.sel::before { display: none; }
[data-design="refract"] .work { margin: 0; border: 0; border-radius: 0; background: var(--wall); }
[data-design="refract"] .toolbar { background: var(--wall); border-bottom-color: var(--rule); padding-block: var(--space-md); }
[data-design="refract"] .pt, [data-design="refract"] .month-nav h1 { font-size: var(--text-xl); font-weight: var(--weight-display); }
[data-design="refract"] .bigname, [data-design="refract"] .ck-time, [data-design="refract"] .range-sum b, [data-design="refract"] .ztot b, [data-design="refract"] .ck-sum b { font-weight: 300; }
/* Bedienelemente: Pillen; die Hauptaktion in Poolblau mit heller Oberkante, der Rest klar */
[data-design="refract"] .btn, [data-design="refract"] .todaybtn, [data-design="refract"] .chip, [data-design="refract"] .stampsel { border-color: var(--line); background: var(--lens); box-shadow: var(--spec), var(--sh-1); transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
[data-design="refract"] .btn:hover, [data-design="refract"] .todaybtn:hover, [data-design="refract"] .chip:hover { background: var(--ctl-h); }
[data-design="refract"] .btn:active, [data-design="refract"] .chip:active { transform: translateY(1px); }
[data-design="refract"] .btn.primary { border-color: transparent; background: var(--accent); color: var(--accent-text); box-shadow: var(--primary-edge), var(--sh-2); }
[data-design="refract"] .btn.primary:hover { background: var(--accent-hi); }
[data-design="refract"] .tbtn, [data-design="refract"] .arrow, [data-design="refract"] .x { border-radius: 50%; }
[data-design="refract"] .seg, [data-design="refract"] .ptabs { padding: var(--space-3xs); border-radius: var(--radius-pill); background: var(--fill); }
[data-design="refract"] .seg button, [data-design="refract"] .ptabs button { border-radius: var(--radius-pill); }
[data-design="refract"] .seg button.active, [data-design="refract"] .ptabs button.active { background: var(--bg); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent), var(--sh-1); }
[data-design="refract"] .toggle:checked { background: var(--accent); border-color: var(--accent); }
/* Felder: weiße Mulden mit Haarlinie, Fokus als Ring */
[data-design="refract"] .field input:not([type=checkbox]), [data-design="refract"] .field select, [data-design="refract"] .field textarea, [data-design="refract"] .pe select, [data-design="refract"] .pe input[type=time], [data-design="refract"] .ck-q, [data-design="refract"] .staff-search input, [data-design="refract"] .saldi input.box, [data-design="refract"] .details .tbl input, [data-design="refract"] .thm-c input[type=number], [data-design="refract"] .loc-name { border-color: var(--line); background: var(--bg); }
[data-design="refract"] .field input:focus-visible, [data-design="refract"] .field select:focus-visible, [data-design="refract"] .field textarea:focus-visible, [data-design="refract"] .ck-q:focus-visible, [data-design="refract"] .staff-search input:focus-visible, [data-design="refract"] .saldi input.box:focus-visible, [data-design="refract"] .loc-name:focus-visible, [data-design="refract"] .thm-c input:focus-visible, [data-design="refract"] .pe select:focus-visible, [data-design="refract"] .pe input:focus-visible, [data-design="refract"] .details .tbl input:focus-visible { box-shadow: 0 0 0 2px var(--focus); }
/* Klare Flächen ohne Rand, mit getöntem Schatten */
[data-design="refract"] .card, [data-design="refract"] .sec, [data-design="refract"] .ck-tile, [data-design="refract"] .sheet, [data-design="refract"] .pop, [data-design="refract"] #toast { border: 0; }
[data-design="refract"] .ck-tile:hover, [data-design="refract"] .card.cta:hover { transform: translateY(-2px); box-shadow: var(--spec), var(--sh-3); }
[data-design="refract"] .ck-tile { transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
[data-design="refract"] .staff-list, [data-design="refract"] .profile { background: var(--wall); }
[data-design="refract"] .staff-item.sel { background: var(--accent-soft); color: var(--accent-ink); }
[data-design="refract"] .staff-item { border-radius: var(--radius-pill); }
[data-design="refract"] .dh small { border-radius: var(--radius-pill); }
[data-design="refract"] .ac-cell, [data-design="refract"] .pd { border-radius: var(--radius-field); }
@media (max-width: 1024px) {
  /* Am Handy ist die Seitenleiste eine klare Leiste unten; das Licht bleibt dem großen Bildschirm */
  [data-design="refract"] .side { gap: 0; padding: 0 0 env(safe-area-inset-bottom); background: var(--glass-strong); box-shadow: var(--sh-2); overflow: visible; }
  [data-design="refract"] .light { display: none; }
  [data-design="refract"] .nav { padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
  [data-design="refract"] .nav button { border-radius: 0; }
  [data-design="refract"] .nav button.active { background: none; color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  [data-design="refract"] .ck-tile:hover, [data-design="refract"] .card.cta:hover { transform: none; }
}

/* ---------- Karma Food (Standard): Formen wie im Dashboard (Kacheln, Tastenreihen, kleine Radien); Farben, Geist und Abstände aus Karma Food Glass ---------- */
[data-design="karma"] .card, [data-design="karma"] .sec, [data-design="karma"] .ck-tile, [data-design="karma"] .pop, [data-design="karma"] .sheet { border: 0; border-radius: var(--radius-card); background: var(--bg); box-shadow: var(--shadow-card); }
[data-design="karma"] .card, [data-design="karma"] .ck-tile { padding: var(--space-lg); }
[data-design="karma"] .card + .card { margin-top: var(--space-md); }
[data-design="karma"] .card h2, [data-design="karma"] .sec h3 { font-weight: 600; letter-spacing: -.01em; }
[data-design="karma"] .card h2 { font-size: var(--text-md); }
[data-design="karma"] .work { margin: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
[data-design="karma"] main { padding-top: var(--space-2xs); }
/* Titel: Geist 600, groß, in Petrol; das Logo daneben */
[data-design="karma"] .toolbar { background: transparent; border: 0; padding: var(--space-md) var(--space-xl) var(--space-sm); }
[data-design="karma"] .pt, [data-design="karma"] .month-nav h1 { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; color: var(--text); }
[data-design="karma"] .tb-mark { display: block; width: 72px; height: 72px; }
[data-design="karma"] .tb-note { border: 0; border-radius: var(--radius-ctl); background: var(--bg); box-shadow: var(--shadow-card); padding-inline: var(--space-md); }
/* Bedienelemente: Tasten mit kleinem Radius. Hauptaktion in Petrol, sonst Kachel auf der Fläche */
[data-design="karma"] .btn, [data-design="karma"] .todaybtn, [data-design="karma"] .chip, [data-design="karma"] .stampsel { border: 0; border-radius: var(--radius-ctl); background: var(--bg); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
[data-design="karma"] .btn:hover, [data-design="karma"] .todaybtn:hover, [data-design="karma"] .chip:hover, [data-design="karma"] .stampsel:hover { background: var(--fill); }
[data-design="karma"] .btn.primary { background: var(--text); color: var(--bg); font-weight: 600; box-shadow: var(--sh-2); }
[data-design="karma"] .btn.primary:hover { background: color-mix(in srgb, var(--text) 86%, var(--bg)); }
[data-design="karma"] .btn.danger { color: var(--neg); }
[data-design="karma"] .tbtn, [data-design="karma"] .arrow, [data-design="karma"] .x { border-radius: var(--radius-ctl); }
[data-design="karma"] .arrow { width: 36px; height: 36px; background: var(--fill); }
[data-design="karma"] .tbtn:hover, [data-design="karma"] .x:hover { background: var(--fill); }
[data-design="karma"] .arrow:hover { background: var(--accent); color: var(--accent-text); }
/* Tastenreihe: Tasten in einer Fuge, gewählt in Orange */
[data-design="karma"] .seg, [data-design="karma"] .ptabs { padding: 3px; gap: 2px; border-radius: 12px; background: var(--seam); }
[data-design="karma"] .seg button, [data-design="karma"] .ptabs button { border-radius: var(--radius-ctl); background: var(--bg); color: var(--muted); font-weight: 500; transition: background-color .2s var(--kfg-ease), color .2s var(--kfg-ease); }
[data-design="karma"] .seg button:hover, [data-design="karma"] .ptabs button:hover { background: var(--fill); color: var(--text); }
[data-design="karma"] .seg button.active, [data-design="karma"] .ptabs button.active { background: var(--sel-bg); color: var(--sel-ink); font-weight: 600; box-shadow: none; }
[data-design="karma"] .toggle { border-color: var(--control); }
[data-design="karma"] .toggle:checked { background: var(--sel-bg); border-color: var(--sel-bg); }
[data-design="karma"] .toggle:checked::before { background: var(--sel-ink); }
[data-design="karma"] .weekdays input:checked + span { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); }
/* Felder: Mulden mit Innenschatten, Fokus als orangener Ring */
[data-design="karma"] .field input:not([type=checkbox]), [data-design="karma"] .field select, [data-design="karma"] .field textarea, [data-design="karma"] .pe select, [data-design="karma"] .pe input[type=time], [data-design="karma"] .ck-q, [data-design="karma"] .staff-search input, [data-design="karma"] .saldi input.box, [data-design="karma"] .details .tbl input, [data-design="karma"] .thm-c input[type=number], [data-design="karma"] .loc-name { border-color: transparent; border-radius: var(--radius-field); background: var(--fill); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
[data-design="karma"] .field input:focus-visible, [data-design="karma"] .field select:focus-visible, [data-design="karma"] .field textarea:focus-visible, [data-design="karma"] .ck-q:focus-visible, [data-design="karma"] .staff-search input:focus-visible, [data-design="karma"] .saldi input.box:focus-visible, [data-design="karma"] .loc-name:focus-visible, [data-design="karma"] .thm-c input:focus-visible, [data-design="karma"] .pe select:focus-visible, [data-design="karma"] .pe input:focus-visible, [data-design="karma"] .details .tbl input:focus-visible { background: var(--bg); box-shadow: 0 0 0 2px var(--focus); }
/* Zahlen wie im Finanzbericht: groß, kräftig */
[data-design="karma"] .ck-time, [data-design="karma"] .range-sum b, [data-design="karma"] .ztot b, [data-design="karma"] .ck-sum b, [data-design="karma"] .todo-n { font-weight: 600; letter-spacing: -.02em; }
[data-design="karma"] .ck-time { font-size: 40px; letter-spacing: -.025em; color: var(--text); text-shadow: none; }
/* Stempeluhr als dunkles Instrument, wie die Hauptkarte im Dashboard */
[data-design="karma"] .ck-head { padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: var(--disp); color: var(--on-disp); box-shadow: inset 0 0 0 1px var(--line), var(--sh-2); }
[data-design="karma"] .ck-head .ck-time { color: var(--on-disp); }
[data-design="karma"] .ck-head :is(.muted, .small, span, small) { color: var(--on-disp-2); }
[data-design="karma"] .ck-head b { color: var(--on-disp); }
/* Dienstplan: das Raster als Kachel */
[data-design="karma"] .grid { margin: 0 var(--space-xl) var(--space-lg); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
[data-design="karma"] .grid thead tr:first-child th:first-child { border-top-left-radius: var(--radius-card); }
[data-design="karma"] .grid thead tr:first-child th:last-child { border-top-right-radius: var(--radius-card); }
[data-design="karma"] .legend { padding-inline: var(--space-xl); }
[data-design="karma"] .dh.today { color: var(--accent-ink); }
[data-design="karma"] .dh.today small { border-radius: 6px; background: var(--sel-bg); color: var(--sel-ink); box-shadow: none; }
[data-design="karma"] .cell.today { background: color-mix(in srgb, var(--brand-orange) 6%, var(--bg)); }
/* Kalendertage als Kacheln mit kaum abgerundeten Ecken */
[data-design="karma"] .ac-cell, [data-design="karma"] .pd { background: var(--fill); border-radius: 6px; }
[data-design="karma"] .ac-cell.today .ac-d { border-radius: 4px; background: var(--sel-bg); color: var(--sel-ink); }
[data-design="karma"] .pd.today { box-shadow: inset 0 0 0 2px var(--accent); }
[data-design="karma"] .staff-list, [data-design="karma"] .profile { background: var(--bg); }
[data-design="karma"] .staff-item { border-radius: var(--radius-ctl); }
[data-design="karma"] .staff-item.sel { background: var(--sel-bg); color: var(--sel-ink); font-weight: 600; box-shadow: none; }
[data-design="karma"] .staff-item.sel::before { display: none; }
[data-design="karma"] .table-wrap { margin: var(--space-xs) var(--space-xl) var(--space-lg); border-radius: var(--radius-card); background: var(--bg); box-shadow: var(--shadow-card); }
[data-design="karma"] #toast { border: 0; border-radius: var(--radius-ctl); }
/* Ansicht blendet beim Wechsel ein (nicht beim ersten Laden) */
[data-design="karma"] main.vin > * { animation: kfg-in .4s var(--kfg-ease) both; }
@keyframes kfg-in { from { opacity: 0; transform: translateY(6px); } }

/* Breiter Bildschirm: Kopfleiste als Kachel mit Logo und Tastenreihe */
@media (min-width: 1025px) {
  [data-design="karma"] body { display: flex; flex-direction: column; }
  [data-design="karma"] .side { position: relative; z-index: var(--z-sticky-nav); flex: none; flex-direction: row; align-items: center; gap: var(--space-sm); margin: var(--space-sm) var(--space-xl) 0; padding: 6px 6px 6px var(--space-md); border: 0; border-radius: var(--radius-card); background: var(--bg); box-shadow: var(--shadow-card); }
  [data-design="karma"] .side-head { padding: 0; flex: none; }
  [data-design="karma"] .side-head .mark { width: 36px; height: 36px; margin-left: -6px; }
  [data-design="karma"] .side-scope { display: none; }
  [data-design="karma"] .side-name { font-size: 15px; font-weight: 500; color: var(--muted); }
  [data-design="karma"] .nav { flex: 0 1 auto; margin-right: auto; flex-direction: row; gap: 2px; padding: 3px; overflow-x: auto; scrollbar-width: none; border-radius: 12px; background: var(--seam); }
  [data-design="karma"] .nav button { width: auto; flex: none; min-height: 34px; padding: 7px 14px; border-radius: var(--radius-ctl); background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color .2s var(--kfg-ease), color .2s var(--kfg-ease); }
  [data-design="karma"] .nav button:hover { background: var(--fill); color: var(--text); }
  [data-design="karma"] .nav button svg { display: none; }
  [data-design="karma"] .nav button.active { background: var(--sel-bg); color: var(--sel-ink); font-weight: 600; box-shadow: none; }
  [data-design="karma"] .nav button.active::before { display: none; }
  [data-design="karma"] .nav button .nb { margin-left: var(--space-2xs); }
  [data-design="karma"] .nav button.active .nb { background: var(--sel-ink); color: var(--sel-bg); }
  [data-design="karma"] .side-foot { flex: none; flex-direction: row; gap: 2px; padding: 0; }
  [data-design="karma"] .foot-btn { width: auto; min-height: 34px; border-radius: var(--radius-ctl); white-space: nowrap; font-size: 13px; }
  [data-design="karma"] .work { flex: 1; }
}
@media (min-width: 1025px) and (max-width: 1360px) {
  [data-design="karma"] .nav .nav-sec { display: none; }
  [data-design="karma"] .nav .nav-more { display: flex; }
  [data-design="karma"] .nav .nav-more svg { display: block; }
  [data-design="karma"] .foot-btn[data-act=help] span { display: none; }
}
@media (max-width: 1024px) {
  [data-design="karma"] .side { border-top: var(--rule-hair) solid var(--line); background: var(--bg); box-shadow: 0 -8px 24px -12px rgba(30, 36, 48, .2); }
  [data-design="karma"] .nav button.active { color: var(--accent-ink); font-weight: 600; }
  [data-design="karma"] .nav button.active svg { color: var(--accent-ink); }
  [data-design="karma"] .nav button.active::before { background: var(--accent); box-shadow: none; }
  [data-design="karma"] .tb-mark { width: 44px; height: 44px; }
  [data-design="karma"] .pt, [data-design="karma"] .month-nav h1 { font-size: var(--text-2xl); }
  [data-design="karma"] .grid { margin: 0 var(--space-xs) var(--space-lg); }
  [data-design="karma"] .toolbar { padding-inline: var(--space-md); }
}
@media (max-width: 700px) {
  [data-design="karma"] .tb-mark { display: none; }
  [data-design="karma"] .pt, [data-design="karma"] .month-nav h1 { font-size: var(--text-xl); }
  [data-design="karma"] .grid { margin: 0 0 var(--space-lg); border-radius: 0; }
  [data-design="karma"] .grid thead tr:first-child th { border-radius: 0 !important; }
  [data-design="karma"] .card, [data-design="karma"] .ck-tile { padding: var(--space-md); }
}
@media (prefers-reduced-motion: reduce) {
  [data-design="karma"] main.vin > * { animation: none; }
}

/* ---------- Stempel-PIN im Profil, Hinweis in der Mitarbeiter-App ---------- */
.pin-box { display: grid; gap: var(--space-xs); margin: var(--space-sm) 0; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); background: var(--fill); }
.pin-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.pin-row small { display: block; color: var(--ink-muted); font-size: var(--text-xs); }
.pin { font-size: 28px; font-weight: var(--weight-strong); letter-spacing: .18em; font-variant-numeric: tabular-nums; color: var(--text); }
.pin-box .trow { padding: 0; }
.term-row { align-items: center; }
.term-new { margin-top: var(--space-sm); }
.ck-tab { margin: var(--space-xs) 0; color: var(--muted); }
.pin-show { margin-bottom: var(--space-sm); }
.pin-show summary { cursor: pointer; color: var(--accent-ink); font-weight: 500; }
.pin-show summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pin-show[open] { display: grid; gap: var(--space-3xs); }

/* ---------- Stempeluhr fürs Tablet (stempel.html) ---------- */
body.kiosk { display: flex; flex-direction: column; min-height: 100dvh; height: auto; padding: var(--space-md) var(--space-lg) var(--space-lg); gap: var(--space-md); user-select: none; -webkit-user-select: none; }
.kz-head { display: flex; align-items: center; gap: var(--space-md); }
.kz-logo { width: 56px; height: 56px; flex: none; }
.kz-where { display: grid; flex: 1; min-width: 0; }
.kz-where b { font-size: var(--text-lg); font-weight: var(--weight-strong); overflow-wrap: break-word; }
.kz-where span, .kz-clock span { color: var(--ink-muted); font-size: var(--text-sm); }
.kz-clock { display: grid; justify-items: end; }
.kz-clock b { font-size: 40px; line-height: 1; font-weight: var(--weight-display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kz-main { flex: 1; display: grid; place-items: center; }
.kz-card { width: min(100%, 460px); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--bg); box-shadow: var(--shadow-card); text-align: center; display: grid; gap: var(--space-sm); }
.kz-card h1 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: var(--weight-display); letter-spacing: -.02em; overflow-wrap: break-word; min-width: 0; }
.kz-dots { display: flex; justify-content: center; gap: var(--space-sm); margin: var(--space-xs) 0; }
.kz-dots i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--control); }
.kz-dots i.on { background: var(--text); box-shadow: none; }
.kz-msg { min-height: 1.5em; margin: 0; color: var(--neg); font-weight: 500; }
.kz-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.kz-key { min-height: 76px; border: 0; border-radius: var(--radius-ctl); background: var(--fill); color: var(--text); font: inherit; font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s ease, transform .1s ease; touch-action: manipulation; }
.kz-key:hover { background: var(--fill-h); }
.kz-key:active { transform: scale(.97); }
.kz-key:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.kz-key:disabled { opacity: .45; cursor: default; transform: none; }
.kz-key.fn { font-size: var(--text-md); color: var(--muted); }
.kz-key.ok { background: var(--sel-bg); color: var(--sel-ink); }
.kz-key.ok:disabled { background: var(--fill); color: var(--muted); }
.kz-state { margin: 0; font-size: var(--text-md); color: var(--muted); }
.kz-state.in { color: var(--pos); font-weight: 500; }
.kz-state.pause { color: var(--warn); font-weight: 500; }
.kz-acts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: var(--space-xs) 0 0; }
.kz-acts .btn { min-height: 110px; font-size: var(--text-lg); }
.kz-cancel { justify-self: center; }
.kz-ok { margin: 0; font-size: 44px; font-weight: var(--weight-display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kz-ok.in { color: var(--pos); } .kz-ok.out { color: var(--neg); } .kz-ok.pause, .kz-ok.resume { color: var(--warn); }
@media (max-width: 560px) {
  body.kiosk { padding: var(--space-sm); }
  .kz-clock b { font-size: 28px; }
  .kz-key { min-height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .kz-key { transition: none; } .kz-key:active { transform: none; } }

/* ---------- Bewerbungsformular (bewerbung.html) und Bewerbungen in der Planung ---------- */
body.bw { display: block; height: auto; min-height: 100dvh; overflow: visible; padding: var(--space-md) var(--space-md) var(--space-xl); }
.bw-head { width: min(100%, 640px); margin: 0 auto var(--space-md); }
.bw-main { width: min(100%, 640px); margin: 0 auto; }
.bw-card { padding: var(--space-lg); border-radius: var(--radius-card); background: var(--bg); box-shadow: var(--shadow-card); display: grid; gap: var(--space-sm); }
.bw-card h1 { margin: 0; font-size: var(--text-xl); line-height: 1.15; }
.bw-card fieldset { border: 0; margin: 0 0 var(--space-sm); padding: 0; min-width: 0; }
.bw-card legend { padding: 0; margin-bottom: var(--space-2xs); font-size: var(--text-sm); }
.bw-jobs { display: grid; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.bw-jobs li { padding: var(--space-sm); border: var(--rule-hair) solid var(--line); border-radius: var(--radius-ctl); }
.bw-jobs p { margin: var(--space-3xs) 0 0; color: var(--muted); white-space: pre-line; }
.bw-opts { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); }
.bw-opts label, .bw-consent { display: inline-flex; align-items: flex-start; gap: var(--space-xs); min-height: var(--ctl); }
.bw-opts input, .bw-consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.bw-consent { margin: var(--space-xs) 0; }
.bw-req { color: var(--neg); }
.bw-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bw-err { min-height: 1.5em; margin: 0; color: var(--neg); font-weight: 500; }
.bw-done { text-align: center; }
.ap-grp + .ap-grp { margin-top: var(--space-md); }
.ap-card { display: grid; gap: var(--space-2xs); padding: var(--space-sm); border: var(--rule-hair) solid var(--line); border-radius: var(--radius-ctl); background: var(--lens); }
.ap-card + .ap-card { margin-top: var(--space-xs); }
.ap-card .kv { grid-column: auto; }
.ap-msg { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.ap-acts { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; margin-top: var(--space-2xs); }
.ap-acts select { min-height: var(--ctl); }
.job-row { align-items: flex-start; }
@media (max-width: 560px) {
  body.bw { padding: var(--space-sm) var(--space-sm) var(--space-lg); }
  .bw-card { padding: var(--space-md); }
}

/* ---------- Druck ---------- */
#print { display: none; }
@media print {
  body { height: auto; overflow: visible; display: block; background: var(--bg); color: var(--text); font-size: 9pt; }
  .toolbar, .side, #toast, .pop, dialog, .legend, .head-glass { display: none !important; }
  .work { border: 0; margin: 0; overflow: visible; }
  main { overflow: visible; }
  main::before { display: none !important; }
  body.print-report main, body.print-report .work > .toolbar { display: none; }
  body.print-report #print { display: block; }
  .grid thead th, .grid .c-name, .grp th, .grp td, .grp-info { position: static; }
  .grid { font-size: 8pt; margin: 0; box-shadow: none; border-radius: 0; }
  :root { --name-w: 150px; --col-w: 30px; --row-h: auto; --wk-gap: 3px; }
  .sh { height: auto; font-size: 7pt; margin: 1px; padding: 1px 0; box-shadow: none; }
  .ab, .abs-run { height: auto; min-height: 16px; font-size: 7pt; margin: 1px 0; }
  .emp { height: auto; padding: var(--space-3xs); }
  .emp .av, .emp .sub, .corner, .wk-all, .wkl svg, .grp-band .tg { display: none; }
  .lane { display: none !important; }
  .grp-gap td { height: 6px; }
  .grp th, .grp td, .gm th.c-name { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cell { height: auto; }
  #print h1 { font-size: 15pt; margin: 0 0 2mm; }
  #print .meta { margin: 0 0 4mm; color: var(--muted); }
  #print table { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
  #print th, #print td { border-top: .3pt solid var(--control); padding: 1.2mm 1.4mm; text-align: left; }
  #print th { border-bottom: .6pt solid var(--text); }
  #print .num { text-align: right; }
  #print tr.we td { background: var(--ground); }
  #print .sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3mm; margin-top: 5mm; }
  #print .sum div { border: .4pt solid var(--control); padding: 2mm 3mm; }
  #print .sum b { display: block; font-size: 11pt; }
  #print .sign { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14mm; margin-top: 16mm; }
  #print .sign div { border-top: .5pt solid var(--text); padding-top: 1.5mm; }
}
