/* beasy — Oberfläche im trueIT-CI. Farben nur über die Variablen aus ci/tokens.css. */

body { background: var(--c-paper); color: var(--c-ink); font-size: 14px; line-height: 1.45; }
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

/* Navigation */
.nav { background: var(--c-primary); color: var(--c-white); padding: var(--s-5) var(--s-4); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s-2); }
.nav .logo { width: 132px; margin: 0 var(--s-2) var(--s-5); }
.nav .produkt { font-family: var(--f-head); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary-tint); margin: calc(-1 * var(--s-4)) var(--s-2) var(--s-4); opacity: .8; }
.nav a { display: block; color: var(--c-white); text-decoration: none; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); opacity: .82; font-weight: 500; }
.nav a:hover { background: var(--c-primary-deep); opacity: 1; }
.nav a.aktiv { background: var(--c-primary-bright); opacity: 1; }
.nav .gruppe { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-stone); margin: var(--s-4) var(--s-3) 0; }
.nav .fuss { margin-top: auto; font-size: 12px; color: var(--c-primary-tint); opacity: .8; padding: 0 var(--s-3); }
.nav .fuss a { display: inline; padding: 0; opacity: 1; text-decoration: underline; }

/* Kopf */
main { padding: var(--s-5) var(--s-6) var(--s-7); min-width: 0; }
.kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.kopf h1 { font-family: var(--f-head); font-weight: 600; font-size: 28px; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.kopf .unter { color: var(--c-slate); margin-top: var(--s-1); }
.jahre { display: flex; gap: var(--s-1); background: var(--c-white); border: 1px solid var(--c-mist); border-radius: var(--r-md); padding: 3px; }
.jahre a { padding: 6px 14px; border-radius: 4px; text-decoration: none; color: var(--c-slate); font-weight: 600; }
.jahre a.aktiv { background: var(--c-primary); color: var(--c-white); }

/* Karten, Kennzahlen */
.karte { background: var(--c-white); border: 1px solid var(--c-mist); border-radius: var(--r-md); padding: var(--s-5); margin-bottom: var(--s-5); box-shadow: var(--e-1); }
.karte h2 { font-family: var(--f-head); font-size: 18px; font-weight: 600; margin: 0 0 var(--s-4); }
.karte h2 small { font-family: var(--f-body); font-weight: 400; color: var(--c-stone); font-size: 13px; margin-left: var(--s-2); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s-4); margin-bottom: var(--s-5); }
.kpi { background: var(--c-white); border: 1px solid var(--c-mist); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); box-shadow: var(--e-1); }
.kpi .label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-stone); font-weight: 600; }
.kpi .wert { font-family: var(--f-head); font-size: 28px; font-weight: 600; margin-top: var(--s-1); font-variant-numeric: tabular-nums; }
.kpi .zusatz { color: var(--c-slate); font-size: 13px; margin-top: 2px; }
.kpi.betont { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.kpi.betont .label, .kpi.betont .zusatz { color: var(--c-primary-tint); }
.raster2 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s-5); }
@media (max-width: 1200px) { .raster2 { grid-template-columns: 1fr; } }

/* Tabellen */
.tab-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--c-cloud); text-align: left; vertical-align: top; }
th { font-size: 12px; color: var(--c-slate); font-weight: 600; background: var(--c-paper); border-bottom: 1px solid var(--c-mist); position: sticky; top: 0; white-space: nowrap; }
td.z, th.z { text-align: right; white-space: nowrap; }
tr.summe td { font-weight: 700; border-top: 2px solid var(--c-primary); border-bottom: none; background: var(--c-paper); }
tr.gruppe td { background: var(--c-primary-tint); font-weight: 600; }
tbody tr:hover td { background: var(--c-paper); }
.klein { font-size: 12px; color: var(--c-stone); }
.muted { color: var(--c-stone); }
.mono { font-family: var(--f-mono); font-size: 12px; }
td.fc { font-weight: 700; font-style: italic; }                       /* Forecast — wie in der Mappe */
td.rap { background: var(--c-accent-soft); }                           /* geprüfte Rapporte */
.neg { font-weight: 700; }
.neg::before { content: "▼ "; font-size: 10px; color: var(--c-primary-bright); }

