/* ============================================================================
   UI-2 — FleetERP Design-Language (2026-06-02)
   ----------------------------------------------------------------------------
   Token-first Design-System nach NEXIS-DNA (docs/feature-requests/from-nexis/
   README.md), aber TÜRKIS bleibt Primär-Marke (Inhaber-Entscheidung 02.06.).
   Spec: docs/specs/UI2_DESIGN_LANGUAGE.md.

   WARUM HAND-CSS statt Tailwind:
   Tailwinds JIT-Extractor erfasst die dynamisch in C#-@code-Gettern gebauten
   Klassen-Strings NICHT zuverlässig (P23b-Lehre) → dark:-Varianten fehlten im
   committeten tailwind.css. Dieses Token-System ist deterministisch, braucht
   KEINEN npm-Build (Docker hat kein Node) und schaltet Dark-Mode rein über
   den Variablen-Swap auf [data-bs-theme="dark"] (vom Toggle am <html> gesetzt).

   SCOPE Stand 02.06.: nur als Referenz-Layer aktiv, genutzt auf der EINEN
   Referenzseite (Dashboard / Home.razor). Shell + geteilte Komponenten
   (BrandHeader/BrandKpiCard) bleiben unangetastet bis zum Inhaber-Sign-off.
   Klassen-Prefix "fe-" — kollidiert weder mit Bootstrap noch mit "tw-".
   ============================================================================ */

/* ── §0 Globale Dichte (2026-06-13) ───────────────────────────────────────────
   Inhaber-Feedback: "die ganze UI sieht riesig aus — Schrift, Cards usw." →
   kompakter wie NEXIS-CRM. Lösung in zwei Stufen:
   (1) Basis-Schriftgröße 16px → 15px. Da Bootstrap UND das fe-*-Token-System
       rem-basiert sind, verdichtet das die GESAMTE App proportional (Schrift,
       Paddings, Abstände) in einem Schritt — kein Per-Komponenten-Edit.
   (2) Zusätzlich die fe-*-Token-Maße unten (Card-Padding, KPI-Zahl, H1,
       Icon-Tiles, Header/Footer) gezielt enger gezogen, näher an NEXIS-Density.
   Feintuning erfolgt nach Sicht auf Production (kein lokaler Dev-Workflow). */
html { font-size: 15px; }

/* ── 1. Tokens (Light = :root) ───────────────────────────────────────────── */
:root {
    /* Flächen (NEXIS surface-Skala, an FleetERP-Hell angepasst) */
    --fe-surface:        #ffffff;
    --fe-surface-muted:  #f6f8fb;
    --fe-surface-subtle: #eef2f7;

    /* Text / Ink (Navy-Tinte) */
    --fe-ink:        #0f1b2d;
    --fe-ink-muted:  #4a586e;
    --fe-ink-subtle: #7a899c;

    /* Borders */
    --fe-border:        #e4e9f0;
    --fe-border-strong: #cfd7e3;

    /* Marke = Türkis (synchron zu tailwind.config.js brand-Skala) */
    --fe-brand:      #1AB4D6;
    --fe-brand-600:  #1499B7;
    --fe-brand-700:  #0E8AAB;
    --fe-brand-soft: #E5F6FB;
    --fe-brand-ink:  #0A6E89;   /* lesbarer Brand-Text auf hellem Grund */

    /* Radii / Schatten (NEXIS soft-Shadows) */
    --fe-radius:     0.75rem;
    --fe-radius-lg:  1.125rem;   /* Cards = rounded-2xl */
    --fe-radius-xl:  1.5rem;
    --fe-shadow-sm:  0 1px 2px 0 rgba(16, 27, 45, 0.04);
    --fe-shadow-md:  0 6px 18px -4px rgba(16, 27, 45, 0.10);
    --fe-shadow-lg:  0 14px 36px -10px rgba(16, 27, 45, 0.16);

    /* Marken-Gradient — NUR Akzent (Icon-Tiles, Primary-Buttons), nie Vollfläche */
    --fe-gradient-brand: linear-gradient(135deg, #1AB4D6 0%, #0E8AAB 60%, #0A6E89 100%);

    /* Dezenter radialer Mesh-Hintergrund (Marke 6 % + kühler Akzent 5 %) */
    --fe-mesh:
        radial-gradient(60rem 40rem at 0% -10%, rgba(26, 180, 214, 0.07), transparent 60%),
        radial-gradient(50rem 36rem at 100% 0%, rgba(13, 110, 253, 0.05), transparent 55%);

    /* Default-Tone (von .fe-tone-* überschrieben) */
    --fe-tone:        var(--fe-brand-600);
    --fe-tone-strong: var(--fe-brand-ink);
    --fe-tone-soft:   var(--fe-brand-soft);
}

/* ── Dark = Variablen-Swap (an bestehende app.css-Dark-Werte angeglichen) ── */
[data-bs-theme="dark"] {
    --fe-surface:        #161b26;
    --fe-surface-muted:  #1a212c;
    --fe-surface-subtle: #222a36;

    --fe-ink:        #e8ecf6;
    --fe-ink-muted:  #a8b2cc;
    --fe-ink-subtle: #7e8aa3;

    --fe-border:        #2a313c;
    --fe-border-strong: #3a424f;

    --fe-brand:      #2bc4e6;   /* etwas heller für Kontrast auf Dunkel */
    --fe-brand-600:  #1fb2d6;
    --fe-brand-700:  #1AB4D6;
    --fe-brand-soft: rgba(26, 180, 214, 0.16);
    --fe-brand-ink:  #7fe0f4;

    --fe-shadow-sm:  0 1px 2px 0 rgba(0, 0, 0, 0.35);
    --fe-shadow-md:  0 8px 22px -6px rgba(0, 0, 0, 0.55);
    --fe-shadow-lg:  0 16px 40px -10px rgba(0, 0, 0, 0.65);

    --fe-mesh:
        radial-gradient(60rem 40rem at 0% -10%, rgba(26, 180, 214, 0.10), transparent 60%),
        radial-gradient(50rem 36rem at 100% 0%, rgba(13, 110, 253, 0.08), transparent 55%);
}

/* ── 2. Seiten-Wrapper mit dezentem Mesh (Dashboard-scoped) ──────────────── */
.fe-page {
    background-image: var(--fe-mesh);
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100%;
    margin: -1.5rem;          /* zieht den Mesh bis an die main-Padding-Kante */
    padding: 1.5rem;
}

/* ── 3. Page-Header (ersetzt das Türkis-Vollbanner) ──────────────────────── */
.fe-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;          /* §0-Verdichtung: war 1.5rem */
}
.fe-page-header__main { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.fe-page-header__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;                  /* §0-Verdichtung: war 2.75rem */
    height: 2.5rem;
    border-radius: var(--fe-radius);
    background: var(--fe-gradient-brand);
    color: #fff;
    font-size: 1.1rem;              /* war 1.25rem */
    box-shadow: var(--fe-shadow-sm);
}
.fe-h1 {
    margin: 0;
    font-size: 1.3rem;              /* §0-Verdichtung: war 1.5rem */
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fe-ink);
    line-height: 1.2;
}
.fe-subtitle { margin: 0; font-size: 0.875rem; color: var(--fe-ink-muted); }
.fe-page-header__actions { flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; }

