/* GrusCal – Weboberfläche. Ruhiges Arbeitswerkzeug: neutrale Flächen, Kategoriefarben tragen die Information. */

:root {
    --hg: #f3f4f6;
    --flaeche: #ffffff;
    --flaeche-2: #f8f9fa;
    --rand: #dfe3e8;
    --rand-stark: #c3cad2;
    --text: #1c2329;
    --text-2: #55616c;
    --text-3: #7b8691;
    --marke-rot: #cc0033; /* Rot aus dem Firmenlogo */
    --akzent: #2f3a44;
    --akzent-dunkel: #1f272e;
    --akzent-hell: #eceef1;
    --akzent-mittel: #d5dae0;
    --gefahr: #b3261e;
    --gefahr-hell: #fbeceb;
    --erfolg: #2e7d4f;
    --erfolg-hell: #e8f4ed;
    --warn: #8a5a00;
    --warn-hell: #fdf3dc;
    --fokus: #1a6fb0;
    --heute: #fcf9ec;
    --radius: 6px;
    --radius-klein: 4px;
    --schatten: 0 1px 2px rgba(20, 30, 40, .06), 0 2px 8px rgba(20, 30, 40, .06);
    --schatten-gross: 0 12px 40px rgba(20, 30, 40, .22);
    --kopf-h: 56px;
    --schrift: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--schrift);
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
    background: var(--hg);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.005em; }
h2 { font-size: 1.15rem; }
h3 { font-size: .95rem; }
p { margin: 0; }

a { color: var(--akzent); }

:focus-visible {
    outline: 2px solid var(--fokus);
    outline-offset: 2px;
}

.nur-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.sprungmarke {
    position: absolute;
    left: 8px; top: -40px;
    background: var(--akzent);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius);
    z-index: 100;
}
.sprungmarke:focus { top: 8px; }

.mono { font-family: Consolas, "Cascadia Mono", "SF Mono", Menlo, monospace; font-size: .92em; }

/* ------------------------------------------------------------------ Kopf */

.kopf {
    height: var(--kopf-h);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 16px;
    background: #fbfcfd;
    color: var(--text);
    border-bottom: 1px solid var(--rand);
    box-shadow: 0 1px 3px rgba(20, 30, 40, .05);
    position: sticky;
    top: 0;
    z-index: 20;
}

.marke {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 650;
    font-size: 1.05rem;
    letter-spacing: .01em;
    white-space: nowrap;
}
/* Firmenlogo in Originalfarben auf hellem Kopf */
.marke-logo {
    display: flex;
    align-items: center;
    height: 36px;
}
.marke-logo img { height: 100%; width: auto; display: block; }

.hauptnav {
    display: flex;
    gap: 2px;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.hauptnav a {
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: var(--text-2);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    border-top: 3px solid transparent;
    white-space: nowrap;
}
.hauptnav a:hover { color: var(--akzent-dunkel); background: var(--akzent-hell); }
.hauptnav a.aktiv { color: var(--akzent-dunkel); font-weight: 600; border-bottom-color: var(--akzent); }
.hauptnav a:focus-visible { outline-color: var(--fokus); outline-offset: -3px; }

.kopf-rechts { display: flex; align-items: center; gap: 6px; }
.kopf-symbol {
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--text-2);
}
.kopf-symbol:hover { color: var(--akzent-dunkel); background: var(--akzent-hell); }
.kopf-symbol.aktiv { color: #fff; background: var(--akzent); }
.kopf-symbol:focus-visible { outline-color: var(--fokus); }
.benutzermenue { position: relative; }
.benutzer-knopf {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
    color: var(--text);
}
.benutzer-knopf::-webkit-details-marker { display: none; }
.benutzer-knopf:hover { background: var(--akzent-hell); }
.benutzer-knopf:focus-visible { outline-color: var(--fokus); }
.benutzer-initialen {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--akzent);
    color: #fff;
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .03em;
}
.benutzer-name { font-weight: 500; }

.menue-kopf {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rand);
    gap: 1px;
}
.menue-kopf span { color: var(--text-2); font-size: .86rem; }
.menue-rolle { margin-top: 4px; }
.menue-eintrag {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 14px;
    background: none;
    border: 0;
    font: inherit;
    color: var(--text);
    cursor: pointer;
}
.menue-eintrag:hover, .menue-eintrag:focus-visible { background: var(--akzent-hell); outline: none; }

/* --------------------------------------------------------- Ausklapp-Panel */

.ausklapp { position: relative; }
.ausklapp > summary { list-style: none; cursor: pointer; }
.ausklapp > summary::-webkit-details-marker { display: none; }
.ausklapp-inhalt {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    background: var(--flaeche);
    color: var(--text);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    box-shadow: var(--schatten-gross);
    z-index: 30;
    padding: 4px 0;
}
.ausklapp-rechts { left: auto; right: 0; }

/* ------------------------------------------------------------------ Hauptbereich */

main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
main:focus { outline: none; }