/* Hinweise ohne Statusfarbe: Symbol + Text */
.hinweise { list-style: none; margin: 0; padding: 0; }
.hinweise li { padding: var(--s-2) 0 var(--s-2) var(--s-5); border-bottom: 1px solid var(--c-cloud); position: relative; }
.hinweise li::before { content: "!"; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-primary-bright); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 16px; }
.hinweise li.krit::before { background: var(--c-primary); content: "!!"; font-size: 9px; }
.hinweise b { font-weight: 600; color: var(--c-slate); margin-right: var(--s-2); }
.marke { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: var(--r-pill); background: var(--c-cloud); color: var(--c-slate); white-space: nowrap; }
.marke.ok { background: var(--c-accent-soft); color: var(--c-ink); }
.marke.achtung { background: var(--c-primary-bright); color: #fff; }

/* Kostendach-Balken */
.meter { position: relative; height: 8px; background: var(--c-cloud); border-radius: 4px; min-width: 90px; }
.meter span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--c-primary-soft); }
.meter.voll span { background: var(--c-primary); }

/* Heatmap Auslastung */
td.heat { text-align: center; font-size: 12px; min-width: 44px; border: 2px solid var(--c-white); border-radius: 4px; }
td.heat.inaktiv { background: repeating-linear-gradient(45deg, var(--c-cloud) 0 3px, var(--c-white) 3px 7px); }
td.heat.ueber { outline: 2px solid var(--c-ink); outline-offset: -3px; font-weight: 700; }

/* Diagramm */
.chart text { font-family: var(--f-body); font-size: 11px; fill: var(--c-stone); }
.chart .grid { stroke: var(--c-cloud); }
.chart .achse { stroke: var(--c-mist); }
.chart path:hover, .chart circle:hover { opacity: .8; }
.legende { display: flex; gap: var(--s-4); flex-wrap: wrap; font-size: 12px; color: var(--c-slate); margin-bottom: var(--s-2); }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legende i.linie { height: 2px; width: 16px; vertical-align: 3px; background: var(--c-ink); border-radius: 0; }

/* Formulare */
.filter { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; margin-bottom: var(--s-4); }
select, input[type=text], input[type=password], input[type=file], input[type=number] { font: inherit; padding: 7px 10px; border: 1px solid var(--c-mist); border-radius: var(--r-md); background: var(--c-white); color: var(--c-ink); }
td input[type=text] { width: 100%; padding: 4px 6px; }
input:focus, select:focus { outline: 2px solid var(--c-primary-soft); outline-offset: 0; }
.btn { padding: 9px 16px; font-size: 14px; }
.btn-klein { padding: 6px 12px; font-size: 13px; }
.meldungen { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.meldungen li { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-primary-tint); border-left: 4px solid var(--c-primary-bright); margin-bottom: var(--s-2); }
.meldungen li.error { background: var(--c-white); border-left-color: var(--c-primary); font-weight: 600; }

/* Anmeldung */
.login { min-height: 100vh; display: grid; place-items: center; background: var(--c-primary); }
.login .karte { width: 380px; padding: var(--s-6); }
.login img { width: 150px; margin-bottom: var(--s-5); }
.login label { display: block; font-size: 12px; font-weight: 600; color: var(--c-slate); margin: var(--s-3) 0 var(--s-1); }
.login input { width: 100%; }