/* Uppercase Micro-Label (NEXIS .label) */
.fe-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fe-ink-subtle);
}

/* ── 4. Card ─────────────────────────────────────────────────────────────── */
.fe-card {
    background: var(--fe-surface);
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius-lg);
    box-shadow: var(--fe-shadow-md);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.fe-card--hover:hover { box-shadow: var(--fe-shadow-lg); transform: translateY(-2px); }
.fe-card__body { padding: 1rem; }   /* §0-Verdichtung: war 1.25rem */
.fe-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fe-ink);
}
.fe-card__head .fe-spacer { margin-left: auto; }

/* Linker Akzentstreifen (z.B. Handlungsbedarf-Panel) */
.fe-card--accent { border-left: 4px solid var(--fe-tone); }

/* ── 5. KPI-Kachel ───────────────────────────────────────────────────────── */
.fe-kpi { display: flex; flex-direction: column; height: 100%; }
.fe-kpi__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.fe-kpi__value {
    margin-top: 0.3rem;
    font-size: 1.5rem;              /* §0-Verdichtung: war 1.875rem */
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--fe-ink);
    font-variant-numeric: tabular-nums;
}
.fe-kpi__hint { margin-top: 0.15rem; font-size: 0.8125rem; color: var(--fe-ink-subtle); }
.fe-kpi__footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--fe-border);
    font-size: 0.75rem;
    color: var(--fe-ink-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.fe-kpi__footer:empty { display: none; }

/* Icon-Tile — tönt nach --fe-tone */
.fe-icon-tile {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;                  /* §0-Verdichtung: war 2.75rem */
    height: 2.5rem;
    border-radius: var(--fe-radius);
    font-size: 1.1rem;              /* war 1.25rem */
    color: var(--fe-tone);
    background: var(--fe-tone-soft);
}

/* ── 6. Chip / Badge (Pastell) ───────────────────────────────────────────── */
.fe-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--fe-tone-strong);
    background: var(--fe-tone-soft);
    border: 1px solid color-mix(in srgb, var(--fe-tone) 22%, transparent);
    white-space: nowrap;
}

