/* worktimerecord – Designsystem für App, Mitarbeiter-Seite und Rechtsseiten.
   Keine externen Fonts (DSGVO): Systemschrift mit sauberer Skala.
   Abstände nur aus der Skala --s1…--s8, Radien aus --r-*. */
@import url("icons.css");

:root {
  /* Flächen & Text */
  --bg: #f3f4f0;
  --surface: #ffffff;
  --surface-2: #f8f9f6;
  --ink: #15201d;
  --ink-2: #4a5753;
  --ink-3: #7c8783;
  --line: #e2e5df;
  --line-2: #eef0ec;
  /* Marke: Petrolgrün, dazu warmes Bernstein */
  --brand: #0b7a68;
  --brand-ink: #075a4d;
  --brand-soft: #e3f3ef;
  --brand-line: #bfe2d9;
  --deep: #0b2b26;
  --accent: #f2a531;
  /* Status */
  --arbeit: #0b7a68;
  --urlaub: #e9a23b;
  --urlaub-soft: #fdf3e1;
  --urlaub-ink: #8a5300;
  --krank: #d9534c;
  --krank-soft: #fcebea;
  --krank-ink: #a12a1f;
  --frei: #b8beba;
  --special: #6a55e8;
  --special-soft: #efecff;
  /* Raster */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 8px; --r: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 22px;
  --radius: var(--r-lg);
  --shadow: 0 1px 2px rgba(21, 32, 29, .05), 0 2px 8px rgba(21, 32, 29, .04);
  --shadow-lg: 0 24px 64px rgba(11, 43, 38, .22);
  --ring: 0 0 0 3px rgba(11, 122, 104, .18);
  --ctl: 40px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.15; }
a { color: var(--brand-ink); }
.muted { color: var(--ink-3); }
.pos { color: var(--brand-ink); font-weight: 600; }
.neg { color: var(--krank); font-weight: 600; }
.print-only { display: none; }
:focus-visible { outline: 3px solid rgba(11, 122, 104, .35); outline-offset: 2px; }

/* ---------- Topbar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; padding: var(--s3) clamp(16px, 4vw, 40px); position: sticky; top: 0; z-index: 10; background: rgba(243, 244, 240, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark svg { width: 32px; height: 32px; display: block; }
.brand-mark rect { fill: var(--brand); }
.brand-mark path { stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-family: var(--font-display); font-weight: 750; font-size: 19px; letter-spacing: -.025em; white-space: nowrap; }
.brand-name b { color: var(--brand); font-weight: 750; }
.badge-beta { font-size: 11px; font-weight: 700; background: var(--special-soft); color: var(--special); padding: 2px 8px; border-radius: 99px; }
.topnav { display: flex; gap: var(--s2); align-items: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--ctl); border: 1px solid transparent; border-radius: var(--r); padding: 0 var(--s4); font-weight: 600; font-size: 14.5px; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s; white-space: nowrap; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ic { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(7, 90, 77, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover:not(:disabled) { background: var(--brand-ink); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-soft:hover:not(:disabled) { background: #d2ece5; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: #c5cbc6; background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover:not(:disabled) { background: rgba(21, 32, 29, .05); color: var(--ink); }
.btn-block { width: 100%; min-height: 44px; }
.btn-sm { min-height: 34px; padding: 0 var(--s3); font-size: 13.5px; }
.btn.danger { color: var(--krank-ink); }
.btn-danger { background: #b42318; color: #fff; border-color: #b42318; }
.btn-danger:hover:not(:disabled) { background: #912018; }
.link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--ink-2); cursor: pointer; font-weight: 600; padding: var(--s2); border-radius: var(--r-sm); }
.link:hover { color: var(--ink); }
.icon-btn { border: 0; background: transparent; width: var(--ctl); height: var(--ctl); border-radius: var(--r); cursor: pointer; color: var(--ink-2); display: inline-grid; place-items: center; flex: none; }
.icon-btn .ic { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(21, 32, 29, .06); color: var(--ink); }
.icon-btn.sm { width: 32px; height: 32px; opacity: .4; }
.icon-btn.sm .ic { width: 16px; height: 16px; }
tr:hover .icon-btn.sm, .icon-btn.sm:focus-visible { opacity: 1; color: var(--brand); }

/* ---------- Layout ---------- */
.app { padding: var(--s5) clamp(16px, 4vw, 40px) var(--s8); max-width: 1440px; margin: 0 auto; }
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s5); align-items: start; margin-top: var(--s5); }
.summary { display: grid; gap: var(--s4); position: sticky; top: 88px; }

