/* ==========================================================================
   Backpilot – Oberfläche im Dorfbäck-CI (seit 2.98)
   Creme · Dorfbäck-Grün · Orange · Josefin Sans + Bitter
   ========================================================================== */

/* Hausschriften kommen aus dem Homepage-Ordner (schrift.php); fehlen sie, greifen Systemschriften */
@font-face { font-family: "Josefin Sans"; src: url("../schrift.php?f=josefin-400") format("woff"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("../schrift.php?f=josefin-600") format("woff"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("../schrift.php?f=bitter-700") format("woff"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Dorfbaeck Script"; src: url("../schrift.php?f=script") format("woff"); font-display: swap; }

:root {
  /* CI-Farben */
  --ci-creme: #fbf6ee; --ci-creme2: #f3eadb; --ci-weiss: #fffdf9;
  --ci-gruen: #2f4b38; --ci-gruen-d: #22382a; --ci-gruen-h: #3f6149; --ci-gruen-hell: #e7efe8;
  --ci-orange: #ef9f2a; --ci-orange-d: #c97c12; --ci-orange-hell: #fdf0dc;
  --ci-dunkel: #2b2b28; --ci-text: #3b3a35; --ci-taupe: #a39e8e; --ci-gedaempft: #7a756a; --ci-linie: #e6dccb;
  --ci-serif: "Bitter", Georgia, "DejaVu Serif", serif;
  --ci-sans: "Josefin Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --ci-script: "Dorfbaeck Script", "Segoe Script", "Brush Script MT", cursive;
  --ci-rund: 16px; --ci-rund-k: 10px;
  --ci-schatten: 0 1px 2px rgba(60, 40, 10, .05), 0 8px 24px -16px rgba(60, 40, 10, .28);
  --ci-schatten-hoch: 0 2px 4px rgba(60, 40, 10, .06), 0 18px 40px -22px rgba(60, 40, 10, .38);

  /* alte Namen – werden von einzelnen Seiten noch benutzt */
  --app-brown: var(--ci-gruen); --app-brown-dark: var(--ci-gruen-d); --app-amber: var(--ci-orange); --app-cream: var(--ci-creme);

  /* Bootstrap */
  /* Text wieder in der Systemschrift (wie bis 2.97) – Josefin/Bitter nur noch im Logo-Schriftzug */
  --ci-text-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--ci-text-font);
  --bs-body-font-size: 1rem;
  --bs-body-color: var(--ci-text);
  --bs-body-bg: var(--ci-creme);
  --bs-primary: var(--ci-gruen); --bs-primary-rgb: 47, 75, 56;
  --bs-success: #3d7a4c; --bs-success-rgb: 61, 122, 76;
  --bs-warning: #ef9f2a; --bs-warning-rgb: 239, 159, 42;
  --bs-link-color: var(--ci-gruen); --bs-link-color-rgb: 47, 75, 56;
  --bs-link-hover-color: var(--ci-orange-d); --bs-link-hover-color-rgb: 201, 124, 18;
  --bs-border-color: var(--ci-linie);
  --bs-border-radius: .6rem; --bs-border-radius-sm: .45rem; --bs-border-radius-lg: .9rem;
  --bs-secondary-color: var(--ci-gedaempft);
  --bs-emphasis-color: var(--ci-dunkel);
  --bs-heading-color: var(--ci-dunkel);
  --bs-focus-ring-color: rgba(239, 159, 42, .3);
  --topbar-h: 60px; --sidebar-w: 248px;
}

/* ---------- Grundlagen ---------- */
html { -webkit-text-size-adjust: 100%; }
body { background: var(--ci-creme); color: var(--ci-text); font-family: var(--ci-text-font); font-size: var(--bs-body-font-size); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--ci-text-font); color: var(--ci-dunkel); letter-spacing: -.01em; font-weight: 700; }
h4, h5, h6, .h4, .h5, .h6 { font-family: var(--ci-text-font); color: var(--ci-dunkel); font-weight: 650; }
h1.h3, .h3 { font-size: 1.6rem; }
h1.h4 { font-size: 1.45rem; }
.text-muted, .text-body-secondary, .form-text { color: var(--ci-gedaempft) !important; }
a { color: var(--ci-gruen); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ci-orange-d); }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
::selection { background: rgba(239, 159, 42, .35); }
code { color: #a1430c; }
.table-num, .kpi .kpi-value, .num, td.text-end { font-variant-numeric: tabular-nums lining-nums; }
.script { font-family: var(--ci-script); color: var(--ci-orange); font-weight: 400; }

/* ---------- Knöpfe ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: 999px; --bs-btn-padding-x: 1rem; letter-spacing: .01em; }
.btn-sm { --bs-btn-padding-x: .75rem; --bs-btn-border-radius: 999px; }
.btn-lg { --bs-btn-padding-x: 1.3rem; --bs-btn-border-radius: 999px; }
.btn-group > .btn, .input-group > .btn { --bs-btn-border-radius: .6rem; }
.btn-group-sm > .btn, .input-group-sm > .btn { --bs-btn-border-radius: .45rem; }
.btn-primary { --bs-btn-color: #2b2420; --bs-btn-bg: var(--ci-orange); --bs-btn-border-color: var(--ci-orange);
  --bs-btn-hover-color: #2b2420; --bs-btn-hover-bg: #f5ad43; --bs-btn-hover-border-color: #f5ad43;
  --bs-btn-active-color: #2b2420; --bs-btn-active-bg: #e08f17; --bs-btn-active-border-color: #e08f17;
  --bs-btn-disabled-color: #5a4f3f; --bs-btn-disabled-bg: #f4cf96; --bs-btn-disabled-border-color: #f4cf96;
  --bs-btn-focus-shadow-rgb: 239, 159, 42; box-shadow: 0 6px 14px -8px rgba(201, 124, 18, .7); }
.btn-outline-primary { --bs-btn-color: var(--ci-gruen); --bs-btn-border-color: rgba(47, 75, 56, .45);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ci-gruen); --bs-btn-hover-border-color: var(--ci-gruen);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--ci-gruen-d); --bs-btn-active-border-color: var(--ci-gruen-d); --bs-btn-focus-shadow-rgb: 47, 75, 56; }
.btn-outline-secondary { --bs-btn-color: #5e5a50; --bs-btn-border-color: #d9cfbd; --bs-btn-bg: rgba(255, 255, 255, .55);
  --bs-btn-hover-color: var(--ci-dunkel); --bs-btn-hover-bg: var(--ci-creme2); --bs-btn-hover-border-color: #cbbfa9;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--ci-gruen); --bs-btn-active-border-color: var(--ci-gruen); }
.btn-success { --bs-btn-bg: #3d7a4c; --bs-btn-border-color: #3d7a4c; --bs-btn-hover-bg: #33673f; --bs-btn-hover-border-color: #33673f; --bs-btn-active-bg: #2b5735; }
.btn-outline-success { --bs-btn-color: #3d7a4c; --bs-btn-border-color: #8fb79a; --bs-btn-hover-bg: #3d7a4c; --bs-btn-hover-border-color: #3d7a4c; }
.btn-outline-danger { --bs-btn-border-color: #e3a9a3; }
.btn-light { --bs-btn-bg: var(--ci-creme2); --bs-btn-border-color: var(--ci-creme2); --bs-btn-hover-bg: #ebdfcb; }
.btn-link { --bs-btn-color: var(--ci-gruen); --bs-btn-hover-color: var(--ci-orange-d); font-weight: 600; }
.btn-check:checked + .btn-outline-secondary, .btn-check:checked + .btn-outline-primary, .btn-outline-secondary.active { color: #fff; background: var(--ci-gruen); border-color: var(--ci-gruen); }
.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus { box-shadow: 0 0 0 .22rem rgba(239, 159, 42, .3); }

/* ---------- Formulare ---------- */
.form-control, .form-select { border-color: #ddd2bf; background-color: #fffefb; }
.form-control:focus, .form-select:focus { border-color: var(--ci-orange); background-color: #fff; }
.form-control::placeholder { color: #b3ab9b; }
.form-label { font-weight: 600; color: #4a4740; }
.form-label.small, label.small { font-weight: 600; }
.form-check-input:checked { background-color: var(--ci-gruen); border-color: var(--ci-gruen); }
.form-check-input:focus { border-color: var(--ci-orange); }
.form-switch .form-check-input:focus { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ef9f2a'/%3e%3c/svg%3e"); }
.input-group-text { background: var(--ci-creme2); border-color: #ddd2bf; color: #5e5a50; }

/* ---------- Karten, Tabellen, Hinweise ---------- */
.card { --bs-card-border-color: rgba(120, 95, 50, .12); --bs-card-border-radius: var(--ci-rund); --bs-card-inner-border-radius: calc(var(--ci-rund) - 1px);
  --bs-card-bg: var(--ci-weiss); --bs-card-cap-bg: transparent; border: 1px solid var(--bs-card-border-color); box-shadow: var(--ci-schatten); }
.card-header { background: transparent; border-bottom: 1px solid rgba(120, 95, 50, .1); font-weight: 700; color: var(--ci-dunkel); padding-top: .85rem; padding-bottom: .75rem; }
.card-footer { background: rgba(243, 234, 219, .45); border-top: 1px solid rgba(120, 95, 50, .1); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--ci-text); --bs-table-hover-bg: rgba(239, 159, 42, .07); --bs-table-striped-bg: rgba(243, 234, 219, .45); --bs-table-border-color: #eee5d6; }
.table thead th, .table > thead > tr > th { font-size: .74rem; font-weight: 700; color: var(--ci-gedaempft); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; border-bottom-color: #e2d7c4; }
.table-light, .table > thead.table-light th { --bs-table-bg: var(--ci-creme2); --bs-table-color: #5e5a50; }
.table-success { --bs-table-bg: #e3f0e4; } .table-warning { --bs-table-bg: #fdf0dc; } .table-danger { --bs-table-bg: #f9e3e0; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]::after { content: " ⇅"; opacity: .35; }
.alert { --bs-alert-border-radius: 14px; border: 0; border-left: 4px solid var(--bs-alert-border-color); box-shadow: 0 1px 2px rgba(60, 40, 10, .04); }
.alert-info { --bs-alert-bg: #e8f1ef; --bs-alert-color: #24453b; --bs-alert-border-color: #6e9e8c; --bs-alert-link-color: #24453b; }
.alert-warning { --bs-alert-bg: #fdf0dc; --bs-alert-color: #6b4708; --bs-alert-border-color: var(--ci-orange); --bs-alert-link-color: #6b4708; }
.alert-success { --bs-alert-bg: #e5f0e6; --bs-alert-color: #24502f; --bs-alert-border-color: #5f9a6c; }
.alert-danger { --bs-alert-bg: #f9e5e2; --bs-alert-color: #7a2219; --bs-alert-border-color: #c9473a; }
.alert-light { --bs-alert-bg: var(--ci-weiss); --bs-alert-border-color: var(--ci-linie); }
.badge { font-weight: 600; letter-spacing: .02em; border-radius: 999px; padding: .35em .65em; }
.text-bg-light { background: var(--ci-creme2) !important; color: #5e5a50 !important; }
.text-bg-warning { background: #fbd9a3 !important; color: #5c3b06 !important; }
.text-bg-success { background: #3d7a4c !important; }
.text-bg-primary, .bg-primary { background-color: var(--ci-gruen) !important; color: #fff !important; }
.text-primary { color: var(--ci-gruen) !important; }
.text-success { color: #3d7a4c !important; }
.text-warning { color: var(--ci-orange-d) !important; }
.bg-light { background-color: var(--ci-creme2) !important; }
.dropdown-menu { --bs-dropdown-border-color: var(--ci-linie); --bs-dropdown-border-radius: 12px; --bs-dropdown-link-active-bg: var(--ci-gruen); --bs-dropdown-link-hover-bg: var(--ci-creme2); box-shadow: var(--ci-schatten-hoch); }
.dropdown-item { color: var(--ci-text); }
.nav-pills .nav-link { color: var(--ci-gruen); font-weight: 600; border-radius: 999px; }
.nav-pills .nav-link.active { background: var(--ci-gruen); color: #fff; }
.nav-tabs .nav-link.active { color: var(--ci-gruen); font-weight: 700; }
.pagination { --bs-pagination-color: var(--ci-gruen); --bs-pagination-active-bg: var(--ci-gruen); --bs-pagination-active-border-color: var(--ci-gruen); }
.list-group { --bs-list-group-bg: transparent; --bs-list-group-border-color: #eee5d6; --bs-list-group-active-bg: var(--ci-gruen); --bs-list-group-active-border-color: var(--ci-gruen); }
.progress { --bs-progress-bar-bg: var(--ci-orange); --bs-progress-bg: var(--ci-creme2); }
.modal { --bs-modal-border-radius: 18px; --bs-modal-bg: var(--ci-weiss); }
.offcanvas { --bs-offcanvas-bg: var(--ci-weiss); }

/* ---------- Kennzahlen, Diagramme ---------- */
.kpi { position: relative; overflow: hidden; }
.kpi .kpi-label { color: var(--ci-gedaempft); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.kpi .kpi-label i { color: var(--ci-orange-d); }
.kpi .kpi-value { font-size: 1.5rem; font-weight: 700; color: var(--ci-dunkel); margin: .2rem 0; white-space: nowrap; letter-spacing: -.01em; }
.kpi .kpi-sub { line-height: 1.3; }
.kpi .kpi-delta { font-size: .8rem; margin-top: .2rem; }
.chart-box { position: relative; height: 300px; }
.chart-box.sm { height: 220px; }
.chart-box.lg { height: 360px; }
.heatmap { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: .78rem; }
.heatmap th { font-weight: 600; color: var(--ci-gedaempft); text-align: center; padding: 2px 4px; }
.heatmap td { text-align: center; border-radius: 6px; padding: 8px 2px; min-width: 38px; font-variant-numeric: tabular-nums; }
.heatmap td.dark { color: #fff; }
.bar-inline { height: 6px; background: var(--ci-creme2); border-radius: 3px; overflow: hidden; min-width: 60px; }
.bar-inline > span { display: block; height: 100%; background: var(--ci-orange); border-radius: 3px; }
.badge-art-ware { background: #e3f0e4; color: #2c5e37; }
.badge-art-pfand { background: #e3ecf4; color: #2a5585; }
.badge-art-gutschein { background: #f6e8f0; color: #84306f; }
.badge-art-sonstiges { background: #eee9e0; color: #5e5a50; }
.insight { border-left: 4px solid var(--ci-orange); }

/* ---------- Anmeldung ---------- */
.login-wrap { max-width: 400px; margin: 9vh auto; }
.login-wrap .card { box-shadow: var(--ci-schatten-hoch); }
body:not(.mit-navi) { background: radial-gradient(1200px 500px at 50% -10%, #f6e6c9 0%, transparent 60%), var(--ci-creme); }
body:not(.mit-navi) footer { text-align: center; }

/* ---------- Kopfleiste ---------- */
.topbar { position: sticky; top: 0; z-index: 1030; height: var(--topbar-h); display: flex; align-items: center; gap: .75rem; padding: 0 1.1rem;
  background: rgba(255, 253, 249, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(120, 95, 50, .12); color: var(--ci-dunkel); }
.topbar .brand { display: flex; align-items: center; gap: .65rem; color: var(--ci-dunkel); text-decoration: none; }
.topbar .brand-name { display: block; font-family: var(--ci-serif); font-weight: 800; font-size: 1.22rem; letter-spacing: -.01em; line-height: 1; color: var(--ci-gruen); }
.topbar .brand-sub { display: block; font-family: var(--ci-script); color: var(--ci-orange-d); font-size: 1.02rem; line-height: 1.1; margin-top: .05rem; transform: rotate(-2deg); transform-origin: left; }
.topbar-btn { color: var(--ci-gruen); border: 0; border-radius: 999px; }
.topbar-btn:hover, .topbar-btn:focus, .topbar-btn.show { color: var(--ci-gruen); background: var(--ci-creme2); }
.daten-stand { color: #5e5a50; text-decoration: none; font-size: .84rem; font-weight: 600; background: var(--ci-creme2); border-radius: 999px; padding: .3rem .8rem; white-space: nowrap; }
.daten-stand:hover { color: var(--ci-dunkel); background: #ebdfcb; }
.daten-stand .punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .8); }

/* ---------- Seitenleiste (dunkelgrün) ---------- */
.app-shell { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.app-main { flex: 1; min-width: 0; padding: 1.6rem 2rem 2.2rem; max-width: 1520px; }
body:not(.mit-navi) .app-main { margin: 0 auto; }
.sidebar { width: var(--sidebar-w); flex-shrink: 0; color: #e6eee7;
  background: radial-gradient(420px 260px at 0% 0%, rgba(239, 159, 42, .13), transparent 70%), linear-gradient(180deg, var(--ci-gruen) 0%, var(--ci-gruen-d) 100%); }
@media (min-width: 992px) {
  .sidebar { position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
}
.sidebar-nav { padding: 1rem .8rem; flex: 1; }
.sidebar-gruppe { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(230, 238, 231, .55); margin: 1rem .1rem .2rem; padding: .35rem .6rem;
  border-radius: .5rem; list-style: none; cursor: pointer; display: flex; align-items: center; user-select: none; }
.sidebar-gruppe::-webkit-details-marker { display: none; }
.sidebar-gruppe i { margin-left: auto; font-size: .7rem; transition: transform .15s; }
.sidebar-gruppe:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar-box:not([open]) > .sidebar-gruppe i { transform: rotate(-90deg); }
.sidebar-box:not([open]) > .sidebar-gruppe { margin-bottom: 0; }
.sidebar-link { display: flex; align-items: center; gap: .75rem; padding: .52rem .75rem; border-radius: 12px; color: rgba(238, 244, 239, .86); text-decoration: none; font-size: .97rem; font-weight: 500; margin-bottom: 2px; transition: background .12s, color .12s; }
.sidebar-link i { font-size: 1.08rem; width: 1.25rem; text-align: center; color: #f3c27a; opacity: .9; }
.sidebar-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar-link.active { background: var(--ci-orange); color: #2b2420; font-weight: 700; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .55); }
.sidebar-link.active i { color: #2b2420; opacity: 1; }
.sidebar-link.highlight:not(.active) { background: rgba(255, 255, 255, .06); color: #fff; font-weight: 600; }
.sidebar-ende { margin-top: 1rem; padding-top: .7rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.sidebar-fuss { padding: .85rem 1.4rem; font-size: .74rem; color: rgba(230, 238, 231, .5); border-top: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; gap: .5rem; }
.sidebar-fuss .script { font-size: 1rem; color: rgba(243, 194, 122, .8); margin-left: auto; transform: rotate(-3deg); }
.sidebar .offcanvas-header { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 991.98px) {
  .app-main { padding: 1rem; }
  .sidebar.offcanvas-lg { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 85vw;
    --bs-offcanvas-bg: var(--ci-gruen); background: linear-gradient(180deg, var(--ci-gruen) 0%, var(--ci-gruen-d) 100%); }
  .sidebar .offcanvas-header { flex-shrink: 0; padding: .8rem 1rem; }
  .sidebar-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 2rem; }
  .sidebar-fuss { flex-shrink: 0; }
  .sidebar-link { padding: .62rem .75rem; }
  h1.h3, .h3 { font-size: 1.5rem; }
}
@media print { .topbar, .sidebar { display: none !important; } .app-main { padding: 0; max-width: none; } body { background: #fff; } .card { box-shadow: none; } }

/* ---------- Reiter eines Bereichs ---------- */
.bereich-reiter { display: inline-flex; flex-wrap: wrap; gap: .2rem; margin: -.3rem 0 1.4rem; padding: .3rem; background: rgba(243, 234, 219, .75); border: 1px solid rgba(120, 95, 50, .1); border-radius: 999px; max-width: 100%; }
.bereich-reiter a { padding: .42rem 1rem; border-radius: 999px; text-decoration: none; color: #5e5a50; font-size: .93rem; font-weight: 600; white-space: nowrap; transition: background .12s, color .12s; }
.bereich-reiter a:hover { background: rgba(255, 255, 255, .7); color: var(--ci-gruen); }
.bereich-reiter a.an { background: var(--ci-gruen); color: #fff; box-shadow: 0 6px 14px -8px rgba(34, 56, 42, .8); }
@media (max-width: 575.98px) { .bereich-reiter { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 14px; } }

/* ---------- Kleinigkeiten ---------- */
footer.pt-4 { border-top: 1px solid rgba(120, 95, 50, .1); margin-top: 2.5rem; padding-top: 1rem !important; font-size: .82rem; }
.shadow-sm { box-shadow: var(--ci-schatten) !important; }
hr { border-color: var(--ci-linie); opacity: 1; }
details > summary { cursor: pointer; }
/* Eingabefelder in Tabellen nicht zusammendrücken (Tabelle scrollt dann waagrecht) */
.table td .form-select { min-width: 6.2rem; }
.table td .form-select-sm { padding-right: 1.9rem; background-position: right .55rem center; }
.table td .form-control:not([style*="width"]) { min-width: 4.8rem; }

/* ---------- Auswertungen: Vergleich & Legenden (seit 2.99) ---------- */
.vg-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; background: var(--ci-weiss); border: 1px solid rgba(120, 95, 50, .12); border-radius: var(--ci-rund); padding: .8rem 1.1rem; box-shadow: var(--ci-schatten); margin-top: -.6rem; }
.vg-teil { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.25; }
.vg-titel { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ci-gedaempft); }
.vg-punkt { width: .8rem; height: .8rem; border-radius: 3px; margin-top: .2rem; flex: none; }
.vg-a { background: var(--ci-orange); } .vg-b { background: #b9b2a3; }
.vg-gegen { color: var(--ci-taupe); font-size: 1.1rem; }
.vg-hinweis { flex-basis: 100%; font-size: .85rem; color: #6b4708; background: var(--ci-orange-hell); border-radius: 10px; padding: .4rem .7rem; }
.vg-legende { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .8rem; color: var(--ci-gedaempft); border-top: 1px dashed var(--ci-linie); padding-top: .5rem; }
.vg-delta { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vg-plus { color: #3d7a4c; } .vg-minus { color: #c0392b; } .vg-gleich { color: var(--ci-gedaempft); }
.vg-linie { display: inline-block; width: 1.6rem; height: 0; border-top: 2px dashed #a39e8e; vertical-align: middle; margin-right: .2rem; }
.vg-wert { color: var(--ci-gedaempft); font-size: .82rem; white-space: nowrap; }
.legende-karte { font-size: .85rem; color: #5e5a50; }
.legende-karte dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; }
.legende-karte dt { font-weight: 700; color: var(--ci-dunkel); white-space: nowrap; }
.legende-karte dd { margin: 0; }
.spalte-hilfe { display: block; font-size: .66rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ci-taupe); }
.ansicht-wahl .nav-link { padding: .35rem 1rem; }
.heat-skala { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--ci-gedaempft); }
.heat-skala span.bar { width: 9rem; height: .7rem; border-radius: 4px; background: linear-gradient(90deg, rgb(253,248,238), rgb(240,170,70), rgb(140,60,20)); border: 1px solid var(--ci-linie); }
.table-num { white-space: nowrap; }