/* ── 7. Tone-Modifier (setzen --fe-tone* für icon-tile / chip / accent) ──── */
.fe-tone-brand     { --fe-tone: #1499B7; --fe-tone-strong: #0A6E89; --fe-tone-soft: var(--fe-brand-soft); }
.fe-tone-success   { --fe-tone: #16a34a; --fe-tone-strong: #15803d; --fe-tone-soft: rgba(34, 197, 94, 0.13); }
.fe-tone-warning   { --fe-tone: #d97706; --fe-tone-strong: #b45309; --fe-tone-soft: rgba(245, 158, 11, 0.15); }
.fe-tone-danger    { --fe-tone: #dc2626; --fe-tone-strong: #b91c1c; --fe-tone-soft: rgba(239, 68, 68, 0.13); }
.fe-tone-info      { --fe-tone: #0891b2; --fe-tone-strong: #0e7490; --fe-tone-soft: rgba(6, 182, 212, 0.13); }
.fe-tone-secondary { --fe-tone: #64748b; --fe-tone-strong: #475569; --fe-tone-soft: rgba(100, 116, 139, 0.14); }

/* Dark: Tone-Texte aufhellen für Lesbarkeit auf dunklem Pastell */
[data-bs-theme="dark"] .fe-tone-brand     { --fe-tone: #2bc4e6; --fe-tone-strong: #7fe0f4; --fe-tone-soft: rgba(26, 180, 214, 0.18); }
[data-bs-theme="dark"] .fe-tone-success   { --fe-tone: #34d399; --fe-tone-strong: #6ee7b7; --fe-tone-soft: rgba(34, 197, 94, 0.18); }
[data-bs-theme="dark"] .fe-tone-warning   { --fe-tone: #fbbf24; --fe-tone-strong: #fcd34d; --fe-tone-soft: rgba(245, 158, 11, 0.20); }
[data-bs-theme="dark"] .fe-tone-danger    { --fe-tone: #f87171; --fe-tone-strong: #fca5a5; --fe-tone-soft: rgba(239, 68, 68, 0.20); }
[data-bs-theme="dark"] .fe-tone-info      { --fe-tone: #22d3ee; --fe-tone-strong: #67e8f9; --fe-tone-soft: rgba(6, 182, 212, 0.20); }
[data-bs-theme="dark"] .fe-tone-secondary { --fe-tone: #94a3b8; --fe-tone-strong: #cbd5e1; --fe-tone-soft: rgba(148, 163, 184, 0.18); }

/* ── 8. Primary-Button (Türkis-Gradient-Akzent) ──────────────────────────── */
.fe-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: var(--fe-radius);
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--fe-gradient-brand);
    box-shadow: var(--fe-shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}
.fe-btn-primary:hover { box-shadow: var(--fe-shadow-md); transform: translateY(-1px); color: #fff; }

/* ── 9. fade-in (NEXIS animate-fade-in) ──────────────────────────────────── */
.fe-fade-in { animation: feFadeIn 0.25s ease-out; }
@keyframes feFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   §10 GLOBAL ROLLOUT (2026-06-02) — NEXIS-Look app-weit, nicht seitenweise.
   Greift auf Bootstrap-Ebene → wirkt auf ALLE Seiten ohne Per-Page-Edit:
   (a) Primärfarbe → Türkis  (b) weiche Cards  (c) helle Flächen + Mesh
   (d) helle Sidebar  (e) Tabs/Buttons/Inputs/Fokus auf Marke.
   Lädt nach bootstrap.min.css + app.css + tailwind.css → gewinnt.
   ============================================================================ */

/* ── §10.1 Bootstrap-Primärfarbe = Türkis (eine konsistente Marke) ───────── */
:root {
    --bs-primary: #1AB4D6;
    --bs-primary-rgb: 26, 180, 214;
    --bs-link-color: #0E8AAB;
    --bs-link-color-rgb: 14, 138, 171;
    --bs-link-hover-color: #0A6E89;
    --bs-link-hover-color-rgb: 10, 110, 137;
}
[data-bs-theme="dark"] {
    --bs-primary: #2bc4e6;
    --bs-primary-rgb: 43, 196, 230;
    --bs-link-color: #7fe0f4;
    --bs-link-color-rgb: 127, 224, 244;
    --bs-link-hover-color: #a5ecf8;
    --bs-link-hover-color-rgb: 165, 236, 248;
}

.btn-primary {
    --bs-btn-bg: var(--fe-brand);
    --bs-btn-border-color: var(--fe-brand);
    --bs-btn-hover-bg: var(--fe-brand-600);
    --bs-btn-hover-border-color: var(--fe-brand-600);
    --bs-btn-active-bg: var(--fe-brand-700);
    --bs-btn-active-border-color: var(--fe-brand-700);
    --bs-btn-disabled-bg: var(--fe-brand);
    --bs-btn-disabled-border-color: var(--fe-brand);
}
.btn-outline-primary {
    --bs-btn-color: var(--fe-brand-700);
    --bs-btn-border-color: var(--fe-brand);
    --bs-btn-hover-bg: var(--fe-brand);
    --bs-btn-hover-border-color: var(--fe-brand);
    --bs-btn-active-bg: var(--fe-brand-600);
    --bs-btn-active-border-color: var(--fe-brand-600);
    --bs-btn-hover-color: #fff;
}
[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-hover-color: #06222a; }

/* Inputs/Checks auf Marken-Fokus (statt Bootstrap-Blau) */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn-check:focus + .btn,
.page-link:focus {
    border-color: var(--fe-brand);
    box-shadow: 0 0 0 0.2rem rgba(26, 180, 214, 0.25);
}
.form-check-input:checked { background-color: var(--fe-brand); border-color: var(--fe-brand); }

/* ── §10.2 Body / Content-Flächen: hell + dezenter Mesh ──────────────────── */
main.bg-light,
.content-area,
.main-content {
    background-color: #f5f7fb !important;       /* near-white; Dark-Farbe kommt aus app.css ([data-bs-theme] höher spezifisch) */
    background-image: var(--fe-mesh);
    background-attachment: fixed;
}

/* ── §10.3 Bootstrap-Cards → weiche NEXIS-Cards (app-weit) ────────────────── */
.card {
    --bs-card-border-color: var(--fe-border);
    --bs-card-border-radius: var(--fe-radius-lg);
    --bs-card-inner-border-radius: calc(var(--fe-radius-lg) - 1px);
    border-color: var(--fe-border);
    box-shadow: var(--fe-shadow-md);
}
.card.border-0 { box-shadow: var(--fe-shadow-md); }
.card .card-header { background-color: transparent; border-bottom-color: var(--fe-border); }
.card .card-footer { border-top-color: var(--fe-border); }
.list-group { --bs-list-group-border-color: var(--fe-border); }
.table { --bs-border-color: var(--fe-border); }

/* ── §10.4 Tabs im NEXIS-Pill-Stil (rund, soft-aktiv statt Underline) ───── */
/* Kein Underline mehr; freistehende Pills. Aktiv = soft Türkis-Tint + Türkis-Text
   (wie NEXIS), inaktiv = gedämpfter Ink, Hover = dezente Fläche. Überschreibt die
   alten app.css-nav-tabs-Regeln (Border-Bottom + #495057 + Blau-Aktiv). */
.nav-tabs {
    border-bottom: none;
    gap: 0.25rem;
    --bs-nav-tabs-border-width: 0;
}
.nav-tabs .nav-link {
    border: none !important;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    margin-bottom: 0;
    color: var(--fe-ink-muted);
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-tabs .nav-link:hover {
    color: var(--fe-ink);
    background-color: var(--fe-surface-muted);
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item .nav-link.active,
.nav-tabs button.nav-link.active,
.nav-tabs a.nav-link.active,
.nav.nav-tabs .nav-link.active {
    background-color: var(--fe-brand-soft) !important;
    border: none !important;
    color: var(--fe-brand-700) !important;
}

/* ── §10.4b Segmented Pill-Control (TabPills/TabPill) — deterministisch ──────
   K7 (2026-06-16): ersetzt die Tailwind-C#-Getter-Klassen der Modern-Komponenten
   (P23b-Lehre: JIT erfasst dynamisch in @code gebaute Klassen-Strings NICHT
   zuverlässig → tw-bg-white/tw-shadow-card landeten evtl. nicht im committeten
   tailwind.css). Hand-CSS ist deterministisch + dark-fähig über Token-Swap.
   NEXIS-Segmented-Control: gedämpfte Wanne, aktive Pill = Surface + weicher
   Schatten + Brand-Text, KEINE Border. */
.fe-segment {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--fe-surface-muted);
    border-radius: var(--fe-radius);
}
.fe-segment__pill {
    border: 0;
    background: transparent;
    border-radius: calc(var(--fe-radius) - 0.3rem);
    padding: 0.4rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--fe-ink-muted);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.fe-segment__pill:hover:not(.is-active):not(:disabled) {
    color: var(--fe-ink);
    background: color-mix(in srgb, var(--fe-surface) 70%, transparent);
}
.fe-segment__pill.is-active {
    background: var(--fe-surface);
    color: var(--fe-brand-700);
    box-shadow: var(--fe-shadow-sm);
}
.fe-segment__pill:disabled { opacity: 0.5; cursor: not-allowed; }
.fe-segment__badge {
    margin-left: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--fe-brand-soft);
    color: var(--fe-brand-700);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.05rem 0.45rem;
}

/* ── §10.5 Helle Sidebar (das NEXIS-Signature-Element) ───────────────────── */
.sidebar {
    background: var(--fe-surface) !important;   /* überschreibt den Dunkelblau-Gradient aus app.css + .bg-dark */
    color: var(--fe-ink) !important;
    border-right: 1px solid var(--fe-border);
}
[data-bs-theme="dark"] .sidebar {
    background: var(--fe-surface) !important;   /* ruhiges dunkles Panel statt Gradient */
    border-right-color: var(--fe-border);
}
.sidebar .sidebar-header { border-bottom: 1px solid var(--fe-border) !important; }
/* NavMenu-Links nutzen text-white / text-white-50 (für Dunkel-Sidebar gedacht) → auf Ink umfärben */
.sidebar .nav-link.text-white { color: var(--fe-ink) !important; font-weight: 500; }
.sidebar .nav-link.text-white-50 { color: var(--fe-ink-muted) !important; }
.sidebar .border-top.border-secondary { border-color: var(--fe-border) !important; }
/* Logo-Mini (favicon) bleibt; Voll-Logo ist türkis+navy → auf Hell gut lesbar. */

/* ── §10.6 Typo-Feinschliff im Content ───────────────────────────────────── */
.content-area h1, .content-area h2, .content-area h3,
main h1, main h2, main h3 { letter-spacing: -0.01em; }

/* Breadcrumb dezenter */
.breadcrumb { --bs-breadcrumb-divider-color: var(--fe-ink-subtle); margin-bottom: 0; }

/* ── §10.8 Dark-Mode-Reste: erzwungen-helle Tabellenköpfe + bg-light-Badges ── */
/* `<thead class="table-light">` (≈15 Tabellen) erzwingt sonst auch im Dark einen
   hellen Kopf → hier auf Token-Dunkel umbiegen. */
[data-bs-theme="dark"] .table-light {
    --bs-table-color: var(--fe-ink);
    --bs-table-bg: var(--fe-surface-muted);
    --bs-table-border-color: var(--fe-border);
    color: var(--fe-ink);
}
/* bg-light-Badges: app.css zieht .bg-light im Dark auf #0d1117 → mit text-dark
   wäre der Badge unlesbar (dunkel auf dunkel). Als dezenten Token-Badge zeichnen. */
[data-bs-theme="dark"] .badge.bg-light {
    background-color: var(--fe-surface-subtle) !important;
    color: var(--fe-ink) !important;
}

/* ── §10.9 Einheitliches Seiten-Layout (#2) — EINE globale Regel, kein Per-Page-Style ──
   Problem: Seiten nutzen verschiedene Wurzel-Container — `container-fluid` (mit
   Gutter), `.container` (max-width + zentriert → Inhalt sitzt rechts/mittig) oder
   eine custom `*-page`-Klasse (ganz ohne Padding). Dadurch starten Titel je Seite
   unterschiedlich weit links/rechts. Fix: JEDE Seiten-Wurzel (direktes Kind von
   <main>) bekommt identische Geometrie — volle Breite, kein Zentrieren, gleicher
   horizontaler Innenabstand (= Bootstrap-Gutter, damit .row-Negativmargins passen
   und nichts überläuft), kein eigener Vertikalabstand. <main class="p-4"> bleibt der
   einzige Außenrand. `.fe-page` (Dashboard-Full-Bleed-Mesh) bewusst ausgenommen.
   ⚠️ `.modal` MUSS ausgenommen sein: custom-Modals (`<div class="modal fade show d-block">`)
   werden als direkte Kinder von <main> gerendert. `width:auto !important` würde Bootstraps
   `.modal{width:100%}` überschreiben → das fixe Overlay schrumpft auf Dialogbreite und klebt
   per `left:0` links (Bug 2026-06-03). Daher `:not(.modal)` — Modals behalten Bootstrap-Geometrie. */
main > div:not(.fe-page):not(.modal) {
    max-width: 100% !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
}

/* ── §10.10 Globale Topbar-Suche (GlobalSearch.razor) — Token-basiert ──────── */
.fe-search { position: relative; width: 340px; max-width: 32vw; }
.fe-search__icon {
    position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%);
    color: var(--fe-ink-subtle); font-size: 0.85rem; pointer-events: none; z-index: 1;
}
.fe-search__input {
    padding-left: 2.1rem !important;
    border-radius: 999px !important;
    background-color: var(--fe-surface-muted);
    border-color: var(--fe-border);
}
.fe-search__input:focus { background-color: var(--fe-surface); }
.fe-search__backdrop { position: fixed; inset: 0; z-index: 1050; background: transparent; }
.fe-search__panel {
    position: absolute; top: calc(100% + 0.4rem); left: 0; right: 0; z-index: 1051;
    background: var(--fe-surface);
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius);
    box-shadow: var(--fe-shadow-lg);
    max-height: 64vh; overflow-y: auto; padding: 0.35rem;
}
.fe-search__hint { padding: 0.6rem 0.75rem; color: var(--fe-ink-muted); font-size: 0.85rem; }
.fe-search__group {
    padding: 0.45rem 0.75rem 0.15rem;
    font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--fe-ink-subtle);
}
.fe-search__item {
    display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left;
    border: none; background: transparent; cursor: pointer;
    border-radius: calc(var(--fe-radius) - 2px); padding: 0.45rem 0.6rem; color: var(--fe-ink);
}
.fe-search__item:hover { background: var(--fe-surface-muted); }
.fe-search__item-icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 1.9rem; height: 1.9rem; border-radius: 0.55rem;
    background: var(--fe-brand-soft); color: var(--fe-brand-700);
}
.fe-search__item-body { display: flex; flex-direction: column; min-width: 0; }
.fe-search__item-title { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fe-search__item-sub { font-size: 0.72rem; color: var(--fe-ink-subtle); }
@media (max-width: 768px) { .fe-search { display: none; } }

/* ── §10.11 Eingabefelder im NEXIS-Stil (runder) ─────────────────────────────
   NEXIS nutzt rounded-xl-Inputs. Bootstrap-Input-Groups behalten ihre eigene
   (spezifischere) Radius-Logik → joined-Look bleibt intakt. Token-basiert. */
.form-control, .form-select {
    border-radius: var(--fe-radius);
}

/* ── §10.7 ModernCard Header/Footer-Leisten (für die geteilte Komponente) ── */
.fe-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 1rem;           /* §0-Verdichtung: war 0.875rem 1.25rem */
    border-bottom: 1px solid var(--fe-border);
}
.fe-card__header-title { font-size: 0.95rem; font-weight: 600; color: var(--fe-ink); }
.fe-card__header-subtitle { font-size: 0.75rem; color: var(--fe-ink-subtle); }
.fe-card__footer {
    padding: 0.6rem 1rem;           /* §0-Verdichtung: war 0.75rem 1.25rem */
    border-top: 1px solid var(--fe-border);
    background: var(--fe-surface-muted);
    font-size: 0.8125rem;
    color: var(--fe-ink-muted);
    border-radius: 0 0 var(--fe-radius-lg) var(--fe-radius-lg);
}

/* ── §10.12 Dispo-StatusFarben-Swatch-Palette (DispoFarbPalette.razor) ────────
   P-DP2 Scheibe 2: Zeilen-/Zellfärbung der Dispo-Tagespläne. Kleine anklickbare
   Farbfelder aus dem StatusFarben-Katalog; ausgewähltes Feld = Brand-Ring. Reine
   Hand-CSS (kein Tailwind-JIT), token-basiert, dark-fähig. */
.fe-swatch {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--fe-border);
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: box-shadow 0.12s ease, transform 0.12s ease;
}
.fe-swatch:hover { transform: scale(1.08); }
.fe-swatch.is-selected {
    box-shadow: 0 0 0 2px var(--fe-surface), 0 0 0 4px var(--fe-brand);
    border-color: var(--fe-brand);
}
.fe-swatch--none {
    background: var(--fe-surface-muted);
    color: var(--fe-ink-subtle);
    font-size: 0.7rem;
}
/* Farbtupfer im DatePicker-Streifen (belegte Tage) + kompakter Tages-Chip. */
.fe-daychip {
    border: 1px solid var(--fe-border);
    background: var(--fe-surface-muted);
    color: var(--fe-ink);
    border-radius: 6px;
    padding: 0.1rem 0.5rem;
    font-size: 0.78rem;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}
.fe-daychip:hover:not(.is-active) { background: var(--fe-brand-soft); color: var(--fe-brand-700); }
.fe-daychip.is-active {
    background: var(--fe-brand);
    color: #fff;
    border-color: var(--fe-brand);
    font-weight: 600;
}
.fe-daychip--weekend:not(.is-active) { color: var(--bs-danger); }

/* ── §10.13 FV-Gantt Mini-Leiste (DispoFernBalken auf 30-h-Achse) ─────────────
   P-DP2: kompakte Zeitachsen-Darstellung der Fernbalken je Tagesplan-Zeile.
   Track = 0..1800 Min (00:00 → 06:00 Folgetag), Segmente absolut positioniert. */
.fe-gantt {
    position: relative;
    height: 14px;
    width: 200px;
    max-width: 100%;
    background: var(--fe-surface-muted);
    border: 1px solid var(--fe-border);
    border-radius: 4px;
    overflow: hidden;
}
.fe-gantt__bar {
    position: absolute;
    top: 1px;
    bottom: 1px;
    min-width: 2px;
    border-radius: 3px;
}
/* Grid-Mini-Gantt als Klick-Ziel zum Öffnen des Zeilen-Editors. */
.fe-gantt--clickable { cursor: pointer; }
.fe-gantt--clickable:hover { box-shadow: 0 0 0 2px var(--fe-brand-soft); }

/* ── §10.14 Interaktiver FV-Gantt (Zeilen-Editor, DispoTagesplan-Modal) ────────
   P-DP2: Balken per Drag verschieben, per Kante in der Dauer ändern (Snap 15 Min,
   JS: dispofvgantt.js), Überlappungen stapeln automatisch in Spuren (Lane-Layout
   in C#). Achse 0..1800 Min. Token-basiert + dark-fähig (reiner Variablen-Swap). */
.fe-fvgantt { user-select: none; }
.fe-fvgantt__ruler {
    position: relative;
    height: 15px;
    margin-bottom: 3px;
    font-size: 0.66rem;
    color: var(--fe-ink-subtle);
}
.fe-fvgantt__tick {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
    top: 0;
}
.fe-fvgantt__track {
    position: relative;
    background: var(--fe-surface-muted);
    border: 1px solid var(--fe-border);
    border-radius: 6px;
    overflow: hidden;
    min-height: 30px;
}
.fe-fvgantt__grid {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--fe-border);
    opacity: 0.55;
    pointer-events: none;
}
.fe-fvgantt__bar {
    position: absolute;
    height: 20px;
    min-width: 12px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.66rem;
    line-height: 20px;
    padding: 0 7px;
    overflow: hidden;
    white-space: nowrap;
    cursor: grab;
    display: flex;
    align-items: center;
    transition: filter 0.1s ease;
}
.fe-fvgantt__bar:hover { filter: brightness(1.07); }
.fe-fvgantt__time {
    pointer-events: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
/* Resize-Zonen an den Balkenkanten (nur Hinweis; die Trefferzone bestimmt JS). */
.fe-fvgantt__bar::before,
.fe-fvgantt__bar::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 7px;
    background: transparent;
    transition: background-color 0.1s ease;
}
.fe-fvgantt__bar::before { left: 0; }
.fe-fvgantt__bar::after { right: 0; }
.fe-fvgantt__bar:hover::before,
.fe-fvgantt__bar:hover::after { background: rgba(255, 255, 255, 0.35); }

/* ── §10.15 FV-Gantt Tagesansicht (DispoTagesplan, Code FERN, §3.4) ────────────
   P-DP3 Scheibe 2: Voll-Gantt-Layout — feste Sidebar (Tour/LKW/Fahrer) + Timeline
   auf der 30-h-CrossDay-Achse (0..1800 Min). Folgetag-Zone ab 24:00 (=80 %) grau
   hinterlegt, 3-h-Gridlines alle 10 %, Jetzt-Linie (rot), Balken gestapelt in Spuren.
   Fortsetzungs-Zeilen „von gestern" als schraffierte Ghost-Balken. Token-basiert + dark. */
.fe-fvday {
    border: 1px solid var(--fe-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--fe-surface);
    user-select: none;
}
.fe-fvday__row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--fe-border);
}
.fe-fvday__row:last-child { border-bottom: 0; }
.fe-fvday__row--alt { background: var(--fe-surface-muted); }
.fe-fvday__row--head {
    background: var(--fe-surface-subtle);
    font-size: 0.68rem;
    color: var(--fe-ink-subtle);
}
.fe-fvday__row--cont {
    background: repeating-linear-gradient(45deg, var(--fe-surface-muted) 0 6px, var(--fe-surface) 6px 12px);
}
.fe-fvday__side {
    flex: 0 0 240px;
    max-width: 240px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-right: 1px solid var(--fe-border);
    overflow: hidden;
}
.fe-fvday__side--head { font-weight: 600; }
.fe-fvday__nr {
    flex: 0 0 auto;
    min-width: 20px;
    text-align: center;
    font-size: 0.72rem;
    color: var(--fe-ink-subtle);
}
.fe-fvday__ident { flex: 1 1 auto; min-width: 0; line-height: 1.15; }
.fe-fvday__ident > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-fvday__tour { font-weight: 600; font-size: 0.8rem; }
.fe-fvday__plate { font-size: 0.74rem; }
.fe-fvday__drv { font-size: 0.72rem; color: var(--fe-ink-subtle); }
.fe-fvday__act { flex: 0 0 auto; display: flex; gap: 3px; }
.fe-fvday__contflag {
    flex: 0 0 auto;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--fe-brand-ink);
    background: var(--fe-brand-soft);
    border-radius: 999px;
    padding: 1px 6px 1px 2px;
    white-space: nowrap;
}
.fe-fvday__lane {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    background:
        repeating-linear-gradient(to right, var(--fe-border) 0 1px, transparent 1px 10%),
        linear-gradient(to right, transparent 0 80%, var(--fe-surface-subtle) 80% 100%);
}
.fe-fvday__lane--clickable { cursor: pointer; }
.fe-fvday__lane--clickable:hover { box-shadow: inset 0 0 0 2px var(--fe-brand-soft); }
.fe-fvday__lane--ruler {
    height: 22px;
    background: linear-gradient(to right, transparent 0 80%, var(--fe-surface-subtle) 80% 100%);
}
.fe-fvday__tick {
    position: absolute;
    top: 4px;
    transform: translateX(-50%);
    font-size: 0.64rem;
    color: var(--fe-ink-subtle);
    white-space: nowrap;
    pointer-events: none;
}
.fe-fvday__folgetag-label {
    position: absolute;
    top: 4px;
    margin-left: 6px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--fe-ink-subtle);
    pointer-events: none;
}
.fe-fvday__now {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dc3545;
    z-index: 2;
    pointer-events: none;
}
.fe-fvday__now--head { top: 2px; bottom: 2px; }
.fe-fvday__bar {
    position: absolute;
    height: 20px;
    min-width: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.64rem;
    line-height: 20px;
    padding: 0 6px;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    z-index: 1;
}
.fe-fvday__bar--ghost {
    opacity: 0.65;
    box-shadow: none;
    border: 1px dashed rgba(255, 255, 255, 0.6);
}
.fe-fvday__bartxt {
    pointer-events: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-overflow: ellipsis;
}
.fe-fvday__empty {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: var(--fe-ink-subtle);
    pointer-events: none;
}

/* ── §10.16 Planungs-Sidebar (DispoTagesplan §3.5) — freie LKW/Fahrer als Drag-Chips ──────
   P-DP3 Scheibe 3: Panel listet die freien Ressourcen des Tages; Chips per HTML5-Drag (Blazor-
   nativ, kein JS) auf eine Plan-Zeile ziehen → Fahrzeug/Fahrer-Zuweisung. Token-basiert + dark. */
.fe-plan-panel { border-left: 3px solid var(--fe-brand); }
.fe-plan-panel__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--fe-ink-subtle);
    margin-bottom: 4px;
}
.fe-plan-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 120px;
    overflow-y: auto;
}
.fe-plan-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    font-size: 0.76rem;
    border-radius: 999px;
    background: var(--fe-brand-soft);
    color: var(--fe-brand-ink);
    border: 1px solid transparent;
    cursor: grab;
    user-select: none;
    white-space: nowrap;
}
.fe-plan-chip:hover { border-color: var(--fe-brand); }
.fe-plan-chip:active { cursor: grabbing; }
.fe-plan-chip--drv { background: var(--fe-surface-subtle); color: var(--fe-ink); }