/* ---------- Person ---------- */
.person { --av: 52px; --cg: var(--s4); --rg: var(--s4); display: grid; grid-template-columns: var(--av) minmax(0, 1fr) auto; column-gap: var(--cg); row-gap: var(--rg); align-items: start; padding: var(--s5); }
/* Bild mit Linie nach unten → biegt in den Einstellungsbereich ab (zeigt: diese Einstellungen gehören zu dieser Person) */
.person-id { grid-column: 1; grid-row: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.person-stem { flex: 1; width: 0; border-inline-start: 2px solid var(--ps-line); margin-top: 6px; }
.person-rail { grid-column: 1; grid-row: 2; margin-top: calc(-1 * var(--rg)); height: calc(var(--rg) + 24px); margin-inline-start: calc(var(--av) / 2 - 1px); width: calc(var(--av) / 2 + var(--cg) + 1px); border-inline-start: 2px solid var(--ps-line); border-bottom: 2px solid var(--ps-line); border-end-start-radius: 12px; }
.person { --ps-line: #cfe0d9; }
.person-main { grid-column: 2; grid-row: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-self: center; }
.person-pick { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; min-width: 0; }
.person-add { color: var(--brand-ink); font-weight: 600; padding: 0 10px; gap: 4px; }
.person-add .ic { width: 15px; height: 15px; }
.person-main .emp-select { text-overflow: ellipsis; }
.avatar { width: 52px; height: 52px; border-radius: var(--r-md); background: linear-gradient(140deg, var(--brand), #2bb39b); color: #fff; font-weight: 750; display: grid; place-items: center; font-size: 18px; flex: none; }
.person-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
.person-meta { color: var(--ink-2); font-size: 14px; padding-inline-start: 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.pm-abo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.pm-abo .ic { width: 15px; height: 15px; }
.pm-on { color: var(--brand-ink); }
.pm-wait { color: #4b3bbd; }
.person-meta .lic { white-space: normal; text-align: start; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 12px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.chip .ic { width: 15px; height: 15px; color: var(--ink-3); }
.person-actions { grid-column: 3; grid-row: 1; align-self: center; display: flex; flex-wrap: wrap; gap: var(--s2); }
.person-actions:empty { display: none; }
.pa-staff.is-on { color: var(--brand-ink); border-color: #bfe0d6; }
.pa-staff.is-on .ic { color: var(--brand); }
.pa-staff.is-wait { color: #4b3bbd; }
/* Einstellungen der Person: eingerückter, getönter Bereich */
.person-settings { grid-column: 2 / -1; grid-row: 2; min-width: 0; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; }
.ps-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); min-height: 46px; padding: 6px 8px 6px var(--s4); }
.ps-head .btn { flex: none; }
.ps-head :is(h2, h3) { display: flex; align-items: center; gap: 8px; margin: 0; line-height: 1.3; font-size: 14px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.ps-head :is(h2, h3) .ic { width: 16px; height: 16px; color: var(--brand); flex: none; }
.ps-head :is(h2, h3) b { color: var(--ink); font-weight: 700; }
.ps-head .btn .ic { width: 15px; height: 15px; }
.person-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9em, 1fr)); margin: 0; background: var(--surface); }
.pf { min-width: 0; padding: var(--s3) var(--s4); border-top: 1px solid var(--line-2); border-inline-start: 1px solid var(--line-2); margin-inline-start: -1px; }
.pf dt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.pf dt .ic { width: 14px; height: 14px; flex: none; }
.pf dd { margin: 0; font-size: 15px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pf dd small { display: inline-block; white-space: nowrap; font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-inline-start: 2px; }
.emp-select { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 36px 6px 12px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8783' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 10px center / 18px no-repeat; color: var(--ink); max-width: 100%; -webkit-appearance: none; appearance: none; cursor: pointer; }
.emp-select:hover { border-color: #c5cbc6; }

/* ---------- Abo-Kennzeichen ---------- */
.lic { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; border-radius: 99px; padding: 4px 11px; border: 0; font-family: inherit; white-space: nowrap; vertical-align: middle; }
.lic .ic { width: 14px; height: 14px; }
.lic-on { background: var(--brand-soft); color: var(--brand-ink); }
.lic-off { background: var(--urlaub-soft); color: var(--urlaub-ink); cursor: pointer; }
.lic-off:hover { background: #fbe7c4; }
.lic-wait { background: var(--special-soft); color: #4b3bbd; }

/* ---------- Monatsblatt ---------- */
.sheet { overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3) var(--s4); padding: var(--s4) var(--s5); flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
.month-nav { display: flex; align-items: center; gap: var(--s1); }
.month-nav h2 { margin: 0; font-size: 22px; min-width: 180px; text-align: center; }
.sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.legend { display: flex; align-items: center; gap: var(--s2) var(--s4); padding: var(--s3) var(--s5); font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin: 0 -8px 0 0; }
.legend-hint { margin-inline-start: auto; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.dot.st-arbeit { background: var(--arbeit); } .dot.st-urlaub { background: var(--urlaub); }
.dot.st-krank { background: var(--krank); } .dot.st-frei { background: var(--frei); }

.table-wrap { overflow-x: auto; }
table.days { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.days th { text-align: start; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: var(--s2) var(--s2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; }
.days th:first-child, .days td:first-child { padding-inline-start: var(--s5); }
.days th:last-child, .days td:last-child { padding-inline-end: var(--s4); }
.days td { padding: 5px var(--s2); border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.days .num { text-align: right; }
.days tr.row { transition: background .15s; position: relative; }
.days tr.row td:first-child { box-shadow: inset 3px 0 0 var(--frei); }
.days tr.st-arbeit td:first-child { box-shadow: inset 3px 0 0 var(--arbeit); }
.days tr.st-urlaub td:first-child, .days tr.st-urlaub_halb td:first-child, .days tr.st-urlaub_unbezahlt td:first-child { box-shadow: inset 3px 0 0 var(--urlaub); }
.days tr.st-krank td:first-child { box-shadow: inset 3px 0 0 var(--krank); }
.days tr.st-urlaub, .days tr.st-urlaub_halb { background: var(--urlaub-soft); }
.days tr.st-krank { background: var(--krank-soft); }
.days tr.is-weekend.st-frei, .days tr.is-holiday.st-frei { background: var(--surface-2); }
.days tr.row:hover { background: #f1f8f6; }
.days tr.is-today .dnum { background: var(--brand); color: #fff; border-radius: 6px; padding: 1px 5px; }
.days tr.st-urlaub_unbezahlt { background: repeating-linear-gradient(135deg, var(--urlaub-soft) 0 8px, #fff 8px 16px); }

.c-date { white-space: nowrap; min-width: 96px; }
.dow { display: inline-block; min-width: 26px; margin-inline-end: 4px; color: var(--ink-3); font-weight: 600; }
.is-weekend .dow { color: var(--special); }
.dnum { font-weight: 700; font-variant-numeric: tabular-nums; }
.hol { display: block; font-size: 11px; color: var(--special); font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.days input, .days select { border: 1px solid transparent; background: transparent; border-radius: var(--r-sm); padding: 6px 8px; min-height: 36px; transition: border .15s, background .15s; }
.days input:hover:not(:disabled), .days select:hover { border-color: var(--line); background-color: #fff; }
.days input:focus, .days select:focus { border-color: var(--brand); background-color: #fff; outline: none; box-shadow: var(--ring); }
.days input:disabled { opacity: .25; }
.days input[type="time"] { width: 104px; font-variant-numeric: tabular-nums; }
.days input.pause { width: 64px; }
.c-note input { width: 100%; min-width: 90px; }
.status-select { font-weight: 600; cursor: pointer; padding-inline-end: 4px; }
.st-arbeit .status-select { color: var(--arbeit); }
.st-urlaub .status-select, .st-urlaub_halb .status-select { color: #b06f00; }
.st-krank .status-select { color: var(--krank); }
.st-frei .status-select { color: var(--ink-3); font-weight: 500; }
.st-urlaub_unbezahlt .status-select { color: var(--urlaub-ink); font-style: italic; }
.locked-status { font-size: 13px; color: var(--urlaub-ink); font-style: italic; display: inline-flex; align-items: center; gap: 4px; }
.c-hours { white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 80px; }
.c-hours small { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.1; }
.c-hours .warn { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--krank); color: #fff; font-size: 11px; font-weight: 800; margin-inline-end: 6px; cursor: pointer; border: 0; padding: 0; font-family: inherit; line-height: 1; transition: transform .12s, box-shadow .12s; vertical-align: 1px; }
.c-hours .warn:hover, .c-hours .warn[aria-expanded="true"] { box-shadow: 0 0 0 4px var(--krank-soft); }
.c-hours .warn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--krank-soft), 0 0 0 5px var(--krank); }
.toggle { border: 1px dashed var(--line); background: transparent; border-radius: 99px; padding: 4px 10px; font-size: 12px; color: var(--ink-3); cursor: pointer; font-weight: 600; min-width: 58px; }
.toggle:hover { border-color: var(--special); color: var(--special); }
.toggle.on { background: var(--special-soft); color: var(--special); border: 1px solid transparent; }
.toggle.manual { border-style: solid; border-color: var(--special); }
.st-frei .toggle.on { background: transparent; color: var(--special); opacity: .55; }

/* ---------- Zusammenfassung ---------- */
#stats { padding: var(--s5); }
.ring-row { display: flex; gap: var(--s4); align-items: center; }
.ring-wrap { position: relative; width: 88px; height: 88px; flex: none; }
.ring { width: 88px; height: 88px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: var(--line-2); }
.ring-fg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.2, .8, .2, 1); }
.ring-fg.done { stroke: #1f9d63; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring-label b { font-size: 18px; }
.ring-label span { font-size: 11px; color: var(--ink-3); }
.big { font-family: var(--font-display); font-size: 32px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.big span { font-size: 15px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.yay { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s1); font-size: 13px; font-weight: 700; color: #1a8f57; animation: pop .4s ease; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin: var(--s5) 0 0; }
.kpi { background: var(--brand-soft); border-radius: var(--r-md); padding: var(--s3) var(--s3); display: grid; gap: 2px; }
.kpi span { font-size: 12.5px; color: var(--ink-2); }
.kpi b { font-size: 18px; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12px; color: var(--ink-3); }
.kpi.k-urlaub { background: var(--urlaub-soft); }
.kpi.k-krank { background: var(--krank-soft); }
.kpi.k-special { background: var(--special-soft); }
.sec { margin: var(--s5) 0 var(--s3); font-size: 13px; font-weight: 700; color: var(--ink); }
.sec small { font-weight: 500; color: var(--ink-3); }
.money { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s3); margin: 0; font-variant-numeric: tabular-nums; }
.money dt { color: var(--ink-2); }
.money dt small { display: block; color: var(--ink-3); font-size: 12px; }
.money dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.money .total { border-top: 1px solid var(--line); padding-top: var(--s3); margin-top: var(--s1); font-size: 20px; font-weight: 750; color: var(--ink); }
.notes { margin-top: var(--s4); display: grid; gap: var(--s2); }
.note { display: block; font-size: 13px; background: var(--surface-2); border-radius: var(--r); padding: var(--s2) var(--s3); color: var(--ink-2); }
.note .ic { margin-inline-end: 4px; }
.warn-note { background: var(--krank-soft); color: var(--krank-ink); }
.month-extra { padding: var(--s2) var(--s5) var(--s5); }
.cta { padding: var(--s5); display: grid; gap: var(--s3); }
.fine { font-size: 12.5px; color: var(--ink-3); margin: 0; text-align: center; line-height: 1.5; }
.free-tag { justify-self: start; font-size: 12px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 3px 10px; border-radius: 99px; }
.divider { display: flex; align-items: center; gap: var(--s3); color: var(--ink-3); font-size: 12px; font-weight: 600; margin: var(--s2) 0 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Mit dem Attribut hidden versteckte Elemente bleiben versteckt, auch wenn eine Klasse display setzt */
[hidden] { display: none !important; }
.save-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.save-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.save-status.st-ok { background: var(--brand-soft); color: var(--brand-ink); }
.save-status.st-busy { background: var(--line-2); color: var(--ink-2); }
.save-status.st-off { background: var(--urlaub-soft); color: var(--urlaub-ink); }

/* ---------- Formulare ---------- */
.field { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; margin-bottom: var(--s4); min-width: 0; }
.field small { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea { min-height: 42px; border: 1px solid #d6dbd6; border-radius: var(--r); padding: 9px var(--s3); background: #fff; font-weight: 500; font-size: 15px; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #bcc3bd; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: var(--ring); }
.field textarea { resize: vertical; }
.field.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.field.check input { width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.field.check a { color: inherit; text-decoration: underline; }
.hint { font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin: 0; line-height: 1.5; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--s4); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s4); align-items: start; }
/* Soll-Stunden: Ohne festen Wert daneben bekommt die Auswahl zwei Spalten, damit nichts abgeschnitten wird */
.grid3 > .field-soll:has(+ [data-soll-fest][hidden]) { grid-column: span 2; }
.span2 { grid-column: span 2; }
.recent-to { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: calc(-1 * var(--s2)) 0 var(--s4); font-size: 13px; }
.recent-chip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.recent-chip button { border: 0; background: none; padding: 5px 4px 5px 12px; font: inherit; color: var(--ink-2); cursor: pointer; }
.recent-chip button.x { padding: 5px 10px 5px 4px; color: var(--ink-3); }
.recent-chip button:hover { color: var(--brand); }
.recent-chip.on { border-color: var(--brand); background: var(--brand-soft); }
.daychips { display: flex; gap: 6px; flex-wrap: wrap; }
.daychip input { position: absolute; opacity: 0; pointer-events: none; }
.daychip span { display: inline-grid; place-items: center; width: 42px; height: 40px; border-radius: var(--r); border: 1px solid #d6dbd6; cursor: pointer; font-weight: 600; transition: all .15s; }
.daychip input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.daychip input:focus-visible + span { outline: 3px solid rgba(11, 122, 104, .35); }
.workdays { gap: var(--s3); }
.workdays[data-mode="fest"] .only-anzahl, .workdays[data-mode="anzahl"] .only-fest { display: none; }
.only-anzahl { display: grid; gap: var(--s2); }
.segmented { display: inline-flex; background: var(--line-2); border-radius: var(--r); padding: 3px; width: fit-content; max-width: 100%; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 7px 14px; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; color: var(--ink-2); transition: all .15s; }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.segmented input:focus-visible + span { outline: 3px solid rgba(11, 122, 104, .35); }
fieldset { border: 0; padding: 0; margin: var(--s5) 0 var(--s2); min-width: 0; }
fieldset:first-child { margin-top: var(--s2); }
legend { font-size: 14px; color: var(--ink); font-weight: 700; margin-bottom: var(--s3); padding: 0; }
details { border-top: 1px solid var(--line); margin-top: var(--s3); padding-top: var(--s3); }
summary { cursor: pointer; font-weight: 700; color: var(--brand-ink); padding: var(--s1) 0; }

/* ---------- Dialoge ---------- */
.modal { border: 0; border-radius: var(--r-xl); padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: var(--shadow-lg); color: var(--ink); background: var(--surface); }
.modal[open] { display: flex; flex-direction: column; }
.modal > form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 32px); }
.modal-head, .modal-foot { flex: none; }
.modal-sm { width: min(480px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(11, 43, 38, .45); backdrop-filter: blur(4px); }
.modal[open] { animation: rise .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); padding: var(--s5) var(--s6) var(--s4); }
.modal-head h3 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: var(--s2); }
.modal-head p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.modal-head .icon-btn { margin: -6px -10px 0 0; }
.modal-body { padding: var(--s1) var(--s6) var(--s4); overflow: auto; flex: 1 1 auto; min-height: 0; }
.modal-body > p:first-child { margin-top: 0; }
.modal-body p { line-height: 1.55; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); padding: var(--s4) var(--s6) var(--s5); border-top: 1px solid var(--line-2); }
.modal-foot.inline { padding: var(--s4) 0 0; border-top: 0; }
.modal-sm#archive, .modal-sm#account { width: min(640px, calc(100vw - 24px)); }

/* Preis im Bestell-Dialog */
.price-card { background: linear-gradient(160deg, var(--brand-soft), #fff 72%); border-radius: var(--r-lg); padding: var(--s5); border: 1px solid var(--brand-line); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s2); }
.amount { font-family: var(--font-display); font-size: 42px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.per { color: var(--ink-2); font-weight: 600; }
.price-sub { margin: var(--s2) 0 var(--s4); color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.checks li { position: relative; padding-inline-start: 28px; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.soon { margin-top: var(--s3); font-size: 13px; background: var(--special-soft); color: #4b3bbd; padding: var(--s3) var(--s4); border-radius: var(--r); }
.pick { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); margin-top: var(--s4); }
.pick-head { font-weight: 700; margin: 0 0 var(--s2); font-size: 14px; }
.pick-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.pick-row:last-of-type { border-bottom: 0; }
.pick-row span:nth-child(2) { flex: 1; font-weight: 600; }
.pick-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.pick-total { font-weight: 700; margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); background: var(--deep); color: #fff; padding: var(--s3) var(--s5); border-radius: var(--r-md); font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(11, 43, 38, .3); opacity: 0; pointer-events: none; transition: all .3s cubic-bezier(.2, .8, .2, 1); z-index: 50; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Bot-Falle ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Konto, Archiv, Rechnungen ---------- */
.nav-user { color: var(--ink-2); font-size: 14px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: var(--s2) var(--s3); }
.nav-user:hover { background: rgba(21, 32, 29, .05); }
.auth-links { margin: calc(-1 * var(--s2)) 0 var(--s2); text-align: right; }
.auth-links .link { padding: 0; font-size: 13px; }
.auth-error { background: var(--krank-soft); color: var(--krank-ink); border-radius: var(--r); padding: var(--s3) var(--s4); font-size: 14px; margin: var(--s2) 0 0; }
.arch-list { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.arch-year { margin: var(--s4) 0 var(--s2); }
.arch-year label { display: inline-flex; align-items: center; gap: var(--s2); cursor: pointer; font-weight: 700; }
.arch-year input { accent-color: var(--brand); width: 17px; height: 17px; }
.arch-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: var(--s3) var(--s4); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); transition: border-color .15s; }
.arch-item:hover { border-color: var(--brand); }
.arch-item.soon { border-color: var(--krank); }
.arch-item.current { border-color: var(--brand); background: var(--brand-soft); }
.arch-open { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: start; min-width: 0; }
.arch-open:hover .arch-m { color: var(--brand-ink); text-decoration: underline; }
.arch-meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); font-size: 12px; }
.arch-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.arch-check { width: 17px; height: 17px; accent-color: var(--brand); }
.arch-m { font-weight: 700; }
.arch-h { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.arch-b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 90px; text-align: right; white-space: nowrap; }
.dl { display: inline-flex; align-items: center; gap: 4px; }
.dl-ok { color: var(--brand-ink); font-weight: 600; }
.dl-no { color: var(--ink-3); }
.dl-changed { color: var(--urlaub-ink); font-weight: 600; }
.ret { color: var(--ink-3); }
.ret-soon { color: var(--krank-ink); font-weight: 600; }
.archive-foot { flex-wrap: wrap; }
#archive .modal-body, #account .modal-body { overflow: auto; }
#account .sec:first-child, #archive .sec:first-child { margin-top: var(--s1); }
.retention-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); max-width: 1440px; margin: var(--s4) auto 0; padding: var(--s3) var(--s5); border-radius: var(--r-md); background: var(--krank-soft); color: #7a1f17; font-size: 14px; width: calc(100% - 2 * clamp(16px, 4vw, 40px)); }
.retention-banner.calm { background: var(--brand-soft); color: var(--brand-ink); }
.retention-banner[hidden] { display: none; }
.rb-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.acc-box { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); font-size: 14px; line-height: 1.55; }
.acc-box .ic { color: var(--brand); }
.inv-list { display: grid; gap: var(--s2); }
.inv-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s4); align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); color: var(--ink); text-decoration: none; }
.inv-item:hover { border-color: var(--brand); }
.inv-item small { display: block; color: var(--ink-2); font-size: 12px; }
.billing-grid { margin-top: var(--s4); }
.billing-grid[data-typ="privat"] .only-firma { display: none; }
.plz-ort { grid-template-columns: 130px minmax(0, 1fr); }
.korr { margin: var(--s2) 0 var(--s4); border: 1px dashed #d0d6d0; border-radius: var(--r-md); padding: var(--s3) var(--s4); }
.korr summary { cursor: pointer; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.korr summary small { color: var(--ink-3); font-weight: 500; }
.korr[open] summary { margin-bottom: var(--s3); }
.carry-hint { display: block; background: var(--urlaub-soft); color: var(--urlaub-ink); border-radius: var(--r); padding: var(--s3) var(--s4); font-size: 13.5px; line-height: 1.5; margin: 0 0 var(--s4); }
.carry-hint .ic { margin-inline-end: 2px; }
.carry-hint .link { padding: 0 0 0 6px; color: var(--urlaub-ink); text-decoration: underline; }
.dl-warn { background: var(--urlaub-soft); color: #5e3b00; border-radius: var(--r-md); padding: var(--s4); font-size: 14px; line-height: 1.5; display: grid; gap: var(--s3); margin: var(--s4) 0; }
.reminder-log { margin: var(--s2) 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.reminder-log li { padding: var(--s1) 0; }
#staff select { width: 100%; }
#staff .field small.hint { display: block; margin-top: var(--s1); }

/* ---------- Sammelversand: Personen auswählen ---------- */
.ep { margin: 0 0 var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0; overflow: hidden; }
.ep legend { float: left; width: 100%; margin: 0; padding: var(--s3) var(--s4) 0; font-size: 14px; }
.ep-all, .ep-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); cursor: pointer; }
.ep-all { clear: both; font-weight: 700; border-bottom: 1px solid var(--line); background: var(--surface-2); margin-top: var(--s3); }
.ep-all .muted { font-weight: 600; font-variant-numeric: tabular-nums; }
.ep-list { max-height: 240px; overflow: auto; }
.ep-row + .ep-row { border-top: 1px solid var(--line-2); }
.ep input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.ep-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-name small { font-weight: 600; font-size: 11.5px; color: var(--brand-ink); background: var(--brand-soft); border-radius: 99px; padding: 1px 8px; margin-inline-start: 4px; }
.ep-meta { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ep-row.off { cursor: default; }
.ep-row.off .ep-name, .ep-row.off .ep-meta { color: var(--ink-3); }
.ep-meta em { font-style: normal; color: var(--urlaub-ink); font-weight: 600; }

/* ---------- Mein Konto (/konto) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.is-konto .retention-banner { display: none !important; }
.nav-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(21, 32, 29, .06); }
.nav-tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav-tab:hover { color: var(--ink); }
.nav-tab.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(21, 32, 29, .08), 0 1px 6px rgba(21, 32, 29, .05); }
.nav-tab.on .ic { color: var(--brand); }

.konto { padding-bottom: var(--s8); }
.kt-wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.kt-loading { display: flex; align-items: center; justify-content: center; gap: var(--s3); padding: 120px var(--s4); color: var(--ink-2); }

.kt-hero { background: radial-gradient(120% 140% at 100% 0%, #13453c 0%, var(--deep) 55%); color: #fff; padding: var(--s5) 0 var(--s6); }
.kt-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 10px 6px 4px; margin-inline-start: -4px; border-radius: var(--r-sm); color: rgba(255, 255, 255, .72); font-weight: 600; font-size: 14px; cursor: pointer; }
.kt-back:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.kt-title { display: flex; align-items: center; gap: var(--s4); margin: var(--s4) 0 var(--s6); min-width: 0; }
.kt-title h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); font-weight: 750; letter-spacing: -.03em; }
.kt-title p { margin: 4px 0 0; color: rgba(255, 255, 255, .72); font-size: 15px; overflow-wrap: anywhere; }
.kt-title p b { color: #fff; font-weight: 600; }
.kt-avatar { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--accent); color: var(--deep); font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.kt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.kt-kpi { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: var(--s4) var(--s5) var(--s5); border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; text-decoration: none; transition: background .15s, border-color .15s; }
.kt-kpi:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); }
.kt-kpi-l { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.kt-kpi-l .ic { color: #7fd6c4; }
.kt-kpi.warn { border-color: rgba(242, 165, 49, .45); }
.kt-kpi.warn .kt-kpi-l .ic { color: var(--accent); }
.kt-kpi-v { font-family: var(--font-display); font-size: 30px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kt-kpi-v small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, .72); }
.kt-kpi-s { font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .66); overflow-wrap: anywhere; }

.kt-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: var(--s6); padding-top: var(--s6); align-items: start; }
.kt-nav { position: sticky; top: 88px; display: grid; gap: 2px; }
.kt-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r); color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.kt-nav a .ic { color: var(--ink-3); }
.kt-nav a:hover { background: rgba(21, 32, 29, .05); color: var(--ink); }
.kt-nav a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.kt-nav a.on .ic { color: var(--brand); }
.kt-main { display: grid; gap: var(--s5); min-width: 0; }

.kt-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: var(--s6); scroll-margin-top: 88px; min-width: 0; }
.kt-sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4) var(--s5); margin-bottom: var(--s5); flex-wrap: wrap; }
.kt-sec-head > div { flex: 1 1 360px; min-width: 0; }
.kt-sec-head h2 { margin: 0; font-size: 21px; font-weight: 700; }
.kt-sec-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 68ch; }
.kt-foot-note { margin: var(--s4) 0 0; font-size: 13px; color: var(--ink-3); max-width: 80ch; }
.kt-foot-note .ic { color: var(--urlaub-ink); }
.kt-more { display: flex; justify-content: center; margin-top: var(--s3); }
.kt-filter { display: flex; align-items: center; gap: var(--s2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kt-filter select { min-height: 36px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 var(--s3); font-weight: 600; color: var(--ink); }

.kt-empty { display: flex; align-items: center; gap: var(--s4); padding: var(--s5); border: 1px dashed #cfd5cf; border-radius: var(--r-md); background: var(--surface-2); flex-wrap: wrap; }
.kt-empty-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.kt-empty-ic .ic { width: 22px; height: 22px; }
.kt-empty > div { flex: 1 1 280px; min-width: 0; }
.kt-empty p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }

/* Abo-Plätze als Karten */
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s4); }
.seat { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s4) var(--s4) var(--s4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); position: relative; overflow: hidden; }
.seat::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--brand); }
.seat-cancel::before { background: var(--urlaub); }
.seat-off::before { background: var(--frei); }
.seat-off { background: var(--surface-2); }
.seat-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.seat-no { font-size: 12.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .01em; }
.pill { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 10px; }
.pill-on { background: var(--brand-soft); color: var(--brand-ink); }
.pill-cancel { background: var(--urlaub-soft); color: var(--urlaub-ink); }
.pill-off { background: var(--line-2); color: var(--ink-2); }
.seat-who { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.seat-who > div { min-width: 0; }
.seat-who b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-who small { display: block; color: var(--ink-2); font-size: 13px; }
.seat-av { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 750; font-size: 14.5px; }
.seat-who.empty .seat-av { background: none; border: 1.5px dashed var(--brand-line); color: var(--brand); }
.seat-who.empty b { color: var(--ink-2); }
.seat-next { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-sm); padding: 6px 10px; margin-top: calc(-1 * var(--s2)); }
.seat-next > .ic { color: var(--brand); }
.seat-next > span { min-width: 0; }
.seat-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.seat-name b { min-width: 0; }
.seat-link { min-width: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.seat-link:hover { color: var(--brand-ink); text-decoration-color: currentColor; }
.seat-name .seat-link { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.seat-next .seat-link { font-weight: 700; }
.seat-edit { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -4px -4px -4px 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-3); cursor: pointer; }
.seat-edit .ic { width: 15px; height: 15px; }
.seat-edit:hover { background: var(--brand-soft); color: var(--brand-ink); }
.seat-edit:focus-visible { color: var(--brand-ink); }
.seat-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin: 0; padding-top: var(--s3); border-top: 1px solid var(--line-2); }
.seat-facts dt { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.seat-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.seat-btns { display: grid; gap: var(--s2); margin-top: auto; }
.seat-btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); min-height: 34px; }

/* Tabellen: Mail-Log, Rechnungen */
.kt-table-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--s3)); }
.kt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kt-table th { text-align: start; font-size: 12.5px; font-weight: 650; color: var(--ink-3); padding: 0 var(--s3) var(--s3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.kt-table td { padding: var(--s4) var(--s3); border-bottom: 1px solid var(--line-2); vertical-align: top; }
.kt-table tbody tr:last-child td { border-bottom: 0; }
.kt-table tbody tr:hover td { background: var(--surface-2); }
.kt-table td small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.kt-table td b { font-weight: 650; }
.kt-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kt-table .kt-act { text-align: right; white-space: nowrap; vertical-align: middle; }
.ml-table td:first-child { white-space: nowrap; }
.ml-to b { overflow-wrap: anywhere; }
.ml-tag { font-size: 11.5px; font-weight: 650; color: var(--brand-ink); background: var(--brand-soft); border-radius: 99px; padding: 1px 7px; }
.ml-people { display: flex; flex-wrap: wrap; gap: 5px; }
.ml-person { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 2px 10px; white-space: nowrap; }
.ml-person.changed { border-color: #f0d29f; background: var(--urlaub-soft); }
.ml-person .ic { width: 12px; height: 12px; color: var(--urlaub-ink); }
.inv-items small:first-child { margin-top: 0; }

/* Rechnungsdaten, Datensicherung, Login */
.kt-billing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); padding: var(--s5); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14.5px; }
.kt-billing address { font-style: normal; line-height: 1.6; }
.kt-billing p { margin: 0 0 var(--s4); overflow-wrap: anywhere; }
.kt-billing p:last-child { margin-bottom: 0; }
.kt-label { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin-bottom: 4px; }
.kt-backup { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.kt-backup-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.kt-backup-stats > div { padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); }
.kt-backup-stats span { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kt-backup-stats small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.kt-backup.todo .kt-backup-stats > div:last-child { background: var(--urlaub-soft); border-color: #f0d29f; }
.kt-backup.todo .kt-backup-stats > div:last-child span { color: var(--urlaub-ink); }
.kt-backup.ok .kt-backup-stats > div:last-child span { color: var(--brand); }
.kt-backup-act { display: grid; gap: var(--s2); justify-items: start; }
.kt-backup-act small { font-size: 12.5px; }
.kt-alert { margin: 0 0 var(--s2); padding: var(--s3); border-radius: var(--r); background: var(--urlaub-soft); color: var(--urlaub-ink); font-size: 13.5px; font-weight: 600; }
.kt-rows { display: grid; }
.kt-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.kt-row:first-child { border-top: 0; padding-top: 0; }
.kt-row > div { flex: 1 1 320px; min-width: 0; }
.kt-row b { display: block; font-weight: 650; }
.kt-row small { display: block; color: var(--ink-2); font-size: 13.5px; overflow-wrap: anywhere; }
.kt-danger b { color: var(--krank-ink); }

@media (max-width: 1080px) {
  .kt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .kt-body { grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-top: 0; }
  .kt-nav { position: sticky; top: 56px; z-index: 5; display: flex; gap: var(--s1); overflow-x: auto; margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); padding: var(--s3) clamp(16px, 4vw, 40px); background: rgba(243, 244, 240, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .kt-nav::-webkit-scrollbar { display: none; }
  .kt-nav a { flex: none; padding: 7px 12px; font-size: 13.5px; }
  .kt-sec { scroll-margin-top: 124px; }
  .kt-backup { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .kt-sec { padding: var(--s5) var(--s4); border-radius: var(--r-lg); }
  .kt-table-wrap { margin: 0; overflow: visible; }
  .kt-table thead { display: none; }
  .kt-table, .kt-table tbody, .kt-table tr, .kt-table td { display: block; }
  .kt-table tr { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4); margin-bottom: var(--s3); }
  .kt-table tbody tr:hover td { background: none; }
  .kt-table tr { padding: var(--s3); }
  .kt-table td { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--s3); padding: 5px 0; border: 0; text-align: start; }
  .kt-table td > div { min-width: 0; }
  .ml-to b { font-size: 13.5px; }
  .kt-table td::before { content: attr(data-l); font-size: 12.5px; font-weight: 650; color: var(--ink-3); padding-top: 1px; }
  .kt-table td.kt-act { display: block; padding-top: var(--s3); }
  .kt-table td.kt-act::before { content: none; }
  .kt-table td.kt-act .btn { width: 100%; }
  .kt-table .num { text-align: start; }
  .kt-billing { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .nav-tab { padding: 7px 10px; }
  .nav-tab span { display: none; }
  .nav-tab .ic { width: 20px; height: 20px; }
  .kt-hero { padding: var(--s4) 0 var(--s5); }
  .kt-title { margin: var(--s3) 0 var(--s5); }
  .kt-avatar { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }
  .kt-kpis { gap: var(--s2); }
  .kt-kpi { padding: var(--s3) var(--s4) var(--s4); }
  .kt-kpi-v { font-size: 24px; }
  .kt-backup-stats { grid-template-columns: minmax(0, 1fr); }
  .kt-backup-stats > div { display: flex; align-items: baseline; gap: var(--s3); padding: var(--s3) var(--s4); }
  .kt-backup-stats span { font-size: 22px; }
}
@media (max-width: 600px) {
  .topnav .btn[data-act="logout"] { display: none; }
}
@media (max-width: 420px) {
  .badge-beta { display: none; }
  .kt-kpi-v { font-size: 22px; }
  .kt-kpi-v small { font-size: 13px; }
  .kt-kpi-l { font-size: 12px; }
  .kt-kpi-s { font-size: 12px; }
}

/* ---------- Abo-Plätze ---------- */
.abo-list { display: grid; gap: var(--s3); }
.abo-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); font-size: 14px; line-height: 1.5; }
.abo-row > div:first-child { min-width: 0; }
.abo-on { color: var(--brand-ink); font-weight: 600; }
.abo-off { color: #b45309; font-weight: 600; }
.abo-free { color: var(--brand); font-weight: 700; }
.abo-btns { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: flex-end; }
.abo-all { display: flex; justify-content: flex-end; margin-top: var(--s3); }
.abo-list + .abo-all + .hint, .abo-list + .hint { margin-top: var(--s3); }
.seat-free { display: grid; gap: var(--s2); margin-bottom: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }

/* ---------- Fußzeile & Rechtsseiten ---------- */
.site-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s5); font-size: 13px; color: var(--ink-3); padding: var(--s5) var(--s4) var(--s6); }
.site-foot a { color: var(--ink-3); text-decoration: none; }
.site-foot a:hover, .site-foot a[aria-current] { color: var(--brand); text-decoration: underline; }
.legal { max-width: 800px; margin: var(--s6) auto; padding: var(--s7) clamp(20px, 5vw, 56px); line-height: 1.65; font-size: 16px; }
.legal h1 { font-size: clamp(28px, 4vw, 36px); margin: 0 0 var(--s2); hyphens: auto; overflow-wrap: break-word; }
.legal h2 { font-size: 19px; margin: var(--s6) 0 var(--s2); }
.legal h3 { font-size: 16px; margin: var(--s5) 0 var(--s2); }
.legal p, .legal li { color: var(--ink-2); }
.legal ol, .legal ul { padding-inline-start: var(--s5); }
.legal li { margin-bottom: var(--s2); }
.legal .lead { font-size: 17px; color: var(--ink); }
.legal-stand { font-size: 13px; color: var(--ink-3); margin: 0 0 var(--s5); }
.legal-box { background: var(--surface-2); border: 1px solid var(--line); padding: var(--s4) var(--s5); border-radius: var(--r-md); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal-table th, .legal-table td { text-align: start; vertical-align: top; padding: var(--s3); border-bottom: 1px solid var(--line); }
.legal-table th { width: 32%; color: var(--ink); }
.legal-page .topnav a { text-decoration: none; }
.legal-note { font-size: 12.5px; color: var(--ink-3); margin: var(--s2) 0 0; line-height: 1.5; }
.legal-note a { color: inherit; text-decoration: underline; }

/* ---------- Mitarbeiter-Seite: mobil zuerst ---------- */
.team-gate { max-width: 460px; margin: var(--s7) auto; padding: var(--s6); }
.team-gate h2 { margin: 0 0 var(--s2); font-size: 24px; }
.team-gate form { margin-top: var(--s5); }
.team-banner { display: block; margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; line-height: 1.5; }
.team-banner .ic { margin-inline-end: 4px; }
.team-banner.warn { background: var(--urlaub-soft); color: var(--urlaub-ink); }
.team-banner[hidden] { display: none; }
body.team { padding-bottom: env(safe-area-inset-bottom); }
body.team .topbar { position: sticky; top: 0; z-index: 20; }
.t-app { max-width: 640px; margin: 0 auto; padding: var(--s4) var(--s4) var(--s6); display: grid; gap: var(--s4); }
.t-head { padding: var(--s1) var(--s1) 0; }
.t-head .person-name { font-size: 22px; font-weight: 750; }
.t-today { padding: var(--s5); border: 2px solid var(--brand); }
.t-today-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s4); }
.t-today-head h2 { margin: 0; font-size: 24px; }
.t-today-head span { color: var(--ink-2); font-weight: 600; text-align: right; }
.t-ed { display: grid; gap: var(--s4); }
/* Flexibel statt starres Raster: lange Bezeichnungen (z. B. tr/vi/ku) bekommen ihre Breite, die Zeile füllt sich gleichmäßig */
.t-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.t-seg > .t-chip { flex: 1 1 auto; min-width: 58px; padding-inline: 10px; overflow-wrap: anywhere; }
.t-chip { min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); padding: var(--s1) 2px; cursor: pointer; touch-action: manipulation; }
.t-chip.on.st-arbeit { background: var(--arbeit); border-color: var(--arbeit); color: #fff; }
.t-chip.on.st-urlaub, .t-chip.on.st-urlaub_halb { background: var(--urlaub); border-color: var(--urlaub); color: #3b2a06; }
.t-chip.on.st-krank { background: var(--krank); border-color: var(--krank); color: #fff; }
.t-chip.on.st-frei { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.t-chip.on.st-ausgleich { background: var(--brand); border-color: var(--brand); color: #fff; }
.t-chip:disabled { opacity: .55; cursor: default; }
.t-times { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); }
.t-time { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); min-width: 0; }
.t-time:last-child { grid-column: 1 / -1; }
.t-time small { font-weight: 500; color: var(--ink-3); }
.t-time input, .t-note, .t-step input { font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); border: 1.5px solid #d6dbd6; border-radius: var(--r-md); padding: 10px var(--s3); background: #fff; width: 100%; min-height: 52px; }
.t-note { font-size: 16px; font-weight: 500; }
.t-time input:focus, .t-note:focus, .t-step input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.t-now { min-height: 42px; border: 0; border-radius: var(--r); background: var(--brand-soft); color: var(--brand-ink); font: inherit; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.t-step { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: var(--s2); }
.t-step input { text-align: center; -moz-appearance: textfield; }
.t-step input::-webkit-inner-spin-button { -webkit-appearance: none; }
.t-step button { min-height: 52px; border: 1.5px solid #d6dbd6; border-radius: var(--r-md); background: var(--surface); font-size: 24px; font-weight: 600; color: var(--ink-2); cursor: pointer; touch-action: manipulation; }
.t-fill { min-height: 50px; font-size: 16px; }
.t-sum { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2); font-weight: 750; font-size: 17px; padding-top: var(--s1); }
.t-warn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #b45309; }
.t-locked { display: flex; gap: var(--s2); align-items: flex-start; margin: 0; padding: var(--s4); border-radius: var(--r-md); background: var(--urlaub-soft); font-weight: 600; }
.t-missing { background: var(--urlaub-soft); border: 1px solid #f1dcb4; border-radius: var(--radius); padding: var(--s4); display: grid; gap: var(--s3); }
.t-miss-head { display: flex; align-items: center; gap: var(--s2); font-weight: 750; }
.t-miss-days { display: flex; flex-wrap: wrap; gap: var(--s2); }
.t-miss { min-height: 40px; padding: 0 14px; border: 1.5px solid #e8c88a; border-radius: 99px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.t-month { padding: var(--s4) var(--s4) var(--s2); }
.t-monthnav { display: flex; align-items: center; justify-content: space-between; }
.t-monthnav h2 { margin: 0; font-size: 20px; }
.t-monthnav .icon-btn { width: 44px; height: 44px; }
.t-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s2); margin: var(--s2) 0; }
.t-legend { font-size: 13px; color: var(--ink-3); margin: var(--s1) 0 var(--s3); }
.t-days { display: grid; }
.t-row { border-top: 1px solid var(--line-2); }
.t-rowbtn { width: 100%; display: grid; grid-template-columns: 44px 10px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s3) var(--s2); background: none; border: 0; font: inherit; text-align: start; color: var(--ink); cursor: pointer; min-height: 56px; touch-action: manipulation; }
.t-date { display: grid; line-height: 1.15; }
.t-date b { font-size: 17px; }
.t-date small { color: var(--ink-3); font-weight: 600; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--frei); }
.t-row.st-arbeit .t-dot { background: var(--arbeit); }
.t-row.st-urlaub .t-dot, .t-row.st-urlaub_halb .t-dot { background: var(--urlaub); }
.t-row.st-urlaub_unbezahlt .t-dot { background: repeating-linear-gradient(45deg, var(--urlaub), var(--urlaub) 2px, #fff 2px, #fff 4px); }
.t-row.st-krank .t-dot { background: var(--krank); }
.t-what { font-size: 15px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-what em { font-style: normal; font-weight: 750; color: var(--brand); }
.t-todo { color: #b45309; font-weight: 700; }
.t-h { font-weight: 750; font-variant-numeric: tabular-nums; }
.t-row.is-off .t-date { color: var(--ink-3); }
.t-row.is-today { background: var(--brand-soft); border-radius: var(--r-md); }
.t-row.open { background: var(--surface-2); border-radius: var(--r-md); }
.t-row.open .t-ed { padding: var(--s1) var(--s3) var(--s4); }
.t-stats .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.t-app .team-banner { margin: 0; }
.t-app [hidden], .t-app[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .summary .cta { grid-column: span 2; }
}
@media (min-width: 700px) {
  .t-app { padding-top: var(--s5); gap: var(--s5); }
  .t-times { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); }
  .t-time:last-child { grid-column: auto; }
  .t-stats .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .app { padding-top: var(--s4); }
  .person { --av: 44px; --cg: var(--s3); --rg: var(--s3); padding: var(--s4); grid-template-columns: var(--av) minmax(0, 1fr); }
  .person .avatar { width: 44px; height: 44px; font-size: 16px; }
  .person-name { font-size: 20px; }
  .person-add { width: 36px; padding: 0; justify-content: center; border: 1px solid var(--line); border-radius: var(--r); }
  .person-add span { display: none; }
  .person-pick { flex-wrap: nowrap; }
  .person-actions { grid-column: 1 / -1; grid-row: auto; }
  .person-actions .btn { flex: 1 1 auto; }
  .person-stem, .person-rail { display: none; }
  .person-settings { grid-column: 1 / -1; grid-row: auto; }
  .person-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pf:nth-child(odd) { border-inline-start: 0; }
  .pf:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .summary { grid-template-columns: minmax(0, 1fr); }
  .summary .cta { grid-column: auto; }
  .sheet-head { padding: var(--s3) var(--s4); }
  .legend { padding: var(--s3) var(--s4); }
  .days th:first-child, .days td:first-child { padding-inline-start: var(--s4); }
  .c-note, .days th.c-note { display: none; }
  .legend-hint { display: none; }
  .month-nav h2 { min-width: 0; font-size: 19px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .days input[type="time"] { width: 90px; }
  .modal-head { padding: var(--s5) var(--s5) var(--s3); }
  .modal-body { padding: var(--s1) var(--s5) var(--s4); }
  .modal-foot { padding: var(--s3) var(--s5) var(--s4); }
  .modal-foot .btn { flex: 1; }
  .topbar { min-height: 56px; }
  .badge-beta { display: none; }
  .nav-user { font-size: 0; gap: 0; padding: var(--s2); }
  .nav-user .ic { width: 22px; height: 22px; }
  .topnav { gap: var(--s1); }
  .topnav > .link[data-open="pricing"] { display: none; }
  .legal-page .topnav .btn-quiet { display: none; }
  .team-gate { margin: var(--s4) var(--s3); padding: var(--s5); }
  .team-gate input, .field input, .field select, .field textarea { font-size: 16px; }
  .legal { margin: var(--s3); padding: var(--s5) var(--s5); }
  .abo-row { flex-direction: column; align-items: stretch; }
  .abo-btns { justify-content: flex-start; }
  .arch-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .arch-b { display: none; }
}
@media (max-width: 380px) {
  .t-chip { font-size: 12.5px; }
  .t-step { grid-template-columns: 48px minmax(0, 1fr) 48px; }
}

/* ---------- Druck ---------- */
/* ---------- Print ---------- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; font-size: 10pt; }
  .no-print, dialog, #toast { display: none !important; }
  .print-only { display: block; }
  /* Etwas Luft an den Seiten: Safari rundet den Druckbereich ab und schnitt sonst den rechten Rahmen der Box ab */
  #report { padding: 0 2mm; max-width: 100%; }
  .rep-days :is(th, td):is(:nth-child(1), :nth-child(3), :nth-child(4), :nth-child(5), :nth-child(6)) { white-space: nowrap; }
  /* Nur die Notiz darf umbrechen – auch lange Wörter, damit die Tabelle nie breiter als die Seite wird */
  .rep-days th:last-child, .rep-days td:last-child { white-space: normal; overflow-wrap: anywhere; width: 100%; }
  .rep-days tfoot td:first-child { white-space: normal; }
  .rep-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 10px; }
  .rep-head h1 { margin: 2px 0; font-size: 17pt; }
  .rep-firm { font-size: 9pt; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
  .rep-name { font-size: 12pt; font-weight: 700; }
  .rep-meta { text-align: right; font-size: 9pt; color: var(--ink-2); }
  .rep-box { border: 1.5px solid var(--ink); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; break-inside: avoid; }
  .rep-box h2 { margin: 0 0 6px; font-size: 11pt; text-transform: uppercase; letter-spacing: .06em; }
  .rep-sum, .rep-days { width: 100%; border-collapse: collapse; }
  .rep-sum td, .rep-sum th { padding: 3px 4px; }
  .rep-sum th { font-size: 8.5pt; color: var(--ink-2); text-align: start; }
  .rep-total td { border-top: 1.5px solid var(--ink); font-weight: 800; font-size: 11.5pt; }
  .num { text-align: right; font-variant-numeric: tabular-nums; }
  .rep-facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; font-size: 9pt; }
  .rep-note { margin-top: 6px; font-size: 9pt; background: #f4f4f4; padding: 5px 8px; border-radius: 4px; }
  .rep-days { font-size: 8.5pt; }
  .rep-days th { text-align: start; border-bottom: 1px solid var(--ink); padding: 2px 4px; }
  .rep-days td { padding: 1.5px 4px; border-bottom: 0.5px solid #ddd; }
  .rep-days tr.r-frei td { color: #999; }
  .rep-days tfoot td { border-top: 1.5px solid var(--ink); font-weight: 800; padding-top: 4px; }
  .sf { font-size: 7.5pt; color: #555; }
  .rep-sign { display: flex; gap: 40px; margin-top: 28px; font-size: 8.5pt; color: var(--ink-2); }
  .rep-sign div { flex: 1; }
  .rep-sign span { display: block; border-bottom: 1px solid var(--ink); height: 26px; margin-bottom: 3px; }
  .rep-foot { margin-top: 10px; font-size: 7.5pt; color: var(--ink-3); text-align: right; }
}
@media print {
  .save-status, #archive-btn, .lic, .retention-banner, .site-foot, .legal-page .topbar { display: none !important; }
  .legal { box-shadow: none; border: 0; margin: 0; max-width: none; padding: 0; }
  .ic { display: none; }
}

/* ---------- Sprache & Version ---------- */
.lang-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.lang-pick:hover { border-color: var(--brand-line); color: var(--ink); }
.lang-pick:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.lang-pick .ic { flex: none; color: var(--brand); }
.lang-pick select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; color: inherit; padding: 0 2px; max-width: 9.5em; cursor: pointer; outline: none; }
.kt-row .lang-pick { height: 34px; }
@media (max-width: 600px) {
  .topnav .lang-pick { padding: 0 6px; }
  .topnav .lang-pick select { max-width: 5.6em; }
}
@media (max-width: 380px) {
  .topnav .lang-pick select { max-width: 2.6em; }
}
/* Mitarbeiter-Seite hat kein Kontomenü – Abmelden bleibt sichtbar */
@media (max-width: 600px) {
  .team .topnav .btn[data-act="logout"] { display: inline-flex; padding: 0 var(--s3); }
  .team .topnav .lang-pick select { max-width: 4.2em; }
}
@media (max-width: 420px) {
  .team .brand-name { display: none; }
}

.site-foot { align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s5); }
.edition-switch { display: inline-grid; gap: 4px; justify-items: start; max-width: 46ch; }
.ed-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.ed-note { font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.edition-switch.is-locked .ed-seg button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.edition-switch.is-locked .ed-seg button.on { cursor: help; }
.ed-seg button .ic { width: 12px; height: 12px; vertical-align: -1px; }
.ed-opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.ed-notice { display: flex; gap: var(--s3); align-items: flex-start; background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-line); border-radius: var(--r); padding: var(--s3) var(--s4); font-size: 13.5px; line-height: 1.5; margin: 0 0 var(--s4); }
.ed-notice .ic { flex: none; margin-top: 3px; }
.ed-notice .link { display: inline; padding: 0; margin-inline-start: 4px; color: var(--brand-ink); text-decoration: underline; font-weight: 600; }
.edition-switch:empty { display: none; }
.ed-label { color: var(--ink-3); }
.ed-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.ed-seg button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink-3); padding: 4px 12px; border-radius: 99px; cursor: pointer; }
.ed-seg button:hover { color: var(--ink); }
.ed-seg button.on { background: var(--brand); color: #fff; }
.ed-fixed { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }

.ed-pick { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3) var(--s4) var(--s2); margin: var(--s2) 0 var(--s3); display: grid; gap: var(--s2); }
.ed-pick legend { font-weight: 650; font-size: 13.5px; padding: 0 6px; }
.ed-opt { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s2) var(--s3); border-radius: var(--r); cursor: pointer; border: 1px solid transparent; }
.ed-opt:has(input:checked) { background: var(--brand-soft); border-color: var(--brand-line); }
.ed-opt input { margin-top: 4px; accent-color: var(--brand); }
.ed-opt span { display: grid; gap: 2px; }
.ed-opt small { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.ed-pick .hint { margin: 0; }

/* Rechts-nach-links (Arabisch): Pfeile spiegeln, Zahlen- und Zeitfelder bleiben links-nach-rechts */
[dir="rtl"] .ic-chev-left, [dir="rtl"] .ic-chev-right, [dir="rtl"] .ic-arrow-right { transform: scaleX(-1); }
[dir="rtl"] input[type="time"], [dir="rtl"] input[type="number"], [dir="rtl"] input[type="email"] { direction: ltr; text-align: end; }
[dir="rtl"] .kt-back { padding: 6px 4px 6px 10px; margin-inline-start: -4px; margin-left: 0; }
[dir="rtl"] .t-date b, [dir="rtl"] .dnum { direction: ltr; unicode-bidi: isolate; }
.legal-note-box { font-size: 13px; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s2) var(--s3); margin: 0 0 var(--s5); }
.grid2 > .field-group, .grid2 > .field-group + .field { align-self: start; }
/* Zusatzangabe sichtbar als Unterpunkt der Beschäftigungsart */
.field-sub { margin: calc(-1 * var(--s2)) 0 var(--s4); padding: var(--s2) 0 var(--s1) var(--s3); border-inline-start: 2px solid var(--brand-line); font-weight: 500; }
.field-sub > span { font-size: 12.5px; }
.field-sub input { min-height: 38px; font-size: 14px; }
.field-sub .hint { line-height: 1.4; }
/* Mindestlohn mit Stift bearbeiten */
.ml-box { display: grid; gap: 6px; font-weight: 400; }
.ml-line { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-3); min-height: 26px; }
.ml-line small { color: var(--brand-ink); }
.ml-pen { border: 0; background: none; cursor: pointer; width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--brand); flex: none; }
.ml-pen:hover { background: var(--brand-soft); }
.ml-pen .ic { width: 15px; height: 15px; }
.ml-editor { display: grid; gap: var(--s2); padding: var(--s3); border: 1px solid var(--brand-line); background: var(--brand-soft); border-radius: var(--r); }
.ml-f { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ml-f input { min-height: 36px !important; font-size: 14px !important; }
.ml-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ml-actions .btn { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.ml-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 12.5px; }
.ml-hist:empty { display: none; }
.ml-hist li { display: flex; justify-content: space-between; gap: var(--s2); align-items: center; }
.ml-hist .link { font-size: 16px; line-height: 1; padding: 0 4px; color: var(--ink-3); }
.ml-editor .hint { font-size: 12px; }

/* Vergütung: Stundenlohn oder fester Monatslohn mit Zeitkonto – nur die passenden Felder zeigen */
[data-verguetung="stunde"] [data-v="monat"], [data-verguetung="monat"] [data-v="stunde"] { display: none !important; }
.ml-all { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; padding-top: 2px; }
.ml-all input { width: 17px; height: 17px; margin: 0; accent-color: var(--brand); flex: none; }
.ml-all + .hint { margin-top: -4px; }
.ml-scope { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.ml-scope .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--brand); }
.ml-calc { justify-self: start; font-size: 12.5px; margin-top: 2px; }
/* Zeitkonto in der Monatsübersicht */
.money.zk .total { font-size: 15px; padding-top: var(--s2); }
.money.zk .total.pos { color: var(--brand-ink); } .money.zk .total.neg { color: var(--krank); }
.days tr.st-ausgleich td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.days tr.st-ausgleich { background: repeating-linear-gradient(135deg, var(--brand-soft) 0 8px, #fff 8px 16px); }
.st-ausgleich .status-select { color: var(--brand-ink); }
/* Zeitkonto: Ampel, Jahresverlauf, Entscheidung zum Jahresende */
.zk-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 6px; vertical-align: 1px; }
.zk-dot.ok { background: #1a8f57; } .zk-dot.nah { background: #e0a100; } .zk-dot.ueber { background: var(--krank); }
.zk-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin: var(--s2) 0 var(--s1); }
.zk-col { display: grid; grid-template-rows: 26px 26px auto; text-align: center; }
.zk-col .zk-up { display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.zk-col .zk-down { display: flex; align-items: flex-start; }
.zk-col i { display: block; width: 100%; border-radius: 2px; }
.zk-col i.pos { background: var(--brand); } .zk-col i.neg { background: var(--krank); }
.zk-col span { font-size: 10px; color: var(--ink-3); line-height: 1.6; }
.zk-col.cur span { color: var(--ink); font-weight: 700; }
.zk-col.cur i { box-shadow: 0 0 0 1.5px var(--ink) inset; }
.zk-ye { margin-top: var(--s3); padding: var(--s3); border: 1px solid var(--brand-line); background: var(--brand-soft); border-radius: var(--r); }
.zk-ye-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; font-size: 13.5px; }
.zk-ye-h > b { font-size: 14px; }
.zk-ye-h > span { color: var(--ink-2); }
.zk-ye-v { white-space: nowrap; color: var(--ink); }
.zk-ye-v.pos { color: var(--brand-ink); }
.zk-ye-v.neg { color: var(--krank); }
.zk-ye p { margin: 4px 0 var(--s2); font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.zk-ye-opts { display: grid; gap: 4px; background: #fff; border: 1px solid var(--brand-line); border-radius: 10px; padding: 4px; }
.zk-ye-opt { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: start; background: none; border: 0; border-radius: 7px; padding: 8px 10px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.zk-ye-opt:hover { background: var(--surface-2); }
.zk-ye-opt[aria-checked="true"] { background: var(--brand-soft); color: var(--brand-ink); }
.zk-ye-opt:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.zk-ye-opt small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); margin-top: 1px; white-space: nowrap; }
.zk-ye-dot { flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; border: 2px solid #b9c4bf; background: #fff; }
.zk-ye-opt[aria-checked="true"] .zk-ye-dot { border-color: var(--brand); box-shadow: inset 0 0 0 3px #fff; background: var(--brand); }

/* Austritt: Knopf links im Einstellungs-Dialog, Checkliste und Ausgeschiedene im Konto */
.modal-foot .settings-remove { margin-right: auto; }
.exit-list { margin: 0 0 var(--s3); padding-left: 1.2em; display: grid; gap: 6px; }
.exit-check { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: var(--s3) var(--s4); margin: var(--s3) 0; }
.exit-check h4 { margin: 0 0 var(--s2); font-size: 14px; }
.exit-check ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.exit-check b.pos { color: var(--brand-ink); }
.exit-check b.neg { color: var(--krank-ink); }
.kt-former { margin-top: var(--s5); }
.kt-former h3 { font-size: 15px; margin: 0 0 var(--s2); }
.kt-row > .kt-row-act { flex: none; display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ---------- PDF-Vorschau ---------- */
.pdf-modal { width: min(980px, calc(100vw - 24px)); height: calc(100dvh - 32px); }
.pdf-modal .pdf-body { display: flex; flex-direction: column; padding-bottom: var(--s4); }
.pdf-frame { flex: 1 1 auto; width: 100%; min-height: 300px; border: 1px solid var(--line); border-radius: var(--r); background: #525659; }
.pdf-msg { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s3); text-align: center; color: var(--ink-2); min-height: 180px; }
.pdf-msg[hidden], .pdf-frame[hidden] { display: none; }
.pdf-msg[data-pdf-state="loading"] { flex-direction: row; }
.pdf-spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--brand); animation: pdfspin .8s linear infinite; }
@keyframes pdfspin { to { transform: rotate(360deg); } }
.pdf-err p { margin: 0; max-width: 46ch; color: var(--ink); }
.pdf-err .ic { color: #b4441c; }
.pdf-err-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.pdf-ready { flex-direction: row; text-align: start; justify-content: flex-start; align-items: center; gap: var(--s4); min-height: 0; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.pdf-ready b { overflow-wrap: anywhere; color: var(--ink); }
.pdf-file { flex: none; display: grid; place-items: center; width: 48px; height: 58px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--brand); }
.pdf-file .ic { width: 24px; height: 24px; }
.pdf-hint { margin-inline-end: auto; align-self: center; font-size: 13px; }
/* Am Handy: kein eingebettetes PDF – der Dialog bleibt klein */
@media (max-width: 699px), (pointer: coarse) {
  .pdf-modal { height: fit-content; }
  .pdf-modal .modal-foot .btn { flex: 1 1 auto; justify-content: center; }
}
@media print { #pdf-preview { display: none !important; } }

/* ---------- Nachtzuschlag (Einstellungen) ---------- */
.nacht { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line-2); }
.nacht-stufen { display: grid; gap: var(--s2); margin-top: var(--s2); }
.nacht-row { display: grid; grid-template-columns: 8.5em repeat(3, minmax(0, 1fr)); gap: var(--s3); align-items: end; }
.nacht-row .field { margin: 0; min-width: 0; }
.nacht-row input { width: 100%; min-width: 0; }
.nacht-name { font-weight: 650; padding-bottom: 11px; }
@media (max-width: 600px) {
  .nacht-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
  .nacht-name { grid-column: 1 / -1; padding-bottom: 0; margin-top: var(--s2); }
}
@media print { .rep-days th.num, .rep-days td.num { white-space: nowrap; } }

/* ---------- Einstellungen: eigene Seite ---------- */
.einst { padding-bottom: var(--s6); }
body.is-einst .retention-banner { display: none !important; }
body.is-einst .site-foot { padding-bottom: 96px; }
.st-notice .ed-notice { margin: 0; }
.st-sec { scroll-margin-top: 88px; }
.st-sec-head h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.st-sec-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; max-width: 60ch; }
.st-sec-head code { font-size: 13px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 5px; }
.st-sec-body { min-width: 0; padding-top: var(--s4); }
.st-sec-body > :last-child, .st-sec-body > .grid2:last-child > .field, .st-sec-body > .grid3:last-child > .field { margin-bottom: 0; }
.st-sec[data-danger] h2 { color: var(--krank-ink); }
@media (min-width: 1180px) {
  .st-sec { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: var(--s6); }
  .st-sec-body { padding-top: 2px; }
}
.seg-lg span { padding: 9px 16px; }
.st-pay { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 var(--s5); align-items: start; margin-top: var(--s2); }
.st-pay > [data-v="stunde"] { margin-bottom: var(--s3); }
.st-link { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 var(--s3); align-items: end; }
.st-link .field { margin-bottom: 0; }
.st-link-eq { align-self: end; display: grid; place-items: center; height: 42px; color: var(--brand); font-size: 18px; font-weight: 700; }
.st-link-hint { grid-column: 1 / -1; margin-top: var(--s2) !important; }
.st-ml { margin-bottom: 0; padding: var(--s3) var(--s4); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); }
.st-ml > span { font-size: 12.5px; color: var(--ink-3); }
.st-ml .ml-line { font-size: 14px; color: var(--ink); font-weight: 600; }
.st-ml-int { margin-top: var(--s4); max-width: 420px; }
.st-satz { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line-2); display: grid; gap: var(--s2); }
.st-satz .field { margin-bottom: 0; }
.st-satz-in { max-width: 260px; }
.st-sum { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s3); }
.st-sum span { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; font-weight: 500; }
.st-sum b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-zgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s4); align-items: start; }
.st-check-pad { padding-top: 30px; }
.st-sec .nacht { margin-top: var(--s2); }
.st-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); padding: var(--s3) 0 calc(var(--s3) + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 24px rgba(21, 32, 29, .06); }
.st-bar-in { display: flex; align-items: center; justify-content: flex-end; gap: var(--s2); }
.st-state { margin-inline-end: auto; font-size: 13.5px; font-weight: 600; color: var(--urlaub-ink); display: inline-flex; align-items: center; gap: 6px; }
.st-state:not(:empty)::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) {
  .st-body { padding-top: 0; }
  .st-pay { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .st-zgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .st-link { grid-template-columns: minmax(0, 1fr); }
  .st-link-eq { height: 28px; transform: rotate(90deg); justify-self: start; padding-inline-start: 12px; }
  .st-zgrid { grid-template-columns: minmax(0, 1fr); }
  .st-check-pad { padding-top: 0; }
  .st-bar-in .btn { flex: 1; }
  .st-state { flex-basis: 100%; order: -1; }
  .st-state:empty { display: none; }
  .st-sec-head h2 { font-size: 18px; }
}

/* Tageszeilen: Nachtzuschlag und Plus/Minus beim Monatslohn */
.c-special { white-space: nowrap; }
.nacht-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 4px; }
.nacht-chips:empty { display: none; }
.chip-nacht { border: 0; font-family: inherit; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; color: #3f4596; background: #eceefb; border-radius: 99px; padding: 2px 8px; font-variant-numeric: tabular-nums; cursor: pointer; }
.chip-nacht:hover, .chip-nacht[aria-expanded="true"] { background: #dfe2f8; }
.chip-nacht .ic { width: 12px; height: 12px; }
.c-hours .d-saldo { display: block; width: 100%; text-align: inherit; font-size: 11.5px; line-height: 1.1; }
.c-hours .d-saldo.pos { color: var(--brand-ink); }
.c-hours .d-saldo.neg { color: var(--krank); }
.segmented label, .daychip { position: relative; }
.st-sec .segmented { display: flex; max-width: 100%; }
.st-sec .segmented label { flex: 0 1 auto; min-width: 0; display: flex; }
.st-sec .segmented span { text-align: center; display: grid; place-items: center; width: 100%; }
@media (max-width: 600px) {
  .st-sec .segmented { width: 100%; }
  .st-sec .segmented label { flex: 1 1 0; }
  .st-sec .segmented span { padding: 8px 10px; line-height: 1.3; }
}
.st-zusatz { grid-column: 1 / -1; margin-top: calc(-1 * var(--s1)); }
.st-zusatz input { max-width: 100%; }
@media (max-width: 720px) { .st-region { order: 1; } }
@media (max-width: 600px) { .st-zusatz input::placeholder { font-size: 13.5px; } }
.nacht-regel { display: grid; gap: var(--s2); margin-top: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); }
.nacht-regel-t { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.nacht-regel .field.check { margin: 0; }
.nacht-regel .field.check small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-top: 1px; }

/* Blöcke rechts: Urlaub und Zeitkonto */
.side-card { padding: var(--s5); }
.sc-title { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s4); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.sc-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; }
.sc-ic .ic { width: 16px; height: 16px; }
.sc-urlaub { background: var(--urlaub-soft); color: var(--urlaub-ink); }
.sc-zk { background: var(--brand-soft); color: var(--brand-ink); }
.sc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.sc-tile { display: grid; gap: 2px; align-content: start; padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); min-width: 0; }
.sc-tile > span { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.sc-tile b { font-family: var(--font-display); font-size: 24px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sc-tile b small { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.sc-tile > small { font-size: 12px; color: var(--ink-3); line-height: 1.35; overflow-wrap: anywhere; }
.sc-tile b.pos { color: var(--brand-ink); } .sc-tile b.neg { color: var(--krank); }
#vac-card .sc-main { background: var(--urlaub-soft); border-color: #f3dcae; }
#zk-card .sc-main { background: var(--brand-soft); border-color: var(--brand-line); }
.vac-bar { display: flex; height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin: var(--s3) 0 0; }
.vac-bar i { display: block; height: 100%; }
.vac-bar .rest { background: var(--urlaub); }
.vac-bar .taken { background: repeating-linear-gradient(135deg, #f3c77c 0 4px, #fbe6bf 4px 8px); }
.sc-calc { margin-top: var(--s4); font-size: 13.5px; }
.sc-calc .total { font-size: 15px; padding-top: var(--s2); }
.sc-tile b { font-size: 21px; white-space: normal; flex-wrap: wrap; column-gap: 5px; row-gap: 0; }
.sc-tile b small { white-space: nowrap; }

/* Stundensatz für Zuschläge/Zeitkonto: Auswahl mit Erklärung */
.st-satz { border: 0; padding: var(--s4) 0 0; margin: var(--s5) 0 0; border-top: 1px solid var(--line-2); min-width: 0; display: grid; gap: var(--s2); }
.st-satz-t { font-size: 15px; font-weight: 650; color: var(--ink); padding: 0; float: left; width: 100%; }
.st-satz-d { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; clear: both; }
.st-opts { display: grid; gap: var(--s2); margin-top: var(--s1); }
.st-opt { display: block; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); padding: var(--s3) var(--s4); min-width: 0; }
.st-opt:has(input[type=radio]:checked) { border-color: var(--brand, var(--accent)); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--brand, var(--accent)); }
label.st-opt, .st-opt-l { display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer; }
.st-opt input[type=radio] { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--brand, var(--accent)); }
.st-opt-b { display: grid; gap: 2px; min-width: 0; flex: 1; }
.st-opt-b b { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.st-opt-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--s3); align-items: baseline; }
.st-opt-v { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 16px !important; }
.st-opt-b small { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.st-opt .st-satz-in { margin: var(--s3) 0 0 calc(18px + var(--s3)); max-width: 240px; }
.st-opt .st-satz-in .field { margin: 0; }
.st-satz-bsp { margin-top: var(--s1); }

/* ==========================================================================
   Auswahllisten (select.js): Knopf + gestaltete Liste, das echte <select> bleibt unsichtbar im Formular
   ========================================================================== */
.dd { position: relative; display: block; min-width: 0; }
.dd > select[data-dd] { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; min-height: 0 !important; opacity: 0 !important; pointer-events: none; margin: 0; padding: 0; border: 0; }
.dd-btn { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
:where(.dd-btn) { width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dd-btn:disabled { cursor: default; opacity: .6; }
.dd-val { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-chev { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-3); transition: transform .18s ease, color .15s; }
.dd-btn:hover .dd-chev { color: var(--ink-2); }
.dd-btn[aria-expanded="true"] .dd-chev { transform: rotate(180deg); color: var(--brand); }

/* Formularfelder */
.field .dd-btn { min-height: 42px; border: 1px solid #d6dbd6; border-radius: var(--r); padding: 9px 12px 9px var(--s3); background: #fff; font-weight: 500; font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field .dd-btn:hover:not(:disabled) { border-color: #bcc3bd; }
.field .dd-btn:focus-visible, .field .dd-btn[aria-expanded="true"] { border-color: var(--brand); outline: none; box-shadow: var(--ring); }
.dd-invalid .dd-btn { border-color: var(--krank) !important; box-shadow: 0 0 0 3px rgba(217, 83, 76, .15) !important; }
@media (max-width: 740px) { .field .dd-btn { font-size: 16px; } }

/* Tagesstatus in der Zeittabelle */
.days .dd-btn { min-height: 36px; padding: 6px 8px; gap: 6px; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; transition: border-color .15s, background .15s; }
.days .dd-btn:hover:not(:disabled) { border-color: var(--line); background: #fff; }
.days .dd-btn:focus-visible, .days .dd-btn[aria-expanded="true"] { border-color: var(--brand); background: #fff; outline: none; box-shadow: var(--ring); }
.days .dd-chev { width: 15px; height: 15px; opacity: .55; }
.days .dd-btn:hover .dd-chev, .days .dd-btn[aria-expanded="true"] .dd-chev { opacity: 1; }
.dd-btn.status-select { padding-inline-end: 6px; }

/* Mitarbeiter:in wählen (groß, oben) */
.person-pick .dd { min-width: 0; max-width: 100%; }
.dd-btn.emp-select { width: auto; max-width: 100%; background-image: none; padding: 6px 12px; gap: 10px; }
.dd-btn.emp-select:focus-visible, .dd-btn.emp-select[aria-expanded="true"] { border-color: var(--brand); outline: none; box-shadow: var(--ring); }
.dd-btn.emp-select .dd-chev { width: 20px; height: 20px; }

/* Filter „Monat“ (Kontoseite) */
.kt-filter .dd { display: inline-block; }
.kt-filter .dd-btn { min-height: 36px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 10px 0 var(--s3); font-weight: 600; color: var(--ink); }
.kt-filter .dd-btn:focus-visible, .kt-filter .dd-btn[aria-expanded="true"] { border-color: var(--brand); outline: none; box-shadow: var(--ring); }

/* Sprachauswahl (Weltkugel) */
.lang-pick .dd { display: inline-block; min-width: 0; }
.lang-pick .dd-btn { gap: 4px; padding: 0 2px; max-width: 9.5em; height: 34px; }
.lang-pick .dd-btn:focus-visible { outline: none; }
.lang-pick .dd-chev { width: 15px; height: 15px; }
@media (max-width: 600px) { .topnav .lang-pick .dd-btn { max-width: 5.6em; } }
@media (max-width: 380px) { .topnav .lang-pick .dd-btn { max-width: 2.9em; } }
@media (max-width: 600px) { .team .topnav .lang-pick .dd-btn { max-width: 4.4em; } }

/* Dialoge ohne .field (z. B. Erinnerung für Mitarbeiter:innen) */
#staff .dd-btn:not(.status-select) { min-height: 42px; border: 1px solid #d6dbd6; border-radius: var(--r); padding: 9px 12px 9px var(--s3); background: #fff; font-weight: 500; }

/* Die Liste */
.dd-pop { position: fixed; inset: auto; margin: 0; z-index: 1000; box-sizing: border-box; width: max-content; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 5px; overflow: auto; overscroll-behavior: contain; box-shadow: 0 16px 40px rgba(11, 43, 38, .16), 0 2px 8px rgba(11, 43, 38, .07); font-size: 14.5px; font-weight: 500; line-height: 1.3; animation: dd-in .13s ease-out; transform-origin: top center; }
.dd-pop.dd-up { transform-origin: bottom center; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.dd-opt { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 14px 8px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; color: var(--ink); }
.dd-opt.is-active { background: var(--surface-2); background: #f0f3f0; }
.dd-opt[aria-selected="true"] { color: var(--brand-ink); font-weight: 650; background: var(--brand-soft); }
.dd-opt[aria-selected="true"].is-active { background: #d5ede7; }
.dd-opt[aria-disabled="true"] { opacity: .45; cursor: default; }
.dd-check { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.dd-opt[aria-selected="true"] .dd-check { visibility: visible; }
.dd-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dd-hint { margin-inline-start: auto; padding-inline-start: var(--s3); font-size: 12px; font-weight: 600; color: var(--brand-ink); white-space: nowrap; }
.dd-group { padding: 10px 10px 4px 36px; font-size: 12px; font-weight: 650; color: var(--ink-3); }
.dd-group:first-child { padding-top: 4px; }
.dd-dot { display: none; flex: none; width: 10px; height: 10px; border-radius: 50%; }
/* Farbpunkte beim Tagesstatus – wie die Legende über der Tabelle */
.dd-pop[data-for~="status-select"] .dd-dot { display: inline-block; }
.dd-pop[data-for~="status-select"] [data-v="arbeit"] .dd-dot { background: var(--arbeit); }
.dd-pop[data-for~="status-select"] [data-v="frei"] .dd-dot { background: var(--frei); }
.dd-pop[data-for~="status-select"] [data-v="urlaub"] .dd-dot { background: var(--urlaub); }
.dd-pop[data-for~="status-select"] [data-v="urlaub_halb"] .dd-dot { background: linear-gradient(90deg, var(--urlaub) 50%, var(--urlaub-soft) 50%); box-shadow: inset 0 0 0 1px var(--urlaub); }
.dd-pop[data-for~="status-select"] [data-v="krank"] .dd-dot { background: var(--krank); }
.dd-pop[data-for~="status-select"] [data-v="urlaub_unbezahlt"] .dd-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--urlaub-ink); }
.dd-pop[data-for~="status-select"] [data-v="ausgleich"] .dd-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--brand); }
.dd-pop[data-for~="emp-select"] { font-size: 15px; }

/* Handy: Liste fährt von unten hoch */
.dd-pop.dd-sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; max-height: min(72vh, 560px); border-radius: 20px 20px 0 0; border-width: 1px 0 0; padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)); font-size: 16px; animation: dd-up .22s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -12px 40px rgba(11, 43, 38, .18); }
.dd-pop.dd-sheet::backdrop { background: rgba(11, 43, 38, .35); animation: dd-fade .2s ease-out; }
@keyframes dd-up { from { transform: translateY(100%); } }
@keyframes dd-fade { from { opacity: 0; } }
.dd-sheet-h { position: sticky; top: 0; z-index: 1; margin: 0 -10px 6px; padding: 10px 20px 12px; background: #fff; border-bottom: 1px solid var(--line-2); text-align: center; font-size: 15px; font-weight: 650; color: var(--ink); }
.dd-sheet-h::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: #d3d8d4; margin: 0 auto 10px; }
.dd-sheet .dd-opt { min-height: 50px; padding: 10px 14px; border-radius: 12px; white-space: normal; }
.dd-sheet .dd-check { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .dd-pop, .dd-pop.dd-sheet, .dd-pop.dd-sheet::backdrop { animation: none; } .dd-chev { transition: none; } }
/* Handy: in der Kopfzeile nur Weltkugel + Pfeil, die Liste zeigt die Sprachen */
@media (max-width: 600px) {
  .topnav .lang-pick .dd-val { display: none; }
  .topnav .lang-pick .dd-btn, .team .topnav .lang-pick .dd-btn { max-width: none; }
  .topnav .lang-pick { gap: 2px; }
}

/* ==========================================================================
   Zeitfelder (timepick.js): eigenes Uhr-Symbol statt Systemsymbol, gestaltete Auswahl
   ========================================================================== */
input[type="time"]::-webkit-calendar-picker-indicator { display: none; }
input[type="time"]::-webkit-datetime-edit-fields-wrapper { padding: 0; }
.field input[type="time"], .t-time input[type="time"] {
  padding-inline-end: 40px; cursor: pointer; font-variant-numeric: tabular-nums;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8783' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
}
.t-time input[type="time"] { background-size: 20px; background-position: right 14px center; padding-inline-end: 44px; }
input[type="time"].tp-open {
  border-color: var(--brand) !important; box-shadow: var(--ring); outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
}
/* Tabelle: Symbol nur beim Darüberfahren / Bearbeiten */
.days input[type="time"] { padding-inline-end: 24px; cursor: pointer; background-repeat: no-repeat; background-position: right 7px center; background-size: 13px; }
.days input[type="time"]:hover:not(:disabled), .days input[type="time"]:focus, .days input[type="time"].tp-open {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7b1ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
}
.days input[type="time"].tp-open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
.days input[type="time"]:disabled { cursor: default; }

/* Die Auswahl */
.tp-pop { width: 296px; padding: 12px; overflow: visible; }
.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.tp-val { font-family: var(--font-display); font-size: 28px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); direction: ltr; }
.tp-step { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; line-height: 1; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.tp-step:hover { border-color: var(--brand-line); color: var(--brand-ink); background: var(--brand-soft); }
.tp-lbl { font-size: 12px; font-weight: 650; color: var(--ink-3); margin: 6px 2px 6px; }
.tp-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; direction: ltr; }
.tp-c { height: 34px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 550; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; transition: background .1s, color .1s; }
.tp-c:hover { background: #f0f3f0; }
.tp-c.on { background: var(--brand); color: #fff; font-weight: 700; }
.tp-c.near { box-shadow: inset 0 0 0 1.5px var(--brand-line); }
.tp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.tp-clear { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; padding: 6px 4px; }
.tp-clear:hover { color: var(--krank-ink); }
.tp-foot .tp-done { margin-inline-start: auto; }
/* Handy: von unten, größere Felder */
.tp-pop.dd-sheet { width: auto; padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0px)); overflow: auto; }
.tp-pop.dd-sheet .dd-sheet-h { margin: 0 -16px 10px; }
.tp-pop.dd-sheet .tp-val { font-size: 34px; }
.tp-pop.dd-sheet .tp-step { width: 44px; height: 44px; font-size: 22px; }
.tp-pop.dd-sheet .tp-c { height: 46px; font-size: 17px; border-radius: 10px; background: var(--surface-2); }
.tp-pop.dd-sheet .tp-c.on { background: var(--brand); }
.tp-pop.dd-sheet .tp-grid { gap: 6px; }
.tp-pop.dd-sheet .tp-done { min-height: 44px; padding: 0 22px; font-size: 15px; }

/* ==========================================================================
   Monatswerte in den Blöcken Urlaub / Zeitkonto (aufklappbar) + Block „Fürs Lohnbüro“
   ========================================================================== */
.month-extra { padding: var(--s5); }
.sc-note { background: #eef1ff; color: #4b3fc4; }
.sc-note-f { margin-bottom: 0; }
.sc-note-f > span small { margin-inline-start: 4px; }
.sc-note-f textarea { min-height: 84px; line-height: 1.45; }
.month-extra .field:last-child { margin-bottom: 0; }

.sc-more { margin: var(--s4) calc(-1 * var(--s5)) calc(-1 * var(--s5)); border-top: 1px solid var(--line-2); }
.sc-more > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px var(--s5); cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--brand-ink); border-radius: 0 0 var(--radius) var(--radius); transition: background .15s; }
.sc-more > summary::-webkit-details-marker { display: none; }
.sc-more > summary:hover { background: var(--surface-2); }
.sc-more > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.sc-more > summary span { flex: 1; min-width: 0; }
.sc-more > summary .ic { width: 15px; height: 15px; flex: none; }
.sc-more > summary .dd-chev { width: 17px; height: 17px; color: var(--brand-ink); transition: transform .18s; }
.sc-more[open] > summary { border-radius: 0; }
.sc-more[open] > summary .dd-chev { transform: rotate(180deg); }
.sc-more-body { display: grid; gap: var(--s3); padding: 0 var(--s4) var(--s4); }
.sc-sub { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px var(--s4) var(--s4); min-width: 0; }
.sc-sub h4 { margin: 0 0 3px; font-size: 14px; font-weight: 700; color: var(--ink); }
.sc-sub-d { margin: 0 0 var(--s3); font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.sc-sub-n { margin: -6px 0 var(--s3); font-size: 12px; color: var(--ink-3); }
.sc-sub .grid2 { gap: 0 var(--s3); }
.sc-sub .field { margin-bottom: var(--s3); }
.sc-sub > .field:last-child, .sc-sub > :last-child .field { margin-bottom: 0; }
.sc-sub .grid2:last-child .field { margin-bottom: 0; }
.sc-sub .carry-hint { margin: var(--s3) 0 0; font-size: 12.5px; }
.sc-sub .field > span small { margin-inline-start: 2px; }

/* Eingabe mit Einheit */
.in-unit { position: relative; display: block; min-width: 0; }
.in-unit input { width: 100%; padding-right: 52px !important; }
.in-unit i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; font-weight: 500; color: var(--ink-3); pointer-events: none; }
[dir="rtl"] .in-unit input { padding-right: var(--s3) !important; padding-left: 52px !important; }
[dir="rtl"] .in-unit i { right: auto; left: 12px; }

/* ==========================================================================
   Footer: Arbeitsmarktversion
   ========================================================================== */
.site-foot { align-items: center; gap: var(--s3) var(--s5); }
.site-foot .edition-switch { display: contents; }
.site-foot .ed-row { padding-inline-start: var(--s5); border-inline-start: 1px solid var(--line); }
.site-foot .ed-note { flex-basis: 100%; text-align: center; max-width: none; margin-top: -2px; }
.ed-label { font-size: 13px; }
.ed-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1px solid var(--brand-line); border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.ed-pill .ic { width: 12px; height: 12px; }
.ed-pill:hover { border-color: var(--brand); }
.ed-why { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; }
.ed-why:hover { color: var(--brand-ink); text-decoration-color: currentColor; }
.ed-note { display: block; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.ed-note .ic { width: 13px; height: 13px; vertical-align: -2px; color: var(--accent); }
@media (max-width: 600px) {
  .site-foot .ed-row { padding-inline-start: 0; border-inline-start: 0; justify-content: center; }
  .site-foot .ed-note { padding: 0 var(--s2); }
}
.sc-sub .grid2 { gap: var(--s3); margin-bottom: var(--s3); }
.sc-sub .grid2 .field { margin-bottom: 0; }
.sc-sub .grid2:last-child { margin-bottom: 0; }

/* ---------- Hinweise per Klick (tip.js) ---------- */
.tip-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted rgba(21, 32, 29, .35); text-underline-offset: 3px; }
.tip-btn:hover { text-decoration-color: currentColor; }
.tip-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.tip-pop { width: max-content; max-width: min(340px, calc(100vw - 16px)); padding: 12px 14px; overflow: visible; font-size: 14px; }
.tip-pop:not(.dd-sheet)::before { content: ""; position: absolute; top: -6px; left: calc(var(--ax, 50%) - 6px); width: 10px; height: 10px; background: #fff; border: 1px solid var(--line); border-width: 1px 0 0 1px; transform: rotate(45deg); }
.tip-pop.dd-up::before { top: auto; bottom: -6px; border-width: 0 1px 1px 0; }
.tip-h { font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin-bottom: 8px; }
.tip-warn .tip-h { color: var(--krank-ink); }
.tip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tip-list li { display: flex; align-items: flex-start; gap: 9px; line-height: 1.4; color: var(--ink); font-weight: 550; }
.tip-list .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--brand); }
.tip-warn .tip-list .ic { color: var(--krank); }
.tip-law { display: inline-block; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 6px; margin-inline-start: 4px; white-space: nowrap; vertical-align: 1px; }
.tip-pop.dd-sheet { padding: 0 18px calc(18px + env(safe-area-inset-bottom, 0px)); font-size: 16px; }
.tip-pop.dd-sheet .dd-sheet-h { margin: 0 -18px 14px; }
.tip-pop.dd-sheet .tip-list { gap: 12px; }

/* ---------- Einstellungen: gleicher Personen-Kopf wie in der Zeiterfassung ---------- */
.st-app { padding-top: var(--s4); --av: 52px; --cg: var(--s4); }
.st-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 10px 6px 4px; margin: 0 0 var(--s2) -4px; border-radius: var(--r-sm); color: var(--ink-2); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.st-back:hover { color: var(--ink); background: rgba(21, 32, 29, .05); }
.st-back .ic { width: 16px; height: 16px; }
.st-person { position: relative; }
.st-person .person-name { font-size: 24px; }
.st-person .person-meta > span:only-child { color: var(--ink-2); }
/* In Bearbeitung: Bereich hervorgehoben; Abschnitte darunter auf den Bereich eingerückt */
.person-settings.is-editing { border-color: #bfe0d6; box-shadow: 0 0 0 3px var(--brand-soft); }
.ps-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--brand-ink); background: var(--brand-soft); border-radius: 99px; padding: 4px 11px; white-space: nowrap; }
.ps-badge .ic { width: 13px; height: 13px; }
.st-facts .pf-sub { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.st-facts .pf dd small { font-size: 12.5px; }
.st-facts .pf-z { grid-column: span 2; }
.st-z { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5em, 1fr)); gap: 2px var(--s4); font-weight: 500; }
.st-z > span { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); font-size: 13px; color: var(--ink-2); border-bottom: 1px dashed var(--line-2); padding: 2px 0; min-width: 0; }
.st-z b { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-z b small { font-size: 11.5px; color: var(--ink-3); }
.st-z .st-z-off { font-size: 12px; font-weight: 500; color: var(--ink-3); }
@media (min-width: 901px) {
  .st-body { position: relative; padding-top: var(--s5); padding-inline-start: calc(var(--s5) + var(--av) + var(--cg) + 1px); }
}
@media (max-width: 720px) {
  .st-app { --av: 44px; }
  .st-body { padding-top: var(--s4); }
  .st-facts .pf-z { grid-column: 1 / -1; }
}

/* ---------- Mein Konto: Mitarbeiter-Übersicht ---------- */
.tm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.tm-stats > div { padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tm-stats span { font-family: var(--font-display); font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.tm-stats small { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.tm-table { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(min-content, 1fr)) repeat(2, minmax(min-content, .7fr)) auto; column-gap: var(--s4); border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; }
/* Kopf und Zeilen teilen sich ein Spaltenraster (subgrid) – Werte stehen exakt unter den Überschriften */
.tm-head, .tm-list, .tm-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.tm-head { white-space: nowrap; padding: 10px var(--s4); background: var(--surface-2); border-bottom: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.tm-list { list-style: none; margin: 0; padding: 0; }
.tm-row { padding: 14px var(--s4); row-gap: var(--s2); border-top: 1px solid var(--line-2); transition: background .15s; }
.tm-row:first-child { border-top: 0; }
.tm-row:hover { background: #f7faf8; }
.tm-num { text-align: end; }
.tm-who { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.tm-av { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 750; font-size: 14px; color: #fff; background: linear-gradient(140deg, var(--brand), #2bb39b); }
.tm-id { display: grid; gap: 2px; min-width: 0; justify-items: start; }
.tm-name { background: none; border: 0; padding: 0; font: inherit; font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); cursor: pointer; text-align: start; overflow-wrap: anywhere; }
.tm-name:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.tm-sub { font-size: 13px; color: var(--ink-2); }
.tm-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 3px; }
.tm-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.tm-tag .ic { width: 12px; height: 12px; }
.tm-tag.tm-on { background: var(--brand-soft); color: var(--brand-ink); }
.tm-tag.tm-wait { background: var(--special-soft); color: #4b3bbd; }
.tm-tag.tm-off { background: var(--urlaub-soft); color: var(--urlaub-ink); }
.tm-c { min-width: 0; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.tm-c.tm-num { justify-items: end; }
.tm-c b { font-size: 14.5px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.tm-c b.pos { color: var(--brand-ink); }
.tm-c b.neg { color: var(--krank); }
.tm-c small { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.tm-none { font-size: 13px; color: var(--ink-3); }
.tm-act { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.tm-empty { margin: 0; padding: var(--s5); text-align: center; color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-md); }
.tm-open span { display: none; }
.tm-act .icon-btn:hover { color: var(--brand-ink); background: var(--brand-soft); }
@media (max-width: 1180px) and (min-width: 901px) {
  .tm-table { column-gap: var(--s3); }
  .tm-head, .tm-row { padding-inline: var(--s3); }
  .tm-av { width: 34px; height: 34px; font-size: 13px; }
}
/* schmal: jede Person als Karte mit beschrifteten Werten */
@media (max-width: 900px) {
  .tm-table { display: block; border: 0; border-radius: 0; overflow: visible; }
  .tm-head { display: none; }
  .tm-list { display: grid; gap: var(--s3); }
  .tm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3) var(--s4); padding: var(--s4); border: 1px solid var(--line-2); border-radius: var(--r-md); }
  .tm-row:first-child { border-top: 1px solid var(--line-2); }
  .tm-who { grid-column: 1 / -1; padding-bottom: var(--s3); border-bottom: 1px solid var(--line-2); }
  .tm-c::before { content: attr(data-l); font-size: 12px; font-weight: 600; color: var(--ink-3); }
  .tm-c.tm-num { justify-items: start; }
  .tm-act { grid-column: 1 / -1; padding: 0; margin: 0; justify-content: stretch; gap: var(--s2); }
  .tm-act .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: auto; flex: 1; gap: 6px; border: 1px solid var(--line); border-radius: var(--r); min-height: 38px; }
  .tm-open { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent !important; font-weight: 600; }
  .tm-open span { display: inline; font-size: 14px; }
  .tm-act .icon-btn:last-child { flex: 0 0 44px; }
}
@media (max-width: 600px) { .kt-sec .tm-stats { gap: var(--s2); } .tm-stats > div { flex-direction: column; gap: 0; padding: var(--s3); } .tm-stats span { font-size: 22px; } }
