/*
 * Lexikon „Klartext" — CSS für Markup, das auf Lexikon-Seiten (Begriff, Hub, Kategorie) NICHT aus Elementor-Elementen
 * kommt: Yoast-Breadcrumb, die Shortcode-Fragmente aus soeners-lexikon.php und Listen im Fließtext. Dazu alles, was an
 * der Akzentfarbe der Kategorie hängt (--lx-cat, setzt das MU-Plugin je Kategorie-Link und auf der Kategorie-Seite).
 * Die Fragmente haben keine eigenen Klassen (e-paragraph entfernt Attribute aus dynamischem HTML) — die Selektoren
 * hängen an der Klasse des umgebenden Elementor-Elements.
 * Alles andere liegt als globale Klasse im Elementor-Kit. Farben, Radien und Schrift sind die Globalen
 * Variablen des Kits (--<label> auf :root); die Fallbacks greifen nur, wenn eine Variable dort fehlt.
 */

/* Onum unterstreicht Links per box-shadow — in diesen Fragmenten nicht */
.lx-shell .lx-crumb a,
.lx-shell .lx-cat a,
.lx-shell .lx-cat-list a {
  box-shadow: none;
  text-decoration: none;
}

/* Breadcrumb ([wpseo_breadcrumb]) */
.lx-shell .lx-crumb a { color: var(--ink-500, #707F96); transition: color 0.3s; }
.lx-shell .lx-crumb a:hover { color: var(--brand-orange, #FE4C1C); }
.lx-shell .lx-crumb .breadcrumb_last { color: var(--ink-900, #1A1B1E); font-weight: 600; }

/* Kategorie-Pille ([lx_kategorie]) */
.lx-shell .lx-cat a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill, 25px);
  background: var(--brand-orange-tint, #FFE8E0);
  background: color-mix(in srgb, var(--lx-cat, #D23A0F) 12%, #fff);
  color: var(--lx-cat, var(--brand-orange-deep, #D23A0F));
  /* Kategoriefarbe als Text auf ihrer eigenen 12-%-Tönung erreichte nur 4,0–4,6 : 1 — mit 15 % Schwarz alle 13 Kategorien ≥ 5,2 : 1 (WCAG AA, 2026-10-27) */
  color: color-mix(in srgb, var(--lx-cat, #D23A0F) 85%, #000);
  font-family: var(--font-display, "Red Hat Display"), sans-serif;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lx-shell .lx-cat a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Synonyme ([lx_synonyme]) */
.lx-shell .lx-syn span:first-child {
  margin-right: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-900, #1A1B1E);
}
.lx-shell .lx-syn span + span {
  padding: 4px 10px;
  border: 1px solid var(--ink-200, #E4E9F2);
  border-radius: var(--r-xs, 3px);
  background: var(--surface-2, #F7F9FC);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-700, #606060);
}

/* Abkürzungs-Badge ohne Inhalt verschwindet (Begriffe ohne Abkürzung) */
.lx-shell .lx-abbr:empty { display: none; }

/* Kategorien in der Seitenleiste ([lx_kategorien]) */
.lx-shell .lx-cat-list ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-family: var(--font-display, "Red Hat Display"), sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}
.lx-shell .lx-cat-list li { margin: 6px 0; }
.lx-shell .lx-cat-list li::marker { color: var(--brand-orange, #FE4C1C); }
.lx-shell .lx-cat-list a { color: var(--ink-900, #1A1B1E); transition: color 0.3s; }
.lx-shell .lx-cat-list a:hover,
.lx-shell .lx-cat-list strong a { color: var(--brand-orange-text, #C43306); }
/* Links der Kategorie-Liste hoben sich nur durch die Farbe vom Text ab (Lighthouse „Links nur durch Farbe erkennbar“):
   alle unterstrichen, die übrigen dezent, die aktuelle Kategorie in Linkfarbe (2026-10-27) */
.lx-shell .lx-cat-list a { text-decoration: underline; text-decoration-color: var(--ink-300, #A5B7D2); text-underline-offset: 3px; }
.lx-shell .lx-cat-list strong a { text-decoration-color: currentColor; }
.lx-shell .lx-cat-list li span { font-weight: 500; color: var(--ink-500, #707F96); }

/* Listen im Fließtext */
.lx-shell .lx-list ul,
.lx-shell .lx-list ol { margin: 0; padding-left: 20px; }
.lx-shell .lx-list li { margin: 4px 0; }
.lx-shell .lx-list li::marker { color: var(--brand-orange, #FE4C1C); }

/* Abschnitts-Nummern vor den H2 des Begriffsinhalts (01, 02 …) — per Zähler, ohne Markup */
.lx-shell .lx-prose { counter-reset: lx-h2; }
.lx-shell .lx-prose .lx-h2::before {
  counter-increment: lx-h2;
  content: counter(lx-h2, decimal-leading-zero);
  margin-right: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--brand-orange, #FE4C1C);
  vertical-align: 4px;
}

/* Querverweise auf andere Begriffe. Der Composer kann nur href setzen (e-paragraph entfernt Klassen), deshalb
   greift die Regel über das Linkziel. Aussehen wie im Mockup (a.term-link). */
.lx-shell .lx-prose a[href*="/lexikon/"] {
  /* Text-Orange statt Marken-Orange: #FE4C1C hat auf Weiß nur 3,4 : 1, #C43306 kommt auf Weiß, dem Hellblau der
     Hinweise und dem Hellorange der TL;DR-Box über 4,5 : 1 (Kit-Variable brand-orange-text, Sönke 2026-10-27) */
  color: var(--brand-orange-text, #C43306);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px dashed var(--brand-orange-text, #C43306);
  padding-bottom: 1px;
  transition: background-color 0.3s;
}
.lx-shell .lx-prose a[href*="/lexikon/"]::after { content: "↗"; font-size: 0.7em; margin-left: 2px; opacity: 0.6; }
.lx-shell .lx-prose a[href*="/lexikon/"]:hover {
  background: var(--brand-orange-tint, #FFE8E0);
  border-bottom-style: solid;
}

/* Quellen am Ende des Begriffs (Block mit der Klasse lx-sources): kleiner als der Fließtext, Links unterstrichen */
.lx-shell .lx-sources .lx-list { font-size: 14px; line-height: 22px; }
.lx-shell .lx-sources a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--ink-300, #B9C2D0);
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.lx-shell .lx-sources a:hover { color: var(--brand-orange, #FE4C1C); text-decoration-color: currentColor; }

/* Hervorhebungen in Komponenten, deren Text aus einem Override kommt */
.lx-shell .lx-prose strong { color: var(--ink-900, #1A1B1E); font-weight: 600; }
.lx-shell .lx-case-result strong { color: var(--brand-orange-text, #C43306); font-weight: 700; }
.lx-shell .lx-th strong { color: inherit; }

/* Das Theme setzt body auf overflow:hidden — damit klebt kein position:sticky. Auf Begriffsseiten zurücknehmen;
   gegen waagerechtes Scrollen schützt weiter overflow-x:hidden auf <html>. */
body.single-lexikon_term { overflow: visible; }

/* Formelzeile der Kurz-erklärt-Card ([lx_formel]): Kürzel = Formel, Einheit */
.lx-shell .lx-defbox-formula:empty { display: none; }
.lx-shell .lx-defbox-formula span:nth-child(1),
.lx-shell .lx-defbox-formula span:nth-child(3) {
  padding: 4px 10px;
  border: 1px solid rgba(254, 76, 28, 0.18);
  border-radius: var(--r-sm, 6px);
  background: var(--surface-0, #fff);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.02em;
  color: var(--brand-blue-deep, #23527C);
}
.lx-shell .lx-defbox-formula span:nth-child(2) { font-size: 16px; font-weight: 700; color: var(--brand-orange, #FE4C1C); }
.lx-shell .lx-defbox-formula span:nth-child(4) { font-size: 13px; color: var(--ink-500, #707F96); }

/* Teilen-Leiste ([lx_teilen]) */
.lx-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 48px 0 0;
  padding: 18px 24px;
  border-radius: var(--r-lg, 14px);
  background: var(--brand-orange-tint, #FFE8E0);
  font-family: var(--font-display, "Red Hat Display"), sans-serif;
}
.lx-share__text { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-900, #1A1B1E); }
.lx-share__text strong { display: block; font-weight: 700; }
.lx-share__text span { font-size: 12px; color: var(--ink-700, #606060); }
.lx-share__btns { display: flex; gap: 8px; }
.lx-share .lx-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ink-200, #E4E9F2);
  border-radius: var(--r-sm, 6px);
  background: var(--surface-0, #fff);
  color: var(--ink-700, #606060);
  box-shadow: none;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.lx-share .lx-share__btn:hover,
.lx-share .lx-share__btn:focus-visible { color: var(--brand-orange, #FE4C1C); border-color: var(--brand-orange, #FE4C1C); background: var(--surface-0, #fff); }
.lx-share__btn svg { width: 18px; height: 18px; }
.lx-share__status { flex-basis: 100%; min-height: 0; font-size: 12px; line-height: 17px; color: var(--ink-700, #606060); }
.lx-share__status:empty { display: none; }

/* Vorheriger / nächster Begriff ([lx_prev_next]) — flach, mit Skizze.
   Ohne Nachbarn gibt der Shortcode nichts aus; dann verschwindet der ganze Abschnitt samt Trennlinie. */
.lx-shell .lx-pn-band:not(:has(.lx-pn)) { display: none; }
/* minmax(0, 1fr) statt 1fr: Eine 1fr-Spalte wird nie schmaler als ihr längstes Wort, „Auftragsverarbeitungsvertrag"
   drückte die Seite so bei 375 px auf 439 px. Am Titel setzt `hyphens` den Trennstrich (Grenzen wie bei .lx-h1),
   `overflow-wrap` fängt Browser ohne deutsches Trennwörterbuch ab. */
.lx-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lx-pn .lx-pn__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 12px;
  border: 1px solid var(--ink-200, #E4E9F2);
  border-radius: var(--r-lg, 14px);
  background: var(--surface-0, #fff);
  box-shadow: none;
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.lx-pn .lx-pn__item:hover { border-color: var(--brand-orange, #FE4C1C); box-shadow: 0 8px 24px 0 rgba(26, 27, 30, 0.10); }
.lx-pn .lx-pn__item--next { flex-direction: row-reverse; padding: 12px 12px 12px 20px; text-align: right; }
.lx-pn .lx-pn__img { flex: 0 0 auto; width: 112px; height: 64px; border-radius: var(--r-sm, 6px); object-fit: cover; }
.lx-pn__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-family: var(--font-display, "Red Hat Display"), sans-serif; }
.lx-pn__label { font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-500, #707F96); }
.lx-pn__title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--ink-900, #1A1B1E);
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  -webkit-hyphenate-limit-before: 5;
  -webkit-hyphenate-limit-after: 5;
  hyphenate-limit-chars: 12 5 5;
}
@media (max-width: 767px) {
  .lx-pn { grid-template-columns: minmax(0, 1fr); }
  .lx-pn__gap { display: none; }
  .lx-share { padding: 16px 18px; }
}

/* Dachzeilen (TL;DR, „Befund A“, „Standard-Formel“ …) in Text-Orange — die Kit-Klasse lx-eyebrow setzt das
   Marken-Orange, das auf den hellen Flächen den Mindestkontrast verfehlt; Kategorie-Akzente (--lx-cat) bleiben */
.lx-shell .lx-eyebrow { color: var(--brand-orange-text, #C43306); }

/* TL;DR-Card: Strich vor dem Label, Kernaussage weiß hinterlegt ([lx_tldr] setzt sie als <strong>) */
.lx-shell .lx-defbox > .lx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.22em;
}
.lx-shell .lx-defbox > .lx-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand-orange, #FE4C1C);
}
.lx-shell .lx-defbox-text strong {
  padding: 0 6px;
  background: var(--surface-0, #fff);
  box-shadow: inset 0 -6px 0 var(--brand-orange-tint, #FFE8E0);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-weight: 700;
  color: var(--ink-900, #1A1B1E);
}

/* Defbox im Fließtext (z. B. der Beispiel-Prompt): Abstand wie bei den Callouts. Die TL;DR-Card im Template liegt
   nicht direkt in einer lx-section und bleibt unberührt. */
.lx-shell .lx-section > .lx-defbox { margin: 24px 0; }

/* FAQ: Auf/Zu-Zeichen wie im Mockup — ein Plus rechts in der Frage, das sich beim Öffnen zum Kreuz dreht.
   Das Akkordeon ist ein natives <details>, der Kopf (summary) ist schon ein Flex-Container mit space-between. */
.lx-shell .lx-faq-head::after {
  content: "+";
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  font-family: var(--font-display, "Red Hat Display"), sans-serif;
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
  color: var(--brand-orange, #FE4C1C);
  transition: transform 0.3s ease-out;
}
.lx-shell .lx-faq-item[open] > .lx-faq-head::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) {
  .lx-shell .lx-faq-head::after { transition: none; }
}

/* Die Welle über dem Footer ist eine weiße Form auf blauem Grund. Auf Begriffs- und Kategorie-Seiten endet der Inhalt mit dem
   hellblauen Band (lx-more-band) — die Welle übernimmt dessen Farbe, damit kein weißer Streifen dazwischen steht.
   Der Selektor ist so lang, weil Elementor die Füllfarbe mit fünf Klassen setzt. */
body.single-lexikon_term .elementor-location-footer .elementor-top-section.elementor-element > .elementor-shape-top .elementor-shape-fill,
body.tax-lexikon_kategorie .elementor-location-footer .elementor-top-section.elementor-element > .elementor-shape-top .elementor-shape-fill {
  fill: var(--surface-1, #F0F6FF);
}

/* ───────── Hub und Kategorie-Seite ───────── */

/* Lange Wörter in der Hauptüberschrift: Am Handy trennt der Browser selbst (Sprache aus <html lang="de">), aber nur
   Wörter ab 12 Buchstaben mit mindestens 5 vor und nach der Trennstelle. Ein weiches Trennzeichen im Text (U+00AD,
   z. B. „Digital·marketing" im Hub-Titel) bleibt die bevorzugte Stelle. Vorher stand hier `manual` — Begriffe wie
   „Datenschutzerklärung" ohne weiches Trennzeichen liefen bei 375 px über (Routine 2026-10-27). Ab Tablet-Breite
   bleibt das Wort ganz und rutscht eher in die nächste Zeile.
   min-width: 0, weil die H1 Flex-Kind ist: Chrome rechnet die Mindestbreite ohne Trennstellen, die H1 blieb so
   552 px breit und drückte die Seite auf 576 px, obwohl `hyphens: auto` griff. */
.lx-shell .lx-h1 { -webkit-hyphens: none; hyphens: none; }
@media (max-width: 767px) {
  .lx-shell .lx-h1 {
    min-width: 0;
    -webkit-hyphens: auto;
    hyphens: auto;
    -webkit-hyphenate-limit-before: 5;
    -webkit-hyphenate-limit-after: 5;
    hyphenate-limit-chars: 12 5 5;
  }
  /* Begriffsseite: Überschrift und Abkürzungs-Chip („CR") stehen in einer umbrechenden Flex-Zeile. Mit der
     Ersatzschrift passten beide nebeneinander, nach dem Laden von Red Hat Display rutschte der Chip in die nächste
     Zeile und schob den Vorspann um gut 50 px nach unten — Layoutverschiebung 0,13 (Lighthouse 2026-10-27, nur
     Begriffe mit Abkürzung). Am Handy nimmt die Überschrift deshalb immer die ganze Zeile, der Chip steht von Anfang
     an darunter; Trennung und min-width oben gelten weiter. */
  .lx-shell .lx-h1:has(+ .lx-abbr) { flex-basis: 100%; }
}

/* Hervorgehobene Wörter in der Hub-Überschrift (<em> im Titel) */
.lx-shell .lx-h1 em {
  font-style: normal;
  color: var(--brand-orange, #FE4C1C);
  background: linear-gradient(180deg, transparent 62%, var(--brand-orange-tint, #FFE8E0) 62%);
  padding: 0 4px;
}

/* Dachzeile im Kopf des Hubs: Strich davor wie im Mockup */
.lx-shell header .lx-sec-num { display: inline-flex; align-items: center; gap: 10px; }
.lx-shell header .lx-sec-num::before { content: ""; width: 32px; height: 2px; background: var(--brand-orange, #FE4C1C); }

/* Kategorie-Kachel (Komponente lx-category-tile): Layout und Schrift liegen im Kit, hier nur, was an der
   Akzentfarbe hängt — der Strich oben beim Überfahren, die Zahl im Fuß, der Pfeil. */
.lx-shell .lx-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 4px;
  background: var(--lx-cat, var(--brand-orange, #FE4C1C));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}
.lx-shell .lx-tile:hover::before,
.lx-shell .lx-tile:focus-visible::before { transform: scaleX(1); }
.lx-shell .lx-tile-foot strong { font-weight: 700; color: var(--ink-900, #1A1B1E); }
.lx-shell .lx-tile-arrow { transition: transform 0.3s ease-out, color 0.3s; }
.lx-shell .lx-tile:hover .lx-tile-arrow { transform: translateX(4px); color: var(--lx-cat, var(--brand-orange, #FE4C1C)); }

/* Kategorie-Illustration: Fläche mit der Klasse lx-tile-img, Bild als --lx-cat-img aus dem MU-Plugin.
   Ohne Bild bleibt eine getönte Fläche in der Akzentfarbe. */
.lx-shell .lx-tile-img {
  background-color: var(--surface-2, #F7F9FC);
  background-color: color-mix(in srgb, var(--lx-cat, #FE4C1C) 10%, #fff);
  background-image: var(--lx-cat-img, none);
  background-position: center;
  background-size: cover;
}
/* Im Kategorie-Raster erst laden, wenn die Kachel in Sicht kommt (Skript im MU-Plugin setzt lx-lazybg und is-sichtbar) */
.lx-lazybg .lx-shell .lx-cat-grid .lx-tile-img:not(.is-sichtbar) { background-image: none; }

/* Die erste Kachel läuft über die ganze Breite (13 Kategorien: eine breite, darunter drei Reihen zu vier).
   Dass sie flacher ist als die übrigen Reihen, regelt die Kit-Klasse lx-cat-grid (grid-template-rows: auto). */
.lx-shell .lx-cat-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .lx-shell .lx-cat-grid > :first-child .lx-tile { flex-direction: row; align-items: stretch; }
  .lx-shell .lx-cat-grid > :first-child .lx-tile-img { flex: 0 0 38%; aspect-ratio: auto; min-height: 200px; }
  .lx-shell .lx-cat-grid > :first-child .lx-tile-body { justify-content: center; padding: 32px 40px; }
  .lx-shell .lx-cat-grid > :first-child .lx-tile-title { font-size: 26px; line-height: 32px; }
  .lx-shell .lx-cat-grid > :first-child .lx-tile-text { flex: 0 0 auto; font-size: 15px; line-height: 24px; }
}

/* „Neu im Lexikon": Zeilen (Komponente lx-term-row) */
.lx-shell .lx-row-name a { color: inherit; box-shadow: none; text-decoration: none; transition: color 0.3s; }
.lx-shell .lx-row:hover .lx-row-name a { color: var(--brand-orange, #FE4C1C); }
.lx-shell .lx-row-abbr:empty { display: none; }
.lx-shell .lx-row-cat a {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--r-xs, 3px);
  background: var(--ink-100, #F2F4F8);
  background: color-mix(in srgb, var(--lx-cat, #606060) 12%, #fff);
  color: var(--lx-cat, var(--ink-700, #606060));
  color: color-mix(in srgb, var(--lx-cat, #606060) 85%, #000); /* s. Kategorie-Pille */
  box-shadow: none;
  text-decoration: none;
  white-space: nowrap;
}

/* „Beliebt im Lexikon" (Hub, Abfrage lx_beliebt): dieselben Zeilen, statt des Datums steht die Platzierung
   (01, 02 …) aus einem CSS-Zähler. Die Zahl der Aufrufe selbst wird nirgends gezeigt.
   Am Desktop läuft die Liste spaltenweise (links 01–03, rechts 04–06) — die 3 gehört zu posts_per_page 6 im
   Hub-Template; ab Tablet-Breite steht die Liste ohnehin in einer Spalte. Der Selektor trägt beide Klassen, damit er
   die Raster-Angaben der Kit-Klasse lx-row-list sicher überstimmt. */
.lx-shell .lx-rank-list { counter-reset: lx-rank; }
.lx-shell .lx-rank-list .lx-row-date { display: none; }
/* Die Zahl hängt am Namen, nicht an der Zeile: ::before der Zeile gehört Elementor (Hintergrund-Ebene des
   Containers, absolut positioniert). */
.lx-shell .lx-rank-list .lx-row-name::before {
  counter-increment: lx-rank;
  content: counter(lx-rank, decimal-leading-zero);
  display: inline-block;
  width: 36px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--brand-orange, #FE4C1C);
}
@media (min-width: 1025px) {
  .lx-shell .lx-row-list.lx-rank-list { grid-auto-flow: column; grid-template-rows: repeat(3, auto); }
}

/* Blättern in der Begriffsliste der Kategorie-Seite: Der Knopf, der gerade nicht weiterführt (erste oder letzte
   Seite), tritt zurück. Elementor markiert ihn nur mit aria-disabled. */
.lx-shell [data-e-type="e-pagination"] [aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* Buchstabenleiste ([lx_az]) */
.lx-az { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; }
.lx-az a,
.lx-az span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: var(--r-sm, 6px);
  font-family: var(--font-display, "Red Hat Display"), sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.lx-shell .lx-az a {
  border: 1px solid var(--ink-200, #E4E9F2);
  background: var(--surface-0, #fff);
  color: var(--ink-900, #1A1B1E);
  box-shadow: none;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.lx-shell .lx-az a:hover,
.lx-shell .lx-az a:focus-visible { border-color: var(--brand-orange, #FE4C1C); background: var(--brand-orange, #FE4C1C); color: #fff; }
.lx-az span { color: var(--ink-300, #A5B7D2); }

/* Verzeichnis A–Z ([lx_az_index]) */
/* Raster statt CSS-Spalten: In Spalten schob ein aufgeklappter Buchstabe alle folgenden in andere Spalten, im Raster
   wird nur seine Zeile höher. */
.lx-az-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; align-items: start; }
.lx-az-gruppe { margin: 0 0 28px; scroll-margin-top: 140px; }
.lx-az-gruppe h3 {
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--ink-200, #E4E9F2);
  font-family: var(--font-display, "Red Hat Display"), sans-serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: var(--brand-orange, #FE4C1C);
}
.lx-az-gruppe ul { margin: 0; padding: 0; list-style: none; }
.lx-az-gruppe li { margin: 6px 0; font-family: var(--font-display, "Red Hat Display"), sans-serif; font-size: 15px; line-height: 22px; font-weight: 600; }
.lx-shell .lx-az-gruppe a { color: var(--ink-900, #1A1B1E); box-shadow: none; text-decoration: none; transition: color 0.3s; }
.lx-shell .lx-az-gruppe a:hover { color: var(--brand-orange, #FE4C1C); }
.lx-az-gruppe li span {
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: var(--r-xs, 3px);
  background: var(--ink-100, #F2F4F8);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-500, #707F96);
}
.lx-az-leer { margin: 0; font-size: 15px; color: var(--ink-500, #707F96); }

/* Gekürzte Gruppe: die letzten sichtbaren Begriffe laufen aus, darunter der Knopf mit Plus (offen: Minus). */
.lx-az-gruppe:has(> .lx-az-mehr:not([open])) > ul {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent);
}
.lx-az-mehr summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--ink-200, #E4E9F2);
  border-radius: 999px;
  background: var(--surface-0, #fff);
  font-family: var(--font-display, "Red Hat Display"), sans-serif;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  color: var(--ink-900, #1A1B1E);
  list-style: none;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.lx-az-mehr summary::-webkit-details-marker { display: none; }
.lx-az-mehr summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-orange, #FE4C1C);
  color: #fff;
  font-size: 15px;
  line-height: 1;
}
.lx-az-mehr[open] summary::before { content: "\2212"; }
.lx-az-mehr summary:hover,
.lx-az-mehr summary:focus-visible { border-color: var(--brand-orange, #FE4C1C); color: var(--brand-orange, #FE4C1C); }
.lx-az-mehr .lx-az-mehr__auf { display: none; }
.lx-az-mehr .lx-az-mehr__zu { display: none; }
.lx-az-mehr:not([open]) .lx-az-mehr__auf { display: inline; }
.lx-az-mehr[open] .lx-az-mehr__zu { display: inline; }
/* offen: Knopf unter die Liste, damit „Weniger anzeigen“ am Ende steht */
.lx-az-mehr[open] { display: flex; flex-direction: column-reverse; align-items: flex-start; }

/* Kategorie-Seite: Pille über der Überschrift ([lx_kat_position]) und Zahlen im Kopf */
.lx-shell .lx-kat-pill {
  background: var(--brand-orange-tint, #FFE8E0);
  background: color-mix(in srgb, var(--lx-cat, #D23A0F) 12%, #fff);
  color: var(--lx-cat, var(--brand-orange-deep, #D23A0F));
  color: color-mix(in srgb, var(--lx-cat, #D23A0F) 85%, #000); /* s. Kategorie-Pille */
}

@media (max-width: 767px) {
  .lx-az { grid-template-columns: repeat(7, 1fr); }
}

/* „Verwandte Begriffe" und „Dazu im Blog" auf der Begriffsseite als Slider (Sönke 2026-10-24): statt Umbruch eine
   Reihe, die sich seitlich schieben lässt — Desktop 3 Karten sichtbar, Tablet 2,5, Handy 1,5 (die angeschnittene Karte
   zeigt, dass es weitergeht). Nur innerhalb lx-more, damit die Raster auf Hub und Kategorie-Seite bleiben, wie sie sind.
   !important, weil Elementor die Spalten der globalen Klasse lx-loop-grid mit mehrklassigen Selektoren setzt. */
.lx-more .lx-loop-grid {
  --lx-slide-gap: 20px;
  --lx-slide-visible: 3;
  display: grid !important;
  grid-auto-flow: column !important;
  grid-template-columns: none !important;
  grid-auto-columns: calc((100% - (var(--lx-slide-visible) - 1) * var(--lx-slide-gap)) / var(--lx-slide-visible)) !important;
  gap: var(--lx-slide-gap) !important;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  /* oben Luft für Schatten und Hover der Karten (overflow schneidet sonst ab), unten Abstand zur Scrollleiste */
  padding: 12px 0 24px !important;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-300, #B9C2D0) transparent;
  -webkit-overflow-scrolling: touch;
}
.lx-more .lx-loop-grid > * {
  scroll-snap-align: start;
  min-width: 0;
}
.lx-more .lx-loop-grid::-webkit-scrollbar { height: 6px; }
.lx-more .lx-loop-grid::-webkit-scrollbar-thumb { background: var(--ink-300, #B9C2D0); border-radius: 3px; }
.lx-more .lx-loop-grid::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1024px) {
  .lx-more .lx-loop-grid { --lx-slide-visible: 2.5; }
}
@media (max-width: 767px) {
  .lx-more .lx-loop-grid { --lx-slide-visible: 1.5; --lx-slide-gap: 16px; }
}

/* Pfeile der Slider (lexikon.js, slider()): Überschrift links, zwei runde Knöpfe rechts — nach den Slider-Pfeilen des
   Themes (.slick-arrow: weißer Kreis 46 px, weicher Schatten, farbiges Icon, beim Hover gefüllt, 14 px Abstand).
   Am Handy ohne Pfeile, dort wischt man. */
.lx-more .lx-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.lx-more .lx-slider-head > h2 { margin: 0 !important; }
.lx-slider-nav { display: flex; gap: 14px; flex-shrink: 0; }
.lx-slider-nav[hidden] { display: none; }
.lx-slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-orange, #FE4C1C);
  box-shadow: 6px 6px 13px 0 rgba(42, 67, 113, 0.15);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}
.lx-slider-btn--prev svg { transform: rotate(180deg); }
.lx-slider-btn:not(:disabled):hover,
.lx-slider-btn:focus-visible { background: var(--brand-orange, #FE4C1C); color: #fff; }
.lx-slider-btn:focus-visible { outline: 2px solid var(--brand-orange, #FE4C1C); outline-offset: 3px; }
.lx-slider-btn:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 767px) {
  .lx-slider-nav { display: none; }
}

/* ───────── Tag-Archiv /tag/<slug>/ (seit v0.14.0, Template agents/wiki/templates/tag.json) ─────────
   Abschnitte ohne Einträge fallen weg: Tags ohne eigenen Begriff haben keinen Kasten „Kurz erklärt", Begriffe ohne
   Blogbeitrag keinen gemischten Loop. Die Loops haben dafür keinen Leer-Zustand — das Ausblenden hängt an :has(). */
.lx-shell .lx-tag-sek:not(:has([data-e-type="e-collection-loop-item"])) { display: none; }
/* Kennzahl im Kopf ohne Wert ([lx_tag_zahl] gibt bei 0 nichts aus) */
.lx-shell .lx-meta-item:has(.lx-stat-value:empty) { display: none; }

/* Der Begriff zum Tag als breite Karte: Skizze links, Text rechts (ab Tablet-Breite wie die erste Kachel im Hub).
   !important, weil die Kit-Klassen lx-loop-grid und lx-card mit mehrklassigen Selektoren setzen. */
.lx-shell .lx-tag-feature { grid-template-columns: 1fr !important; }
@media (min-width: 768px) {
  .lx-shell .lx-tag-feature .lx-term-card { display: flex !important; flex-direction: row; align-items: stretch; }
  .lx-shell .lx-tag-feature .lx-post-card-img { flex: 0 0 42%; width: 42%; height: auto; min-height: 220px; aspect-ratio: auto; object-fit: cover; }
  .lx-shell .lx-tag-feature .lx-post-card-body { display: flex; flex-direction: column; justify-content: center; padding: 32px 40px; }
  .lx-shell .lx-tag-feature .lx-term-card-title { font-size: 28px; line-height: 34px; }
  .lx-shell .lx-tag-feature .lx-term-card-text { font-size: 16px; line-height: 26px; }
  /* in der schmalen Karte schiebt margin-top: auto den Link nach unten — hier steht er direkt unter dem Text */
  .lx-shell .lx-tag-feature .lx-term-card-more { margin-top: 20px !important; }
}

/* Gemischter Loop (Abfrage lx_tag_alle): eine Karte für Blogbeiträge und Begriffe. Den Typ zeigt die Pille
   ([lx_karte_typ]: <strong> = Begriff mit Kategorie, <em> = „Blog") — daran hängt auch der kleine optische
   Unterschied: Begriffe stehen mit ihrer Bleistiftskizze unbeschnitten auf dem Papierton, Blogbeiträge mit Foto. */
.lx-shell .lx-mix-typ { margin: 0 0 10px; line-height: 0; }
.lx-shell .lx-mix-typ strong,
.lx-shell .lx-mix-typ em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill, 25px);
  font-family: var(--font-display, "Red Hat Display"), sans-serif;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lx-shell .lx-mix-typ strong { background: var(--brand-orange-tint, #FFE8E0); color: var(--brand-orange-text, #C43306); } /* #D23A0F hatte 4,1 : 1, #C43306 4,7 : 1 */
.lx-shell .lx-mix-typ strong::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lx-shell .lx-mix-typ em { background: rgba(1, 96, 231, 0.10); color: var(--brand-blue, #0160E7); }
.lx-shell .lx-mix-grid > [data-lx-typ="lexikon"] .lx-post-card-img,
.lx-shell .lx-mix-grid > :has(.lx-mix-typ strong) .lx-post-card-img { object-fit: contain; background: #F5F6F0; }
.lx-shell .lx-mix-grid > [hidden] { display: none !important; }
/* Startseite (seit v0.18.0): mehrere Kategorien als <em>-Pillen — als umbrechende Reihe, damit auch eine zweite
   Zeile Abstand nach oben hat (v0.20.0, vorher margin-left: die zweite Zeile klebte an der ersten) */
.lx-shell .lx-mix-typ { display: flex; flex-wrap: wrap; gap: 6px; }

/* Datum und Lesedauer auf den Karten der Startseite ([lx_karte_meta], seit v0.20.0) — Symbole wie im alten Post-Grid */
.lx-shell .lx-mix-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-500, #707F96);
}
/* Begriffe im Tag-Archiv haben kein Datum/keine Lesedauer — die leere Zeile soll keinen Abstand erzeugen */
.lx-shell .lx-mix-meta:empty,
.lx-shell .lx-mix-meta:not(:has(span)) { display: none; }
.lx-shell .lx-mix-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lx-shell .lx-mix-meta span::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  -webkit-mask: var(--lx-meta-icon) center / contain no-repeat;
  mask: var(--lx-meta-icon) center / contain no-repeat;
}
.lx-shell .lx-mix-meta span:first-child {
  --lx-meta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}
.lx-shell .lx-mix-meta span + span {
  --lx-meta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}
/* Kategorie-Pille rechts neben „Kurz erklärt" bleibt einzeilig („Content & Branding" brach sonst um) */
.lx-shell .lx-sec-head > .lx-cat { flex: 0 0 auto; white-space: nowrap; }

/* Filter „Alle · Blog · Lexikon" ([lx_tag_filter], Logik in lexikon.js) */
.lx-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--ink-200, #E3E8EF);
  border-radius: var(--r-pill, 25px);
  background: var(--surface-0, #fff);
  color: var(--ink-900, #1A1B1E);
  font-family: var(--font-display, "Red Hat Display"), sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.lx-filter-btn span { font-weight: 500; color: var(--ink-500, #707F96); transition: color 0.2s; }
.lx-filter-btn:hover { border-color: var(--brand-orange, #FE4C1C); color: var(--brand-orange, #FE4C1C); }
.lx-filter-btn[aria-pressed="true"] { border-color: var(--ink-900, #1A1B1E); background: var(--ink-900, #1A1B1E); color: #fff; }
.lx-filter-btn[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.7); }
.lx-filter-btn:focus-visible { outline: 2px solid var(--brand-orange, #FE4C1C); outline-offset: 2px; }

