/* InnoZeit – Baustellen-tauglich: große Tippflächen, klare Statusfarben, hell und dunkel. */
:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #eceeea;
  --fg: #1c2125;
  --muted: #5d656b;
  --line: #d9dbd6;
  --accent: #1d5a7e;
  --accent-soft: #e2edf3;
  --on-accent: #ffffff;
  --signal: #b07800;
  --danger: #b3261e;
  --ok: #2f7d4f;
  --work: #2f7d4f;
  --travel: #3d6fb0;
  --sick: #b8463a;
  --vac: #8a6d0e;
  --late: #a85414;
  --absent: #2b2f33;
  --masked: #646c72;
  --edu: #2a72a3;
  --comp: #7a54a8;
  --weather: #3f6f78;
  --missing: #b33f3f;
  --on-ok: #ffffff;
  --on-late: #ffffff;
  --on-status: #ffffff; /* Text auf Statusfarben, Kontrast mindestens 4,5:1 */
  --radius: 8px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191c; --surface: #1d2226; --surface-2: #252b30; --fg: #e6e8e6; --muted: #9aa3a9; --line: #313840;
    --accent: #7fb6d6; --accent-soft: #1f3341; --on-accent: #0f1d26; --signal: #e3a92a; --danger: #ef7d74; --ok: #5cbf83;
    --work: #3f9a63; --travel: #4f82c4; --sick: #e07a6f; --vac: #c9a53a; --late: #e08a48; --absent: #c7cdd1;
    --masked: #8a9299; --edu: #4fa0d4; --comp: #a782d1; --weather: #6aa1aa; --missing: #e06a6a;
    --on-ok: #0b2215; --on-late: #2a1405; --on-status: #15191c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  /* Netz gegen seitliches Verrutschen; clip statt hidden, damit position: sticky weiter funktioniert */
  overflow-x: clip;
}
.booting { padding: 40px 16px; color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: .92em; }

/* ---------- Grundgerüst ---------- */
.shell { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .topbar { grid-column: 1 / -1; }
}
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; text-decoration: none; color: var(--fg); }
.brand img { width: 26px; height: 26px; }
.brand small { font-weight: 400; color: var(--muted); font-size: 12px; display: none; }
@media (min-width: 600px) { .brand small { display: inline; } }
.topbar > * { min-width: 0; }
.topbar .brand { flex: none; }
.topbar .spacer { flex: 1; }
.sync-badge { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.sync-badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.sync-badge.pending { color: var(--late); border-color: var(--late); font-weight: 600; }
.sync-badge.offline { color: var(--on-accent); background: var(--late); border-color: var(--late); font-weight: 600; }
.sync-badge.error { color: #fff; background: var(--danger); border-color: var(--danger); font-weight: 600; }
button.sync-badge { min-height: 0; background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; }
.rejected-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.rejected-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 6px; }
.update-banner { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 50; background: var(--surface); color: var(--fg); border: 1px solid var(--accent); border-radius: var(--radius); padding: 10px 14px; box-shadow: 0 4px 16px rgba(0,0,0,.2); display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); }
.user-btn { display: flex; flex-direction: column; align-items: flex-end; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 4px; font: inherit; flex: 0 1 auto; }
.user-btn small { color: var(--muted); font-size: 11.5px; }
.user-btn span, .user-btn small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px) { .sync-badge, .user-btn { max-width: 34vw; } }

nav.side { display: none; }
@media (min-width: 900px) {
  nav.side { display: block; border-right: 1px solid var(--line); background: var(--surface); padding: 16px 10px; }
  nav.side a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--radius); color: var(--fg); text-decoration: none; font-weight: 500; }
  nav.side a:hover { background: var(--surface-2); }
  nav.side a.active { background: var(--accent-soft); color: var(--accent); }
  nav.side .ico { width: 20px; text-align: center; }
}
nav.bottom {
  position: sticky; bottom: 0; z-index: 20; display: flex; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px); overflow-x: auto;
}
nav.bottom a { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; font-size: 11px; color: var(--muted); text-decoration: none; }
nav.bottom a .ico { font-size: 18px; }
nav.bottom a.active { color: var(--accent); font-weight: 600; }
@media (min-width: 900px) { nav.bottom { display: none; } }

