/* District Gaming V – Lexikon im Forum. Aufbau und Optik nach dem Zero-District-Lexikon: dunkle Fläche, Seitenleiste nach
   Gruppen, Karten mit Akzentlinie beim Darüberfahren, Abschnitts-Überschriften mit Linie. Akzent = Blau von District Gaming V.
   Links werden nie unterstrichen (außer im Artikeltext). Eigene Farben – unabhängig vom Forum-Stil. */
.dgLex {
    --lx-accent: #3fb6ff;
    --lx-accent-2: #9ad9ff;
    --lx-bg: #0d1119;
    --lx-card-1: #131a26;
    --lx-card-2: #0f141e;
    --lx-line: rgba(255, 255, 255, .08);
    --lx-line-2: rgba(255, 255, 255, .15);
    --lx-text: #eef2f8;
    --lx-dim: #a3adbf;
    --lx-faint: #6f7a8f;
    --lx-surface: rgba(255, 255, 255, .035);
    --lx-surface-2: rgba(255, 255, 255, .07);
    --lx-series: #3987e5;
    --lx-display: 'Chakra Petch', 'Rajdhani', 'Bahnschrift', 'Segoe UI', system-ui, sans-serif;
    --lx-ease: cubic-bezier(.32, .72, 0, 1);
    --c: var(--lx-accent);
    color: var(--lx-text);
    font-size: 15px;
    line-height: 1.55;
}
.dgLex *, .dgLex *::before, .dgLex *::after { box-sizing: border-box; }
.dgLex svg { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
.dgLex a, .dgLex a:hover, .dgLex a:focus, .dgLex a:active { text-decoration: none; }
.dgLex a { color: var(--lx-accent); }
.dgLex button { font-family: inherit; }
.dgLex kbd { display: inline-block; min-width: 1.8em; padding: .05em .45em; border-radius: 6px; border: 1px solid var(--lx-line-2); border-bottom-width: 2px;
    background: var(--lx-surface-2); font: 600 .86em/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: center; color: var(--lx-text); }
.dgLex__loading { padding: 40px; text-align: center; color: var(--wcfContentDimmedText, #8a94a6); }
html.lx-noscroll { overflow: hidden; }

/* Forum-Kopf auf der Lexikon-Seite: der ganze Banner-Bereich (Logo-Fläche und Hero-Boxen) fällt weg, alles rückt nach oben.
   Die feste Menüleiste bleibt. Die Suche des Forums ist ein fest positioniertes Fenster in diesem Bereich – deshalb Höhe 0
   statt ausblenden, sonst ginge sie nicht mehr auf. Nur am großen Bildschirm (mobil ist der Kopf eine Leiste mit Menüknöpfen). */
@media (min-width: 1025px) {
    html body #pageHeaderFacade, html body .pageHeaderFacade { height: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
        border: 0 !important; overflow: visible !important; background: none !important; box-shadow: none !important; }
    html body .pageHeaderFacade > .layoutBoundary { height: 0 !important; min-height: 0 !important; padding: 0 !important; }
    html body #pageHeaderLogo, html body .pageHeaderLogo { display: none !important; }
    html body #pageHeaderContainer > .boxesHero, html body .pageHeaderContainer > .boxesHero { display: none !important; }
    html body #pageHeaderContainer, html body #pageHeader { min-height: 0 !important; height: auto !important; padding-bottom: 0 !important; }
}

/* Brotkrumen-Leiste (Forumname über der Überschrift) gibt es auf der Lexikon-Seite nicht – auch ihr Rahmen fällt weg */
html body .pageNavigation, html body nav.breadcrumbs { display: none !important; }
/* etwas Luft zwischen der Überschrift „Lexikon“ und dem Lexikon (Abstand addiert sich zum Abstand der Überschrift) */
#dgLex { padding-top: 16px; }

/* „Live“ klein neben der Seitenüberschrift (steht außerhalb des Lexikons → eigene Farben) */
.lx-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #8a94a6; white-space: nowrap; }
.lx-live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: lxPulse 2.2s infinite; }
.lx-live.in-title { margin-left: 12px; padding: 3px 10px 3px 9px; border-radius: 999px; background: rgba(52, 211, 153, .13); color: #34d399; font-size: 12px; font-weight: 600;
    line-height: 1.5; letter-spacing: 0; text-transform: none; vertical-align: middle; position: relative; top: -.15em; }
.lx-sb .lx-live { display: flex; margin: 0 4px 10px; }
@keyframes lxPulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* ---------- Grundgerüst: Seitenleiste + Inhalt ---------- */
.lx { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 60vh; border-radius: 16px; overflow: hidden; border: 1px solid var(--lx-line);
    background: linear-gradient(180deg, #10151f 0%, #0b0f17 100%); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.lx-sb { min-width: 0; padding: 16px 12px 20px; border-right: 1px solid var(--lx-line); background: linear-gradient(180deg, rgba(63, 182, 255, .05), transparent 40%); }
.lx-main { min-width: 0; min-height: 240px; padding: 22px 26px 30px; }

/* Suche (Seitenleiste) und Suchfelder in den Werkzeugleisten: runde Pille, Akzentrahmen beim Tippen */
.lx-q, .lx-pill { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--lx-line);
    background: rgba(255, 255, 255, .04); color: var(--lx-faint); cursor: text; transition: border-color .2s; }
.lx-q:focus-within, .lx-pill:focus-within { border-color: rgba(63, 182, 255, .5); color: var(--lx-accent); }
.dgLex .lx-q input, .dgLex .lx-pill input { flex: 1; min-width: 0; width: 100%; height: 100%; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0;
    outline: 0; box-shadow: none !important; background: transparent !important; color: var(--lx-text); font: inherit; font-size: 13.5px; -webkit-appearance: none; appearance: none; }
.dgLex .lx-q input::placeholder, .dgLex .lx-pill input::placeholder { color: var(--lx-faint); opacity: 1; }

/* Bereiche: Gruppen-Titel klein und gesperrt, aktiver Bereich mit Akzentkante links */
.lx-nav { position: relative; display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.lx-nav__g { margin: 14px 12px 5px; font: 700 10.5px/1.2 var(--lx-display); letter-spacing: .18em; text-transform: uppercase; color: var(--lx-faint); }
.dgLex .lx-nav__a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; border: 1px solid transparent; border-left: 3px solid transparent;
    color: rgba(238, 242, 248, .6); font: 600 14px/1.2 var(--lx-display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
    transition: color .15s, background .15s, border-color .15s; }
.dgLex .lx-nav__a:hover { color: var(--lx-text); background: rgba(63, 182, 255, .06); }
.dgLex .lx-nav__a.on { color: var(--lx-accent-2); background: rgba(63, 182, 255, .09); border-color: rgba(63, 182, 255, .25); border-left-color: var(--lx-accent);
    box-shadow: inset 0 0 16px rgba(63, 182, 255, .06); }
.lx-nav__i { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent);
    opacity: .8; transition: opacity .15s; }
.dgLex .lx-nav__i svg { width: 16px; height: 16px; }
.lx-nav__a:hover .lx-nav__i, .lx-nav__a.on .lx-nav__i { opacity: 1; }
.lx-nav__l { overflow: hidden; text-overflow: ellipsis; }
.lx-nav__a em { margin-left: auto; font-style: normal; font-family: inherit; font-size: 11px; letter-spacing: 0; color: var(--lx-faint); }

/* ---------- Bausteine ---------- */
.lx-sec { margin: 0 0 28px; }
.lx-sec:last-child { margin-bottom: 0; }
/* Lexikon-Team: Entwürfe und Änderungen vor der Freigabe – Linie in der Farbe des Hinweis-Schilds */
.lx-open { --c: #f59e0b; }
.lx-bar2 { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font: 700 clamp(17px, 1.6vw, 22px)/1.1 var(--lx-display); letter-spacing: .05em;
    text-transform: uppercase; color: var(--lx-text); }
.lx-bar2::before { content: ''; flex: none; width: 22px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--lx-accent-2), var(--c)); }
.lx-bar2::after { content: ''; flex: 1; order: 2; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 10%, transparent) 45%, transparent); }
.lx-bar2 > span { min-width: 0; }
.dgLex .lx-bar2__a { order: 3; flex: none; font: 700 12px/1 var(--lx-display); letter-spacing: .1em; text-transform: uppercase; color: var(--lx-accent); transition: color .2s; }
.dgLex .lx-bar2__a:hover { color: var(--lx-accent-2); }
.lx-bar2__n { order: 3; flex: none; font: 600 12px/1 var(--lx-display); letter-spacing: .06em; color: var(--lx-faint); }

