/* Turnaro – Oberfläche */
:root {
  --brand: #0b3b3c; --brand-2: #0f766e; --accent: #a3e635; --accent-ink: #1a2e05;
  --bg: #f4f6f5; --surface: #fff; --surface-2: #f8faf9; --line: #e3e8e6; --line-2: #eef2f0;
  --ink: #0f1d1c; --ink-2: #44524f; --muted: #6b7a77;
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --bad: #b91c1c; --bad-bg: #fee2e2; --info-bg: #e0f2fe;
  --radius: 16px; --radius-s: 10px; --shadow: 0 1px 2px rgba(15,29,28,.05), 0 8px 24px -12px rgba(15,29,28,.12);
  --side: 248px; --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1211; --surface: #121b1a; --surface-2: #17211f; --line: #23302e; --line-2: #1b2624; --ink: #e8efed; --ink-2: #b7c4c1; --muted: #8a9a97;
    --ok-bg: #12301f; --warn-bg: #3a2a0d; --bad-bg: #3b1515; --info-bg: #0f2a3a; --ok: #4ade80; --warn: #fbbf24; --bad: #f87171; --shadow: 0 1px 2px rgba(0,0,0,.4); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); font-feature-settings: "tnum" 1, "cv11" 1; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 750; }
h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: .9rem; font-weight: 700; margin: 1rem 0 .5rem; color: var(--ink-2); }
p { margin: .25rem 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
code { font: 12px ui-monospace, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.eyebrow { text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; font-weight: 700; color: var(--brand-2); margin: 0 0 .25rem; }
.i { width: 18px; height: 18px; flex: none; }
.i.lg { width: 34px; height: 34px; }
.i.huge { width: 64px; height: 64px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-2) 45%, transparent); outline-offset: 2px; border-radius: 8px; }

