/* Schichtplan – Gestaltung. Maße und Farben nach doku/design-messwerte.md. */
@font-face { font-family: "Satoshi"; src: url("/static/fonts/satoshi-variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Parkinsans"; src: url("/static/fonts/parkinsans-latin-ext.woff2") format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Parkinsans"; src: url("/static/fonts/parkinsans-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --fg: #14130f; --fg-support: #454035; --fg-subtle: #686150; --fg-disabled: #b3ae98; --fg-selected: #0e1439;
  --brand: #5066f9; --brand-hover: #122eed; --brand-weak: #dce1fe; --brand-border-weak: #bbc3fc;
  --page: #fff; --surface: #f4f3ec; --muted: #f8f7f1; --section: #e7e5da; --hover: rgba(150,140,85,.07); --alt: rgba(150,140,85,.11);
  --border: #e7e5da; --border-subtle: #f4f3ec;
  --danger: #dd2b26; --danger-hover: #b71e1a; --danger-weak: #ffc0bd; --danger-field: #fff1f0;
  --success: #06c270; --success-fg: #047c48; --success-weak: #b6fcdd;
  --warning: #fa9a32; --warning-weak: #ffca88; --warning-fg: #a85c00;
  --dark: #1c1c1b; --dark-fg: #f8f8f7;
  --font: "Satoshi", "Helvetica Neue", Arial, sans-serif; --font-title: "Parkinsans", "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); --shadow-xs: 0 1px 2px 0 rgba(0,0,0,.05);
  --ease: .15s cubic-bezier(.4,0,.2,1);
  --left-col: 200px; --total-col: 130px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--font); font-size: 14px; line-height: 20px; color: var(--fg); background: var(--surface); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-title); font-weight: 600; }
.ic { display: block; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--fg-support); }
.subtle { color: var(--fg-subtle); }
.hidden { display: none !important; }