.lx-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; padding: 14px 16px; border-radius: 12px; background: rgba(63, 182, 255, .06);
    border: 1px solid rgba(63, 182, 255, .25); }
.lx-note__i { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(63, 182, 255, .14); color: var(--lx-accent); }
.dgLex .lx-note__i svg { width: 17px; height: 17px; }
.lx-note p { margin: 0; color: #c9d3e2; font-size: 14px; line-height: 1.6; }
.lx-note strong { color: var(--lx-text); font-weight: 700; }

.lx-muted { color: var(--lx-dim); margin: 0 0 14px; }
.lx-empty { padding: 40px 24px; border-radius: 14px; border: 1px dashed var(--lx-line-2); background: var(--lx-surface); color: var(--lx-dim); text-align: center; }
.lx-empty .lx-btn { margin-left: 8px; }
.lx-tag { display: inline-block; padding: 1px 8px; margin: 2px 4px 2px 0; border-radius: 999px; font-size: 11.5px; font-weight: 700; font-style: normal;
    background: var(--lx-surface-2); color: var(--lx-text); }
.lx-tag.warn { background: rgba(245, 158, 11, .16); color: #fbbf24; }
.lx-dotc { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cc, var(--lx-accent)); flex: none; }
.lx-linkbtn { border: 0; padding: 0; background: none; color: var(--lx-accent); font: inherit; cursor: pointer; }
.lx-linkbtn:hover { color: var(--lx-accent-2); }

/* Karten: minimal heller als die Fläche, Licht von oben; beim Darüberfahren hebt sich die Karte, oben zeichnet sich die Akzentlinie ein */
.dgLex .lx-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 16px; border-radius: 14px;
    border: 1px solid var(--lx-line); background: linear-gradient(180deg, var(--lx-card-1), var(--lx-card-2)); color: var(--lx-text); font: inherit; text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .28); cursor: pointer;
    transition: transform .25s var(--lx-ease), border-color .25s var(--lx-ease), box-shadow .25s var(--lx-ease); }
.lx-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 20%, transparent) 60%, transparent); transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--lx-ease); }
.dgLex .lx-card:hover, .dgLex .lx-card:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 38%, transparent); color: var(--lx-text); outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 4px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .45), 0 8px 32px color-mix(in srgb, var(--c) 8%, transparent); }
.lx-card:hover::before, .lx-card:focus-visible::before { transform: scaleX(1); }
.lx-grid { display: grid; gap: 12px; }
.lx-grid.g3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.lx-grid.g4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* Übersicht: Bereichs-Kacheln */
.dgLex .lx-area { gap: 10px; padding: 18px; }
.lx-area__h { display: flex; align-items: center; gap: 12px; }
.lx-area__i { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--c);
    background: color-mix(in srgb, var(--c) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.dgLex .lx-area__i svg { width: 22px; height: 22px; }
.lx-area__t { min-width: 0; }
.lx-area__t b { display: block; font: 700 18px/1.1 var(--lx-display); letter-spacing: .04em; text-transform: uppercase; }
.lx-area__t em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--c); }
.lx-area__d { color: var(--lx-dim); font-size: 13.5px; line-height: 1.5; }
.lx-area__go { margin-top: auto; font: 800 11px/1 var(--lx-display); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }

/* Artikel-Karten */
.dgLex .lx-acard { gap: 8px; padding: 14px 16px; }
.lx-acard__h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lx-acard__i { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.dgLex .lx-acard__i svg { width: 17px; height: 17px; }
.lx-acard__h b { font-size: 15px; font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lx-acard__x { color: var(--lx-faint); font-size: 13px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lx-acard__f { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.lx-acard__f em { font: 700 10.5px/1 var(--lx-display); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }

/* Werkzeugleiste: Auswahlfelder links, Zähler, Suche rechts */
.lx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.lx-tools > .lx-pill { order: 9; margin-left: auto; flex: 0 1 280px; min-width: 180px; }
.lx-tools > .lx-btn { margin-left: auto; }
.dgLex select.lx-select { height: 36px; margin: 0; padding: 0 32px 0 12px; border-radius: 9px; border: 1px solid var(--lx-line); color: var(--lx-text); font: inherit; font-size: 13px;
    font-weight: 600; cursor: pointer; -webkit-appearance: none; appearance: none; box-shadow: none;
    background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3adbf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 13px; }
.dgLex select.lx-select:hover { border-color: var(--lx-line-2); }
.dgLex select.lx-select:focus { border-color: rgba(63, 182, 255, .5); outline: none; }
.dgLex .lx-select option { background: #151b27; color: var(--lx-text); }
.lx-reset { display: inline-flex; align-items: center; gap: 4px; padding: 6px; border: 0; background: none; color: var(--lx-faint); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.lx-reset:hover { color: #f87171; }
.lx-reset[hidden] { display: none; }
.lx-count { font-size: 12.5px; color: var(--lx-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Filter-Chips (Themen, Bereiche, Kartenlegende, Autohäuser) */
.lx-chips, .lx-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.dgLex .lx-chip { --c: var(--lx-accent); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--lx-line);
    background: rgba(255, 255, 255, .03); color: var(--lx-dim); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer;
    transition: color .15s, border-color .15s, background .15s; }
.dgLex .lx-chip:hover { color: var(--lx-text); border-color: var(--lx-line-2); }
.dgLex .lx-chip.on { color: var(--lx-text); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.lx-chip em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--lx-faint); }
.dgLex .lx-chip > svg { width: 14px; height: 14px; color: var(--c); }
.lx-chip.ghost { padding: 6px 12px; }

/* Knöpfe */
.dgLex .lx-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--lx-line-2); background: var(--lx-surface-2);
    color: var(--lx-text); font: inherit; font-size: 13.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s; }
.dgLex .lx-btn:hover { border-color: rgba(63, 182, 255, .5); color: var(--lx-text); }
.dgLex .lx-btn.primary { background: var(--lx-accent); border-color: transparent; color: #04121d; }
.dgLex .lx-btn.primary:hover { background: var(--lx-accent-2); color: #04121d; }
.dgLex .lx-btn.small { padding: 5px 10px; font-size: 12.5px; }

/* ---------- Artikel ---------- */
.lx-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; color: var(--lx-faint); }
.dgLex .lx-crumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--lx-dim); transition: color .15s; }
.dgLex .lx-crumb a:hover { color: var(--lx-text); }
.lx-ahead { --cc: var(--lx-accent); position: relative; overflow: hidden; margin-bottom: 24px; padding: 22px 24px 18px; border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 16%, transparent), rgba(255, 255, 255, .02) 70%); border: 1px solid color-mix(in srgb, var(--cc) 28%, var(--lx-line)); }
.dgLex .lx-chipcat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em;
    color: #fff; background: color-mix(in srgb, var(--cc) 72%, #000); }
.dgLex .lx-chipcat svg { width: 14px; height: 14px; }
.dgLex .lx-chipcat:hover { color: #fff; background: color-mix(in srgb, var(--cc) 85%, #000); }
.lx-title { margin: 10px 0 8px; font: 700 clamp(24px, 2.6vw, 32px)/1.15 var(--lx-display); letter-spacing: .02em; color: var(--lx-text); }
.lx-ameta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--lx-dim); font-size: 13px; }
.lx-ameta > span { display: inline-flex; align-items: center; gap: 5px; }
.lx-ameta .lx-btn { margin-left: auto; }
.lx-abody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.lx-abody.has-toc { grid-template-columns: minmax(0, 1fr) 220px; }
.lx-toc { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; background: var(--lx-surface); border: 1px solid var(--lx-line); }
.lx-toc[hidden] { display: none; }
.lx-toc b { margin-bottom: 6px; font: 700 10.5px/1.2 var(--lx-display); letter-spacing: .16em; text-transform: uppercase; color: var(--lx-faint); }
.lx-toc button { padding: 5px 8px; border: 0; border-radius: 8px; background: none; color: var(--lx-dim); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.lx-toc button.sub { padding-left: 20px; color: var(--lx-faint); }
.lx-toc button:hover { background: var(--lx-surface-2); color: var(--lx-text); }

/* Artikeltext (WoltLab-HTML) */
.lx-article { max-width: 820px; font-size: 16px; line-height: 1.7; color: #dbe2ee; }
.lx-article h2, .lx-article h3 { position: relative; margin: 30px 0 10px; padding-left: 14px; font-family: var(--lx-display); font-weight: 700; line-height: 1.25; color: var(--lx-text); scroll-margin-top: 90px; }
.lx-article h2 { font-size: 22px; letter-spacing: .02em; }
.lx-article h3 { font-size: 19px; }
.lx-article h2::before, .lx-article h3::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--cc, var(--lx-accent)); }
.lx-article h4 { margin: 22px 0 6px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--lx-dim); scroll-margin-top: 90px; }
.lx-article > :first-child { margin-top: 0; }
.lx-article p { margin: 0 0 14px; }
.lx-article ul { list-style: none; margin: 0 0 16px; padding: 0; }
.lx-article ul > li { position: relative; margin: 6px 0; padding-left: 22px; }
.lx-article ul > li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--cc, var(--lx-accent)); }
.lx-article ol { list-style: none; counter-reset: lxstep; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.lx-article ol > li { counter-increment: lxstep; position: relative; padding: 10px 14px 10px 52px; border-radius: 12px; background: var(--lx-surface); border: 1px solid var(--lx-line); }
.lx-article ol > li::before { content: counter(lxstep); position: absolute; left: 12px; top: 9px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: var(--lx-accent); color: #04121d; font-weight: 800; font-size: 14px; line-height: 28px; text-align: center; }
.lx-article kbd { display: inline-block; min-width: 1.9em; padding: .1em .5em; border-radius: 7px; border: 1px solid var(--lx-line-2); border-bottom-width: 3px;
    background: linear-gradient(180deg, var(--lx-surface-2), var(--lx-surface)); font: 700 .82em/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: center; color: var(--lx-text); }
.lx-article img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.dgLex .lx-article a { color: var(--lx-accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lx-article strong { font-weight: 750; color: var(--lx-text); }
.lx-article blockquote { margin: 16px 0; }
.lx-callout { position: relative; margin: 18px 0 !important; padding: 14px 16px 14px 52px; border-radius: 12px; border: 1px solid; }
.lx-callout::before { position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px;
    line-height: 26px; text-align: center; color: #fff; }
.lx-callout__t { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.lx-callout.tip { background: rgba(34, 197, 94, .09); border-color: rgba(34, 197, 94, .35); }
.lx-callout.tip::before { content: '✓'; background: #22c55e; }
.lx-callout.tip .lx-callout__t { color: #4ade80; }
.lx-callout.info { background: rgba(59, 130, 246, .09); border-color: rgba(59, 130, 246, .35); }
.lx-callout.info::before { content: 'i'; background: #3b82f6; font-family: Georgia, serif; font-style: italic; }
.lx-callout.info .lx-callout__t { color: #60a5fa; }
.lx-callout.warn { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .4); }
.lx-callout.warn::before { content: '!'; background: #f59e0b; }
.lx-callout.warn .lx-callout__t { color: #fbbf24; }
.lx-tablewrap { overflow-x: auto; margin: 0 0 18px; border-radius: 12px; border: 1px solid var(--lx-line); }
.lx-article table, .lx-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.lx-article table td, .lx-article table th { padding: 10px 14px; border-bottom: 1px solid var(--lx-line); vertical-align: top; text-align: left; }
.lx-article table tr:first-child td { background: var(--lx-surface-2); font-weight: 700; }
.lx-article table tr:nth-child(2n + 3) td { background: var(--lx-surface); }
.lx-article table tr:last-child td { border-bottom: 0; }

/* Tabellen in Artikeln (1.4.1): Karte mit Akzent-Kopfzeile, Zahlen rechtsbündig, leere Werte gedimmt */
.lx-article .lx-tablewrap {
    margin: 14px 0 22px;
    background: linear-gradient(180deg, var(--lx-card-1), var(--lx-card-2));
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.lx-article .lx-tablewrap--slim { max-width: 560px; }
.lx-article .lx-tablewrap table { font-size: 14px; }
.lx-article .lx-tablewrap td, .lx-article .lx-tablewrap th { padding: 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, .055); vertical-align: middle; }
.lx-article .lx-tablewrap tr:nth-child(n) td { background: none; }
.lx-article .lx-tablewrap tr.lx-thead td, .lx-article .lx-tablewrap tr.lx-thead th {
    padding-top: 12px; padding-bottom: 12px;
    background: rgba(63, 182, 255, .06);
    border-bottom: 1px solid rgba(63, 182, 255, .35);
    color: var(--lx-dim);
    font-family: var(--lx-display);
    font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.lx-article .lx-tablewrap tr.lx-thead strong { font-weight: inherit; color: inherit; }
.lx-article .lx-tablewrap tr:not(.lx-thead):nth-child(even) td { background: rgba(255, 255, 255, .018); }
.lx-article .lx-tablewrap tr:not(.lx-thead):hover td { background: rgba(63, 182, 255, .07); }
.lx-article .lx-tablewrap tr:not(.lx-thead) td:first-child { color: var(--lx-text); font-weight: 600; box-shadow: inset 2px 0 0 transparent; transition: box-shadow .15s; }
.lx-article .lx-tablewrap tr:not(.lx-thead):hover td:first-child { box-shadow: inset 2px 0 0 var(--lx-accent); }
.lx-article .lx-tablewrap td:not(:first-child) { color: var(--lx-dim); }
.lx-article .lx-tablewrap .lx-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lx-article .lx-tablewrap td.lx-num { color: var(--lx-text); }
.lx-article .lx-tablewrap td.lx-mute { color: var(--lx-faint); }
.lx-article .lx-tablewrap tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
    .lx-article .lx-tablewrap td, .lx-article .lx-tablewrap th { padding: 9px 11px; }
    .lx-article .lx-tablewrap--slim { max-width: none; }
}
.lx-table th { padding: 8px 10px; border-bottom: 2px solid var(--lx-line); text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--lx-faint); }
.lx-table td { padding: 9px 10px; border-bottom: 1px solid var(--lx-line); vertical-align: top; }
.lx-table td small { display: block; color: var(--lx-dim); font-size: 12.5px; }
.lx-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; max-width: 820px; }
.dgLex .lx-pager a { flex: 0 1 48%; gap: 2px; padding: 14px 18px; }
.dgLex .lx-pager a.next { margin-left: auto; text-align: right; }
.lx-pager small { display: inline-flex; align-items: center; gap: 4px; color: var(--lx-faint); font-size: 12.5px; }
.lx-pager a.next small { justify-content: flex-end; }

/* Listen (Suche) */
.lx-results { margin-bottom: 24px; }
.lx-list { display: grid; gap: 8px; }
.dgLex .lx-li { --cc: var(--lx-accent); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px;
    border: 1px solid var(--lx-line); background: linear-gradient(180deg, var(--lx-card-1), var(--lx-card-2)); color: var(--lx-text); box-shadow: inset 3px 0 0 var(--cc);
    transition: border-color .2s, transform .2s var(--lx-ease); }
.lx-li > b { grid-column: 1; font-weight: 700; }
.lx-li > span { grid-column: 1; color: var(--lx-dim); font-size: 13.5px; }
.lx-li > em { grid-column: 2; grid-row: 1 / 3; font-style: normal; font-size: 12px; font-weight: 700; color: var(--lx-dim); white-space: nowrap; }
.dgLex .lx-li:hover { border-color: color-mix(in srgb, var(--cc) 45%, transparent); color: var(--lx-text); transform: translateX(2px); }
.lx-list.compact .lx-li { grid-template-columns: auto minmax(0, 1fr) auto; padding: 8px 12px; }
.lx-list.compact .lx-li > b { grid-column: 2; }
.lx-list.compact .lx-li > span { grid-column: 3; grid-row: 1; }

/* ---------- Items ---------- */
.dgLex .lx-icard { --c: var(--rc); gap: 10px; padding: 12px; border-color: color-mix(in srgb, var(--rc) 20%, var(--lx-line)); }
.lx-icard__h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lx-icard .lx-pimg { width: 54px; height: 54px; border-radius: 12px; background: color-mix(in srgb, var(--rc) 10%, rgba(255, 255, 255, .03));
    border: 1px solid color-mix(in srgb, var(--rc) 28%, transparent); }
.lx-icard__t { min-width: 0; }
.lx-icard__t b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lx-icard__t em { display: block; margin-top: 3px; font: 700 10.5px/1 var(--lx-display); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--rc); }
.lx-icard__m { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--lx-line); font-size: 12px; color: var(--lx-faint); }
.lx-rar { color: var(--rc) !important; }

/* Bild eines Items (auch bei den Preisen) */
.lx-pimg { position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: none; overflow: hidden; border-radius: 12px; background: var(--lx-surface-2); color: var(--lx-faint); }
.dgLex .lx-pimg svg { width: 22px; height: 22px; }
.lx-pimg:has(img) svg { display: none; }
.lx-pimg img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: contain; }
.lx-pimg.big { width: 84px; height: 84px; border-radius: 18px; }
.dgLex .lx-pimg.big svg { width: 34px; height: 34px; }
img.lx-tint-gold { filter: sepia(1) saturate(5) hue-rotate(-8deg) brightness(1.15); }
img.lx-tint-diamond { filter: sepia(1) saturate(4) hue-rotate(150deg) brightness(1.25); }

/* ---------- Fahrzeuge ---------- */
.dgLex .lx-vcard { --c: #d55181; padding: 0; }
.lx-vimg { position: relative; display: grid; place-items: center; height: 150px; color: var(--lx-faint); border-bottom: 1px solid var(--lx-line);
    background: radial-gradient(ellipse 70% 60% at 50% 72%, rgba(63, 182, 255, .12), transparent 70%), rgba(255, 255, 255, .02); }
.dgLex .lx-vimg > svg { width: 44px; height: 44px; opacity: .35; }
.lx-vimg:has(img) > svg { display: none; }
.lx-vimg img { position: absolute; left: 6%; top: 8px; width: 88%; height: calc(100% - 16px); object-fit: contain; }
.lx-vimg.big { height: 230px; border-bottom: 0; }
.lx-vcard__b { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.lx-vcard__t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.lx-vcard__t b { min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-vcard__t em { flex: none; font-style: normal; font-weight: 800; font-size: 14px; color: var(--lx-accent-2); }
.lx-vcard__m { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--lx-faint); }
.lx-fuel { color: var(--fc); font-weight: 700; }
.lx-vcard__d { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--lx-dim); }
.dgLex .lx-vcard__d svg { width: 13px; height: 13px; color: #e07aa0; }
.lx-vcard__d span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-vhero { margin: -24px -24px 16px; border-bottom: 1px solid var(--lx-line); }
.lx-vprice { margin-left: auto; flex: none; font: 800 21px/1 var(--lx-display); color: var(--lx-accent-2); white-space: nowrap; }
.lx-wrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--lx-surface); border: 1px solid var(--lx-line); }
.lx-wrow__i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(213, 81, 129, .14); color: #e07aa0; }
.lx-wrow__t { flex: 1; min-width: 0; }
.lx-wrow__t b { display: block; }
.lx-wrow__t small { display: block; color: var(--lx-dim); font-size: 12.5px; }

/* ---------- Fenster (Items, Fahrzeuge, Preise, Tasten) ---------- */
.lx-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 6, 10, .78); }
.lx-modal__box { position: relative; width: min(780px, 100%); max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain; padding: 24px; border-radius: 16px;
    background: linear-gradient(180deg, #151c28, #0e131c); color: var(--lx-text); border: 1px solid var(--lx-line-2); border-top: 2px solid var(--lx-accent);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6); outline: none; font-size: 15px; line-height: 1.55; }
.lx-modal__box.sm { width: min(560px, 100%); }
.lx-mx { position: absolute; right: 14px; top: 14px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--lx-line-2);
    background: rgba(13, 17, 25, .85); color: var(--lx-dim); cursor: pointer; }
.lx-mx:hover, .lx-mx:focus-visible { border-color: rgba(63, 182, 255, .5); color: var(--lx-text); outline: none; }
.lx-mh { display: flex; align-items: center; gap: 16px; padding-right: 44px; margin-bottom: 14px; }
.lx-mh > div { min-width: 0; }
.lx-mh small { display: block; font: 700 11px/1.3 var(--lx-display); letter-spacing: .12em; text-transform: uppercase; color: var(--lx-faint); }
.lx-mh h3 { margin: 2px 0 4px; font: 700 24px/1.2 var(--lx-display); letter-spacing: .02em; color: var(--lx-text); }
.lx-mh.key small { color: var(--kc); }
.lx-mtags { display: flex; flex-wrap: wrap; gap: 4px; }
.lx-mtags .lx-dotc { vertical-align: 0; }
.lx-mdesc { margin: 0 0 16px; color: #c9d3e2; }
.lx-mbody { font-size: 15.5px; line-height: 1.65; }
.lx-mbody p { margin: 0 0 10px; }
.lx-mbody ul { margin: 0 0 12px; padding-left: 20px; }
.lx-mbody li { margin: 5px 0; }
.lx-also { margin: 12px 0 0; }
.lx-mfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--lx-line); color: var(--lx-faint); font-size: 13px; }
.dgLex .lx-mfoot .lx-btn { max-width: 42%; }
.lx-mfoot .lx-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-mh4 { margin: 18px 0 8px; font: 700 11px/1.2 var(--lx-display); letter-spacing: .14em; text-transform: uppercase; color: var(--lx-faint); }
.lx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 14px; }
.lx-fact { min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--lx-surface); border: 1px solid var(--lx-line); }
.lx-fact span { display: block; font: 700 10.5px/1.2 var(--lx-display); letter-spacing: .12em; text-transform: uppercase; color: var(--lx-faint); }
.lx-fact b { display: block; margin-top: 3px; font-size: 14.5px; }
.dgLex .lx-mlink { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(217, 89, 38, .35); background: rgba(217, 89, 38, .08);
    color: var(--lx-text); transition: border-color .15s; }
.dgLex .lx-mlink:hover { border-color: rgba(217, 89, 38, .65); color: var(--lx-text); }
.lx-mlink__i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(217, 89, 38, .18); color: #f08a5d; }
.lx-mlink__t { flex: 1; min-width: 0; }
.lx-mlink__t b { display: block; }
.lx-mlink__t small { display: block; color: var(--lx-dim); font-size: 12.5px; }

/* ---------- Preise ---------- */
.lx-pv, .lx-keysv, .lx-iv, .lx-vv, .lx-arts, .lx-read { min-width: 0; }
.lx-pcat { --cc: var(--lx-accent); margin: 0 0 18px; border-radius: 16px; border: 1px solid var(--lx-line); background: linear-gradient(180deg, var(--lx-card-1), var(--lx-card-2)); overflow: hidden; }
.lx-pcat__h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-bottom: 1px solid var(--lx-line);
    background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 14%, transparent), transparent 70%); box-shadow: inset 3px 0 0 var(--cc); }