/* ── §10.17 BHV25-Wide-Grid (DispoTagesplan §3.1) — breites Standard-Raster ───────────── */
.fe-bhv td, .fe-bhv th { vertical-align: top; }
.fe-bhv th.text-nowrap { font-size: 0.72rem; }

/* ── §10.18 Verfügbarkeits-Board (DispoBoard, §7) — LKW-Matrix aus Spalten + Karten ───── */
.fe-board {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    align-items: flex-start;
}
.fe-board__col {
    flex: 0 0 auto;
    width: 13.5rem;
    background: var(--fe-surface);
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius);
    box-shadow: var(--fe-shadow-sm);
    display: flex;
    flex-direction: column;
    max-height: 72vh;
}
.fe-board__col--stamm { background: var(--fe-muted); }
.fe-board__col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.4rem 0.55rem;
    border-bottom: 1px solid var(--fe-border);
}
.fe-board__col-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    font-size: 0.82rem;
}
.fe-board__count {
    font-size: 0.7rem;
    color: var(--fe-ink-subtle);
    background: var(--fe-subtle);
    border-radius: 999px;
    padding: 0 0.4rem;
    flex: 0 0 auto;
}
.fe-board__col-actions { display: flex; gap: 0.15rem; flex: 0 0 auto; }
.fe-board__col-actions .btn { color: var(--fe-ink-subtle); }
.fe-board__col-actions .btn:hover { color: var(--fe-brand); }
.fe-board__dot {
    width: 0.7rem; height: 0.7rem;
    border-radius: 999px;
    flex: 0 0 auto;
    border: 1px solid rgba(0,0,0,0.15);
}
.fe-board__palette {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.4rem 0.55rem;
    border-bottom: 1px solid var(--fe-border);
}
.fe-board__swatch {
    width: 1.15rem; height: 1.15rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.fe-board__swatch--none {
    background: var(--fe-surface);
    color: var(--fe-ink-subtle);
    font-size: 0.7rem;
}
.fe-board__col-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem;
    overflow-y: auto;
    min-height: 3rem;
    flex: 1 1 auto;
}
.fe-board__empty { color: var(--fe-ink-subtle); font-size: 0.85rem; text-align: center; padding: 0.5rem 0; }
.fe-board__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    background: var(--fe-surface);
    border: 1px solid var(--fe-border);
    border-radius: 0.4rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: grab;
    box-shadow: var(--fe-shadow-sm);
}
.fe-board__card:active { cursor: grabbing; }
.fe-board__card--stamm { font-weight: 500; box-shadow: none; background: var(--fe-surface); }
.fe-board__card-x {
    border: none;
    background: transparent;
    color: var(--fe-ink-subtle);
    line-height: 1;
    font-size: 1rem;
    padding: 0 0.15rem;
    cursor: pointer;
    flex: 0 0 auto;
}
.fe-board__card-x:hover { color: var(--bs-danger); }
.fe-board__addcard { padding: 0.4rem 0.5rem; border-top: 1px solid var(--fe-border); }

