:root {
    /* Honoris Finance Branding */
    --primary: #323c43;        /* Anthrazit (Logo-Schriftzug "HONORIS") */
    --primary-light: #45525b;  /* Button-Hover */
    --primary-bg: #eceef0;     /* helle Anthrazit-Toenung (Badges, Focus) */
    --accent: #c8b9ab;         /* Champagner-Gold (Logo-Schriftzug "finance") */
    --accent-dark: #b3a08a;    /* Gold-Hover */
    --accent-bg: #f6f1ea;      /* helle Gold-Toenung */
    --success: #2e7d32;
    --success-bg: #e8f5e9;
    --warning: #f57c00;
    --warning-bg: #fff3e0;
    --danger: #c62828;
    --danger-bg: #ffebee;
    --info: #1565c0;
    --info-bg: #e3f2fd;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.5;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    width: 100%;
    max-width: 420px;
}

.card-wide { max-width: none; }

h1 { color: var(--primary); margin-bottom: 4px; }
h1.brand { font-size: 24px; }
.subtitle { color: var(--gray-600); margin-bottom: 24px; font-size: 14px; }

label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 6px; color: var(--gray-700); }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: white;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.field { margin-bottom: 16px; }

.btn {
    display: inline-block;
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}
.btn:hover { background: var(--primary-light); }
.btn.block { width: 100%; }
.btn.secondary { background: var(--gray-200); color: var(--gray-800); }
.btn.secondary:hover { background: var(--gray-300); }
.btn.danger { background: var(--danger); }

.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.flash.error { background: var(--danger-bg); color: var(--danger); }
.flash.success { background: var(--success-bg); color: var(--success); }
.flash.info { background: var(--info-bg); color: var(--info); }
.flash.warn { background: #fdf3e3; color: #8a5a10; }

.muted { color: var(--gray-600); font-size: 13px; }
.center { text-align: center; }

.demo-list { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.demo-list h3 { font-size: 13px; color: var(--gray-600); margin-bottom: 8px; }
.demo-item { background: var(--gray-50); padding: 8px 12px; border-radius: 6px; margin-bottom: 6px; font-size: 13px; cursor: pointer; }
.demo-item:hover { background: var(--primary-bg); }

.app-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}
.app-header .brand { color: var(--primary); font-weight: 600; font-size: 16px; }
.app-header nav a {
    color: var(--gray-700);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-right: 4px;
}
.app-header nav a:hover { background: var(--gray-100); }
.app-header nav a.active { background: var(--primary-bg); color: var(--primary); }

.user-chip { display: flex; align-items: center; gap: 8px; }
.user-chip .avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
}

main.container { max-width: 1100px; margin: 24px auto; padding: 0 24px; }

