:root {
  --bg: #f5f6f8; --card: #ffffff; --card2: #f2f4f7; --card3: #e9edf2; --ink: #141a22; --muted: #5d6675; --leise2: #8a93a1;
  --line: #e2e6ec; --line2: #d3d9e1; --brand-1: #2f6fde; --brand-2: #8fb0ec; --brand-ink: #1b4fae; --brand-tint: #eaf1fd;
  --success: #1f8a5b; --error: #c8433b; --warn: #c98316; --warn-tint: #fdf4e3;
  --schatten: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
  --schatten-gross: 0 18px 40px -18px rgba(16, 24, 40, 0.35), 0 2px 6px rgba(16, 24, 40, 0.06);
  --r: 12px; --r-klein: 8px; --kopf-h: 58px; --nav-b: 252px;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116; --card: #161a21; --card2: #1c2129; --card3: #232a34; --ink: #e7eaf0; --muted: #9ba4b3; --leise2: #77808e;
    --line: #29303a; --line2: #343c48; --brand-1: #5c95f2; --brand-2: #3d5f99; --brand-ink: #9cc0ff; --brand-tint: #1b2638;
    --success: #3cbb83; --error: #ef6b61; --warn: #e3a33e; --warn-tint: #2c2416;
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.4); --schatten-gross: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1116; --card: #161a21; --card2: #1c2129; --card3: #232a34; --ink: #e7eaf0; --muted: #9ba4b3; --leise2: #77808e;
  --line: #29303a; --line2: #343c48; --brand-1: #5c95f2; --brand-2: #3d5f99; --brand-ink: #9cc0ff; --brand-tint: #1b2638;
  --success: #3cbb83; --error: #ef6b61; --warn: #e3a33e; --warn-tint: #2c2416;
  --schatten: 0 1px 2px rgba(0, 0, 0, 0.4); --schatten-gross: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 70px); }
body.md { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--schrift); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.md a { color: var(--brand-ink); text-decoration: none; }
.md a:hover { text-decoration: underline; }
.md h1, .md h2, .md h3, .md h4 { line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
.md p { margin: 0 0 0.6rem; }
.md img { max-width: 100%; }
.md code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; background: var(--card2); padding: 0.1em 0.35em; border-radius: 5px; }
.md .ikon { width: 18px; height: 18px; stroke-width: 1.8; flex: 0 0 auto; }
.md-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--card); padding: 0.4rem 0.8rem; border-radius: 8px; }
.md-skip:focus { left: 8px; }
.md :focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }

.md-top { position: sticky; top: 0; z-index: 50; height: var(--kopf-h); display: flex; align-items: center; gap: 14px; padding: 0 18px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.md-burger { display: none; }
.md-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none !important; white-space: nowrap; }
.md-logo-zeichen { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(140deg, var(--brand-1), #6a4fd8); color: #fff; }
.md-logo-zeichen svg { width: 18px; height: 18px; }
.md-logo-text { font-size: 15px; letter-spacing: -0.01em; }
.md-logo-text b { font-weight: 760; }
.md-logo-text span { color: var(--muted); font-weight: 560; margin-left: 2px; }
.md-top-mitte { flex: 1; display: flex; justify-content: center; min-width: 0; }
.md-top-rechts { display: flex; align-items: center; gap: 8px; }
.md-top-links { display: flex; gap: 4px; margin-left: 10px; }
.md-top-links a { color: var(--muted); padding: 6px 10px; border-radius: 8px; font-weight: 560; font-size: 14px; }
.md-top-links a:hover { background: var(--card2); color: var(--ink); text-decoration: none; }

.md-suche { position: relative; width: min(520px, 100%); }
.md-suche input { width: 100%; height: 36px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--ink); font: inherit; font-size: 14px; }
.md-suche input:focus { outline: none; border-color: var(--brand-1); background: var(--card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 18%, transparent); }
.md-suche > .ikon { position: absolute; left: 11px; top: 9px; width: 17px; height: 17px; color: var(--muted); }
.md-suche-liste { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--schatten-gross); padding: 6px; list-style: none; margin: 0; max-height: 380px; overflow: auto; z-index: 60; }
.md-suche-liste li a { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 8px; color: var(--ink); }
.md-suche-liste li a:hover, .md-suche-liste li a.aktiv { background: var(--brand-tint); text-decoration: none; }
.md-suche-liste small { color: var(--muted); min-width: 84px; font-size: 12px; }
.md-suche-liste .leer { padding: 8px 10px; color: var(--muted); }