/* Erfassen */
.aktionen { display: flex; gap: var(--s-2); justify-content: flex-end; margin: calc(-1 * var(--s-3)) 0 var(--s-3); }
.formular .felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-3) var(--s-4); }
.formular .feld { display: flex; flex-direction: column; gap: 4px; }
.formular h2.block { font-size: 15px; margin: var(--s-5) 0 var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--c-mist); }
.formular h2.block:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.formular .feld.haken input { width: 18px; height: 18px; align-self: flex-start; }
.formular .feld.breit { grid-column: 1 / -1; }
.formular .feld[hidden] { display: none; }
table.verhaeltnis-maske { width: 100%; border-collapse: collapse; }
table.verhaeltnis-maske th { text-align: left; font-size: 12px; font-weight: 600; color: var(--c-slate); padding: 0 4px 4px; }
table.verhaeltnis-maske td { padding: 3px 4px; vertical-align: top; }
table.verhaeltnis-maske td .zahl, table.verhaeltnis-maske input.zahl { text-align: right; }
table.verhaeltnis-maske [name$=-pensum], table.verhaeltnis-maske [name$=-provision] { width: 70px; }
table.verhaeltnis-maske [name$=-lohn] { width: 110px; }
table.verhaeltnis-maske td.aus > * { visibility: hidden; }
table.verhaeltnis-maske tr.geloescht td > *:not(label.weg) { opacity: .35; }
table.verhaeltnis-maske label.weg { display: flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; padding-top: 8px; }
table.verhaeltnis-maske label.weg input { width: auto; }
.formular label { font-size: 12px; font-weight: 600; color: var(--c-slate); }
.formular input, .formular select, .formular textarea { width: 100%; font: inherit; padding: 7px 10px; border: 1px solid var(--c-mist); border-radius: var(--r-md); background: var(--c-white); color: var(--c-ink); box-sizing: border-box; }
input[type=date], textarea { font: inherit; padding: 7px 10px; border: 1px solid var(--c-mist); border-radius: var(--r-md); background: var(--c-white); color: var(--c-ink); }
.feld.fehler input, .feld.fehler select, tr.fehler input, tr.fehler select { border-color: var(--c-primary); border-width: 2px; }
.fehlertext { font-size: 12px; font-weight: 600; color: var(--c-primary); }
.fehlertext::before { content: "! "; }
.knoepfe { display: flex; gap: var(--s-3); align-items: center; margin-top: var(--s-4); flex-wrap: wrap; }
.knoepfe .rechts { margin-left: auto; }
.knoepfe form { margin: 0; }
table.raster td { padding: 3px 4px; vertical-align: middle; }
table.raster input, table.raster select { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--c-mist); border-radius: 4px; background: var(--c-white); color: var(--c-ink); box-sizing: border-box; }
table.raster select { max-width: 230px; }
table.raster input.zahl { width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
table.raster td.monat input.zahl { width: 52px; }
table.raster tr.neu td { background: var(--c-paper); }
table.raster td.abw { font-weight: 700; }
ul.liste { margin: 0; padding-left: var(--s-4); }
ul.liste li { margin-bottom: var(--s-2); }
ul.liste b { color: var(--c-slate); margin-right: var(--s-1); }
.schritte ol { margin: 0 0 var(--s-3); padding-left: var(--s-5); }
form.loeschen { margin: 0; display: inline; }
form.loeschen button, button.x { background: none; border: 0; color: var(--c-stone); cursor: pointer; font-size: 13px; padding: 2px 6px; border-radius: 4px; }
form.loeschen button:hover, button.x:hover { background: var(--c-primary-tint); color: var(--c-primary); }
table.raster td.gesperrt input { background: var(--c-paper); color: var(--c-stone); border-style: dashed; }
th.gesperrt { color: var(--c-stone); }
.passwort { border-left: 4px solid var(--c-primary-bright); }
.passwort .gross { font-size: 20px; letter-spacing: .04em; user-select: all; }
tr.inaktiv td { color: var(--c-stone); }

/* Navigation: Logo führt zum Cockpit; Erfassung & Verwaltung abgesetzt */
.nav { overflow-y: auto; }
.nav a.logo-link { padding: 0; background: none; opacity: 1; }
.nav a.logo-link:hover { background: none; opacity: .85; }
.nav .verwaltung { margin-top: var(--s-5); padding: var(--s-2) var(--s-2) var(--s-3); background: var(--c-primary-deep); border-radius: var(--r-md); display: flex; flex-direction: column; gap: var(--s-1); }
.nav .verwaltung .gruppe { margin: var(--s-2) var(--s-2) var(--s-1); }
.nav .fuss { margin-top: auto; padding-top: var(--s-4); }

/* Löschen gut sichtbar */
form.loeschen button, button.x { border: 1px solid var(--c-primary-bright); color: var(--c-primary-bright); background: var(--c-white); font-weight: 700; font-size: 14px; line-height: 1; padding: 4px 8px; border-radius: var(--r-md); cursor: pointer; }
form.loeschen button:hover, button.x:hover { background: var(--c-primary-bright); color: var(--c-white); }

/* Forecast gruppiert nach Abruf */
table.forecast tbody.gruppe tr.gruppe td { border-top: 2px solid var(--c-mist); }
table.forecast td.einzug { padding-left: 24px; }
table.forecast td.monat.ist { font-weight: 700; color: var(--c-slate); background: var(--c-cloud); }
table.forecast td.monat.rap { background: var(--c-accent-soft); color: var(--c-slate); }
table.forecast td.rest { white-space: nowrap; font-weight: 600; }
table.forecast .rest-wert.knapp { color: var(--c-primary-bright); }
table.forecast .rest-wert.knapp::before { content: "▼ "; font-size: 10px; }
.legende i.leg-ist { background: var(--c-cloud); border: 1px solid var(--c-mist); }
.legende i.leg-rap { background: var(--c-accent-soft); }
.legende i.leg-offen { background: var(--c-white); border: 1px solid var(--c-mist); }

/* Bemerkung wächst beim Hineinklicken */
textarea.wachsend { width: 130px; height: 28px; min-height: 28px; resize: none; font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--c-mist); border-radius: 4px; overflow: hidden; transition: width .15s, height .15s; vertical-align: top; }
textarea.wachsend:focus { width: 280px; height: 96px; overflow: auto; resize: vertical; box-shadow: var(--e-1); }

