:root {
  /* Good-Natured CI 2025: Pine Grove #233732 · Dill #667854 · Ice #E1E4D9 · Bright White #F5F8F7 */
  --pine: #233732;
  --dill: #667854;
  --ice: #e1e4d9;
  --white: #f5f8f7;
  --bg: var(--white);
  --surface: #ffffff;
  --surface-2: var(--ice);
  --text: var(--pine);
  --muted: #5d6a63;
  --border: #d8ddd0;
  --brand: var(--pine);
  --brand-ink: #ffffff;
  --brand-soft: var(--ice);
  --accent: var(--dill);
  --accent-soft: #e8ecdf;
  --header: rgba(255,255,255,.92);
  --header-ink: var(--pine);
  --ok: #3d7a45;
  --ok-soft: #e2eedc;
  --warn: #9a5b0b;
  --warn-soft: #f8ecd4;
  --err: #b42318;
  --err-soft: #fbe4e1;
  --shadow: 0 1px 2px rgba(35,55,50,.04), 0 6px 24px rgba(35,55,50,.06);
  --line: #edf0ea;
  --radius: 22px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17221f;
    --surface: #1e2c28;
    --surface-2: #283a35;
    --text: var(--white);
    --muted: #a7b2aa;
    --border: #33463f;
    --brand: #c9d6b8;
    --brand-ink: var(--pine);
    --brand-soft: #2c403a;
    --accent: #a9bb93;
    --accent-soft: #2d3a2b;
    --header: rgba(23,34,31,.92);
    --header-ink: var(--white);
    --ok: #8cc58f; --ok-soft: #1f3322;
    --warn: #f1bf6b; --warn-soft: #3a2f16;
    --err: #f39a90; --err-soft: #3d1f1c;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
    --line: #2c3d37;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  /* CI-Schrift Acumin Pro (Adobe Fonts); ohne Lizenz greift die nächstähnliche Systemschrift */
  font-family: "Acumin Pro", "acumin-pro", "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
a { color: var(--brand); text-decoration: none; }
h1 { font-size: 1.75rem; margin: 0 0 6px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 1.1rem; margin: 0 0 10px; }
h3 { font-size: 1rem; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.right { text-align: right; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hidden { display: none !important; }

/* Layout */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--header); color: var(--header-ink);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; display: flex; align-items: center; gap: 12px;
}
/* Logo-Varianten: dunkles Logo auf hellem Grund, weißes im Dark Mode */
@media not (prefers-color-scheme: dark) { img.logo-dark { display: none !important; } }
@media (prefers-color-scheme: dark) { img.logo-light { display: none !important; } }
.topbar .mark { width: 34px; height: 34px; flex-shrink: 0; }
.topbar .title { font-weight: 700; font-size: 1rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .06em; }
.topbar .icon-btn { color: var(--header-ink); }
.topbar .icon-btn:hover { background: var(--surface-2); }
.icon-btn { background: none; border: 0; color: var(--text); padding: 8px; border-radius: 10px; position: relative; cursor: pointer; font-size: 1.25rem; line-height: 1; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); }
.svg-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--err); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
main { max-width: 980px; margin: 0 auto; padding: 18px 16px 28px; }
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface);
  border-top: 1px solid var(--border); display: flex; padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: var(--nav-h); color: var(--muted); font-size: 11px; gap: 3px; }