.md-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 560; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.md-knopf:hover { background: var(--card2); }
.md-knopf.leise { border-color: transparent; background: transparent; }
.md-knopf.leise:hover { background: var(--card2); }
.md-btn, .md .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--brand-1); background: var(--brand-1); color: #fff !important; font: inherit; font-size: 14px; font-weight: 620; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.md-btn:hover, .md .btn:hover { filter: brightness(1.07); }
.md-btn.gross { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 11px; }
.md-btn-leise, .md .btn-ghost { background: var(--card) !important; color: var(--ink) !important; border-color: var(--line2) !important; }
.md-btn-leise:hover, .md .btn-ghost:hover { background: var(--card2) !important; filter: none; }
.md .btn-mini { height: 30px; padding: 0 10px; font-size: 13px; }
.md-menue { position: relative; }
.md-menue > summary { list-style: none; cursor: pointer; }
.md-menue > summary::-webkit-details-marker { display: none; }
.md-menue-inhalt { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; min-width: 240px; max-width: min(330px, 92vw); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--schatten-gross); }
.md-menue-inhalt a, .md-menue-inhalt button.zeile { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left; }
.md-menue-inhalt a:hover, .md-menue-inhalt button.zeile:hover { background: var(--card2); text-decoration: none; }
.md-menue-inhalt small { display: block; color: var(--muted); padding: 4px 10px 6px; font-size: 12px; }
.md-menue-inhalt form { padding: 6px 8px; margin: 0; }
.md-menue-inhalt hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.md-nutzer > summary { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 4px; border-radius: 10px; }
.md-nutzer > summary:hover { background: var(--card2); }
.md-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 720; font-size: 13px; }
.md-nutzer-name { font-size: 13.5px; font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.md-rahmen { min-height: calc(100vh - var(--kopf-h)); }
.md-rahmen.mit-nav { display: grid; grid-template-columns: var(--nav-b) minmax(0, 1fr); }
.md-nav { position: sticky; top: var(--kopf-h); height: calc(100vh - var(--kopf-h)); overflow-y: auto; padding: 14px 10px 18px; border-right: 1px solid var(--line); background: var(--card); scrollbar-width: thin; display: flex; flex-direction: column; gap: 2px; }
.md-nav h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--leise2); margin: 14px 10px 6px; }
.md-nav h4:first-child { margin-top: 2px; }
.md-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--ink); font-size: 14px; font-weight: 520; text-decoration: none !important; }
.md-nav a .ikon { width: 17px; height: 17px; color: var(--muted); }
.md-nav a:hover { background: var(--card2); }
.md-nav a.aktiv { background: var(--brand-tint); color: var(--brand-ink); font-weight: 650; }
.md-nav a.aktiv .ikon { color: var(--brand-1); }
.md-nav a.gesperrt { color: var(--leise2); }
.md-nav a.gesperrt small { margin-left: auto; font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.md-nav-fuss { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.md-nav-fuss a { padding: 4px 0; font-size: 13px; }
.md-paket { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink); }
.md-paket i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }
.md-schleier { display: none; }
.md-main { min-width: 0; padding: 0 28px 40px; }
.md-main.ohne-nav { max-width: 1240px; margin: 0 auto; padding: 0 24px 50px; }
.md-inhalt { min-width: 0; }

