/* Korsitzke Fenster & Türen – Farben, Schriften und Formen aus dem Design System "Korsitzke" */
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  /* Design-System-Tokens */
  --blau: #002863;
  --blau-dunkel: #001a42;
  --blau-hell: #e9eef5;
  --weiss: #ffffff;
  --hellgrau: #f3f5f8;
  --linie: #dde2e9;
  --text: #1b2433;
  --grau: #5b6573;
  --nebel: #b9c4d6;
  --font-head: "Barlow", "Segoe UI", sans-serif;
  --font-text: "Source Sans 3", "Segoe UI", sans-serif;
  --schatten-karte: 0 1px 2px #1b24330f, 0 4px 16px #1b24330f;
  --schatten-hoch: 0 8px 28px #1b24331f;
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #002863;
  /* Rollen in der App */
  --bg: var(--hellgrau);
  --surface: var(--weiss);
  --surface-2: var(--hellgrau);
  --ink: var(--text);
  --muted: var(--grau);
  --line: var(--linie);
  --work: var(--blau);
  --work-soft: var(--blau-hell);
  --pause: var(--grau);
  --pause-soft: var(--hellgrau);
  --danger: #b3261e;
  --danger-soft: #fbeceb;
  --info: var(--blau);
  --info-soft: var(--blau-hell);
  --btn: var(--blau);
  --btn-ink: var(--weiss);
  --radius: 8px;
  --shadow: var(--schatten-karte);
  --nav-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.num, td, .tile b, .clock { font-variant-numeric: tabular-nums; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-family: var(--font-head); font-weight: 600; color: var(--blau); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.boot { padding: 40vh 0; text-align: center; color: var(--muted); }

/* ---------- layout ---------- */
.shell { min-height: 100vh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); }
.main { max-width: 760px; margin: 0 auto; padding: 20px 16px; }
.main.wide { max-width: 1120px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto; padding: 14px 16px 0;
}
.brand { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar .brand { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar .brand img { flex: none; }
.who { max-width: 38vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.brand img { width: 26px; height: 26px; }
.who { font-size: .85rem; color: var(--muted); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* bottom navigation (mobile) / sidebar (desktop) */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.nav a {
  flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 550;
  padding: 6px 2px; border-radius: 10px;
}
.nav a svg { width: 24px; height: 24px; }
.nav a.on { color: var(--ink); }
.nav a.on svg { stroke-width: 2.2; }
.nav .desk-only { display: none; }
@media (min-width: 960px) {
  .shell { padding: 0 0 40px 232px; }
  .nav {
    top: 0; right: auto; width: 232px; flex-direction: column; justify-content: flex-start; gap: 2px;
    border-top: 0; border-right: 1px solid var(--line); padding: 72px 12px 20px; background: var(--surface);
  }
  .nav a { flex: none; max-width: none; flex-direction: row; gap: 12px; font-size: .92rem; padding: 10px 12px; }
  .nav a.on { background: var(--bg); }
  .nav a svg { width: 20px; height: 20px; }
  .nav .desk-only { display: flex; }
  .nav .mob-only { display: none; }
  .nav .nav-brand { position: absolute; top: 20px; left: 24px; }
  .topbar .brand { visibility: hidden; }
}
.nav .nav-brand { display: none; }
@media (min-width: 960px) { .nav .nav-brand { display: flex; } }

/* ---------- cards & tiles ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tile span { display: block; font-size: .78rem; color: var(--muted); }
.tile b { display: block; font-size: 1.3rem; font-weight: 650; margin-top: 2px; }
.tile small { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tiles.three .tile { padding: 11px 12px; }
.tiles.three .tile b { font-size: 1.2rem; }
.pos { color: var(--work); }
.neg { color: var(--danger); }

/* ---------- status / stamping ---------- */
.status {
  border-radius: 20px; padding: 22px 20px 20px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow);
}
.status .state { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .9rem; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status.working .dot { background: var(--work); box-shadow: 0 0 0 4px var(--work-soft); animation: pulse 2s infinite; }
.status.pause .dot { background: var(--pause); box-shadow: 0 0 0 4px var(--pause-soft); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px var(--work-soft); } }
.status .clock { font-size: 3.2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 10px 0 2px; }
.status .clock small { font-size: 1rem; font-weight: 550; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.status .sub { color: var(--muted); font-size: .92rem; }
.status .bar { height: 6px; border-radius: 3px; background: var(--line); margin: 14px 0 4px; overflow: hidden; }
.status .bar i { display: block; height: 100%; background: var(--work); border-radius: 3px; transition: width .4s; }
.status.pause .bar i { background: var(--pause); }
.actions { display: grid; gap: 10px; margin-top: 18px; grid-template-columns: 1fr 1fr; }
.actions .big { grid-column: 1 / -1; }
.stamp {
  appearance: none; border: 0; border-radius: 16px; min-height: 64px; font: inherit; font-size: 1.12rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff;
  transition: transform .08s, filter .15s;
}
.stamp:active { transform: scale(.98); }
.stamp:disabled { opacity: .6; }
.stamp svg { width: 22px; height: 22px; }
.stamp.go { background: var(--work); }
.stamp.pause { background: var(--pause); }
.stamp.stop { background: var(--btn); color: var(--btn-ink); }
.stamp.big { min-height: 76px; font-size: 1.25rem; }

.segs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.seg-chip { font-size: .82rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; font-variant-numeric: tabular-nums; }
.seg-chip.run { border-color: var(--work); color: var(--work); }

.banner { border-radius: 12px; padding: 12px 14px; font-size: .92rem; border: 1px solid transparent; }
.banner.warn { background: var(--pause-soft); border-color: color-mix(in srgb, var(--pause) 30%, transparent); }
.banner.err { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.banner.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.banner.ok { background: var(--work-soft); border-color: color-mix(in srgb, var(--work) 25%, transparent); }
.banner b { font-weight: 650; }

/* ---------- entry form ---------- */
.entry h2 { margin-bottom: 14px; }
.datesel { display: flex; gap: 8px; align-items: center; }
.datesel input { flex: 1; min-width: 0; }
.chip {
  appearance: none; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 8px 14px; min-height: 40px;
}
.chip.on { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.chips .chip { padding: 6px 12px; min-height: 34px; font-size: .84rem; }
.dayinfo { font-size: .85rem; color: var(--muted); margin: 8px 0 14px; min-height: 1.2em; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pauserow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pauserow input { width: 84px; flex: none; }
.pauserow .chip { padding: 6px 12px; min-height: 40px; font-size: .86rem; }
.nw { white-space: nowrap; }
.stamp.save { width: 100%; margin-top: 14px; }
.list.days > li { padding: 11px 16px; cursor: pointer; gap: 10px; }
.list.days > li:hover { background: var(--surface-2); }
.list.days .d { width: 74px; flex: none; font-weight: 650; white-space: nowrap; }
.list.days .grow { font-size: .9rem; }
.list.days .r { text-align: right; min-width: 44px; }
.list.days li.free { color: var(--muted); }
.list.days .tag { display: inline-block; font-size: .74rem; font-weight: 650; padding: 1px 8px; border-radius: 99px; background: var(--info-soft); color: var(--info); }
.list.days .tag.err { background: var(--danger-soft); color: var(--danger); }
.stampmini { padding: 14px 16px; }

/* ---------- forms ---------- */
label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field + .field { margin-top: 12px; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
input, select, textarea {
  width: 100%; min-width: 0; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--info) 50%, transparent); outline-offset: 0; border-color: var(--info); }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--work); vertical-align: middle; }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink); font-weight: 500; margin: 0; cursor: pointer; }
.daypick { display: flex; gap: 6px; flex-wrap: wrap; }
.daypick label { margin: 0; }
.daypick input { display: none; }
.daypick span {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); font-weight: 600; color: var(--muted); cursor: pointer; background: var(--surface);
}
.daypick input:checked + span { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }

.btn {
  appearance: none; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  border-radius: 10px; padding: 9px 14px; min-height: 40px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn.primary:hover { filter: brightness(1.15); }
.btn.danger { color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: .84rem; }
.btn svg { width: 18px; height: 18px; }
.btn:disabled { opacity: .5; cursor: default; }
.iconbtn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iconbtn svg { width: 20px; height: 20px; }

.monthpick { display: inline-flex; align-items: center; gap: 6px; }
.monthpick b { min-width: 140px; text-align: center; font-weight: 650; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list .grow { min-width: 0; }
.list .title { font-weight: 600; }
.list a.li-link { text-decoration: none; display: flex; align-items: center; gap: 12px; width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; border-radius: 99px; padding: 3px 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.working { background: var(--work-soft); color: var(--work); border-color: transparent; }
.pill.pause { background: var(--pause-soft); color: var(--pause); border-color: transparent; }
.pill.abs { background: var(--info-soft); color: var(--info); border-color: transparent; }
.pill.err { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); flex: none; }

/* ---------- report table ---------- */
.tbl-wrap { overflow-x: auto; }
table.rep { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.rep th { text-align: left; font-size: .75rem; color: var(--muted); font-weight: 650; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.rep td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rep tr:last-child td { border-bottom: 0; }
table.rep .r { text-align: right; white-space: nowrap; }
table.rep tr.off td { background: var(--surface-2); color: var(--muted); }
table.rep tr.future td { color: var(--muted); }
table.rep tr.today td { background: var(--work-soft); }
table.rep tr.click { cursor: pointer; }
table.rep tr.click:hover td { background: var(--surface-2); }
table.rep .day { white-space: nowrap; font-weight: 600; }
table.rep .day small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
table.rep .times { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 2px; }
table.rep .times > span { white-space: nowrap; }
table.rep .times .tag { margin: 0; }
table.rep .tag { display: inline-block; font-size: .74rem; font-weight: 650; padding: 1px 8px; border-radius: 99px; background: var(--info-soft); color: var(--info); margin: 1px 4px 1px 0; }
table.rep .tag.hol { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
table.rep .tag.err { background: var(--danger-soft); color: var(--danger); }
table.rep .tag.auto { background: var(--pause-soft); color: var(--pause); }
table.rep .tag.edit { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
@media (max-width: 640px) {
  table.rep .hide-sm { display: none; }
  table.rep td, table.rep th { padding: 9px 6px; }
}
table.sum td, table.sum th { white-space: nowrap; }

/* ---------- login / keypad ---------- */
.center-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth { width: 100%; max-width: 380px; }
.auth .logo { width: 56px; height: 56px; margin-bottom: 14px; }
.names { display: grid; gap: 10px; margin-top: 20px; }
.names button { appearance: none; font: inherit; font-size: 1.05rem; font-weight: 600; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: flex; align-items: center; gap: 12px; cursor: pointer; }
.names button:active { transform: scale(.99); }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 26px 0 22px; min-height: 18px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); }
.pin-dots i.on { background: var(--ink); border-color: var(--ink); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { appearance: none; font: inherit; font-size: 1.5rem; font-weight: 600; height: 64px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.keypad button:active { background: var(--surface-2); }
.keypad button.fn { font-size: .95rem; color: var(--muted); background: transparent; border-color: transparent; }

/* ---------- dialog ---------- */
dialog {
  border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--ink);
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
dialog::backdrop { background: rgba(10, 10, 10, .45); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dlg-body { padding: 18px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.seg-edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.seg-edit + .seg-edit { margin-top: 10px; }
.seg-edit .note { grid-column: auto; }
.seg-edit .btns { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.section-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
.section-title:first-child { margin-top: 0; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--btn); color: var(--btn-ink); padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--danger); color: #fff; }

.qr { width: 180px; height: 180px; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid var(--line); }
code.url { font-size: 1rem; font-weight: 650; background: var(--surface-2); border: 1px solid var(--line); padding: 4px 8px; border-radius: 8px; word-break: break-all; }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }

/* ---------- print ---------- */
.print-only { display: none; }
.sign { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; font-size: .8rem; color: #444; }
.sign div { border-top: 1px solid #333; padding-top: 6px; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  :root { --bg: #fff; --surface: #fff; --surface-2: #f4f4f4; --ink: #000; --muted: #555; --line: #ccc; --work-soft: #fff; --info-soft: #eef; --pause-soft: #fff4e0; --danger-soft: #fdecea; }
  body { background: #fff; font-size: 10.5pt; }
  .nav, .topbar, .no-print, #toast { display: none !important; }
  .shell { padding: 0 !important; }
  .main { max-width: none; padding: 0; }
  .print-only { display: block; }
  .card, .tile { box-shadow: none; border-color: #ccc; }
  .card.flush { overflow: visible; }
  table.rep { font-size: 9pt; }
  table.rep td, table.rep th { padding: 3px 5px; }
  table.rep .hide-sm { display: table-cell !important; }
  table.rep tr.today td { background: #fff; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile { padding: 6px 8px; }
  .tile b { font-size: 12pt; }
  .page-break { break-after: page; }
  table.rep .tag.edit { display: none; }
  table.rep tr { break-inside: avoid; }
  .print-report + .print-report { margin-top: 0; }
}

/* ---------- entry form: blocks & result ---------- */
.ef-blocks { margin-top: 4px; }
.ef-blocks .block { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); margin-top: 12px; }
.ef-blocks .block:first-child { margin-top: 0; }
.ef-blocks .block-head { display: flex; align-items: center; justify-content: space-between; margin: -4px -6px 8px 0; }
.ef-blocks .trow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ef-blocks .trow input { font-size: 1.05rem; font-weight: 600; }
.ef-blocks .pausebtn {
  appearance: none; width: 100%; margin-top: 12px; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; min-height: 44px; border-radius: 10px;
  border: 1.5px dashed var(--line); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ef-blocks .pausebtn svg { width: 18px; height: 18px; }
.ef-blocks .pausebtn:hover { border-color: var(--muted); }
.ef-blocks .prow { margin-top: 12px; }
.ef-blocks .pgrid { display: grid; grid-template-columns: 92px minmax(0, 1fr) 32px; gap: 8px; align-items: center; }
.ef-blocks .pgrid select { font-weight: 600; font-size: .9rem; padding: 10px 2px 10px 8px; }
.ef-blocks .pdel, .ef-blocks .rm { appearance: none; border: 0; background: transparent; color: var(--muted); width: 32px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.ef-blocks .pdel:hover, .ef-blocks .rm:hover { background: var(--surface); color: var(--ink); }
.ef-blocks .pdel svg, .ef-blocks .rm svg { width: 18px; height: 18px; }
.ef-blocks .hint { margin-top: 8px; }
.ef-blocks .hint b { color: var(--ink); }
.ef-blocks .dc-project { margin-top: 14px; }
.ef-blocks .dc-project select { font-weight: 600; }
.ef-blocks .dc-project input[type=search] { margin-top: 8px; min-height: 42px; font-size: .9rem; }
.ef-blocks .dc-project-read { margin-top: 10px; font-size: .88rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.addblock {
  appearance: none; width: 100%; margin-top: 12px; padding: 12px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed var(--line); background: transparent; color: var(--ink); font: inherit; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.addblock svg { width: 20px; height: 20px; }
.addblock:hover { background: var(--surface-2); }
.addblock:disabled { opacity: .5; cursor: default; }
.preview { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--work-soft); font-size: .95rem; }
.preview .res-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.preview .res-line > :first-child { flex: 1; min-width: 0; }
.preview .res-line > :last-child { white-space: nowrap; }
.preview .res-total, .preview .res-empty { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 1.05rem; font-weight: 650; }
.preview .res-total { border-top: 1px solid color-mix(in srgb, var(--work) 30%, transparent); margin-top: 6px; padding-top: 8px; }
.preview .res-total b, .preview .res-empty b { font-size: 1.45rem; color: var(--work); font-variant-numeric: tabular-nums; }
.preview .res-empty b { color: var(--muted); }
.preview .neg { font-weight: 600; }
.delday { width: 100%; justify-content: center; margin-top: 8px; }
.delday.armed { background: var(--danger-soft); border-color: transparent; }
#dlgEntry .entry .dayinfo:empty { display: none; }

/* ---------- Sollzeit pro Tag ---------- */
.sollgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sollgrid label { text-align: center; margin-bottom: 4px; }
.sollgrid input { text-align: center; padding: 10px 2px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Tageskarte ---------- */
.daycard-wrap { padding: 12px 12px 16px; }
.dc-head { display: flex; align-items: center; gap: 6px; }
.dc-arrow {
  appearance: none; flex: none; width: 48px; height: 48px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.dc-arrow svg { width: 24px; height: 24px; stroke-width: 2.2; }
.dc-arrow:active { background: var(--surface-2); }
.dc-arrow:disabled { opacity: .3; cursor: default; }
.dc-title { flex: 1; min-width: 0; text-align: center; position: relative; }
.dc-date {
  appearance: none; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.12rem; font-weight: 700;
  cursor: pointer; padding: 2px 6px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
}
.dc-date .dc-day { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-date svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.dc-picker { position: absolute; left: 50%; top: 4px; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; min-height: 0; }
.dc-subline { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); min-height: 1.5em; margin-top: 1px; }
.dc-subline.solo { justify-content: flex-start; margin: -6px 0 12px; }
.dc-today {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px;
  font: inherit; font-size: .76rem; font-weight: 650; padding: 2px 10px; cursor: pointer;
}
.dc-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 12px 0 14px; }
.dc-cell {
  appearance: none; font: inherit; color: var(--ink); cursor: pointer; min-height: 62px; padding: 6px 0 7px;
  border: 1.5px solid transparent; background: var(--surface-2); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.dc-cell .wd { font-size: .66rem; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.dc-cell .dn { font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.dc-cell .v { font-size: .68rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--muted); }
.dc-cell.ok .v { color: var(--work); }
.dc-cell.miss { background: var(--danger-soft); }
.dc-cell.miss .v { color: var(--danger); }
.dc-cell.abs .v { color: var(--info); }
.dc-cell.free .dn { color: var(--muted); }
.dc-cell.future { opacity: .35; cursor: default; }
.dc-cell.is-today { border-color: var(--line); }
.dc-cell.sel { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.dc-cell.sel .wd, .dc-cell.sel .v, .dc-cell.sel .dn { color: inherit; }
.dc-cell.sel .v { opacity: .85; }
.dc-body.in-r { animation: dcInR .2s ease-out; }
.dc-body.in-l { animation: dcInL .2s ease-out; }
@keyframes dcInR { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes dcInL { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dc-body.in-r, .dc-body.in-l { animation: none; } }

.dc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-height: 44px; }
.dc-saved { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--work); }
.dc-saved svg { width: 22px; height: 22px; }
.dc-edit { min-height: 46px; padding: 10px 18px; font-size: .98rem; }
.dc-edit svg { width: 18px; height: 18px; }
.entry.locked .block { background: transparent; border-style: dashed; }
.entry.locked input:disabled {
  background: var(--surface-2); border-color: transparent; color: var(--muted); -webkit-text-fill-color: var(--muted); opacity: 1;
}
.entry.locked input[type=time]::-webkit-calendar-picker-indicator { display: none; }
.entry.locked .prow.ro { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.entry.locked .preview { background: var(--surface-2); }
.entry.locked .preview .res-total b { color: var(--ink); }
.dc-note { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.res-diff { font-size: .85rem; font-weight: 650; margin-left: 6px; }
.dc-next {
  appearance: none; width: 100%; margin-top: 12px; border: 0; border-radius: 12px; padding: 13px 14px; cursor: pointer;
  background: var(--danger-soft); color: var(--danger); font: inherit; font-weight: 650; display: flex; justify-content: space-between; align-items: center;
}
.dc-free { text-align: center; padding: 22px 8px 8px; }
.dc-free-title { font-size: 1.08rem; font-weight: 650; margin-bottom: 14px; }
.dc-free .btn { min-height: 46px; }
.dc-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 14px; }
.dc-actions .stamp { min-height: 58px; font-size: 1.12rem; }
.dc-actions .btn { justify-content: center; min-height: 58px; font-size: 1rem; }
.dc-copy {
  appearance: none; width: 100%; margin-bottom: 12px; cursor: pointer; border-radius: 12px; padding: 11px 12px;
  border: 1.5px solid color-mix(in srgb, var(--work) 55%, transparent); background: var(--work-soft); color: var(--work);
  font: inherit; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left;
}
.dc-copy svg { width: 22px; height: 22px; flex: none; }
.dc-copy small { display: block; font-weight: 500; font-size: .8rem; opacity: .85; }
.monthlink { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.monthlink svg { width: 20px; height: 20px; color: var(--muted); }
.monthlink span { margin-left: auto; color: var(--muted); }
#dlgDay .daycard { margin-top: 0; }

/* ---------- Abwesenheit in der Tageskarte ---------- */
.dc-absq { margin-bottom: 14px; }
.dc-absq > span { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.dc-absbtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dc-absbtn {
  appearance: none; font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer; min-height: 50px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 4px;
}
.dc-absbtn svg { width: 20px; height: 20px; flex: none; }
.dc-absbtn:active { background: var(--surface-2); }
.dc-kindhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px 12px 0 0; background: var(--info-soft); }
.dc-kindhead b { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.dc-kindhead b svg { width: 22px; height: 22px; }
.dc-kindback { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; font: inherit; font-size: .82rem; font-weight: 650; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.dc-kind { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; padding: 14px; margin-bottom: 12px; }
.dc-kind p { font-size: .92rem; line-height: 1.5; }
.dc-kind-note { display: block; margin-top: 8px; font-size: .82rem; color: var(--muted); }
.dc-seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.dc-seg2 button { appearance: none; border: 0; background: transparent; font: inherit; font-weight: 650; padding: 10px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.dc-seg2 button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.dc-saved.abs { color: var(--info); }

/* =====================================================================
   Korsitzke-Look – wie die neue Webseite (Webseite – Neugestaltung):
   weißer Kopf mit Logo, blaues Kopfband, weiße Karte darüber,
   Auswahlkarten, große Eingabefelder, Barlow-Überschriften in Blau.
   ===================================================================== */
:root {
  --feld-linie: #cfd6e0;
  --label: #7a8494;
  --hover-linie: #aab6c7;
  --gewaehlt: #f5f8fc;
  --schatten-gross: 0 32px 64px -28px #0028634d, 0 2px 8px #00286312;
  --fokus-feld: 0 0 0 4px #0028631f;
}
::selection { background: var(--blau-hell); color: var(--blau); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------- Kopf ---------- */
.topbar {
  max-width: none; margin: 0; padding: 10px 16px; min-height: 64px;
  background: var(--weiss); border-bottom: 1px solid var(--linie);
}
.brand .brand-logo { display: block; height: 32px; width: auto; max-width: 150px; object-fit: contain; }
.topbar .brand { flex: none; }
.who { font-size: .9rem; font-weight: 600; color: var(--grau); }
.iconbtn {
  width: 44px; height: 44px; border: 0; border-radius: 8px;
  background: var(--hellgrau); color: var(--blau);
}
.iconbtn:hover { background: var(--blau-hell); }
.iconbtn:disabled { opacity: .35; cursor: default; }
.iconbtn:disabled:hover { background: var(--hellgrau); }

/* ---------- Navigation ---------- */
.nav { background: color-mix(in srgb, var(--weiss) 94%, transparent); }
.nav a { color: var(--grau); font-weight: 600; }
.nav a.on { color: var(--blau); }
@media (min-width: 960px) {
  .topbar { padding: 14px 32px; min-height: 76px; }
  .nav { padding: 104px 14px 20px; background: var(--weiss); }
  .nav .nav-brand { top: 22px; left: 24px; }
  .nav .brand .brand-logo { height: 46px; max-width: 184px; }
  .nav a { border-radius: 8px; font-size: .95rem; }
  .nav a:hover { background: var(--hellgrau); }
  .nav a.on { background: var(--blau-hell); color: var(--blau); }
}

/* ---------- blaues Kopfband (Startseite und Seitenköpfe) ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
  color: var(--nebel); font-size: .88rem; font-weight: 600; letter-spacing: .01em;
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 1.5px; background: currentColor; }
.lead { color: var(--nebel); font-size: 1.08rem; line-height: 1.5; margin-top: 10px; }
@media screen {
  .hero, .main > .page-head:first-child {
    position: relative; background: var(--blau); color: var(--weiss);
    /* Band läuft über die ganze Breite, der Inhalt bleibt in der Spalte */
    box-shadow: 0 0 0 100vmax var(--blau); clip-path: inset(0 -100vmax);
    margin-top: -20px;
  }
  .hero { padding: 26px 0 104px; }
  .hero h1, .main > .page-head:first-child h1 { color: var(--weiss); }
  .hero h1 { font-size: 2.3rem; line-height: 1.08; letter-spacing: -.01em; }
  .hero + .overlap { position: relative; margin-top: -80px; }
  .main > .page-head:first-child { padding: 24px 0 56px; margin-bottom: 0; align-items: center; }
  .main > .page-head:first-child + * { position: relative; margin-top: -32px; }
  .main > .page-head:first-child .muted { color: var(--nebel); }
  .main > .page-head:first-child .btn { background: transparent; color: var(--weiss); border-color: var(--weiss); }
  .main > .page-head:first-child .btn:hover { background: #ffffff1f; }
  .main > .page-head:first-child .btn.primary { background: var(--weiss); color: var(--blau); }
  .main > .page-head:first-child .iconbtn { background: #ffffff1f; color: var(--weiss); }
  .main > .page-head:first-child .iconbtn:hover:not(:disabled) { background: #ffffff33; }
  .main > .page-head:first-child .monthpick b { color: var(--weiss); }
  .main > .page-head:first-child select { border-color: transparent; }
  .main > .page-head:first-child :focus-visible { box-shadow: 0 0 0 2px var(--blau), 0 0 0 4px var(--weiss); }
}
@media (min-width: 960px) {
  .main { padding: 20px 32px; }
  .hero { padding: 40px 0 112px; }
  .hero h1 { font-size: 3rem; }
  .main > .page-head:first-child { padding: 32px 0 60px; }
  .main > .page-head:first-child h1 { font-size: 2.1rem; }
}

/* ---------- Karten ---------- */
.card { border-radius: 16px; padding: 20px; }
.card.flush { padding: 0; }
.status, .card.daycard-wrap {
  border: 0; border-radius: 16px; box-shadow: var(--schatten-gross);
}
@media (min-width: 600px) {
  .status, .card.daycard-wrap { border-radius: 20px; }
  .card.daycard-wrap { padding: 20px 22px 22px; }
}
.tile { border-radius: 14px; padding: 13px 14px; box-shadow: var(--schatten-karte); }
.tile span, .section-title, .dc-absq > span, .pin-head .label {
  display: block; font-size: .74rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--label);
}
.section-title { margin: 20px 0 10px; }
.tile b { font-family: var(--font-head); font-weight: 600; color: var(--blau); font-size: 1.45rem; margin-top: 4px; }
.tiles.three .tile b { font-size: 1.3rem; }
.tile b.neg { color: var(--danger); }
.tiles.three { gap: 10px; }
.monthlink { border-radius: 14px; color: var(--blau); padding: 14px 16px; box-shadow: var(--schatten-karte); }
.monthlink svg, .monthlink span { color: var(--blau); }
.monthlink:hover { border-color: var(--hover-linie); }
.banner { border-radius: 12px; padding: 13px 16px; }
.banner.warn { background: var(--weiss); border: 1.5px solid var(--blau); box-shadow: var(--schatten-karte); }
.banner.info { background: var(--blau-hell); border-color: transparent; color: var(--blau); }
.banner.ok { background: var(--blau-hell); border-color: transparent; }
.pill.working, .pill.abs { background: var(--blau-hell); color: var(--blau); }
.avatar {
  background: var(--blau-hell); border: 0; color: var(--blau);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
}
.empty { color: var(--grau); }

/* ---------- Stempeluhr ---------- */
.status .state { color: var(--blau); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.status .dot { background: var(--nebel); }
.status .clock { font-family: var(--font-head); font-weight: 600; color: var(--blau); letter-spacing: -.01em; }
.status .clock small { font-family: var(--font-text); font-weight: 600; color: var(--grau); }
.status .bar { background: var(--hellgrau); height: 8px; border-radius: 4px; }
.seg-chip { border-radius: 8px; background: var(--hellgrau); border-color: var(--linie); }
.seg-chip.run { border-color: var(--blau); color: var(--blau); background: var(--blau-hell); }

/* ---------- Knöpfe ---------- */
.btn {
  min-height: 44px; padding: 9px 16px; border-radius: 8px; font-size: .95rem; font-weight: 600;
  border: 2px solid var(--blau); background: var(--weiss); color: var(--blau);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--blau-hell); }
.btn.primary { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
.btn.primary:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); filter: none; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hellgrau); }
.btn.sm { min-height: 34px; padding: 5px 12px; border-width: 1.5px; font-size: .86rem; }
.btn.ghost.sm { padding: 5px 8px; }
.stamp {
  border-radius: 10px; min-height: 56px; font-size: 1.08rem; font-weight: 600;
  transition: transform .08s, background .15s;
}
.stamp.go, .stamp.stop { background: var(--blau); color: var(--weiss); }
.stamp.stop { background: var(--blau-dunkel); }
.stamp.go:hover { background: var(--blau-dunkel); }
.stamp.pause { background: var(--weiss); color: var(--blau); box-shadow: inset 0 0 0 2px var(--blau); }
.stamp.pause:hover { background: var(--blau-hell); }
.stamp.big { min-height: 60px; font-size: 1.15rem; }
.chip { border: 1.5px solid var(--linie); color: var(--blau); border-radius: 8px; }
.chip.on { background: var(--blau); border-color: var(--blau); }
.daypick span { border: 1.5px solid var(--linie); border-radius: 8px; color: var(--grau); }
.daypick input:checked + span { background: var(--blau); border-color: var(--blau); }

/* ---------- Formulare ---------- */
label { font-size: .74rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--label); margin-bottom: 6px; }
label.check { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--text); font-weight: 400; }
.hint { font-size: .84rem; color: var(--grau); margin-top: 6px; }
input, select, textarea {
  min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--feld-linie); border-radius: 10px;
  font-size: 1.05rem; color: var(--text); background: var(--weiss);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; }
input::placeholder, textarea::placeholder { color: #98a2b1; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: var(--hover-linie); }
input:focus, select:focus, textarea:focus, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--blau); box-shadow: var(--fokus-feld);
}
input[type=checkbox] { min-height: 0; padding: 0; width: 22px; height: 22px; accent-color: var(--blau); box-shadow: none; }
.field + .field, .fields + .field, .field + .fields { margin-top: 14px; }
.fields { gap: 14px; }

/* ---------- Tabellen, Listen, Dialog, Hinweis ---------- */
table.rep th { background: var(--hellgrau); color: var(--label); font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
table.rep tr.today td { background: var(--blau-hell); }
table.rep .tag { background: var(--blau-hell); color: var(--blau); }
.list .title { color: var(--blau); font-weight: 600; }
.list.days > li:hover { background: var(--gewaehlt); }
.list.days .tag { background: var(--blau-hell); color: var(--blau); }
dialog { border-radius: 16px; box-shadow: var(--schatten-gross), var(--schatten-hoch); }
@media (min-width: 600px) { dialog { border-radius: 20px; } }
dialog::backdrop { background: #001a4273; }
.dlg-head { padding: 14px 16px 14px 22px; }
.dlg-body { padding: 20px 22px; }
.dlg-foot { padding: 14px 22px; }
.seg-edit { border-radius: 14px; border: 0; }
#toast { background: var(--blau); border-radius: 10px; box-shadow: var(--schatten-hoch); }
code.url { background: var(--blau-hell); border: 0; color: var(--blau); }

/* ---------- Anmeldung & Einrichtung ---------- */
.auth-page { min-height: 100vh; background: var(--hellgrau); padding-bottom: 40px; }
.auth-hero { background: var(--blau); color: var(--weiss); padding: 22px max(16px, calc((100% - 440px) / 2)) 112px; }
.auth-logo { display: block; height: 34px; width: auto; margin-bottom: 40px; }
.auth-hero h1 { color: var(--weiss); font-size: 2.3rem; line-height: 1.08; }
.auth-card {
  position: relative; max-width: 440px; margin: -80px 16px 0; padding: 26px 22px;
  background: var(--weiss); border-radius: 16px; box-shadow: var(--schatten-gross);
}
@media (min-width: 480px) { .auth-card { margin: -80px auto 0; padding: 30px 30px; border-radius: 20px; } }
@media (min-width: 960px) {
  .auth-hero { padding-top: 28px; padding-bottom: 120px; }
  .auth-logo { height: 42px; margin-bottom: 56px; }
  .auth-hero h1 { font-size: 3rem; }
}
.names { margin-top: 0; }
.names button {
  border: 1.5px solid var(--linie); border-radius: 14px; padding: 14px 16px; background: var(--weiss);
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--blau);
  transition: border-color .15s, box-shadow .15s;
}
.names button:hover { border-color: var(--hover-linie); box-shadow: var(--schatten-karte); }
.names button:active { border-color: var(--blau); background: var(--gewaehlt); }
.names button svg { width: 20px; height: 20px; color: var(--nebel); flex: none; }
.names .avatar { width: 44px; height: 44px; }
.pin-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; }
.pin-head .label { margin: 0; }
.pin-head .btn { color: var(--blau); }
.pin-dots { margin: 18px 0 24px; }
.pin-dots i { border-color: var(--nebel); width: 15px; height: 15px; }
.pin-dots i.on { background: var(--blau); border-color: var(--blau); }
.keypad button {
  height: 62px; border-radius: 14px; border: 1.5px solid var(--linie); background: var(--weiss);
  font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; color: var(--blau);
}
.keypad button:hover { border-color: var(--hover-linie); }
.keypad button:active { background: var(--blau-hell); border-color: var(--blau); }
.keypad button.fn { border-color: transparent; background: transparent; color: var(--grau); }
.keypad button.fn svg { width: 26px; height: 26px; }
.keypad button.fn.ok {
  background: var(--blau); border-color: var(--blau); color: var(--weiss);
  font-family: var(--font-text); font-size: 1.1rem;
}
.keypad button.fn.ok:active { background: var(--blau-dunkel); }
.auth-card .stamp.big { margin-top: 24px; }

/* ---------- Tageskarte ---------- */
.dc-arrow { border: 0; border-radius: 10px; background: var(--hellgrau); color: var(--blau); }
.dc-arrow:hover:not(:disabled) { background: var(--blau-hell); }
.dc-date { font-family: var(--font-head); font-weight: 600; font-size: 1.28rem; color: var(--blau); }
.dc-date svg { color: var(--nebel); }
.dc-subline { color: var(--grau); }
.dc-today { border: 0; background: var(--blau-hell); color: var(--blau); font-weight: 600; padding: 4px 14px; min-height: 30px; }
.dc-strip { gap: 6px; margin: 14px 0 16px; }
.dc-cell {
  min-height: 64px; border: 1.5px solid var(--linie); background: var(--weiss); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.dc-cell:hover:not(:disabled):not(.sel) { border-color: var(--hover-linie); }
.dc-cell .wd { font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.dc-cell .dn { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--blau); }
.dc-cell .v { font-weight: 600; }
.dc-cell.ok .v { color: var(--blau); }
.dc-cell.abs { background: var(--blau-hell); border-color: transparent; }
.dc-cell.abs .v { color: var(--blau); }
.dc-cell.free { background: var(--hellgrau); border-color: transparent; }
.dc-cell.free .dn { color: var(--grau); }
.dc-cell.miss { background: var(--danger-soft); border-color: transparent; }
.dc-cell.miss .dn { color: var(--danger); }
.dc-cell.future { background: transparent; border-style: dashed; opacity: .5; }
.dc-cell.is-today { border-color: var(--blau); }
.dc-cell.sel { background: var(--blau); border-color: var(--blau); color: var(--weiss); box-shadow: 0 6px 16px -6px #00286380; }
.dc-cell.sel .wd, .dc-cell.sel .dn, .dc-cell.sel .v { color: var(--weiss); }
.dc-cell.sel .wd { opacity: .75; }
.dc-saved, .dc-saved.abs { color: var(--blau); font-weight: 600; }
.dc-saved svg { background: var(--blau); color: var(--weiss); border-radius: 50%; padding: 4px; stroke-width: 3; }
.dc-bar .muted { font-weight: 600; }
.dc-free-title { font-family: var(--font-head); font-weight: 600; color: var(--blau); font-size: 1.25rem; }
.dc-next { border-radius: 12px; font-weight: 600; }
.dc-copy {
  border: 1.5px solid var(--linie); background: var(--weiss); color: var(--blau); border-radius: 14px;
  padding: 12px 14px; justify-content: flex-start; font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
.dc-copy:hover { border-color: var(--hover-linie); box-shadow: var(--schatten-karte); }
.dc-copy svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--blau-hell); color: var(--blau); }
.dc-copy small { color: var(--grau); opacity: 1; }

/* Arbeitszeit-Blöcke */
.ef-blocks .block { border: 0; border-radius: 14px; background: var(--hellgrau); padding: 16px; }
.ef-blocks .block-head b { font-family: var(--font-head); font-weight: 600; color: var(--blau); }
.ef-blocks .trow input { font-size: 1.2rem; font-weight: 600; color: var(--blau); padding-left: 12px; padding-right: 8px; }
.ef-blocks .pausebtn, .addblock {
  border: 1.5px dashed var(--feld-linie); color: var(--blau); background: var(--weiss); border-radius: 10px; min-height: 48px;
}
.addblock { background: transparent; border-radius: 14px; min-height: 52px; }
.ef-blocks .pausebtn:hover, .addblock:hover { border-color: var(--blau); background: var(--gewaehlt); }
.ef-blocks .pgrid { grid-template-columns: 104px minmax(0, 1fr) 36px; }
.ef-blocks .pgrid select { min-height: 48px; font-size: .98rem; color: var(--blau); padding: 10px 4px 10px 10px; }
.ef-blocks .pdel, .ef-blocks .rm { width: 36px; height: 44px; border-radius: 8px; }
.ef-blocks .pdel:hover, .ef-blocks .rm:hover { background: var(--weiss); color: var(--danger); }
.entry.locked .block { background: transparent; border: 1.5px dashed var(--linie); }
.entry.locked input:disabled { background: var(--hellgrau); color: var(--grau); -webkit-text-fill-color: var(--grau); }
.entry input[name=note] { margin-top: 14px; }

/* Ergebnis */
.preview { background: var(--blau-hell); border-radius: 14px; padding: 14px 18px; color: var(--text); }
.preview .res-total { border-top-color: #00286326; }
.preview .res-total, .preview .res-empty { font-weight: 600; color: var(--blau); }
.preview .res-total b, .preview .res-empty b { font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; color: var(--blau); }
.preview .res-empty b { color: var(--nebel); }
.entry.locked .preview { background: var(--hellgrau); }
.entry.locked .preview .res-total b { color: var(--blau); }
.dc-actions .stamp, .dc-actions .btn { min-height: 56px; border-radius: 10px; }
.delday { margin-top: 10px; }

/* Abwesenheit als Auswahlkarten */
.dc-absq > span { margin-bottom: 8px; }
.dc-absbtns { gap: 10px; }
.dc-absbtn {
  flex-direction: column; gap: 8px; min-height: 96px; padding: 14px 6px 12px;
  border: 1.5px solid var(--linie); border-radius: 14px; background: var(--weiss);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.dc-absbtn:hover { border-color: var(--hover-linie); box-shadow: var(--schatten-karte); }
.dc-absbtn:active { border-color: var(--blau); background: var(--gewaehlt); box-shadow: inset 0 0 0 1px var(--blau); }
.dc-absbtn .ic, .dc-kindhead .ic {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%; background: var(--blau-hell); color: var(--blau);
}
.dc-absbtn .ic svg, .dc-kindhead .ic svg { width: 21px; height: 21px; }
.dc-absbtn .lb { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--blau); line-height: 1.1; }
.dc-kindhead {
  background: var(--gewaehlt); border: 1.5px solid var(--blau); border-bottom: 0; border-radius: 14px 14px 0 0;
  box-shadow: inset 0 1px 0 0 var(--blau); padding: 12px 14px;
}
.dc-kindhead b { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--blau); gap: 12px; }
.dc-kindhead .ic { background: var(--weiss); }
.dc-kindback { border: 1.5px solid var(--blau); color: var(--blau); border-radius: 8px; font-weight: 600; padding: 7px 12px; }
.dc-kindback:hover { background: var(--blau-hell); }
.dc-kind { border: 1.5px solid var(--blau); border-top: 0; border-radius: 0 0 14px 14px; padding: 10px 16px 16px; background: var(--gewaehlt); margin-bottom: 14px; }
.dc-kind p { color: var(--text); }
.dc-kind-note { color: var(--grau); }
.dc-seg2 { background: var(--weiss); border: 1.5px solid var(--linie); border-radius: 10px; padding: 4px; }
.dc-seg2 button { border-radius: 7px; font-weight: 600; color: var(--grau); }
.dc-seg2 button.on { background: var(--blau); color: var(--weiss); box-shadow: none; }

/* Druck: kein Band, normale Farben */
@media print {
  .hero { display: none; }
  .hero + .overlap { margin-top: 0; }
  h1, h2, h3 { color: #000; }
}

/* ---------- Statistik ---------- */
.st-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .st-wide { grid-column: 1 / -1; }
}
.st-card { padding: 20px; display: flex; flex-direction: column; }
.st-card h2 { font-size: 1.2rem; }
.st-lift { border: 0; box-shadow: var(--schatten-gross); }
@media (min-width: 600px) { .st-lift { border-radius: 20px; padding: 24px; } }
.st-cardhead { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.st-ic {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--blau-hell); color: var(--blau);
  display: inline-flex; align-items: center; justify-content: center;
}
.st-ic svg { width: 20px; height: 20px; }
.st-note { margin-top: 14px; }
.st-grid .st-card > p.st-foot:last-child { margin-top: auto; padding-top: 14px; }
.st-kparts { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-kparts > div { background: var(--hellgrau); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.st-kparts dt { font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-kparts dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--blau); font-variant-numeric: tabular-nums; }
.st-kparts dd.neg { color: var(--danger); }

/* Kreisdiagramm */
.donut { position: relative; flex: none; width: 140px; height: 140px; }
.donut svg { display: block; width: 100%; height: 100%; }
.donut circle { fill: none; }
.donut .track { stroke: var(--hellgrau); }
.donut .seg.blau { stroke: var(--blau); }
.donut .seg.rot { stroke: var(--danger); }
.donut .seg.nebel { stroke: var(--nebel); }
.donut .seg.hell { stroke: #d6dfec; }
.donut .seg.leer { stroke: transparent; }
.donut-c {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.05; padding: 0 16%;
}
.donut-c b { font-family: var(--font-head); font-weight: 600; color: var(--blau); font-size: 2.1rem; font-variant-numeric: tabular-nums; }
.donut-c b.neg { color: var(--danger); }
.donut-c b small { font-size: .55em; margin-left: 1px; }
.donut-c span { font-size: .78rem; font-weight: 600; color: var(--grau); margin-top: 4px; }

/* Woche / Monat */
.st-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.st-periods.one { grid-template-columns: minmax(0, 1fr); max-width: 260px; margin: 0 auto; width: 100%; }
.st-period { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.st-period .donut { width: min(140px, 100%); height: auto; aspect-ratio: 1; }
.st-period .donut-c b.hrs { font-size: clamp(1.25rem, 5.6vw, 1.7rem); }
.st-period .donut-c span { font-size: .74rem; line-height: 1.2; }
.donut-c .done { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--blau); color: var(--weiss); align-items: center; justify-content: center; margin: 0 0 4px; }
.donut-c .done svg { width: 22px; height: 22px; stroke-width: 3; }
.st-ptitle { font-family: var(--font-head); font-weight: 600; color: var(--blau); font-size: 1.2rem; margin-top: 10px; }
.st-psub { font-size: .8rem; color: var(--grau); }
.st-iss { margin: 10px 0 0; width: 100%; display: grid; gap: 4px; }
.st-iss > div { display: flex; justify-content: space-between; gap: 8px; background: var(--hellgrau); border-radius: 8px; padding: 5px 10px; }
.st-iss dt { font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--label); align-self: center; }
.st-iss dd { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--blau); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-chip {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; border-radius: 999px; padding: 4px 11px;
  font-size: .82rem; font-weight: 600; background: var(--hellgrau); color: var(--grau); white-space: nowrap;
}
.st-chip svg { width: 15px; height: 15px; stroke-width: 3; }
.st-chip.gut { background: var(--blau-hell); color: var(--blau); }
.st-chip.schlecht { background: var(--danger-soft); color: var(--danger); }

/* Arbeitszeitkonto */
.st-kval { font-family: var(--font-head); font-weight: 600; font-size: 3.2rem; line-height: 1; color: var(--blau); font-variant-numeric: tabular-nums; }
.st-kontocard.neg .st-kval { color: var(--danger); }
.st-kval small { font-family: var(--font-text); font-size: 1rem; color: var(--grau); }
.st-ktext { margin-top: 10px; font-size: 1.02rem; }
.st-ktext b { font-weight: 600; }
.st-scale { margin-top: 18px; }
.st-scale .bar { position: relative; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--danger-soft) 50%, var(--blau-hell) 50%); }
.st-scale .bar i { position: absolute; top: 0; bottom: 0; }
.st-scale .bar i.pos { background: var(--blau); border-radius: 0 7px 7px 0; }
.st-scale .bar i.neg { background: var(--danger); border-radius: 7px 0 0 7px; }
.st-scale .zero { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 1px; }
.st-scale .lbl { display: flex; justify-content: space-between; margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--label); }

/* Legende neben dem Kreis */
.st-pie { display: flex; align-items: center; gap: 20px; }
.st-leg { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; display: grid; gap: 9px; }
.st-leg li { display: flex; align-items: center; gap: 10px; font-size: .98rem; }
.st-leg li span { flex: 1; min-width: 0; color: var(--text); }
.st-leg li b { font-family: var(--font-head); font-weight: 600; color: var(--blau); font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-leg li b.neg { color: var(--danger); }
.st-leg li b small { font-family: var(--font-text); font-size: .72rem; color: var(--grau); }
.st-leg li.sum { border-top: 1px solid var(--linie); padding-top: 9px; }
.st-leg li.sum span, .st-leg li:has(i.none) span { color: var(--grau); }
.st-leg i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.st-leg i.blau { background: var(--blau); }
.st-leg i.nebel { background: var(--nebel); }
.st-leg i.hell { background: #d6dfec; }
.st-leg i.rot { background: var(--danger); }
.st-leg i.none { background: transparent; }

/* Listen unter Urlaub / Krank */
.st-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--linie); }
.st-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linie); font-size: .95rem; }
.st-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.st-list b { color: var(--blau); font-weight: 600; white-space: nowrap; min-width: 52px; text-align: right; }
.payroll-note { margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: var(--hellgrau); line-height: 1.45; }
.payroll-note b { color: var(--blau); }
.account-history { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--linie); }
.account-history .section-title { margin: 14px 0 10px; }
.account-totals { margin: 0; display: grid; gap: 8px; }
.account-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.account-totals dt { font-size: .88rem; color: var(--text); }
.account-totals dd { margin: 0; font-weight: 700; color: var(--blau); white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-history > p { margin-top: 10px; line-height: 1.4; }
.account-history details { margin-top: 12px; }
.account-history summary { cursor: pointer; color: var(--blau); font-weight: 700; font-size: .9rem; }
.account-history summary:focus-visible { outline: 2px solid var(--blau); outline-offset: 4px; }
.account-months { list-style: none; margin: 8px 0 0; padding: 0; }
.account-month { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.account-month:last-child { border-bottom: 0; }
.account-month-name { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.account-month-entry { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.account-month-entry span { min-width: 0; }
.account-month-entry b { color: var(--blau); white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-month-bookings { margin: 3px 0 0; border-top: 0; }
.account-month-bookings li { padding: 7px 0 0; border-bottom: 0; font-size: .88rem; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.st-dot.blau { background: var(--blau); }
.st-dot.nebel { background: var(--nebel); }
.st-dot.rot { background: var(--danger); }

/* Motivationsspruch */
.st-quote {
  margin: 18px 0 0; display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px;
  background: var(--hellgrau); color: var(--text); border-radius: 14px;
}
.st-quote svg { flex: none; width: 20px; height: 20px; color: var(--grau); margin-top: 2px; }
.st-quote p { font-size: .98rem; line-height: 1.4; }
/* Lob nur für selten Kranke */
.st-quote.lob { background: var(--blau); color: var(--weiss); padding: 14px 16px; }
.st-quote.lob svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--weiss); color: var(--blau); stroke-width: 3; margin-top: 0; }
.st-quote.lob p { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; line-height: 1.3; }

@media (max-width: 380px) {
  .st-card { padding: 18px 16px; }
  .st-pie { gap: 14px; }
  .st-pie .donut { width: 112px; height: 112px; }
  .st-pie .donut-c b { font-size: 1.7rem; }
  .st-leg { gap: 7px; }
  .st-leg li { font-size: .9rem; gap: 8px; }
  .st-leg li b { font-size: 1.02rem; }
  .st-kval { font-size: 2.6rem; }
  .st-periods { gap: 10px; }
}

/* ---------- Start / Dashboard ---------- */
.db-top { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .db-top.two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
.db-top > .db-today { border: 0; box-shadow: var(--schatten-gross); }
@media (min-width: 600px) { .db-top > .db-today { border-radius: 20px; } }
.db-today { padding: 20px; }
@media (min-width: 600px) { .db-today { padding: 24px; } }
.db-today .st-cardhead { margin-bottom: 10px; }
.db-today .st-cardhead h2 { font-size: 1.25rem; }
.db-tmain b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--blau); font-size: 2.6rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.db-tmain b small { font-family: var(--font-text); font-size: 1rem; color: var(--grau); }
.db-tmain b.sm { font-size: 1.55rem; line-height: 1.2; }
.db-tmain span { display: block; margin-top: 4px; color: var(--grau); font-size: .98rem; }
.db-today.working .db-tmain b { color: var(--blau); }
.db-today.done .db-tmain span::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blau); margin-right: 8px; vertical-align: middle;
}
.db-tbtns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.db-tbtns > * { flex: 1 1 150px; justify-content: center; min-height: 52px; }
.db-tbtns .stamp { min-height: 56px; flex-grow: 2; }
@media (min-width: 600px) { .db-tbtns > * { max-width: 300px; } }
.db-open { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linie); }
.db-open > span { font-size: .74rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--danger); margin-right: 2px; }
.db-open .chip { border-color: #f2c9c6; background: var(--danger-soft); color: var(--danger); min-height: 36px; }
.db-open .chip:hover { border-color: var(--danger); }

.db-team { display: flex; flex-direction: column; }
.db-team .st-cardhead { padding: 18px 20px 10px; margin: 0; }
.db-team .list > li { padding: 0; }
.db-team .li-link { padding: 11px 20px; }
.db-team .li-link:hover { background: var(--gewaehlt); }
.db-team .avatar { width: 36px; height: 36px; font-size: .9rem; }

.db-links { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .db-links.many { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.db-link {
  display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none;
  background: var(--weiss); border: 1.5px solid var(--linie); border-radius: 14px; padding: 12px 12px 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.db-link:hover { border-color: var(--hover-linie); box-shadow: var(--schatten-karte); }
.db-link:active { border-color: var(--blau); background: var(--gewaehlt); }
.db-link .tx { flex: 1; min-width: 0; }
.db-link b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--blau); font-size: 1.08rem; line-height: 1.2; }
.db-link small { display: block; font-size: .8rem; color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-link > svg { width: 18px; height: 18px; color: var(--nebel); flex: none; }
@media (max-width: 599px) {
  .db-link { padding: 10px 10px 10px 12px; gap: 10px; }
  .db-link .st-ic { width: 32px; height: 32px; }
  .db-link .st-ic svg { width: 17px; height: 17px; }
  .db-link > svg { display: none; }
  .db-link b { font-size: 1rem; }
  .db-link small { white-space: normal; font-size: .76rem; line-height: 1.25; }
}

.db-shead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 10px; }
.db-shead h2 { font-size: 1.45rem; }
.db-shead select { width: auto; min-width: 170px; }
.stack.db > .st-grid { margin-top: 12px; }

/* Heute-Karte: links der Tag, rechts die Stempeluhr */
.db-tgrid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .db-tgrid { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); align-items: stretch; gap: 24px; } }
.db-tmain b em { font-style: normal; font-family: var(--font-text); font-size: 1rem; font-weight: 600; margin-left: 6px; }
.db-clock {
  background: var(--blau); color: var(--weiss); border-radius: 16px; padding: 16px 18px 18px;
  display: flex; flex-direction: column;
}
.db-chead { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nebel); }
.db-chead .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--nebel); opacity: .6; }
.db-clock.working .db-chead { color: var(--weiss); }
.db-clock.working .db-chead .dot { background: #fff; opacity: 1; box-shadow: 0 0 0 0 #ffffff80; animation: clockpulse 1.6s infinite; }
@keyframes clockpulse { 0% { box-shadow: 0 0 0 0 #ffffff80; } 70% { box-shadow: 0 0 0 8px #ffffff00; } 100% { box-shadow: 0 0 0 0 #ffffff00; } }
@media (prefers-reduced-motion: reduce) { .db-clock.working .db-chead .dot { animation: none; } }
.db-clock.pause .db-chead .dot { background: var(--nebel); opacity: 1; }
.db-ctime {
  font-family: var(--font-head); font-weight: 600; font-size: 3rem; line-height: 1.05; margin: 10px 0 4px;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.db-clock.out .db-ctime, .db-clock.blocked .db-ctime { color: var(--nebel); }
.db-clock.pause .db-ctime { opacity: .75; }
.db-csub { font-size: .9rem; color: var(--nebel); }
.db-project { margin-top: 14px; color: var(--weiss); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.db-project select { margin-top: 5px; min-height: 44px; background: var(--weiss); color: var(--text); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.db-project-search { margin-top: 8px; min-height: 40px; background: var(--weiss); color: var(--text); font-size: .88rem; }
.db-project-hint { margin-top: 5px; color: var(--nebel); font-size: .75rem; line-height: 1.3; }
.db-cbtns { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }
.db-cbtns .stamp { flex: 1; min-height: 52px; }
.db-clock .stamp.go { background: var(--weiss); color: var(--blau); }
.db-clock .stamp.go:hover { background: var(--blau-hell); }
.db-clock .stamp.pause { background: transparent; color: var(--weiss); box-shadow: inset 0 0 0 2px var(--weiss); }
.db-clock .stamp.pause:hover { background: #ffffff1f; }
.db-clock .stamp.stop { background: var(--weiss); color: var(--blau); }
.db-clock .stamp.stop:hover { background: var(--blau-hell); }
.db-clock .stamp:focus-visible { box-shadow: 0 0 0 2px var(--blau), 0 0 0 4px var(--weiss); }
@media (max-width: 699px) { .db-ctime { font-size: 2.6rem; } }

/* ---------- Navigation: Unternehmensbereich, Hinweiszahl ---------- */
.nav .nav-group { display: none; }
@media (min-width: 960px) {
  .nav .nav-group {
    display: block; margin: 18px 12px 6px; padding-top: 14px; border-top: 1px solid var(--linie);
    font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label);
  }
  .nav { overflow-y: auto; }
}
.nav a { position: relative; }
.nav-badge {
  font-style: normal; display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--danger); color: var(--weiss); font-size: .7rem; font-weight: 700; line-height: 1;
}
@media (max-width: 959px) { .nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); } }
@media (min-width: 960px) { .nav-badge { margin-left: auto; } }
a.who { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
a.who:hover { color: var(--blau); text-decoration: underline; }

/* ---------- Schnellzugriff als Knöpfe ---------- */
button.db-link { font: inherit; text-align: left; cursor: pointer; width: 100%; color: inherit; }
@media (min-width: 900px) { .db-links.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.db-links.stackl { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }

/* ---------- Anträge ---------- */
.db-reqs .st-list { margin-top: 4px; }
.db-reqs .st-list li { flex-wrap: wrap; row-gap: 8px; }
.db-reqs .avatar { width: 34px; height: 34px; font-size: .85rem; }
.db-reqs b.nm { color: var(--blau); }
.db-reqs .grow { min-width: 180px; }
.rq-btns { display: flex; gap: 8px; margin-left: auto; }
.db-reqs.admin { border: 1.5px solid var(--blau); }
.rq-prev:empty { display: none; }
.rq-prev {
  margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--blau-hell); color: var(--text);
  display: grid; gap: 3px; font-size: .95rem;
}
.rq-prev b { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--blau); }
.rq-prev .neg, .rq-prev .err { color: var(--danger); font-weight: 600; }
.rq-prev.bad { background: var(--danger-soft); }
.pf .fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* untere Leiste: fünf Knöpfe passen auch aufs kleine Handy */
@media (max-width: 959px) {
  .nav { padding-left: 2px; padding-right: 2px; }
  .nav a { min-width: 0; padding-left: 0; padding-right: 0; }
  .nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 380px) { .nav a { font-size: .66rem; letter-spacing: -.01em; } }
.db-link b { overflow-wrap: anywhere; hyphens: auto; }

/* ---------- Unternehmensbereich: Unter-Navigation ---------- */
.subnav {
  display: flex; align-items: stretch; gap: 18px; background: var(--weiss); border-bottom: 1px solid var(--linie);
  padding: 0 16px;
}
.subnav-title {
  display: none; align-items: center; gap: 8px; flex: none; font-family: var(--font-head); font-weight: 600; color: var(--blau); font-size: 1rem;
}
.subnav-title svg { width: 20px; height: 20px; }
.subnav-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; min-width: 0; }
.subnav-tabs::-webkit-scrollbar { display: none; }
.subnav-tabs a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; min-height: 48px; text-decoration: none; white-space: nowrap;
  font-size: .92rem; font-weight: 600; color: var(--grau); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.subnav-tabs a:hover { color: var(--blau); }
.subnav-tabs a.on { color: var(--blau); border-bottom-color: var(--blau); }
.subnav-tabs .nav-badge { position: static; }
@media (min-width: 960px) {
  .subnav { padding: 0 32px; }
  .subnav-title { display: inline-flex; padding-right: 14px; border-right: 1px solid var(--linie); margin: 10px 0; }
}
.nav a svg { flex: none; }
.nav a span { min-width: 0; }
.soll-switch { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--blau-hell); }
.soll-switch .check b { color: var(--blau); font-weight: 600; }
.soll-switch .hint { margin-left: 32px; }

/* ---------- Arbeitszeitmodell (Mitarbeiter-Dialog) ---------- */
.mode-pick { display: grid; gap: 8px; }
.mode-opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--linie); border-radius: 12px;
  cursor: pointer; background: var(--weiss); text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; color: var(--text); margin: 0;
}
.mode-opt:hover { border-color: var(--nebel); }
.mode-opt:has(input:checked) { border-color: var(--blau); background: var(--blau-hell); }
.mode-opt input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--blau); box-shadow: none; border: 0; }
.mode-opt span { display: grid; gap: 2px; min-width: 0; }
.mode-opt b { font-weight: 600; color: var(--blau); }
.mode-opt small { font-size: .88rem; color: var(--grau); line-height: 1.35; }
@media (min-width: 640px) { .mode-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mode-opt { flex-direction: column; gap: 8px; } }

/* ---------- Stunden-Ansicht (Minijob / Chef) ---------- */
.st-pay { margin-top: 18px; align-self: flex-start; }
.st-hgrid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-hgrid > div { background: var(--hellgrau); border-radius: 12px; padding: 10px 12px; min-width: 0; display: grid; gap: 2px; }
.st-hgrid span { font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-hgrid b { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--blau); font-variant-numeric: tabular-nums; }
@media (min-width: 1200px) { .st-hgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-hmonths { margin-top: 14px; display: grid; gap: 10px; }
.st-hmonths .hm { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.st-hmonths .mn { font-weight: 600; color: var(--text); grid-row: 1 / 3; }
.st-hmonths .bar { height: 12px; border-radius: 6px; background: var(--hellgrau); overflow: hidden; grid-row: 1 / 3; }
.st-hmonths .bar i { display: block; height: 100%; background: var(--blau); border-radius: 6px; min-width: 3px; }
.st-hmonths b { font-family: var(--font-head); font-weight: 600; color: var(--blau); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.st-hmonths small { font-size: .78rem; color: var(--grau); text-align: right; white-space: nowrap; }
@media (max-width: 380px) { .st-hmonths .hm { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 8px; } }
.st-list .iconbtn { width: 36px; height: 36px; flex: none; }
.mini-list li .grow { min-width: 0; }
@media (max-width: 899px) { .db-links.many > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- Mitarbeiter: Änderungen ab Datum, Verlauf, Löschen ---------- */
.change-box { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--blau-hell); border: 1.5px solid var(--blau); }
.change-box .check { align-items: center; flex-wrap: wrap; }
.change-box input[type=date] { min-height: 40px; }
.change-box .hint { margin-top: 8px; }
.when-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 32px; }
.term-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.term-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--linie); min-width: 0; }
.term-list li:first-child { border-top: 0; }
.term-list li.now { background: var(--hellgrau); }
.term-list li .grow { min-width: 0; }
.term-list b { color: var(--blau); font-weight: 600; }
.term-list .pill { margin-left: 4px; vertical-align: 1px; }
.term-list .iconbtn { flex: none; width: 36px; height: 36px; }
.danger-zone { margin-top: 20px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--danger); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.danger-zone b { color: var(--danger); }
.del-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 3px; }

/* ---------- Konto-Buchung ---------- */
.seg-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 4px; border-radius: 12px; background: var(--hellgrau); }
.seg-pick label { margin: 0; position: relative; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--text); }
.seg-pick input { position: absolute; opacity: 0; pointer-events: none; }
.seg-pick span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 6px 10px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--grau); }
.seg-pick input:checked + span { background: var(--weiss); color: var(--blau); box-shadow: 0 1px 3px #00286326; }
.seg-pick input:focus-visible + span { outline: 2px solid var(--blau); }
.po-hrow { display: flex; gap: 8px; }
.po-hrow select { width: auto; flex: none; }
.po-hrow input { min-width: 0; flex: 1; }
.st-book { margin-top: 6px; }
.dc-delabs { width: 100%; justify-content: center; margin-top: 10px; }
.dc-delabs.armed { background: var(--danger-soft); border-color: transparent; }
.st-list .del-abs { flex: none; }
.abs-row { padding: 5px 0; border-top: 1px solid var(--line); gap: 8px; align-items: center; flex-wrap: nowrap; }
.abs-row .iconbtn { width: 36px; height: 36px; flex: none; }
input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; box-shadow: none; border: 0; accent-color: var(--blau); flex: none; }
.change-box .check { gap: 10px; }
.change-box .when-ab > span { flex: none; }
.change-box .when-korr { flex-wrap: nowrap; align-items: flex-start; }
.change-box .when-korr > span { flex: 1 1 0; min-width: 0; line-height: 1.35; }

/* ---------- 2.5: aufgeräumt ---------- */
@media (min-width: 960px) { .main .mob-only { display: none; } }
.team-hint { padding: 10px 20px 14px; margin: 0; border-top: 1px solid var(--linie); }
.main > .page-head:first-child a.head-link { color: var(--weiss); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
  .page-head .head-actions { width: 100%; gap: 8px; }
  .page-head .head-actions .monthpick { flex: 1 1 100%; justify-content: space-between; }
}
.db-or { display: flex; align-items: center; gap: 10px; color: var(--grau); font-size: .85rem; margin: -6px 0; }
.db-or::before, .db-or::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
@media (min-width: 700px) { .db-or { display: none; } }
/* Ändern / Löschen in Listen, Schloss für festgeschriebene Einträge */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row-acts { display: inline-flex; gap: 6px; flex: none; align-items: center; }
.row-acts .iconbtn, .iconbtn-gap { width: 36px; height: 36px; flex: none; }
.iconbtn-gap { display: inline-block; }
.lockmark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--nebel); flex: none; }
.lockmark svg { width: 18px; height: 18px; }
svg.inl { width: 14px; height: 14px; vertical-align: -2px; }
table.rep th.acts, table.rep td.acts { width: 1%; white-space: nowrap; text-align: right; padding-top: 2px; padding-bottom: 2px; }
@media (max-width: 420px) {
  table.rep td.acts .row-acts { gap: 2px; }
  table.rep td.acts .iconbtn, table.rep td.acts .iconbtn-gap, table.rep td.acts .lockmark { width: 32px; height: 32px; }
}
table.rep .times > .tag { white-space: normal; }
@media (max-width: 360px) {
  table.rep td, table.rep th { padding-left: 3px; padding-right: 3px; }
  table.rep td.acts .row-acts { gap: 1px; }
}
.main > .page-head:first-child a.head-link { display: inline-block; padding: 6px 0; margin: -6px 0; }
