/*
 * ATB Zeiterfassung – ATB design system (P5.1B). Visual reference: indexF2.html (tokens, header, tabs, bands, tables).
 * Local file only: no external fonts/CDNs (S-10), no inline styles (strict CSP). System fonts; numbers in monospace
 * with tabular figures. Accessibility additions over the prototype: visible focus ring, text green #3E6A00,
 * input borders ≥ 3:1, touch targets ≥ 44px on phones.
 */

/* ---------- 1. Tokens ---------- */
:root {
    --atb-gruen: #91D400;          /* accent only (1.8:1 on white) – never text */
    --atb-gruen-dunkel: #6F9F00;   /* borders of green surfaces, non-text UI */
    --atb-gruen-text: #3E6A00;     /* green text/links (6.4:1) */
    --atb-gruen-blass: #F2FBDF;
    --atb-gruen-auf-blass: #3D5600;
    --atb-schwarz: #111;
    --atb-linie: #C9CCC4;          /* table/list hairlines (decorative) */
    --atb-feldrand: #767676;       /* form control borders (≥ 3:1) */
    --atb-feld: #EDEEEA;
    --atb-grau: #63675F;
    --atb-rot: #B3271C;
    --atb-rot-blass: #FBEBE9;
    --atb-gelb-blass: #FDF6E3;
    --atb-gelb-rand: #D9C27A;
    --atb-gelb-text: #6B520B;
    --atb-seite: #E8E9E5;
    --atb-login-bg: #EEF0EA;
    --atb-radius: 3px;
    --atb-pad: 20px;
    --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", "Courier New", monospace;
    /* legacy aliases (older class rules) */
    --green: var(--atb-gruen-text); --red: var(--atb-rot); --grey: var(--atb-grau); --border: var(--atb-linie);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--atb-seite); color: var(--atb-schwarz); font-family: var(--font-text); font-size: 14px; line-height: 1.45; }
h1, h2, h3 { font-family: var(--font-text); font-weight: 600; margin: 0; }
h1 { font-size: 18px; margin: 0 0 12px; letter-spacing: -.005em; }
h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--atb-schwarz); padding-bottom: 5px; margin: 22px 0 12px; }
p { margin: 0 0 10px; }
a { color: var(--atb-gruen-text); }
a:hover { color: var(--atb-schwarz); }
code { font-family: var(--font-mono); font-size: .92em; }
.mono, .secret, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--atb-grau); font-size: 13px; }
.small { font-size: 12px; }
.negative { color: var(--atb-rot); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--atb-schwarz); color: #fff; padding: 10px 14px; text-decoration: none; }
.skip-link:focus { top: 8px; color: #fff; }

/* Focus: visible on every control (prototype had none on buttons). Black ring + green halo ≥ 3:1 on white and green. */
:focus-visible { outline: 3px solid var(--atb-schwarz); outline-offset: 2px; box-shadow: 0 0 0 5px var(--atb-gruen); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--atb-schwarz); }

/* ---------- 3. Forms ---------- */
label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--atb-grau); margin: 12px 0 4px; }
label:has(> input[type=checkbox]), label:has(> input[type=radio]), label.choice { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--atb-schwarz); }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], select, textarea {
    width: 100%; font-family: inherit; font-size: 16px; color: var(--atb-schwarz); background: #fff;
    border: 1px solid var(--atb-feldrand); border-radius: var(--atb-radius); padding: 9px 10px; min-height: 42px;
}
input[type=number] { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
input:disabled, select:disabled { background: var(--atb-feld); color: var(--atb-grau); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; margin: 0; accent-color: var(--atb-schwarz); vertical-align: middle; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--atb-grau); margin: 12px 0 6px; }
.feld-hinweis, .hinweistext { font-size: 12px; color: var(--atb-grau); line-height: 1.6; margin: 6px 0 0; }
.formreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 12px; }
.formreihe > div > label { margin-top: 12px; }