main.content {
  min-width: 0; padding-block: 18px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.page { max-width: 1180px; margin: 0 auto; display: grid; gap: 18px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.page-head h1 { margin-right: auto; }

/* ---------- Bausteine ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin-right: auto; }
.grid-2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

button, .btn {
  font: inherit; font-weight: 600; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); padding: 9px 14px; min-height: 40px; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px;
}
button:hover, .btn:hover { border-color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px;
}
button.primary, .btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
button.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
button.ghost { background: transparent; }
button.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { min-height: 36px; min-width: 36px; padding: 4px 8px; border-color: transparent; background: transparent; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.actions.left { justify-content: flex-start; }

input, select, textarea {
  font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 10px; min-height: 40px; width: 100%; min-width: 0;
}
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; }
input[type="time"] { min-width: 96px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field[hidden] { display: none; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field .hint { color: var(--muted); font-size: 12px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.form-error { color: var(--danger); font-weight: 600; min-height: 1em; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }

.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 4px; }
.stepper strong { min-width: 120px; text-align: center; }
.stepper input[type="date"] { border: 0; min-height: 34px; width: auto; }

.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: var(--muted); padding: 10px 12px; white-space: nowrap; min-height: 42px; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid currentColor; }
.c-work { color: var(--work); } .c-late { color: var(--late); } .c-sick { color: var(--sick); } .c-vac { color: var(--vac); }
.c-absent { color: var(--absent); } .c-masked { color: var(--masked); } .c-edu { color: var(--edu); } .c-comp { color: var(--comp); }
.c-weather { color: var(--weather); } .c-missing { color: var(--missing); } .c-none { color: var(--muted); } .c-travel { color: var(--travel); }
.c-signal { color: var(--signal); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); white-space: nowrap; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--accent-soft); }
td .chip { margin-right: 4px; }
.pos { color: var(--ok); } .neg { color: var(--danger); }

.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 2px; }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 20px; font-variant-numeric: tabular-nums; }
.stat.pos .stat-value { color: var(--ok); } .stat.neg .stat-value { color: var(--danger); }

.empty, .loading { color: var(--muted); padding: 12px 0; }
.error-box { border: 1px solid var(--danger); color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); padding: 12px; border-radius: var(--radius); font-weight: 600; }
.banner { padding: 10px 14px; border-radius: var(--radius); font-weight: 600; }
.banner.warn { background: color-mix(in srgb, var(--late) 14%, transparent); color: var(--fg); border: 1px solid var(--late); }
.absence-hint { display: grid; gap: 6px; margin: 8px 0; } .absence-hint[hidden], .actions[hidden] { display: none; } .absence-hint ul { margin: 0; padding-left: 20px; }
.banner.info { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.banner.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid var(--ok); }

/* ---------- Dialog & Hinweis ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 18, .5); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal-back { align-items: center; padding: 24px; } }
.modal { background: var(--surface); width: 100%; max-width: min(560px, 100vw); max-height: 92vh; max-height: 92dvh; overflow: auto; border-radius: 14px 14px 0 0; display: grid; grid-template-rows: auto 1fr; }
.modal.wide { max-width: min(860px, 100vw); }
@media (min-width: 640px) { .modal { border-radius: 12px; } }
.modal-head { position: sticky; top: 0; background: var(--surface); display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); z-index: 1; }
.modal-head h2 { margin-right: auto; }
.modal-body { padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
/* Mit Fußzeile scrollt nur der Inhalt; Grund und Speichern bleiben unten sichtbar */
.modal.has-foot { overflow: hidden; grid-template-rows: auto minmax(0, 1fr) auto; }
.modal.has-foot .modal-body { overflow: auto; overscroll-behavior: contain; padding-bottom: 16px; }
.modal-foot { display: grid; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.modal-foot .actions { margin: 0; }
.modal-foot .form-error:empty { display: none; }
.modal-head h2:focus { outline: none; }
.modal-head h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#toast {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px);
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; opacity: 0;
  pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100vw - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--danger); color: #fff; }
#toast.warn { background: var(--late); color: #fff; }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }

/* ---------- Anmeldung ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login form { width: 100%; max-width: 380px; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.login .brand { font-size: 22px; }
.demo-users { font-size: 12.5px; color: var(--muted); }
.demo-users code { font-family: var(--mono); }

/* ---------- Heute ---------- */
.heute-head { display: grid; gap: 10px; }
.heute-head .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.heute-site { font-size: 20px; font-weight: 700; }
.all-present { width: 100%; min-height: 54px; font-size: 16px; }
.member-list { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.member {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 11px 14px;
  border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; border-radius: 0;
  text-align: left; min-height: 58px; width: 100%; font-weight: 400; cursor: pointer;
}
.member:last-child { border-bottom: 0; }
.member:hover { background: var(--accent-soft); }
.member .name { font-weight: 600; }
.member .detail { grid-column: 1 / -1; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.member .detail .warn { color: var(--late); font-weight: 600; }
.member.pending-sync .name::after { content: " ↻"; color: var(--late); }
.report-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

.booking-edit { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
@media (min-width: 560px) { .booking-edit { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.booking-edit .full { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { min-height: 38px; font-size: 13.5px; }
.abs-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Kalender ---------- */
.year { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
.cal-month h4 { margin: 0 0 6px; font-size: 13px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: 3px; }
.cal-grid .cal-day { min-height: 44px; min-width: 44px; font-size: 13px; }
.cal-grid .wd { font-size: 10.5px; color: var(--muted); text-align: center; }
.cal-day {
  aspect-ratio: 1; min-height: 0; padding: 0; border-radius: 4px; font-size: 11px; font-weight: 600; border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); position: relative;
}
.cal-day.b-work { background: var(--work); color: var(--on-status); } .cal-day.b-late { background: var(--late); color: var(--on-status); }
.cal-day.b-sick { background: var(--sick); color: var(--on-status); } .cal-day.b-vac { background: var(--vac); color: var(--on-status); }
.cal-day.b-absent { background: var(--absent); color: var(--on-status); } .cal-day.b-masked { background: var(--masked); color: var(--on-status); }
.cal-day.b-edu { background: var(--edu); color: var(--on-status); } .cal-day.b-comp { background: var(--comp); color: var(--on-status); }
.cal-day.b-weather { background: var(--weather); color: var(--on-status); }
.cal-day.b-missing { background: transparent; border: 2px solid var(--missing); color: var(--missing); }
.cal-day.holiday { background: transparent; border: 1px dashed var(--muted); }
.cal-day.today { outline: 2px solid var(--fg); outline-offset: 1px; }
.cal-day.warn::after { content: ""; position: absolute; top: 2px; right: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }
.cal-day.pending { box-shadow: inset 0 0 0 2px var(--vac); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.timeline { position: relative; height: 30px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.timeline .seg { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; color: #fff; font-size: 11px; font-weight: 600; padding: 0 5px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.history { display: grid; gap: 8px; }
.history li { list-style: none; border-left: 3px solid var(--line); padding: 2px 0 2px 10px; }
.history ul { margin: 0; padding: 0; display: grid; gap: 10px; }
.history .who { font-size: 12.5px; color: var(--muted); }
.history .change { font-family: var(--mono); font-size: 12.5px; }

.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn.ghost { background: transparent; }

/* ---------- Baustelle: Handy, Handschuhe, Sonne ----------
   Unter 900 px: größere Schrift und Tippflächen (mind. 48 px), Eingaben 16 px (kein Zoom auf iOS). */
@media (max-width: 899px) {
  body { font-size: 16px; }
  button, .btn { min-height: 48px; }
  button.small, .btn.small { min-height: 44px; font-size: 14px; }
  input, select, textarea { min-height: 48px; font-size: 16px; }
  .icon-btn { min-height: 44px; min-width: 44px; }
  nav.bottom a { padding: 9px 4px 8px; font-size: 12px; min-height: 56px; }
  nav.bottom a .ico { font-size: 20px; }
  .quick { display: grid; grid-template-columns: 1fr 1fr; }
  .quick button { min-height: 52px; font-size: 15px; }
}

/* Heute: Fortschritt, große Hauptaktion, Meldeleiste immer in Daumennähe */
.progress { display: grid; gap: 6px; }
.progress-text { font-size: 15px; }
.progress-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.progress-fill { height: 100%; background: var(--ok); border-radius: 99px; transition: width .35s ease; }
button.all-present { min-height: 72px; flex-direction: column; gap: 2px; background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.all-present .ap-main { font-size: 19px; font-weight: 700; }
.all-present .ap-sub { font-size: 13px; font-weight: 500; opacity: .92; }
button.copy-prev { width: 100%; min-height: 56px; flex-direction: column; gap: 2px; margin-top: 8px; }
.copy-prev .ap-main { font-size: 17px; font-weight: 600; }
.copy-prev .ap-sub { font-size: 13px; font-weight: 400; opacity: .8; }
.member { min-height: 64px; }
.member .name { font-size: 16.5px; }
.member .chip { font-size: 13.5px; padding: 4px 10px; }
.member.has-korr .name::before { content: "⚑ "; color: var(--late); }
.report-bar {
  position: sticky; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index: 10; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}
@media (min-width: 900px) { .report-bar { bottom: 12px; } }
.report-bar .rb-text { font-weight: 600; }
.report-bar button { min-height: 52px; padding-inline: 22px; font-size: 16px; }
.report-bar button.ready { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.report-done { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid var(--ok); }
.report-done.pending { background: color-mix(in srgb, var(--late) 10%, var(--surface)); border-color: var(--late); }
.rd-check { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 700; color: var(--on-ok); background: var(--ok); }
.report-done.pending .rd-check { background: var(--late); }
.korr-card { border-color: var(--late); }
.korr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.korr-item { display: grid; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.korr-item:first-child { border-top: 0; padding-top: 0; }
.korr-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Mein Tag (Mitarbeiter) ---------- */
.meintag { max-width: 560px; }
.mt-head h1 { font-size: 26px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; display: grid; gap: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.hero-card.is-done { border-color: var(--ok); }
.hero-card.plan { border-style: dashed; }
.hero-label { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hero-time { font-size: 40px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hero-meta { font-size: 17px; }
.hero-list { margin: 0; padding-left: 18px; color: var(--muted); }
.hero-abs { font-size: 16px; }
.hero-hint { color: var(--muted); }
.confirm-actions { display: grid; gap: 10px; margin-top: 6px; }
.confirm-btn { min-height: 72px; font-size: 22px; font-weight: 700; border-radius: 14px; background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.confirm-btn:hover { filter: brightness(1.05); border-color: var(--ok); }
.wrong-btn { min-height: 52px; font-size: 16px; background: transparent; }
.changed-note { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--late) 12%, transparent); font-weight: 600; }
.done-state { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; color: var(--ok); margin-top: 6px; }
.done-check { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--on-ok); font-size: 26px; animation: pop .35s ease-out; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .done-check { animation: none; } .progress-fill { transition: none; } }
.korr-state { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: color-mix(in srgb, var(--late) 12%, transparent); border: 1px solid var(--late); }
.wrong-panel { display: grid; gap: 12px; margin-top: 6px; }
.wrong-q { font-size: 18px; font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { min-height: 56px; font-size: 16px; font-weight: 600; border-radius: 12px; border-width: 2px; }
.choice-row .choice { min-height: 48px; flex: 1 0 64px; }
.choice.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.big-field { display: grid; gap: 6px; font-weight: 600; }
.big-field input[type="time"] { font-size: 24px; min-height: 56px; max-width: 180px; }
.wrong-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
button.big, .btn.big { min-height: 56px; font-size: 16px; }
.open-days { list-style: none; margin: 0; padding: 0; display: grid; }
.open-days li { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 6px 0; }
.open-days li:first-child { border-top: 0; }
.od-main { flex: 1; display: grid; justify-items: start; justify-content: stretch; gap: 2px; background: none; border: 0; padding: 8px 4px; text-align: left; font-weight: 400; }
.od-day { font-weight: 700; }
.od-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.od-ok { flex: none; width: 56px; height: 56px; min-height: 56px; border-radius: 50%; font-size: 24px; color: var(--ok); border: 2px solid var(--ok); background: transparent; padding: 0; }
.od-ok:hover { background: var(--ok); color: var(--on-ok); border-color: var(--ok); }
.week-total { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.week-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week-strip .wd { display: grid; justify-items: center; gap: 4px; padding: 8px 0; border-radius: 10px; background: var(--surface-2); }
.week-strip .wd.today { outline: 2px solid var(--fg); outline-offset: -2px; }
.wd-name { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.wd-mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; border: 2px solid transparent; }
.wd.ok .wd-mark { background: var(--ok); color: var(--on-ok); }
.wd.open .wd-mark { border-color: var(--late); color: var(--late); }
.wd.korr .wd-mark { background: var(--late); color: var(--on-late); }
.wd.missing .wd-mark { border: 2px dashed var(--muted); color: var(--muted); }
.wd-h { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.2em; }
.mt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.mt-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; }
.mt-stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.mt-stat-value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mt-stat-value.small-v { font-size: 20px; }
.mt-stat.pos .mt-stat-value { color: var(--ok); } .mt-stat.neg .mt-stat-value { color: var(--danger); }
.mt-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mt-links .btn { text-align: center; }

.searchbar { display: flex; gap: 8px; }
.searchbar input { flex: 1; }
.list-cards { display: grid; gap: 8px; }

/* ---------- Barrierefreiheit ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.team-table th[scope="row"] { text-align: left; font-weight: 500; white-space: nowrap; }
.team-cell { text-align: center; min-width: 28px; }
.team-cell.beantragt { opacity: .5; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Mehrfachauswahl auf „Heute“ (Auswahlmodus): Regeln in heute.css */
.multi-bar[hidden], .report-bar[hidden], .report-done[hidden] { display: none; }
.multi-bar { flex-wrap: nowrap; gap: 8px; }
.multi-bar .rb-text { flex: 1; min-width: 0; }
.multi-bar button { flex: none; }
.multi-bar button.ghost { min-width: 48px; padding-inline: 0; }

/* Tageseditor: Schnellknöpfe zeigen den Zustand, das Ergebnis steht direkt darunter */
.quick button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.quick button[aria-pressed="true"]::before { content: "✓ "; }
.quick button.asking { box-shadow: inset 0 0 0 2px var(--accent); }
.ask-panel { display: grid; gap: 10px; padding: 12px;
  border: 2px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.ask-panel .field { margin: 0; }
.ask-panel .actions { margin: 0; }
/* Uhrzeit-Chips: große Zeit, darunter klein der Abstand zum Standard */
.chip-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.time-chip { display: grid; place-items: center; gap: 0; min-height: 48px; padding: 6px 8px; line-height: 1.15; }
.time-chip strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.time-chip small { font-size: 12px; font-weight: 500; opacity: .8; }
.time-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day-detail > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; font-weight: 600; }
/* Zusatz (Anzahl Buchungen/Abwesenheiten) als eigene, kleine zweite Zeile unter der Überschrift */
.day-detail > summary .dd-sub { flex-basis: 100%; padding-left: 20px; font-weight: 400; }
.day-detail[open] > summary { margin-bottom: 8px; }
/* display:flex nimmt dem summary das Dreieck: eigenes Zeichen statt ::marker */
.day-detail > summary::-webkit-details-marker { display: none; }
.day-detail > summary::before { content: "▸"; margin-right: 8px; color: var(--accent); }
.day-detail[open] > summary::before { content: "▾"; }
.day-detail-body { display: grid; gap: 10px; }
.reason-box { display: grid; gap: 6px; }
.reason-chips .choice { min-height: 44px; flex: 0 1 auto; padding: 0 14px; font-size: 15px; }
#toast.has-action { pointer-events: auto; display: flex; align-items: center; gap: 12px; }
#toast .toast-action { min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: inherit; font-weight: 700; text-decoration: underline; }
.day-result { display: grid; gap: 2px 12px; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: 12px 14px;
  border: 1px solid var(--line); border-left: 6px solid var(--tone, var(--line)); border-radius: var(--radius); background: var(--surface); }
.day-result .dr-title { font-size: 17px; color: var(--fg); }
.day-result .dr-hours { font-weight: 600; white-space: nowrap; }
.day-result .dr-changes { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.booking-edit.is-new, .abs-line.is-new { border-style: solid; border-color: var(--accent); }
.abs-line.is-new > span:first-child::after, .booking-edit.is-new .full > span:first-child::before { content: "neu"; margin-inline: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--accent); color: var(--on-accent); }
.booking-edit.is-new .full > span:first-child::before { margin-left: 0; }
.removed-list { display: grid; gap: 6px; }
.removed-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius); background: var(--surface-2); color: var(--muted); }
@keyframes iz-flash { from { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 6px var(--accent); } to { box-shadow: 0 0 0 0 transparent; } }
.flash { animation: iz-flash .9s ease-out; }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }
.day-result .dr-warn { grid-column: 1 / -1; font-weight: 600; color: var(--danger); }

/* Monatsbestätigung in Mein Tag */
.mc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 12px; }
.mc-grid div { display: flex; flex-direction: column; gap: 2px; }
.mc-grid dt { font-size: 13px; color: var(--muted); }
.mc-grid dd { margin: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .mc-grid { grid-template-columns: repeat(2, 1fr); } }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.wetter-panel { display: grid; gap: 8px; }
.wetter-panel .choice { min-height: 44px; flex: 0 1 auto; padding: 0 14px; font-size: 15px; }
.wetter-panel .choice-row input[type="time"] { width: auto; min-height: 44px; }
.reminder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 96px; justify-content: center; text-align: center; }