.lx-pcat__i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--cc); background: color-mix(in srgb, var(--cc) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--cc) 32%, transparent); }
.dgLex .lx-pcat__i svg { width: 20px; height: 20px; }
.lx-pcat__h > div { flex: 1 1 200px; min-width: 0; }
.lx-pcat__h h3 { margin: 0; font: 700 18px/1.2 var(--lx-display); letter-spacing: .04em; text-transform: uppercase; }
.lx-pcat__h small { color: var(--lx-faint); font-size: 12.5px; }
.lx-pcat__t { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.lx-pcat__rows { display: grid; gap: 6px; padding: 10px; }
.lx-psub { margin: 10px 6px 2px; font: 700 10.5px/1.2 var(--lx-display); letter-spacing: .16em; text-transform: uppercase; color: var(--lx-faint); }
.lx-psub:first-child { margin-top: 2px; }
.lx-prange { min-width: 0; }
.lx-prow { display: grid; grid-template-columns: 48px minmax(0, 1fr) 90px 130px auto; align-items: center; gap: 14px; width: 100%; margin: 0; padding: 10px 14px; border-radius: 12px;
    border: 1px solid var(--lx-line); background: rgba(255, 255, 255, .025); color: var(--lx-text); font: inherit; text-align: left; cursor: pointer;
    transition: border-color .2s, transform .2s var(--lx-ease), background .2s; }
.lx-prow:hover, .lx-prow:focus-visible { border-color: color-mix(in srgb, var(--cc) 45%, transparent); background: rgba(255, 255, 255, .04); outline: none; transform: translateX(2px); }
.lx-pname { min-width: 0; }
.lx-pname b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-pname small { display: block; color: var(--lx-faint); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgLex svg.lx-spark { display: block; width: 84px; height: 26px; }
.lx-spark path { fill: none; stroke: var(--lx-dim); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lx-spark circle { fill: var(--lx-series); stroke: var(--lx-bg); stroke-width: 2; }
.lx-psum { display: flex; gap: 20px; justify-content: flex-end; }
.lx-pp { display: flex; flex-direction: column; align-items: flex-end; min-width: 96px; }
.lx-pp em { font: 700 10.5px/1.3 var(--lx-display); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--lx-faint); }
.lx-pp b { font-size: 16px; white-space: nowrap; }
.lx-trend { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.dgLex .lx-trend svg { width: 12px; height: 12px; }
.lx-trend.good { color: #22c55e; }
.lx-trend.bad { color: #f87171; }
.lx-trend.flat { color: var(--lx-faint); }
.lx-range { display: inline-flex; flex-direction: column; gap: 4px; min-width: 110px; }
.lx-range__t { position: relative; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--lx-series) 24%, transparent); }
.lx-range__t i { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--lx-series); box-shadow: 0 0 0 2px var(--lx-bg); }
.lx-range small { font-size: 12px; color: var(--lx-faint); }
.lx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 6px; }
.lx-kpi { min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--lx-surface); border: 1px solid var(--lx-line); }
.lx-kpi > span { display: block; font-size: 12px; color: var(--lx-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-kpi > b { display: block; font-size: 20px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.lx-kpi > small { display: block; margin-top: 2px; font-size: 12px; color: var(--lx-dim); }
.lx-meter { position: relative; height: 6px; margin: 8px 6px 6px; border-radius: 3px; background: color-mix(in srgb, var(--lx-series) 24%, transparent); }
.lx-meter i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--lx-series); box-shadow: 0 0 0 2px var(--lx-bg); }
.lx-otabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.lx-chart { position: relative; margin: 0; outline: none; border-radius: 10px; }
.lx-chart:focus-visible { box-shadow: 0 0 0 2px var(--lx-series); }
.dgLex svg.lx-chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.lx-chart__svg .g { stroke: var(--lx-line); stroke-width: 1; }
.lx-chart__svg text { fill: var(--lx-faint); font-size: 11px; font-family: inherit; }
.lx-chart__svg .band { fill: rgba(255, 255, 255, .06); }
.lx-chart__svg .ln { fill: none; stroke: var(--lx-series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lx-chart__svg .pt { fill: var(--lx-series); stroke: var(--lx-bg); stroke-width: 2; }
.lx-chart__svg .xh { stroke: var(--lx-dim); stroke-width: 1; }
.lx-tt { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 12px)); padding: 6px 10px; border-radius: 8px; background: #151c28; border: 1px solid var(--lx-line-2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .4); pointer-events: none; white-space: nowrap; font-size: 12.5px; line-height: 1.35; }
.lx-tt[hidden] { display: none; }
.lx-tt b { display: block; font-size: 14px; }
.lx-tt span { color: var(--lx-dim); }
.lx-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-top: 4px; font-size: 12.5px; color: var(--lx-faint); }
.lx-band-key { display: inline-flex; align-items: center; gap: 6px; }
.lx-band-key i { width: 14px; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, .06); border: 1px solid var(--lx-line); }
.lx-tview { margin: 6px 0 4px; font-size: 13px; }
.lx-tview summary { cursor: pointer; color: var(--lx-dim); }
.lx-tview .lx-tablewrap { margin: 8px 0 0; max-height: 240px; overflow: auto; }
.lx-where td b { white-space: nowrap; }
.lx-where td .lx-trend { display: flex; }

