/* =====================================================================
   Staffly — app-wide design system
   Look: helles Theme (Creme-Seite + weiße Karten, dunkle Schrift) — an Desk
   angeglichen. Gold-Akzent (#F7A600) für Buttons/aktive Elemente; für Links
   auf Weiß ein dunkleres, lesbares Gold (--link). Schrift: Montserrat
   (selbst gehostet, siehe fonts.css).
   Das helle Theme ist das einzige Theme. Die Tokens in :root sind die einzige
   Stelle für Farben: Templates setzen keine eigenen Farbwerte inline, sondern
   nur Klassen, var(--…) oder die vom Admin gewählte Abwesenheitsfarbe.
   ===================================================================== */

:root {
    --page: #F3F1ED;
    --page-line: #E4DFD5;
    --topbar: #FFFFFF;
    --board: #FFFFFF;
    --panel: #F6F3EE;
    --panel-2: #EFEBE1;
    --border: #E2DCCF;
    --border-soft: #EDE8DF;
    --control-border: #908C83;
    --placeholder: #72767F;
    --gold: #F7A600;
    /* Gold darkened only as far as it still reads as the brand colour, so link
       text stays legible on white and on the panels. */
    --link: #8F5C00;
    --text: #1B2233;
    --ink-dark: var(--text);
    --label-strong: #3C4252;
    --muted: #434A59;
    --label: #6A665A;
    --nav-text: #4A4640;
    --nav-hover-bg: #F0EDE7;
    --nav-hover-text: #1B1B1B;
    --nav-muted: #6B6559;
    --on-dark: #FFFFFF;
    --pos: #24734B;
    --pos-bg: rgba(46, 148, 96, .13);
    --pos-line: rgba(46, 148, 96, .32);
    --neg: #B13A35;
    --neg-bg: rgba(200, 68, 63, .12);
    --neg-line: rgba(200, 68, 63, .30);
    --blue: #2B67A4;
    --on-blue: #FFFFFF;
    --blue-bg: rgba(46, 111, 176, .12);
    --blue-line: rgba(46, 111, 176, .30);
    --gold-bg: rgba(247, 166, 0, .18);
    --gold-line: rgba(247, 166, 0, .40);
    --neutral-bg: rgba(91, 98, 115, .10);
    /* One step darker than the accent, so text stays readable on its tinted
       background. */
    --pos-ink: #1E6E44;
    --neg-ink: #A3302B;
    --gold-ink: #8A5A00;
    --blue-ink: #1F5285;
    --cal-cell: #EFEAE0;
    --cal-cell-text: #565D6E;
    --cal-weekend: #6D6961;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 10px 34px -20px rgba(55, 50, 40, .22);
    --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    font-size: 14px;
    background: var(--page);
    color: var(--ink-dark);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Native Steuerelemente erben die App-Schrift (Montserrat) — sonst fallen
   type=date/number & Co. auf die Serifen-UA-Schrift zurück (siehe Kunden-PDF
   „Schrift prüfen"). Global, damit das auch außerhalb von .board greift. */
input, button, select, textarea, optgroup, option {
    font-family: inherit;
}

.tnum { font-variant-numeric: tabular-nums; }

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ===== Topbar (light) ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--topbar);
    border-bottom: 1px solid var(--page-line);
    padding: 12px 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 68px; width: auto; display: block; }