/* §7.3 berechnete Plan-Spalte + §7.2 Karten-Intelligenz */
.fe-board__col--managed { border-color: var(--fe-brand); box-shadow: 0 0 0 1px var(--fe-brand-soft) inset; }
.fe-board__col--managed .fe-board__col-head { background: var(--fe-brand-soft); }
.fe-board__managed-ico { color: var(--fe-brand); font-size: 0.8rem; flex: 0 0 auto; }
.fe-board__col--managed .fe-board__card { cursor: default; }
.fe-board__card--2x {
    border-color: var(--bs-danger-border-subtle, #f1aeb5);
    background: var(--bs-danger-bg-subtle, #f8d7da);
}
.fe-board__badge2x {
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    background: var(--bs-danger, #dc3545);
    border-radius: 999px;
    padding: 0 0.35rem;
    line-height: 1.4;
    flex: 0 0 auto;
}

/* §7.1 Sperr-Spalte + gesperrte Fahrzeuge */
.fe-board__sperr-ico { font-size: 0.8rem; flex: 0 0 auto; }
.fe-board__lock { font-size: 0.8rem; flex: 0 0 auto; line-height: 1; }
.fe-board__card--locked {
    opacity: 0.72;
    text-decoration: line-through;
    text-decoration-color: var(--bs-danger, #dc3545);
}
.fe-board__card--locked .fe-board__lock { text-decoration: none; }

/* ============================================================================
   §10.19 Personal-/Urlaubsplaner-Matrix (P-DP6, DispoAPP-Parität §8)
   MA × Tage — Abwesenheits-Zellen (U/K/S), Feiertags-/Wochenend-/Heute-Tönung.
   Abwesenheitsfarben sind DATEN (wie StatusFarben) → bewusst hell, mit dunklem Text.
   ========================================================================== */
.fe-pm-scroll { overflow-x: auto; border: 1px solid var(--fe-border); border-radius: var(--fe-radius); }
.fe-pm { border-collapse: separate; border-spacing: 0; font-size: 0.8rem; width: max-content; min-width: 100%; }
.fe-pm th, .fe-pm td { border-right: 1px solid var(--fe-border); border-bottom: 1px solid var(--fe-border); }

.fe-pm thead th {
    position: sticky; top: 0; z-index: 1; background: var(--fe-surface);
    padding: 3px 4px; text-align: center; vertical-align: middle;
}
.fe-pm__name {
    position: sticky; left: 0; z-index: 3; background: var(--fe-surface);
    text-align: left; padding: 4px 10px; min-width: 190px; white-space: nowrap;
}
.fe-pm thead .fe-pm__name { z-index: 4; }
.fe-pm__daynum { display: block; font-weight: 700; line-height: 1.1; }
.fe-pm__wd { display: block; font-size: 0.68rem; color: var(--fe-muted); }
.fe-pm__maname { display: block; font-weight: 600; color: var(--fe-ink); }
.fe-pm__manr { display: block; font-size: 0.68rem; color: var(--fe-muted); }

.fe-pm__day.is-weekend .fe-pm__wd { color: #b4478a; }
.fe-pm__day.is-holiday { background: #efe8fb; }
.fe-pm__day.is-holiday .fe-pm__daynum, .fe-pm__day.is-holiday .fe-pm__wd { color: #7a4fc0; }
.fe-pm__day.is-today { box-shadow: inset 0 0 0 2px var(--fe-brand); }

.fe-pm__cell {
    width: 30px; min-width: 30px; height: 30px; text-align: center;
    font-weight: 600; color: var(--fe-ink);
}
.fe-pm__cell.is-urlaub { background: #ffe3a3; color: #7a5200; }
.fe-pm__cell.is-krank { background: #f7bcbc; color: #7a1f1f; }
.fe-pm__cell.is-sonstiges { background: #d7dbe0; color: #3a4048; }
.fe-pm__cell.is-pending {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255,255,255,.6) 3px, rgba(255,255,255,.6) 6px);
}
.fe-pm__cell.is-weekend { background: #f6e7ef; }
.fe-pm__cell.is-holiday { background: #e7ddf7; }
.fe-pm__cell.is-today { box-shadow: inset 0 0 0 2px var(--fe-brand); }

/* Legende-Chips */
.fe-pm-chip { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; border: 1px solid var(--fe-border); }
.fe-pm-chip--urlaub { background: #ffe3a3; }
.fe-pm-chip--krank { background: #f7bcbc; }
.fe-pm-chip--sonstiges { background: #d7dbe0; }
.fe-pm-chip--pending { background: #ffe3a3; background-image: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255,255,255,.65) 3px, rgba(255,255,255,.65) 6px); }
.fe-pm-chip--holiday { background: #e7ddf7; }
.fe-pm-chip--weekend { background: #f6e7ef; }

/* Dark: nur die blassen Struktur-Flächen abdunkeln (Abwesenheitsfarben bleiben als Daten hell). */
[data-bs-theme="dark"] .fe-pm__cell.is-weekend { background: rgba(180,71,138,.18); }
[data-bs-theme="dark"] .fe-pm__cell.is-holiday { background: rgba(122,79,192,.24); }
[data-bs-theme="dark"] .fe-pm__day.is-holiday { background: rgba(122,79,192,.24); }
[data-bs-theme="dark"] .fe-pm__day.is-holiday .fe-pm__daynum, [data-bs-theme="dark"] .fe-pm__day.is-holiday .fe-pm__wd { color: #c3a9f0; }