/* ---------- Aufbau ---------- */
#app { display: flex; height: 100%; }
.side { width: 256px; flex: none; background: var(--page); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden auto; scrollbar-width: none; transition: width var(--ease); }
.side-head { height: 58px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 0; margin-left: 1px; position: sticky; top: 0; background: inherit; z-index: 2; }
.brand { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-family: var(--font-title); font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: #0e1439; }
.brand-mark { width: 24px; height: 24px; flex: none; display: grid; place-content: center; border-radius: 7px; background: #0e1439; color: #fff; }
.nav { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 6px; background: none; font-weight: 600; color: var(--fg-support); white-space: nowrap; overflow: hidden; text-align: left; }
.nav-item .ic { color: var(--fg-subtle); }
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: var(--brand-weak); color: var(--fg-selected); }
.nav-item.active .ic { color: inherit; }
.nav-item .chev { margin-left: auto; color: var(--fg) !important; }
.nav-item:focus-visible, .btn:focus-visible, .icon-btn:focus-visible { outline: 1px solid var(--brand); outline-offset: 1px; }
.side-spacer { flex: 1 1 auto; min-height: 16px; }
.side-user { position: sticky; bottom: 0; background: inherit; border-top: 1px solid var(--border); padding: 16px 8px; }
.user-btn { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 4px; border: 0; border-radius: 6px; background: none; font-weight: 600; text-align: left; }
.user-btn:hover { background: var(--hover); }
.side.collapsed { width: 59px; }
.side.collapsed .nav-item span, .side.collapsed .nav-item .chev, .side.collapsed .brand span, .side.collapsed .user-btn span { display: none; }
.side.collapsed .brand { padding: 8px 12px; }
.side.collapsed .side-head { flex-direction: column; height: auto; padding-right: 0; }
.main { flex: 1 1 auto; min-width: 0; height: 100%; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); }
/* Ausklappfeld der Seitenleiste, Maße wie im Original: 16 neben dem Menüpunkt, erster Eintrag auf dessen Höhe, Einträge 38 hoch mit 4 Abstand */
.flyout { position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 4px; background: var(--page); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 16px; min-width: 204px; }
.flyout h6 { margin: 0; font: 600 12px/16px var(--font); text-transform: uppercase; color: #686150; }
.flyout .nav-item { font-weight: 600; color: var(--fg); }

/* ---------- Avatare ---------- */
.avatar { width: 28px; height: 28px; flex: none; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 16px; font-weight: 700; color: #14130f; overflow: hidden; }
.avatar.lg { width: 36px; height: 36px; font-size: 14px; }
.avatar.xl { width: 120px; height: 120px; font-size: 40px; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }

/* ---------- Knöpfe ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 34px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--page); font-weight: 600; white-space: nowrap; user-select: none; transition: background var(--ease), border-color var(--ease); }
.btn:hover { background: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { background: var(--danger-hover); border-color: var(--danger-hover); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.selected { background: var(--brand-weak); border-color: var(--brand-border-weak); color: var(--fg-selected); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn.flip .ic { transform: rotate(180deg); }
.btn.sm { height: 28px; padding: 4px 8px; font-size: 12px; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; padding: 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--fg); }
.icon-btn:hover { background: var(--hover); }
.icon-btn.selected { background: var(--brand-weak); color: var(--brand); }
.icon-btn.primary { background: var(--brand); color: #fff; }
.icon-btn.primary:hover { background: var(--brand-hover); }
.icon-btn.sm { width: 24px; height: 24px; padding: 4px; }
.link { color: var(--brand); font-weight: 500; }
.link:hover { color: var(--brand-hover); text-decoration: underline; }

/* ---------- Seitenkopf ---------- */
.ph { height: 58px; flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px; }
.ph-group { display: flex; align-items: center; gap: 4px; height: 42px; padding: 0 4px; background: var(--page); border: 1px solid var(--border); border-radius: 8px; min-width: 0; }
.ph-right { margin-left: auto; }
.ph.with-panel { padding-left: 218px; }
.ph-title { align-self: center; font-weight: 700; font-size: 14px; padding: 0 8px; font-family: var(--font-title); }
.date-trigger { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 6px 13px; margin: 0 -5px; border: 0; border-radius: 6px; background: none; font-weight: 600; white-space: nowrap; }
.date-trigger.open .ic:last-child { transform: rotate(180deg); }
.sched-head .truncate .muted { margin: 0 4.5px; } /* Trenner im Titel: 8 Bildpunkte Luft je Seite wie im Original */
.date-trigger:hover, .date-trigger.open { background: var(--hover); }
.tabs { display: flex; align-items: center; gap: 4px; height: 42px; padding: 0 4px; background: var(--page); border: 1px solid var(--border); border-radius: 8px; }
.tab { position: relative; height: 40px; padding: 0 8px; border: 0; background: none; font-weight: 500; color: var(--fg-support); white-space: nowrap; }
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px; }
.page { flex: 1 1 auto; min-height: 0; display: flex; padding: 0 8px 8px; gap: 8px; }
.scroll { overflow: auto; }
.content { flex: 1 1 auto; min-width: 0; overflow: auto; padding: 16px 8px 32px; }
.narrow { max-width: 840px; margin: 0 auto; }
.wide { max-width: 1200px; margin: 0 auto; }

/* ---------- Karten, Tabellen ---------- */
.card { background: var(--page); border: 1px solid var(--border-subtle); border-radius: 12px; box-shadow: var(--shadow-xs); }
.card-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-family: var(--font-title); font-weight: 600; }
.card-body { padding: 16px 20px; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 24px; text-align: center; color: var(--fg-support); }
.empty-ic { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--surface); border-radius: 8px; color: var(--fg); }
.table { width: 100%; border-collapse: collapse; background: var(--page); }
.table th { text-align: left; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; background: var(--page); z-index: 1; }
.table td { padding: 8px 12px; border-bottom: 1px solid var(--border); height: 42px; }
.table tr:hover td { background: var(--muted); }
.table td a { white-space: nowrap; }
.table-box { background: var(--page); border: 1px solid var(--border); border-radius: 6px; overflow: auto; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 600; border: 1px solid var(--brand-border-weak); background: var(--brand-weak); color: #15258f; }
.badge.danger { background: var(--danger-weak); border-color: #fb9491; color: #420b0a; }
.badge.warning { background: var(--warning-weak); border-color: #fdba67; color: #331c02; }
.badge.success { background: var(--success-weak); border-color: #7efbc5; color: #043821; }
.badge.neutral { background: var(--surface); border-color: var(--border); color: var(--fg-support); }
.badge.solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; line-height: 14px; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > label, .label { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.input, .select, .textarea { width: 100%; height: 36px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--page); outline: none; transition: border-color var(--ease), box-shadow var(--ease); }
.textarea { height: auto; min-height: 92px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--fg-subtle); }
.input:hover, .select:hover, .textarea:hover { border-color: #d1d1cd; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.input:disabled, .select:disabled { background: var(--surface); color: var(--fg-support); }
.input.invalid { border-color: var(--danger); background: var(--danger-field); }
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%2314130f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.input-group { display: flex; align-items: center; height: 36px; border: 1px solid var(--border); border-radius: 6px; background: var(--page); overflow: hidden; }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.input-group .input { border: 0; box-shadow: none; height: 34px; }
.input-group .affix { padding: 0 10px; color: var(--fg-subtle); white-space: nowrap; }
.input-group .affix-box { align-self: stretch; display: flex; align-items: center; padding: 0 9px; background: var(--surface); border-left: 1px solid var(--border); color: var(--fg); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { appearance: none; width: 16px; height: 16px; flex: none; margin: 0; border: 1px solid #d1d1cd; border-radius: 4px; background: var(--page); display: grid; place-content: center; cursor: pointer; }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }
.check.dotted span { text-decoration: underline dotted; text-underline-offset: 3px; }
.days { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 0; }
.days label { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 999px; background: var(--page); font-size: 12px; font-weight: 500; cursor: pointer; }
.days input { position: absolute; opacity: 0; pointer-events: none; }
.days input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; }
.days input:disabled + label { color: var(--fg-disabled); cursor: default; }
.swatches { display: grid; grid-template-columns: repeat(6, 24px); gap: 8px; }
.swatch { width: 24px; height: 24px; border-radius: 999px; border: 0; padding: 0; display: grid; place-content: center; color: #fff; }
.switch { position: relative; width: 30px; height: 18px; border-radius: 999px; border: 0; background: #d1d1cd; padding: 0; flex: none; transition: background var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 999px; background: #fff; transition: transform var(--ease); }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(12px); }
.hint { font-size: 12px; line-height: 16px; color: var(--fg-subtle); }
.error-text { color: var(--danger); font-size: 12px; line-height: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.col-full { grid-column: 1 / -1; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------- Menü, Dialog, Hinweise ---------- */
.menu { position: fixed; z-index: 120; min-width: 224px; max-height: 80vh; overflow: auto; display: flex; flex-direction: column; gap: 2px; padding: 4px; background: var(--page); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
.menu-item { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px; border: 0; border-radius: 8px; background: none; font-weight: 500; text-align: left; white-space: nowrap; }
.menu-item:hover { background: var(--hover); }
.menu-item.selected { background: var(--brand-weak); color: var(--fg-selected); }
.menu-item.accent { background: var(--success-weak); }
.menu-item.accent.out { background: var(--danger-weak); }
.menu-item .trail { margin-left: auto; color: var(--fg-support); display: flex; align-items: center; gap: 8px; }
.menu-sep { height: 1px; margin: 4px -4px; background: var(--border); flex: none; }
.backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.32); display: flex; justify-content: center; align-items: flex-start; overflow: auto; }
.dialog { width: 600px; max-width: 90vw; max-height: 90vh; margin-top: 32px; display: flex; flex-direction: column; background: var(--page); border: 1px solid var(--border-subtle); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.dialog.wide { width: 736px; }
.dialog.sm { width: 440px; }
.dialog-head { display: flex; align-items: center; gap: 8px; padding: 24px 24px 20px; flex: none; }
.dialog-head h3 { font-size: 16px; line-height: 24px; }
.dialog-head .acts { margin-left: auto; display: flex; }
.dialog-body { padding: 8px 24px; overflow: auto; flex: 1 1 auto; }
.dialog-foot { display: flex; align-items: center; gap: 12px; padding: 24px; flex: none; }
.dialog-foot .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; background: var(--dark); color: var(--dark-fg); font-weight: 500; box-shadow: var(--shadow-lg); animation: toast-in .18s ease-out; }
.toast.error .ic { color: #f35f5b; }
.toast.ok .ic { color: var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.tip { position: fixed; z-index: 300; max-width: 260px; padding: 6px 10px; border-radius: 8px; background: var(--dark); color: var(--dark-fg); font-size: 12px; line-height: 16px; font-weight: 600; pointer-events: none; }
.cal { position: fixed; z-index: 130; width: 422px; padding: 16px; background: var(--page); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
.cal-head { display: flex; align-items: center; gap: 4px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.cal-head .icon-btn { width: 34px; height: 34px; }
.cal-head b { flex: 1; text-align: center; font-weight: 500; }
.cal-title { height: 34px; padding: 6px 12px; border: 0; border-radius: 6px; background: none; font: inherit; }
.cal-title:hover { background: var(--hover); }
.cal-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 4px; }
.cal-months button { height: 34px; border: 1px solid transparent; border-radius: 6px; background: none; font-weight: 500; }
.cal-months button:hover { background: var(--hover); }
.cal-months button.on { background: var(--hover); border-color: var(--brand); }
.cal-grid { position: relative; display: grid; grid-template-columns: 52px repeat(7, 48px); row-gap: 16px; align-items: center; }
.cal-grid::before { content: ""; position: absolute; left: 52px; top: 0; bottom: 0; border-left: 1px solid var(--border); }
.cal-grid .wk { color: var(--fg-subtle); font-size: 12px; text-align: center; height: 34px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; }
.cal-grid .dow { font-weight: 700; text-align: center; height: 34px; display: flex; align-items: center; justify-content: center; }
.cal-grid .dow:first-child { font-size: 12px; }
.cal-day { height: 34px; border: 0; background: none; padding: 0; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.cal-day i { font-style: normal; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.cal-day:hover i { background: var(--hover); }
.cal-day.out { color: var(--fg-disabled); font-weight: 400; }
.cal-day.in { background: var(--brand-weak); }
.cal-day.first { margin-left: 7px; justify-content: flex-start; border-radius: 999px 0 0 999px; }
.cal-day.last { margin-right: 7px; justify-content: flex-end; border-radius: 0 999px 999px 0; }
.cal-day.edge i { background: var(--brand); color: #fff; }
.cal-day.today:not(.edge) i { background: var(--alt); }
.cal-foot { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--border); }
/* schmale Bildschirme (Handy): die Datumsauswahl füllt die Breite, die Tagesspalten teilen sich den Platz */
@media screen and (max-width: 460px) {
  .cal { width: calc(100vw - 16px); padding: 12px; }
  .cal-grid { grid-template-columns: 40px repeat(7, minmax(0, 1fr)); row-gap: 10px; }
  .cal-grid::before { left: 40px; }
  .cal-day.first { margin-left: 2px; } .cal-day.last { margin-right: 2px; }
  .cal-head { padding-bottom: 12px; margin-bottom: 12px; } .cal-foot { padding-top: 12px; margin-top: 12px; }
}

/* ---------- Seitenleisten in der Seite (Filter, Vorlagen) ---------- */
.panel { width: 208px; flex: none; margin: 0 0 0 -8px; background: var(--page); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; margin-top: -58px; z-index: 3; }
.panel-head { height: 48px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; font-family: var(--font-title); font-weight: 600; }
.panel-head .icon-btn { margin-left: auto; }
.panel-body { padding: 8px 10px 16px; overflow: auto; }
.panel h5 { margin: 20px 0 14px; font: 600 14px/20px var(--font-title); display: flex; align-items: center; justify-content: space-between; }
.panel .check { display: flex; padding: 2px 0; font-size: 13.5px; }
.panel .check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-tabs { display: flex; gap: 16px; padding: 0 16px; flex: none; }
.panel-tabs button { border: 0; background: none; padding: 26px 0 6px; font: 600 14px/20px var(--font-title); color: var(--fg-support); border-bottom: 2px solid transparent; }
.panel-tabs button.active { color: var(--fg); border-bottom-color: var(--brand); }
.search { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--page); color: var(--fg-subtle); }
.search input { border: 0; outline: 0; background: none; width: 100%; min-width: 0; color: var(--fg); }
.tpl { display: flex; align-items: center; height: 34px; margin: 0 0 4px; border: 2px solid; border-radius: 8px; padding-right: 2px; cursor: grab; }
.tpl .bar { width: 6px; height: 26px; margin-left: 2px; border-radius: 999px; flex: none; }
.tpl .txt { margin-left: 6px; min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tpl b { font-size: 12px; line-height: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl small { font-size: 10px; line-height: 14px; color: var(--fg-support); }
.tpl.off { opacity: .45; }
.team-row { display: flex; align-items: center; gap: 8px; height: 26px; }
.team-row i { width: 16px; height: 16px; border-radius: 4px; flex: none; }

/* ---------- Dienstplan ---------- */
.sched { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: var(--page); border: 1px solid var(--border); border-radius: 6px; position: relative; }
.sched-head { height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid var(--border); font-weight: 600; border-radius: 6px 6px 0 0; }
.sched-head .right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.pub { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--fg-support); }
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--success); flex: none; }
.dot.off { background: var(--alt); }
.dot.red { background: var(--danger); }
.sched-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; position: relative; }
.grid { min-width: 100%; width: max-content; }
.grid.fit { width: 100%; }
.prow { display: flex; border-bottom: 1px solid var(--border); min-height: 40px; }
.prow.head { position: sticky; top: 0; z-index: 5; background: var(--page); height: 56px; }
.pleft { width: var(--left-col); min-width: var(--left-col); flex: none; position: sticky; left: 0; z-index: 3; background: var(--page); border-right: 1px solid var(--border); }
.pcol { flex: 1 1 0; min-width: 100px; position: relative; }
.pcol + .pcol { border-left: 1px solid var(--border); }
.pleft + .pcol { border-left: 0; }
.ptotal { width: var(--total-col); min-width: var(--total-col); flex: none; border-left: 1px solid var(--border); padding: 8px; }
.daycell { display: flex; flex-direction: column; height: 100%; padding: 8px; cursor: pointer; border-bottom: 2px solid transparent; }
.daycell:hover { background: var(--hover); }
.daycell .top { display: flex; align-items: center; justify-content: space-between; height: 16px; }
.daycell .dow { font-size: 12px; line-height: 15px; font-weight: 600; color: var(--fg-support); }
.daycell .num { margin-top: auto; font-size: 16px; line-height: 20px; font-weight: 700; }
.daycell.today { border-bottom-color: var(--brand); }
.daycell.today .dow, .daycell.today .num { color: var(--brand); }
.srow { min-height: 37px; height: 37px; }
.srow .pleft { display: flex; align-items: center; padding: 2px 12px 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .pcol { display: flex; align-items: center; gap: 4px; padding: 8px; font-size: 12px; line-height: 16px; font-weight: 600; }
.srow .ptotal { display: flex; align-items: center; padding: 4px 4px; }
.srow .ptotal span { display: block; width: 100%; padding: 2px 8px; border-radius: 4px; background: var(--alt); font-size: 12px; line-height: 16px; font-weight: 600; }
.teamrow { display: flex; align-items: center; width: 100%; min-height: 32px; padding: 0; border: 0; border-bottom: 1px solid var(--border); background: var(--section); text-align: left; position: sticky; left: 0; }
.teamrow .name { position: sticky; left: 0; display: flex; align-items: center; gap: 8px; padding-left: 8px; min-width: 0; }
.teamrow .name i { width: 6px; height: 24px; border-radius: 4px; flex: none; }
.teamrow .name b { font-size: 12px; line-height: 16px; font-weight: 600; }
.teamrow .name small { font-size: 10px; letter-spacing: .03em; text-transform: uppercase; color: var(--fg-support); }
.teamrow .chev { position: sticky; right: 0; margin-left: auto; padding: 0 8px; display: flex; transition: transform var(--ease); }
.teamrow.closed .chev svg { transform: rotate(180deg); }
.emp { display: flex; align-items: center; gap: 8px; height: 36px; padding: 4px 8px; font-weight: 600; min-width: 0; }
.emp a:hover { text-decoration: underline; }
.emp .hrs { margin-left: auto; font-size: 10px; line-height: 14px; font-weight: 600; color: var(--fg-subtle); white-space: nowrap; }
.cellrow .pcol { padding: 0 3px 2px; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; }
.cellrow .pcol.weekend { background: transparent; }
.cellrow .pcol:hover { background: var(--hover); }
.cellrow .pcol.drop { background: var(--brand-weak); }
.cellrow .pcol .plus { display: none; flex: 1; align-items: center; justify-content: center; color: var(--fg); min-height: 34px; }
.cellrow .pcol:hover > .plus:only-child, .cellrow .pcol.can:hover > .plus.solo { display: flex; }
.dropzones { position: absolute; inset: 0; display: none; z-index: 4; }
.pcol.drop .dropzones { display: flex; }
.dropzones div { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--page); outline: 1px dashed var(--brand-border-weak); outline-offset: -3px; }
.dropzones div.on { background: var(--brand-weak); color: var(--brand); }
.shift { position: relative; display: flex; align-items: center; height: 34px; margin: 3px 0 0; flex: none; border: 2px solid; border-radius: 8px; min-width: 0; cursor: pointer; }
.shift .bar { width: 6px; height: 26px; margin-left: 2px; border-radius: 999px; flex: none; }
.shift .txt { margin-left: 6px; min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.shift b { font-size: 12px; line-height: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift small { font-size: 10px; line-height: 14px; color: var(--fg-support); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift .ics { display: flex; align-items: center; gap: 4px; padding-right: 8px; flex: none; }
.shift .acts { display: none; position: absolute; inset: 0; align-items: center; justify-content: space-between; padding: 0 6px; background: var(--page); border-radius: 6px; }
.shift .acts button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; display: grid; place-content: center; }
.shift .acts button:hover { background: var(--hover); }
.shift .acts .del { color: var(--danger); }
.can .shift:hover .acts { display: flex; }
.shift.dragging { opacity: .4; }
.shift .warn { position: absolute; top: -5px; right: -4px; width: 14px; height: 14px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-content: center; z-index: 1; }
.shift.conflict { background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.07) 0 6px, transparent 6px 12px); }
.shift.mine { box-shadow: 0 0 0 2px var(--brand-weak); }
.abs { display: flex; align-items: center; gap: 4px; height: 34px; margin: 3px 0 0; flex: none; padding: 2px 4px; border: 2px solid; border-radius: 8px; color: #1f1f1e; box-shadow: var(--shadow-xs); min-width: 0; }
.abs b { font-size: 12px; line-height: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abs.pending { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 6px, transparent 6px 12px); }
.abs.icon-only { justify-content: center; }
.sched-status { height: 45px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px; border-top: 1px solid var(--border); color: var(--fg-support); }
.sched-status .left { display: flex; align-items: center; gap: 24px; }
.sblock { display: flex; align-items: center; gap: 8px; padding: 4px 8px; white-space: nowrap; border: 0; background: none; color: inherit; border-radius: 6px; }
button.sblock:hover { background: var(--hover); }
.sblock b { color: var(--fg); font-weight: 400; }
.rowlabel { display: flex; align-items: center; padding: 0 10px; font-weight: 500; }
/* Monat */
.grid.month .pcol { min-width: 60px; flex: 0 0 60px; }
.grid.month .ptotal { position: sticky; right: 0; z-index: 2; width: 145px; min-width: 145px; background: var(--page); }
.grid.month .prow.head .ptotal { z-index: 5; }
.grid.month .teamrow { position: sticky; left: 0; }
.grid.month.loose .pcol { min-width: 100px; flex: 0 0 100px; }
.grid.month .daycell { padding: 8px 6px; }
.grid.month .shift .txt { margin-left: 2px; }
.grid.month.compact .shift small { display: none; }
.grid.month.compact .shift .ics { padding-right: 4px; }
.grid.month.compact .shift .txt { margin-left: 3px; }
/* Tag */
.timeline { position: relative; }
.grid.day .pcol { min-width: 0; padding: 0; }
/* Zeitleiste: Stundenleiste und Spuren gleich breit (mindestens 60 px je Stunde, --tl-min aus schedule.js); schmaler als der
   Bildschirm wird sie nie, breiter darf sie werden (am Handy wird dann seitlich innerhalb des Plans geblättert) */
.grid.day.timeline { width: max-content; min-width: 100%; }
.grid.day .tl-hours, .grid.day .tl-lane { min-width: var(--tl-min, 0px); }
.tl-hours { display: flex; flex: 1 1 auto; }
.tl-hours div { flex: 1 1 0; min-width: 60px; padding: 0 8px; border-left: 1px solid var(--border); font-size: 16px; line-height: 30px; font-weight: 600; }
.tl-lane { position: relative; flex: 1 1 auto; background-image: linear-gradient(to right, var(--border) 1px, transparent 1px); cursor: pointer; }
.tl-lane .shift, .tl-lane .abs { position: absolute; margin: 0; }
/* kurze Balken (schedule.js kurzeBalken): erst ohne Symbole, dann Kürzel statt Name (Name im Tooltip), Uhrzeit nur ganz oder gar nicht */
.tl-lane .shift .kz { display: none; }
.tl-lane .shift.kurz .txt, .tl-lane .abs.kurz b, .tl-lane .shift.ohne-zeit small { display: none; }
.tl-lane .shift.kurz .kz { display: block; margin-left: 3px; flex: 1; min-width: 0; font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.tl-lane .shift.kurz.ohne-kz .kz { display: none; }
.tl-lane .shift.kurz .ics { padding-right: 4px; }
.tl-lane .shift.kuerzer .ics, .tl-lane .abs.kuerzer svg { display: none; }
.tl-lane .abs.kurz { justify-content: center; padding: 2px; }
.now-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand); z-index: 2; pointer-events: none; }

/* ---------- Startseite ---------- */
.hello { font: 800 20px/28px var(--font-title); margin: 0 0 32px; }
/* Startseite nach Messung (1918 breit): Rand 96, oben 64, drei Karten je 469 × 336, Abstand 32, Kartenkopf 48 */
.dash-wrap { padding: 64px 96px 16px; }
.ph.ph-dash { display: none; }
.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.dash .card { height: 336px; display: flex; flex-direction: column; overflow: hidden; border: 0; border-radius: 8px; }
.dash .card-body { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.dash .card-head h3 { flex: 1; margin: 0; font: 600 16px/20px var(--font-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 12px; margin-top: auto; }
.dash .empty .dash-btns { margin-top: 0; padding: 4px 0 0; }
.nowrap { white-space: nowrap; }
.dash .card-head { height: 48px; flex: none; justify-content: space-between; padding: 0 8px 0 16px; }
.dash .card-head .rng { display: flex; align-items: center; gap: 8px; font: 500 14px var(--font); }
.dash .card-head .select { width: 106px; height: 34px; }
.dash .card .empty { flex: 1; }
.mini { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border-subtle); }
.mini .when { width: 92px; font-weight: 600; flex: none; }
.dash-foot { display: flex; align-items: center; gap: 24px; padding: 16px 8px; }

/* ---------- Arbeitszeitprotokoll ---------- */
.ts-group th { background: var(--muted); border-bottom: 2px solid; font-weight: 600; }
.ts td { height: 30px; padding: 2px 8px; white-space: nowrap; }
.ts .person { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ts tr.plan td { color: var(--fg-support); }
.ts .mark { width: 4px; padding: 0; }
.ts-total td { background: var(--page); font-weight: 600; }
.clock-big { font: 700 44px/1 var(--font-title); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- Profil, Einstellungen ---------- */
.settings { display: flex; flex: 1; min-height: 0; }
.subnav { width: 210px; flex: none; background: var(--page); border-right: 1px solid var(--border); padding: 0 8px 8px; overflow: auto; }
.subnav h4 { height: 48px; display: flex; align-items: center; padding: 0 8px; font-size: 14px; }
.subnav .nav { padding: 0; }
.set-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.set-section h4 { font: 600 14px/20px var(--font); margin-bottom: 2px; }
.set-section .stack { display: flex; flex-direction: column; gap: 16px; }
.list { background: var(--page); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 12px; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-row.head { background: var(--muted); font-weight: 600; }
.list-row .right { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: none; }
.list-row .truncate { min-width: 0; }
.list-row.lvl1 { padding-left: 32px; }
.list-row.lvl2 { padding-left: 52px; }
.sq { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.profile-side { width: 208px; flex: none; margin-left: -8px; margin-top: -58px; background: var(--page); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; z-index: 3; }
.profile-side .me { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 8px 12px; font-weight: 600; }
.plist { overflow: auto; border-top: 1px solid var(--border); }
.plist a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--border-subtle); }
.plist a:hover { background: var(--muted); }
.plist a.active { background: var(--brand-weak); }
.plist small { display: block; font-size: 12px; line-height: 14px; color: var(--fg-support); }
.kv { display: grid; grid-template-columns: 180px 1fr 160px 1fr; gap: 8px 12px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 22px 12px; border-top: 2px solid var(--brand); }
.stat3 b { display: block; font: 600 22px/30px var(--font-title); }
.month-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--page); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.month-cal .mh { padding: 6px; text-align: center; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); background: var(--muted); }
.month-cal .mc { min-height: 96px; padding: 4px 4px 6px; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); }
.month-cal .mc.out { background: var(--muted); }
.month-cal .mc .n { text-align: right; font-size: 12px; font-weight: 500; color: var(--fg-support); padding: 2px 4px; }
.month-cal .mc.today { outline: 2px solid var(--brand); outline-offset: -2px; }
.month-cal > :nth-child(7n+1) { border-left: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px; font-size: 12px; color: var(--fg-support); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 999px; }
.abscal .pcol { min-width: 40px; flex: 0 0 40px; }
.abscal .bar-abs { position: absolute; top: 4px; height: 24px; border-radius: 6px; padding: 0 8px; font-size: 12px; font-weight: 700; display: flex; align-items: center; overflow: hidden; white-space: nowrap; color: #1f1f1e; z-index: 1; }
.abscal .pcol.we { background: var(--surface); }
.abscal .pcol.today { box-shadow: inset 2px 0 0 var(--brand); }

/* ---------- Anmeldung ---------- */
.login-wrap { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login { width: 400px; max-width: 100%; padding: 32px; }
.login h1 { font-size: 22px; line-height: 30px; margin: 24px 0 4px; }
.login form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.login .btn { height: 40px; }

/* ---------- Kleine Bildschirme ---------- */
.menu-toggle { display: none; }
@media screen and (max-width: 900px) {
  :root { --left-col: 132px; --total-col: 0px; }
  .side { position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; transform: translateX(-100%); transition: transform var(--ease); box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .menu-toggle { display: inline-flex; }
  .ph { overflow-x: auto; scrollbar-width: none; }
  .ph.with-panel { padding-left: 8px; }
  .ptotal { display: none; }
  .pcol { min-width: 112px; }
  .emp { padding: 4px 6px; gap: 6px; }
  .emp .avatar { width: 22px; height: 22px; font-size: 10px; }
  .emp a { font-size: 13px; }
  .panel, .profile-side { position: fixed; z-index: 65; top: 0; bottom: 0; left: 0; margin: 0; width: 260px; box-shadow: var(--shadow-lg); }
  .dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; margin: 0; border-radius: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid.keep2 { grid-template-columns: 1fr 1fr; }
  .set-section { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 130px 1fr; }
  .hello { margin-top: 16px; }
  .sched-status .left .sblock:nth-child(-n+2) { display: none; }
  .subnav { width: 56px; }
  .subnav .nav-item span, .subnav h4 { display: none; }
  .hide-sm { display: none !important; }
}
/* ---------- Drucken: A4 quer in der normalen Darstellung (alle Breiten-Regeln oben gelten nur am Bildschirm), der Plan auf
   Seitenbreite verkleinert, Farben wie am Bildschirm. Die Monatsansicht verkleinert schedule.js vor dem Druck zusätzlich. */
@page { size: A4 landscape; margin: 8mm; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .side, .ph, .panel, .sched-status, .sched-head .btn, .sched-head .icon-btn, .subnav, .profile-side, .toasts, .tip, .menu, .flyout, .cal, .backdrop { display: none !important; }
  html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
  #app, .main, .page, .sched, .sched-wrap, .content, .settings { display: block !important; height: auto !important; overflow: visible !important; background: #fff; }
  .sched { border: 0; margin: 0; }
  .page { padding: 0 !important; }
  .sched-wrap { zoom: .75; }
  .prow.head, .pleft, .ptotal, .grid.month .ptotal, .ts-head, .ma-cal-head, .ma-team, .ma-name, .ma-corner { position: static !important; }
  .prow, .ts-row, .ma-row { break-inside: avoid; }
  .teamrow, .ts-head { break-after: avoid; } /* Team-Überschrift nicht allein am Seitenende */
  .shift .acts, .dropzones, .now-line { display: none !important; }
  .lade, .load-error .btn, .only-sm { display: none !important; }
  .only-print { display: inline !important; margin-left: 10px; font-weight: 500; white-space: nowrap; }
}
.only-print { display: none; }

/* ===== Mitarbeiter (static/js/views/employees.js): Abwesenheitskalender, Mitarbeiterliste, Mitarbeiterprofil =====
   Alle Regeln beginnen mit .ma- und gelten nur dort. Maße nach den Messvorlagen 31 bis 37 bei 1918 px:
   Kalender: Namensspalte 220 · Tag 48 breit · Kopf 22 (Monat) + 15 (Woche) + 36 (Tag) · Teamzeile 32 · Zeile 32 je Spur + 1 ·
   Balken 28 hoch, Rand 2, Radius 8, Schrift 12/16 fett · Legende 12/16, Punkt 8.
   Liste: Werkzeugzeile 34 hoch (Suche 240, Auswahl 208 und 240, Abstand 16) · Karte Radius 8 · Kopfzeile 39 · Zeile 51 · Zelle 8×16 · Marke 20 hoch.
   Profil: Seitenliste 270 (Eintrag 65, Bild 36, Name/E-Mail 12/16) · Reiter 40 hoch · Karte Radius 12, innen 24 · Feldname 205 breit. */
.ma-bgroup { display: inline-flex; flex: none; }
.ma-bgroup > button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 6px; border: 1px solid var(--border); background: var(--page); font-weight: 600; color: var(--fg); position: relative; }
.ma-bgroup > button + button { margin-left: -1px; }
.ma-bgroup > button:first-child { border-radius: 6px 0 0 6px; }
.ma-bgroup > button:last-child { border-radius: 0 6px 6px 0; }
.ma-bgroup > button.txt { width: auto; min-width: 34px; padding: 6px 12px; white-space: nowrap; }
.ma-bgroup > button:hover:not(:disabled) { background: var(--muted); }
.ma-bgroup > button:focus-visible { outline: 1px solid var(--brand); outline-offset: -1px; z-index: 1; }
.ma-bgroup > button.on { background: var(--brand-weak); border-color: var(--brand-border-weak); color: var(--fg-selected); z-index: 1; }
.ma-bgroup > button:disabled { color: var(--fg-disabled); cursor: default; }
.ma-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--brand-border-weak); border-radius: 4px; background: var(--brand-weak); color: var(--fg-selected); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.ma-badge.off { background: var(--danger-weak); border-color: #fb9491; color: #420b0a; }
.ma-badge.invite { background: var(--warning-weak); border-color: #fdba67; color: #331c02; }
.ma-badge.grau { background: var(--alt); border-color: var(--border); color: var(--fg); }
.ma-search { display: flex; align-items: center; width: 240px; height: 34px; flex: none; border: 1px solid var(--border); border-radius: 6px; background: var(--page); color: var(--fg); }
.ma-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.ma-search .ic { margin: 0 8px; }
.ma-search input { flex: 1; min-width: 0; height: 32px; padding: 6px 10px 6px 0; border: 0; outline: 0; background: none; font-weight: 600; }
.ma-search input::placeholder { color: var(--fg-subtle); font-weight: 500; }
.ma-select.select { height: 34px; padding-top: 6px; padding-bottom: 6px; }
.ma-art { display: inline-flex; align-items: center; gap: 6px; }
.ma-art i, .ma-chips i { width: 8px; height: 8px; border-radius: 4px; flex: none; }
.ma-dl { display: grid; grid-template-columns: 132px 1fr; gap: 10px 16px; margin: 0 0 8px; }
.ma-dl dt { font-weight: 600; color: var(--fg-support); }
.ma-dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.ma-hours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ma-hours .hint { text-align: center; }
.ma-hours .input { padding: 6px 4px; text-align: center; }

/* --- Abwesenheitskalender --- */
.ma-cal { --ma-namew: 220px; flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--page); border: 1px solid var(--border); border-radius: 6px; }
.ma-cal-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; outline: 0; overscroll-behavior-x: contain; }
.ma-cal-head { position: sticky; top: 0; z-index: 6; display: flex; background: var(--page); border-bottom: 1px solid var(--border); }
.ma-corner { position: sticky; left: 0; z-index: 2; width: var(--ma-namew); flex: none; background: var(--page); border-right: 1px solid var(--border); }
.ma-months, .ma-weeks, .ma-days { display: flex; }
.ma-months, .ma-weeks { border-bottom: 1px solid var(--border); }
.ma-months > div { flex: none; height: 21px; border-right: 1px solid var(--border); }
.ma-months > div:last-child, .ma-weeks > div:last-child { border-right: 0; }
.ma-months span { position: sticky; left: var(--ma-namew); display: inline-block; padding: 2px 4px; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.ma-weeks > div { flex: none; height: 14px; border-right: 1px solid var(--border); font-size: 10px; line-height: 14px; font-weight: 600; text-align: center; overflow: hidden; white-space: nowrap; }
.ma-days > div { flex: none; width: 48px; height: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 2px 0; border-right: 1px solid var(--border); line-height: 14px; }
.ma-days > div.we { background: var(--surface); }
.ma-days span { font-size: 10px; line-height: 14px; font-weight: 600; color: var(--fg-subtle); }
.ma-days b { font-size: 12px; line-height: 16px; font-weight: 600; }
.ma-days > div.today span, .ma-days > div.today b { color: var(--brand); }
.ma-cal-body { position: relative; }
.ma-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand); pointer-events: none; z-index: 1; }
.ma-team { position: sticky; top: 74px; z-index: 4; height: 32px; display: flex; align-items: center; background: var(--surface); border-bottom: 1px solid var(--border); }
.ma-team > div { position: sticky; left: 0; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 8px; white-space: nowrap; }
.ma-team i { width: 6px; height: 24px; border-radius: 4px; flex: none; }
.ma-team b { font-size: 12px; line-height: 16px; font-weight: 600; margin-right: -4px; }
.ma-team small { font-size: 10px; line-height: 14px; font-weight: 600; text-transform: uppercase; color: var(--fg-subtle); }
.ma-row { display: flex; border-bottom: 1px solid var(--border); }
.ma-name { position: sticky; left: 0; z-index: 3; width: var(--ma-namew); flex: none; display: flex; align-items: center; padding: 0 8px; background: var(--page); border-right: 1px solid var(--border); }
.ma-name > a, .ma-name > span { display: flex; align-items: center; gap: 8px; min-width: 0; height: 24px; }
.ma-name b { font-weight: 600; }
.ma-name > a:hover b { text-decoration: underline; }
.ma-track { position: relative; flex: 1 1 auto; min-width: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 47px, var(--border) 47px 48px), linear-gradient(90deg, transparent 0 240px, var(--surface) 240px 336px);
  background-size: 48px 100%, 336px 100%; background-position: 0 0, var(--ma-shift, 0px) 0; }
.ma-row:hover .ma-track { background-color: var(--hover); }
.ma-cal.plan .ma-track { cursor: pointer; }
.ma-cal.plan .ma-hatch { cursor: default; }
.ma-hatch { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, var(--border) 0 1px, transparent 1px 6px), var(--surface); box-shadow: inset 1px 0 0 var(--border), inset -1px 0 0 var(--border); }
.ma-ev { position: absolute; height: 32px; padding: 2px 4px; z-index: 2; }
.ma-ev > button { display: flex; align-items: center; width: 100%; height: 28px; padding: 0 8px; border: 2px solid; border-radius: 8px; background: var(--page); color: var(--fg); font-size: 12px; line-height: 16px; font-weight: 600; overflow: hidden; cursor: pointer; }
.ma-ev > button span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ma-ev > button:hover { filter: brightness(.96); }
.ma-ev > button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.ma-leer { position: sticky; left: 0; width: min(100%, 640px); padding: 32px 16px; color: var(--fg-support); }
.ma-cal-foot { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 8px; }
.ma-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.ma-legend span { display: inline-flex; align-items: center; gap: 4px; }
.ma-legend i { width: 8px; height: 8px; border-radius: 4px; flex: none; }
.ma-legend i.full { background: var(--fg-support); }
.ma-legend i.open { border: 2px solid var(--fg-support); }
.ma-legend-r { display: flex; align-items: center; gap: 16px; flex: none; margin-left: auto; }
.ma-callink { display: flex; align-items: center; gap: 4px; padding-left: 16px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.ma-callink:hover { text-decoration: underline; }

/* --- Mitarbeiterliste und Tabellen im Profil --- */
.ma-scroll { flex: 1 1 auto; min-width: 0; overflow: auto; padding: 0 15px 24px 0; }
.ma-tools { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-bottom: 16px; min-height: 34px; }
.ma-sel { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.ma-card { background: var(--page); border: 1px solid var(--border); border-radius: 8px; overflow-x: auto; }
.ma-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.ma-table th { height: 36px; padding: 8px 16px; text-align: left; font-weight: 600; color: var(--fg-support); white-space: nowrap; background: var(--page); }
.ma-table td { height: 51px; padding: 8px 16px; border-top: 1px solid var(--border); font-weight: 500; white-space: nowrap; }
.ma-table td.ma-notiz { white-space: normal; min-width: 160px; }
.ma-table th.c, .ma-table td.c { width: 48px; text-align: center; }
.ma-table th.c .check, .ma-table td.c .check { display: flex; justify-content: center; position: relative; top: -2px; }
.ma-table.ma-list th { height: 39px; }
.ma-table td.a { width: 103px; }
.ma-table td.a.r { width: 66px; text-align: right; }
.ma-table tbody tr:hover td { background: var(--muted); }
.ma-table tr.sel td { background: #f3f5ff; }
.ma-table tr.grp td { height: 39px; background: var(--muted); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--fg-support); }
.ma-table tr.grp span { display: inline-flex; align-items: center; gap: 8px; }
.ma-table tr.grp i { width: 6px; height: 20px; border-radius: 4px; }
.ma-table tr.leer td { height: 96px; text-align: center; color: var(--fg-support); }
.ma-table tr.klick { cursor: pointer; }
.ma-table tr.klick:focus-visible td { background: var(--brand-weak); }
.ma-sort { display: inline-flex; align-items: center; gap: 4px; margin: -8px -16px; padding: 8px 16px; border: 0; background: none; font-weight: 600; color: var(--fg-support); }
.ma-sort .ic { opacity: .35; transition: transform var(--ease); }
.ma-sort:hover .ic, .ma-sort.on .ic { opacity: 1; }
.ma-sort.up .ic { transform: rotate(180deg); }
.ma-person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ma-person a { font-weight: 600; white-space: nowrap; }
.ma-person a:hover { text-decoration: underline; }
.ma-mail { display: flex; align-items: center; min-width: 0; max-width: 100%; }
.ma-notiz { color: var(--fg-support); max-width: 320px; }
.ma-pager { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 16px; color: var(--fg-support); font-weight: 500; }
.ma-perm td { height: 51px; }
.ma-perm tr.org td { height: 39px; background: var(--muted); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--fg-support); }
.ma-perm .select { min-width: 180px; }
.ma-perm th:first-child { width: 212px; }
.ma-perm th.c { width: 120px; }
.ma-perm th.c, .ma-perm td.c { text-align: center; }
.ma-perm td.c .check { top: 0; }
.ma-perm .check input:disabled { opacity: .5; cursor: default; }
.ma-week th, .ma-week td { text-align: center; }

/* --- Mitarbeiterprofil --- */
.ma-prof { flex: 1 1 auto; min-height: 0; display: flex; }
.ma-aside { width: 270px; flex: none; display: flex; flex-direction: column; min-height: 0; background: var(--page); border-right: 1px solid var(--border); }
.ma-aside .ph { align-items: center; }
.ma-me { display: flex; flex-direction: column; align-items: center; flex: none; }
.ma-me .avatar.xl { width: 150px; height: 150px; margin-top: 16px; font-size: 48px; }
.ma-me-name { margin: 12px; font-weight: 600; text-align: center; }
.ma-aside-search { flex: none; padding: 9px 12px; }
.ma-aside-search .ma-search { width: 100%; }
.ma-plist { flex: 1 1 auto; min-height: 0; overflow: auto; list-style: none; margin: 0; padding: 0; }
.ma-plist li { border-bottom: 1px solid var(--border); }
.ma-plist a { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 12px; color: var(--fg-support); }
.ma-plist a:hover { background: var(--hover); }
.ma-plist a.active { background: var(--brand-weak); color: var(--fg-selected); }
.ma-plist a > span { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ma-plist b { font-size: 12px; line-height: 16px; font-weight: 600; }
.ma-plist small { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--fg-subtle); }
.ma-plist a.active small { color: inherit; }
.ma-prof-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ma-prof-main .tabs { min-width: 0; gap: 0; }
.ma-prof-main .tab { display: flex; align-items: center; font-weight: 600; }
.ma-back { display: none; }
.ma-prof-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 8px 24px; }
.ma-prof-name { display: none; align-items: center; gap: 8px; margin-bottom: 12px; }
.ma-stack { display: flex; flex-direction: column; gap: 16px; }
.ma-stat { display: flex; background: var(--page); border: 1px solid var(--border); border-top: 2px solid var(--brand); }
.ma-stat > div { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 16px; }
.ma-stat b { font-size: 24px; line-height: 32px; font-weight: 600; }
.ma-stat span { display: flex; align-items: center; gap: 2px; font-weight: 600; line-height: 17.5px; color: var(--fg-support); }
.ma-pcard { background: var(--page); border: 1px solid var(--border); border-radius: 12px; }
.ma-pcard > header { display: flex; align-items: center; gap: 16px; padding: 24px 24px 0; }
.ma-pcard h2, .ma-sec h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.ma-pcard .acts { margin-left: auto; display: flex; gap: 8px; }
.ma-pcard-body { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.ma-pcard-body hr { width: 100%; height: 0; margin: 16px 0; border: 0; border-top: 1px solid var(--border); }
.ma-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; }
.ma-field { display: flex; align-items: flex-start; gap: 16px; min-width: 0; font-weight: 600; line-height: 17.5px; }
.ma-field > span { width: 205px; flex: none; }
.ma-field > div { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ma-field .ma-mail { margin: -8px 0; }
.ma-sec { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; margin: 0 0 16px; }
.ma-sec.flach { min-height: 25px; }
.ma-sec.flach h2 { font-family: var(--font); }
.ma-sec-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ma-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ma-chips span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--page); font-size: 12px; font-weight: 500; }
.ma-narrow { max-width: 1016px; margin: 0 auto; }
.ma-note { margin: 12px 0 0; }
.ma-form { max-width: 1152px; margin: 0 auto; padding: 12px 64px; display: flex; flex-direction: column; gap: 16px; }
.ma-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ma-grid2 .input, .ma-grid2 .input-group { height: 34px; }
.ma-grid2 .input-group .input { height: 32px; }
.ma-grid2 .input { font-weight: 600; }
.ma-div { grid-column: 1 / -1; height: 1px; background: var(--surface); }
.ma-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ma-form-foot .error-text { margin-right: auto; font-size: 14px; line-height: 20px; }
.ma-sched { padding-top: 4px; }
@media screen and (max-width: 900px) {
  .ma-aside { display: none; }
  .ma-back { display: inline-flex; }
  .ma-prof-name { display: flex; }
  .ma-form { padding: 4px 0; }
  .ma-scroll { padding-right: 0; }
  .ma-tools { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .ma-tools .ma-search { width: 100%; }
  .ma-tools .ma-select { flex: 1 1 140px; width: auto !important; }
  .ma-sel { width: 100%; }
  .ma-sel:empty { display: none; }
  .ma-legend.types { display: none; }
  .ma-cal-foot { flex-wrap: wrap; }
  .ma-sec { flex-wrap: wrap; }
}
@media screen and (max-width: 700px) {
  .ma-cal { --ma-namew: 132px; }
  .ma-name .avatar { display: none; }
  .ma-team small, .ma-team b span { display: none; }
  .ma-info, .ma-grid2 { grid-template-columns: 1fr; }
  .ma-grid2 > div:empty { display: none; }
  .ma-field > span { width: 124px; }
  .ma-stat > div { padding: 20px 8px; }
  .ma-pcard > header { flex-wrap: wrap; padding: 16px 16px 0; }
  .ma-pcard-body { padding: 16px; }
  .ma-table th, .ma-table td { padding: 8px 10px; }
  .ma-legend-r { flex-wrap: wrap; margin-left: 0; }
  .ma-callink { padding-left: 0; }
}

/* Ladefehler in Dienstplan und Arbeitszeitprotokoll: statt veralteter Daten */
.load-error { position: sticky; left: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px; padding: 10px 12px; border: 1px solid var(--danger); border-radius: 8px; background: #fff5f5; color: var(--fg); font-size: 13px; }
.load-error .btn { margin-left: auto; }

/* ===== Arbeitszeitprotokoll (Team, Tag): Raster nach Messung am bisherigen Werkzeug (1918 px breit):
   Person 219 · Farbstrich 4 · Start 72 · Ende 72 · Unbezahlte Pause 128 · Bezahlte Pause 128 · Team 112 · Schicht 127 ·
   Details Rest · Insgesamt 300; Zeilenhöhe 36 ===== */
.ts-wrap { --ts-cols: 219px 4px 72px 72px 128px 128px 112px 127px minmax(200px, 1fr) 300px; }
.ts-team { min-width: 1362px; }
.ts-head, .ts-row { display: grid; grid-template-columns: var(--ts-cols); align-items: center; }
.ts-head { position: sticky; top: 0; z-index: 3; height: 36px; font-weight: 600; border-bottom: 2px solid var(--border); }
.ts-tname { padding: 0 12px; }
.ts-head .c, .ts-row .c { display: flex; align-items: center; gap: 4px; height: 36px; min-width: 0; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-row { min-height: 36px; border-bottom: 1px solid var(--border-subtle); }
.ts-row.first { border-top: 1px solid var(--border); }
.ts-team .ts-head + .ts-row.first { border-top: 0; }
.ts-person { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px 0 12px; min-width: 0; }
.ts-person .avatar { flex: none; }
.ts-name { display: block; font-weight: 600; line-height: 17px; color: inherit; text-decoration: none; }
a.ts-name[href]:hover { text-decoration: underline; }
.ts-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; line-height: 14px; color: var(--fg-subtle); }
.ts-sub small { font-size: 11px; }
.ts-bar { width: 4px; align-self: stretch; }
.ts-in { width: 64px; height: 34px; padding: 0 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--page); font: inherit; font-weight: 500; color: var(--fg); }
.ts-inbox { display: flex; align-items: center; gap: 4px; width: 104px; height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--page); cursor: text; }
.ts-inbox input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; padding: 0; font: inherit; font-weight: 500; color: var(--fg); }
.ts-inbox:focus-within { outline: 2px solid var(--brand); outline-offset: -1px; }
.ts-in:focus, .ts-sel:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.ts-row .c i { font-style: normal; font-size: 12px; color: var(--fg-subtle); }
.ts-sel { width: 100%; height: 34px; padding: 0 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--page); font: inherit; color: var(--fg); }
.ts-row .det { gap: 6px; }
.ts-chip { display: inline-block; max-width: 92px; height: 26px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.ts-chip.loc { background: #e4e7fb; color: #3d49c4; }
.ts-chip.dep { background: #d5f5f6; color: #177a81; box-shadow: inset 0 0 0 1px #b4eaec; }
.ts-clock { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); flex: none; }
.ts-head .tot, .ts-row .tot, .ts-sum .tot { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px 0 2px; border-left: 1px solid var(--border); }
.ts-head .tot.head { padding-left: 12px; }
.ts-row .tot b, .ts-sum .tot b { margin-left: auto; min-width: 48px; text-align: right; font-weight: 500; }
.ts-sum .tot b { font-weight: 600; }
.ts-ok { display: inline-flex; align-items: center; justify-content: center; gap: 2px; width: 48px; height: 34px; border: 1px solid var(--border); border-radius: 6px; background: var(--page); color: var(--fg-support); cursor: pointer; }
.ts-ok:hover { color: var(--fg); background: var(--surface); }
.ts-ok.on:hover { background: #05a862; color: #fff; }
.ts-ok.on { background: #06c270; border-color: #06c270; color: #fff; }
.ts-out { height: 28px; }
.ts-sum { display: grid; grid-template-columns: 1fr 300px; align-items: center; height: 36px; font-weight: 600; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ts-sum > div:first-child { padding: 0 12px; }
@media screen and (max-width: 900px) {
  .ts-wrap { --ts-cols: 150px 4px 64px 64px 84px 84px 100px 120px minmax(160px, 1fr) 190px; }
  .ts-team { min-width: 1040px; }
  .ts-sum { grid-template-columns: 1fr 190px; }
}
@media screen and (max-width: 1535px) { .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-wrap { padding: 64px 48px 16px; } }
@media screen and (max-width: 1023px) { .dash { grid-template-columns: 1fr; } }
@media screen and (max-width: 900px) { .dash-wrap { padding: 16px 12px 24px; } .ph.ph-dash { display: flex; } .dash .card { height: auto; min-height: 220px; } }

/* Schicht-Dialog: Seitenansicht wie gewohnt (Dialog 600 breit, mit Details 900; Seitenspalte 288) */
.dlg-cols { display: flex; gap: 32px; align-items: flex-start; }
.dlg-cols > .form-grid { flex: 1 1 auto; min-width: 0; }
.dialog.with-side { width: 900px; }
.dlg-side { flex: 0 0 288px; font-size: 12px; line-height: 16px; }
.dlg-side h4 { margin: 16px 0 12px; font: 600 12px/16px var(--font-title); }
.dlg-side h4:first-child { margin-top: 0; }
.dlg-side dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 8px; margin: 0; }
.dlg-side dt { color: var(--fg-support); }
.dlg-side dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.dlg-sum { width: 100%; border-collapse: collapse; }
.dlg-sum th { text-align: left; font-weight: 500; color: var(--fg-support); padding: 2px 0; }
.dlg-sum td { padding: 8px 0; font-weight: 500; border-top: 1px solid var(--border); }
button.wk { border: 0; border-right: 1px solid var(--border); background: none; font: inherit; font-size: 12px; cursor: pointer; }
button.wk:hover { background: var(--hover); }
@media screen and (max-width: 900px) { .dlg-cols { flex-direction: column; } .dlg-side { flex: none; width: 100%; } .dialog.with-side { width: 100vw; } }
.only-sm { display: none; }
@media screen and (max-width: 900px) { .only-sm { display: inline-flex; } }
/* Stempeluhr aus: Verweis auf die Zeiterfassung in absence.io an Stelle des Stempelknopfs */
.ph .ts-zeiterfassung { height: 32px; gap: 8px; }
.btn[data-zeiterfassung] { gap: 8px; }
/* Ladeanzeige beim Seitenwechsel (wie im Original: Kreis und „Lädt …“ in der Mitte) */
.lade { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 240px; font-size: 12px; color: var(--fg-subtle); }
.spinner { width: 28px; height: 28px; border: 2px solid var(--border); border-top-color: var(--fg-subtle); border-radius: 50%; animation: dreh .8s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }

/* ---------- Unterpunkte der Seitenleiste: am großen Bildschirm im Ausklappfeld, am kleinen direkt im Menü ---------- */
.nav-sub { display: none; }
@media screen and (max-width: 900px), screen and (hover: none) {
  .side:not(.collapsed) .nav-sub { display: flex; padding: 2px 0 2px 28px; gap: 2px; }
  .side .nav-sub .nav-item { padding: 6px 8px; font-weight: 500; }
  .side .nav-item .chev { display: none; }
}
/* Hauptknopf eines Dialogs, solange gespeichert wird */
.schreibt .dialog-foot .btn.primary, .schreibt .dialog-foot .btn.danger { opacity: .6; cursor: progress; }
@media screen and (max-width: 900px) {
  .list-row { gap: 8px; padding-left: 8px; padding-right: 8px; }
  .list-row.lvl1 { padding-left: 16px; }
  .list-row.lvl2 { padding-left: 24px; }
  .srow .pleft { padding-left: 6px; padding-right: 2px; font-size: 12.5px; white-space: nowrap; }
}

/* ===== Mein Bereich (static/js/views/account.js) und Reiter „Plus-Minus“ im Mitarbeiterprofil =====
   Alle Regeln beginnen mit .mb- und gelten nur dort (Ausnahme: das Nutzermenü unten links, .menu-item.mb-clock).
   Maße nach den Messvorlagen 60 bis 65 und 01a bei 1918 px:
   Reiterleiste: Kasten 42 hoch, Reiter 40 hoch, innen 0 8, Schrift 14/20 halbfett, kein Abstand zwischen den Reitern.
   Karten (60, 65): 1024 breit, Rand der Seite 24, Abstand 16, Radius 12, Kopf 24 24 0, Inhalt 24, Titel Parkinsans 16/24;
     zwei Spalten mit Abstand 16, Beschriftung 14/20 halbfett, Feld 34 hoch.
   Kennzahlen (62, 64): oben 2 px Markenfarbe, Block innen 32 16, Zahl 24/32, Beschriftung 14/18 halbfett; Fußzeile 37 hoch auf #f8f7f1.
   Plus-Minus (64): Inhalt 20 vom Rand, Kopfzeile 34, Tabelle im Kasten (Radius 8, höchstens 70 % der Fensterhöhe), Kopf 36, Zeile 51, Zelle 8 16.
   Dienstplan (61): Leiste 56 hoch, Raster ab 8 vom Rand, Kopfzeile 33 (12/16 auf #f8f7f1), Tagesfeld mindestens 88, innen 2, Tageszahl 14/18 rechts oben.
   Abwesenheit (63): Inhalt höchstens 1152 (Rand 12, Abstand 16), Monat 336 breit (Tag 48 × 34, Zeilenabstand 16), Seitenkarte 256.
   Sitzungen (65): Kopf 32, Zeile 42. Leerzustand: innen 48, Symbolkasten 36 (Radius 12), Text 14/20.
   Nutzermenü (01a): 224 breit, innen 4, Eintrag 36 hoch (innen 8, Radius 8, Symbol 16), Stempeln halbfett auf #b6fcdd, Schrift #043821. */
.mb-tabs.tabs { gap: 0; min-width: 0; }
.mb-tabs .tab { display: flex; align-items: center; font-weight: 600; }
.mb-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.mb-pad { padding: 24px; }
.mb-col { max-width: 1024px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.mb-wide { padding: 0 28px 24px; }
.mb-card { background: var(--page); border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.mb-card > header { display: flex; align-items: center; gap: 16px; padding: 24px 24px 0; }
.mb-card h2, .mb-sec h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.mb-card-body { display: flex; flex-direction: column; gap: 16px; padding: 24px; margin: 0; }
.mb-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mb-grid2 .input, .mb-grid2 .input-group { height: 34px; }
.mb-grid2 .input-group .input { height: 32px; }
.mb-grid2 .field > label { font-weight: 600; }
.mb-photo { display: flex; align-items: center; gap: 16px; min-height: 58px; min-width: 0; }
.mb-photo .avatar { width: 64px; height: 64px; font-size: 24px; line-height: 32px; }
.mb-photo > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mb-photo b { font-weight: 600; overflow-wrap: anywhere; }
.mb-photo span { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--fg-support); }
.mb-note { margin: 0; }
.mb-note2 { margin: 12px 0 0; }
.mb-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.mb-foot .error-text { margin-right: auto; font-size: 14px; line-height: 20px; }
.mb-form { min-height: 100%; display: flex; flex-direction: column; }
.mb-savebar { position: sticky; bottom: 0; z-index: 4; margin-top: auto; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 24px; background: var(--page); border-top: 1px solid var(--border); }
.mb-savebar span { margin-right: auto; font-weight: 500; color: var(--fg-support); }

/* Kopfzeilen, Kennzahlen */
.mb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; margin-bottom: 16px; font-weight: 600; color: var(--fg-support); }
.mb-bar-r { display: flex; align-items: center; gap: 8px; flex: none; }
.mb-bar-r .btn[data-zeitraum] { gap: 4px; }
.mb-bar-r .btn[data-zeitraum] .ic { color: var(--fg-subtle); }
.mb-bar-r label { font-weight: 600; color: var(--fg); white-space: nowrap; }
.mb-pmwrap .mb-bar-r label { color: var(--fg-support); }
.mb-select.select { width: auto; height: 34px; padding: 6px 28px 6px 10px; font-weight: 600; cursor: pointer; }
.mb-stat { display: flex; flex-wrap: wrap; background: var(--page); border: 1px solid var(--border); border-top: 2px solid var(--brand); }
.mb-stat > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 16px 31px; text-align: center; }
.mb-stat b { font-size: 24px; line-height: 32px; font-weight: 600; color: var(--fg); }
.mb-stat span { display: flex; align-items: center; justify-content: center; gap: 2px; font-weight: 600; line-height: 18px; color: var(--fg-support); }
.mb-stat-foot { display: flex; flex-wrap: wrap; background: var(--muted); border: 1px solid var(--border); border-top: 0; margin-bottom: 1px; }
.mb-stat-foot > div { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; padding: 8px 4px; border-left: 1px solid var(--border); font-weight: 600; line-height: 18px; color: var(--fg-support); white-space: nowrap; }
.mb-stat-foot > div:first-child { border-left: 0; }
.mb-stat-foot span { margin-left: 4px; }
.mb-info { display: inline-flex; margin-left: 2px; color: var(--fg-support); cursor: help; font-style: normal; border-radius: 4px; }
.mb-info:focus-visible { outline: 1px solid var(--brand); outline-offset: 1px; }
.mb-sec { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; margin: 24px 0 16px; }
.mb-sec.flach { min-height: 24px; }
.mb-sec h2 { display: flex; align-items: center; gap: 4px; }
.mb-sec h2 .mb-info { opacity: .5; }
.mb-sec h2 .mb-info:hover { opacity: 1; }
.mb-hints { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.mb-hints p { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--fg-support); }
.mb-hints .ic { margin-top: 1px; }

/* Tabellen */
.mb-tablebox { max-height: 70vh; overflow: auto; background: var(--page); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-xs); }
.mb-pm { width: 100%; border-collapse: separate; border-spacing: 0; font-weight: 500; }
.mb-pm th { position: sticky; top: 0; z-index: 2; height: 36px; padding: 8px 16px; text-align: left; font-weight: 600; color: var(--fg-support); white-space: nowrap; background: var(--page); }
.mb-pm td { height: 51px; padding: 8px 16px; border-top: 1px solid var(--border); white-space: nowrap; background: var(--page); }
.mb-pm th.ges, .mb-pm td.ges { position: sticky; right: 0; }
.mb-pm th.ges { z-index: 3; }
.mb-pm td small { display: block; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--fg-subtle); white-space: normal; }
.mb-pm tr.tag td { height: 40px; background: var(--muted); }
.mb-pm td.tagname { padding-left: 32px; color: var(--fg-support); }
.mb-pm th .kurz { display: none; text-decoration: none; }
.mb-pm tr.leerz td { height: 96px; text-align: center; color: var(--fg-support); }
.mb-pm .icon-btn .ic { transition: transform var(--ease); }
.mb-pm .icon-btn.offen .ic { transform: rotate(180deg); }
.mb-pm .icon-btn:disabled { opacity: .35; cursor: default; }
.mb-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.mb-table th { height: 36px; padding: 8px 16px; text-align: left; font-weight: 600; color: var(--fg-support); white-space: nowrap; }
.mb-table td { height: 51px; padding: 8px 16px; border-top: 1px solid var(--border); font-weight: 500; white-space: nowrap; }
.mb-table td.notiz { white-space: normal; min-width: 160px; color: var(--fg-support); }
.mb-table td.r, .mb-sesstab td.r { width: 66px; text-align: right; }
.mb-tscard, [data-korr].mb-card { overflow-x: auto; }
.mb-wide > .mb-note { margin-top: 12px; }
.mb-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px; text-align: center; color: var(--fg-support); }
.mb-empty > div:first-child { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mb-empty-ic { width: 36px; height: 36px; margin: 4px 0; padding: 8px; display: flex; align-items: flex-end; justify-content: center; border-radius: 12px; background: var(--alt); }
.mb-empty h3 { margin: 0 0 8px; font: 700 14px/20px var(--font-title); color: var(--fg); }
.mb-empty p { margin: 0; max-width: 256px; font-weight: 500; line-height: 20px; }
.mb-empty-acts { margin-top: 16px; display: flex; gap: 16px; }

/* Knopfgruppe (Monatswahl, Anfragen | Kontrolliert | Vergangene) */
.mb-bgroup { display: inline-flex; flex: none; max-width: 100%; }
.mb-bgroup > button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 34px; height: 34px; padding: 6px; border: 1px solid var(--border); background: var(--page); font-weight: 600; color: var(--fg); white-space: nowrap; }
.mb-bgroup > button + button { margin-left: -1px; }
.mb-bgroup > button:first-child { border-radius: 6px 0 0 6px; }
.mb-bgroup > button:last-child { border-radius: 0 6px 6px 0; }
.mb-bgroup > button.txt { width: auto; padding: 6px 12px; }
.mb-bgroup > button.txt .ic { color: var(--fg-subtle); }
.mb-bgroup > button:hover { background: var(--muted); }
.mb-bgroup > button.on { background: var(--surface); }
.mb-bgroup > button:focus-visible { outline: 1px solid var(--brand); outline-offset: -1px; z-index: 1; }
.mb-bgroup .count-badge { margin-left: 4px; }

/* Dienstplan */
.mb-sched { padding: 0 8px 8px; }
.mb-sched-bar { position: sticky; top: 0; z-index: 5; height: 56px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); }
.mb-sched-bar [data-label] { min-width: 105px; text-align: left; }
.mb-cal-wrap { overflow-x: auto; margin-bottom: 4px; }
.mb-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 1008px; margin-bottom: 8px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.mb-cal .mh { padding: 8px 2px; text-align: center; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--fg); background: var(--muted); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mb-cal .mc { min-width: 0; min-height: 88px; padding: 2px; display: flex; flex-direction: column; justify-content: space-between; background: var(--page); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mb-cal .mc.out { background: var(--muted); }
.mb-cal .n { text-align: right; line-height: 18px; font-weight: 600; color: var(--fg-subtle); }
.mb-cal .ev { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; }
.mb-cal .shift, .mb-cal .abs { margin: 0; }

/* Abwesenheit */
.mb-abs { max-width: 1152px; margin: 0 auto; padding: 12px; display: flex; flex-direction: column; gap: 16px; }
.mb-abs-top { display: flex; gap: 8px; }
.mb-abs-cols { display: flex; align-items: flex-start; gap: 16px; }
.mb-abs-cols > section { flex: 1 1 auto; }
.mb-abs-side { width: 256px; flex: none; }
.mb-abs-side hr, .mb-abs-cal + hr { width: 100%; height: 0; margin: 0; border: 0; border-top: 1px solid var(--border); }
.mb-abs h4 { font: 700 16px/24px var(--font-title); color: var(--fg); }
.mb-abs .sub { margin: 0 0 16px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--fg-support); }
.mb-bilanz { margin: 0; font-weight: 500; color: var(--fg-support); }
.mb-abs-cal { display: flex; flex-direction: column; gap: 24px; }
.mb-months { display: grid; grid-template-columns: repeat(2, 361px); justify-content: center; }
.mb-month { display: flex; flex-direction: column; gap: 16px; padding: 0 24px 0 0; border-right: 1px solid var(--border-subtle); min-width: 0; }
.mb-month + .mb-month { padding: 0 0 0 24px; border-right: 0; }
.mb-month-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 51px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.mb-month-nav > div { display: flex; gap: 4px; min-height: 34px; }
.mb-month-nav > div.r { justify-content: flex-end; }
.mb-month-nav b { font-family: var(--font-title); font-weight: 600; line-height: 18px; text-align: center; }
.mb-month-grid { display: flex; flex-direction: column; gap: 16px; }
.mb-week { display: grid; grid-template-columns: repeat(7, 48px); }
.mb-week > span { height: 34px; display: flex; align-items: center; justify-content: center; }
.mb-week.head > span { font-family: var(--font-title); font-weight: 700; }
.mb-day i { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 2px solid transparent; border-radius: 12px; font-style: normal; font-weight: 500; }
.mb-day.out { color: var(--fg-support); }
.mb-day.out i { font-weight: 400; }
.mb-months.jahr { grid-template-columns: repeat(auto-fill, 336px); gap: 32px 24px; }
.mb-months.jahr .mb-month, .mb-months.jahr .mb-month + .mb-month { padding: 0; border-right: 0; }
.mb-months.jahr .mb-month-nav > div { min-height: 0; }
.mb-months.jahr .mb-month-nav { min-height: 0; padding-bottom: 12px; }
.mb-legend { display: flex; align-items: center; justify-content: flex-end; gap: 16px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--fg); }
.mb-legend span { display: inline-flex; align-items: center; gap: 4px; }
.mb-legend i { width: 8px; height: 8px; border-radius: 4px; background: var(--fg-support); }
.mb-legend i.offen { background: none; border: 2px solid var(--fg-support); }
.mb-list-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0; }
.mb-box { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.mb-box .mb-empty { padding: 14px 16px 22px; }
.mb-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-top: 1px solid var(--border); font-weight: 500; }
.mb-row:first-child { border-top: 0; }
.mb-art { display: inline-flex; align-items: center; gap: 6px; width: 200px; flex: none; min-width: 0; }
.mb-art i, .mb-dist-leg i { width: 8px; height: 8px; border-radius: 4px; flex: none; }
.mb-art b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-umfang { width: 72px; flex: none; text-align: right; color: var(--fg-support); }
.mb-dist { display: flex; gap: 2px; height: 24px; border-radius: 6px; overflow: hidden; }
.mb-dist i { display: block; min-width: 4px; }
.mb-dist-leg { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 12px; line-height: 16px; font-weight: 500; }
.mb-dist-leg span { display: flex; align-items: center; gap: 6px; }
.mb-dist-leg b { margin-left: auto; font-weight: 600; }

/* Zugangsdaten: Sitzungen */
.mb-sess { display: flex; flex-direction: column; gap: 16px; }
.mb-sess-scroll { overflow-x: auto; }
.mb-sesstab { width: 100%; border-collapse: collapse; }
.mb-sesstab th { height: 32px; padding: 0; text-align: left; font-weight: 600; color: var(--fg); white-space: nowrap; border-bottom: 1px solid var(--border); }
.mb-sesstab td { height: 42px; padding: 1px 12px 1px 1px; font-weight: 600; color: var(--fg); white-space: nowrap; border-bottom: 1px solid var(--border); }
.mb-sesstab th:first-child, .mb-sesstab td:first-child { padding-left: 12px; }
.mb-aktuell { display: inline-flex; align-items: center; height: 20px; margin-left: 8px; padding: 2px 8px; border: 1px solid #c69af4; border-radius: 4px; background: #eddefc; color: #511a89; font-size: 12px; line-height: 16px; font-weight: 600; }

/* Nutzermenü unten links: Stempeln wie gewohnt halbfett auf grüner Fläche */
.menu-item.mb-clock { font-weight: 600; color: #043821; }
.menu-item.mb-clock:hover { background: #9af5cd; }
.menu-item.mb-clock.out { color: #420b0a; }
.menu-item.mb-clock.out:hover { background: #ffaba7; }

@media screen and (max-width: 1100px) {
  .mb-abs-cols { flex-direction: column; }
  .mb-abs-cols > section, .mb-abs-side { width: 100%; }
}
@media screen and (max-width: 900px) {
  .mb-pad { padding: 12px 8px 24px; }
  .mb-wide { padding: 0 8px 24px; }
  .mb-abs { padding: 8px; }
  .mb-months { grid-template-columns: minmax(0, 336px); }
  .mb-months .mb-month, .mb-months .mb-month + .mb-month { padding: 0; border-right: 0; }
  .mb-months:not(.jahr) .mb-month + .mb-month { margin-top: 24px; }
  .mb-months.jahr { grid-template-columns: minmax(0, 336px); }
  .mb-cal { min-width: 644px; }
  .mb-stat-foot > div { flex: 1 1 40%; border-top: 1px solid var(--border); }
  .mb-stat-foot > div:nth-child(-n+2) { border-top: 0; }
  .mb-stat-foot > div:nth-child(odd) { border-left: 0; }
  .mb-savebar { padding: 12px 8px; }
}
@media screen and (max-width: 640px) {
  .mb-grid2 { grid-template-columns: minmax(0, 1fr); }
  .mb-grid2 > div:empty { display: none; }
  .mb-card > header { padding: 16px 16px 0; }
  .mb-card-body { padding: 16px; }
  .mb-stat > div { padding: 20px 6px; gap: 8px; }
  .mb-stat b { font-size: 20px; line-height: 28px; }
  .mb-stat span { font-size: 12px; line-height: 16px; flex-wrap: wrap; }
  .mb-pmwrap .sm-aus, .mb-table .sm-aus, .mb-sesstab .sm-aus { display: none; }
  .mb-pm th { white-space: normal; line-height: 16px; height: 44px; vertical-align: bottom; }
  .mb-pm th, .mb-pm td, .mb-table th, .mb-table td { padding: 8px 6px; }
  .mb-pm th:first-child, .mb-table th:first-child, .mb-table td:first-child { padding-left: 12px; }
  .mb-pm td.auf { padding-left: 4px; padding-right: 0; }
  .mb-pm td.tagname { padding-left: 12px; }
  .mb-pm th .lang { display: none; }
  .mb-pm th.ges, .mb-pm td.ges { right: auto; }
  .mb-pm th .kurz { display: inline; }
  .mb-sesstab th { white-space: normal; line-height: 16px; }
  .mb-bar { flex-wrap: wrap; }
  .mb-sec { flex-wrap: wrap; }
  .mb-week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .mb-art { width: 120px; }
  .mb-row { flex-wrap: wrap; gap: 4px 12px; }
  .mb-savebar span { display: none; }
}
/* ===== Ende Mein Bereich ===== */

/* ===== Umfang „schlank“ (seit 11.11.2026): Verweise auf absence.io, Startseite mit zwei Karten ===== */
.dash.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-absenceio, .mb-absenceio { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--fg-support); font-size: 13px; line-height: 18px; }
.dash-absenceio { margin-top: 24px; }
.dash-absenceio .ic, .mb-absenceio .ic { flex: none; }
.mb-absenceio { flex: none; padding: 8px 28px 0; }
@media screen and (max-width: 1023px) { .dash.zwei { grid-template-columns: 1fr; } }
@media screen and (max-width: 900px) { .mb-absenceio { padding: 8px 12px 0; } }
/* Mein Bereich als eine Seite (schlanker Umfang): Dienstplan oben, darunter Zugang und Sitzungen */
.mb-sec.mb-einseite { margin: 16px 16px 0; min-height: 24px; }
.mb-teil .mb-sched-bar { position: static; }
@media screen and (max-width: 900px) { .mb-sec.mb-einseite { margin: 12px 12px 0; } }
.ma-quelle { margin: 0 0 12px; max-width: 900px; }
.ma-ausgeblendet { margin: 0 0 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--brand-hover); }
[data-mb] > .mb-absenceio { padding: 8px 16px 0; }

/* ---------- Anmeldung im Internet: Einladung, zweiter Faktor (App-Code), Verwaltung ---------- */
.login.login-breit { width: 480px; }
.login [hidden] { display: none !important; }
.ein-schritte { display: flex; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: s; }
.ein-schritte li { counter-increment: s; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--fg-subtle); }
.ein-schritte li::before { content: counter(s); display: grid; place-content: center; width: 20px; height: 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--page); font-size: 11px; }
.ein-schritte li + li::after { content: none; }
.ein-schritte li.on { color: var(--fg-selected); }
.ein-schritte li.on::before { background: var(--brand); border-color: var(--brand); color: #fff; }
.ein-schritte li.erledigt::before { background: var(--success-weak); border-color: var(--success); color: var(--success-fg); }
.ein-fehler { font-size: 14px; line-height: 20px; margin: 8px 0 0; }
.zf { display: flex; flex-direction: column; gap: 14px; }
.zf p { margin: 0; }
.zf-ok { font-weight: 600; color: var(--success-fg); }
.zf-schritte { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.zf-qrbox { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.zf-qr { width: 200px; height: 200px; flex: none; border: 1px solid var(--border); border-radius: 8px; background: #fff; image-rendering: pixelated; }
.zf-key { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 180px; }
.zf-key code { font: 600 15px/22px ui-monospace, Consolas, monospace; letter-spacing: .04em; word-break: normal; overflow-wrap: anywhere; padding: 8px 10px; background: var(--muted); border: 1px solid var(--border); border-radius: 6px; }
.zf-zeile { display: flex; gap: 8px; flex-wrap: wrap; }
.zf-form { display: flex; flex-direction: column; gap: 12px; margin: 0 !important; }
.zf-code { font: 600 18px/24px ui-monospace, Consolas, monospace; letter-spacing: .2em; max-width: 220px; }
.zf-codes { margin: 0; padding: 12px; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px;
  background: var(--muted); border: 1px solid var(--border); border-radius: 8px; font: 600 14px/20px ui-monospace, Consolas, monospace; }
.zf-weiter { align-self: flex-start; }
.zf-linkbtn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.dialog .zf { padding-bottom: 4px; }
.ma-badge.ohne2fa { margin-left: 6px; background: var(--warning-weak); border-color: #fdba67; color: #331c02; }
.ma-aktionen { margin: 24px 0 0; max-width: 900px; }
.ma-aktionen h2 { font-size: 16px; line-height: 24px; margin: 0 0 8px; }
.ma-aktionen table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ma-aktionen th, .ma-aktionen td { text-align: left; padding: 8px 12px; border-top: 1px solid var(--border-subtle); vertical-align: top; }
.ma-aktionen th { font-weight: 600; color: var(--fg-subtle); border-top: 0; }
.mb-2fa p { margin: 0 0 12px; }
@media screen and (max-width: 600px) {
  .login-wrap { padding: 16px; align-items: flex-start; }
  .login, .login.login-breit { padding: 24px 20px; }
  .zf-qrbox { justify-content: center; }
  .zf-codes { grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 13px; }
  .ma-aktionen .sm-aus { display: none; }
}