.mainnav { display: flex; gap: 4px; flex-wrap: wrap; }
.mainnav a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 9px;
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 600;
    font-size: 14px;
}
.mainnav a:hover { background: var(--nav-hover-bg); color: var(--nav-hover-text); }
.mainnav a.active { background: var(--ink-dark); color: var(--on-dark); }
.mainnav .navmenu { position: relative; }
.mainnav .navmenu > summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--nav-text);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.mainnav .navmenu > summary::-webkit-details-marker { display: none; }
.mainnav .navmenu > summary::after { content: "▾"; font-size: 9px; color: var(--label); }
.mainnav .navmenu[open] > summary,
.mainnav .navmenu > summary:hover { background: var(--nav-hover-bg); color: var(--nav-hover-text); }
.mainnav .navmenu > summary.active { background: var(--ink-dark); color: var(--on-dark); }
.mainnav .navmenu > summary.active::after { color: var(--on-dark); }
.mainnav .navmenu-pop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    background: var(--board);
    border: 1px solid var(--page-line);
    border-radius: 11px;
    padding: 6px;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 12px 32px rgba(40, 35, 25, .16);
}
.mainnav .navmenu-pop a { padding: 9px 12px; border-radius: 7px; font-size: 13.5px; white-space: nowrap; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.topbar-user .uname { font-size: 13.5px; font-weight: 700; color: var(--nav-text); }
.topbar-user .ulink { font-size: 13px; color: var(--nav-muted); text-decoration: none; font-weight: 600; }
.topbar-user .ulink:hover { color: var(--link); }
.topbar-user form { margin: 0; }

/* ===== App layout ===== */
.wrap { max-width: 1180px; margin: 22px auto; padding: 0 22px; }

/* ===== Auth layout (logged-out) ===== */
.auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 32px 18px;
}
.auth-logo { height: 72px; width: auto; }

/* ===== Board ===== */
.board {
    background: var(--board);
    border: 1px solid var(--page-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 26px 30px;
    color: var(--text);
}
.board--auth { width: 100%; max-width: 420px; padding: 28px 26px 30px; }

/* ===== Typography inside board ===== */
/* Sizes and weights match Desk, so both Sparverein apps look the same across
   the login handover. */
.board h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; }
.board h2 { font-size: 18px; font-weight: 600; margin: 22px 0 10px; }
.board p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.board a { color: var(--link); text-decoration: none; font-weight: 600; }
.board a:hover { text-decoration: underline; }
.board small { color: var(--label); font-size: 12.5px; }
.board strong { color: var(--text); }
.sec {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    color: var(--label);
    text-transform: uppercase;
    margin: 24px 2px 12px;
}

/* ===== Forms ===== */
.board form { margin: 0 0 6px; }
.board label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--label-strong);
    margin: 0 0 6px;
}
.board input,
.board select,
.board textarea {
    width: 100%;
    font-size: 14.5px;
    color: var(--text);
    background: var(--board);
    border: 1px solid var(--control-border);
    border-radius: 10px;
    padding: 11px 13px;
    margin: 0 0 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.board input::placeholder { color: var(--placeholder); }
.board input:focus,
.board select:focus,
.board textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-bg);
}
.board input[type=checkbox],
.board input[type=radio] { width: auto; margin: 0 8px 0 0; }
.board form ul { margin: -8px 0 12px; padding-left: 18px; }
.board form ul li { color: var(--neg); font-size: 12.5px; font-weight: 600; }
/* Symfony's form theme renders help as <div class="help-text">, which would
   otherwise inherit the full paragraph size and push the next field away. */
.board .help-text {
    margin: -8px 0 16px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
}
/* Bare role="alert" (e.g. login errors) — NOT the flash messages, which carry
   their own flash-* colours and also use role="alert". */
.board [role=alert]:not(.flash) {
    color: var(--neg);
    background: var(--neg-bg);
    border: 1px solid var(--neg-line);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 600;
    margin: 0 0 14px;
}

/* ===== Collection rows (z. B. Arbeitszeit-Blöcke) ===== */
[data-controller="collection"] { margin-bottom: 22px; }
[data-controller="collection"] > button { margin-top: 8px; }
[data-collection-target="list"] { counter-reset: block; }
.block-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    counter-increment: block;
    margin: 0 0 16px;
}
/* Auto-numbered header ("1. Block", "2. Block", …) so it reads clearly that the
   break is the gap between blocks; renumbers itself on add/remove. */