/* ---------- Steuerung: Tastatur (deutsches Layout) + Maus; belegte Tasten in der Farbe ihrer Gruppe, Text weiß ---------- */
.lx-klegend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-size: 13px; color: var(--lx-dim); }
.lx-kl { display: inline-flex; align-items: center; gap: 7px; }
.lx-kl i { width: 12px; height: 12px; border-radius: 4px; background: var(--kc); }
.lx-kbarea { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 18px; border-radius: 16px;
    background: linear-gradient(180deg, var(--lx-card-1), var(--lx-card-2)); border: 1px solid var(--lx-line); }
.lx-kbarea.nomouse { grid-template-columns: minmax(0, 1fr); }
.lx-kbwrap { container-type: inline-size; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.lx-kb { --kh: 40px; display: grid; grid-template-columns: repeat(74, minmax(0, 1fr)); grid-template-rows: var(--kh) calc(var(--kh) * .3) repeat(5, var(--kh)); gap: 5px; min-width: 680px; }
@supports (width: 1cqw) { .lx-kb { --kh: max(34px, calc(100cqw / 19.5)); } }
.lx-k { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 2px 4px; border-radius: 8px;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--lx-line); border-bottom-width: 3px; color: var(--lx-faint); font: inherit; font-size: 12.5px; line-height: 1.1; overflow: hidden; }
.lx-k b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lx-k small { display: none; }
button.lx-k { cursor: pointer; }
.lx-k.on { color: #fff; background: color-mix(in srgb, var(--kc) 80%, #000); border-color: color-mix(in srgb, var(--kc) 55%, #000);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--kc) 30%, transparent); transition: transform .12s, background .12s; }
.lx-k.on:hover, .lx-k.on:focus-visible { transform: translateY(-2px); background: color-mix(in srgb, var(--kc) 92%, #000); outline: none; }
.lx-k.on:focus-visible { box-shadow: 0 0 0 2px var(--lx-bg), 0 0 0 4px var(--kc); }
@container (min-width: 900px) {
    .lx-k.on small { display: block; max-width: 100%; margin-top: 3px; font-size: 9.5px; font-weight: 600; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.lx-mouse { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--lx-faint); font-size: 12px; }
.lx-mouse__b { position: relative; width: 92px; height: 140px; border-radius: 46px 46px 54px 54px; background: rgba(255, 255, 255, .04); border: 1px solid var(--lx-line); overflow: hidden; }
.lx-mb { position: absolute; top: 0; width: 50%; height: 60px; padding: 0; border: 0; background: transparent; }
.lx-mb.l { left: 0; border-right: 1px solid var(--lx-line); border-bottom: 1px solid var(--lx-line); }
.lx-mb.r { right: 0; border-bottom: 1px solid var(--lx-line); }
.lx-mb.w { left: 50%; top: 14px; width: 14px; height: 30px; margin-left: -7px; border-radius: 7px; background: var(--lx-line-2); z-index: 1; }
.lx-mb.on { background: color-mix(in srgb, var(--kc) 80%, #000); cursor: pointer; }
.lx-mb.on:hover, .lx-mb.on:focus-visible { background: color-mix(in srgb, var(--kc) 92%, #000); outline: none; }
.lx-mb.on:focus-visible { box-shadow: inset 0 0 0 2px #fff; }
.lx-khint { margin: 12px 0 26px; font-size: 13px; }
.lx-klist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 16px; align-items: start; }
.lx-kgrp h4 { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; font: 700 10.5px/1.2 var(--lx-display); letter-spacing: .16em; text-transform: uppercase; color: var(--lx-faint); }
.lx-kgrp h4 i { width: 10px; height: 10px; border-radius: 3px; background: var(--kc); }
.lx-kli { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 6px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--lx-line);
    background: linear-gradient(180deg, var(--lx-card-1), var(--lx-card-2)); color: var(--lx-text); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 3px 0 0 var(--kc);
    transition: border-color .2s, transform .2s var(--lx-ease); }
.lx-kli:hover, .lx-kli:focus-visible { border-color: color-mix(in srgb, var(--kc) 50%, transparent); outline: none; transform: translateX(2px); }
.lx-kli > span:last-child { min-width: 0; }
.lx-kli b { display: block; font-size: 14.5px; }
.lx-kli small { display: block; color: var(--lx-faint); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-caps { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.lx-caps i { font-style: normal; color: var(--lx-faint); font-size: 12px; }
.dgLex .lx-caps kbd { min-width: 2.1em; font-size: 13px; color: #fff; background: color-mix(in srgb, var(--kc, var(--lx-accent)) 80%, #000); border-color: color-mix(in srgb, var(--kc, var(--lx-accent)) 55%, #000); }
.dgLex .lx-caps.big kbd { min-width: 2.3em; padding: .3em .65em; font-size: 20px; border-radius: 10px; border-bottom-width: 4px; }
.lx-tips { margin: 0; padding-left: 20px; color: #c9d3e2; }
.lx-tips li { margin: 6px 0; }

/* ---------- Karte ---------- */
.lx-mapwrap { position: relative; }
.lx-maptools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.lx-maptools .lx-pill { flex: 1 1 260px; max-width: 360px; }
.lx-chipbar { display: flex; gap: 6px; margin-left: auto; }
.lx-legend { margin-bottom: 12px; }
.lx-map { position: relative; height: clamp(420px, 72vh, 860px); border-radius: 14px; overflow: hidden; background: #1a61b0; border: 1px solid var(--lx-line);
    cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.lx-map.drag { cursor: grabbing; }
/* nur verschoben, nie skaliert (scharf bei jedem Zoom) */
.lx-layer { position: absolute; left: 0; top: 0; background-size: 100% 100%; background-repeat: no-repeat; }
.lx-tiles { position: absolute; inset: 0; }
.lx-tile { position: absolute; display: block; max-width: none; opacity: 0; transition: opacity .25s; pointer-events: none; }
.lx-tile.in { opacity: 1; }
.lx-pins { position: absolute; inset: 0; z-index: 10; }
.lx-pin { position: absolute; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
    transform: translate(-50%, -50%); filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .65)); }
.lx-pin:hover, .lx-pin:focus-visible { z-index: 2; outline: none; }
.lx-pin:hover .lx-ico, .lx-pin:focus-visible .lx-ico { transform: scale(1.25); }
.lx-pin.sel { z-index: 3; }
.lx-pin.sel::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #fff; background: rgba(255, 255, 255, .25); box-shadow: 0 0 10px rgba(0, 0, 0, .5); }
.lx-ico { display: inline-block; flex: none; background-repeat: no-repeat; transition: transform .12s; }
.lx-dot { display: inline-block; flex: none; border-radius: 50%; background: var(--d, #5db6e5); border: 2px solid rgba(0, 0, 0, .55); }
.lx-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 20; display: flex; flex-direction: column; gap: 6px; }
.lx-zoom button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(12, 16, 24, .85); color: #fff; cursor: pointer; }
.lx-zoom button:hover { background: rgba(12, 16, 24, .97); border-color: rgba(63, 182, 255, .5); }
.lx-info { position: absolute; right: 12px; top: 12px; z-index: 20; width: min(300px, calc(100% - 24px)); padding: 14px 16px; border-radius: 12px; background: rgba(12, 16, 24, .94);
    border: 1px solid var(--lx-line-2); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.lx-info[hidden] { display: none; }
.lx-info__h { display: flex; align-items: center; gap: 10px; padding-right: 26px; }
.lx-info__h b { display: block; font-size: 15px; line-height: 1.25; }
.lx-info__h small { display: block; color: rgba(255, 255, 255, .65); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.lx-info code { display: block; margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .55); background: none; padding: 0; }
.lx-x { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.lx-hits { margin-top: 12px; }

/* Karte mit Seitenleiste (1.4.1): Legende in Gruppen statt einer langen Chip-Wand */
.lx-mapwrap--side { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 14px; align-items: start; }
.lx-mapcol { min-width: 0; }
.lx-mside {
    position: sticky; top: 70px; display: flex; flex-direction: column; gap: 10px;
    max-height: clamp(420px, 72vh, 860px); padding: 12px; border-radius: 14px; border: 1px solid var(--lx-line);
    background: linear-gradient(180deg, var(--lx-card-1), var(--lx-card-2));
}
.lx-mside .lx-pill { max-width: none; }
.lx-mside__bar { display: flex; align-items: center; gap: 4px; padding: 0 4px; color: var(--lx-faint); font-size: 12px; }
.lx-mside__bar span { margin-right: auto; }
.dgLex .lx-mlink { padding: 3px 8px; border: 0; border-radius: 6px; background: none; color: var(--lx-dim); font: inherit; font-weight: 600; cursor: pointer; }
.dgLex .lx-mlink:hover { color: var(--lx-text); background: var(--lx-surface-2); }
.lx-mcats {
    overflow-y: auto; margin: 0 -8px 0 -6px; padding: 0 8px 0 6px;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; scrollbar-gutter: stable;
}
.lx-mcats:hover { scrollbar-color: color-mix(in srgb, var(--lx-accent) 55%, transparent) transparent; }
.lx-mcats::-webkit-scrollbar { width: 6px; }
.lx-mcats::-webkit-scrollbar-track { background: transparent; }
.lx-mcats::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 99px; }
.lx-mcats:hover::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--lx-accent) 55%, transparent); }
.lx-mcats::-webkit-scrollbar-button { display: none; height: 0; }
.lx-mcat { --cc: var(--lx-accent); padding: 2px 0; }
.lx-mcat + .lx-mcat { border-top: 1px solid var(--lx-line); }
.lx-mcat__head { display: flex; align-items: center; gap: 8px; padding: 6px 2px; }
.dgLex .lx-mcat__tgl {
    flex: none; width: 16px; height: 16px; padding: 0; border-radius: 5px; cursor: pointer;
    border: 1.5px solid color-mix(in srgb, var(--cc) 60%, transparent); background: none; position: relative;
}
.dgLex .lx-mcat__tgl.on { background: var(--cc); border-color: var(--cc); }
.dgLex .lx-mcat__tgl.on::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #0d1119; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dgLex .lx-mcat__tgl.part::after { content: ''; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; border-radius: 1px; background: var(--cc); }
.dgLex .lx-mcat__fold {
    flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
    color: var(--lx-text); font: inherit;
}
.lx-mcat__fold b { font-family: var(--lx-display); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lx-mcat__n { margin-left: auto; color: var(--lx-faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.lx-mcat__chev { width: 8px; height: 8px; border: solid var(--lx-faint); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -3px 4px 0 2px; transition: transform .2s var(--lx-ease); }
.lx-mcat.fold .lx-mcat__chev { transform: rotate(-45deg); margin-top: 0; }
.lx-mcat__list { display: grid; gap: 1px; padding: 0 0 6px 4px; }
.lx-mcat.fold .lx-mcat__list { display: none; }
.dgLex .lx-mrow {
    --c: var(--lx-accent); display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; border: 0; border-radius: 7px;
    background: none; color: var(--lx-faint); font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background-color .15s, color .15s;
}
.dgLex .lx-mrow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dgLex .lx-mrow em { font-style: normal; font-size: 12px; color: var(--lx-faint); font-variant-numeric: tabular-nums; }
.dgLex .lx-mrow .lx-ico, .dgLex .lx-mrow .lx-dot { flex: none; opacity: .35; filter: grayscale(1); transition: opacity .15s, filter .15s; }
.dgLex .lx-mrow:hover { background: var(--lx-surface); color: var(--lx-dim); }
.dgLex .lx-mrow.on { color: var(--lx-text); }
.dgLex .lx-mrow.on .lx-ico, .dgLex .lx-mrow.on .lx-dot { opacity: 1; filter: none; }

/* ---------- Tablet & Handy ---------- */
@media (max-width: 900px) {
    .lx-mapwrap--side { grid-template-columns: minmax(0, 1fr); }
    .lx-mside { position: static; max-height: none; }
    .lx-mcats { overflow: visible; }
    .lx { grid-template-columns: minmax(0, 1fr); border-radius: 14px; }
    .lx-sb { padding: 12px; border-right: 0; border-bottom: 1px solid var(--lx-line); }
    .lx-sb .lx-live { margin: 0 2px 8px; }
    /* Bereiche als Wischleiste */
    .lx-nav { flex-direction: row; gap: 6px; margin: 10px -12px 0; padding: 0 12px 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .lx-nav::-webkit-scrollbar { display: none; }
    .lx-nav__g { display: none; }
    .dgLex .lx-nav__a { flex: none; padding: 7px 12px 7px 8px; border: 1px solid var(--lx-line); background: rgba(255, 255, 255, .03); font-size: 13px; }
    .dgLex .lx-nav__a.on { border-color: rgba(63, 182, 255, .45); }
    .lx-nav__i { width: 24px; height: 24px; }
    .lx-nav__a em { display: none; }
    .lx-main { padding: 16px 14px 22px; }
    .lx-abody.has-toc { grid-template-columns: minmax(0, 1fr); }
    .lx-toc { display: none; }
    .lx-ahead { padding: 16px; }
    .lx-prow { grid-template-columns: 44px minmax(0, 1fr) auto; }
    .lx-pspark, .lx-prange { display: none; }
}
@media (max-width: 640px) {
    .dgLex { font-size: 14.5px; }
    .lx-grid.g3 { grid-template-columns: minmax(0, 1fr); }
    .lx-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .lx-note { padding: 12px; gap: 10px; }
    .lx-note__i { display: none; }
    .lx-bar2 { font-size: 17px; gap: 10px; }
    /* Werkzeugleiste: Suche oben über die ganze Breite, Auswahlfelder je halbe Breite */
    .lx-tools > .lx-pill { order: -1; flex: 1 1 100%; margin-left: 0; }
    .lx-tools > .lx-btn { margin-left: 0; }
    .dgLex select.lx-select { flex: 1 1 calc(50% - 4px); min-width: 0; }
    .lx-count { order: 10; }
    .lx-maptools .lx-pill { max-width: none; }
    /* Tastatur-Bild braucht Platz – am Handy reicht die Liste */
    .lx-kbarea, .lx-klegend, .lx-khint { display: none; }
    .lx-klist { grid-template-columns: minmax(0, 1fr); }
    .lx-map { height: 64vh; }
    .lx-icard .lx-pimg { width: 44px; height: 44px; }
    .lx-icard__m { flex-direction: column; gap: 2px; }
    .lx-vimg { height: 140px; }
    .lx-prow { grid-template-columns: 44px minmax(0, 1fr); gap: 10px 12px; }
    .lx-psum { grid-column: 1 / -1; justify-content: flex-start; }
    .lx-pp { align-items: flex-start; min-width: 0; }
    .lx-pager { flex-direction: column; }
    .dgLex .lx-pager a { flex-basis: auto; }
    .lx-title { font-size: 24px; }
    /* Fenster als Blatt von unten */
    .lx-modal { padding: 0; align-items: flex-end; }
    .lx-modal__box, .lx-modal__box.sm { width: 100%; max-height: 92vh; padding: 18px 16px 16px; border-radius: 18px 18px 0 0; }
    .lx-vhero { margin: -18px -16px 14px; }
    .lx-vimg.big { height: 190px; }
    .lx-mh h3 { font-size: 20px; }
    .lx-pimg.big { width: 64px; height: 64px; }
    .lx-mfoot .lx-btn span { display: none; }
    .lx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .lx-live i { animation: none; }
    .lx-tile, .lx-ico, .lx-k, .lx-prow, .lx-kli, .lx-li { transition: none; }
    .dgLex .lx-card, .lx-card::before { transition: none; }
    .dgLex .lx-card:hover { transform: none; }
}
