:root { --ink:#1d2433; --muted:#667085; --line:#e4e7ec; --bg:#f6f7f9; --card:#fff;
  --brand:#0b5fff; --ok:#12805c; --warn:#b54708; --warnbg:#fff4e5; --err:#b42318; --errbg:#fef3f2; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--brand); }
header.top { display:flex; flex-wrap:wrap; gap:.75rem 1.25rem; align-items:center; padding:.75rem 1rem; background:var(--ink); color:#fff; }
header.top a { color:#fff; text-decoration:none; }
.brand { font-weight:800; letter-spacing:.08em; font-size:1.2rem; }
header nav { display:flex; gap:1rem; flex-wrap:wrap; }
.logout { margin-left:auto; display:flex; gap:.5rem; align-items:center; }
.who { opacity:.75; font-size:.9rem; }
button.link { background:none; border:0; color:inherit; text-decoration:underline; cursor:pointer; padding:0; font:inherit; }
main { max-width:1200px; margin:0 auto; padding:1rem; }
h1 { margin:.25rem 0 1rem; font-size:1.6rem; } h2 { margin:1.75rem 0 .5rem; font-size:1.2rem; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:1rem 1.25rem; }
.narrow { max-width:460px; margin:1.5rem auto; } .center { text-align:center; }
label { display:flex; flex-direction:column; gap:.25rem; font-size:.9rem; color:var(--muted); margin-bottom:.75rem; }
label.check { flex-direction:row; align-items:center; color:var(--ink); }
input, select, button, .button { font:inherit; padding:.55rem .7rem; border:1px solid #cfd4dc; border-radius:8px; background:#fff; color:var(--ink); }
button, .button { cursor:pointer; text-decoration:none; display:inline-block; }
button.primary { background:var(--brand); color:#fff; border-color:var(--brand); }
button.big { width:100%; padding:1.1rem; font-size:1.3rem; font-weight:700; border-radius:12px; margin:.4rem 0; }
.act-in { background:var(--ok); color:#fff; border-color:var(--ok); }
.act-out { background:var(--err); color:#fff; border-color:var(--err); }
.act-pause_start, .act-pause_end { background:#fff; border:2px solid var(--ink); }
.flash { padding:.7rem .9rem; border-radius:8px; background:#eef4ff; }
.flash.ok { background:#ecfdf3; color:var(--ok); } .flash.error { background:var(--errbg); color:var(--err); }
.muted { color:var(--muted); }
.state { padding:.7rem; border-radius:8px; background:#f2f4f7; }
.state-in { background:#ecfdf3; } .state-pause { background:var(--warnbg); }
.confirm { background:#ecfdf3; color:var(--ok); border-radius:12px; padding:1rem; margin:1rem 0; font-weight:600; }
.big-time { font-size:1.8rem; font-weight:800; }
.scroll { overflow-x:auto; background:var(--card); border:1px solid var(--line); border-radius:12px; }
table { border-collapse:collapse; width:100%; background:var(--card); }
th, td { text-align:left; padding:.5rem .65rem; border-bottom:1px solid var(--line); vertical-align:top; font-size:.93rem; }
th { background:#f9fafb; font-weight:600; white-space:nowrap; }
td.num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
tr.warn td { background:#fffaf2; } tr.voided td { color:#98a2b3; text-decoration:line-through; }
tr.voided td:last-child, tr.voided td:nth-child(5) { text-decoration:none; }
tr.total td { font-weight:700; }
.badge { display:inline-block; background:var(--warnbg); color:var(--warn); border-radius:999px; padding:.05rem .5rem; font-size:.8rem; margin:0 .2rem .2rem 0; }
.badge.info { background:#eef4ff; color:var(--brand); }
.filters, .grid { display:flex; flex-wrap:wrap; gap:.25rem 1rem; align-items:flex-end; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:1rem; margin-bottom:1rem; }
.filters label, .grid label { margin-bottom:0; } .grid .wide { flex:1 1 320px; }
form.inline { display:inline-flex; gap:.35rem; align-items:center; flex-wrap:wrap; }
form.inline input { padding:.3rem .5rem; width:9rem; }
form.inline button:not(.link) { padding:.3rem .6rem; }
.toolbar { display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; }
.stats { display:flex; gap:1rem; margin-bottom:1rem; flex-wrap:wrap; }
.stat { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:.8rem 1.1rem; }
.stat .n { font-size:1.6rem; font-weight:800; margin-right:.35rem; }
.tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:1rem; }
.tile { color:var(--ink); text-decoration:none; } .tile:hover { border-color:var(--brand); }
.sum { font-size:1.1rem; }
.qr-sheet { background:#fff; text-align:center; padding:2rem; border:1px solid var(--line); border-radius:12px; max-width:640px; margin:0 auto; }
.qr-sheet h1 { font-size:2.2rem; margin-bottom:.25rem; } .qr-sheet h2 { margin:.25rem 0; font-size:1.6rem; }
.qr svg { width:100%; max-width:380px; height:auto; }
.qr-sheet .big { font-size:1.3rem; font-weight:600; } .qr-sheet .url { font-size:.75rem; color:var(--muted); word-break:break-all; }
body.print { background:#fff; padding:1.5rem; }
@media print {
  header.top, .noprint, .flash, .toolbar, .filters { display:none !important; }
  body, main { background:#fff; padding:0; }
  .qr-sheet { border:0; }
  .scroll { border:0; overflow:visible; }
  th, td { font-size:10pt; padding:3pt 5pt; }
}
@media (max-width:640px) { h1 { font-size:1.35rem; } main { padding:.75rem; } }
.brand .module { font-weight:400; letter-spacing:.02em; opacity:.8; }
.company { text-decoration:none; }
.brandbox { display:flex; align-items:center; gap:.55rem; line-height:1.15; }
.brandbox img { width:34px; height:34px; background:#fff; border-radius:6px; padding:2px; }
.brandbox small { opacity:.75; font-size:.75rem; }
header.top .brandbox strong { font-size:.95rem; }
.brandbox.big { margin-bottom:1rem; color:var(--ink); }
.brandbox.big img { width:64px; height:64px; padding:0; }
.brandbox.big strong { font-size:1.3rem; }
.brandbox.big small { font-size:.9rem; color:var(--muted); opacity:1; }
.brandbox.center { justify-content:center; text-align:left; }
.qr-sheet .brandbox.big img { width:90px; height:90px; }
header.top .brand { border-left:1px solid rgba(255,255,255,.3); padding-left:1rem; }
@media (max-width:640px) { header.top .brandbox small { display:none; } }
.anleitung { max-width:720px; margin:0 auto; }
.steps li { margin:.6rem 0; font-size:1.1rem; }
.ampel { display:inline-block; width:.85rem; height:.85rem; border-radius:50%; vertical-align:-1px; margin-right:.35rem; background:#d0d5dd; }
.ampel.gruen { background:var(--ok); } .ampel.gelb { background:#f79009; } .ampel.rot { background:var(--err); } .ampel.grau { background:#d0d5dd; }
.hints { margin-bottom:1rem; border-color:#fda29b; } .hints h3 { margin:.1rem 0 .4rem; font-size:1rem; } .hints ul { margin:0; padding-left:1rem; list-style:none; }
.hints li { margin:.25rem 0; }
.days { display:flex; gap:.6rem; flex-wrap:wrap; }
.days label { flex-direction:row; align-items:center; gap:.25rem; color:var(--ink); margin:0; }
pre.draft { white-space:pre-wrap; background:#f9fafb; border:1px dashed #cfd4dc; border-radius:8px; padding:.8rem; font-size:.85rem; }
td.neg { color:var(--err); } td.pos { color:var(--ok); }
.mono { font-family:ui-monospace, Menlo, monospace; font-size:.78rem; }
.bell { font-size:.9rem; } .bell .count { background:var(--err); color:#fff; border-radius:999px; padding:0 .45rem; font-weight:700; }
.konto td.num { min-width:5rem; }
