/* zeitdoku – digitale Stechuhr. Dunkles Schiefer + Mint, große Ziffern, große Ziele
   (draußen, Handschuhe, Eile). Bewusst andere Identität als baudoku. */
:root {
  --bg: #1A2126;          /* Schiefer */
  --panel: #232C33;
  --panel2: #2B363E;
  --line: #39454E;
  --ink: #EDF3F2;
  --muted: #93A6A3;
  --mint: #37D0A5;        /* Stempel-Akzent */
  --mint-ink: #0D2B22;
  --amber: #E8B03F;       /* offen/laufend */
  --red: #E06456;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  min-height: 100dvh;
}
#app { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }

/* Topbar */
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.brand { font-weight: 700; letter-spacing: .04em; font-size: 18px; }
.brand b { color: var(--mint); }
.spacer { flex: 1; }
.who { font-size: 12px; color: var(--muted); text-align: right; line-height: 1.3; }
.who b { display: block; color: var(--ink); }
.linkbtn { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 4px; }
.linkbtn:hover, .linkbtn:focus-visible { color: var(--ink); }

/* Karten & Formulare */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.input, select.input {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--ink); font-size: 16px;
}
.input:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--ink);
  padding: 12px 18px; font-size: 16px; font-weight: 600; cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.btn.primary { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 12px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.hint { font-size: 13px; color: var(--muted); }
.error-hint { font-size: 13px; color: var(--red); }

/* Login */
.login { display: grid; place-items: center; min-height: 80dvh; }
.login .box { width: 100%; max-width: 380px; }
.logo { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: .03em; margin-bottom: 4px; }
.logo b { color: var(--mint); }
.tagline { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.code-shown { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: .35em; color: var(--mint); font-variant-numeric: tabular-nums; padding: 6px 0 0; }

/* Stempel-Ansicht */
.clockcard { text-align: center; padding: 26px 18px; }
.bigtime { font-size: 52px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: 1; }
.bigdate { color: var(--muted); font-size: 14px; margin-top: 6px; }
.statusline { margin: 16px 0 6px; font-size: 15px; }
.statusline .pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.pill.in { background: rgba(232, 176, 63, .15); color: var(--amber); }
.pill.out { background: rgba(147, 166, 163, .15); color: var(--muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.in .dot { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pill.in .dot { animation: none; } }

.stampbtn {
  width: 170px; height: 170px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 22px; font-weight: 800; letter-spacing: .04em; margin: 18px auto 6px; display: block;
  color: var(--mint-ink); background: var(--mint);
  box-shadow: 0 0 0 10px rgba(55, 208, 165, .12);
}
.stampbtn.out { background: var(--amber); color: #2E2306; box-shadow: 0 0 0 10px rgba(232, 176, 63, .12); }
.stampbtn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.stampbtn small { display: block; font-size: 13px; font-weight: 600; opacity: .75; margin-top: 4px; }

/* Pause-Auswahl */
.pauserow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.pausebtn { border: 1px solid var(--line); background: var(--panel2); color: var(--ink); border-radius: 999px; padding: 10px 16px; font-size: 15px; font-weight: 600; cursor: pointer; }
.pausebtn.active, .pausebtn:focus-visible { border-color: var(--mint); color: var(--mint); outline: none; }

/* Listen */
.section-title { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.entry { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.entry:last-child { border-bottom: none; }
.entry.wrap { flex-wrap: wrap; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.entry .times { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 110px; }
.entry .meta { flex: 1; color: var(--muted); font-size: 14px; }
.entry .dur { font-variant-numeric: tabular-nums; color: var(--mint); font-weight: 700; }
.empty { color: var(--muted); text-align: center; padding: 18px 6px; font-size: 14px; }
.total { display: flex; justify-content: space-between; padding: 12px 4px 2px; font-weight: 700; }
.total span:last-child { font-variant-numeric: tabular-nums; color: var(--mint); }

/* Tabs (Chef) */
.tabs { display: flex; gap: 6px; margin: 18px 0 14px; }
.tab { flex: 1; text-align: center; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 14px; }
.tab.active { background: var(--panel); color: var(--ink); border-color: var(--mint); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--muted); }

/* Chef-Übersicht */
.warncard { border-color: var(--amber); }
table.wk { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.wk th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px; text-align: center; border-bottom: 1px solid var(--line); }
table.wk td { padding: 5px 4px; text-align: center; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.wk tr:last-child td { border-bottom: none; }
table.wk td.dim { color: var(--line); }
.cellbtn { border: 1px solid transparent; background: var(--panel2); color: var(--ink); border-radius: 6px; padding: 5px 8px; cursor: pointer; font-variant-numeric: tabular-nums; font-size: 13px; }
.cellbtn.active, .cellbtn:focus-visible { border-color: var(--mint); color: var(--mint); outline: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Druck: nur der QR-Aushang landet auf Papier. */
@media print {
  body { background: #fff; }
  .topbar, .no-print, #toast { display: none !important; }
  .printarea { border: none; box-shadow: none; }
}

/* Toast */
#toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 12px 18px; font-size: 15px; opacity: 0; pointer-events: none; transition: all .25s; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.ok { border-color: var(--mint); }
#toast.err { border-color: var(--red); }

/* Glocke in der Topbar: offene Korrekturanträge (Muster: Ticket-Dashboard). */
.bellbtn {
  position: relative; width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: var(--ink);
  border-radius: 50%;
}
.bellbtn:hover { background: rgba(255, 255, 255, .08); }
.bellbadge {
  position: absolute; top: 1px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  border: 2px solid var(--bg);
}