/* Hierarchie Kunde → Vertrag/Abruf → Person/Position */
tr.kunde td { background: var(--c-primary); color: var(--c-white); font-weight: 700; font-family: var(--f-head); }
tr.kunde td .klein { color: var(--c-primary-tint); }
td.einzug1 { padding-left: 20px !important; }
td.einzug2 { padding-left: 40px !important; }
table.forecast td.einzug2 select { max-width: 210px; }
.nav a.hilfe { margin-top: var(--s-3); opacity: .7; }

/* Hilfe: Schema */
.schema { display: flex; flex-direction: column; gap: var(--s-4); margin-bottom: var(--s-4); }
.schema .kette, .schema .zufluss { display: flex; align-items: stretch; gap: var(--s-2); flex-wrap: wrap; }
.schema .box { border: 1px solid var(--c-mist); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); background: var(--c-white); min-width: 150px; display: flex; flex-direction: column; gap: 2px; }
.schema .box span { font-size: 12px; color: var(--c-stone); }
.schema .box.betont { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.schema .box.betont span { color: var(--c-primary-tint); }
.schema .box.klein-box { min-width: 120px; padding: var(--s-2) var(--s-3); background: var(--c-paper); }
.schema .zufluss { margin-left: auto; margin-right: 0; justify-content: flex-end; }
.schema .pfeil { align-self: center; font-size: 20px; color: var(--c-stone); font-weight: 700; }
.schema .pfeil.hoch { font-size: 13px; font-weight: 600; flex-basis: 100%; text-align: right; }
tr.kunde a.hell { color: var(--c-white); text-decoration: underline; }
tr.ferien td { background: var(--c-paper); }
td.ferien-zelle input.zahl { width: 52px; }
td .hinweis-ma { max-width: 220px; margin-top: 2px; color: var(--c-slate); }
tfoot tr.soll td { background: var(--c-paper); font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--c-cloud); }
tfoot tr.soll.pensum td { border-top: 2px solid var(--c-primary); }
tfoot tr.soll.ergebnis td { font-weight: 700; }
tfoot tr.soll.diff td { border-bottom: 2px solid var(--c-primary); }