table.data {
    width: 100%;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-collapse: collapse;
    overflow: hidden;
}
table.data th, table.data td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}
table.data th { background: var(--gray-50); font-weight: 600; color: var(--gray-700); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
table.data tr:last-child td { border-bottom: none; }
table.data .actions { white-space: nowrap; text-align: right; }
table.data .actions a, table.data .actions button { font-size: 13px; padding: 4px 10px; }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.page-head h2 { color: var(--gray-900); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge.admin { background: var(--primary-bg); color: var(--primary); }
.badge.berater { background: var(--info-bg); color: var(--info); }
.badge.revisor { background: var(--warning-bg); color: var(--warning); }
.badge.backoffice { background: var(--gray-200); color: var(--gray-700); }
.badge.ok { background: var(--success-bg); color: var(--success); }
.badge.off { background: var(--gray-200); color: var(--gray-600); }

.qr-box { text-align: center; padding: 16px; background: var(--gray-50); border-radius: var(--radius); margin-bottom: 16px; }
.qr-box img { display: block; margin: 0 auto 8px; }
.secret-code {
    font-family: 'SF Mono', Menlo, monospace;
    background: white;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
    font-size: 13px;
    border: 1px solid var(--gray-300);
}

inline-form { display: inline; }

/* Antrags-Liste */
table.antrag-list td { vertical-align: middle; }
table.antrag-list tr.row-action { box-shadow: inset 4px 0 0 var(--danger); }

.progress {
    width: 80px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}

.berater-avatars { display: flex; gap: -4px; }
.berater-avatars .b-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600;
    border: 2px solid white;
    margin-left: -8px;
    position: relative;
    cursor: default;
}
.berater-avatars .b-avatar:first-child { margin-left: 0; }
.berater-avatars .b-avatar.so { background: var(--primary); }
.berater-avatars .b-avatar.mb { background: #00695c; }
.berater-avatars .b-avatar.ls { background: #0277bd; }
.berater-avatars .b-avatar.tb { background: #d32f2f; }
.berater-avatars .b-avatar.oe { background: #ef6c00; }
.berater-avatars .b-avatar.jh { background: #6a1b9a; }
.berater-avatars .b-avatar.done::after {
    content: '\2713';
    position: absolute;
    bottom: -2px; right: -2px;
    background: var(--success);
    color: white;
    width: 12px; height: 12px;
    border-radius: 50%;
    font-size: 9px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid white;
}

.badge.typ-factoring  { background: var(--primary-bg); color: var(--primary); }
.badge.typ-ratierlich { background: var(--info-bg);    color: var(--info); }
.badge.typ-einmalig   { background: var(--success-bg); color: var(--success); }
.badge.typ-bv0113     { background: var(--gray-200);   color: var(--gray-700); }
.badge.typ-zuzahlung_bv,
.badge.typ-zuzahlung_ratierlich,
.badge.typ-zuzahlung_einmalig { background: var(--warning-bg); color: var(--warning); }
.badge.typ-beitrag_einmalig,
.badge.typ-beitrag_ratierlich,
.badge.typ-beitrag_factoring,
.badge.typ-beitrag_bv { background: var(--accent-bg); color: var(--accent-dark); }
.badge.pending        { background: var(--danger-bg);  color: var(--danger); }

.badge.pulse {
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

.btn.btn-icon { padding: 6px 10px; line-height: 1; }

.struktur-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.struktur-row .struktur-select { flex: 1; min-width: 0; }

.checkbox-list { max-height: 240px; overflow-y: auto; border: 1px solid var(--gray-200); border-radius: 6px; padding: 8px 12px; }
.checkbox-row { display: block; padding: 3px 0; font-weight: 400; }

/* Login/Auth-Branding (Honoris) */
.auth-wrap .card { border-top: 3px solid var(--accent); }
.auth-logo { text-align: center; margin-bottom: 18px; }
.auth-logo img { width: 240px; max-width: 80%; height: auto; }

/* Logo in der App-Kopfzeile */
.app-header .brand-logo { display: inline-flex; align-items: center; line-height: 0; }
.app-header .brand-logo img { height: 30px; width: auto; }

/* Dropzone (Antrag anlegen) */
.dropzone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    color: var(--gray-600);
    background: var(--gray-50);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.dropzone.dz-over { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }
.dz-link { color: var(--primary); cursor: pointer; text-decoration: underline; }
.dz-list { list-style: none; margin: 10px 0 0; padding: 0; }
.dz-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--gray-50); border-radius: 6px; margin-bottom: 6px; font-size: 14px; }
.dz-list li > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-list .dz-remove { padding: 2px 9px; line-height: 1; }

/* Such-/Sortier-Listen (Admin) */
.list-search-bar { margin-bottom: 12px; }
.list-search { max-width: 280px; }
table.js-list th.sortable { cursor: pointer; user-select: none; }
table.js-list th.sortable:hover { background: var(--gray-100); }
table.js-list th.sortable[data-dir="asc"]::after  { content: " \25B2"; font-size: 10px; color: var(--gray-500); }
table.js-list th.sortable[data-dir="desc"]::after { content: " \25BC"; font-size: 10px; color: var(--gray-500); }

/* Struktur-Combobox (Freigabe-Kette: suchen + einfuegen) */
.struktur-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 10px; background: var(--gray-50); border-radius: 6px; font-size: 14px; }
.combobox-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; margin-top: 2px; }
.combobox-item { padding: 8px 12px; cursor: pointer; font-size: 14px; }
.combobox-item:hover { background: var(--primary-bg); }

/* KI-Auslese in der Anlage-Maske: Loader + Kundendaten-Raster */
.kunde-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .kunde-grid { grid-template-columns: 1fr; } }
.ki-loader { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--primary); font-weight: 500; }
.ki-loader[hidden] { display: none; }
.ki-loader .spinner { width: 20px; height: 20px; border: 3px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: ki-spin 0.7s linear infinite; }
@keyframes ki-spin { to { transform: rotate(360deg); } }

/* === Wizard und Eingabemasken ============================================ */

/* --- Schrittleiste ------------------------------------------------------- */
.wizard-kopf { margin-bottom: 18px; }
.wizard-balken { height: 5px; background: var(--gray-200); border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.wizard-fortschritt { height: 100%; background: var(--primary); transition: width .35s ease; }

.wizard-schritte { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wizard-schritte a {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 12px 7px 8px;
    border: 1px solid var(--gray-200); border-radius: 20px;
    text-decoration: none; color: var(--gray-700);
    background: #fff; font-size: 13px; line-height: 1.2;
    transition: border-color .15s, background .15s;
}
.wizard-schritte a:hover { border-color: var(--primary); background: #faf7fd; }
.wizard-schritte .aktiv a { background: var(--primary); border-color: var(--primary); color: #fff; }
.wizard-schritte .aktiv .muted, .wizard-schritte .aktiv .wizard-zahl { color: rgba(255,255,255,.8); }
.wizard-schritte .begonnen a { border-color: #b79fd1; }
.wizard-nr {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--gray-100); font-size: 11px; font-weight: 600; flex: none;
}
.wizard-schritte .aktiv .wizard-nr { background: rgba(255,255,255,.22); color: #fff; }
.wizard-zahl { font-size: 11px; color: var(--gray-500); font-variant-numeric: tabular-nums; }

/* --- Eingabefelder ------------------------------------------------------- */
/* auto-fill statt auto-fit: ein einzelnes Feld bleibt spaltenbreit, statt sich
   ueber die ganze Karte zu ziehen. */
.feld-raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 4px 20px;
}
.feld-raster .field { margin-bottom: 14px; min-width: 0; }
/* Zwei Spalten reichen fuer "PLZ, Ort" oder "Ort, Datum" - ueber die ganze
   Karte gezogen wirken sie wichtiger, als sie sind. */
.field-breit { grid-column: span 2; }

.feld-raster label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.feld-raster input[type="text"], .feld-raster select, .feld-raster textarea { transition: border-color .15s, box-shadow .15s; }
.feld-raster input::placeholder { color: var(--gray-400); }

/* --- Abschnitt des Papierformulars --------------------------------------- */
.formblock { margin-bottom: 30px; }
.formblock:last-of-type { margin-bottom: 0; }

.pflicht { color: #c0392b; font-weight: 600; }
.feld-hinweis { display: block; margin-top: 4px; font-size: 11px; color: var(--gray-500); }
.feld-meldung { display: block; margin-top: 4px; font-size: 12px; color: #c0392b; }
.field-fehler input, .field-fehler select, .field-fehler textarea {
    border-color: #c0392b; background: #fdf5f4;
}
.field-fehler input:focus, .field-fehler select:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }

/* Ueberschrift eines Abschnitts - im Formular steht sie ueber ihren Feldern,
   der Zaehler rechts zeigt, wieviel davon schon belegt ist. */
.block-titel {
    display: flex; align-items: baseline; gap: 12px;
    margin: 0 0 14px; padding: 0 0 8px 12px;
    border-bottom: 2px solid var(--gray-200);
    border-left: 3px solid var(--accent);
    font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--gray-900);
}
.block-name { flex: 1; min-width: 0; }
.block-zahl {
    flex: none; padding: 2px 8px; border-radius: 20px;
    background: var(--gray-100); color: var(--gray-600);
    font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.block-zahl.voll { background: var(--success-bg); color: var(--success); }

/* Zusammengehoerende Felder einer Formularzeile - Bezeichnung links,
   Ankreuzfelder und Eingaben in derselben Zeile daneben. */
.papierzeile {
    display: grid;
    grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
    gap: 4px 20px; align-items: center;
    margin-bottom: 6px; padding: 8px 12px;
    border: 1px solid var(--gray-200); border-radius: var(--radius);
    background: var(--gray-50);
}
.papierzeile:focus-within { border-color: var(--primary); background: white; }
.papierzeile-titel { font-size: 13px; font-weight: 600; color: var(--gray-800); overflow-wrap: anywhere; }
.papierzeile-felder {
    display: flex; flex-wrap: wrap; align-items: flex-end;
    gap: 4px 14px; min-width: 0;
}
.papierzeile-felder .ankreuz { background: white; border: 1px solid var(--gray-300); padding: 6px 10px; }
.papierzeile .field { margin: 0; }

/* Nicht wachsen lassen: sonst schiebt ein einzelnes Feld die Zeile um. */
.feld-schmal { flex: 0 1 200px; min-width: 0; max-width: 100%; }
.feld-schmal:has(.ort-datum) { flex: 0 1 300px; }
.feld-schmal label { margin-bottom: 3px; font-size: 11px; color: var(--gray-600); }
.feld-schmal input[type="text"], .feld-schmal input[type="date"], .feld-schmal select { padding: 7px 9px; }
/* Ort und Datum gehoeren nebeneinander - umgebrochen zerreisst es die Zeile. */
.feld-schmal .ort-datum { flex-wrap: nowrap; gap: 6px; }
.feld-schmal .ort-datum input[type="text"] { flex: 1 1 80px; min-width: 0; }
.feld-schmal .ort-datum input[type="date"] { flex: 0 1 140px; min-width: 0; }

@media (max-width: 720px) {
    .papierzeile { grid-template-columns: 1fr; }
}

/* --- Ankreuzfelder: Kaestchen vor der Beschriftung, eine Zeile ----------- */
.ankreuz-liste {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2px 20px;
    margin-bottom: 8px;
}
.ankreuz {
    display: flex; align-items: flex-start; gap: 9px;
    margin: 0; padding: 7px 10px;
    border: 1px solid transparent; border-radius: var(--radius);
    font-weight: 400; font-size: 14px; color: var(--gray-700);
    cursor: pointer; line-height: 1.35;
    transition: background .12s, border-color .12s;
}
.ankreuz:hover { background: var(--gray-100); }
.ankreuz input[type="checkbox"], .ankreuz input[type="radio"] {
    width: 17px; height: 17px; margin: 1px 0 0; flex: none;
    accent-color: var(--primary); cursor: pointer;
}
.ankreuz-text { flex: 1; min-width: 0; }
.ankreuz:has(input:checked) { background: var(--accent-bg); border-color: var(--accent); }
.ankreuz:has(input:checked) .ankreuz-text { color: var(--gray-900); font-weight: 500; }
.ankreuz:focus-within { border-color: var(--primary); }

/* --- Navigation ---------------------------------------------------------- */
.wizard-navigation {
    position: sticky; bottom: 0; z-index: 5;
    margin: 24px -32px -32px; padding: 14px 32px;
    border-top: 1px solid var(--gray-200);
    border-radius: 0 0 var(--radius) var(--radius);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(6px);
    display: flex; gap: 8px; align-items: center;
}
.wizard-stand {
    flex: 1; min-width: 0; text-align: center;
    font-size: 12px; color: var(--gray-500);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wizard-navigation .weiter { margin-left: auto; }
.wizard-navigation .btn[disabled] { opacity: .4; cursor: not-allowed; }

/* --- Herkunftsmarkierung -------------------------------------------------
   Nebeninformation zur Beschriftung - darf sie nicht ueberstimmen. */
.badge-upload, .badge-fest {
    display: inline-block; padding: 0 6px; border-radius: 9px;
    background: var(--gray-100); color: var(--gray-500);
    font-size: 10px; font-weight: 500; line-height: 15px;
    white-space: nowrap;
}
.badge-fest { background: transparent; border: 1px dashed var(--gray-300); }

/* --- Gesperrte Felder (Beraterangaben aus dem Profil) -------------------- */
input.gesperrt {
    background: var(--gray-100); color: var(--gray-600);
    border-style: dashed; cursor: default;
}
input.gesperrt:focus { outline: none; box-shadow: none; border-color: var(--gray-300); }
.field-gesperrt label { color: var(--gray-500); }

/* --- Zusammengesetzte Eingaben ------------------------------------------- */
.ort-datum { display: flex; gap: 8px; }
.ort-datum input[type="text"] { flex: 1 1 60%; min-width: 0; }
.ort-datum input[type="date"] { flex: 0 1 40%; min-width: 140px; }

.eingabe-einheit { display: flex; align-items: stretch; }
.eingabe-einheit input {
    flex: 1; min-width: 0;
    border-top-right-radius: 0; border-bottom-right-radius: 0;
    text-align: right; font-variant-numeric: tabular-nums;
}
.eingabe-einheit .einheit {
    display: inline-flex; align-items: center; padding: 0 11px;
    border: 1px solid var(--gray-300); border-left: none;
    border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius);
    background: var(--gray-100); color: var(--gray-600);
    font-size: 14px; font-weight: 600;
}
.field-fehler .eingabe-einheit .einheit { border-color: #c0392b; }

/* --- Tabellen im Formular (Betreuungshonorar, Honorarvertrag, RKW) ------- */
.tabelle-huelle { overflow-x: auto; margin-bottom: 8px; }
.feld-tabelle { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.feld-tabelle th {
    padding: 8px 10px; text-align: left; vertical-align: bottom;
    border-bottom: 2px solid var(--gray-200);
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
    color: var(--gray-500); white-space: nowrap;
}
.feld-tabelle td { padding: 5px 6px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.feld-tabelle tbody tr:hover { background: var(--gray-50); }
.feld-tabelle .zeilen-nr {
    width: 34px; text-align: center; color: var(--gray-400);
    font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 13px;
}
.feld-tabelle input, .feld-tabelle select { width: 100%; min-width: 120px; }
.feld-tabelle .zelle { min-width: 130px; }
.feld-tabelle .zelle-leer { display: block; text-align: center; color: var(--gray-300); padding-top: 8px; }
.feld-tabelle .summenzeile { background: var(--gray-50); }
.feld-tabelle .summenzeile td { border-top: 2px solid var(--gray-200); border-bottom: none; }
.feld-tabelle .summenzeile .zeilen-nr { color: var(--gray-600); font-weight: 700; }

/* --- Adminvorbehalt: rot gerahmter Block --------------------------------- */
.admin-block {
    margin-top: 22px; padding: 14px 16px 4px;
    border: 2px solid #c0392b; border-radius: var(--radius);
    background: #fdf5f4;
}
.admin-block-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.admin-block-kopf h3 { margin: 0; }
.admin-marke {
    display: inline-block; padding: 2px 9px; border-radius: 10px;
    background: #c0392b; color: #fff;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.admin-block-text { margin: 0 0 10px; font-size: 13px; color: #7d2b21; }
.admin-block .ankreuz-liste { max-height: 260px; overflow-y: auto; }
.admin-block .ankreuz:hover { background: rgba(192, 57, 43, .06); }
.admin-block .ankreuz:has(input:checked) { background: rgba(192, 57, 43, .09); }

@media (max-width: 640px) {
    .feld-raster, .ankreuz-liste { grid-template-columns: 1fr; }
    .wizard-navigation { flex-wrap: wrap; }
    .wizard-navigation .weiter { margin-left: 0; }
    .ort-datum { flex-direction: column; }
}

/* --- MV-Pflichtangaben ---------------------------------------------------- */
.wizard-schritte .offen a { border-color: var(--warning); }
.wizard-pflicht {
    font-size: 11px; font-weight: 700; color: var(--warning);
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.wizard-schritte .aktiv .wizard-pflicht { color: #ffd9a0; }