.bottomnav a .ico { line-height: 1; display: grid; place-items: center; }
.bottomnav a.active { color: var(--brand); font-weight: 700; }
.bottomnav a.active .svg-ico { stroke-width: 2.3; }
.bottomnav .brand { display: none; }
@media (min-width: 900px) {
  body { padding-bottom: 0; padding-left: 220px; }
  .bottomnav { top: 0; right: auto; width: 220px; flex-direction: column; justify-content: flex-start; border-top: 0; border-right: 1px solid var(--border); background: var(--surface); padding: 0 12px; }
  .bottomnav .brand { display: block; padding: 26px 10px 28px; }
  .bottomnav .brand img { width: 150px; display: block; }
  .bottomnav a { flex: none; height: 46px; flex-direction: row; justify-content: flex-start; padding: 0 14px; font-size: 15px; gap: 12px; color: var(--muted); border-radius: 12px; margin-bottom: 2px; }
  .bottomnav a:hover { color: var(--text); background: var(--bg); }
  .bottomnav a.active { background: var(--brand-soft); color: var(--brand); }
  .topbar .mark { display: none; }
}

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line, var(--border)); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card.tight { padding: 12px; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin: 24px 0 8px; font-weight: 700; }
/* dunkle Karte im Stil der „Premium“-Box */
.card.dark { background: var(--pine); border-color: var(--pine); color: #fff; }
.card.dark .muted { color: rgba(255,255,255,.72); }
.card.dark .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.card.dark .btn.primary { background: var(--ice); border-color: var(--ice); color: var(--pine); }
.card.dark .btn.danger { background: #fff; border-color: #fff; color: var(--err); }
.card.dark .seg { background: rgba(255,255,255,.1); }
.card.dark .seg button { color: rgba(255,255,255,.75); }
.card.dark .seg button.on { background: var(--ice); color: var(--pine); }
.card.soft { background: var(--ice); border-color: var(--ice); box-shadow: none; }
.list { display: flex; flex-direction: column; gap: 8px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line, var(--border)); border-radius: 20px; box-shadow: var(--shadow); min-height: 64px; }
a.list-item:active, .list-item.click:active { background: var(--surface-2); }
.list-item.click { cursor: pointer; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.err { background: var(--err-soft); color: var(--err); }
.chip.brand { background: var(--brand-soft); color: var(--brand); }
.chip.dill { background: var(--accent-soft); color: var(--accent); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.alert { padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin: 8px 0; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.err { background: var(--err-soft); color: var(--err); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.info { background: var(--brand-soft); color: var(--brand); }

/* Buttons & Forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 44px; font-family: inherit; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.15); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { background: var(--err); border-color: var(--err); color: var(--brand-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn.sm { padding: 6px 14px; min-height: 36px; font-size: 13px; border-radius: 999px; }
.btn .svg-ico { width: 18px; height: 18px; }
.btn.block { width: 100%; }
.btn.big { min-height: 58px; font-size: 17px; border-radius: 999px; }
label.f { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin: 12px 0 4px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text);
  font-size: 16px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
input[type=checkbox] { width: auto; }
textarea { min-height: 80px; resize: vertical; }
.check-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: .95rem; }
.check-row input { width: 20px; height: 20px; accent-color: var(--brand); }
.seg { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 12px; border-radius: 999px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: inherit; font-size: 14px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.weekday-picker { display: flex; gap: 6px; flex-wrap: wrap; }
.weekday-picker label { display: inline-flex; }
.weekday-picker input { display: none; }
.weekday-picker span { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; cursor: pointer; }
.weekday-picker input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* Clock */
.clock-card { text-align: center; padding: 22px 16px; }
.clock-time { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.clock-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 6px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(21,128,61,.5); animation: pulse 2s infinite; }
.pulse.pause { background: var(--warn); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(21,128,61,0); } 100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.stat .v { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .l { font-size: .75rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }

/* Progress */
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); border-radius: 3px; }
.progress.done > div { background: var(--ok); }

/* Checklist run */
.item { background: var(--surface); border: 1.5px solid var(--line, var(--border)); border-radius: 22px; padding: 16px; margin-bottom: 10px; box-shadow: var(--shadow); transition: border-color .15s, background .15s; }
.item.done { border-color: var(--ok); background: color-mix(in srgb, var(--ok-soft) 45%, var(--surface)); }
.item.dev { border-color: var(--err); background: color-mix(in srgb, var(--err-soft) 45%, var(--surface)); }
.item-head { display: flex; gap: 12px; align-items: flex-start; }
.tick { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; display: grid; place-items: center; font-size: 17px; color: transparent; cursor: pointer; background: var(--surface); }
.item.dev .tick { background: var(--err); border-color: var(--err); color: #fff; font-weight: 800; }
.item.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.thumb { width: 100%; max-width: 280px; border-radius: 10px; margin-top: 8px; display: block; border: 1px solid var(--border); background: #fff; }
.sigpad { width: 100%; height: 180px; border: 2px dashed var(--border); border-radius: 12px; background: #fff; touch-action: none; display: block; }
.temp-input { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.temp-input input { max-width: 130px; font-size: 20px; font-weight: 700; text-align: center; }

/* Schichtplan */
.week-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.week-nav .lbl { flex: 1; text-align: center; font-weight: 700; }
.day { margin-bottom: 14px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px 6px; }
.day-head.today .d { color: var(--brand); }
.day-head .d { font-weight: 700; }
.shift { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer; }
.shift.open { border-style: dashed; border-left-style: solid; }
.shift.draft { opacity: .7; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 8px, var(--surface-2) 8px, var(--surface-2) 16px); }
.shift.mine { box-shadow: 0 0 0 2px var(--brand-soft); }
.shift .t { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 92px; }
.abs-pill { display: inline-block; font-size: .75rem; padding: 3px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); margin: 0 4px 4px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
th { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.plan-grid td { vertical-align: top; min-width: 120px; white-space: normal; }
.plan-grid .shift { padding: 6px 8px; font-size: .8rem; margin-bottom: 4px; display: block; }
.plan-grid .shift .t { min-width: 0; }

/* Modal / Toast */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal { background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .2s; }
@media (min-width: 640px) { .modal-bg { align-items: center; } .modal { border-radius: 20px; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); background: var(--pine); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 200; font-size: .95rem; max-width: 90vw; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: up .2s; }
.toast.err { background: #b91c1c; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty .big { font-size: 2.2rem; }
.loading { text-align: center; padding: 40px; color: var(--muted); }
.login-page { position: fixed; inset: 0; overflow-y: auto; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand .mark { width: 76px; height: 76px; display: block; margin: 0 auto 18px; }
.login-brand .word { width: 230px; max-width: 70vw; display: block; margin: 0 auto; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { font-size: 1.2rem; }
.login-foot { color: var(--muted); font-size: .75rem; margin-top: 22px; text-align: center; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.menu-grid a { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; color: var(--text); display: flex; flex-direction: column; gap: 6px; font-weight: 600; position: relative; }
.menu-grid a .ico { color: var(--accent); }
.menu-grid a .ico .svg-ico { width: 26px; height: 26px; }
.menu-grid a:hover { border-color: var(--accent); }
.menu-grid a .badge { position: absolute; top: 10px; right: 10px; }
.news-body { white-space: pre-wrap; }

/* Druckansicht (HACCP-Bericht, Stundenzettel) */
@media print {
  body { padding: 0 !important; background: #fff; color: #000; }
  .bottomnav, .topbar, .no-print, .toast { display: none !important; }
  main { max-width: none; padding: 0; }
  .card, .list, .table-wrap { box-shadow: none; border-color: #999; break-inside: avoid; }
  .thumb { max-width: 160px; }
  .print-only { display: block !important; }
}

/* ============================================================
   Ordio-inspirierte Komponenten (v4)
   ============================================================ */
.hello { margin: 4px 0 16px; }
.hello p { margin: 0; }
.back { display: table; margin-bottom: 8px; font-size: .9rem; font-weight: 600; }
.dash-grid { display: grid; gap: 4px 22px; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } .dash-side > .section-title:first-child { margin-top: 0; } main { max-width: 1180px; } }
.a-plain, a.stat, a.card, a.list-item { color: inherit; }
.stat { border-radius: 20px; box-shadow: var(--shadow); border-color: var(--line); }

/* Fortschrittsring */
.ring { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; }
.ring svg { position: absolute; inset: 0; }
.ring-bg { fill: none; stroke: var(--surface-2); }
.ring-fg { fill: none; stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring.done .ring-fg { stroke: var(--ok); }
.ring.big .ring-fg { stroke: var(--brand); }
.ring.idle .ring-fg { opacity: 0; }
.ring-label { position: relative; font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring.done .ring-label { color: var(--ok); }

/* Stempeluhr */
.clock-card { text-align: center; padding: 22px 18px; }
.ring-wrap { position: relative; width: 190px; height: 190px; margin: 14px auto 12px; }
.ring-wrap .ring { position: absolute; inset: 0; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.clock-time { font-size: 2.9rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 4px; }
.shift-hint { font-size: .92rem; margin-bottom: 14px; }
#loc-seg { margin-bottom: 12px; }
.clock-card .chip .pulse { width: 8px; height: 8px; margin-right: 2px; }
.hold-btn { position: relative; overflow: hidden; width: 100%; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; min-height: 58px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold-btn .hold-sub { font-size: .72rem; font-weight: 500; color: var(--muted); }
.hold-fill { position: absolute; inset: 0; width: 0; background: var(--brand-soft); transition: width .1s; z-index: 0; }
.hold-btn.holding .hold-fill { width: 100%; transition: width .7s linear; }
.hold-btn > span:not(.hold-fill) { position: relative; z-index: 1; }
.swipe { --p: 0; position: relative; margin-top: 10px; height: 60px; border-radius: 999px; background: var(--err); display: flex; align-items: center; justify-content: center; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.swipe::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.12); transform-origin: left; transform: scaleX(var(--p)); }
.swipe-label { position: relative; color: #fff; font-weight: 700; opacity: calc(1 - var(--p)); pointer-events: none; }
.swipe-knob { position: absolute; left: 4px; top: 4px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--err); display: grid; place-items: center; cursor: grab; z-index: 1; box-shadow: 0 2px 8px rgba(0,0,0,.15); touch-action: none; }
.swipe.disabled { background: var(--surface-2); }
.swipe.disabled .swipe-label { color: var(--muted); }
.swipe.disabled .swipe-knob { display: none; }
.clock-card.paused .ring-fg { stroke: var(--warn); }

/* Listen-Varianten */
.pill-row .time { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill-row .right .chip { margin-top: 3px; }
.date-badge { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; flex-shrink: 0; }
.date-badge span { font-size: .68rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.date-badge b { font-size: 1.1rem; }
.run-row b { font-weight: 700; }
.summary-card { gap: 14px; margin-bottom: 4px; }
.news-teaser { display: block; margin-top: 12px; }
.warn-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); display: grid; place-items: center; font-weight: 800; }
.cat-ico { font-size: 22px; width: 42px; height: 42px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.icon-only { width: 40px; padding: 0; }

/* Erinnerungskarte (Dokumente) */
.reminder-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 16px 18px; box-shadow: var(--shadow); margin-top: 12px; color: inherit; }
.reminder-card h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.doc-pill { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--bg); border-radius: 16px; padding: 10px 14px; margin-bottom: 8px; font-weight: 600; }
.doc-pill .svg-ico { width: 20px; height: 20px; color: var(--muted); }

/* Checkliste */
.run-head { margin-bottom: 12px; }
.run-head h1 { font-size: 1.35rem; }
.item-head { display: flex; gap: 12px; align-items: flex-start; }
.item-head.click { cursor: pointer; }
.item-title { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.item-title b { font-size: 1rem; }
.item-title .num, .tpl-item .num, .step-row .num { font-size: .75rem; font-weight: 800; color: var(--muted); min-width: 16px; }
.item-detail { margin-top: 3px; }
.item.done .item-title b { color: var(--muted); }
.chip.role-bar { background: #e9efe0; color: #4d6139; }
.chip.role-kueche { background: #f4ecdf; color: #85602a; }
.chip.role-service { background: #e3ecf0; color: #3c5f6e; }
@media (prefers-color-scheme: dark) { .chip.role-bar { background: #2d3a2b; color: #b9cfa0; } .chip.role-kueche { background: #3a3122; color: #e2c08c; } .chip.role-service { background: #22333a; color: #a8cad8; } }
details.steps { margin-top: 6px; }
details.steps summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .88rem; list-style: none; }
details.steps summary::before { content: '▸ '; }
details.steps[open] summary::before { content: '▾ '; }
.details-text { background: var(--bg); border-radius: 14px; padding: 10px 12px; margin-top: 6px; font-size: .9rem; line-height: 1.55; }
.ref-img { display: block; max-width: 220px; width: 100%; border-radius: 14px; margin-top: 8px; border: 1px solid var(--line); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; border: 0; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: .85rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.link-btn .svg-ico { width: 16px; height: 16px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.choice-btn { border: 1.5px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.choice-btn.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.value-big { font-size: 1.5rem; font-weight: 800; margin-top: 6px; }
.sig-img { max-width: 220px; }
.sticky-bottom { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); margin-top: 14px; z-index: 5; }
@media (min-width: 900px) { .sticky-bottom { bottom: 16px; } }
.sticky-bottom .btn { box-shadow: 0 8px 24px rgba(35,55,50,.18); }

/* Vorlagen-Editor & Galerie */
.tpl-item { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; margin-bottom: 8px; }
.tpl-item .num { align-self: center; }
.tpl-sub { margin-top: 6px; gap: 6px; }
.tpl-sub .check-row { margin: 0 8px 0 0; }
.tpl-sub select { padding: 7px 10px; font-size: 14px; }
.tpl-more { display: none; border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 4px; }
.tpl-item.open .tpl-more { display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.gal-card { border: 1px solid var(--line); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.gal-card h3 { margin: 4px 0 0; }
.gal-card ul { margin: 0; padding-left: 18px; font-size: .85rem; flex: 1; }
.gal-card .row .chip { margin-right: 4px; }

/* Wissensdatenbank */
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 16px; box-shadow: var(--shadow); margin: 6px 0 12px; }
.search .svg-ico { color: var(--muted); }
.search input { border: 0; background: transparent; padding: 10px 0; outline: none; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll button { flex-shrink: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.chips-scroll button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.kb-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px; box-shadow: var(--shadow); color: inherit; position: relative; min-height: 64px; }
.kb-card img, .kb-ico { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.kb-ico { background: var(--surface-2); display: grid; place-items: center; font-size: 22px; }
.dot-new { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.kb-article h1 { margin-bottom: 10px; }
.kb-hero { width: 100%; max-height: 320px; object-fit: cover; border-radius: 18px; margin-bottom: 12px; }
.lead { font-size: 1.02rem; margin: 12px 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin: 14px 0; }
.fact { display: flex; flex-direction: column; gap: 2px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; font: inherit; color: var(--text); }
.fact .l { font-size: .75rem; color: var(--muted); font-weight: 600; }
.fact .v { font-weight: 800; font-size: 1.02rem; }
.fact.has-timer { cursor: pointer; border-color: var(--accent); }
.fact .t { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--accent); margin-top: 4px; }
.fact .t .svg-ico { width: 14px; height: 14px; }
.steps-list { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 10px; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; }
.steps-list .n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.steps-list .grow { padding-top: 4px; }
.step-img { display: block; width: 100%; max-width: 360px; border-radius: 14px; margin-top: 8px; }
.tip { background: var(--accent-soft); color: var(--text); border-radius: 18px; padding: 12px 14px; margin-top: 12px; font-size: .92rem; }
.fact-row { margin-bottom: 6px; }
.step-row { margin-bottom: 8px; background: var(--bg); box-shadow: none; }

/* Timer-Leiste */
#timerbar { position: fixed; right: 12px; top: calc(env(safe-area-inset-top) + 66px); z-index: 60; display: flex; flex-direction: column; gap: 6px; max-width: min(92vw, 360px); }
.timer-chip { display: flex; align-items: center; gap: 10px; background: var(--pine); color: #fff; border-radius: 999px; padding: 8px 8px 8px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-size: .88rem; }
.timer-chip .tl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer-chip b { font-variant-numeric: tabular-nums; font-size: 1rem; }
.timer-chip button { border: 0; background: rgba(255,255,255,.15); color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.timer-chip.done { background: var(--err); animation: pulse-bg 1s infinite alternate; }
@keyframes pulse-bg { to { filter: brightness(1.2); } }

/* Dokumente / Profil (wie Ordio-Personalakte) */
.profile-pill { display: inline-flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 26px 10px 10px; box-shadow: var(--shadow); margin: 4px 0 14px; }
.profile-pill .avatar { width: 58px; height: 58px; font-size: 1.1rem; }
.pp-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.doc-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .doc-grid { grid-template-columns: minmax(220px, .8fr) 1.2fr; align-items: start; } }
.progress-card .big-num { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.progress-card .progress { height: 12px; border-radius: 6px; margin-top: 16px; }
.progress-card .progress > div { background: var(--accent); border-radius: 6px; }
.progress-card .progress.done > div { background: var(--ok); }
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 12px 16px; box-shadow: var(--shadow); }
.doc-card.click { cursor: pointer; }
.doc-ico { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.dc-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dc-check { font-size: 1.2rem; color: var(--muted); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.status-dot.valid { background: #b7bdb8; }
.status-dot.expiring { background: #8fa7d8; }
.status-dot.expired { background: var(--err); }
.status-dot.missing { background: var(--warn); }
.upload-zone { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed var(--border); border-radius: 20px; padding: 22px; text-align: center; cursor: pointer; margin: 6px 0 4px; color: var(--muted); font-weight: 600; }
.upload-zone .svg-ico { width: 30px; height: 30px; }
.upload-zone.ok { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.modal { border-radius: 28px 28px 0 0; }
@media (min-width: 640px) { .modal { border-radius: 28px; } }
.sticky-bottom .btn:disabled { opacity: 1; background: var(--surface-2); border-color: var(--surface-2); color: var(--muted); box-shadow: none; }
.swipe-label { padding-left: 44px; }
.clock-card .hold-btn, .clock-card .swipe, .clock-card #btn-in, .clock-card #loc-seg { max-width: 440px; margin-left: auto; margin-right: auto; }

/* Projektzeiten (Büro) */
button.list-item { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.list-item.sel { border-color: var(--brand); }
.proj-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.proj-select { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 440px; margin: 0 auto 10px; border: 1.5px dashed var(--border); background: var(--bg); color: var(--text); border-radius: 999px; padding: 12px 18px; font: inherit; cursor: pointer; text-align: left; }
.proj-select > span:not(.proj-dot) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-select { min-width: 0; }
.clock-card { min-width: 0; overflow: hidden; }
.proj-select em { font-style: normal; font-size: .82rem; font-weight: 700; color: var(--accent); }
.proj-select.set { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.proj-select .svg-ico { color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.proj-chip.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.proj-chip.small { padding: 3px 10px; font-size: .75rem; font-weight: 600; cursor: default; }
.proj-chip.small .proj-dot { width: 8px; height: 8px; }
.proj-chip.warn { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.seg-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.proj-new { border-style: dashed; border-color: var(--accent); }
.proj-new .svg-ico { color: var(--accent); }
.proj-bars { display: flex; flex-direction: column; gap: 4px; }
.pb-row { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin-top: 6px; }
.pb-row b { font-variant-numeric: tabular-nums; }
.pb-track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.pb-track > div { height: 100%; border-radius: 4px; }
.pb-unassigned { display: block; margin-top: 10px; padding: 9px 12px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-size: .85rem; font-weight: 600; }
.seg-row { margin-bottom: 8px; background: var(--bg); box-shadow: none; }
.seg-row input[type=time] { max-width: 130px; }
.big-num { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.dash-grid { grid-template-columns: minmax(0, 1fr); }
.dash-grid > * { min-width: 0; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }

/* Checklisten-Übersicht (Admin) */
.matrix th { white-space: normal; min-width: 96px; vertical-align: bottom; text-transform: none; letter-spacing: 0; font-size: .8rem; }
.matrix td.day-col { font-weight: 600; position: sticky; left: 0; background: var(--surface); }
.matrix th:first-child { position: sticky; left: 0; z-index: 1; }
.mx { text-align: center; font-weight: 800; }
.mx a { color: inherit; display: flex; flex-direction: column; align-items: center; }
.mx span { font-size: .68rem; font-weight: 600; color: var(--muted); }
.mx em { font-style: normal; color: var(--err); margin-left: 3px; }
.mx.ok { color: var(--ok); background: color-mix(in srgb, var(--ok-soft) 55%, transparent); }
.mx.miss { color: var(--err); background: color-mix(in srgb, var(--err-soft) 60%, transparent); }
.mx.open { color: var(--warn); background: color-mix(in srgb, var(--warn-soft) 55%, transparent); }
.mx.none { color: var(--border); }
.assignee-line { margin-top: 10px; font-size: .9rem; background: var(--surface-2); border-radius: 999px; padding: 6px 12px; display: inline-block; }
.lock-card { gap: 12px; margin-top: 12px; }
.lock-card .svg-ico { color: var(--accent); }