/* Monatsspalten: Überschrift, Eingabe, IST und Summen an derselben rechten Kante */
table.raster td.monat, table.raster td.ferien-zelle, table.raster td.gsum,
table.raster tfoot td, table.raster td.heat { text-align: right; }
table.raster td.monat, table.raster td.ferien-zelle { width: 58px; min-width: 58px; padding-left: 2px; padding-right: 4px; }
table.raster td.monat input.zahl, table.raster td.ferien-zelle input.zahl { width: 54px; margin-left: auto; display: block; text-align: right; }
table.raster thead th.z { padding-right: 8px; }
table.raster td.monat.ist, table.raster td.monat.rap { padding-right: 9px; }
table.raster td.heat { text-align: center; }
table.raster th.z, table.raster td.z { padding-right: 11px; }
table.raster td.monat:not(.ist):not(.rap), table.raster td.ferien-zelle { padding-right: 4px; }
table.raster td.monat.ist, table.raster td.monat.rap { padding-right: 11px; }
td.zfehler input { border: 2px solid var(--c-primary-bright) !important; background: var(--c-primary-tint) !important; }

/* Knöpfe — eine Regel für alle Masken:
   gefüllt (btn-primary) = Hauptaktion: Speichern, Anlegen
   umrandet (btn-secondary, klein) = Bearbeiten (✎) und Neu erfassen (+), überall gleich
   schlicht (btn-ghost) = Nebenaktion: Abbrechen, Zurück, Sperren */
.btn-secondary { font-weight: 600; }
.aktionen .btn, .knoepfe .btn { white-space: nowrap; }

/* Einkauf im Raster: Grundsatz + Link «ab …» für einen Satzwechsel */
table.raster td.einkauf { white-space: nowrap; }
table.raster td.einkauf .klein { white-space: normal; max-width: 120px; }
a.satz-link { margin-left: 4px; font-size: 12px; color: var(--c-primary); text-decoration: none; border: 1px solid var(--c-primary); border-radius: 4px; padding: 1px 5px; }
a.satz-link:hover { background: var(--c-primary-tint); }
table.raster input:disabled, .formular input:disabled { background: var(--c-paper); color: var(--c-stone); border-style: dashed; }
.nav .version { margin-top: var(--s-2); font-size: 11px; opacity: .75; font-variant-numeric: tabular-nums; }

/* Aufklappbare Tabellen und Zeilenstreifen */
table.klappbar tr.klapp { cursor: pointer; }
button.klapper { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin: -2px 8px 0 0; vertical-align: middle; border-radius: 4px; cursor: pointer; color: inherit; }
button.klapper::before { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); margin-left: -2px; transition: transform var(--t-fast); }
tr.klapp.offen button.klapper::before { transform: rotate(45deg); margin: -3px 0 0 0; }
tr.klapp:hover button.klapper { background: var(--c-mist); }
tr.kunde.klapp:hover button.klapper { background: var(--c-primary-bright); }
button.klapper:focus-visible { outline: 2px solid var(--c-primary-soft); }
table.klappbar td.einzug2 { padding-left: 50px !important; }
table.klappbar tr:not(.klapp) > td.einzug1 { padding-left: 48px !important; }
a.stift { text-decoration: none; opacity: .6; margin-left: 6px; font-size: 13px; }
a.stift:hover { opacity: 1; }
tr.kunde a.stift { color: var(--c-white); }
table.zebra tbody tr.streifen td { background: var(--c-cloud); }
table.zebra tbody tr:hover td { background: var(--c-primary-tint); }
table.zebra tbody tr.kunde:hover td { background: var(--c-primary); }

/* Marken: grün (Akzent) = in Ordnung, Schiefer = abgelaufen/vorbei, Blau gefüllt = Achtung.
   Die CI kennt noch keine Statusfarben (Warnung/Fehler) — bis dahin nur Token-Farben. */
