/* Zeiterfassung – mobile-first */
:root {
  --bg: #f3f5f8; --card: #fff; --text: #1d2733; --muted: #6b7785; --line: #e2e7ee;
  --primary: #1f3a5f; --primary-2: #2c5282; --ok: #1f8a4c; --ok-bg: #e5f5ec; --err: #c0392b; --err-bg: #fdecea;
  --warn: #b7791f; --warn-bg: #fff6e0; --radius: 12px; --shadow: 0 1px 3px rgba(20,30,50,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
body.guest { padding-bottom: 0; }
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.45rem; margin: .4rem 0 1rem; }
h2 { font-size: 1.08rem; margin: 0 0 .7rem; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.ok { color: var(--ok); } .err { color: var(--err); } .warn { color: var(--warn); }
.right { text-align: right; margin-left: auto; }
.nowrap { white-space: nowrap; }
code { background: #eef1f5; padding: 1px 5px; border-radius: 4px; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 14px; }
.container.narrow { max-width: 680px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; background: var(--primary); color: #fff; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); }
.topbar a { color: #fff; }
.brand { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mainnav { display: none; }
.usermenu { margin-left: auto; display: flex; gap: 14px; font-size: .9rem; white-space: nowrap; }
.usermenu .muted { color: #c9d6e6; }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 7px 2px 6px; font-size: .7rem; color: var(--muted); }
.bottomnav a:hover { text-decoration: none; }
.bottomnav .ico { font-size: 1.25rem; line-height: 1.2; }
@media (min-width: 900px) and (max-width: 1399px) { .mainnav .ico { display: none; } }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .mainnav { display: flex; gap: 2px; overflow-x: auto; }
  .mainnav a { padding: 6px 10px; border-radius: 8px; font-size: .9rem; white-space: nowrap; }
  .mainnav a.active, .mainnav a:hover { background: rgba(255,255,255,.15); text-decoration: none; }
  .mainnav .ico { margin-right: 5px; }
  .usermenu { margin-left: 12px; }
}
@media (max-width: 899px) { .usermenu a:first-child { display: none; } }

/* Karten */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card-warn { border-left: 4px solid var(--warn); }
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { margin-bottom: 12px; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pagehead h1, .pagehead h2 { margin-bottom: .6rem; }

/* Formulare */
label { display: block; margin-bottom: 12px; font-size: .9rem; color: #3a4654; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1px solid #cdd5df; border-radius: 9px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9fb8d8; border-color: var(--primary-2); }
input[type=checkbox] { display: inline-block; width: auto; margin: 0 6px 0 0; transform: scale(1.25); }
label.check { display: inline-flex; align-items: center; margin-right: 16px; color: var(--text); font-size: .95rem; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
fieldset.checks legend { font-size: .9rem; color: #3a4654; margin-bottom: 6px; }
fieldset[disabled] { opacity: .65; }
.grid2, .grid3 { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
.grid3 { grid-template-columns: 1fr 1fr 1fr; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.input-sm { padding: 6px 8px; font-size: .85rem; margin-bottom: 4px; }
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filterbar input, .filterbar select { width: auto; flex: 1 1 160px; margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.card .actions { margin-bottom: 0; margin-top: 6px; }
form.inline { display: inline-flex; gap: 6px; flex-wrap: wrap; margin: 0; }
form.stack { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-bottom: 6px; }
.calc { margin: -4px 0 10px; font-size: .9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; font: inherit; font-size: .95rem; font-weight: 600; border-radius: 9px; border: 1px solid #cdd5df; background: #fff; color: var(--text); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { filter: brightness(.97); }
.btn-primary { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-err { background: var(--err); border-color: var(--err); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--primary-2); }
.btn-sm { padding: 6px 10px; font-size: .82rem; }
.btn-lg { padding: 15px 18px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; }
.btn.right { margin-left: auto; }

/* Hinweise / Badges */
.flash { padding: 11px 14px; border-radius: 9px; margin-bottom: 12px; font-size: .95rem; }
.flash-ok { background: var(--ok-bg); color: #145a32; }
.flash-err { background: var(--err-bg); color: #922b21; }
.flash-warn { background: var(--warn-bg); color: #7d5a14; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: .74rem; font-weight: 600; vertical-align: middle; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-muted { background: #eef1f5; color: var(--muted); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .8rem; background: #eef1f5; margin: 2px 0; }
.tag-urlaub { background: #e3f2fd; color: #1565c0; }
.tag-krank, .tag-kind_krank { background: #fdecea; color: #a93226; }
.tag-holiday { background: #f3e8fd; color: #6c3483; }
.tag-schule, .tag-sonderurlaub { background: #fff6e0; color: #7d5a14; }
.tag-zeitausgleich, .tag-unbezahlt { background: #eef1f5; color: #4a5562; }

/* Kacheln */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; color: var(--muted); font-size: .82rem; text-decoration: none !important; }
.tile-num { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.tile-num.ok { color: var(--ok); } .tile-num.err { color: var(--err); } .tile-num.warn { color: var(--warn); }
.small-tiles .tile-num { font-size: 1.2rem; }

/* Listen */
.row-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.row-item:last-child { border-bottom: 0; }
.row-item.link:hover { background: #f8fafc; text-decoration: none; }
.row-item.total { border-top: 2px solid var(--line); }

/* Stempeluhr */
.clock-card { text-align: left; }
.clock-card.running { border: 2px solid var(--ok); }
.clock-timer { font-size: 2.6rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ok); margin: 4px 0; }
.clock-status { color: var(--muted); }
.clock-card .clock-timer + .muted { margin-bottom: 12px; }

/* Einsätze */
.assignment { padding: 12px 0; border-bottom: 1px solid var(--line); }
.assignment:last-child { border-bottom: 0; }
.assignment.today { background: #f2fbf5; margin: 0 -16px; padding: 12px 16px; }
.assignment-date { font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
.assignment-title { display: block; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.addr { display: block; margin-top: 5px; padding: 8px 10px; background: #f3f6fa; border-radius: 8px; color: var(--primary-2); }
.note { margin-top: 8px; padding: 8px 10px; background: var(--warn-bg); border-radius: 8px; font-size: .92rem; }

/* Tagesliste */
.daylist { padding: 6px 16px; }
.day { padding: 10px 0; border-bottom: 1px solid var(--line); }
.day:last-child { border-bottom: 0; }
.day.is-today .day-date { color: var(--primary-2); }
.day-head { display: flex; justify-content: space-between; font-weight: 600; }
.entry { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 7px 8px; margin-top: 5px; border-radius: 8px; background: #f6f8fb; color: var(--text); font-size: .92rem; }
.entry:hover { background: #edf2f8; text-decoration: none; }
.entry-project { overflow-wrap: anywhere; }
.entry-missing { display: block; background: transparent; border: 1px dashed #c7d0db; color: var(--muted); text-align: center; }
.monthnav { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 14px; }
.monthnav strong { min-width: 160px; text-align: center; }

/* Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { background: #f3f6fa; font-size: .8rem; color: #4a5562; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot th { background: #f8fafc; }
.table tr.off td { color: var(--muted); background: #fafbfc; }
.plan th, .plan td { min-width: 92px; }
.plan th:first-child { min-width: 120px; position: sticky; left: 0; background: #fff; z-index: 1; }
.plan thead th:first-child { background: #f3f6fa; }
.plan .off { background: #f7f8fa; }
.plan .is-today { background: #eef6ff; }
.chip { display: block; padding: 3px 6px; margin-bottom: 3px; border-radius: 6px; background: #dfe9f6; color: var(--primary); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.chip-urlaub { background: #e3f2fd; color: #1565c0; }
.chip-krank, .chip-kind_krank { background: #fdecea; color: #a93226; }
.chip-pending { opacity: .6; border: 1px dashed currentColor; }

/* Login */
.login-wrap { min-height: 85vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 380px; text-align: center; }
.login-card form { text-align: left; margin-top: 16px; }
.login-logo { font-size: 2.6rem; }
.login-card h1 { margin: .3rem 0 0; }

@media print {
  .topbar, .bottomnav, .actions, .btn, .filterbar { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; }
}

/* ===== Version 2.0 ===== */
.badge-info { background: #e3effd; color: #1c5fa8; }
.badge-paid { background: #e6f4f1; color: #0d7a63; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; flex: none; }

/* Zeitart */
.kind { display: inline-block; padding: 0 7px; border-radius: 5px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; text-transform: uppercase; }
.kind-arbeit { background: #e7eef8; color: var(--primary-2); }
.kind-fahrt { color: #7a4b00; background-color: #fde8c4; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.65) 0 3px, transparent 3px 6px); }
.btn-fahrt { background-color: #d9822b; border-color: #c06f1d; color: #fff; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.16) 0 6px, transparent 6px 12px); }
.btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.btnrow .btn { width: 100%; white-space: normal; }
.clock-card.kind-run-fahrt { border-color: #d9822b; }
.clock-card.kind-run-fahrt .clock-timer { color: #b0661a; }
.clock-project { font-weight: 600; margin-bottom: 12px; }
.switchbox { border: 1px dashed #c7d0db; border-radius: 10px; padding: 10px 12px 4px; margin-bottom: 12px; }
.switchbox legend { font-size: .85rem; font-weight: 600; color: var(--primary); padding: 0 4px; }

/* Zeitleiste */
.timeline { margin: 4px 0 12px; }
.tl-track { position: relative; height: 34px; background: #f1f4f8; border-radius: 8px; overflow: hidden; }
.tl-block { position: absolute; top: 3px; bottom: 3px; background-color: var(--c); border-radius: 5px; min-width: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.tl-block.tl-fahrt { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.6) 0 5px, transparent 5px 10px); }
.tl-gap { position: absolute; top: 9px; bottom: 9px; background: repeating-linear-gradient(90deg, #c3ccd7 0 3px, transparent 3px 6px); border-top: 1px dashed #aab5c2; border-bottom: 1px dashed #aab5c2; }
.tl-scale { position: relative; height: 16px; font-size: .7rem; color: var(--muted); }
.tl-scale span { position: absolute; transform: translateX(-50%); top: 1px; }
.tl-scale span:first-child { transform: none; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: #4a5562; margin-top: 4px; }
.tl-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tl-legend .tl-key-fahrt { background-color: #8a96a3; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.6) 0 3px, transparent 3px 6px); }
.tl-legend .tl-key-gap { background: repeating-linear-gradient(90deg, #c3ccd7 0 3px, transparent 3px 6px); }
.tl-mini-link { display: block; margin-top: 6px; }
.tl-mini-link .tl-track { height: 18px; }
.tl-mini-link .tl-block { top: 2px; bottom: 2px; }
.tl-mini-link .tl-gap { top: 6px; bottom: 6px; }
.tl-mini-link .tl-legend, .tl-mini-link .tl-scale { display: none; }
.daysums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.daysums > div { background: #f6f8fb; border-radius: 9px; padding: 8px; display: flex; flex-direction: column; font-size: .78rem; color: var(--muted); }
.daysums .tile-num { font-size: 1.15rem; }
.gap-row { color: var(--muted); font-size: .88rem; border-bottom-style: dashed; }
.day-date { color: var(--text); }

/* Mehrere Blöcke im Formular */
.block-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 2px; margin-bottom: 10px; background: #fbfcfe; }
.block-row legend { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; padding: 0 4px; }
.kindpick { display: flex; gap: 8px; margin-bottom: 10px; }
.pill { border: 1px solid #cdd5df; border-radius: 20px; padding: 6px 12px; margin: 0; background: #fff; cursor: pointer; }
.pill:has(input:checked) { border-color: var(--primary-2); background: #e7eef8; font-weight: 600; }
.pill-fahrt:has(input:checked) { border-color: #d9822b; background: #fde8c4; }
.dayothers { margin: -4px 0 10px; }
.chip-inline { display: inline-block; background: #eef1f5; border-radius: 6px; padding: 1px 6px; margin: 2px 2px 0 0; }

/* Freigabe / Abrechnung */
.tile-wide { grid-column: 1 / -1; }
.tile-warn { border-left: 4px solid var(--warn); }
.btn-paid { background: #0d7a63; border-color: #0d7a63; color: #fff; }
.filters .quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; position: sticky; top: 52px; z-index: 5; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; }
.bulk-actions .invoice { display: inline-flex; gap: 6px; align-items: center; }
.bulk-actions .invoice input { width: 130px; margin: 0; }
input.need { outline: 2px solid var(--err); }
.table.billing td.desc { min-width: 180px; }
.table.billing td input[type=checkbox] { transform: scale(1.3); }
.fg-day { padding: 8px 0 10px; border-top: 1px solid var(--line); }
.fg-dayhead { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.freigabe-user .timeline { margin-bottom: 4px; }
.freigabe-user .tl-track { height: 20px; }
.freigabe-user .tl-legend, .freigabe-user .tl-scale { display: none; }
@media (max-width: 599px) { .bulkbar { top: 48px; } }
.badge { white-space: nowrap; }
/* Eingabefelder dürfen in Rastern schrumpfen (Datum/Uhrzeit sind sonst auf iOS zu breit) */
.grid2 > *, .grid3 > * { min-width: 0; }
input[type=date], input[type=time] { min-width: 0; max-width: 100%; }
@media (max-width: 599px) { .grid3.stack-sm { grid-template-columns: 1fr; } }

/* Monatssumme (groß, oben) */
.monthsum { display: grid; gap: 12px; border-top: 4px solid var(--primary-2); }
.ms-main { display: flex; flex-direction: column; }
.ms-label { font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.ms-big { font-size: 2.8rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--primary); }
.ms-sub { font-size: .85rem; color: var(--muted); }
.ms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ms-grid > div { background: #f6f8fb; border-radius: 9px; padding: 10px; display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); }
.ms-num { font-size: 1.45rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.ms-num.ok { color: var(--ok); } .ms-num.err { color: var(--err); }
.ms-ot { outline: 2px solid #cfe3d6; }
@media (min-width: 700px) { .monthsum { grid-template-columns: 1fr 2fr; align-items: center; } .ms-grid { grid-template-columns: repeat(4, 1fr); } .ms-foot { grid-column: 1 / -1; } }

/* Verpflegungspauschale */
.meal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-bottom: 10px; }
.meal-day { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
.meal-day.on { background: var(--ok-bg); border-color: #b9dfc8; }
.meal-day .md-span { width: 100%; padding-left: 26px; }
.monthtable td { white-space: nowrap; }
.table.report { min-width: 560px; }
.colleagues { margin-top: 6px; padding: 6px 10px; background: #eef4fb; border-radius: 8px; font-size: .9rem; color: #2c4a6e; }

/* Bautagebuch */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 8px; }
.thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #e9edf2; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.diary-entry { padding: 10px 0; border-top: 1px solid var(--line); }
.diary-day h2 + .diary-entry { border-top: 0; padding-top: 0; }
.diary-meta { display: flex; align-items: center; gap: 8px; }
.diary-text { margin-top: 4px; white-space: normal; }
.filepick input[type=file] { padding: 14px; border-style: dashed; background: #f6f8fb; }
.preview { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10,15,25,.92); display: flex; align-items: center; justify-content: center; padding: 10px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; font-size: 1.4rem; color: #fff; background: rgba(255,255,255,.15); border: 0; border-radius: 50%; width: 42px; height: 42px; }

/* Postfach */
.inbox-link { position: relative; display: inline-flex; align-items: center; }
.inbox-link .env { font-size: 1.15rem; line-height: 1; }
.inbox-count { position: absolute; top: -7px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e02424; color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.inbox-count[hidden] { display: none; }
.bottomnav .ico.env { position: relative; display: inline-block; }
.bottomnav .inbox-count { top: -4px; right: -12px; }
@media (max-width: 899px) { .usermenu a:first-child { display: inline-flex; } .usermenu .inbox-link, .usermenu a[title=Profil] { display: none; } }
.usermenu .inbox-link.active { opacity: .85; }
.msg { border-left: 4px solid transparent; }
.msg.unread { border-left-color: #e02424; }
.msg.unread .msg-title { font-weight: 700; }
.msg-head { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--muted); }
.msg-from { font-weight: 600; color: #3a4654; }
.msg-title { margin: 4px 0; font-size: 1rem; }
.dot-unread { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e02424; margin-right: 7px; vertical-align: 1px; }
.msg-body { font-size: .92rem; color: #3a4654; }
.msg-warn { margin-top: 6px; padding: 7px 10px; background: var(--warn-bg); color: #7d5a14; border-radius: 8px; font-weight: 600; }
.msg .decide { margin-top: 10px; }
.msg .decide .input-sm { width: 100%; margin-bottom: 8px; }
.msg-link { display: inline-block; margin-top: 6px; }
@media (max-width: 899px) { .usermenu a.inbox-link:first-child { display: none; } }

/* ===== Version 2.3: Status, Zeiten-Reiter, Plantafel, Kalender ===== */
.badge-status { background: #eef1f5; background: color-mix(in srgb, var(--st) 14%, #fff); color: var(--st); }
.btn-status { border-color: var(--st); color: var(--st); background: #fff; }
.btn-status:hover { background: color-mix(in srgb, var(--st) 10%, #fff); }
.status-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.status-checks .check { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.inline-label { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.inline-label input { width: auto; margin: 0; }
.tabs { display: flex; gap: 4px; margin: 0 0 12px; border-bottom: 2px solid var(--line); overflow-x: auto; }
.tabs a { padding: 8px 12px; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; font-weight: 600; color: var(--muted); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary-2); }
.status-admin .status-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.status-admin .status-main { display: flex; align-items: center; gap: 8px; }
.status-admin .status-main input[type=color] { width: 44px; height: 36px; padding: 2px; margin: 0; flex: none; }
.status-admin .status-main input:not([type=color]) { flex: 1 1 auto; margin: 0; min-width: 0; }
.status-admin .status-flags { display: grid; gap: 2px; margin-top: 6px; }
.status-admin .status-move { display: flex; gap: 4px; margin-top: 6px; }
.status-admin .status-new { border-style: dashed; }
.status-admin h3 { margin: 0 0 6px; font-size: .95rem; }
.sr-default { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.segmented a { padding: 7px 14px; color: var(--primary-2); font-weight: 600; }
.segmented a.active { background: var(--primary-2); color: #fff; }
.plan-month th, .plan-month td { min-width: 58px; padding: 4px; font-size: .78rem; text-align: center; }
.plan-month th:first-child { min-width: 110px; text-align: left; }
.plan-month .chip { max-width: 70px; font-size: .72rem; padding: 2px 4px; }
.plan-chip { background: color-mix(in srgb, var(--pc) 16%, #fff); color: var(--pc); border-left: 3px solid var(--pc); font-weight: 600; }
.plan td { position: relative; }
.plan-add { display: block; text-align: center; color: #b4bfcc; font-weight: 700; border-radius: 6px; line-height: 1.6; }
.plan-add:hover, .plan-add:focus { background: #eef3fa; color: var(--primary-2); }
.assign-row.is-selected { background: #fffbe6; border-radius: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-head span { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.cal-day { display: flex; flex-direction: column; gap: 2px; min-height: 62px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; color: inherit; overflow: hidden; min-width: 0; }
.cal-day.off { background: #f7f8fa; }
.cal-day.other-month { opacity: .45; }
.cal-day.is-today .cal-num { background: var(--primary-2); color: #fff; border-radius: 10px; padding: 0 6px; }
.cal-day.is-selected { outline: 2px solid var(--primary-2); outline-offset: -1px; }
.cal-num { font-size: .8rem; font-weight: 700; align-self: flex-start; }
.cal-mark { display: block; font-size: .64rem; line-height: 1.3; padding: 1px 3px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #eef1f5; }
.cal-einsatz { background: color-mix(in srgb, var(--pc) 18%, #fff); color: var(--pc); font-weight: 700; }
.cal-hol { background: #fff4d6; color: #8a6100; }
.cal-mark.chip-pending { border: 1px dashed currentColor; opacity: .7; }
@media (min-width: 700px) { .cal-day { min-height: 86px; } .cal-mark { font-size: .74rem; } }
.cal-assignment { margin-top: 8px; }
.cal-request { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.segmented-radio { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.segmented-radio label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin: 0; font-weight: 600; }
.segmented-radio label:has(input:checked) { border-color: var(--primary-2); background: #e7eef8; }
.segmented-radio input { width: auto; margin: 0; }
.chip-zeitausgleich { background: #f1ecf8; color: #6b3fa0; }
@media (max-width: 699px) {
  .cal-einsatz, .cal-hol { font-size: 0; height: 7px; padding: 0; border-radius: 4px; }
  .cal-einsatz { background: var(--pc); }
  .cal-hol { background: #f0c75e; }
}
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 4px; font-size: .82rem; }
.cal-legend span { display: inline-flex; align-items: center; }
/* 2.3.1: Profil auch am Handy erreichbar (nur Symbol) */
.profil-ico { display: none; }
@media (max-width: 899px) {
  .usermenu a.profil-link { display: inline-flex !important; align-items: center; }
  .usermenu a.profil-link .profil-name { display: none; }
  .usermenu a.profil-link .profil-ico { display: inline; font-size: 1.15rem; }
}