/* Layout */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--brand); color: #d5e6e3; display: flex; flex-direction: column; padding: 18px 12px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; text-decoration: none !important; }
.brand b { font-weight: 800; color: var(--accent); }
.brand .mark { width: 32px; height: 32px; }
.sidebar .brand { color: #fff; padding: 4px 10px 14px; }
.company-chip { margin: 0 10px 14px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: .8rem; color: #b8d1cd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #cfe2de; font-weight: 550; text-decoration: none; }
.side-nav a:hover { background: rgba(255,255,255,.06); }
.side-nav a[aria-current] { background: rgba(163,230,53,.14); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side-nav .count, .count-pill { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: .72rem; font-weight: 800; padding: 1px 8px; }
.count-pill { margin-left: 6px; background: var(--line); color: var(--ink-2); }
.side-foot { margin-top: auto; }
.me-link { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; color: #fff; text-decoration: none !important; }
.me-link:hover, .me-link[aria-current] { background: rgba(255,255,255,.06); }
.me-link small { display: block; color: #9fbab5; font-size: .75rem; }
.topbar { position: sticky; top: 0; z-index: 10; margin-left: var(--side); display: flex; align-items: center; gap: 12px; padding: 10px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); min-height: 56px; }
.top-title { font-weight: 650; color: var(--ink-2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.main { margin-left: var(--side); padding: 24px 28px 64px; max-width: calc(1280px + var(--side)); }
body.wide .main { max-width: none; }
.bare .main, .bare-main { margin: 0; max-width: none; padding: 0; }
.mobile-only { display: none; }
.tabbar { display: none; }

/* Bausteine */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 20px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; }
.head-actions, .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 520px; margin: 48px auto; }
.card.highlight { border-color: var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head.pad, .pad { padding-left: 20px; padding-right: 20px; }
.card-head.pad { padding-top: 18px; }
p.pad { padding-bottom: 14px; }
.link { font-weight: 600; font-size: .88rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.cols > .card, .cols > .stack > .card { margin-bottom: 0; }
.cols { margin-bottom: 18px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.row { display: flex; gap: 8px; align-items: center; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.spacer { flex: 1; }
.pager { display: flex; align-items: center; gap: 6px; }
.pager strong { min-width: 150px; text-align: center; }
form.inline { display: inline-flex; margin: 0; }

/* Formulare */
label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 9px 11px; min-height: 40px; width: 100%; }
input:focus, select:focus { border-color: var(--brand-2); outline: 3px solid color-mix(in srgb, var(--brand-2) 18%, transparent); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand-2); }
input[type=color] { padding: 3px; width: 52px; }
input[readonly] { background: var(--surface-2); color: var(--ink-2); }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
legend { font-size: .8rem; font-weight: 700; padding: 0 6px; color: var(--ink-2); }
.form-foot { display: flex; gap: 8px; justify-content: flex-start; flex-wrap: wrap; margin-top: 4px; }
.checks { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Buttons */
.btn, button { font: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 9px 14px; font-weight: 600; font-size: .9rem; cursor: pointer; min-height: 40px; text-decoration: none !important; white-space: nowrap; transition: transform .08s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; box-shadow: 0 6px 16px -8px var(--brand-2); }
.btn.primary:hover { background: #0d665f; }
.btn.soft { background: color-mix(in srgb, var(--brand-2) 10%, var(--surface)); border-color: transparent; color: var(--brand-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ok, .btn.soft.ok { color: var(--ok); background: var(--ok-bg); }
.btn.bad, .btn.soft.bad, .btn.ghost.bad { color: var(--bad); }
.btn.soft.bad { background: var(--bad-bg); }
.btn.xl { min-height: 56px; padding: 14px 22px; font-size: 1.05rem; border-radius: 16px; }
.btn.block, form.inline:has(.btn.block) { width: 100%; }
.btn.small { min-height: 32px; padding: 5px 10px; font-size: .82rem; }
.btn.icon-only { padding: 8px; width: 40px; }
.mini { border: 0; background: none; color: var(--brand-2); font-weight: 650; font-size: .8rem; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.mini:hover { background: color-mix(in srgb, var(--brand-2) 10%, transparent); text-decoration: none; }
button[disabled] { opacity: .5; cursor: not-allowed; }

/* Badges, Chips */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.warn-chip, .info-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); margin: 2px 4px 2px 0; }
.warn-chip .i { width: 13px; height: 13px; }
.info-chip { background: var(--info-bg); color: #0369a1; }
.chips { margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; padding: 1px 8px; border-radius: 7px; background: var(--line-2); color: var(--ink-2); font-weight: 600; }
.tag .i { width: 12px; height: 12px; }
.tag.proj { background: #ede9fe; color: #6d28d9; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--c, #94a3b8); flex: none; }
.swatch.hatched { background: repeating-linear-gradient(45deg, #94a3b8 0 3px, transparent 3px 6px); }
.swatch.hol { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.avatar { --size: 36px; width: var(--size); height: var(--size); border-radius: 50%; display: inline-grid; place-items: center; background: var(--c); color: #fff; font-weight: 750; font-size: calc(var(--size) * .38); flex: none; letter-spacing: .02em; }
.avatar.sm { --size: 30px; } .avatar.xs { --size: 24px; } .avatar.lg { --size: 64px; }

/* Meldungen */
.toasts { position: fixed; right: 20px; top: 70px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px -12px rgba(0,0,0,.25); font-weight: 550; animation: toast-in .25s ease-out; }
.toast.ok .i { color: var(--ok); } .toast.error { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); } .toast.error .i { color: var(--bad); }
.toast-x { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.toast.hide { opacity: 0; transform: translateY(-6px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 10px; color: var(--muted); }
.empty strong { color: var(--ink-2); }
.empty .i { color: color-mix(in srgb, var(--brand-2) 55%, var(--muted)); }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: .78rem; font-weight: 650; color: var(--muted); }
.stat strong { font-size: 1.45rem; font-weight: 780; letter-spacing: -.02em; }
.stat small { font-size: .76rem; color: var(--muted); }
.stat.pos strong, .num.pos, .pos { color: var(--ok); }
.stat.neg strong, .num.neg, .neg { color: var(--bad); }

/* Übersicht */
.dash { display: grid; grid-template-columns: minmax(320px, 1.05fr) 1fr; gap: 18px; align-items: start; }
.dash > .card { margin: 0; }
.dash > .stats { margin: 0; grid-template-columns: 1fr 1fr; align-content: start; }
.span2 { grid-column: 1 / -1; }
.clock-card { display: flex; flex-direction: column; gap: 16px; background: linear-gradient(160deg, var(--surface) 55%, color-mix(in srgb, var(--accent) 10%, var(--surface))); }
.clock-card.is-running { border-color: color-mix(in srgb, var(--brand-2) 40%, var(--line)); }
.clock-card.is-paused { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.clock-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.state-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; padding: 4px 12px 4px 10px; border-radius: 99px; background: var(--line-2); }
.state-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.is-running .state-pill { background: var(--ok-bg); color: var(--ok); } .is-running .state-pill::before { background: var(--ok); animation: pulse 1.6s infinite; }
.is-paused .state-pill { background: var(--warn-bg); color: var(--warn); } .is-paused .state-pill::before { background: var(--warn); }
@keyframes pulse { 50% { opacity: .35; } }
.today-shift { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--ink-2); background: var(--surface-2); border-radius: 12px; padding: 8px 12px; }
.ring-wrap { display: grid; place-items: center; padding: 4px 0; }
.ring { --p: 0; width: 210px; height: 210px; border-radius: 50%; background: conic-gradient(var(--brand-2) calc(var(--p) * 1%), var(--line-2) 0); display: grid; place-items: center; transition: background .5s; }
.is-paused .ring { background: conic-gradient(var(--warn) calc(var(--p) * 1%), var(--line-2) 0); }
.ring-inner { width: 178px; height: 178px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: inset 0 0 0 1px var(--line); }
.timer { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring-inner small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.clock-actions, .clock-form > .btn { display: flex; gap: 10px; }
.clock-actions > form, .clock-actions .btn, .clock-form > .btn { flex: 1; width: 100%; min-width: 0; }
.clock-actions .btn { padding-inline: 12px; }
.clock-form { display: flex; flex-direction: column; gap: 10px; }
.clock-options summary, details summary { cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 6px; }
details summary::-webkit-details-marker { display: none; }
.clock-options summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--line-2); font-size: .8rem; }
.clock-options[open] summary::before { content: "–"; }
.clock-options > *:not(summary) { margin-top: 10px; }
.shift-list, .plain-list, .notes, .bars, .hol-list { list-style: none; margin: 0; padding: 0; }
.shift-list li, .plain-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.shift-list li:first-child, .plain-list li:first-child { border-top: 0; }
.plain-list li.dim { opacity: .55; }
.date-chip { width: 46px; height: 48px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1.1; }
.date-chip small { font-size: .66rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.date-chip strong { font-size: 1.1rem; }
.date-chip.today { background: var(--brand-2); border-color: var(--brand-2); color: #fff; } .date-chip.today small { color: #c9f0ea; }
.presence { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.person { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); position: relative; }
.person small { display: block; color: var(--muted); font-size: .76rem; }
.person.working { box-shadow: inset 3px 0 0 var(--ok); } .person.paused { box-shadow: inset 3px 0 0 var(--warn); }
.person.missing { box-shadow: inset 3px 0 0 var(--bad); background: color-mix(in srgb, var(--bad-bg) 45%, var(--surface)); }
.absent-line { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.todo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.todo { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.todo strong { font-size: 1.5rem; } .todo span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.todo:hover { border-color: var(--brand-2); }
.row-actions { display: flex; gap: 6px; }
.decide { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.decide input { width: 170px; min-height: 36px; padding: 6px 10px; }
.approvals li { align-items: flex-start; }
.diff { display: flex; flex-direction: column; gap: 2px; margin: 4px 0; font-size: .85rem; }
.diff .old { text-decoration: line-through; color: var(--muted); }
.diff .new { font-weight: 650; }

/* Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table.compact td { padding: 6px 10px; vertical-align: middle; }
.table.compact input:not([type=checkbox]):not([type=color]) { min-height: 34px; padding: 5px 8px; }
.table tfoot td { background: var(--surface-2); font-weight: 600; border-bottom: 0; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }
tr.dim { opacity: .55; }
.days tr.weekend td { background: color-mix(in srgb, var(--line-2) 55%, transparent); }
.days tr.holiday td { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.days tr.is-today td:first-child { box-shadow: inset 3px 0 0 var(--brand-2); }
.days tr.quiet td { color: var(--muted); padding-top: 6px; padding-bottom: 6px; }
.day-cell { white-space: nowrap; }
.day-cell small { display: block; font-size: .72rem; font-weight: 650; }
.day-cell .hol { color: #4d7c0f; }
.day-cell .abs { color: var(--c); }
.plan-chip { display: inline-block; font-size: .75rem; background: var(--line-2); border-radius: 6px; padding: 1px 6px; margin: 1px 2px 1px 0; }
.entry { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 2px 0; }
.entry .when { font-weight: 700; font-variant-numeric: tabular-nums; }
.entry.running .when { color: var(--ok); }
.entry.plan { color: var(--muted); font-style: italic; font-size: .82rem; }
.entry .note { flex-basis: 100%; }
.ok-dot { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.ok-dot .i { width: 12px; height: 12px; }
.person-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.person-link small { display: block; color: var(--muted); font-size: .76rem; }

/* Urlaub & Kalender */
.vac-bar { height: 10px; border-radius: 99px; background: var(--line-2); display: flex; overflow: hidden; margin-bottom: 12px; }
.vac-bar span { background: var(--ok); } .vac-bar .pending { background: repeating-linear-gradient(45deg, var(--warn) 0 4px, color-mix(in srgb, var(--warn) 50%, transparent) 4px 8px); }
.kv { margin: 0; display: grid; gap: 6px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.kv .total { border-top: 1px solid var(--line); padding-top: 8px; font-size: 1.05rem; } .kv .total dd { color: var(--brand-2); font-weight: 800; }
.sick-box { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--bad-bg) 55%, var(--surface)); }
.sick-box summary { color: var(--bad); }
.sick-box form { margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--ink-2); padding-bottom: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal { border-collapse: separate; border-spacing: 0; font-size: .78rem; width: 100%; }
.cal th, .cal td { border-bottom: 1px solid var(--line-2); text-align: center; padding: 0; }
.cal thead th { padding: 6px 2px; font-weight: 700; min-width: 30px; color: var(--ink-2); }
.cal thead th small { display: block; font-size: .64rem; color: var(--muted); font-weight: 600; }
.cal th.sticky { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; padding: 6px 12px; white-space: nowrap; min-width: 180px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.cal thead th.sticky { display: table-cell; }
.cal td { height: 36px; }
.cal .we { background: var(--surface-2); }
.cal .hol { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.cal th.now { color: #fff; background: var(--brand-2); border-radius: 8px 8px 0 0; } .cal th.now small { color: #c9f0ea; }
.cal td.has { background: var(--c); box-shadow: inset 0 0 0 2px var(--surface); border-radius: 6px; }
.cal td.has.pend { background: repeating-linear-gradient(45deg, var(--c) 0 4px, color-mix(in srgb, var(--c) 35%, var(--surface)) 4px 8px); }
.cal td.has.half { background: linear-gradient(135deg, var(--c) 50%, transparent 50%); }

/* Dienstplan */
.pub-state { font-size: .82rem; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.plan { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .82rem; }
.plan th, .plan td { border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); vertical-align: top; }
.plan thead th { background: var(--surface-2); padding: 8px; font-weight: 700; text-align: left; white-space: nowrap; color: var(--ink-2); min-width: 128px; }
.plan thead th span { color: var(--muted); }
.plan thead th small { display: block; font-size: .68rem; color: #4d7c0f; font-weight: 650; white-space: normal; }
.plan thead th.now { background: color-mix(in srgb, var(--brand-2) 12%, var(--surface)); color: var(--brand-2); }
.plan th.sticky { position: sticky; left: 0; z-index: 2; background: var(--surface); padding: 8px 12px; min-width: 190px; text-align: left; }
.plan tbody th.sticky { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.plan tbody th small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.plan tr.mine th.sticky { box-shadow: inset 3px 0 0 var(--brand-2); }
.plan tr.open-row th.sticky { color: var(--warn); }
.plan tr.open-row td { background: color-mix(in srgb, var(--warn-bg) 35%, var(--surface)); }
.plan td.slot { padding: 6px; min-height: 64px; height: 64px; position: relative; }
.plan td.we { background: var(--surface-2); }
.plan td.absent { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, var(--surface)) 0 8px, var(--surface) 8px 16px); }
.plan td.drop { outline: 2px dashed var(--brand-2); outline-offset: -3px; background: color-mix(in srgb, var(--brand-2) 8%, var(--surface)); }
.plan tfoot th, .plan tfoot td { background: var(--surface-2); padding: 8px; font-weight: 600; }
.plan td.num { padding: 8px; vertical-align: middle; }
.plan td.num small { display: block; }
.shift { position: relative; background: color-mix(in srgb, var(--c) 13%, var(--surface)); border-left: 3px solid var(--c); border-radius: 8px; padding: 5px 8px; margin-bottom: 4px; line-height: 1.25; }
.shift strong { display: block; font-variant-numeric: tabular-nums; }
.shift small { color: var(--ink-2); font-size: .72rem; }
.editable .shift { cursor: grab; } .editable .shift:hover { box-shadow: 0 2px 10px -4px rgba(0,0,0,.25); }
.shift.dragging { opacity: .4; }
.shift.conflict { border-left-color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 40%, transparent); }
.shift .conf { display: flex; gap: 3px; align-items: center; color: var(--bad); font-size: .68rem; font-weight: 700; margin-top: 2px; }
.shift .conf .i { width: 11px; height: 11px; }
.add-shift { display: grid; place-items: center; width: 100%; height: 24px; border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.plan td.slot:hover .add-shift, .add-shift:focus-visible { opacity: 1; }
@media (hover: none) { .add-shift { opacity: .7; } }
.add-shift .i { width: 14px; height: 14px; }
.abs-tag, .av-tag { display: block; font-size: .68rem; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-bottom: 4px; }
.abs-tag { color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.av-tag { background: var(--line-2); color: var(--ink-2); }
.av-tag.av-available { background: var(--ok-bg); color: var(--ok); }
.av-tag.av-unavailable, .av-tag.av-wish_off { background: var(--bad-bg); color: var(--bad); }
.tpl-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl { border: 1px solid var(--line); background: color-mix(in srgb, var(--c) 10%, var(--surface)); border-left: 3px solid var(--c); border-radius: 10px; padding: 6px 10px; cursor: pointer; font-weight: 650; text-align: left; }
.tpl small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.offer > form { margin-top: 8px; }
.avail-form { display: flex; flex-direction: column; gap: 8px; }
.avail-row { display: grid; grid-template-columns: 78px 1.3fr .8fr .8fr 1fr; gap: 6px; align-items: center; font-size: .85rem; }
.avail-row input, .avail-row select { min-height: 36px; padding: 6px 8px; font-size: .85rem; }

/* Dialoge */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); }
dialog::backdrop { background: rgba(8,20,19,.45); backdrop-filter: blur(3px); }
.modal { width: min(560px, calc(100vw - 24px)); }
.modal > form, .sheet { background: var(--surface); border-radius: 20px; padding: 20px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sheet { width: min(480px, 100vw); margin: auto auto 0; border-radius: 22px 22px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.sheet-nav { display: flex; flex-direction: column; margin: 8px 0 12px; }
.sheet-nav a { display: flex; gap: 12px; align-items: center; padding: 12px 8px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-2); text-decoration: none; }

/* Einstellungen */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; position: sticky; top: 57px; z-index: 5; padding: 8px 0; background: var(--bg); }
.subnav a { font-size: .82rem; font-weight: 650; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
.loc { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 14px; }
.loc-links { display: flex; gap: 16px; align-items: flex-start; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .72rem; color: var(--muted); }
.qr-box .qr { width: 120px; height: 120px; border-radius: 8px; border: 1px solid var(--line); }
.copy-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.copy-row input { flex: 1; min-width: 180px; font-size: .8rem; }
.add-row { padding-top: 12px; border-top: 1px dashed var(--line); margin-top: 6px; }
.hol-list { columns: 2; font-size: .85rem; }
.hol-list li { padding: 3px 0; break-inside: avoid; }
.hol-list span { display: inline-block; width: 86px; color: var(--muted); font-variant-numeric: tabular-nums; }
.weekdays { display: flex; gap: 6px; flex-wrap: wrap; }
.day-toggle { flex-direction: row; }
.day-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-toggle span { display: grid; place-items: center; width: 42px; height: 38px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-weight: 700; color: var(--ink-2); }
.day-toggle input:checked + span { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.day-toggle input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand-2) 35%, transparent); }
.colors { display: flex; gap: 6px; flex-wrap: wrap; flex-direction: row; }
.color { flex-direction: row; }
.color input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.color span { width: 28px; height: 28px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.color input:checked + span { outline: 3px solid var(--c); outline-offset: 2px; }
.bars li { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: .86rem; }
.bars li small { grid-column: 2 / -1; margin-top: -4px; }
.bars .bar { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--accent)); border-radius: 99px; }
.notes li + li { border-top: 1px solid var(--line-2); }
.note-btn { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 12px 6px; cursor: pointer; color: var(--ink); font-size: .92rem; border-radius: 10px; }
.note-btn:hover { background: var(--surface-2); }
.note-btn small { display: block; color: var(--muted); font-size: .76rem; }
.dot-s { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.notes li.unread .dot-s { background: var(--brand-2); }
.notes li.unread .note-btn { font-weight: 650; }

/* Anmeldung */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: radial-gradient(circle at 20% 10%, #155e57 0, var(--brand) 55%); color: #d5e6e3; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-side h1 { color: #fff; font-size: 2.4rem; max-width: 14ch; }
.brand.big { color: #fff; font-size: 1.5rem; } .brand.big .mark { width: 40px; height: 40px; }
.ticks { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; } .ticks .i { color: var(--accent); margin-top: 2px; }
.auth-card { align-self: center; justify-self: center; width: min(420px, calc(100% - 32px)); margin: 32px 16px; }
.auth-card h2 { font-size: 1.4rem; margin-bottom: 4px; }
.auth-card form { margin-top: 18px; }

/* Terminal */
body.kiosk { background: radial-gradient(circle at 50% 0, #155e57, var(--brand) 60%); color: #fff; min-height: 100vh; }
.kiosk-wrap { min-height: 100vh; display: flex; flex-direction: column; padding: 24px; gap: 24px; max-width: 900px; margin: 0 auto; }
.kiosk-head { display: flex; align-items: center; gap: 20px; }
.kiosk-head .brand { color: #fff; }
.kiosk-head > div { line-height: 1.2; } .kiosk-head small { display: block; color: #a7c7c2; }
.kiosk-clock { margin-left: auto; text-align: right; } .kiosk-clock span { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.kiosk-card { background: var(--surface); color: var(--ink); border-radius: 28px; padding: 32px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
.kiosk-card h1 { font-size: 2rem; }
.kiosk-card.done { align-items: center; text-align: center; padding: 56px 32px; } .kiosk-card.done .i { color: var(--ok); }
.kiosk-card.done.stop .i { color: var(--brand-2); }
.who { display: flex; gap: 18px; align-items: center; }
.kiosk-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kiosk-actions form, .kiosk-btn { width: 100%; }
.kiosk-btn { min-height: 96px; font-size: 1.4rem; border-radius: 20px; }
.kiosk-btn .i { width: 28px; height: 28px; }
.pinpad-form input { font-size: 1.6rem; text-align: center; letter-spacing: .2em; min-height: 60px; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.pinpad button { min-height: 72px; font-size: 1.6rem; font-weight: 700; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.pinpad button:active { transform: scale(.97); background: var(--line-2); }
.pinpad .go { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }
.kiosk-present { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #cfe2de; font-size: .9rem; }
.kiosk-present span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); padding: 4px 10px 4px 4px; border-radius: 99px; }
.kiosk-present span.paused { opacity: .6; }

/* Stempelpunkt */
.punch { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 24px; }
.punch-icon { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-2) 12%, var(--surface)); color: var(--brand-2); margin-bottom: 8px; }
.punch-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 12px 0; }
.punch-actions form, .punch-actions .btn { width: 100%; }

/* Druck */
body.print-page { background: #e9eeec; }
.print-bar { display: flex; gap: 8px; justify-content: center; padding: 16px; position: sticky; top: 0; background: #e9eeec; z-index: 3; }
.sheet-page, .poster { background: #fff; color: #111; width: 210mm; min-height: 297mm; margin: 0 auto 16px; padding: 16mm 14mm; box-shadow: 0 8px 30px -12px rgba(0,0,0,.25); font-size: 10pt; }
.sheet-header { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #0b3b3c; padding-bottom: 8px; margin-bottom: 10px; }
.sheet-header h1 { font-size: 16pt; color: #0b3b3c; }
.sheet-header dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 0; font-size: 9pt; }
.sheet-header dl div { display: contents; } .sheet-header dt { color: #555; } .sheet-header dd { margin: 0; font-weight: 600; }
.sheet { width: 100%; border-collapse: collapse; font-size: 8.6pt; }
.sheet th, .sheet td { border-bottom: 1px solid #ddd; padding: 3px 5px; text-align: left; }
.sheet th { background: #f1f5f4; } .sheet tr.we td { background: #f7f7f7; color: #666; }
.sheet tfoot td { font-weight: 700; border-top: 2px solid #0b3b3c; }
.sheet-meta { font-size: 8.5pt; margin-top: 8px; color: #333; }
.signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.signatures div { border-top: 1px solid #333; padding-top: 4px; font-size: 8pt; color: #555; }
.poster { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 30mm; }
.poster h1 { font-size: 40pt; color: #0b3b3c; }
.poster-loc { font-size: 22pt; font-weight: 700; }
.poster-qr .qr { width: 120mm; height: 120mm; }
.poster ol { text-align: left; font-size: 14pt; line-height: 1.8; }
@media print {
  @page { size: A4; margin: 0; }
  body.print-page { background: #fff; }
  .no-print, .print-bar { display: none !important; }
  .sheet-page, .poster { box-shadow: none; margin: 0; page-break-after: always; width: auto; min-height: 0; }
}

/* Mobil */
@media (max-width: 1100px) {
  .dash { grid-template-columns: 1fr; }
  .todo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .topbar, .main { margin-left: 0; }
  .topbar { padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .top-title { display: none; }
  .mobile-only { display: inline-flex; }
  .main { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); }
  .bare .main { padding: 0; }
  h1 { font-size: 1.45rem; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 650; color: var(--muted); border: 0; background: none; padding: 6px 0; text-decoration: none; cursor: pointer; }
  .tabbar .i { width: 22px; height: 22px; }
  .tabbar [aria-current] { color: var(--brand-2); }
  .cols { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .card { padding: 16px; border-radius: 14px; }
  .stats, .dash > .stats { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 1.2rem; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 32px 24px; }
  .auth-side h1 { font-size: 1.7rem; }
  .clock-actions .btn { font-size: .95rem; gap: 6px; }
  .toast { background: var(--surface-2, var(--surface)); box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); }
  .toasts { top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); right: 16px; left: 16px; max-width: none; }
  .avail-row { grid-template-columns: 70px 1fr 1fr; }
  .avail-row input[name$="[note]"] { grid-column: 2 / -1; }
  .avail-row input[type=time] { grid-row: 2; }
  .loc-links { flex-direction: column; }
  .page-head { margin-bottom: 14px; }
  .table td, .table th { padding: 8px; }
  .subnav { top: 56px; overflow-x: auto; flex-wrap: nowrap; }
  .subnav a { white-space: nowrap; }
  .kiosk-wrap { padding: 16px; }
  .pinpad button { min-height: 64px; }
}
@media (max-width: 480px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .todo-grid { grid-template-columns: 1fr 1fr; }
  .ring { width: 190px; height: 190px; } .ring-inner { width: 160px; height: 160px; } .timer { font-size: 2.3rem; }
  .decide { width: 100%; } .decide input { width: 100%; }
  .bars li { grid-template-columns: 100px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
[id] { scroll-margin-top: 130px; }

/* ---------- 2.1: Planprüfung, Schnelleingabe, Dokumente, Mitteilungen, App ---------- */
.i.xs { width: 13px; height: 13px; }
.key-mark { display: inline-flex; color: #ca8a04; margin-left: 5px; vertical-align: -1px; }
label.key-check .i { color: #ca8a04; }

/* Schnelleingabe im Dienstplan */
.quick { display: flex; gap: 2px; align-items: center; opacity: 0; transition: opacity .12s; }
.plan td.slot:hover .quick, .quick:focus-within, .plan td.slot:not(:has(.shift)) .quick { opacity: 1; }
@media (hover: none) { .quick { opacity: 1; } }
.quick-input { flex: 1; min-width: 0; width: 100%; height: 26px; padding: 2px 7px; font: inherit; font-size: .78rem; border: 1px dashed var(--line); border-radius: 7px; background: transparent; color: var(--ink); }
.quick-input::placeholder { color: var(--muted); opacity: .8; }
.quick-input:focus { outline: none; border-style: solid; border-color: var(--brand-2); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 18%, transparent); }
.quick-input.err { border: 1px solid var(--bad); background: var(--bad-bg); }
.quick-input.busy { opacity: .5; }
.quick-more { display: grid; place-items: center; width: 24px; height: 26px; flex: none; border: 0; background: none; color: var(--muted); border-radius: 7px; cursor: pointer; }
.quick-more:hover { background: var(--line-2); color: var(--ink); }
.quick-tip { position: absolute; left: 4px; right: 4px; top: 100%; z-index: 6; font-size: .72rem; font-weight: 600; background: var(--bad); color: #fff; border-radius: 7px; padding: 4px 7px; box-shadow: var(--shadow); }

/* Planprüfung */
.check-card { padding: 12px 16px; }
.check-card.all-good { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: color-mix(in srgb, var(--ok-bg) 45%, var(--surface)); }
.check-card.has-errors { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad-bg) 40%, var(--surface)); }
.check-card.has-warnings { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn-bg) 40%, var(--surface)); }
.check-ok { display: flex; gap: 12px; align-items: center; color: var(--ok); }
.check-ok small { display: block; color: var(--ink-2); }
.check-card summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; flex-wrap: wrap; }
.check-card summary::-webkit-details-marker { display: none; }
.has-errors summary > .i { color: var(--bad); } .has-warnings summary > .i { color: var(--warn); }
.issue-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.issue-list li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: start; }
.issue-day { font-weight: 750; font-size: .8rem; padding-top: 3px; }
.issue-list li > div { display: flex; flex-wrap: wrap; gap: 6px; }
.issue { display: inline-flex; gap: 5px; align-items: center; font-size: .8rem; font-weight: 600; border-radius: 8px; padding: 3px 9px; }
.issue.error { background: var(--bad-bg); color: var(--bad); }
.issue.warn { background: var(--warn-bg); color: var(--warn); }
.day-issues { display: inline-flex; gap: 3px; align-items: center; margin-left: 6px; font-size: .7rem; font-weight: 800; border-radius: 99px; padding: 1px 7px; text-decoration: none !important; }
.day-issues.error { background: var(--bad); color: #fff; } .day-issues.warn { background: var(--warn-bg); color: var(--warn); }
.alert-card { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.alert-card h2 { display: flex; gap: 8px; align-items: center; } .alert-card h2 .i { color: var(--bad); }

/* Öffnungszeiten */
.loc-hours { margin: 10px 0; border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 10px 12px; background: var(--surface-2); }
.loc-hours summary { cursor: pointer; font-weight: 650; font-size: .88rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.loc-hours summary .muted { font-weight: 500; }
.loc-hours form { margin-top: 12px; }
.hours-grid { display: grid; grid-template-columns: 110px minmax(0, 130px) auto minmax(0, 130px); gap: 6px 10px; align-items: center; }

/* Hinweise auf der Übersicht */
.attention { display: grid; gap: 10px; }
.attn { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 60%, var(--line)); color: var(--ink); text-decoration: none !important; }
.attn > .i:first-child { color: var(--brand-2); width: 24px; height: 24px; }
.attn span { flex: 1; } .attn small { display: block; color: var(--ink-2); }

/* Dokumente */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 18px; border: 2px dashed color-mix(in srgb, var(--brand-2) 35%, var(--line)); background: color-mix(in srgb, var(--brand-2) 4%, var(--surface)); text-align: center; transition: .15s; }
.dropzone .i.lg { color: var(--brand-2); }
.dropzone.over { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 12%, var(--surface)); transform: scale(1.005); }
.dropzone .link { cursor: pointer; display: inline; font-weight: 650; color: var(--brand-2); }
.dropzone .inline-select { flex-direction: row; align-items: center; gap: 8px; margin-top: 6px; }
.dropzone .inline-select select { width: auto; }
.drop-busy { font-weight: 650; color: var(--brand-2); }
.review-list { list-style: none; margin: 0; padding: 0; }
.review { border-top: 1px solid var(--line-2); padding: 14px 18px; border-left: 4px solid transparent; }
.review.warn { border-left-color: var(--warn); } .review.bad { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad-bg) 30%, var(--surface)); } .review.ok { border-left-color: var(--ok); }
.review-form { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(160px, 1.4fr) minmax(150px, 1fr) 150px 140px; gap: 12px; align-items: end; }
.review-file { display: flex; gap: 10px; align-items: center; min-width: 0; align-self: center; }
.review-file a { font-weight: 650; word-break: break-all; }
.review-file small { display: block; }
.review-match { display: flex; flex-direction: column; gap: 3px; align-self: center; align-items: flex-start; }
.review-match small { color: var(--ink-2); font-size: .76rem; line-height: 1.3; }
.review-actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.doc-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--brand-2) 12%, var(--surface)); color: var(--brand-2); }
.btn.small { padding: 6px 11px; font-size: .82rem; }

/* Mitteilungen */
.compose summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; list-style: none; }
.compose form { margin-top: 12px; }
textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); resize: vertical; }
.post.needs-ack { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn-bg) 70%, transparent); }
.post.pinned h2 .i { color: var(--brand-2); }
.post-body { margin: 6px 0 14px; white-space: normal; line-height: 1.6; }
.post-stats { margin-top: 10px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.post-stats summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: .85rem; }
.read-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.read-list li { display: flex; gap: 8px; align-items: center; font-size: .88rem; }

/* Einladung und App-Seite */
.invite-grid { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.invite-grid .qr-box svg { width: 132px; height: 132px; }
.steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.steps li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--accent); font-weight: 800; }
.steps li > div { display: flex; flex-direction: column; gap: 6px; }
.steps small { line-height: 1.4; }
.getapp .qr-box { margin: 10px auto; }
.phone-mock { margin-top: 28px; width: 170px; height: 300px; border-radius: 28px; border: 6px solid rgba(255,255,255,.14); background: rgba(0,0,0,.22); padding: 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pm-top { width: 50px; height: 6px; border-radius: 9px; background: rgba(255,255,255,.18); }
.pm-ring { width: 104px; height: 104px; border-radius: 50%; border: 7px solid var(--accent); display: grid; place-content: center; text-align: center; color: #fff; }
.pm-ring strong { font-size: 1.5rem; } .pm-ring small { opacity: .7; }
.pm-btn { width: 100%; text-align: center; background: #ef6b6b; color: #fff; font-weight: 700; border-radius: 10px; padding: 8px 0; font-size: .85rem; }
.pm-row { width: 100%; height: 12px; border-radius: 6px; background: rgba(255,255,255,.14); } .pm-row.short { width: 60%; align-self: flex-start; }
.tabbar a, .tabbar button { position: relative; }
.tab-dot { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 99px; background: var(--bad); color: #fff; font-size: .62rem; font-weight: 800; font-style: normal; display: grid; place-items: center; padding: 0 4px; }
.sheet-nav .count { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: .72rem; font-weight: 800; padding: 1px 8px; }

/* In der Android-App: immer Handy-Layout, keine Seitenleiste */
body.in-app .sidebar { display: none; }
body.in-app .main { margin-left: 0; }
body.in-app .topbar { margin-left: 0; }

@media (max-width: 860px) {
  .review-form { grid-template-columns: 1fr 1fr; }
  .review-file, .review-match { grid-column: 1 / -1; }
  .hours-grid { grid-template-columns: 82px 1fr auto 1fr; }
  .issue-list li { grid-template-columns: 1fr; gap: 4px; }
  .phone-mock { display: none; }
}
.check-card .issue-list { max-height: 248px; overflow: auto; padding-right: 4px; }

/* 2.2 Standortwahl, Gegenvorschlag */
.loc-switch { display: flex; align-items: center; gap: 6px; padding: 0 4px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.loc-switch select { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; padding: 7px 6px; max-width: 46vw; min-height: 0; box-shadow: none; }
.loc-switch select:focus { outline: none; }
.loc-switch:focus-within { border-color: var(--accent, #a3e635); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.counter-box { margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--warn); background: var(--warn-bg); }
.counter-box .row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.decide details { flex-basis: 100%; }
.decide details summary { cursor: pointer; font-size: .9em; opacity: .85; }
.decide details .grid2 { margin-top: 8px; }
.loc-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.app-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 8px; border-radius: var(--radius-s); color: inherit; opacity: .85; text-decoration: none; font-size: .92em; }
.app-link:hover { opacity: 1; background: rgba(255,255,255,.06); }
.quick-pick { position: fixed; z-index: 60; min-width: 170px; max-height: 60vh; overflow: auto; display: grid; gap: 4px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 12px 28px -10px rgba(0,0,0,.35); }
.quick-pick button { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 7px 10px; border: 0; border-left: 3px solid var(--c); border-radius: 8px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: .86em; cursor: pointer; text-align: left; white-space: nowrap; }
.quick-pick button:hover, .quick-pick button:focus { background: color-mix(in srgb, var(--c) 18%, var(--surface-2)); }
.quick-pick span { color: var(--muted); font-variant-numeric: tabular-nums; }
.label-text { display: block; font-size: .88em; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.preset-box { margin-top: 16px; padding: 14px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px dashed var(--line); display: grid; gap: 8px; justify-items: start; }

/* 2.3 Ruhigeres Planraster (Leitung) */
.check-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 650; color: var(--ok); background: var(--ok-bg); cursor: help; }
.plan-card .plan thead th { padding: 10px 10px 8px; }
.plan thead th small.staff { display: inline-flex; align-items: center; gap: 2px; float: right; color: var(--muted); font-weight: 600; }
.plan thead th small.staff .i { width: 11px; height: 11px; }
.plan td.slot { height: 58px; min-height: 58px; }
.plan tbody th.sticky { min-width: 210px; }
.plan .who { display: grid; gap: 2px; min-width: 0; flex: 1; }
.plan .who-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan .hours { position: relative; display: block; height: 16px; margin-top: 3px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.plan .hours i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--muted) 35%, transparent); border-radius: 6px; }
.plan .hours.ok i { background: color-mix(in srgb, var(--ok) 40%, transparent); }
.plan .hours.over i { background: color-mix(in srgb, var(--warn) 55%, transparent); }
.plan .hours b { position: relative; display: block; font-size: .68rem; line-height: 16px; padding: 0 6px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.plan tr.open-row th.sticky { padding-top: 4px; padding-bottom: 4px; }
.plan tr.open-row td.slot { height: 40px; min-height: 40px; padding: 4px 6px; }
.open-label { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; }
.shift { padding: 6px 9px; }
.shift strong { font-size: .86rem; letter-spacing: -.01em; }
.shift small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Freie Zellen: nur ein leises „+“, Eingabe und Zahnrad erscheinen beim Überfahren */
.plan td.slot:not(:has(.shift)) .quick { opacity: 1; }
.plan td.slot .quick-input { border-color: transparent; text-align: center; }
.plan td.slot .quick-input::placeholder { font-size: 1rem; opacity: .35; }
.plan td.slot:hover .quick-input { border-color: var(--line); text-align: left; }
.plan td.slot:hover .quick-input::placeholder { opacity: .7; }
.plan td.slot .quick-input:focus { text-align: left; }
.plan td.slot .quick-more { opacity: 0; transition: opacity .12s; }
.plan td.slot:hover .quick-more, .plan td.slot .quick:focus-within .quick-more { opacity: 1; }
.plan td.slot:has(.shift) .quick { height: 0; overflow: hidden; }
.plan td.slot:has(.shift):hover .quick, .plan td.slot:has(.shift) .quick:focus-within { height: auto; overflow: visible; }
@media (hover: none) { .plan td.slot .quick-more { opacity: .6; } .plan td.slot:has(.shift) .quick { height: auto; } }
.plan-help { border-top: 1px solid var(--line-2); }
.plan-help summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--ink-2); padding: 12px 0; }
.plan-help p { margin: 0 0 14px; }
.avail-card summary { list-style: none; cursor: pointer; }
.avail-card summary::-webkit-details-marker { display: none; }
.avail-card details:not([open]) summary { margin-bottom: 0; }

/* 2.3 Dienstplan in der App: eigene Schichten untereinander, Team-Ansicht */
.me-plan { display: grid; gap: 14px; max-width: 720px; margin: 0 auto 18px; }
.mp-head { display: grid; gap: 12px; }
.mp-week { display: flex; align-items: center; gap: 8px; }
.mp-week > div { flex: 1; text-align: center; display: grid; line-height: 1.2; }
.mp-week strong { font-size: 1.15rem; }
.mp-week small { color: var(--muted); font-size: .8rem; }
.mp-sum { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 18px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.mp-sum > div:not(.mp-bar) { display: grid; line-height: 1.15; }
.mp-sum strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.mp-sum small { font-size: .72rem; opacity: .8; }
.mp-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.mp-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.seg a { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px; border-radius: 10px; color: var(--ink-2); font-weight: 650; font-size: .9rem; text-decoration: none; }
.seg a .i { width: 16px; height: 16px; }
.seg a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.day-list { display: grid; gap: 10px; }
.day-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.day-card.off { background: transparent; box-shadow: none; border-style: dashed; padding: 8px 12px; align-items: center; }
.day-card.past { opacity: .6; }
.day-card.today { border-color: var(--brand-2); box-shadow: 0 0 0 1px var(--brand-2), var(--shadow); }
.dc-date { width: 48px; flex: none; display: grid; justify-items: center; line-height: 1.1; padding: 4px 0; border-radius: 12px; background: var(--surface-2); }
.dc-date small { font-size: .66rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.dc-date strong { font-size: 1.3rem; }
.day-card.today .dc-date { background: var(--brand-2); color: #fff; } .day-card.today .dc-date small { color: #c9f0ea; }
.day-card.off .dc-date { background: none; }
.dc-body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.dc-free { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.dc-shift { border-left: 4px solid var(--c); padding: 2px 0 2px 12px; display: grid; gap: 6px; }
.dc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dc-time { font-size: 1.45rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dc-time span { margin: 0 3px; color: var(--muted); font-weight: 500; }
.dc-time small { font-size: .75rem; font-weight: 600; color: var(--muted); margin-left: 5px; }
.dc-hours { font-size: .78rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.dc-meta { color: var(--ink-2); font-size: .86rem; }
.dc-meta:empty { display: none; }
.dc-with { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-2); }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar + .avatar { margin-left: -7px; }
.dc-offer summary, .dc-actions { font-size: .8rem; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.dc-offer form { margin-top: 8px; }
.mp-note { margin: 0; text-align: center; }
.team-days { display: grid; gap: 12px; }
.team-day { padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.team-day.today { border-color: var(--brand-2); }
.team-day h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.team-day h3 small { margin-left: auto; font-weight: 500; font-size: .78rem; }
.tl-scale { display: flex; justify-content: space-between; margin-left: 92px; font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; border-bottom: 1px dashed var(--line); padding-bottom: 3px; margin-bottom: 6px; }
.tl-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tl-rows li { display: flex; align-items: center; gap: 8px; }
.tl-who { width: 84px; flex: none; display: flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; min-width: 0; }
.tl-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-track { position: relative; flex: 1; height: 26px; border-radius: 8px; background: var(--surface-2); }
.tl-bar { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 7px; border-radius: 8px; background: color-mix(in srgb, var(--c) 30%, var(--surface)); border-left: 3px solid var(--c); font-size: .72rem; font-weight: 700; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; min-width: 36px; }
.tl-rows li.me .tl-who { color: var(--brand-2); }
.tl-rows li.me .tl-bar { background: color-mix(in srgb, var(--c) 55%, var(--surface)); box-shadow: 0 0 0 2px var(--brand-2); }

/* 2.4 Einstellungen in Reitern */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.settings-nav { position: sticky; top: 72px; display: grid; gap: 2px; padding: 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-s); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; }
.settings-nav a .i { width: 17px; height: 17px; opacity: .8; }
.settings-nav a:hover { background: var(--surface-2); color: var(--ink); }
.settings-nav a[aria-current] { background: color-mix(in srgb, var(--brand-2) 16%, var(--surface)); color: var(--ink); box-shadow: inset 3px 0 0 var(--brand-2); }
.settings-body { min-width: 0; }
.settings-intro { margin: 2px 0 16px; }
.settings-intro h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 1.3rem; }
.settings-intro h2 .i { width: 22px; height: 22px; color: var(--brand-2); }
.settings-intro p { margin: 0; color: var(--muted); max-width: 70ch; }
.settings-hint { display: block; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--info-bg); color: var(--ink-2); line-height: 1.5; }
.settings-body fieldset { border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 12px 14px 4px; margin: 0; }
.settings-body fieldset legend { padding: 0 6px; font-weight: 700; font-size: .9rem; }
.settings-body label > small.muted { display: block; font-weight: 400; margin-top: 5px; }
.compact-steps { margin: 0 0 14px; }
@media (max-width: 900px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 6px; scrollbar-width: none; }
  .settings-nav a { white-space: nowrap; padding: 8px 12px; }
  .settings-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--brand-2); }
}

/* 2.5 Woche planen */
.plan .who + .week-btn, .plan th.sticky .week-btn { flex: none; align-self: center; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; opacity: .55; transition: opacity .12s, background .12s; }
.plan tr:hover .week-btn, .plan .week-btn:focus-visible { opacity: 1; }
.plan .week-btn:hover { background: var(--surface-2); color: var(--brand-2); }
.free-tag { display: inline-block; font-size: .72rem; font-weight: 650; color: var(--muted); padding: 2px 8px; border-radius: 99px; border: 1px dashed var(--line); }
#week-dialog { width: min(460px, 94vw); }
.week-free { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.week-free .chip { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; cursor: pointer; color: var(--ink-2); }
.week-free .chip.on { background: var(--ink-2); color: var(--surface); border-color: var(--ink-2); }
.week-rows { display: grid; gap: 6px; }
.week-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; margin: 0; }
.week-row.we strong { color: var(--brand-2); }
.week-row select { width: 100%; }

/* 2.6 Benachrichtigungen aufs Handy */
.push-card .push-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.push-card .push-row > .i { width: 26px; height: 26px; color: var(--brand-2); flex: none; }
.push-card p { margin: 3px 0 0; }

[hidden] { display: none !important; }

.update-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 25%, var(--surface)); color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.update-bar .i { flex: none; color: var(--brand-2); }

/* 2.7 Dienstplan, ruhiger: Tippen statt Eintippen */
.plan-toolbar { position: sticky; top: 0; z-index: 6; padding: 10px 0; margin-bottom: 8px; background: var(--bg); }
.plan-card .plan { border-collapse: separate; border-spacing: 0; }
.plan th, .plan td { border-color: color-mix(in srgb, var(--line-2) 70%, transparent); }
.plan thead th.day-head { padding: 10px 10px 9px; min-width: 118px; vertical-align: bottom; }
.day-head .dh-wd { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.day-head .dh-date { font-size: 1.02rem; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.day-head.now .dh-date, .day-head.now .dh-wd { color: var(--brand-2); }
.day-head .dh-dot { display: inline-block; width: 8px; height: 8px; margin-left: 7px; border-radius: 50%; vertical-align: 2px; background: var(--warn); }
.day-head .dh-dot.error { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 22%, transparent); }
.day-head .dh-note { display: block; margin-top: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.day-head.hol .dh-note { color: #65a30d; }
.plan th.closed, .plan td.closed { min-width: 64px !important; width: 64px; background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--line-2) 45%, transparent) 7px 8px); }
.plan thead th.closed { background-color: var(--surface-2); }
.plan td.slot { height: 62px; padding: 5px; cursor: pointer; transition: background .12s; }
.plan td.slot.closed { cursor: default; }
.plan td.slot:not(.closed):hover, .plan td.slot.picking { background: color-mix(in srgb, var(--brand-2) 7%, transparent); }
.plan td.slot.picking { box-shadow: inset 0 0 0 2px var(--brand-2); }
.cell-add { display: grid; place-items: center; width: 100%; height: 100%; min-height: 48px; border: 0; background: none; color: var(--muted); opacity: 0; cursor: pointer; border-radius: 8px; }
.plan td.slot:hover .cell-add, .cell-add:focus-visible { opacity: .7; }
.plan td.slot:has(.shift) .cell-add, .plan td.slot:has(.abs-tag) .cell-add { display: none; }
@media (hover: none) { .cell-add { opacity: .35; } }
.shift { padding: 7px 10px; margin-bottom: 3px; border-left-width: 4px; border-radius: 9px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); cursor: pointer; transition: transform .1s, box-shadow .1s; }
.shift:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.shift strong { font-size: 1rem; font-weight: 750; letter-spacing: -.01em; }
.shift small { font-size: .74rem; color: var(--ink-2); opacity: .85; }
.free-tag { margin: 4px; }
.plan .who-meta { color: var(--muted); font-size: .76rem; }
.plan .who-meta b { font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.plan .who-meta b.over { color: var(--warn); }
.plan .hours-line { position: relative; display: block; height: 3px; margin-top: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; max-width: 150px; }
.plan .hours-line i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--muted); }
.plan .hours-line.ok i { background: var(--ok); }
.plan .hours-line.over i { background: var(--warn); }
.plan .week-btn { width: auto !important; padding: 0 9px; gap: 5px; display: inline-flex !important; align-items: center; font: inherit; font-size: .74rem; font-weight: 650; }
.plan tfoot td.num small { color: var(--muted); font-weight: 500; margin-right: 4px; }
/* Auswahl neben der Zelle */
.cell-menu { position: fixed; z-index: 60; width: 286px; max-width: calc(100vw - 16px); padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px -12px rgba(0,0,0,.45); animation: cm-in .12s ease-out; }
@keyframes cm-in { from { opacity: 0; transform: translateY(-4px); } }
.cell-menu.busy { opacity: .7; pointer-events: none; }
.cm-head { display: grid; gap: 2px; margin-bottom: 10px; }
.cm-head strong { font-size: .92rem; }
.cm-head small { color: var(--muted); font-size: .78rem; }
.cm-label { margin: 0 0 6px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cm-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.cm-tpl { display: grid; gap: 1px; text-align: left; padding: 9px 10px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--ink); cursor: pointer; font: inherit; }
.cm-tpl:hover, .cm-tpl:focus-visible { background: color-mix(in srgb, var(--c) 24%, var(--surface)); outline: none; }
.cm-tpl.current { box-shadow: 0 0 0 2px var(--c); }
.cm-tpl.busy { opacity: .6; }
.cm-time { font-weight: 750; font-size: .98rem; font-variant-numeric: tabular-nums; }
.cm-name { font-size: .74rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-custom { display: flex; gap: 6px; }
.cm-custom input { flex: 1; min-width: 0; height: 34px; padding: 4px 10px; font: inherit; font-size: .86rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--ink); }
.cm-custom input:focus { outline: none; border-color: var(--brand-2); }
.cm-status { margin: 6px 0 0; font-size: .8rem; color: var(--bad); }
.cm-status:empty { display: none; }
.cm-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-2); }
.cm-link { border: 0; background: none; padding: 2px 0; font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.cm-link:hover { color: var(--brand-2); }
.cm-link.bad { color: var(--bad); }
.plan tbody th.sticky { min-width: 236px; }
.plan .who-meta { white-space: nowrap; }
.plan .week-btn span { display: inline; }
@media (max-width: 760px) { .plan tbody th.sticky { min-width: 150px; } .plan .week-btn span { display: none; } .plan-toolbar { position: static; } }

/* 2.6 Passwort vergessen */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label-row a { font-weight: 500; }

/* 2.6 Nachträglich bearbeiten: aufklappbares Formular in Listen */
.plain-list > li { flex-wrap: wrap; }
details.edit-row > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
details.edit-row > summary::-webkit-details-marker { display: none; }
details.edit-row[open] { flex-basis: 100%; order: 10; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--brand-2) 4%, transparent); }
details.edit-row[open] > summary { margin-bottom: 10px; }
details.edit-row[open] > summary::after { content: ' – schließen'; font-weight: 500; opacity: .7; }
details.edit-row form + form { margin-top: 10px; }
.post details.edit-row:not([open]) { margin-top: 6px; }

/* 2.6 Rechtliches */
.legal { max-width: 780px; margin: 0 auto; line-height: 1.6; }
.legal h1 { font-size: 1.5rem; margin: 14px 0 6px; }
.legal h2 { font-size: 1.05rem; margin: 22px 0 4px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.legal-tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; color: inherit; }
.legal-tabs a[aria-current] { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.legal-links { margin-top: 4px; }

/* 2.8 Kalender der Arbeitszeiten, vergessenes Stempeln, Notiz beim Ausstempeln */
.toolbar .seg { display: inline-grid; min-width: 220px; }
.toolbar .seg a { padding: 6px 10px; }
.time-cal-card { padding: 14px; }
.time-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tc-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding: 0 4px 2px; }
.tc-day { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 96px; padding: 7px 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; overflow: hidden; }
.tc-day:hover { border-color: var(--brand-2); text-decoration: none; }
.tc-day.we { background: var(--surface-2); }
.tc-day.future { opacity: .6; }
.tc-day.now { border-color: var(--brand-2); box-shadow: 0 0 0 1px var(--brand-2) inset; }
.tc-num { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.tc-hours { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.tc-live { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--ok); }
.tc-soll, .tc-times { font-size: .7rem; color: var(--ink-2); line-height: 1.25; }
.tc-times { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-tag { align-self: flex-start; max-width: 100%; font-size: .68rem; font-weight: 650; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c, #94a3b8) 18%, transparent); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-tag.hol { --c: #f59e0b; }
.tc-bar { position: absolute; left: 8px; right: 8px; bottom: 5px; height: 3px; border-radius: 2px; background: var(--line); }
.tc-bar i { display: block; height: 100%; border-radius: 2px; background: var(--ink-2); }
.tc-day.ok .tc-bar i { background: var(--ok); }
.tc-day.under .tc-bar i { background: var(--warn); }
.tc-day.over .tc-bar i { background: var(--brand-2); }
.tc-day.under .tc-hours { color: var(--warn); }
.tc-legend { margin: 10px 2px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tc-key { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-left: 6px; }
.tc-key.ok { background: var(--ok); } .tc-key.under { background: var(--warn); } .tc-key.over { background: var(--brand-2); }
@media (max-width: 640px) {
  .time-cal { gap: 3px; }
  .tc-day { min-height: 64px; padding: 4px 4px 9px; border-radius: 8px; }
  .tc-hours { font-size: .82rem; }
  .tc-soll, .tc-times { display: none; }
  .tc-tag { font-size: .58rem; padding: 0 3px; }
  .tc-head { font-size: .62rem; padding: 0 2px; }
}
.forgot-box { margin: 4px 0 14px; padding: 14px; border-radius: 14px; background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.forgot-box p { margin: 0 0 10px; }
.forgot-box .i { color: var(--warn); }
.stop-form { display: grid; gap: 8px; margin-top: 10px; }
.stop-form input { text-align: center; }
.stop-note { display: block; margin-top: 3px; padding: 4px 8px; border-radius: 8px; background: var(--info-bg); font-size: .8rem; }
.mini.warn { color: var(--warn); }
.stop-form .btn { width: 100%; }

/* Rechte */
.perm-list { display: grid; gap: 6px; }
.perm-list .perm-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; text-align: left; font-weight: normal; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; margin: 0; }
.perm-row.custom { border-color: var(--brand, #0f766e); background: color-mix(in srgb, var(--brand, #0f766e) 6%, transparent); }
.perm-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.perm-row select { width: auto; min-width: 150px; }
.perm-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #cbd5e1; }
.perm-dot.on { background: #16a34a; }
.perm-table td.center, .perm-table th.center { text-align: center; }
.perm-table input[type=checkbox] { width: 18px; height: 18px; }
@media (max-width: 640px) { .perm-list .perm-row { grid-template-columns: 10px 1fr; } .perm-list .perm-row select { grid-column: 1 / -1; width: 100%; } }

/* Automatische Planung */
.auto-plan { position: relative; }
.auto-plan > summary { list-style: none; cursor: pointer; }
.auto-plan > summary::-webkit-details-marker { display: none; }
.auto-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(360px, 90vw); padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.shift[data-auto]::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.cm-why { display: block; margin-top: 4px; color: var(--muted, #64748b); line-height: 1.35; }

/* Zwei-Faktor */
.mfa-qr{display:flex;justify-content:center;margin:8px 0}
.mfa-qr svg{width:200px;height:200px;background:#fff;padding:6px;border-radius:10px}
.mfa-key{word-spacing:4px;user-select:all}
.mfa-steps{padding-left:20px;margin:0}
.mfa-codes{border:1px solid var(--warn,#d97706);background:rgba(217,119,6,.08);border-radius:12px;padding:12px 14px;margin-bottom:12px}
.mfa-codes ol{columns:2;margin:6px 0 0;padding-left:22px}
.mfa-codes code{font-size:15px;letter-spacing:.5px}

/* Registrierung und Testzeitraum */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.trial-bar{display:flex;gap:8px;align-items:center;padding:8px 14px;margin:0 0 12px;border-radius:10px;background:rgba(15,118,110,.08);border:1px solid rgba(15,118,110,.25);font-size:14px}
.trial-bar.soon{background:rgba(217,119,6,.08);border-color:rgba(217,119,6,.35)}

/* Lohnvorschau */
.wage-big { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 8px; }
.wage-big strong { font-size: 30px; letter-spacing: -.5px; }
.wage-lines li { align-items: center; }
.bars .bar.over i { background: linear-gradient(90deg, #f59e0b, #dc2626); }
.warn-text { color: #d97706; }
.grid2.tight { gap: 6px; }

/* Sprachen */
.lang-pick bdi { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-pick .chip { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-2); text-decoration: none; color: inherit; font-size: 13px; }
.lang-pick .chip.on { background: var(--brand-2, #0f766e); border-color: transparent; color: #fff; }
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .ticks li, [dir="rtl"] .plain-list li { direction: rtl; }
[dir="rtl"] .toast-x { margin-left: 0; margin-right: auto; }
[dir="rtl"] .chevron-right, [dir="rtl"] .i-chevron-right { transform: scaleX(-1); }
[dir="rtl"] input[type="time"], [dir="rtl"] input[type="date"], [dir="rtl"] .timer, [dir="rtl"] .num { direction: ltr; }

/* Import aus Excel */
.import-kinds li { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.import-kinds li:last-child { border-bottom: 0; }
.import-kinds a { font-weight: 650; }
.import-map label { font-weight: 600; }
.import-preview tr.error td { background: color-mix(in srgb, var(--bad-bg) 55%, transparent); }
.import-preview tr.exists td { color: var(--muted); }
.import-settings details summary { cursor: pointer; font-weight: 650; margin: 4px 0 10px; }
.row-gap { display: flex; gap: 6px; flex-wrap: wrap; }

/* Betriebsrat & Datenschutz */
.privacy-docs li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.privacy-docs .grow { min-width: 220px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; }
.check-list .i { color: var(--ok); margin-top: 3px; flex: none; }

/* Android-WebView: Weichzeichner hinter der klebenden Kopfzeile malt auf kurzen Seiten Flächen falsch (WebView 145) */
.in-app .topbar { backdrop-filter: none; background: var(--bg); }

/* 2.24 Mitteilungen: automatisch übersetzt, Original auf Wunsch */
.post-original { margin: -6px 0 14px; }
.post-original summary { cursor: pointer; color: var(--muted); }
.post-original .post-body { margin-top: 8px; padding: 10px 12px; border-inline-start: 3px solid var(--line-2); background: color-mix(in srgb, var(--line-2) 18%, transparent); border-radius: 8px; }