.marke.ok { background: var(--c-accent); color: var(--c-white); }
.marke.abgelaufen { background: var(--c-slate); color: var(--c-white); }
.marke.achtung::before { content: "! "; }
.filter .rechts-aussen { margin-left: auto; display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.nav .zaehler { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px; border-radius: var(--r-pill); background: var(--c-white); color: var(--c-primary); font-size: 11px; font-weight: 700; text-align: center; }
.nav .fuss a.melden { display: block; margin: var(--s-3) 0 0; text-decoration: none; font-weight: 600; opacity: .9; }
.nav .fuss a.melden:hover { opacity: 1; text-decoration: underline; }
.nav .fuss a.version { display: block; margin-top: var(--s-2); font-size: 11px; opacity: .7; text-decoration: none; font-variant-numeric: tabular-nums; }
.changelog h2 { margin-top: var(--s-5); }
.changelog h2:first-child { margin-top: 0; }
.changelog h3 { font-family: var(--f-head); font-size: 15px; margin: var(--s-4) 0 var(--s-2); color: var(--c-slate); }
/* Status Rahmenvertrag: hängig hervorgehoben, in Evaluation umrandet */
.marke.offen { background: var(--c-white); color: var(--c-primary-bright); border: 1px solid var(--c-primary-bright); }
.mitarbeiter-hinweis a, .karte h2 small a, p.muted a { color: var(--c-primary-bright); text-decoration: underline; }

/* Marken in Tabellen immer auf eigener Zeile unter dem Text */
td .marke { display: table; margin-top: 3px; }
/* Version unten links dezent */
.nav .fuss a.version { font-size: 10px; opacity: .45; letter-spacing: .02em; }
/* Knöpfe in Tabellenzeilen: umrandet, nebeneinander */
td .btn + .btn { margin-left: 4px; }
/* Parameter: Zeile zum Löschen markiert */
tr.wird-geloescht td { text-decoration: line-through; color: var(--c-stone); }
tr.wird-geloescht input { text-decoration: line-through; }
td.einzug3 { padding-left: 76px !important; }
tr.person td { font-size: 13px; color: var(--c-slate); }

/* Meldefenster: verschiebbar, nicht modal */
.fenster { position: fixed; right: 24px; bottom: 24px; width: 520px; max-width: calc(100vw - 48px); height: 600px; max-height: calc(100vh - 48px);
  background: var(--c-white); border: 1px solid var(--c-mist); border-radius: var(--r-lg); box-shadow: var(--e-3); z-index: 50; display: flex; flex-direction: column; overflow: hidden; resize: both; }
.fenster[hidden] { display: none; }
.fenster-kopf { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); background: var(--c-primary); color: var(--c-white); cursor: move; user-select: none; }
.fenster-kopf .klein { color: var(--c-primary-tint); flex: 1; }
.fenster-zu { all: unset; cursor: pointer; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.fenster-zu:hover { background: var(--c-primary-bright); }
.fenster iframe { border: 0; flex: 1; width: 100%; background: var(--c-paper); }
body.rahmen { padding: var(--s-3); background: var(--c-paper); }
body.rahmen .karte { padding: var(--s-4); margin-bottom: var(--s-3); }
body.rahmen .formular .felder { grid-template-columns: 1fr; }
body.rahmen .formular .feld[style] { grid-column: auto !important; }

/* Personenseite: Abwesenheit und interne Arbeit farblich von den Einsätzen getrennt */
table.raster tr.abwesend td { background: var(--c-cream); }
table.raster tr.intern td { background: var(--c-primary-tint); }
table.raster tr.abwesend td:first-child { border-left: 4px solid var(--c-stone); }
table.raster tr.intern td:first-child { border-left: 4px solid var(--c-primary-soft); }
table.raster tr.zeile td:first-child { border-left: 4px solid var(--c-accent); }
/* Zahlen in Eingaberastern rechtsbündig unter der Überschrift */
table.raster td.z input { text-align: right; margin-left: auto; display: block; }
table.raster td.aktion { width: 1%; white-space: nowrap; text-align: right; }

/* Personenseite: Eckdaten der Person, Jahr als Reiter unter den jahresunabhängigen Blöcken */
.eckdaten { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin: 0 0 var(--s-3); }
.eckdaten dt { font-size: 12px; font-weight: 600; color: var(--c-slate); }
.eckdaten dd { margin: 2px 0 0; }
.jahr-reiter { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-5) 0 var(--s-4); flex-wrap: wrap; }
.jahr-reiter .jahre { display: inline-flex; }
tr.gewaehlt td { background: var(--c-primary-tint); }

/* Change Requests: Knöpfe unter der Antwort statt in eigener Spalte — der Text behält die Breite */
.cr-knoepfe { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); align-items: center; margin-top: var(--s-1); }
table.cr td, table.protokoll td { vertical-align: top; }