.md-filter { position: sticky; top: var(--kopf-h); z-index: 30; margin: 0 -28px; padding: 10px 28px 8px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.md-filter-reihe { position: relative; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.md-filter-trenner { width: 1px; height: 22px; background: var(--line2); margin: 0 4px; }
.md-fx { position: relative; }
.md-fx > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: 13px; font-weight: 560; cursor: pointer; white-space: nowrap; user-select: none; }
.md-fx > summary::-webkit-details-marker { display: none; }
.md-fx > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.md-fx > summary:hover { border-color: var(--brand-1); }
.md-fx[open] > summary { border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 16%, transparent); }
.md-fx.an > summary { background: var(--brand-tint); border-color: color-mix(in srgb, var(--brand-1) 45%, var(--line)); color: var(--brand-ink); }
.md-fx-wert { color: var(--muted); font-weight: 500; }
.md-fx.an .md-fx-wert { color: var(--brand-ink); }
.md-fx-zahl { min-width: 18px; height: 18px; border-radius: 999px; background: var(--brand-1); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.md-fx-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; width: 300px; max-width: calc(100vw - 24px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--schatten-gross); padding: 10px; }
.md-fx-pop.breit { width: 420px; }
.md-fx-suche { width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--card2); color: var(--ink); font: inherit; font-size: 13.5px; margin-bottom: 8px; }
.md-fx-liste { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; scrollbar-width: thin; }
.md-fx-liste label { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; font-size: 13.5px; cursor: pointer; }
.md-fx-liste label:hover { background: var(--card2); }
.md-fx-liste label[hidden] { display: none; }
.md-fx-liste input { accent-color: var(--brand-1); width: 15px; height: 15px; margin: 0; }
.md-fx-fuss { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.md-fx-fuss .md-btn { height: 32px; font-size: 13px; }
.md-fx-fuss button.leer { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 0 4px; }
.md-zeit-modi { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.md-pille { position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; cursor: pointer; background: var(--card); }
.md-pille input { position: absolute; inset: 0; opacity: 0; pointer-events: none; margin: 0; }
.md-pille:has(input:checked) { background: var(--brand-1); border-color: var(--brand-1); color: #fff; }
.md-pille:has(input:focus-visible) { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.md-zeit-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.md-zeit-felder [hidden] { display: none; }
.md-feld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.md-feld input, .md-feld select, .md-auswahl select { height: 32px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; }
.md-auswahl { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px 0 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: 13px; font-weight: 560; }
.md-auswahl select { height: 26px; border: 0; padding: 0 4px; background: transparent; font-weight: 600; cursor: pointer; }
.md-segment { display: inline-flex; padding: 2px; gap: 2px; background: var(--card3); border-radius: 999px; }
.md-segment a, .md-segment label { position: relative; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.md-segment label input { position: absolute; inset: 0; opacity: 0; pointer-events: none; margin: 0; }
.md-segment a.aktiv, .md-segment label:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: var(--schatten); }
.md-segment a:hover { color: var(--ink); }
.md-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.md-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-ink) !important; font-size: 12.5px; font-weight: 600; text-decoration: none !important; }
.md-chip i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand-1) 18%, transparent); font-size: 11px; }
.md-chip:hover i { background: var(--brand-1); color: #fff; }
.md-chips .zuruecksetzen { font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.md-filter-mobil { display: none; }

.md-seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 20px 0 16px; }
.md-seitenkopf h1 { font-size: 26px; font-weight: 740; }
.md-seitenkopf .unter { color: var(--muted); margin: 6px 0 0; max-width: 820px; }
.md-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.md-meta span { display: inline-flex; align-items: center; gap: 6px; }
.md-meta .ikon { width: 15px; height: 15px; }
.md-brotkrumen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.md-brotkrumen a { color: var(--muted); }
.md-brotkrumen span.trenner { color: var(--leise2); }
.md-aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.md-produktkopf { display: flex; gap: 18px; align-items: center; }
.md-produktbild { width: 96px; height: 96px; border-radius: 14px; background: #fff; border: 1px solid var(--line); object-fit: contain; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: var(--leise2); }
.md-produktbild .ikon { width: 30px; height: 30px; }
.md-produkt-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.md-raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.md-raster > * { grid-column: span 12; min-width: 0; }
.md-raster > .md-b-halb { grid-column: span 6; }
.md-raster > .md-b-drittel { grid-column: span 4; }
.md-raster > .md-b-zweidrittel { grid-column: span 8; }
.md-karte { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--schatten); min-width: 0; display: flex; flex-direction: column; }
.md-karte.md-gross { grid-column: span 12 !important; }
.md-karte-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.md-karte-kopf h3 { font-size: 15px; font-weight: 680; }
.md-karte-kopf p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.md-werkzeug { display: flex; gap: 2px; flex: 0 0 auto; }
.md-wk { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.md-wk:hover { background: var(--card2); color: var(--ink); }
.md-wk.an { background: var(--brand-tint); color: var(--brand-ink); }
.md-wk .ikon { width: 16px; height: 16px; }
.md-dg { flex: 1; }
.md-dg-tabelle { margin-top: 10px; overflow-x: auto; }
.md-karte-fuss { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.md-leer { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 140px; border: 1px dashed var(--line2); border-radius: 10px; padding: 16px; margin: 0; }

.md-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 178px), 1fr)); gap: 12px; }
.md-kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px 10px; box-shadow: var(--schatten); min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.md-kpi-kopf { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.md-kpi > b { font-size: 23px; font-weight: 760; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-kpi small { font-size: 12px; }
.md-kpi-funke { margin-top: 4px; }
.md-kz-geschuetzt > b { color: var(--leise2); }
.md-kz-geschuetzt > b .ikon { width: 22px; height: 22px; }
.md-info { position: relative; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); color: var(--muted); font: italic 700 10.5px/1 Georgia, serif; cursor: help; padding: 0; flex: 0 0 auto; }
.md-info:hover::after, .md-info:focus::after { content: attr(data-tipp); position: absolute; right: -6px; top: calc(100% + 8px); width: 240px; padding: 8px 10px; background: var(--ink); color: var(--card); border-radius: 8px; font: 500 12px/1.45 var(--schrift); text-align: left; z-index: 70; white-space: normal; box-shadow: var(--schatten-gross); }
.md-delta { font-weight: 650; font-variant-numeric: tabular-nums; }
.md-delta.plus { color: var(--success); }
.md-delta.minus { color: var(--error); }
.md-delta span { color: var(--muted); font-weight: 500; }
.md-leise { color: var(--muted); }
.md-geschuetzt { color: var(--muted); font-style: italic; font-size: 12.5px; white-space: nowrap; }
.md-geschuetzt .ikon { width: 14px; height: 14px; vertical-align: -2px; }

.md-tabelle-box { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.md-tabelle { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.md-tabelle th { position: sticky; top: 0; background: var(--card); text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.md-tabelle th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.md-tabelle th button::after { content: "↕"; font-size: 10px; opacity: 0.35; }
.md-tabelle th[aria-sort="ascending"] button::after { content: "↑"; opacity: 1; color: var(--brand-1); }
.md-tabelle th[aria-sort="descending"] button::after { content: "↓"; opacity: 1; color: var(--brand-1); }
.md-tabelle td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.md-tabelle tbody tr:hover td { background: var(--card2); }
.md-tabelle tbody tr[hidden] { display: none; }
.md-tabelle td small { color: var(--muted); font-size: 12px; }
.md-tabelle .rang { color: var(--leise2); width: 1%; font-variant-numeric: tabular-nums; font-size: 12px; }
.md-zahl { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.md-tabelle th.md-zahl button { flex-direction: row-reverse; }
.md-weitere td { background: var(--card2); color: var(--muted); }
.md-anteil { position: relative; display: inline-block; min-width: 64px; }
.md-anteil i { position: absolute; left: 0; bottom: -4px; height: 3px; border-radius: 2px; background: var(--brand-2); }
.md-bild { width: 42px; height: 42px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--leise2); }
.md-bild .ikon { width: 17px; height: 17px; }
.md-mehr { margin-top: 10px; }

.md-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 1fr)); gap: 12px; }
.md-produkt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; text-decoration: none !important; min-width: 0; }
a.md-produkt:hover { border-color: var(--brand-1); box-shadow: var(--schatten); }
.md-produkt-bild { aspect-ratio: 1; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #b8bec8; }
.md-produkt-bild img { width: 100%; height: 100%; object-fit: contain; }
.md-produkt-bild .ikon { width: 30px; height: 30px; }
.md-produkt b { font-size: 13.5px; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.md-produkt small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-produkt-zahlen { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; font-size: 13px; }
.md-produkt-zahlen strong { font-size: 15px; }
.md-rangnr { position: absolute; left: 16px; top: 16px; min-width: 22px; height: 22px; border-radius: 7px; background: var(--ink); color: var(--card); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

.md-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.md-kachel { display: flex; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; text-decoration: none !important; }
a.md-kachel:hover { border-color: var(--brand-1); box-shadow: var(--schatten); }
.md-kachel > .ikon { width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--brand-tint); color: var(--brand-1); }
.md-kachel b { display: block; font-size: 14px; }
.md-kachel p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.md-kachel.gesperrt { opacity: 0.6; }
.md-kachel.gesperrt > .ikon { background: var(--card3); color: var(--muted); }
.md-abschnitt { margin: 14px 0 -4px; padding-top: 6px; }
.md-abschnitt h2 { font-size: 18px; font-weight: 720; }
.md-abschnitt p { color: var(--muted); font-size: 13px; margin: 4px 0 0; max-width: 820px; }
.md-hinweis { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--card2); font-size: 13.5px; }
.md-hinweis .ikon { width: 18px; height: 18px; color: var(--brand-1); margin-top: 1px; }
.md-hinweis.warnung { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-tint); }
.md-hinweis.warnung .ikon { color: var(--warn); }
.md-hinweis p { margin: 0; }
.md-hinweis p + p { margin-top: 5px; }
.md-hinweise { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.md-fussinfo { margin-top: 24px; }

.md-explorer { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--schatten); }
.md-explorer .md-feld { min-width: 160px; }
.md-masse { display: flex; flex-wrap: wrap; gap: 6px; }
.md-masse label { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; font-weight: 560; color: var(--ink); cursor: pointer; }
.md-masse label:has(input:checked) { background: var(--brand-tint); border-color: color-mix(in srgb, var(--brand-1) 45%, var(--line)); color: var(--brand-ink); }
.md-masse input { accent-color: var(--brand-1); }