/* ---------- 4. Buttons ---------- */
button, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px;
    font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
    padding: 10px 16px; color: var(--atb-schwarz); background: var(--atb-gruen); border: 1px solid var(--atb-gruen-dunkel); border-radius: var(--atb-radius);
}
button:hover, .button:hover { background: #A2E01A; color: var(--atb-schwarz); }
button.secondary, .button.secondary, .secondary-link, .button.hell {
    background: #fff; color: var(--atb-schwarz); border-color: var(--atb-feldrand);
}
button.secondary:hover, .button.secondary:hover, .secondary-link:hover, .button.hell:hover { background: var(--atb-schwarz); color: #fff; border-color: var(--atb-schwarz); }
button.danger, .button.danger { background: #fff; color: var(--atb-rot); border-color: var(--atb-rot); }
button.danger:hover, .button.danger:hover { background: var(--atb-rot); color: #fff; }
button.big.danger { background: var(--atb-rot); color: #fff; }
button.big.danger:hover { background: #8F1F16; }
button:disabled, button:disabled:hover { background: var(--atb-feld); border-color: var(--atb-linie); color: var(--atb-grau); cursor: not-allowed; }
button.big, .button.big { width: 100%; min-height: 48px; font-size: 15px; margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.actions form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.actions input[type=text] { width: auto; min-width: 200px; flex: 1 1 200px; }
.inline-form { display: inline; }

/* ---------- 5. Shell: sheet, header, tabs ---------- */
.atb-blatt { max-width: 1180px; margin: 16px auto 60px; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .12); min-height: 60vh; }
.atb-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px var(--atb-pad); border-bottom: 3px solid var(--atb-schwarz); }
.atb-logo { display: inline-block; line-height: 0; }
.atb-logo img { height: 44px; width: auto; display: block; }
.atb-wer { display: flex; align-items: center; gap: 12px; text-align: right; font-size: 12px; color: var(--atb-grau); }
.atb-wer b { display: block; color: var(--atb-schwarz); font-size: 14px; }
.atb-wer form { margin: 0; }
.abmelden { min-height: 34px; padding: 6px 12px; font-size: 12px; background: #fff; border-color: var(--atb-feldrand); }
.abmelden:hover { background: var(--atb-schwarz); color: #fff; border-color: var(--atb-schwarz); }

.atb-reiter { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--atb-linie); padding: 0 var(--atb-pad); }
.atb-reiter a { display: inline-flex; align-items: center; min-height: 44px; padding: 11px 14px 8px; font-size: 13px; font-weight: 600; color: var(--atb-grau); text-decoration: none; border-bottom: 3px solid transparent; }
.atb-reiter a:hover { color: var(--atb-schwarz); }
.atb-reiter a.aktiv { color: var(--atb-schwarz); border-bottom-color: var(--atb-gruen); }
.atb-unterreiter { display: flex; flex-wrap: wrap; gap: 0 4px; padding: 0 var(--atb-pad); background: #FAFAF8; border-bottom: 1px solid var(--atb-linie); }
.atb-unterreiter a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 10px 6px; font-size: 12px; font-weight: 600; color: var(--atb-grau); text-decoration: none; border-bottom: 2px solid transparent; }
.atb-unterreiter a:hover { color: var(--atb-schwarz); }
.atb-unterreiter a.aktiv { color: var(--atb-schwarz); border-bottom-color: var(--atb-gruen); }

.atb-inhalt { padding: 18px var(--atb-pad) 26px; }

/* ---------- 6. Bands (flash, errors, status) – full sheet width like the prototype's status band ---------- */
.band { margin: 0 calc(-1 * var(--atb-pad)) 16px; padding: 12px var(--atb-pad); font-size: 13px; line-height: 1.55; border-bottom: 1px solid var(--atb-linie); }
.atb-inhalt > .band:first-child { margin-top: -18px; }
.band + .band { margin-top: -16px; }
.band-ok { background: var(--atb-gruen-blass); border-left: 4px solid var(--atb-gruen); }
.band-fehler { background: var(--atb-rot-blass); border-left: 4px solid var(--atb-rot); }
.band-offen { background: var(--atb-gelb-blass); }
.band-gesperrt { background: var(--atb-feld); }
.band .titel { display: block; font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.band ul { margin: 4px 0 0; padding-left: 18px; }
.errors { background: var(--atb-rot-blass); border-left: 4px solid var(--atb-rot); padding: 9px 11px; font-size: 13px; margin: 0 0 12px; }
.merkbox { background: var(--atb-gruen-blass); border-left: 4px solid var(--atb-gruen); padding: 11px 13px; font-size: 13px; line-height: 1.6; margin: 0 0 12px; }
.warnbox { background: var(--atb-gelb-blass); border-left: 4px solid var(--atb-gelb-rand); padding: 11px 13px; font-size: 13px; line-height: 1.6; margin: 0 0 12px; }

/* ---------- 7. Blocks, lists, badges ---------- */
.card { background: #fff; border: 0; padding: 0; margin: 0 0 16px; }
.card > h2:first-child { margin-top: 0; }
.bereich { margin: 0 0 18px; }
.badge, .marke { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--atb-linie); color: var(--atb-grau); background: #fff; margin-right: 4px; line-height: 1.5; }
.badge.state { color: var(--atb-schwarz); }
.badge.code { background: var(--atb-feld); color: var(--atb-schwarz); border-color: var(--atb-feldrand); }
.badge.holiday { background: var(--atb-gruen-blass); border-color: var(--atb-gruen-dunkel); color: var(--atb-gruen-auf-blass); }
.badge.offen { background: var(--atb-gelb-blass); border-color: var(--atb-gelb-rand); color: var(--atb-gelb-text); }
.badge.ok { background: var(--atb-gruen-blass); border-color: var(--atb-gruen-dunkel); color: var(--atb-gruen-auf-blass); }
.badge.fehler { background: var(--atb-rot-blass); border-color: var(--atb-rot); color: var(--atb-rot); } /* D-47: überfällig */
.monatsfrist-link { display: inline-block; margin-left: 6px; font-weight: 600; }
.liste, .people-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--atb-linie); }
.liste > li, .people-list > li { border-bottom: 1px solid var(--atb-linie); }
.liste > li:last-child, .people-list > li:last-child { border-bottom: 0; }
.people-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 9px 11px; color: inherit; text-decoration: none; font-size: 14px; }
.people-list a:hover { background: var(--atb-feld); }
.people-list .person-name { font-weight: 600; }
.people-list .muted { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.people-list > li.muted { padding: 9px 11px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 10px; }
.kv dt { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--atb-grau); padding-top: 2px; }
.kv dd { margin: 0; }
.secret { font-size: 1.6rem; letter-spacing: .15em; background: var(--atb-gelb-blass); border: 1px dashed var(--atb-gelb-rand); padding: .75rem 1rem; display: inline-block; }

/* ---------- 8. Tables (prototype style) ---------- */
/* position: relative – absolutely positioned content (sr-only labels) stays inside the scroll area; as "static" those labels
   escaped it and widened the whole page (UAT 07.10.2026: page scroll bar at the very bottom of the month) */
.table-wrap { position: relative; overflow-x: auto; margin: 0 0 14px; }
.table-wrap:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; vertical-align: top; }
thead th, tfoot th { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; padding: 7px 6px; vertical-align: bottom; }
thead th { border-bottom: 2px solid var(--atb-schwarz); }
tfoot th { border-top: 2px solid var(--atb-schwarz); font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-transform: none; letter-spacing: 0; font-size: 13px; }
td { border-bottom: 1px solid var(--atb-linie); padding: 6px; }
td .actions, td form.actions { margin: 0; }
td input[type=text], td input[type=number] { min-height: 36px; padding: 6px 8px; }

/* ---------- 9. Time recording: control bar, totals ---------- */
.steuerung { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 calc(-1 * var(--atb-pad)) 0; padding: 12px var(--atb-pad); border-bottom: 1px solid var(--atb-linie); }
.time-head { display: flex; align-items: center; gap: 10px; margin: 0; }
.time-head h1 { margin: 0; font-size: 18px; min-width: 9.5em; text-align: center; }
.nav-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 20px; line-height: 1; text-decoration: none; color: var(--atb-schwarz); border: 1px solid var(--atb-feldrand); border-radius: var(--atb-radius); background: #fff; }
.nav-button:hover { background: var(--atb-schwarz); color: #fff; border-color: var(--atb-schwarz); }
.nav-button.disabled { visibility: hidden; }
.month-pick { display: flex; align-items: center; gap: 8px; margin: 0; }
.month-pick select { width: auto; min-width: 11em; font-size: 14px; }
.month-pick button { min-height: 42px; }
.wer-zeile { margin: 12px 0 0; }
.steuerung + .band, .steuerung + .month-status { margin-top: 0; }

.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--atb-linie); border: 0; border-top: 3px solid var(--atb-schwarz); padding: 0; margin: 14px 0; }
.totals > div { display: flex; flex-direction: column; background: #fff; padding: 11px 13px; }
.totals > div > .muted { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--atb-grau); }
.totals strong { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 600; margin-top: 3px; white-space: nowrap; }
.totals strong.negative { color: var(--atb-rot); }

/* ---------- 10. Month status band (P5) ---------- */
.month-status { margin: 0 calc(-1 * var(--atb-pad)) 14px; padding: 13px var(--atb-pad); border: 0; border-bottom: 1px solid var(--atb-linie); border-left: 4px solid transparent; font-size: 13px; line-height: 1.55; }
.month-status.status-open.has-blockers { background: var(--atb-gelb-blass); border-left-color: var(--atb-gelb-rand); }
.month-status.status-open.ready { background: var(--atb-gruen-blass); border-left-color: var(--atb-gruen); }
.month-status.status-submitted, .month-status.status-lead_approved { background: var(--atb-feld); border-left-color: var(--atb-gelb-rand); }
.month-status.status-final_confirmed { background: var(--atb-feld); border-left-color: var(--atb-gruen-dunkel); }
.month-status-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; }
.month-status-head .badge.state { font-size: 12px; background: #fff; }
.month-status h2 { border: 0; margin: 10px 0 4px; padding: 0; }
.month-status ul { margin: 4px 0; padding-left: 18px; }
.month-status .errors { background: transparent; border: 0; padding: 0; margin: 8px 0 0; }
.month-status .errors div { color: var(--atb-schwarz); }
.month-status .errors div:not(:first-child)::before { content: "– "; color: var(--atb-rot); }
.month-status .actions { margin-top: 10px; }
.month-status .actions button { min-height: 44px; padding: 11px 18px; font-size: 14px; }
.history summary { cursor: pointer; margin-top: 8px; font-size: 12px; color: var(--atb-grau); }
.history ul { font-size: 12px; color: var(--atb-grau); }

/* ---------- 11. Month: phone day list, PC table ---------- */
.day-list { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--atb-linie); border-bottom: 0; }
.day-list li { margin: 0; border-bottom: 1px solid var(--atb-linie); }
.day-list a { display: grid; grid-template-columns: 5.2rem 1fr; gap: 2px 10px; min-height: 48px; padding: 9px 11px 9px 8px; color: inherit; text-decoration: none; border-left: 4px solid transparent; background: #fff; }
.day-list a:hover { background: #FAFAF8; }
.day-list .day-date { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.day-list .day-info .badge { margin-bottom: 2px; }
.day-list .day-numbers { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--atb-grau); }
.day-list .day-numbers .negative { color: var(--atb-rot); }
.day-list .issue { display: block; color: var(--atb-rot); font-size: 12.5px; }
.day-list .status-complete a { border-left-color: var(--atb-gruen); }
.day-list .status-incomplete a { border-left-color: var(--atb-rot); }
.day-list .status-no_work_time_model a { border-left-color: var(--atb-gelb-rand); }
.day-list .status-not_required a, .day-list .status-future a, .day-list .status-not_employed a { background: var(--atb-feld); color: var(--atb-grau); }
.day-list .today a { box-shadow: inset 0 0 0 2px var(--atb-gruen-dunkel); }
.day-list .today .day-date::after { content: " · heute"; font-family: var(--font-text); font-weight: 600; color: var(--atb-gruen-text); font-size: 11px; }

.desktop-only { display: none; }
/* Reference breakpoint (indexF2.html): phone day view up to 760px, the month table from 761px (tablet and PC). */
@media (min-width: 761px) { .desktop-only { display: block; } .mobile-only { display: none; } }
.final-days { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--atb-linie); }
.final-days li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 2px 10px; padding: 9px 11px; border-bottom: 1px solid var(--atb-linie); font-size: 13px; }
.final-days li:last-child { border-bottom: 0; }
.final-days .holiday-row { background: var(--atb-feld); }
.final-days .day-date { font-family: var(--font-mono); font-weight: 600; }
.final-days .day-numbers { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--atb-grau); }

/* ---------- 12. Day view ---------- */
.tagnavi { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 calc(-1 * var(--atb-pad)) 0; padding: 10px var(--atb-pad); border-bottom: 1px solid var(--atb-linie); }
.tagnavi h1 { margin: 0; font-size: 16px; text-align: center; flex: 1; }
.tagnavi .nav-button { width: 48px; height: 48px; }
.tag-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin: 10px 0 12px; font-size: 13px; }
.holiday-card { background: var(--atb-gruen-blass); border-left: 4px solid var(--atb-gruen); border-top: 0; padding: 9px 12px; font-weight: 600; color: var(--atb-gruen-auf-blass); }
.day-form { border-top: 0; padding-top: 0; }
.day-form fieldset.mode legend { margin-top: 4px; }
.day-form fieldset.mode { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.day-form fieldset.mode legend { flex: 0 0 100%; width: 100%; }
.day-form .choice { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1 1 150px; min-height: 48px; margin: 0; padding: 8px 10px; font-size: 14px; font-weight: 600; text-align: center; border: 1px solid var(--atb-feldrand); border-radius: var(--atb-radius); background: #fff; cursor: pointer; }
.day-form .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-form .choice:has(input:checked) { background: var(--atb-schwarz); color: #fff; border-color: var(--atb-schwarz); }
.day-form .choice:has(input:focus-visible) { outline: 3px solid var(--atb-schwarz); outline-offset: 2px; box-shadow: 0 0 0 5px var(--atb-gruen); }
.day-form .choice:hover { border-color: var(--atb-schwarz); }
.segment { border: 0; border-top: 1px solid var(--atb-linie); padding: 10px 0 4px; margin: 12px 0 0; min-width: 0; }
.segment > legend, .segment-title { display: block; float: left; width: 100%; padding: 0; margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--atb-schwarz); }
.segment-title { float: none; }
.segment > legend + * { clear: both; }
.segment-times { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.day-form select[id$="-start"], .day-form select[id$="-end"], #break-start, #break-end, #hours, #minutes { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 17px; text-align: center; text-align-last: center; }
.day-form select { min-height: 48px; }
.day-form fieldset.break { border-top: 1px solid var(--atb-linie); padding-top: 10px; margin-top: 14px; }
.day-form fieldset.break > legend { float: left; width: 100%; margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--atb-schwarz); }
.day-form fieldset.break .choice { flex: 1 1 120px; }
.day-form fieldset.break { display: flex; flex-wrap: wrap; gap: 6px; }
.day-form fieldset.break > legend { flex: 0 0 100%; }
.day-form fieldset.break .segment-times { flex: 0 0 100%; }
.aktionsleiste { position: sticky; bottom: 0; z-index: 5; margin: 16px calc(-1 * var(--atb-pad)) -26px; padding: 10px var(--atb-pad) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--atb-linie); box-shadow: 0 -2px 8px rgba(0, 0, 0, .06); }
.aktionsleiste button.big { margin: 0; }

/* ---------- 13. Login (guest) ---------- */
body.gast { background: var(--atb-login-bg); }
.atb-gast { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.atb-anmeldung { width: 100%; max-width: 380px; background: #fff; padding: 26px 24px 22px; border-radius: 12px; border: 1px solid #DADDD4; box-shadow: 0 8px 28px rgba(20, 30, 20, .10); }
.atb-anmeldung .atb-logo-gross { display: block; height: 52px; width: auto; margin: 0 auto 18px; }
.atb-anmeldung h1 { font-size: 16px; text-align: center; margin: 0 0 6px; }
.atb-anmeldung label { margin-top: 12px; }
.atb-anmeldung button[type=submit] { width: 100%; min-height: 48px; font-size: 15px; margin-top: 16px; }
.atb-anmeldung .muted { font-size: 12.5px; line-height: 1.6; margin-top: 12px; }
.atb-anmeldung .band { margin: 0 0 12px; border-radius: 0; }

/* ---------- 14. Responsive ---------- */
@media screen and (max-width: 760px) {
    :root { --atb-pad: 14px; }
    body { font-size: 15px; }
    .atb-blatt { margin: 0; box-shadow: none; min-height: 100vh; }
    .atb-kopf { padding: 10px var(--atb-pad); gap: 10px; }
    .atb-logo img { height: 36px; }
    .atb-wer { gap: 8px; }
    .atb-reiter { padding: 0 6px; }
    .atb-reiter a { padding: 11px 10px 8px; font-size: 13px; }
    .atb-unterreiter { padding: 0 6px; overflow-x: auto; flex-wrap: nowrap; }
    .atb-unterreiter a { white-space: nowrap; }
    .atb-inhalt { padding: 16px var(--atb-pad) 24px; }
    .atb-inhalt > .band:first-child { margin-top: -16px; }
    .atb-inhalt > .steuerung:first-child, .atb-inhalt > .tagnavi:first-child { margin-top: -16px; }
    .time-head h1 { min-width: 0; flex: 1; }
    .month-pick { flex: 1 1 100%; }
    .month-pick select { flex: 1; min-width: 0; }
    .totals { grid-template-columns: repeat(2, 1fr); }
    .totals strong { font-size: 19px; }
    .actions input[type=text] { min-width: 0; }
    .atb-gast { padding: 16px; align-items: flex-start; }
    .atb-anmeldung { box-shadow: 0 16px 40px rgba(0, 0, 0, .18); margin-top: 6vh; }
    .aktionsleiste { margin-bottom: -24px; }
}
@media screen and (max-width: 420px) {
    .atb-wer .atb-rollen { display: block; font-size: 11px; }
}

/* ---------- 15. Print (A4 month report) ---------- */
@media print {
    @page { size: A4 portrait; margin: 8mm; }
    body { background: #fff; font-size: 11px; }
    .atb-blatt { box-shadow: none; margin: 0; max-width: none; }
    .atb-kopf { padding: 2px 0 4px; }
    .atb-logo img { height: 26px; }
    .atb-reiter, .atb-unterreiter, .abmelden, .skip-link, .month-pick, .nav-button, .actions, .history, .aktionsleiste, .day-form, .band-ok { display: none !important; }
    .atb-inhalt { padding: 0; }
    .steuerung { margin: 0; padding: 4px 0; border: 0; }
    .month-status { margin: 0 0 4px; padding: 4px 0; border: 0; background: none !important; }
    .desktop-only { display: block !important; }
    .mobile-only { display: none !important; }
    .month-table { font-size: 10px; }
    .month-table td, .month-table th { padding: 1px 3px; }
    .totals { margin: 4px 0; }
    .totals > div { padding: 3px 6px; }
    .totals strong { font-size: 12px; }
    a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- 16. Components (P5.1B) ---------- */
.seitenkopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 0 0 14px; }
.seitenkopf h1 { margin: 0; }
.seitenkopf-aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feld-fehler { color: var(--atb-rot); font-size: 12.5px; font-weight: 600; margin: 4px 0 0; }
input[aria-invalid=true], select[aria-invalid=true] { border: 2px solid var(--atb-rot); }
.schnellzugriff { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0 0 16px; }
.schnellzugriff .button { width: 100%; min-height: 52px; font-size: 15px; justify-content: space-between; }
.schnellzugriff .button::after { content: "›"; font-size: 18px; }
.rollen { margin: 0 0 14px; }
.zurueck { margin: -4px 0 8px; font-size: 13px; }
.zurueck a { text-decoration: none; }
.zurueck a:hover { text-decoration: underline; }
.liste > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 11px; font-size: 14px; }
.liste > li form { margin: 0; }
.rollenwahl { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.rollenwahl legend { flex: 0 0 100%; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 8px 12px; border: 1px solid var(--atb-feldrand); border-radius: var(--atb-radius); background: #fff; cursor: pointer; font-weight: 600; }
.chip:has(input:checked) { background: var(--atb-gruen-blass); border-color: var(--atb-gruen-dunkel); color: var(--atb-gruen-auf-blass); }
tr.inaktiv td { color: var(--atb-grau); background: #FAFAF8; }
.kv .secret { margin: 0; }
.formreihe + .muted { margin-top: 6px; }
.atb-inhalt > .steuerung:first-child, .atb-inhalt > .tagnavi:first-child { margin-top: -18px; }
.band + .steuerung, .band + .tagnavi { margin-top: -16px; }
@media screen and (max-width: 760px) {
    .atb-inhalt > .steuerung:first-child, .atb-inhalt > .tagnavi:first-child { margin-top: -16px; }
}
@media print {
    .atb-inhalt > .steuerung:first-child, .band + .steuerung { margin-top: 0; }
}
td input[type=number] { width: 96px; flex: 0 0 96px; }
.audit-table { font-size: 12.5px; }
.audit-table td { white-space: nowrap; }
.audit-table td.werte { white-space: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--atb-grau); word-break: break-word; min-width: 180px; }
.users-table td:first-child a, .sites-table td:first-child a { font-weight: 600; }
.month-status .titel { display: block; font-weight: 600; font-size: 14px; margin: 8px 0 2px; }
.steuerung .wer-zeile { margin: 0; flex: 1 1 100%; }
@media (min-width: 64rem) { .steuerung .wer-zeile { flex: 0 1 auto; margin-left: auto; } }
.bestaetigen .warnbox ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.bestaetigen .button.big { margin-top: 10px; }
.errors p { margin: 0; }
.tag-links a { text-decoration: none; }
.tag-links a:hover { text-decoration: underline; }
@media (min-width: 64rem) {
    .day-form { max-width: 760px; }
}

/* ---------- 17. Gate B7 (parity / accessibility review) ---------- */
/* Active tab: green brand bar plus a darker 1px base line (≥ 3:1 against white, WCAG 1.4.11). */
.atb-reiter a.aktiv, .atb-unterreiter a.aktiv { box-shadow: inset 0 -1px 0 var(--atb-gruen-dunkel); }
.atb-unterreiter a:focus-visible { outline-offset: -3px; box-shadow: none; }
/* Notch/camera cut-outs in landscape (viewport-fit=cover). */
.atb-kopf, .atb-reiter, .atb-unterreiter, .atb-inhalt { padding-left: max(var(--atb-pad), env(safe-area-inset-left)); padding-right: max(var(--atb-pad), env(safe-area-inset-right)); }
/* Fields must not disappear behind the sticky save bar when tabbing. */
.day-form select, .day-form input, .day-form button { scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom)); }
/* Chosen segment also without colour and in Windows high-contrast mode. */
.day-form .choice:has(input:checked)::before { content: "✓"; }
@media (forced-colors: active) {
    .day-form .choice:has(input:checked) { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
}
/* Browsers without :has(): show the native radio so the chosen option stays visible. */
@supports not selector(:has(*)) {
    .day-form .choice input { position: static; opacity: 1; width: 20px; height: 20px; }
}
/* Desktop: the save bar stays inside the form width (no half-width shadow edge). */
@media (min-width: 64rem) {
    .aktionsleiste { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; box-shadow: none; }
}
/* Credential / key-value lists never force horizontal scrolling. */
.kv { grid-template-columns: max-content minmax(0, 1fr); }
.kv dd { overflow-wrap: anywhere; }
.secret { max-width: 100%; overflow-wrap: anywhere; }
/* Spacing between the last field and a form's submit button. */
.formreihe + p, form.card > p:last-child, form > p:last-child { margin-top: 14px; }
.actions label { margin: 0; flex: 0 0 100%; }
/* Locked month hint in the day view (grey band style). */
.warnbox.gesperrt { background: var(--atb-feld); border-left-color: var(--atb-feldrand); }
.month-status.status-submitted, .month-status.status-lead_approved { border-left-color: var(--atb-feldrand); }
.final-days .status-not_required { background: var(--atb-feld); }
/* Totals: white gaps instead of grey holes when the last row is not full. */
.totals { background: #fff; gap: 0; }
.totals > div { box-shadow: 1px 0 0 var(--atb-linie), 0 1px 0 var(--atb-linie); }
.day-list .today .day-date::after { content: "heute"; display: block; }
.audit-table td.werte { min-width: 280px; width: 30%; overflow-wrap: anywhere; word-break: normal; }
.users-table td, .sites-table td, .soiling-types-table td, .site-history td { vertical-align: middle; }
.tag-links span { margin-left: auto; }
@media screen and (max-width: 760px) {
    .atb-kopf { flex-wrap: nowrap; }
    .atb-wer, .atb-wer > div { min-width: 0; }
    .atb-wer b, .atb-wer .atb-rollen { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .abmelden, .atb-unterreiter a { min-height: 44px; }
    .tag-links a, .zurueck a, .history summary { display: inline-flex; align-items: center; min-height: 44px; }
    .kv { grid-template-columns: 1fr; }
    .kv dd { margin-bottom: 8px; }
    .secret { font-size: 1.25rem; letter-spacing: .08em; }
    /* Admin tables as cards on phones (no cut-off columns). */
    .users-table thead, .soiling-types-table thead, .sites-table thead { display: none; }
    .users-table tr, .soiling-types-table tr, .sites-table tr { display: block; border-bottom: 1px solid var(--atb-linie); padding: 6px 0; }
    .users-table td, .soiling-types-table td, .sites-table td { display: block; border: 0; padding: 3px 0; }
    .soiling-types-table .actions input[type=text] { flex: 1 1 100%; }
}

/* ---------- 17b. Work-time models and time profile (PRE7) ---------- */
.wtm-table .wtm-pause { display: block; font-size: 11px; color: var(--atb-grau); white-space: nowrap; }
.wtm-table tbody th { padding: 6px; border-bottom: 1px solid var(--atb-linie); vertical-align: top; text-align: left; }
.wtm-table tr.inaktiv th { color: var(--atb-grau); background: #FAFAF8; }
.wtm-day.wtm-feiertag > div:first-of-type { grid-column: 3; }
.wtm-table .wtm-assigned { display: block; font-weight: 400; }
.wtm-days { display: grid; gap: 8px; margin: 8px 0; }
.wtm-day { display: grid; grid-template-columns: 7.5rem repeat(3, minmax(0, 8rem)); gap: 8px; align-items: end; }
.wtm-day .wtm-daylabel { font-weight: 600; padding-bottom: 12px; }
.wtm-day label { margin: 0; }
.wtm-day input { width: 100%; }
@media screen and (max-width: 760px) {
    .wtm-day { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wtm-day .wtm-daylabel { grid-column: 1 / -1; padding-bottom: 0; }
    .wtm-day.wtm-feiertag > div:first-of-type { grid-column: 2; }
}
@media screen and (max-width: 1023px) {
    .wtm-table thead { display: none; }
    .wtm-table tr { display: block; border-bottom: 1px solid var(--atb-linie); padding: 6px 0; }
    .wtm-table th, .wtm-table td { display: block; border: 0; padding: 2px 0; text-align: left; }
    .wtm-table td[data-label]::before { content: attr(data-label) ": "; color: var(--atb-grau); font-family: var(--font-text); }
}

/* ---------- 18. Planning master data (P6A) ---------- */
.teams-table td, .vehicles-table td, .roster-table td { vertical-align: middle; }
.vehicles-table .actions select { width: auto; min-width: 12em; }
.vehicles-table .actions input[type=text] { min-width: 120px; flex: 1 1 120px; }
.vehicles-table .actions { align-items: flex-end; }
.vehicles-table .feld { display: flex; flex-direction: column; gap: 2px; flex: 1 1 140px; min-width: 0; }
.vehicles-table .feld label { margin: 0; }
.vehicles-table .feld input[type=text], .vehicles-table .feld select { flex: 0 0 auto; width: 100%; min-width: 0; }
@media screen and (max-width: 760px) {
    .teams-table thead, .vehicles-table thead { display: none; }
    .teams-table tr, .vehicles-table tr { display: block; border-bottom: 1px solid var(--atb-linie); padding: 6px 0; }
    .teams-table td, .vehicles-table td { display: block; border: 0; padding: 3px 0; }
}

/* ---------- 19. Einteilung / planning board (P6A) – prototype .eingrid, no JS ---------- */
.einteilung-steuerung h1 .kwjahr { color: var(--atb-grau); font-weight: 400; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 12px 0; padding: 0; font-size: 12px; color: var(--atb-grau); }
.legende li { display: inline-flex; align-items: center; gap: 6px; }
.legende .sw { width: 14px; height: 14px; border: 1px solid var(--atb-linie); display: inline-block; }
.legende .sw-bestaetigt { background: var(--atb-gruen-blass); border-color: var(--atb-gruen-dunkel); }
.legende .sw-unsicher { background: var(--atb-gelb-blass); border-color: var(--atb-gelb-rand); }
.legende .sw-leer { background: #fff; border-style: dashed; }
.legende .sw-feiertag { background: var(--atb-rot); border-color: var(--atb-rot); }
.legende .sw-urlaub { background: #fff; border: 1px dotted var(--atb-feldrand); }
.legende-text { font-weight: 700; color: var(--atb-schwarz); }
table.eingrid { border-collapse: separate; border-spacing: 0; min-width: 900px; font-size: 13px; }
.eingrid thead th { background: var(--atb-feld); border-bottom: 2px solid var(--atb-schwarz); text-transform: none; letter-spacing: 0; font-size: 12px; vertical-align: top; }
.eingrid th.einrowhead { width: 210px; min-width: 190px; background: #FAFAF8; border-right: 1px solid var(--atb-linie); border-bottom: 1px solid var(--atb-linie); text-align: left; vertical-align: top; }
.eingrid thead th.einrowhead { background: var(--atb-feld); border-bottom: 2px solid var(--atb-schwarz); }
.eingrid .kwcol { text-align: left; border-right: 1px solid var(--atb-linie); }
.eingrid .kwcol .kw { font-family: var(--font-mono); font-weight: 600; font-size: 13px; }
.eingrid .kwcol .kwjahr { color: var(--atb-grau); font-weight: 400; }
.eingrid .kwsub { display: block; font-weight: 400; color: var(--atb-grau); font-size: 11px; font-variant-numeric: tabular-nums; }
.eingrid .kwcol.heute { background: var(--atb-gruen-blass); color: var(--atb-gruen-auf-blass); box-shadow: inset 0 3px 0 var(--atb-gruen); }
.eingrid .kwcol.vergangen { background: #F4F4F1; }
.eintage { display: flex; gap: 2px; margin-top: 4px; }
.eintag { flex: 1; text-align: center; font-size: 10px; font-weight: 600; color: var(--atb-grau); border: 1px solid var(--atb-linie); background: #fff; padding: 1px 0; }
.eintag.ft { background: var(--atb-rot); color: #fff; border-color: var(--atb-rot); }
.eingrid .teamname { display: block; font-weight: 600; font-size: 13px; }
.eingrid .teamleute { display: block; font-weight: 400; font-size: 12px; color: var(--atb-grau); margin-top: 2px; }
.eingrid .fahrzeug { display: inline-block; margin-top: 4px; padding: 1px 6px; border: 1px solid var(--atb-feldrand); font-family: var(--font-mono); font-size: 11px; font-weight: 400; background: #fff; }
td.einzelle { padding: 4px; border-right: 1px solid var(--atb-linie); border-bottom: 1px solid var(--atb-linie); vertical-align: top; min-width: 130px; }
td.einzelle.heute { background: #FBFEF2; }
td.einzelle.vergangen { background: #FAFAF8; }
a.einzelle-link { display: block; min-height: 44px; margin: -4px; padding: 4px; color: inherit; text-decoration: none; }
a.einzelle-link:hover { background: var(--atb-feld); }
.einchip { display: block; margin: 0 0 3px; padding: 3px 6px; font-size: 12px; font-weight: 600; line-height: 1.3; border: 1px solid var(--atb-linie); background: #fff; }
.einchip.bestaetigt { background: var(--atb-gruen-blass); border-color: var(--atb-gruen-dunkel); color: var(--atb-gruen-auf-blass); }
.einchip.unsicher { background: var(--atb-gelb-blass); border-color: var(--atb-gelb-rand); color: var(--atb-gelb-text); }
.einchip.leer { border-style: dashed; color: var(--atb-grau); font-weight: 400; text-align: center; }
.einchip .flag { margin-left: 4px; font-weight: 700; }
/* P7-8: approved leave (read only) – dotted white chip with the text marker "U", distinct from site chips and from the
   grey cell hover; never colour only (print, forced colours) */
.einchip.urlaub { background: #fff; border: 1px dotted var(--atb-feldrand); color: var(--atb-grau); font-weight: 400; }
.einchip.urlaub .flag { margin: 0 2px 0 0; color: var(--atb-schwarz); }
.einbesetzung, .einfahrzeug { display: block; font-size: 11px; color: var(--atb-grau); margin-top: 2px; }
.einbesetzung.ausnahme, .einfahrzeug.ausnahme { color: var(--atb-gelb-text); font-style: italic; }
.einkorr { display: block; font-size: 11px; font-weight: 600; color: var(--atb-rot); margin-top: 2px; }
/* P6B: view toggle "Nach Team | Nach Baustelle" (segmented links, no JS), rename note, small marks */
.ansichtwahl { display: inline-flex; border: 1px solid var(--atb-feldrand); border-radius: var(--atb-radius); }
.ansichtwahl a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--atb-schwarz); text-decoration: none; background: #fff; }
.ansichtwahl a + a { border-left: 1px solid var(--atb-feldrand); }
.ansichtwahl a:hover { background: var(--atb-feld); }
.ansichtwahl a.aktiv { background: var(--atb-schwarz); color: #fff; }
.ansichtwahl a.aktiv::before { content: "✓ "; }
@media (forced-colors: active) { .ansichtwahl a.aktiv { forced-color-adjust: none; background: Highlight; color: HighlightText; } }
.eingrid th.einrowhead { padding: 6px 8px; }
@media screen and (min-width: 761px) and (max-width: 1023px) {
    table.eingrid { min-width: 0; }
    .eingrid th.einrowhead { width: 150px; min-width: 0; }
    td.einzelle { min-width: 0; }
}
/* D-53: group head "Subunternehmer" above the subcontractor rows (same cells as team rows) */
.eingrid tr.eingruppe th { padding: 6px 8px; background: var(--atb-feld); border-top: 2px solid var(--atb-schwarz); border-bottom: 1px solid var(--atb-linie); text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.eingrid .einumbenannt { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--atb-gelb-text); }
.einchip .einklein { font-weight: 400; font-size: 11px; }
/* P6B-6: Neue Projekte below the board */
.neue-projekte { margin-top: 28px; }
.neue-projekte h3 { margin-top: 0; }
.projekt-aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.projekt-woche { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.projekt-woche .feld { display: flex; flex-direction: column; gap: 2px; }
.projekt-woche .feld label { margin: 0; }
.projekt-woche select { width: auto; min-width: 6em; }
.projekt-woche input[type=number] { width: 5em; min-height: 44px; }
.projekt-woche input.jahr { width: 6.5em; }
.projekt-woche .feld input, .projekt-woche .feld select { flex: 0 0 auto; }
@media screen and (max-width: 760px) {
    .projekte-table thead { display: none; }
    .projekte-table tr { display: block; border-bottom: 1px solid var(--atb-linie); padding: 6px 0; }
    .projekte-table td { display: block; border: 0; padding: 3px 0; }
}
/* D-55: printing the board page keeps the list (values as text), only the forms and buttons are left out */
@media print { .neue-projekte .projekt-aendern, .neue-projekte .projekt-neu, .neue-projekte p.muted.small { display: none !important; } .neue-projekte, .neue-projekte * { color: #000 !important; } }
.eingrid tr.ausgeblendet th, .eingrid tr.ausgeblendet td { background: #FAFAF8; color: var(--atb-grau); }
.wahl { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.wahl legend { flex: 0 0 100%; width: 100%; }
.wahl .choice { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1 1 150px; min-height: 44px; margin: 0; padding: 8px 10px; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--atb-schwarz); border: 1px solid var(--atb-feldrand); border-radius: var(--atb-radius); background: #fff; cursor: pointer; }
.wahl .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl .choice:has(input:checked) { background: var(--atb-schwarz); color: #fff; border-color: var(--atb-schwarz); }
.wahl .choice:has(input:checked)::before { content: "✓"; }
.wahl .choice:has(input:focus-visible) { outline: 3px solid var(--atb-schwarz); outline-offset: 2px; box-shadow: 0 0 0 5px var(--atb-gruen); }
@supports not selector(:has(*)) { .wahl .choice input { position: static; opacity: 1; width: 20px; height: 20px; } }
@media (forced-colors: active) { .wahl .choice:has(input:checked) { forced-color-adjust: none; background: Highlight; color: HighlightText; } }
.baustellenwahl .chip { flex: 1 1 220px; }
@media screen and (max-width: 760px) {
    table.eingrid { min-width: 0; }
    .eingrid thead { display: none; }
    .eingrid, .eingrid tbody, .eingrid tr, .eingrid th, .eingrid td { display: block; width: auto; }
    .eingrid tr { border: 1px solid var(--atb-linie); margin: 0 0 12px; }
    .eingrid th.einrowhead { width: auto; border-right: 0; }
    td.einzelle { display: grid; grid-template-columns: 5.5rem 1fr; gap: 6px; border-right: 0; min-width: 0; }
    td.einzelle::before { content: attr(data-label); font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--atb-grau); padding-top: 3px; }
    a.einzelle-link { margin: 0; }
}
@media print {
    .einteilung-steuerung .seitenkopf-aktionen, .einteilung-steuerung .nav-button, .legende { display: none !important; }
    table.eingrid { min-width: 0; table-layout: fixed; font-size: 9px; }
    .eingrid thead { display: table-header-group; }
    .eingrid tr { break-inside: avoid; }
    .einchip { font-size: 8.5px; padding: 1px 4px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .eintag.ft { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .einbesetzung, .einfahrzeug, .einkorr { font-size: 7.5px; }
    /* D-52: printing the board page directly – team, people, sites, vehicle, week and hints in black (#000), never grey;
       the holiday marker keeps white on red. Screen view unchanged. */
    .einteilung-steuerung, .einteilung-steuerung *, table.eingrid, table.eingrid * { color: #000 !important; }
    table.eingrid .eintag.ft { color: #fff !important; }
}

/* ---------- 19. Urlaub (P7-7): badges, tab marker, lists ---------- */
.badge.fehler { background: var(--atb-rot-blass); border-color: var(--atb-rot); color: var(--atb-rot); }
.badge.grau { background: var(--atb-feld); border-color: var(--atb-linie); color: var(--atb-grau); }
/* D-26: released by a Bauleiter, waiting for the GF – between "offen" (yellow) and "ok" (green); long status texts in the
   leave lists are written as sentences (no uppercase), may wrap on phones */
.badge.freigegeben { background: var(--atb-gelb-blass); border-color: var(--atb-gruen-dunkel); color: var(--atb-gelb-text); }
.leave-table .badge { text-transform: none; letter-spacing: 0; white-space: normal; }
/* UR-05 marker at the "Urlaub" tab: dot = own decision not yet acknowledged; number = open requests of others (Büro/GF). */
.reiter-punkt, .reiter-frist { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--atb-rot); } /* reiter-frist: D-47 Vormonat überfällig */
.reiter-marke { display: inline-block; min-width: 20px; margin-left: 6px; padding: 1px 6px; border-radius: 10px; font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.5; text-align: center; background: var(--atb-schwarz); color: #fff; }
@media (forced-colors: active) {
    .reiter-punkt { forced-color-adjust: none; background: Mark; border: 1px solid CanvasText; }
    .reiter-marke { forced-color-adjust: none; background: CanvasText; color: Canvas; }
}
.urlaub-hinweis p { margin: 0 0 4px; }
.urlaub-hinweis .actions { margin-top: 6px; }
.leave-table td { vertical-align: middle; }
.leave-table .leave-grund { display: block; margin-top: 2px; color: var(--atb-grau); font-size: 13px; overflow-wrap: anywhere; }
.leave-table .actions { margin: 0; }
.leave-entscheidung input[type=text] { min-width: 160px; flex: 1 1 160px; }
.jahr-wahl { margin: 0 0 8px; }
.jahr-wahl .jahr-anzeige { min-width: 4.5em; text-align: center; font-family: var(--font-mono); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.seiten { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
@media screen and (max-width: 760px) {
    /* lists as cards on phones (no cut-off columns) */
    .leave-table thead { display: none; }
    .leave-table tr { display: block; border-bottom: 1px solid var(--atb-linie); padding: 8px 0; }
    .leave-table td { display: block; border: 0; padding: 3px 0; }
    .leave-table td[data-label]::before { content: attr(data-label) ": "; color: var(--atb-grau); font-size: 12px; }
    .leave-table td[data-label="Aktion"]::before, .leave-table td[data-label="Entscheidung"]::before { content: none; }
    .leave-table button, .leave-table .button, .seiten .button, .urlaub-hinweis button { min-height: 44px; }
    .leave-entscheidung form { width: 100%; }
}
@media print {
    .urlaub-antrag, .leave-entscheidung, .urlaub-hinweis form, .seiten, .jahr-wahl .nav-button, .reiter-punkt, .reiter-marke { display: none !important; }
}

/* ---------- P8 Monatsberichte (Verwaltung) ---------- */
.badge.bereit { background: var(--atb-gruen-blass); border-color: var(--atb-gruen-dunkel); color: var(--atb-gruen-auf-blass); }
.badge.fehler { background: var(--atb-rot-blass); border-color: var(--atb-rot); color: var(--atb-rot); }
.badge.gesperrt { background: var(--atb-feld); }
.bericht-tabelle .badge { text-transform: none; letter-spacing: 0; white-space: normal; }
.bericht-tabelle td { vertical-align: middle; }
.bericht-aktionen { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.bericht-versand { margin: 0 0 16px; }
.bericht-pruefwert { font-family: var(--font-mono); font-size: 11px; overflow-wrap: anywhere; }
@media screen and (max-width: 760px) {
    .bericht-tabelle thead { display: none; }
    .bericht-tabelle tr { display: block; border-bottom: 1px solid var(--atb-linie); padding: 8px 0; }
    .bericht-tabelle td { display: block; border: 0; padding: 3px 0; }
    .bericht-tabelle td[data-label]::before { content: attr(data-label) ": "; color: var(--atb-grau); font-size: 12px; }
    .bericht-tabelle a, .bericht-tabelle button { display: inline-block; min-height: 44px; line-height: 44px; }
}
@media print {
    .bericht-versand, .bericht-aktionen { display: none !important; }
}

/* ---------- 20. UI parity with the reference (indexF2.html): Zeiterfassung ---------- */
/* Control bar: Mitarbeiter + Monat (prototype .steuerung) */
.zeit-steuerung { gap: 10px 18px; }
.zeit-steuerung .mfeld { display: flex; align-items: center; gap: 8px; margin: 0; }
.zeit-steuerung .mfeld label, .zeit-steuerung .feldname { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--atb-grau); }
.zeit-steuerung .feldwert { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 10px; font-size: 14px; background: var(--atb-feld); border: 1px solid var(--atb-linie); border-radius: var(--atb-radius); color: var(--atb-schwarz); }
.zeit-steuerung .month-pick select { width: auto; min-width: 10em; min-height: 38px; padding: 6px 9px; font-size: 14px; }
.zeit-steuerung .month-pick button { min-height: 38px; padding: 6px 12px; font-size: 12px; }
.zeit-steuerung .monatpfeile { display: flex; gap: 6px; }
.zeit-steuerung .nav-button { width: 38px; height: 38px; font-size: 17px; }
.zeit-steuerung .steuerung-links { margin-left: auto; font-size: 13px; }
.tag-steuerung { justify-content: space-between; font-size: 13px; }
.tag-steuerung .wer-zeile { margin: 0; flex: 0 1 auto; }
.zurueck-link { text-decoration: none; font-weight: 600; }
.zurueck-link:hover { text-decoration: underline; }

/* Status band (prototype .status: offen = yellow, bereit = green, gesperrt = grey; no side bar) */
.month-status.status-band { margin: 0 calc(-1 * var(--atb-pad)) 0; padding: 13px var(--atb-pad); border-left: 0; border-bottom: 1px solid var(--atb-linie); }
.month-status.status-band.band-offen { background: var(--atb-gelb-blass); }
.month-status.status-band.band-bereit { background: var(--atb-gruen-blass); }
.month-status.status-band.band-gesperrt { background: var(--atb-feld); }
.month-status .month-status-head { margin-bottom: 4px; }
.month-status .titel { font-size: 14px; margin: 6px 0 2px; }
.sprung-hinweis { margin: 2px 0 6px; font-size: 13px; }
.sprungliste { list-style: none; margin: 4px 0 0; padding: 0; }
.sprungliste li { margin: 0 0 4px; }
.sprungliste a { display: block; padding: 9px 11px; background: #fff; border: 1px solid var(--atb-linie); color: var(--atb-schwarz); text-decoration: none; font-size: 13.5px; line-height: 1.4; }
.sprungliste a:hover { border-color: var(--atb-schwarz); background: var(--atb-feld); }
.sprungliste .pfeilchen { float: right; color: var(--atb-grau); }
.sprungliste .weitere { font-size: 12px; color: var(--atb-grau); padding: 5px 2px; }
@media (min-width: 761px) { .sprungliste a.mobile-only { display: none; } }
@media (max-width: 760px) { .sprungliste a.desktop-only { display: none; } }
.month-status .actions { margin-top: 10px; }
.month-status .actions .button.senden, .month-status .actions button { min-height: 44px; padding: 11px 18px; font-size: 14px; }
.button.disabled { background: var(--atb-feld); border-color: var(--atb-linie); color: var(--atb-grau); cursor: not-allowed; }
.month-status form.oeffnen input[type=text] { width: auto; min-width: 180px; flex: 1 1 180px; min-height: 44px; }

/* Overtime box (prototype .ueberstunden-box) */
.ueberstunden-box { margin: 14px 0; padding: 11px 13px; background: var(--atb-gruen-blass); border-left: 4px solid var(--atb-gruen); font-size: 12.5px; line-height: 1.6; }
.ueberstunden-box .zeile2 { display: block; margin-top: 4px; color: var(--atb-grau); font-size: 11.5px; }
.ueberstunden-box .zeile2 a { font-size: 12.5px; font-weight: 600; }
.ueberstunden-box.leer { background: var(--atb-feld); border-left-color: var(--atb-linie); color: var(--atb-grau); }

/* Day view (prototype #tagesansicht) */
.tagesansicht { padding: 0 0 10px; }
.tag-seite { max-width: 560px; }
.tagesansicht .tagnavi { margin: 0 0 14px; padding: 10px 0; border-bottom: 1px solid var(--atb-linie); }
.tagesansicht .tagnavi .datum { flex: 1; margin: 0; padding: 0; border: 0; text-align: center; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.pfeil { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; font-size: 20px; line-height: 1; color: var(--atb-schwarz); text-decoration: none; background: #fff; border: 1px solid var(--atb-linie); border-radius: var(--atb-radius); }
.pfeil:hover { background: var(--atb-schwarz); color: #fff; border-color: var(--atb-schwarz); }
.pfeil.leer { visibility: hidden; }
.tag-hinweis { display: block; margin: 0 0 10px; padding: 8px 10px; font-size: 12.5px; line-height: 1.5; border-left: 3px solid var(--atb-feldrand); background: var(--atb-feld); color: var(--atb-schwarz); }
.tag-hinweis.gruen { background: var(--atb-gruen-blass); border-left-color: var(--atb-gruen); color: var(--atb-gruen-auf-blass); }
.tag-hinweis.rot { background: var(--atb-rot-blass); border-left-color: var(--atb-rot); color: #7A1F16; }
.tag-hinweis.gelb { background: var(--atb-gelb-blass); border-left-color: var(--atb-gelb-rand); color: var(--atb-gelb-text); }
.tag-hinweis .titel { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 2px; color: var(--atb-schwarz); }
.tag-hinweis.errors div + div { margin-top: 2px; }
.tagesansicht .holiday-card { font-weight: 600; }
.tagform { margin: 0; }
.tagform .segment { border: 0; margin: 0; padding: 0; min-width: 0; }
.tagform .segment + .segment { margin-top: 18px; padding-top: 10px; border-top: 1px dashed var(--atb-linie); }
.tagform .segment-titel { display: block; width: 100%; float: none; margin: 0 0 7px; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--atb-grau); }
.tagform .segment-titel .muted { font-size: 11px; }
.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.paar.verschmutzung { grid-template-columns: minmax(0, 1fr) 104px; }
.tf { margin: 0 0 10px; min-width: 0; }
.tf label, .tagform fieldset.kurzzeichen legend { margin: 0 0 4px; }
.tagform select { min-height: 46px; }
.tagform select.gross { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 17px; text-align: center; text-align-last: center; }
.tagform select.offen { border: 2px solid var(--atb-gruen-dunkel); }
.pausez { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 11px; padding: 9px 10px; border: 1px solid var(--atb-linie); border-radius: var(--atb-radius); }
.pausez .bez { font-size: 12px; color: var(--atb-grau); }
.pausez .wert { font-size: 15px; }
.pausez .art { font-size: 11px; color: var(--atb-grau); min-width: 4.5em; text-align: right; }
.pause-aendern { margin: -6px 0 12px; }
.pause-aendern > summary { display: inline-flex; align-items: center; min-height: 32px; font-size: 12.5px; color: var(--atb-gruen-text); text-decoration: underline; cursor: pointer; }
.pause-aendern .wahl { margin-top: 4px; }
.pause-aendern .wahl .choice { flex: 1 1 100px; min-height: 40px; font-size: 13px; }
.pause-aendern .paar { flex: 0 0 100%; margin-top: 6px; }
button.mehr { display: inline-flex; min-height: 36px; margin: 2px 0 10px; padding: 5px 0; background: none; border: 0; color: var(--atb-gruen-text); font-size: 13px; font-weight: 600; text-decoration: underline; }
button.mehr:hover { background: none; color: var(--atb-schwarz); }
.ergebnis { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 4px; padding: 12px 14px; background: var(--atb-gruen-blass); border-left: 4px solid var(--atb-gruen); }
.ergebnis .zahl { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 600; }
.ergebnis-zeile { margin: 0 0 12px; font-size: 11.5px; color: var(--atb-grau); }
.tagform fieldset.kurzzeichen { margin: 0 0 6px; }
.kzreihe { display: flex; gap: 5px; }
.kz { position: relative; display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 0; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--atb-schwarz); background: #fff; border: 1px solid var(--atb-linie); border-radius: var(--atb-radius); cursor: pointer; text-decoration: none; }
.kz input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kz:hover { border-color: var(--atb-schwarz); }
.kz:has(input:checked) { background: var(--atb-schwarz); color: #fff; border-color: var(--atb-schwarz); }
.kz:has(input:focus-visible) { outline: 3px solid var(--atb-schwarz); outline-offset: 2px; box-shadow: 0 0 0 5px var(--atb-gruen); }
.kz.gesperrt { color: var(--atb-grau); background: var(--atb-feld); cursor: default; }
a.kz.gesperrt { cursor: pointer; background: #fff; }
@supports not selector(:has(*)) { .kz input { position: static; opacity: 1; width: 16px; height: 16px; margin-right: 4px; } }
@media (forced-colors: active) { .kz:has(input:checked) { forced-color-adjust: none; background: Highlight; color: HighlightText; } }
.kz-text { margin: 5px 0 0; font-size: 12px; color: var(--atb-grau); }
.kz-text .badge { margin-left: 2px; }
.speichern { display: grid; gap: 8px; margin: 14px 0 0; }
button.weiter { width: 100%; min-height: 50px; padding: 15px; font-size: 15px; }
.speichern .secondary { width: 100%; }
.tagform > button.weiter { margin-top: 10px; }
.mfuss { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--atb-linie); }
.mfuss .b { font-size: 11px; color: var(--atb-grau); }
.mfuss .z { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 600; }
.mfuss .rechts { text-align: right; }
.mfuss .z.negative { color: var(--atb-rot); }
.mfuss .z.positiv { color: var(--atb-gruen-text); }
.final-lines { list-style: none; margin: 0 0 10px; padding: 0; border: 1px solid var(--atb-linie); }
.final-lines li { padding: 8px 10px; border-bottom: 1px solid var(--atb-linie); font-size: 13.5px; }
.final-lines li:last-child { border-bottom: 0; }
.monatsliste { margin: 14px 0 0; border-top: 1px solid var(--atb-linie); }
.monatsliste > summary { display: flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; cursor: pointer; }
.monatsliste .day-list, .monatsliste .final-days { margin-top: 4px; }
.day-list .zeiten { display: block; font-size: 12.5px; }
.day-list .gewaehlt a { box-shadow: inset 0 0 0 2px var(--atb-schwarz); }

/* PC month table (prototype table: compact rows, weekend/absence tints, totals tiles below) */
.zeittabelle { min-width: 900px; margin-top: 12px; font-size: 12.5px; }
.zeittabelle thead th { font-size: 9.5px; letter-spacing: .06em; padding: 7px 4px; line-height: 1.25; }
.zeittabelle thead th.r, .zeittabelle td.std { text-align: right; }
.zeittabelle td { padding: 4px 4px; height: 32px; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid var(--atb-linie); }
.zeittabelle td.tagnr { font-family: var(--font-mono); font-size: 12px; width: 92px; }
.zeittabelle td.tagnr a { color: var(--atb-schwarz); font-weight: 600; text-decoration: none; }
.zeittabelle td.tagnr a:hover { text-decoration: underline; }
.zeittabelle td.tagnr .ft { display: block; font-family: var(--font-text); font-size: 10px; color: var(--atb-gruen-text); line-height: 1.2; }
.zeittabelle td.zeit { font-family: var(--font-mono); font-variant-numeric: tabular-nums; width: 64px; }
.zeittabelle td.pause { color: var(--atb-grau); }
.zeittabelle td.std { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; width: 58px; }
.zeittabelle td.std.zahl { font-weight: 400; width: 46px; }
.zeittabelle td.kzzelle { width: 52px; font-weight: 600; text-align: center; }
.zeittabelle td.bv { white-space: normal; min-width: 140px; }
.zeittabelle td.akt { text-align: right; width: 1%; white-space: nowrap; }
.zeittabelle td.akt .issue { display: inline-block; margin-right: 6px; font-size: 11.5px; white-space: normal; max-width: 260px; vertical-align: middle; text-align: left; }
.zeittabelle .mini { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--atb-linie); background: #fff; color: var(--atb-grau); text-decoration: none; font-size: 15px; vertical-align: middle; }
.zeittabelle .mini:hover { background: var(--atb-schwarz); color: #fff; border-color: var(--atb-schwarz); }
.zeittabelle tr.we td { background: var(--atb-feld); }
.zeittabelle tr.abw td { background: var(--atb-gelb-blass); }
.zeittabelle tr.fehlt td.tagnr, .zeittabelle tr.fehlt td.tagnr a { color: var(--atb-rot); }
.zeittabelle tr.zukunft td { color: var(--atb-grau); }
.zeittabelle tr.today td { background: var(--atb-gruen-blass); }
.zeittabelle tr.today td.tagnr { box-shadow: inset 4px 0 0 var(--atb-gruen); }
.month-table.zeittabelle td:first-child .muted { font-family: var(--font-text); }
.summen.totals { margin: 0 0 6px; }
.totals > div.gut { background: var(--atb-gruen-blass); }
.totals strong.positiv { color: var(--atb-gruen-text); }
.summen-notiz { margin: 4px 0 0; }
.zeittabelle .issue { color: var(--atb-rot); }
/* UAT 07.10.2026: the hint wraps (a one-line hint made the last column ~350 px wide and pushed the table past the sheet) */
.zeittabelle td.akt .issue { white-space: normal; width: 12em; max-width: none; line-height: 1.25; }
/* From 1024 px the month table fits the sheet. Narrower desktop/tablet windows (e.g. with a browser side panel): the table
   scrolls in a box no higher than the window, so its horizontal scroll bar is always in view; head row, day column and the
   buttons of the edited day stay in place while scrolling (plain CSS, no script). */
@media screen and (min-width: 761px) and (max-width: 1023px) {
    .table-wrap.zeitwrap { max-height: calc(100vh - 80px); overflow: auto; }
    .zeitwrap .zeittabelle thead th { position: sticky; top: 0; z-index: 2; background: #fff; box-shadow: inset 0 -2px 0 var(--atb-schwarz); }
    .zeitwrap .zeittabelle thead th:first-child { left: 0; z-index: 3; }
    .zeitwrap td.tagnr { position: sticky; left: 0; z-index: 1; background: #fff; }
    .zeitwrap .zeilenaktionen { position: sticky; left: 0; max-width: calc(100vw - 96px); }
}
.month-status .sprungliste { padding: 0; }
@media (min-width: 761px) { .totals.desktop-only { display: grid; } }
.weitere-zeilen > summary { list-style: none; cursor: pointer; }
.weitere-zeilen > summary::-webkit-details-marker { display: none; }
.weitere-zeilen[open] > summary { color: var(--atb-grau); }
.weitere-zeilen > .segment { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--atb-linie); }
.weitere-zeilen > .segment + .segment { margin-top: 18px; }
/* first line: the legend is for screen readers only (the prototype shows no heading above the first line) */
.tagform .segment.erste > legend { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* PC table: the selected day as editable rows (prototype inputs in the table) */
.zeittabelle tr.bearbeiten td { background: #FBFEF2; border-bottom-color: var(--atb-linie); }
.zeittabelle tr.bearbeiten td.tagnr { box-shadow: inset 4px 0 0 var(--atb-gruen); font-weight: 600; }
.zeittabelle select { width: auto; min-height: 30px; padding: 3px 4px; font-size: 12.5px; border-color: var(--atb-feldrand); }
.zeittabelle select.zeit { width: 76px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: center; text-align-last: center; }
.zeittabelle select.offen { border: 2px solid var(--atb-gruen-dunkel); }
.zeittabelle select.kzwahl { width: 58px; }
.zeittabelle select.art { width: 112px; }
.zeittabelle select.zahl { width: 64px; font-family: var(--font-mono); text-align: right; }
.zeittabelle select.bv { width: 100%; min-width: 150px; }
.zeittabelle td.bv { width: 26%; }
.zeittabelle button.mini { min-height: 24px; padding: 0; font-weight: 600; }
.zeittabelle tr.aktionszeile td { padding: 6px 4px 10px; height: auto; border-bottom: 2px solid var(--atb-gruen-dunkel); }
.zeilenaktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; white-space: normal; }
.zeilenaktionen .issue { font-size: 12px; }
.zeilenaktionen input[type=text] { width: auto; min-width: 240px; min-height: 36px; padding: 6px 8px; font-size: 13px; }
.zeilenaktionen .knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.zeilenaktionen .button, .zeilenaktionen button { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.tageszeile-form { display: none !important; }
.mehr { color: var(--atb-gruen-text); font-size: 13px; font-weight: 600; text-decoration: underline; }
summary.mehr { display: inline-flex; align-items: center; min-height: 36px; margin: 2px 0 10px; }

/* ---------- 21. UI parity: lists, Übersicht, Zeitkonto, Einteilung ---------- */
/* Compact lists (prototype .liste/.zeile) */
.liste.kompakt > li { padding: 9px 11px; font-size: 13px; min-height: 0; }
.liste.kompakt > li.kopfzeile { display: flex; justify-content: space-between; background: var(--atb-feld); font-weight: 600; font-size: 13px; }
.liste.kompakt > li.leer { color: var(--atb-grau); }
.liste.kompakt .rolle { display: block; font-size: 11px; color: var(--atb-grau); margin-top: 1px; }
.people-list.kompakt > li { padding: 0; }
.people-list.kompakt > li.kopfzeile, .people-list.kompakt > li.muted { padding: 9px 11px; }
.people-list.kompakt a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 16px; min-height: 40px; padding: 7px 11px; font-size: 13.5px; }
.people-list.kompakt .person-name { font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
.people-list.kompakt .muted { font-size: 12px; }
.people-list .badge.state { margin: 0; }
.bereich > h2:first-child { margin-top: 18px; }
.atb-inhalt > .steuerung:first-child + .bereich > h2:first-child { margin-top: 18px; }
.hinweistext { margin: 8px 0 0; }

/* Status colours of month badges (prototype .marke) */
.badge.state.offen, .badge.offen { background: var(--atb-gelb-blass); border-color: var(--atb-gelb-rand); color: var(--atb-gelb-text); }
.badge.state.freigegeben { background: var(--atb-gelb-blass); border-color: var(--atb-gruen-dunkel); color: var(--atb-gelb-text); }
.badge.state.ok { background: var(--atb-gruen-blass); border-color: var(--atb-gruen-dunkel); color: var(--atb-gruen-auf-blass); }

/* Open payout requests (prototype "Offene Überstunden-Auszahlungen") */
.payout-liste > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.payout-liste .wer { min-width: 0; flex: 1 1 260px; }
.payout-liste .aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.payout-liste .aktion form { display: flex; gap: 6px; align-items: center; margin: 0; }
.payout-liste .betrag { font-size: 14px; margin-right: 4px; }
.payout-liste input[type=text] { width: 150px; min-height: 36px; padding: 6px 8px; font-size: 13px; }
.payout-liste button { min-height: 36px; padding: 7px 12px; font-size: 12.5px; }

/* Amount in hours ("5 , 25 Std.") – payout, opening balance, FINAL correction */
.betrag-std > label { margin-top: 12px; }
.betrag-felder { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.betrag-felder input[type=number] { width: 7.5em; text-align: right; }
.betrag-felder select { width: 5em; font-family: var(--font-mono); }
.betrag-felder .komma { font-family: var(--font-mono); font-size: 20px; font-weight: 600; }
.betrag-felder .einheit { font-weight: 600; }
.verfuegbar { margin: 8px 0 0; font-size: 13px; }
.auszahlung-form .wahl .choice { flex: 1 1 200px; }

/* Einteilung toolbar (prototype .eintoolbar: weeks left, view toggle centre, actions right) */
.eintoolbar { justify-content: space-between; gap: 10px 16px; }
.eintoolbar .weeknav { gap: 8px; }
.eintoolbar .weeknav .nav-button { width: 34px; height: 34px; font-size: 16px; }
.eintoolbar .weeknav h1 { min-width: 0; font-size: 14px; font-weight: 600; text-align: center; }
.eintoolbar .weeknav h1 .mono { font-size: 13px; }
.eintoolbar .heute-link { font-size: 12.5px; }
.ansichtwahl.view-toggle { display: inline-flex; padding: 3px; background: var(--atb-feld); border: 0; border-radius: 8px; }
.ansichtwahl.view-toggle a { min-height: 34px; padding: 0 13px; font-size: 12.5px; color: var(--atb-grau); background: transparent; border: 0; border-radius: 6px; }
.ansichtwahl.view-toggle a + a { border-left: 0; }
.ansichtwahl.view-toggle a.aktiv { background: var(--atb-schwarz); color: #fff; }
.ansichtwahl.view-toggle a.aktiv::before { content: none; }
.eintoolbar .seitenkopf-aktionen .button { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.legende-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 8px 0 12px; }
.legende-zeile .legende { margin: 0; font-size: 11px; gap: 4px 12px; }
.legende .sw { width: 11px; height: 11px; border-radius: 3px; }
.ausgeblendete-link { font-size: 12px; }
.eingrid thead th { text-align: center; font-size: 11px; color: var(--atb-grau); }
.eingrid thead th.einrowhead { text-align: center; vertical-align: middle; }
.eingrid .kwcol .kw { font-size: 12px; color: var(--atb-schwarz); }
.eingrid .kwcol.heute .kw { color: var(--atb-gruen-auf-blass); }
.eintage { justify-content: center; }
.eintag { flex: 0 0 auto; padding: 0 3px; border: 0; background: transparent; font-size: 10px; border-radius: 3px; }
.einchip { border-radius: 6px; padding: 5px 7px; font-size: 11.5px; line-height: 1.25; }
.einchip.bestaetigt { border-color: #9BC94D; }
.einchip.unsicher { border-color: #E8A700; }
.einchip.leer { border: 1.5px dashed var(--atb-linie); background: transparent; min-height: 26px; }
.eingrid .fahrzeug { border-radius: 6px; background: var(--atb-feld); border-color: var(--atb-linie); color: var(--atb-grau); font-family: var(--font-text); font-size: 10.5px; }
.eingrid th.einrowhead { background: #FBFBF9; }
.eingrid .teamname { font-weight: 700; font-size: 12.5px; }
@media screen and (max-width: 760px) {
    .eintoolbar { justify-content: center; }
    .eintoolbar .seitenkopf-aktionen { width: 100%; justify-content: center; }
    .legende-zeile .legende { display: none; }
    .zeit-steuerung .steuerung-links { margin-left: 0; flex: 1 1 100%; }
    .zeit-steuerung .mfeld { flex-wrap: wrap; }
    .zeit-steuerung .month-pick { flex: 1 1 100%; }
    .zeit-steuerung .month-pick select { flex: 1; }
    .payout-liste .aktion form.ablehnen { flex: 1 1 100%; }
    .payout-liste input[type=text] { flex: 1; width: auto; }
    .people-list.kompakt a { grid-template-columns: minmax(0, 1fr) auto; }
    .people-list.kompakt a .muted { grid-row: 2; grid-column: 1; }
    .people-list.kompakt a .badge { grid-row: 1 / span 2; grid-column: 2; }
}
.people-list.kompakt > li { display: block; }
@media screen and (max-width: 760px) {
    .payout-table thead, .statement-table thead { display: none; }
    .payout-table tr, .statement-table tr { display: block; border-bottom: 1px solid var(--atb-linie); padding: 6px 0; }
    .payout-table td, .statement-table td { display: block; border: 0; padding: 2px 0; }
    .payout-table td[data-label]::before, .statement-table td[data-label]::before { content: attr(data-label) ": "; color: var(--atb-grau); font-size: 12px; font-family: var(--font-text); }
    .payout-table td[data-label="Aktion"]::before { content: none; }
}
.people-list .muted.text { font-family: var(--font-text); font-size: 12.5px; }
/* PC: compact controls inside tables (prototype rows); phones keep the 44px touch targets */
@media (min-width: 761px) {
    td input[type=text], td select { min-height: 36px; padding: 6px 8px; font-size: 13.5px; }
    td button, td .button, td .actions button { min-height: 36px; padding: 7px 12px; font-size: 12.5px; }
    .leave-table td, .bericht-tabelle td { padding-top: 5px; padding-bottom: 5px; }
}
.hilfeknopf { display: inline-flex; align-items: center; color: var(--atb-schwarz); text-decoration: none; border: 1px solid var(--atb-feldrand); border-radius: var(--atb-radius); font-weight: 600; }
.hilfeknopf:hover { color: #fff; }
@media screen and (max-width: 420px) { .hilfeknopf { display: none; } }
/* Urlaub beantragen: Von/Bis side by side also on phones (prototype .urlaub-formreihe) */
.urlaub-antrag .formreihe { grid-template-columns: 1fr 1fr; max-width: 520px; }
/* Native date picker (UAT 08.10.2026): never wider than its column on narrow phones; iOS Safari centres the value otherwise */
.urlaub-antrag .formreihe > div { min-width: 0; }
input[type=date] { display: block; min-width: 0; max-width: 100%; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
.zeittabelle td.akt { padding-right: 3px; }
@media print {
    .ueberstunden-box, .sprungliste, .sprung-hinweis, .zeittabelle tr.aktionszeile, .zeittabelle .mini, .hilfeknopf, .monatsliste, .tagesansicht { display: none !important; }
    .zeittabelle { min-width: 0; font-size: 10px; }
    .zeittabelle td { height: auto; padding: 1px 3px; }
    .zeittabelle select { border: 0; background: none; appearance: none; padding: 0; min-height: 0; font-size: 10px; }
}

/* "Meine Monate" (prototype .liste/.zeile.monatzeile): one compact row per month – name + status badge, below
   Ist von Soll · Differenz, on the right "Ansehen" */
.bereich-titel { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--atb-schwarz); padding-bottom: 5px; margin: 18px 0 12px; }
.monatsliste-kompakt > li { flex-wrap: nowrap; }
.monatsliste-kompakt .monat-info { min-width: 0; flex: 1 1 auto; }
.monatsliste-kompakt .monat-name { font-size: 15px; margin-right: 6px; }
.monatsliste-kompakt .badge { white-space: nowrap; }
.monatsliste-kompakt .rolle .badge.fehler { white-space: normal; text-transform: none; letter-spacing: 0; }
.monatsliste-kompakt .monat-aktionen { display: flex; gap: 6px; flex: 0 0 auto; }
.monatsliste-kompakt .monat-aktionen .button { min-height: 38px; padding: 8px 14px; }

/* D-59 activation page: while js/aktivieren.js posts the token, only the progress line is shown. */
.aktivierung-laeuft-text { display: none; }
.aktivierung-laeuft .aktivierung-laeuft-text { display: block; }
.aktivierung-laeuft .aktivierung-hinweis { display: none; }