.block-row::before {
    content: counter(block) ". Block";
    flex-basis: 100%;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--label);
    margin-bottom: -2px;
}
.block-row input { width: auto; margin-bottom: 0; }
.block-row > div { margin: 0; }

/* Weekly balance, set off from the table above. */
.wochenbilanz {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.wochenbilanz .werte { font-size: 15px; font-weight: 600; color: var(--muted); }
.wochenbilanz .werte strong { font-size: 18px; margin: 0 4px; }
.wochenbilanz .trenner { color: var(--label); margin: 0 4px; }
.wochenbilanz .aktion { display: flex; align-items: center; gap: 12px; }
.wochenbilanz .aktion form { margin: 0; }

/* Time-account balance headline. */
.kontosaldo {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 8px 0 22px;
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}
.kontosaldo strong { font-size: 28px; letter-spacing: -.01em; }

/* ===== Dashboard ===== */
.dash-sec { font-size: 11px; font-weight: 700; letter-spacing: .13em; color: var(--label); text-transform: uppercase; margin: 24px 2px 12px; }
.dash-sec:first-of-type { margin-top: 6px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 18px; }
.kpi .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--label); text-transform: uppercase; }
.kpi .num { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 2px; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.task-pills { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pill-task { display: inline-flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 11px; padding: 11px 14px; font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.pill-task:hover { border-color: var(--gold); text-decoration: none; }
.pill-task .dot { width: 8px; height: 8px; margin: 0; background: var(--gold); }
.pill-task .go { color: var(--link); font-weight: 700; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.quick { display: block; background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 16px 18px; text-decoration: none; color: var(--text); font-weight: 700; transition: transform .15s, border-color .15s; }
.quick:hover { border-color: var(--border); transform: translateY(-2px); text-decoration: none; }
.quick.cta { background: var(--gold); color: var(--ink-dark); border-color: var(--gold); }
.quick small { display: block; font-weight: 600; color: var(--muted); opacity: 1; margin-top: 3px; }
.quick.cta small { color: var(--ink-dark); opacity: .82; }
.praesenz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.praesenz-item { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 12px; }
.praesenz-item .nm { font-size: 13px; font-weight: 600; color: var(--text); }
.praesenz-item .st { margin-left: auto; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.praesenz-item .st .dot { width: 9px; height: 9px; margin: 0; }

/* Vacation summary box on the employee absences page. */
.urlaubsuebersicht {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 8px 0 18px;
    padding: 14px 18px;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}
.urlaubsuebersicht .trenner { color: var(--label); }

/* Approve/reject controls in a table cell. */
.freigabe-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.freigabe-aktion form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.freigabe-aktion input[type=text] { width: auto; margin: 0; }

/* ===== Buttons ===== */
.btn,
.board button {
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 10px 16px;
    background: var(--gold);
    color: var(--ink-dark);
    transition: filter .15s, background .15s, border-color .15s;
}
.btn:hover,
.board button:hover { filter: brightness(1.04); }
.btn-ghost { background: transparent; border-color: var(--page-line); color: var(--nav-text); }
.btn-ghost:hover { background: var(--nav-hover-bg); filter: none; }

/* The generic `.board a` rule would paint the label in --link gold on the gold
   button. */
.board a.btn { color: var(--ink-dark); text-decoration: none; }
.board a.btn:hover { text-decoration: none; filter: brightness(1.04); }
/* Breathing room around a button-only toolbar line (e.g. "Neu …"). */
.board p:has(> a.btn) { margin: 18px 0; }
/* Trailing back-link ("Zurück …"): clear gap from the content above + a slight indent. */
.board > p:last-child:has(> a) { margin-top: 22px; padding-left: 6px; }
.board .btn-ghost { background: transparent; color: var(--label-strong); border-color: var(--border); }
.board .btn-ghost:hover { background: rgba(0, 0, 0, .04); filter: none; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.board table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin: 8px 0 4px;
    background: var(--board);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.table-wrap table { margin: 0; }
.board thead th {
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--label);
    padding: 12px 14px;
    background: var(--panel-2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.board tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text);
    vertical-align: middle;
}
.board tbody tr:last-child td { border-bottom: none; }
.board td a { margin-right: 10px; }
.board td form { display: inline-block; margin: 0 6px 0 0; }
.board td button { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}
.badge.pos { color: var(--pos); background: var(--pos-bg); }
.badge.neg { color: var(--neg); background: var(--neg-bg); }
.badge.gold { color: var(--link); background: var(--gold-bg); }
.badge.blue { color: var(--blue); background: var(--blue-bg); }
.badge.neutral { color: var(--muted); background: var(--neutral-bg); }
.badge.ort { margin-left: 6px; padding: 1px 7px; vertical-align: middle; }

/* ===== Flash messages ===== */
.flash {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px;
    border: 1px solid transparent;
}
.flash-success { color: var(--pos-ink); background: var(--pos-bg); border-color: var(--pos-line); }
.flash-danger,
.flash-error { color: var(--neg-ink); background: var(--neg-bg); border-color: var(--neg-line); }
.flash-warning { color: var(--gold-ink); background: var(--gold-bg); border-color: var(--gold-line); }
.flash-info,
.flash-notice { color: var(--blue-ink); background: var(--blue-bg); border-color: var(--blue-line); }

/* ===== Responsive ===== */
@media (max-width: 720px) {
    .topbar { padding: 10px 16px; gap: 12px; }
    .brand-logo { height: 48px; }
    .mainnav { order: 3; width: 100%; }
    .wrap { padding: 0 14px; margin: 16px auto; }
    .board { padding: 20px 16px 24px; }
    .auth-logo { height: 60px; }
}

/* Steuer-Export */
.seiten-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.jahr-wahl { display: flex; align-items: center; gap: 8px; }
.jahr-wahl label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--label); text-transform: uppercase; }
.jahr-wahl select { width: auto; margin: 0; padding: 7px 30px 7px 12px; }
.board .hinweis { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 4px 0 20px; max-width: 640px; }
.export-aktionen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 8px; }
.export-aktionen form { margin: 0; }
.tage-details { margin-top: 20px; }
.tage-details > summary { cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 6px 0; list-style-position: inside; }
.tage-details > summary:hover { color: var(--ink-dark); }

/* ===== Monats-Akkordion (Zeitkonto-Verlauf) ===== */
.verlauf-kopf .hinweis { margin-bottom: 10px; }
.alle-schalter { font-size: 13px; font-weight: 600; color: var(--link); text-decoration: none; white-space: nowrap; }
.alle-schalter:hover { text-decoration: underline; }
.akkordion { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.akkordion .monat { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--board); overflow: hidden; }
.akkordion .monat > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 11px 16px;
    font-weight: 600;
    color: var(--ink-dark);
    background: var(--panel-2);
}
.akkordion .monat > summary::-webkit-details-marker { display: none; }
.akkordion .monat > summary::before {
    content: "▸";
    color: var(--label);
    font-size: 11px;
    margin-right: 8px;
    transition: transform .15s ease;
    display: inline-block;
}
.akkordion .monat[open] > summary::before { transform: rotate(90deg); }
.akkordion .monat > summary:hover { background: var(--panel); }
/* Sichtbarer Fokusrahmen für die Tastaturbedienung (Enter/Space klappt auf/zu). */
.akkordion .monat > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.akkordion .monat-name { flex: 1; min-width: 7rem; }
.akkordion .monat-meta { font-weight: 400; font-size: 13px; color: var(--muted); display: inline-flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.akkordion .monat-saldo { font-weight: 700; font-variant-numeric: tabular-nums; }
.akkordion .monat .table-wrap { border-radius: 0; }
.akkordion .monat table { border: none; border-radius: 0; }
/* Kompakte Zeilen im Akkordion – die Monatsgruppen sollen nicht hoch bauen. */
.board table.kompakt thead th { padding: 8px 16px; }
.board table.kompakt tbody td { padding: 7px 16px; }
.board table.kompakt .leer { color: var(--label); }

.board .filter-leiste { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin: 0 0 16px; }
.board .filter-leiste label { margin: 0; }
.board .filter-leiste select { width: auto; margin: 0; display: block; }

@media print {
    .topbar, .mainnav, .topbar-user, .export-aktionen, .jahr-wahl, .tage-details { display: none !important; }
    body, .board { background: #fff !important; color: #000 !important; }
    .board { box-shadow: none !important; padding: 0 !important; }
    .kpi { border: 1px solid #ccc !important; background: #fff !important; }
    .kpi .num, .kpi .lbl { color: #000 !important; }

    /* Im Ausdruck jeden Monat vollständig zeigen – auch eingeklappte.
       Erste Regel deckt Firefox/ältere Chromium ab, ::details-content das
       neuere Chromium; der Chevron entfällt auf Papier. */
    .akkordion .monat > :not(summary) { display: block !important; }
    .akkordion .monat::details-content { content-visibility: visible !important; }
    .akkordion .monat > summary::before { content: none; }
    .akkordion .monat, .akkordion .monat > summary { break-inside: avoid; }
}

/* Aktions-/Export-Kasten (Jahresübertrag, Krank-Export …) */
.aktion-box { margin-top: 28px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); max-width: 680px; }
.aktion-box h2 { margin: 0 0 6px; font-size: 16px; }
.aktion-box p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; }

/* Jahresübertrag-Erinnerung (Admin-Dashboard) */
.jahres-erinnerung {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0 20px;
    padding: 14px 18px;
    background: var(--gold-bg);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.jahres-erinnerung:hover { background: rgba(247, 166, 0, .26); text-decoration: none; }
.jahres-erinnerung .je-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink-dark);
    font-size: 19px;
    font-weight: 700;
}
.jahres-erinnerung .je-text { font-size: 13.5px; color: var(--text); line-height: 1.5; }
.jahres-erinnerung .je-text strong { display: block; margin-bottom: 1px; }

/* Einheitliche Leerzustände */
.board .empty {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    background: rgba(0, 0, 0, .02);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 26px 20px;
    margin: 10px 0 4px;
}

/* Login/Auth-Feinschliff */
.btn-block { display: block; width: 100%; margin-top: 4px; }

/* Mitarbeiter-Übersicht (Admin-Dashboard) */
.ma-uebersicht .dot { width: 9px; height: 9px; }
.ma-uebersicht .ma-mail { color: var(--muted); font-size: 12px; margin-top: 3px; }
.ma-uebersicht .ma-saldo { font-weight: 700; font-size: 17px; }
.urlaub-ring { display: inline-block; line-height: 0; }

/* Teamkalender (Monatskarten) */
.monatsnav { display: flex; align-items: center; gap: 12px; }
.monatsnav a { color: var(--link); text-decoration: none; font-size: 20px; font-weight: 700; line-height: 1; padding: 2px 6px; }
.monatsnav strong { font-size: 16px; min-width: 150px; text-align: center; }
.kal-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 234px)); justify-content: start; gap: 16px; margin-top: 6px; }
.kal-karte { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 14px 16px; }
.kal-karte .who { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.kal-karte .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.kal-karte .nm { font-weight: 700; font-size: 13.5px; color: var(--text); }
.kal-karte .mini { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.kal-karte .mini .wd { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: var(--label); text-align: center; text-transform: uppercase; padding-bottom: 2px; }
.kal-karte .cell { position: relative; min-height: 30px; border-radius: 6px; background: var(--cal-cell); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--cal-cell-text); font-variant-numeric: tabular-nums; }
.kal-karte .cell.leer { background: transparent; border: 1px dashed rgba(0, 0, 0, .12); }
.kal-karte .cell.we { color: var(--cal-weekend); }
/* Absence colours are chosen freely by admins; mixing them with white keeps the
   dark day number readable on any of them, black included. */
.kal-karte .cell.genehmigt { background: color-mix(in srgb, var(--farbe) 45%, var(--board)); color: var(--text); }
.kal-karte .cell.offen { border: 2px solid var(--farbe); }
.kal-karte .cell.feiertag { background: var(--blue); color: var(--on-blue); }
.kal-karte .cell.half::after { content: ""; position: absolute; inset: 0; border-radius: 6px; background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255,255,255,.5) 4px 7px); }
.kal-karte .cell.today { outline: 2px solid var(--gold); outline-offset: 1px; z-index: 2; }
.kal-legende { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.kal-legende .lg { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.kal-legende .sw { width: 15px; height: 15px; border-radius: 4px; flex-shrink: 0; background: var(--panel-2); }
.kal-legende .sw.hatch { background-image: repeating-linear-gradient(45deg, transparent 0 3px, rgba(0,0,0,.32) 3px 5px); }
.kal-legende .sw.ring { background: transparent; outline: 2px solid var(--gold); outline-offset: -1px; }
.kal-legende .sw.feiertag { background: var(--blue); }
.kal-legende .sw.outline { background: transparent; border: 2px solid var(--muted); }

/* Kalender — Umschalter + Matrix */
.kal-tabs { display: flex; gap: 4px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 11px; padding: 4px; width: fit-content; margin: 4px 0 18px; }
.kal-tabs a { padding: 8px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.kal-tabs a.on { background: var(--gold); color: var(--ink-dark); }
.kal-tabs a:not(.on):hover { color: var(--ink-dark); }

.kal-matrix-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--board); }
.kal-matrix { border-collapse: collapse; width: 100%; min-width: 760px; }
.kal-matrix th, .kal-matrix td { padding: 0; text-align: center; }
.kal-matrix thead th { background: var(--panel-2); color: var(--label); font-size: 10px; font-weight: 700; height: 36px; border-bottom: 1px solid var(--border); }
.kal-matrix thead th .dn { display: block; color: var(--muted); font-size: 11px; }
.kal-matrix thead th.we { color: var(--cal-weekend); }
.kal-matrix thead th.today { color: var(--link); }
.kal-matrix .name { position: sticky; left: 0; background: var(--board); text-align: left; padding: 0 14px; font-weight: 600; font-size: 13px; white-space: nowrap; min-width: 150px; border-right: 1px solid var(--border); color: var(--text); }
.kal-matrix thead .name { background: var(--panel-2); z-index: 3; }
.kal-matrix td.d { border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); height: 36px; position: relative; }
.kal-matrix td.d.we { background: rgba(0, 0, 0, .035); }
.kal-matrix td.d.today { outline: 2px solid var(--gold); outline-offset: -2px; z-index: 1; }
.kal-matrix .bar { position: absolute; inset: 6px 2px; border-radius: 5px; }
.kal-matrix .bar.offen { border: 2px solid var(--farbe); }
.kal-matrix .bar.genehmigt { background: var(--farbe); }
.kal-matrix .bar.feiertag { background: var(--blue); }
.kal-matrix .bar.half { background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255,255,255,.5) 4px 7px); }

/* Kalender — Jahresansicht */
.jahr-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 16px; }
.jahr-kopf .jahr-wahl select { height: 36px; padding: 0 32px 0 12px; }
.kal-jahr { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 234px)); justify-content: start; gap: 14px; }
.kal-jahr .monat-titel { font-weight: 700; font-size: 13px; color: var(--text); margin-bottom: 10px; }

/* Verwaltungs-Dropdown: Unterüberschriften */
.mainnav .navmenu-pop .pop-head { padding: 9px 12px 3px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.mainnav .navmenu-pop .pop-head:first-child { padding-top: 4px; }