.ansicht { flex: 1 1 auto; min-height: 0; }
.ansicht-kalender {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--kopf-h));
    padding: 10px 16px 14px;
    gap: 8px;
}
.ansicht-seite {
    padding: 18px 16px 40px;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

.startfehler {
    max-width: 520px;
    margin: 60px auto;
    display: grid;
    gap: 12px;
}

/* ------------------------------------------------------------------ Knöpfe */

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    font: inherit;
    font-weight: 500;
    color: var(--text);
    background: var(--flaeche);
    border: 1px solid var(--rand-stark);
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .12s, border-color .12s;
}
.knopf:hover { background: var(--flaeche-2); border-color: #aab3bc; }
.knopf:active { background: #eceff2; }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.knopf-primaer { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.knopf-primaer:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.knopf-primaer:active { background: #163542; }
.knopf-gefahr { background: var(--gefahr); border-color: var(--gefahr); color: #fff; }
.knopf-gefahr:hover { background: #8f1d17; border-color: #8f1d17; }
.knopf-gefahr-leise { color: var(--gefahr); border-color: #e3b6b2; }
.knopf-gefahr-leise:hover { background: var(--gefahr-hell); border-color: var(--gefahr); }
.knopf-leise { border-color: transparent; background: transparent; color: var(--text-2); }
.knopf-leise:hover { background: #e9ecef; border-color: transparent; }
.knopf-klein { min-height: 28px; padding: 0 9px; font-size: .88rem; }
.knopf-breit { width: 100%; min-height: 40px; }
.knopf-icon-text { min-width: 32px; padding: 0 8px; font-size: 1.15rem; line-height: 1; }
.knopf-icon {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border: 0; background: none; border-radius: var(--radius);
    font-size: 1.4rem; line-height: 1; color: var(--text-2);
    cursor: pointer;
}
.knopf-icon:hover { background: #eceff2; color: var(--text); }

.knopf-paar { display: inline-flex; }
.knopf-paar .knopf:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.knopf-paar .knopf:last-child { border-radius: 0 var(--radius) var(--radius) 0; margin-left: -1px; }

.segmente {
    display: inline-flex;
    background: #e8ebee;
    border-radius: var(--radius);
    padding: 2px;
    gap: 2px;
}
.segment {
    min-height: 28px;
    padding: 0 12px;
    font: inherit;
    font-weight: 500;
    color: var(--text-2);
    background: transparent;
    border: 0;
    border-radius: var(--radius-klein);
    cursor: pointer;
}
.segment:hover { color: var(--text); background: rgba(255,255,255,.55); }
.segment.aktiv { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* ------------------------------------------------------------ Werkzeugleiste */

.werkzeugleiste {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}
.leiste-gruppe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.leiste-gruppe.rechts { margin-left: auto; }
.ansicht-titel {
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 4px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.person-wahl { min-width: 200px; font-weight: 500; }
.gehe-zu { width: 38px; padding: 0 6px; color: transparent; cursor: pointer; }
.gehe-zu::-webkit-datetime-edit { display: none; }
.gehe-zu::-webkit-calendar-picker-indicator { margin: 0; cursor: pointer; opacity: .7; }
@supports not selector(::-webkit-calendar-picker-indicator) {
    .gehe-zu { width: auto; color: var(--text); }
}

.legende-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    min-height: 22px;
}
.legende {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}
.legende-eintrag { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--text-2); }
.legende-hinweis { font-size: .82rem; color: var(--text-3); margin-left: auto; }
.kat-punkt {
    width: 11px; height: 11px;
    border-radius: 3px;
    flex: 0 0 auto;
    display: inline-block;
}
.kat-belegt { background: repeating-linear-gradient(135deg, #9aa3ab 0 3px, #7f8890 3px 6px) !important; }

/* ------------------------------------------------------------------ Formulare */

input[type=text], input[type=search], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
    font: inherit;
    color: var(--text);
    background: var(--flaeche);
    border: 1px solid var(--rand-stark);
    border-radius: var(--radius);
    min-height: 34px;
    padding: 5px 9px;
    width: 100%;
    max-width: 100%;
}
input[type=date], input[type=time] { font-variant-numeric: tabular-nums; }
textarea { resize: vertical; min-height: 64px; line-height: 1.4; }
select { padding-right: 28px; }
input:hover, select:hover, textarea:hover { border-color: #a9b2bb; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--fokus);
    outline-offset: 0;
    border-color: var(--fokus);
}
input[readonly] { background: var(--flaeche-2); }
input.schmal { width: 76px; }
.werkzeugleiste select, .werkzeugleiste input { width: auto; min-height: 32px; }

input[type=checkbox], input[type=radio] { accent-color: var(--akzent); width: 16px; height: 16px; margin: 0; }

.feld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feld > label, .feld-label, .feld > legend {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: .01em;
}
fieldset.feld { border: 0; padding: 0; margin: 0; }
fieldset.feld > legend { padding: 0; margin-bottom: 4px; }
.feld-hinweis { font-size: .8rem; color: var(--text-3); }
.feld-fest { padding: 6px 0; font-weight: 500; }
.feld-knopf { justify-content: flex-end; align-items: flex-start; }
.passwort-werkzeug { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.passwort-status { font-size: .82rem; color: var(--text-2); }
.passwort-status.erfolg { color: var(--erfolg); }
.passwort-status.fehler { color: var(--gefahr); }
.formular { display: grid; gap: 14px; }
.formular-knoepfe { display: flex; gap: 8px; justify-content: flex-end; }
.formular-fehler { color: var(--gefahr); font-size: .88rem; min-height: 0; }
.formular-fehler:empty { display: none; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.chip, .kat-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--rand-stark);
    border-radius: 999px;
    background: var(--flaeche);
    cursor: pointer;
    user-select: none;
    font-size: .9rem;
}
.chip input, .kat-chip input {
    position: absolute;
    opacity: 0;
    width: 1px; height: 1px;
    pointer-events: none;
}
.chip:hover, .kat-chip:hover { border-color: #9ea8b2; }
.chip:has(input:checked) {
    background: var(--akzent-hell);
    border-color: var(--akzent);
    color: var(--akzent-dunkel);
    font-weight: 600;
}
.chip:has(input:checked)::before {
    content: "✓";
    font-size: .8rem;
    margin-left: -2px;
}
.chip:has(input:focus-visible), .kat-chip:has(input:focus-visible) { outline: 2px solid var(--fokus); outline-offset: 2px; }
.chip-zusatz { font-size: .75rem; color: var(--text-3); font-weight: 400; }

.kat-chip .kat-punkt { background: var(--kat); }
.kat-chip:has(input:checked) {
    border-color: var(--kat);
    box-shadow: inset 0 0 0 1px var(--kat);
    background: color-mix(in srgb, var(--kat) 14%, white);
    font-weight: 600;
}
.kategorie-wahl, .teilnehmer-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.teilnehmer-gruppe + .teilnehmer-gruppe { margin-top: 8px; }
.teilnehmer-gruppe-titel { font-size: .76rem; color: var(--text-3); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }

.schalter { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; width: fit-content; }

.zeit-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zeit-paar { display: flex; gap: 6px; align-items: center; }
.zeit-paar input[type=date] { flex: 1 1 auto; min-width: 0; }
.zeit-paar input[type=time] { flex: 0 0 104px; }
.zeit-paar label { font-size: .86rem; color: var(--text-2); }

.wdh-zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wdh-zeile > select { width: auto; min-width: 150px; }
.wdh-details { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wdh-details input[type=date] { width: auto; }
.wdh-details label, .einheit { font-size: .9rem; color: var(--text-2); }


.info-band {
    font-size: .86rem;
    background: var(--akzent-hell);
    color: var(--akzent-dunkel);
    border-radius: var(--radius-klein);
    padding: 6px 10px;
}
.info-neutral { background: var(--flaeche-2); color: var(--text-2); border: 1px solid var(--rand); }
.info-warnung { background: var(--warn-hell); color: var(--warn); }
.meta { font-size: .8rem; color: var(--text-3); }

.radio-zeile {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: var(--radius);
    cursor: pointer;
}
.radio-zeile:hover { background: var(--flaeche-2); }
.radio-zeile input { margin-top: 3px; }
.radio-zeile > span { display: flex; flex-direction: column; }
.radio-text { color: var(--text-2); font-size: .88rem; }
.check-zeile { display: flex; align-items: center; gap: 9px; padding: 5px 4px; cursor: pointer; border-radius: var(--radius-klein); }
.check-zeile:hover { background: var(--flaeche-2); }

/* ------------------------------------------------------------------ Karten, Tabellen */

.karte {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--schatten);
}
.leer { color: var(--text-3); padding: 12px 0; }
.leer-hinweis {
    position: absolute;
    inset: 40% 0 auto;
    text-align: center;
    color: var(--text-2);
    z-index: 3;
    font-weight: 500;
}
.gedimmt { opacity: .35; pointer-events: none; }

.tabellen-huelle {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    overflow-x: auto;
}
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--rand); vertical-align: middle; }
.tabelle thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; background: var(--flaeche-2); }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle tbody tr:hover { background: #fafbfc; }
.tabelle tr.inaktiv td { color: var(--text-3); }
.aktionen { text-align: right !important; white-space: nowrap; }
.aktionen .knopf + .knopf { margin-left: 4px; }
.aktionen-spalte { width: 1%; }

.status { display: inline-block; font-size: .78rem; padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.status-an { background: var(--erfolg-hell); color: var(--erfolg); }
.status-aus { background: #eceff2; color: var(--text-3); }
.abzeichen {
    display: inline-block;
    font-size: .7rem;
    font-weight: 650;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--akzent-hell);
    color: var(--akzent-dunkel);
    vertical-align: 1px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.kat-vorschau {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-klein);
    font-weight: 600;
    font-size: .88rem;
}
.kat-inline { display: inline-flex; align-items: center; gap: 6px; }

.farb-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.farbwahl { width: 52px !important; height: 34px; padding: 2px !important; cursor: pointer; }
.farbvorschlaege { display: flex; flex-wrap: wrap; gap: 5px; }
.farbfeld { width: 22px; height: 22px; border-radius: 5px; border: 1px solid rgba(0,0,0,.15); cursor: pointer; padding: 0; }
.farbfeld:hover { transform: scale(1.1); }

.kopier-zeile { display: flex; gap: 8px; }
.token-klartext { flex: 1; }
.kopiert { font-size: .86rem; color: var(--erfolg); min-height: 1.2em; }

/* ------------------------------------------------------------------ Verwaltung */

.reiterleiste {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--rand);
    margin-bottom: 18px;
    overflow-x: auto;
    overflow-y: hidden;
}
.reiter {
    padding: 9px 14px;
    color: var(--text-2);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}
.reiter:hover { color: var(--text); background: #eceff2; border-radius: var(--radius) var(--radius) 0 0; }
.reiter.aktiv { color: var(--akzent-dunkel); border-bottom-color: var(--akzent); }
.verwaltung-teil { display: grid; gap: 14px; }
.teil-kopf { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.teil-kopf > div:first-child { display: grid; gap: 4px; max-width: 760px; }
.teil-text { color: var(--text-2); font-size: .9rem; }
.teil-knoepfe { display: flex; gap: 8px; }
.seiten-kopf { display: grid; gap: 4px; margin-bottom: 14px; }
.einstellungen { max-width: 760px; }
.einstellungen fieldset.karte { padding: 14px 16px; }
.einstellungen fieldset.karte > legend { float: left; width: 100%; font-size: .95rem; color: var(--text); margin-bottom: 4px; }
.einstellungen .zeit-paar { margin-top: 10px; }
.einstellungen .zeit-paar input { width: 110px; flex: 0 0 auto; }

.filterleiste {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 10px 12px;
}
.filterleiste label { font-size: .86rem; color: var(--text-2); font-weight: 500; }
.filterleiste input { width: auto; min-height: 32px; }
.filterleiste input.schmal { width: 96px; }

.protokoll-liste { display: grid; gap: 6px; }
.protokoll-eintrag {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
}
.protokoll-eintrag > summary {
    display: grid;
    grid-template-columns: 140px 88px minmax(0, 1fr) minmax(120px, auto);
    gap: 12px;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    list-style: none;
}
.protokoll-eintrag > summary::-webkit-details-marker { display: none; }
.protokoll-eintrag > summary:hover { background: var(--flaeche-2); }
.protokoll-eintrag[open] > summary { border-bottom: 1px solid var(--rand); }
.p-zeit { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: .88rem; }
.p-aktion { font-size: .76rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; text-align: center; }
.aktion-angelegt { background: var(--erfolg-hell); color: var(--erfolg); }
.aktion-geaendert { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.aktion-geloescht { background: var(--gefahr-hell); color: var(--gefahr); }
.p-termin { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-id { color: var(--text-3); font-weight: 400; }
.p-akteur { color: var(--text-2); text-align: right; font-size: .88rem; }
.p-details { padding: 10px 12px 12px; overflow-x: auto; }
.dialog .protokoll-eintrag > summary { grid-template-columns: 140px 88px minmax(0, 1fr); }

.vergleich { border-collapse: collapse; width: 100%; font-size: .9rem; }
.vergleich th, .vergleich td { text-align: left; padding: 5px 10px; border-bottom: 1px solid var(--rand); vertical-align: top; }
.vergleich thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.vergleich tbody th { color: var(--text-2); font-weight: 500; width: 170px; }
.vergleich td { white-space: pre-wrap; }
.vergleich tr.geaendert .vorher { background: #fdf0ef; color: #7c241f; text-decoration: line-through; text-decoration-color: rgba(124,36,31,.35); }
.vergleich tr.geaendert .nachher { background: #edf6f0; color: #1f5a37; }

.blaettern { display: flex; align-items: center; justify-content: center; gap: 12px; }
.blaettern-status { color: var(--text-2); font-size: .88rem; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Slot-Suche */

.slot-formular { display: grid; gap: 14px; margin-bottom: 18px; }
.slot-formular .schnellwahl { margin-bottom: 6px; }
.slot-zeile { display: grid; grid-template-columns: 160px 170px 170px auto; gap: 14px; align-items: end; }
.slot-zusammenfassung { color: var(--text-2); margin-bottom: 8px; }
.slot-ergebnis { display: grid; gap: 14px; }
.slot-tag h3 { margin-bottom: 6px; font-size: .92rem; color: var(--text-2); }
.slot-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 8px 14px;
    min-width: 150px;
    font: inherit;
    text-align: left;
    background: var(--flaeche);
    border: 1px solid var(--rand-stark);
    border-left: 4px solid var(--erfolg);
    border-radius: var(--radius);
    cursor: pointer;
}
.slot:hover { background: var(--erfolg-hell); border-color: var(--erfolg); }
.slot-zeit { font-weight: 600; font-variant-numeric: tabular-nums; }
.slot-dauer { font-size: .82rem; color: var(--text-2); }

.schnellwahl { display: flex; flex-wrap: wrap; gap: 6px; }

/* ------------------------------------------------------------------ Suche */

/* mittig im freien Platz zwischen Navigation und rechtem Bereich; bei breiten Fenstern genau in der Kopfmitte */
.kopf-suche { position: relative; display: flex; align-items: center; margin: 0 auto; }
.kopf-suche-symbol { position: absolute; left: 9px; color: var(--text-3); pointer-events: none; }
.kopf-suche input {
    width: 220px;
    min-height: 34px;
    padding-left: 30px;
    background: var(--flaeche);
    border-radius: 999px;
    transition: width .15s ease;
}
.kopf-suche input:focus { width: 280px; }
@media (min-width: 1360px) {
    .kopf-suche { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
    .kopf-rechts { margin-left: auto; }
}

.such-formular { display: grid; gap: 14px; margin-bottom: 16px; }
.such-zeile { display: grid; grid-template-columns: minmax(200px, 1fr) 160px 160px auto auto; gap: 14px; align-items: end; }
.such-vergangene { min-height: 34px; white-space: nowrap; }
.such-formular legend { display: flex; align-items: center; gap: 10px; }
.chip-inaktiv { opacity: .6; }
.such-leiste { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.such-zaehler { font-weight: 600; }
.such-kriterien { color: var(--text-2); font-size: .88rem; }
.such-ergebnis { display: grid; gap: 10px; }
.such-tabelle { font-size: .92rem; }
.such-tabelle td { vertical-align: top; }
.such-tabelle .sp-zeit { width: 150px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.such-tabelle .sp-kat { width: 190px; }
.such-tabelle .sp-pers { width: 220px; }
.such-tabelle .sp-ort { width: 180px; }
.such-tag-kopf th {
    background: var(--flaeche-2);
    font-weight: 600;
    color: var(--text);
    border-top: 1px solid var(--rand);
}
.such-tabelle tbody:first-of-type .such-tag-kopf th { border-top: 0; }
.such-tag.vergangen td { color: var(--text-2); }
.such-titel-knopf {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.such-titel-knopf:hover { text-decoration: underline; }
.such-treffer.belegt .such-titel-knopf { font-weight: 400; font-style: italic; color: var(--text-2); }
.such-titel-knopf mark { background: #fde9a8; color: inherit; border-radius: 2px; padding: 0 1px; }
.such-zusatz { font-size: .8rem; color: var(--text-3); margin-top: 2px; }
.nur-druck { display: none; }

/* ------------------------------------------------------------------ Auswertung */

.auswertung-formular { display: grid; gap: 14px; margin-bottom: 16px; }
.auswertung-zeile { display: grid; grid-template-columns: auto 170px 170px; gap: 14px; align-items: end; justify-content: start; }
.auswertung-zeile .segmente { width: fit-content; }
.auswertung-formular legend { display: flex; align-items: center; gap: 10px; }
.auswertung-leiste { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; min-height: 32px; }
.auswertung-kriterien { font-weight: 600; }
.auswertung-ergebnis { display: grid; gap: 8px; }
.auswertung-tabelle { font-variant-numeric: tabular-nums; }
.auswertung-tabelle caption { caption-side: top; text-align: left; }
.auswertung-tabelle .zahl { text-align: right; }
.auswertung-tabelle thead th { vertical-align: bottom; }
.auswertung-tabelle thead th.zahl { text-transform: none; letter-spacing: 0; font-size: .86rem; color: var(--text-2); min-width: 96px; }
.auswertung-tabelle tbody th { font-weight: 500; white-space: nowrap; }
.auswertung-kat { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 6px; text-align: right; }
.auswertung-kat .kat-punkt { flex: 0 0 auto; }
.auswertung-tabelle td.null { color: var(--text-3); }
.auswertung-tabelle td a { color: inherit; font-weight: 600; text-decoration: none; padding: 2px 4px; margin: -2px -4px; border-radius: var(--radius-klein); }
.auswertung-tabelle td a:hover { background: var(--akzent-hell); text-decoration: underline; }
.auswertung-tabelle td:last-child, .auswertung-tabelle th.summe { border-left: 1px solid var(--rand); background: var(--flaeche-2); }
.auswertung-tabelle tfoot th, .auswertung-tabelle tfoot td { border-top: 2px solid var(--rand-stark); border-bottom: 0; background: var(--flaeche-2); font-weight: 700; }
.auswertung-fuss { color: var(--text-3); font-size: .84rem; }


/* ------------------------------------------------------------------ Planer */

.personen-panel > summary { gap: 4px; }
.personen-panel > summary::after { content: "▾"; font-size: .75rem; margin-left: 2px; color: var(--text-3); }
.personen-panel .ausklapp-inhalt { padding: 10px 12px; width: 280px; display: grid; gap: 8px; }
.personen-gruppe { border: 0; margin: 0; padding: 0; }
.personen-gruppe legend { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: 0; margin: 4px 0 2px; }
.zaehler { color: var(--text-2); font-variant-numeric: tabular-nums; }

.zeilen-kopf { display: flex; flex-direction: column; line-height: 1.2; padding: 2px 0; }
.zk-name { font-weight: 600; }
.zk-rolle { font-size: .72rem; color: var(--text-3); }

/* ------------------------------------------------------------------ Kalenderfläche */

.kalender-flaeche {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    overflow: hidden;
}
.kalender-flaeche.laedt::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    height: 2px;
    width: 40%;
    background: var(--akzent);
    z-index: 5;
    animation: laden 1s ease-in-out infinite;
}
@keyframes laden {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}
@media (prefers-reduced-motion: reduce) {
    .kalender-flaeche.laedt::before { animation: none; width: 100%; opacity: .5; }
}
.ec-flaeche { height: 100%; }
.jahr-flaeche { height: 100%; overflow: auto; padding: 14px; position: relative; }

/* EventCalendar anpassen */
.ec {
    --ec-border-color: var(--rand);
    --ec-today-bg-color: var(--heute);
    --ec-highlight-color: #f1f3f5;
    --ec-now-indicator-color: #c2410c;
    --ec-button-active-bg-color: var(--akzent-hell);
    --ec-bg-color: var(--flaeche);
    --ec-sidebar-width: 150px;
    font-size: 13px;
    border: 0;
}
.ec .ec-toolbar { display: none; }
.ec .ec-col-head, .ec .ec-day-head { font-weight: 600; color: var(--text-2); }
.ec .ec-today .ec-day-head { color: var(--akzent-dunkel); }
.ec .ec-sidebar { color: var(--text-3); font-variant-numeric: tabular-nums; }
.ec .ec-week-number { color: var(--text-3); font-size: .78em; }

.ec .ec-event {
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
    padding: 1px 5px;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}
.ec .ec-event:hover { filter: brightness(.94); }
.ec .ec-event:focus-visible { outline: 2px solid var(--fokus); outline-offset: 1px; z-index: 6; }
.ec .ev-belegt {
    background: repeating-linear-gradient(135deg, #a7afb6 0 6px, #969fa7 6px 12px) !important;
    color: #fff !important;
    cursor: default;
}
.ec .ev-belegt .ev-titel { font-style: italic; font-weight: 500; }

.ev-inhalt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; overflow: hidden; min-width: 0; line-height: 1.3; }
.ev-zeit { font-weight: 600; opacity: .92; }
.ev-titel { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ev-ort, .ev-zusatz, .ev-mit { opacity: .88; font-weight: 400; }
.ev-ort { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-serie-icon { opacity: .8; font-size: .9em; }

/* Liste: Text in normaler Farbe */
.ec .ec-list .ec-event { box-shadow: none; padding: 6px 8px; }
.ec .ec-list .ec-event:hover { filter: none; background: var(--flaeche-2); }
.ec .ec-list .ev-zusatz { color: var(--text-2); }
.ec .ec-list .ev-zeit-liste { min-width: 92px; color: var(--text-2); font-weight: 500; }
.ec .ec-list .ev-belegt { background: none !important; color: var(--text-2) !important; }

/* Planer */
.planer-flaeche .ec .ec-event { min-height: 24px; display: flex; align-items: center; }
.planer-flaeche .ec .ec-sidebar { color: var(--text); }
/* Die Hover-Uhrzeit (pointer) darf die Zeilenhöhe nicht beeinflussen */
.planer-flaeche .ec.ec-timeline .ec-event.ec-pointer { margin-block-end: -100vh; }

/* Hinweiszeile im Planer: blasse Notizzettel-Optik, bewusst anders als die kräftigen Kategoriefarben */
.zk-hinweise { flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; }
.zk-neu { width: 24px; height: 24px; font-size: 1.1rem; line-height: 1; }
.planer-flaeche .ec .ec-event.ev-hinweis {
    background: #fff3bf;
    color: #4a3800;
    box-shadow: inset 3px 0 0 #d99a00, inset 0 0 0 1px rgba(74, 56, 0, .14);
    padding-left: 9px;
}
.ev-hinweis .ev-titel { font-weight: 500; white-space: nowrap; }
/* Lange Balken (Hinweise, ganztägige Termine): Text bleibt beim waagerechten Scrollen sichtbar –
   wie EventCalendar es für seinen eigenen Titel macht, den unser eventContent ersetzt */
.planer-flaeche .ec.ec-timeline .ec-event .ev-inhalt {
    position: sticky;
    inset-inline-start: calc(var(--ec-sidebar-width) + .18em);
}
.hinweis-ansicht { display: grid; gap: 6px; }
.hinweis-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ Jahresansicht */

.jahr-raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 18px 22px;
}
.jahr-monat h3 { margin-bottom: 4px; }
.jm-titel {
    font: inherit;
    font-weight: 650;
    color: var(--text);
    background: none;
    border: 0;
    padding: 2px 4px;
    margin-left: -4px;
    border-radius: var(--radius-klein);
    cursor: pointer;
}
.jm-titel:hover { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.jm-gitter {
    display: grid;
    grid-template-columns: 22px repeat(7, 1fr);
    gap: 2px;
}
.jm-wt, .jm-kw-kopf { font-size: .7rem; color: var(--text-3); text-align: center; padding-bottom: 2px; font-weight: 600; }
.jm-kw { font-size: .66rem; color: #a3acb5; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.jm-tag {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3px 0 0;
    font: inherit;
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-klein);
    cursor: pointer;
}
.jm-tag.wochenende { color: var(--text-3); background: #f6f7f8; }
.jm-tag.belegt { background: #eef2f5; font-weight: 600; color: var(--text); }
.jm-tag:hover { border-color: var(--akzent); background: var(--akzent-hell); }
.jm-tag.heute { border-color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }
.jm-tag.heute .jm-nr { color: var(--akzent-dunkel); }
.jm-marken {
    position: absolute;
    left: 3px; right: 3px; bottom: 3px;
    display: flex;
    gap: 1px;
}
.jm-marke { flex: 1 1 0; height: 4px; border-radius: 1px; }

/* ------------------------------------------------------------------ Dialoge */

.dialog {
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 0;
    border-radius: 10px;
    box-shadow: var(--schatten-gross);
    color: var(--text);
    background: var(--flaeche);
}
.dialog::backdrop { background: rgba(18, 28, 36, .45); }
.dialog[open] { display: flex; }
.dialog-form { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 48px); }
.dialog-klein { width: min(460px, calc(100vw - 32px)); }
.dialog-termin { width: min(720px, calc(100vw - 32px)); }
.dialog-breit { width: min(960px, calc(100vw - 32px)); }
.dialog-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px 20px;
    border-bottom: 1px solid var(--rand);
}
.dialog-kopf h2 { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-rumpf { padding: 16px 20px; overflow-y: auto; flex: 1 1 auto; }
.dialog-text { color: var(--text); }
.dialog-fuss {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px 14px 20px;
    border-top: 1px solid var(--rand);
    background: var(--flaeche-2);
    border-radius: 0 0 10px 10px;
}
.fuss-links, .fuss-rechts { display: flex; gap: 8px; flex-wrap: wrap; }
.fuss-rechts { margin-left: auto; }

.termin-formular { display: grid; gap: 14px; }
.termin-formular .teilnehmer { border: 1px solid var(--rand); border-radius: var(--radius); padding: 10px 12px 12px; }
.termin-formular .teilnehmer > legend { padding: 0 4px; margin-left: -4px; }

.details { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0 0 14px; }
.details dt { color: var(--text-2); font-size: .86rem; font-weight: 600; }
.details dd { margin: 0; }
.notiz-text { white-space: pre-wrap; }
.termin-ansicht { display: grid; gap: 12px; }

.warnungen { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.warn-zeit { color: var(--text-2); font-variant-numeric: tabular-nums; }
.dialog-warnung .dialog-kopf h2::before { content: "⚠ "; color: var(--warn); }

/* ------------------------------------------------------------------ Meldungen */

.toasts {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: grid;
    gap: 8px;
    z-index: 1000;
    max-width: min(420px, calc(100vw - 32px));
}
.toast {
    padding: 10px 14px;
    border-radius: var(--radius);
    background: #263139;
    color: #fff;
    box-shadow: var(--schatten-gross);
    font-size: .92rem;
    transition: opacity .25s, transform .25s;
    border-left: 4px solid #aab4be;
}
.toast-erfolg { border-left-color: #6cc08f; }
.toast-fehler { border-left-color: #f08a80; background: #3a2422; }
.toast.weg { opacity: 0; transform: translateY(6px); }

/* ------------------------------------------------------------------ Anmeldung */

.login-seite {
    background:
        linear-gradient(180deg, var(--marke-rot) 0, #b0002c 38vh, #ffffff 38vh);
}
.login-huelle {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}
.login-karte {
    width: min(380px, 100%);
    background: var(--flaeche);
    border-radius: 10px;
    box-shadow: var(--schatten-gross);
    padding: 28px 28px 22px;
    display: grid;
    gap: 6px;
}
.login-karte form { display: grid; gap: 14px; margin-top: 18px; }
.login-logo { width: 100%; height: auto; display: block; margin-bottom: 14px; }
.login-unter { color: var(--text-2); }
.login-fuss { color: var(--text-3); font-size: .82rem; margin-top: 10px; text-align: center; }
.login-rechtliches { font-size: .78rem; text-align: center; }
.login-rechtliches a { color: var(--text-3); }
.login-rechtliches a:hover { color: var(--akzent); }
.hinweis-sperre {
    background: var(--warn-hell);
    color: var(--warn);
    border-radius: var(--radius-klein);
    padding: 8px 10px;
}

/* ------------------------------------------------------------------ Schmale Bildschirme */

/* Platz für die Navigation der Verwaltung (vier Einträge) neben dem Suchfeld */
@media (max-width: 1180px) {
    .kopf-suche input, .kopf-suche input:focus { width: 170px; }
}
@media (max-width: 1020px) {
    .kopf { gap: 12px; }
    .kopf-suche input, .kopf-suche input:focus { width: 140px; }
}

@media (max-width: 960px) {
    .legende-hinweis { display: none; }
    .slot-zeile { grid-template-columns: 1fr 1fr; }
    .such-zeile { grid-template-columns: 1fr 150px 150px; }
    .such-titel-feld { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    :root { --kopf-h: 50px; }
    body { font-size: 15px; }
    .kopf { gap: 8px; padding: 0 8px 0 12px; }
    /* schmal: nur den Kranich (rechter Teil des Logos) zeigen */
    .marke-logo { height: 32px; }
    .marke-logo img { width: 26px; object-fit: cover; object-position: right center; }
    .hauptnav a { padding: 0 10px; }
    .benutzer-name { display: none; }

    .ansicht-kalender { padding: 8px 8px 10px; height: auto; min-height: calc(100dvh - var(--kopf-h)); }
    .kalender-flaeche { flex: none; height: calc(100dvh - var(--kopf-h) - 24px); min-height: 420px; }
    .werkzeugleiste { gap: 6px 8px; }
    .leiste-gruppe.rechts { margin-left: 0; width: 100%; justify-content: space-between; }
    .person-wahl { min-width: 0; width: 100%; }
    .leiste-gruppe:first-child { flex: 1 1 100%; }
    .leiste-gruppe:first-child > * { flex: 1 1 auto; }
    .ansicht-titel { font-size: 1rem; white-space: normal; }
    .segment { padding: 0 9px; }
    .ec { --ec-sidebar-width: 92px; font-size: 12px; }

    .ansicht-seite { padding: 12px 10px 30px; }
    .zwei-spalten, .zeit-raster { grid-template-columns: 1fr; }
    .slot-zeile { grid-template-columns: 1fr; }
    .auswertung-zeile { grid-template-columns: 1fr 1fr; }
    .auswertung-zeile > .feld:first-child { grid-column: 1 / -1; }
    .auswertung-zeile .segmente { flex-wrap: wrap; }
    .auswertung-tabelle thead th.zahl { min-width: 0; }
    .such-zeile { grid-template-columns: 1fr 1fr; }
    .such-titel-feld { grid-column: 1 / -1; }
    .kopf-suche input, .kopf-suche input:focus { width: 96px; padding-right: 4px; }
    .such-tabelle .sp-ort, .such-tabelle .sp-kat { display: none; }
    .details { grid-template-columns: 1fr; gap: 2px; }
    .details dd { margin-bottom: 8px; }

    .dialog, .dialog-klein, .dialog-termin, .dialog-breit {
        width: 100vw;
        max-width: 100vw;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        margin: 0;
    }
    .dialog-form { max-height: 100dvh; }
    .dialog-klein { height: auto; margin: auto; width: calc(100vw - 16px); border-radius: 10px; }
    .dialog-fuss { border-radius: 0; }

    .protokoll-eintrag > summary,
    .dialog .protokoll-eintrag > summary { grid-template-columns: 1fr auto; }
    .p-termin { grid-column: 1 / -1; }
    .p-akteur { text-align: left; }
    .tabelle th, .tabelle td { padding: 7px 8px; }
    .aktionen { white-space: normal; }
    .aktionen .knopf { margin: 2px 0 2px 4px; }

    .jahr-raster { grid-template-columns: 1fr; }
    .jm-tag { min-height: 36px; font-size: .9rem; }
}

/* ------------------------------------------------------------------ Druck (Terminsuche, Auswertung) */

@media print {
    @page { size: A4; margin: 14mm 12mm; }
    body { display: block; background: #fff; font-size: 10pt; }
    .kopf, .sprungmarke, .nicht-drucken { display: none !important; }
    body:has(#ansicht-suche:not([hidden])) .such-formular { display: none; }
    .such-seite { padding: 0; max-width: none; }
    .such-seite .nur-druck { display: inline; }
    .such-seite .such-druck-stand { display: block; color: #444; font-size: 9pt; }
    .such-seite .seiten-kopf { margin-bottom: 6px; }
    .such-seite .tabellen-huelle { border: 0; box-shadow: none; overflow: visible; border-radius: 0; }
    .such-seite .karte { box-shadow: none; }
    .such-kriterien { color: #000; }
    .such-tabelle { font-size: 9.5pt; }
    .such-tabelle th, .such-tabelle td { padding: 4px 6px; border-bottom: 1px solid #bbb; color: #000 !important; }
    .such-tabelle thead { display: table-header-group; }
    .such-tabelle thead th { background: none; color: #000; border-bottom: 1.5px solid #000; }
    .such-tabelle tbody { break-inside: avoid; }
    .such-tag-kopf th { background: none; border-top: 0; padding-top: 10px; border-bottom: 1px solid #000; }
    .such-tabelle tr { break-inside: avoid; }
    .such-tabelle tbody tr:hover { background: none; }
    .such-tabelle .sp-ort, .such-tabelle .sp-kat { display: table-cell; }
    .such-tabelle .sp-zeit { width: 110px; }
    .such-tabelle .sp-kat { width: 120px; }
    .such-tabelle .sp-pers { width: 150px; }
    .such-tabelle .sp-ort { width: 120px; }
    .such-titel-knopf mark { background: none; font-weight: 700; text-decoration: underline; }
    .such-zusatz { color: #444; }
    .kat-punkt { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

    .auswertung-seite { padding: 0; max-width: none; }
    .auswertung-seite .auswertung-formular, .auswertung-seite .auswertung-leiste { display: none; }
    .auswertung-seite .nur-druck { display: inline; }
    .auswertung-seite .auswertung-druck-stand { display: block; color: #444; font-size: 9pt; }
    .auswertung-seite .seiten-kopf { margin-bottom: 8px; }
    .auswertung-seite .tabellen-huelle { border: 0; overflow: visible; border-radius: 0; }
    .auswertung-tabelle { font-size: 10pt; }
    .auswertung-tabelle caption.nur-druck { display: table-caption; font-weight: 600; padding-bottom: 8px; }
    .auswertung-tabelle th, .auswertung-tabelle td { padding: 5px 8px; border-bottom: 1px solid #bbb; color: #000 !important; background: none !important; }
    .auswertung-tabelle thead { display: table-header-group; }
    .auswertung-tabelle thead th { border-bottom: 1.5px solid #000; }
    .auswertung-tabelle tfoot th, .auswertung-tabelle tfoot td { border-top: 1.5px solid #000; }
    .auswertung-tabelle td:last-child, .auswertung-tabelle th.summe { border-left: 1px solid #bbb; }
    .auswertung-tabelle tr { break-inside: avoid; }
    .auswertung-tabelle td a { font-weight: inherit; }
    .auswertung-fuss { color: #444; }
}