.md-fuss { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.md-fuss a { color: var(--muted); }
.md-fuss nav { display: flex; gap: 14px; flex-wrap: wrap; }

.md-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.md-toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--schatten-gross); font-size: 14px; }
.md-toast .ikon { color: var(--brand-1); margin-top: 1px; }
.md-toast.error .ikon { color: var(--error); }
.md-toast.success .ikon { color: var(--success); }
.md-toast button { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 2px; }

.md-held { position: relative; overflow: hidden; border-radius: 22px; margin: 26px 0 30px; padding: 54px 46px; background: radial-gradient(900px 380px at 0% 0%, color-mix(in srgb, var(--brand-1) 22%, transparent), transparent 65%), radial-gradient(700px 360px at 100% 100%, color-mix(in srgb, #6a4fd8 20%, transparent), transparent 70%), var(--card); border: 1px solid var(--line); }
.md-held-raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.md-oberzeile { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-ink); background: var(--brand-tint); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 680; letter-spacing: 0.02em; margin-bottom: 14px; }
.md-oberzeile .ikon { width: 15px; height: 15px; }
.md-held h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 780; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 16px; }
.md-held .lead { font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 620px; }
.md-held-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.md-held-vorschau { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--schatten-gross); display: grid; gap: 12px; }
.md-held-vorschau .md-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.md-held-vorschau .md-kpi { box-shadow: none; }
.md-beispiel { font-size: 11.5px; color: var(--leise2); text-align: right; }
.md-sektion { margin: 46px 0 18px; }
.md-sektion h2 { font-size: 26px; font-weight: 760; letter-spacing: -0.02em; }
.md-sektion p { color: var(--muted); font-size: 15px; max-width: 760px; margin-top: 8px; }
.md-funktionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.md-funktion { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.md-funktion .ikon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-1); margin-bottom: 10px; }
.md-funktion h3 { font-size: 15.5px; margin-bottom: 6px; }
.md-funktion p { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.55; }
.md-zahlenband { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.md-zahlenband div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.md-zahlenband b { display: block; font-size: 26px; font-weight: 780; letter-spacing: -0.02em; }
.md-zahlenband span { color: var(--muted); font-size: 13px; }
.md-pakete { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.md-paketkarte { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.md-paketkarte.empfohlen { border-color: color-mix(in srgb, var(--brand-1) 60%, var(--line)); box-shadow: 0 16px 38px -22px color-mix(in srgb, var(--brand-1) 80%, transparent); }
.md-paketkarte h3 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.md-paketkarte ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink); font-size: 14px; line-height: 1.75; }
.md-preis { font-size: 22px; font-weight: 760; letter-spacing: -0.02em; }
.md-preis small { font-size: 13px; color: var(--muted); font-weight: 500; }
.md-marke-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-1); color: #fff; }
.md-fragen details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.md-fragen summary { font-weight: 650; cursor: pointer; font-size: 15px; }
.md-fragen p { color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.md-regel { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.md-regel:last-child { border-bottom: 0; }
.md-regel .ikon { width: 20px; height: 20px; color: var(--success); margin-top: 2px; }
.md-regel p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.md-cta { margin: 40px 0 10px; padding: 34px; border-radius: 18px; background: linear-gradient(120deg, var(--brand-1), #6a4fd8); color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.md-cta h2 { font-size: 22px; }
.md-cta p { margin: 6px 0 0; opacity: 0.9; }
.md-cta .md-btn { background: #fff; color: #1b2a55 !important; border-color: #fff; }

.md .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--schatten); min-width: 0; }
.md .card h3 { font-size: 16px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.md .card-sub, .md .section-sub { color: var(--muted); font-size: 13.5px; }
.md .karten-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.md .einstell-card { margin-bottom: 0; }
.md .formular-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0 14px; margin: 8px 0; }
.md .field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.md .field.breit { grid-column: 1 / -1; }
.md .field label { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.md .field small { font-size: 12px; }
.md input:not([type="checkbox"]):not([type="radio"]):not([type="search"]), .md select, .md textarea { font: inherit; font-size: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--line2); border-radius: 9px; padding: 7px 10px; min-height: 36px; width: 100%; }
.md .md-zeile-aktionen input, .md .md-zeile-aktionen select { width: auto; min-height: 30px; padding: 3px 7px; font-size: 13px; }
.md textarea { min-height: 80px; resize: vertical; }
.md .md-auswahl select { width: auto; min-height: 0; height: 26px; border: 0; border-radius: 6px; padding: 0 4px; background-color: transparent; box-shadow: none; font-size: 13px; font-weight: 650; cursor: pointer; }
.md .md-auswahl select:focus { box-shadow: none; outline: 2px solid var(--brand-1); }
.md input:focus, .md select:focus, .md textarea:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 16%, transparent); }
.md .table-wrap { overflow-x: auto; }
.md table:not(.md-tabelle):not(.dg-tabelle) { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.md table:not(.md-tabelle):not(.dg-tabelle) th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.md table:not(.md-tabelle):not(.dg-tabelle) td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md .badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--card3); color: var(--muted); }
.md .badge-ok { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.md .badge-rot { background: color-mix(in srgb, var(--error) 14%, transparent); color: var(--error); }
.md .chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; background: var(--card3); color: var(--ink); margin: 1px 0; }
.md .kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; margin-bottom: 16px; }
.md .kennzahl { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 3px; box-shadow: var(--schatten); }
.md .kennzahl b { font-size: 22px; font-weight: 760; letter-spacing: -0.02em; }
.md .kennzahl span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.md .weg-zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.md .weg-zeile form { margin: 0; }
.md .tab-leiste { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.md .tab-leiste[data-layout="seitlich"] { flex-direction: column; float: left; width: 230px; margin-right: 20px; }
.md .tab-knopf { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 560; cursor: pointer; text-align: left; }
.md .tab-knopf:hover { background: var(--card2); }
.md .tab-knopf.aktiv { background: var(--brand-tint); color: var(--brand-ink); font-weight: 650; }
.md .tab-knopf .ikon { width: 17px; height: 17px; }
.md .tab-panel { display: none; overflow: hidden; }
.md .tab-panel.aktiv { display: flex; flex-direction: column; gap: 16px; }
.md-zwei { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.md-seitenspalte { position: sticky; top: calc(var(--kopf-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.md-schalter { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; font-size: 14px; line-height: 1.45; }
.md-schalter input { margin-top: 3px; accent-color: var(--brand-1); }
.md-vertrag h3 { margin: 22px 0 6px; font-size: 16px; }
.md-vertrag p, .md-vertrag li { line-height: 1.7; font-size: 14.5px; }
.md-entwurf { margin-top: 20px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.md-zeile-aktionen { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.md-zeile-aktionen form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.md-textfeld { width: 100%; min-height: 420px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 12.5px !important; line-height: 1.5; }
.md-glossar { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.md-glossar div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.md-glossar b { display: block; margin-bottom: 4px; }
.md-glossar p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.md-trefferliste { display: flex; flex-direction: column; gap: 6px; }
.md-trefferliste a { display: flex; gap: 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.md-trefferliste small { color: var(--muted); min-width: 90px; }

.dg { position: relative; width: 100%; min-width: 0; }
.dg-svg { display: block; max-width: 100%; height: auto; overflow: visible; font-size: 11px; font-family: inherit; }
.dg-svg text { font-variant-numeric: tabular-nums; }
.dg-svg .dg-mitte { font-size: 20px; font-weight: 760; }
.dg-svg .dg-gross { font-size: 26px; font-weight: 780; }
.dg-svg .dg-fett { font-weight: 680; font-size: 12px; }
.dg-an .dg-zeichen, .dg-an .dg-stueck, .dg-an .dg-tacho, .dg-an polygon, .dg-an .dg-kz, .dg-an .dg-flaeche { animation: dg-ein 0.45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes dg-ein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dg-an * { animation: none !important; } }
.dg-stueck { transition: transform 0.18s ease; transform-box: fill-box; cursor: default; }
.dg-stueck:hover { transform: translate(var(--dx, 0), var(--dy, 0)); }
.dg-flaeche { transition: opacity 0.15s ease; }
.dg-link { cursor: pointer; }
.dg-link:hover .dg-flaeche, .dg-link:hover rect { opacity: 0.8; }
.dg-link:hover text { text-decoration: underline; }
.dg-tipp { position: fixed; z-index: 400; display: none; pointer-events: none; min-width: 140px; max-width: 290px; padding: 8px 11px; border-radius: 10px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--schatten-gross); font-size: 12.5px; }
.dg-tk { font-weight: 720; margin-bottom: 4px; }
.dg-tz { display: flex; align-items: center; gap: 7px; line-height: 1.6; }
.dg-tz i { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.dg-tz span { flex: 1; color: var(--muted); }
.dg-tz b { font-variant-numeric: tabular-nums; }
.dg-legende { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-bottom: 8px; }
.dg-leg { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.dg-leg i { width: 9px; height: 9px; border-radius: 3px; }
.dg-leg.aus { opacity: 0.45; text-decoration: line-through; }
.dg-kreis { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dg-kreis.seitlich { flex-direction: row; align-items: center; justify-content: center; gap: 22px; }
.dg-kreis-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; min-width: 0; flex: 1; max-width: 300px; width: 100%; }
.dg-kreis-legende li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.dg-kreis-legende i { width: 10px; height: 10px; border-radius: 3px; }
.dg-kreis-legende span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-kreis-legende b { font-variant-numeric: tabular-nums; }
.dg-kreis-legende em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: right; }
.dg-leer { display: flex; align-items: center; justify-content: center; min-height: 150px; border: 1px dashed var(--line2); border-radius: 12px; color: var(--muted); font-size: 13.5px; text-align: center; padding: 16px; }
.dg-kz { display: flex; flex-direction: column; gap: 2px; }
.dg-kz-wert { font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 780; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.dg-kz-trend { font-size: 0.8rem; font-weight: 650; color: var(--muted); }
.dg-kz-trend.gut { color: var(--success); }
.dg-kz-trend.schlecht { color: var(--error); }
.dg-kz-unter { font-size: 0.8rem; color: var(--muted); }
.dg-funke { margin-top: 2px; }
.dg-tabelle { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dg-tabelle th, .dg-tabelle td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.dg-tabelle th:first-child, .dg-tabelle td:first-child { text-align: left; }

@media (max-width: 1180px) {
  .md-raster > .md-b-drittel { grid-column: span 6; }
  .md-held-raster { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  :root { --kopf-h: 56px; }
  .md-burger { display: inline-flex; }
  .md-rahmen.mit-nav { display: block; }
  .md-nav { position: fixed; left: 0; top: 0; bottom: 0; height: 100vh; z-index: 80; width: min(300px, 86vw); transform: translateX(-102%); transition: transform 0.22s ease; box-shadow: var(--schatten-gross); padding-top: 18px; }
  body.md-nav-offen .md-nav { transform: none; }
  body.md-nav-offen .md-schleier { display: block; position: fixed; inset: 0; background: rgba(10, 14, 20, 0.45); z-index: 75; }
  .md-main { padding: 0 16px 34px; }
  .md-filter { margin: 0 -16px; padding: 8px 16px; }
  .md-raster > .md-b-halb, .md-raster > .md-b-drittel, .md-raster > .md-b-zweidrittel { grid-column: span 12; }
  .md-zwei { grid-template-columns: minmax(0, 1fr); }
  .md-seitenspalte { position: static; }
  .md .tab-leiste[data-layout="seitlich"] { float: none; width: auto; flex-direction: row; }
  .md-top-links { display: none; }
  .md-zahlenband { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .md-top { gap: 8px; padding: 0 10px; }
  .md-logo-text span, .md-nutzer-name { display: none; }
  .md-top-mitte { justify-content: flex-end; }
  .md-suche { width: 100%; }
  .md-suche input { padding-left: 32px; }
  .md-filter-reihe { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .md-filter-reihe::-webkit-scrollbar { display: none; }
  .md-filter { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .md-fx { position: static; }
  .md-fx-pop, .md-fx-pop.breit { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 70vh; overflow: auto; }
  .md-seitenkopf { margin: 14px 0 12px; }
  .md-seitenkopf h1 { font-size: 22px; }
  .md-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .md-kpi { padding: 11px 12px 8px; }
  .md-kpi > b { font-size: 19px; }
  .md-karte { padding: 14px; }
  .md-tabelle-box { margin: 0 -14px; padding: 0 14px; }
  .md-held { padding: 30px 20px; border-radius: 16px; }
  .md-held-vorschau .md-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-cta { padding: 24px; }
  .md-toasts { right: 10px; left: 10px; bottom: 10px; max-width: none; }
  .md-aktionen { width: 100%; }
  .md-produktbild { width: 72px; height: 72px; }
}
@media print {
  .md-top, .md-nav, .md-filter, .md-werkzeug, .md-aktionen, .md-toasts { display: none !important; }
  .md-rahmen.mit-nav { display: block; }
  .md-karte, .md-kpi { box-shadow: none; break-inside: avoid; }
}
.md-formel-sprung { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.md-formel-sprung a { font-size: 13px; font-weight: 620; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: var(--card); }
.md-formel-sprung a:hover { border-color: var(--brand-1); color: var(--brand-1); }
.md-formel-abschnitt { margin: 0 0 30px; scroll-margin-top: 90px; }
.md-formel-abschnitt h2 { font-size: 19px; font-weight: 680; margin: 0 0 14px; }
.md-formel-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.md-formel { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.md-formel p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.md-formel-text { margin: 0; padding: 10px 12px; border-radius: 9px; background: var(--card2); border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; color: var(--ink); }
.md-formel-lesen { color: var(--muted); }
.md-formel-bsp { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; padding: 10px 12px; border-radius: 9px; border: 1px dashed var(--line); font-size: 13px; }
.md-formel-bsp-titel { font-size: 11px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.md-formel-bsp-rechnung { color: var(--ink); overflow-wrap: anywhere; }
.md-formel-bsp-ergebnis { grid-column: 2; color: var(--brand-1); font-size: 15px; font-weight: 720; }
.md-standard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); font-size: 12.5px; }
.md-standard-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.md-btn-klein { font: inherit; font-size: 12.5px; font-weight: 620; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--brand-1); background: var(--brand-1); color: var(--hell, #fff); cursor: pointer; }
.md-btn-klein.leer { background: var(--card); color: var(--ink); border-color: var(--line); }
.md-btn-klein:hover { filter: brightness(1.05); }
.md-leer { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--schatten); }
.md-leer-symbol { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-1) 12%, var(--card)); color: var(--brand-1); }
.md-leer-symbol .ikon { width: 26px; height: 26px; }
.md-leer-inhalt h2 { font-size: 18px; font-weight: 680; margin: 0 0 6px; }
.md-leer-inhalt p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.md-leer-schritte { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; }
.md-leer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.md-leer-links .md-btn { text-decoration: none; }
