:root {
  --navy: #1c2430;
  --navy-2: #26313f;
  --creme: #f4efe6;
  --papier: #fbf8f2;
  --text: #1c2430;
  --leise: #6b7280;
  --linie: #e3dccf;
  --orange: #d9732b;
  --gruen: #2f7d4f;
  --gelb: #b8860b;
  --rot: #b23b3b;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--creme); color: var(--text); }
body { min-height: 100dvh; padding-bottom: calc(72px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
main { max-width: 640px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px 24px; }
h1 { font-size: 1.35rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 24px 0 10px; }
p { line-height: 1.45; }
.leise { color: var(--leise); font-size: .9rem; }
.laden { padding: 40vh 0; text-align: center; color: var(--leise); }

.kopf { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.kopf .firma { font-size: .8rem; color: var(--leise); letter-spacing: .04em; text-transform: uppercase; }

.karte { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }

/* Status */
.status { text-align: center; padding: 26px 16px; }
.status .punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.status .label { font-size: 1.05rem; font-weight: 600; }
.status .uhr { font-size: 3rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 10px 0 2px; letter-spacing: -.02em; }
.da .punkt { background: var(--gruen); }
.pause .punkt { background: var(--gelb); }
.draussen .punkt { background: var(--leise); }

/* Stempel-Knöpfe */
.knoepfe { display: grid; gap: 10px; margin-top: 14px; }
.knopf { appearance: none; border: 0; border-radius: var(--radius); padding: 22px 16px; font-size: 1.2rem; font-weight: 700; color: #fff; cursor: pointer; width: 100%; }
.knopf:active { transform: scale(.985); }
.knopf:disabled { opacity: .5; }
.k-kommen { background: var(--gruen); }
.k-gehen { background: var(--navy); }
.k-pause_start, .k-pause_ende { background: var(--gelb); }

.hinweis { background: #fff4e5; border-left: 4px solid var(--orange); padding: 10px 12px; border-radius: 8px; margin: 8px 0; font-size: .92rem; }
.fehler { background: #fde8e8; border-left: 4px solid var(--rot); padding: 10px 12px; border-radius: 8px; margin: 8px 0; font-size: .92rem; }
.ok { background: #e7f4ec; border-left: 4px solid var(--gruen); padding: 10px 12px; border-radius: 8px; margin: 8px 0; font-size: .92rem; }

/* Formulare */
label { display: block; font-size: .85rem; color: var(--leise); margin: 10px 0 4px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; color: var(--text); }
button.btn { appearance: none; font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 12px 16px; background: var(--navy); color: #fff; cursor: pointer; }
button.btn.zweit { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
button.btn.klein { padding: 6px 10px; font-size: .85rem; }
button.btn.gefahr { background: var(--rot); }
.zeile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zeile > * { flex: 1; }
.voll { width: 100%; margin-top: 14px; }

/* Monatsliste */
.monat-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.monat-nav strong { font-size: 1.05rem; }
.summe { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tag { border-top: 1px solid var(--linie); padding: 10px 0; }
.tag:first-child { border-top: 0; }
.tag-kopf { display: flex; justify-content: space-between; font-weight: 600; }
.tag-kopf .std { font-variant-numeric: tabular-nums; }
.schicht { font-size: .9rem; color: var(--leise); margin-top: 2px; font-variant-numeric: tabular-nums; }
.ereignis { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; padding: 4px 0; gap: 8px; }
.nachtrag-marke { font-size: .72rem; background: var(--linie); border-radius: 6px; padding: 1px 6px; margin-left: 6px; color: var(--text); }
.tag .hinweis { margin: 6px 0 0; padding: 6px 10px; font-size: .82rem; }

/* Admin */
.ma { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--linie); gap: 8px; }
.ma:first-child { border-top: 0; }
.ma .name { font-weight: 600; }
.ma.inaktiv { opacity: .5; }
.chip { font-size: .75rem; border-radius: 999px; padding: 2px 8px; color: #fff; white-space: nowrap; }
.chip.da { background: var(--gruen); }
.chip.pause { background: var(--gelb); }
.chip.draussen { background: var(--leise); }
details summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.protokoll { font-size: .8rem; color: var(--leise); }
.protokoll div { padding: 4px 0; border-top: 1px solid var(--linie); }

/* Tabs */
nav#tabs[hidden] { display: none; }
nav#tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--navy); padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
nav#tabs button { flex: 1; appearance: none; background: none; border: 0; color: #c9cfd8; font: inherit; font-size: .82rem; padding: 16px 4px; cursor: pointer; }
nav#tabs button.aktiv { color: #fff; box-shadow: inset 0 3px 0 var(--orange); }

.login { max-width: 380px; margin: 12vh auto 0; }
.login .marke { text-align: center; margin-bottom: 18px; }
.login .marke svg { width: 56px; height: 56px; }

.notiz { font-size: .88rem; margin-top: 4px; padding: 6px 10px; background: #fff; border: 1px solid var(--linie); border-radius: 8px; white-space: pre-wrap; }
textarea { resize: vertical; }
