/*
Theme Name: Teledoor Reinraumtechnik
Theme URI: https://eingenetzt.net
Author: eingenetzt — Dennis Redder
Description: Classic-Theme für teledoor-reinraumtechnik.de. Portiert 1:1 aus dem freigegebenen HTML-Prototyp (Richtung BD). Basiert auf eingenetzt-starter-theme v0.1.
Version: 0.1.0
Requires PHP: 8.0
Text Domain: teledoor
*/

/* ============ Lokale Fonts (kein CDN — Lastenheft) ============ */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-700.woff2') format('woff2');
}
/* Ersatzschrift mit Barlow-Laufweite (gemessen 19.10.2026: Barlow = 96,4 % von Arial).
   Verhindert, dass die Kontaktzeile oben auf dem Handy beim Schriftwechsel von zwei auf
   eine Zeile springt (Layout-Verschiebung CLS 0,158 auf allen Seiten). */
@font-face {
  font-family: 'Barlow Fallback';
  src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Roboto');
  size-adjust: 96.4%;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-condensed-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-condensed-700.woff2') format('woff2');
}

/* ============ portiert aus css/base.css ============ */
/* ============================================================
   Teledoor Reinraumtechnik — Design-Prototyp
   base.css: Reset, Design-Tokens, Header/Megamenü, Footer,
   gemeinsame Sektions-Komponenten + Theme-Ausprägungen A/B/C
   Jede Sektion = späterer Gutenberg-Block (BEM-Klassen).
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--c-text); background: var(--c-bg); line-height: 1.6; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
a { color: var(--c-link); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; color: var(--c-heading); font-weight: var(--head-weight); }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
/* Fokus auf dunklen/farbigen Flächen: weiße Outline (K1, WCAG 2.4.7/1.4.11) */
.topbar :focus-visible, .footer :focus-visible, .cta-band :focus-visible,
.hero-b :focus-visible, .hero-c :focus-visible, .refband :focus-visible,
.statband :focus-visible { outline-color: #ffffff; }
/* In C und D ist das CTA-Band hell — dort gilt wieder die farbige Fokus-Outline */
body.theme-c .cta-band :focus-visible, body.theme-d .cta-band :focus-visible, body.theme-e .cta-band :focus-visible { outline-color: var(--c-focus); }

/* Anker-Sprünge nicht unter dem Sticky-Header verschwinden lassen (F2) */
[id] { scroll-margin-top: 110px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Design-Tokens: Richtung A „Reinraum-Klar“ (Default) ---------- */
:root {
  --c-primary: #676e65;        /* Logo-Grau-Grün */
  --c-primary-dark: #4a504a;
  --c-accent: #336519;         /* Logo-Grün — CTA */
  --c-accent-dark: #2a5314;
  --c-signal: #942026;         /* Logo-Rot — sparsam */
  --c-heading: #33372f;
  --c-text: #33372f;
  --c-text-muted: #5c6157;
  --c-link: #336519;
  --c-focus: #336519;
  --c-bg: #ffffff;
  --c-bg-alt: #f3f5f1;
  --c-line: #dce0d8;
  --c-cta-bg: var(--c-accent);
  --c-cta-text: #ffffff;
  --c-cta-hover: var(--c-accent-dark);

  --topbar-bg: #f3f5f1;
  --topbar-text: #4a504a;
  --header-bg: #ffffff;
  --header-text: #33372f;
  --header-line: #dce0d8;
  --mega-bg: #ffffff;
  --footer-bg: #33372f;
  --footer-text: #d7dbd3;

  --font-head: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --head-weight: 650;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(51, 55, 47, 0.10);
}

/* ---------- Tokens: Richtung B „Engineering“ ---------- */
body {
  --c-primary: #942026;
  /* Anthrazit leicht ins Grüngrau des Logos getönt */
  --c-heading: #1b1e19;
  --c-text: #262a24;
  --c-text-muted: #575d54;
  --c-link: #7d1b20;
  --c-focus: #942026;
  --c-bg: #ffffff;
  --c-bg-alt: #eef0f2;
  --c-line: #d5dade;
  /* Rot nur als Akzent (Linien, Kicker) — CTA-Flächen in Anthrazit, damit Rot im
     Sicherheits-Kontext (Pharma/Medizintechnik) nicht als Warnfarbe liest (F10) */
  --c-cta-bg: #1b1e19;
  --c-cta-text: #ffffff;
  --c-cta-hover: #313630;
  --c-accent: #942026;

  --topbar-bg: #1b1e19;
  --topbar-text: #ccd1c9;
  --header-bg: #ffffff;
  --header-text: #1b1e19;
  --header-line: #d5dade;
  --mega-bg: #ffffff;
  --footer-bg: #1b1e19;
  --footer-text: #ccd1c9;

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Barlow Fallback", Arial, sans-serif;
  --head-weight: 600;
  --radius: 2px;
  --shadow: 0 10px 30px rgba(22, 25, 28, 0.14);
}
body h1, body h2 { text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- Tokens: Richtung D „Editorial“ (TRUMPF-orientiert) ---------- */
body.theme-d {
  --c-primary: #676e65;
  --c-primary-dark: #4a504a;
  --c-accent: #336519;
  --c-accent-dark: #2a5314;
  --c-signal: #942026;
  --c-heading: #1d1f1c;
  --c-text: #2a2c29;
  --c-text-muted: #6b6f68;
  --c-link: #336519;
  --c-focus: #336519;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f5f4;
  --c-line: #e3e4e1;
  --c-cta-bg: #336519;
  --c-cta-text: #ffffff;
  --c-cta-hover: #2a5314;

  --topbar-bg: #f5f5f4;
  --topbar-text: #4a504a;
  --header-bg: #ffffff;
  --header-text: #1d1f1c;
  --header-line: #e3e4e1;
  --mega-bg: #ffffff;
  --footer-bg: #1d1f1c;
  --footer-text: #cfd2cc;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --head-weight: 500;
  --radius: 0;
  --shadow: 0 12px 32px rgba(29, 31, 28, 0.10);
}
/* Editorial-Typo: große, eher leichte Headlines; Buttons uppercase wie bei TRUMPF */
body.theme-d h1 { font-weight: 450; letter-spacing: -0.01em; }
body.theme-d h2 { font-weight: 500; }
body.theme-d .btn { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.88rem; font-weight: 600; padding: 15px 30px; }
body.theme-d .btn--ghost { border-width: 1px; }
body.theme-d .section__kicker { color: var(--c-text-muted); }

/* ---------- Tokens: Richtung E „System“ (Berg-GaseTech-Layout, Farb-Hauptempfehlung) ---------- */
body.theme-e {
  --c-primary: #676e65;
  --c-primary-dark: #4a504a;
  --c-accent: #336519;
  --c-accent-dark: #2a5314;
  --c-signal: #942026;
  --c-heading: #1d1f1c;
  --c-text: #2a2c29;
  --c-text-muted: #6b6f68;
  --c-link: #336519;
  --c-focus: #336519;
  --c-bg: #ffffff;
  --c-bg-alt: #f4f5f3;
  --c-line: #e2e4e0;
  --c-cta-bg: #336519;
  --c-cta-text: #ffffff;
  --c-cta-hover: #2a5314;

  --topbar-bg: #1d1f1c;
  --topbar-text: #ccd1c9;
  --header-bg: #ffffff;
  --header-text: #1d1f1c;
  --header-line: #e2e4e0;
  --mega-bg: #ffffff;
  --footer-bg: #1d1f1c;
  --footer-text: #ccd1c9;

  --font-head: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --head-weight: 700;
  --radius: 8px;
  --shadow: 0 12px 32px rgba(29, 31, 28, 0.10);
}
body.theme-e h1 { letter-spacing: -0.02em; }
body.theme-e .cta-band { background: var(--c-bg-alt); color: var(--c-text); border-top: 1px solid var(--c-line); }
body.theme-e .cta-band h2 { color: var(--c-heading); }
body.theme-e .cta-band p { opacity: 1; color: var(--c-text-muted); }
body.theme-e .cta-band .btn { background: var(--c-cta-bg); color: var(--c-cta-text); }
body.theme-e .cta-band .btn:hover { background: var(--c-cta-hover); }

/* ---------- Tokens: Richtung C „Vertraut-Blau“ ---------- */
body.theme-c {
  --c-primary: #00416c;
  --c-primary-dark: #002239;
  --c-heading: #002239;
  --c-text: #22303b;
  --c-text-muted: #4e6272;
  --c-link: #00416c;
  --c-focus: #00416c;
  --c-bg: #ffffff;
  --c-bg-alt: #eef3f7;
  --c-line: #d3dee6;
  --c-cta-bg: #00416c;
  --c-cta-text: #ffffff;
  --c-cta-hover: #002d4c;
  --c-accent: #00416c;

  --topbar-bg: #002239;
  --topbar-text: #c6d5e0;
  --header-bg: #ffffff;
  --header-text: #002239;
  --header-line: #d3dee6;
  --mega-bg: #ffffff;
  --footer-bg: #002239;
  --footer-text: #c6d5e0;

  --font-head: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --head-weight: 700;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(0, 34, 57, 0.12);
}

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section.section--anschluss { padding-top: 0; } /* Anschluss-Sektion ohne eigene H2 (z. B. Kontakt-Callout nach merkmale) */
.section:has(+ .wp-block-teledoor-merkmale.section--anschluss) { padding-bottom: 0; } /* Intro-Sektion + Merkmale ohne eigene H2 wirken als ein Abschnitt */
.section--alt { background: var(--c-bg-alt); }
.section__kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 0.75em; }
body .section__kicker { color: var(--c-signal); }
.section__title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); max-width: 22ch; }
.section__title--center { margin-inline: auto; text-align: center; }
.section__kicker--center { text-align: center; }
.section__intro { max-width: 62ch; color: var(--c-text-muted); font-size: 1.06rem; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--c-cta-bg); color: var(--c-cta-text); padding: 10px 18px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 26px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn--primary { background: var(--c-cta-bg); color: var(--c-cta-text); }
.btn--primary:hover { background: var(--c-cta-hover); }
.btn--ghost { border-color: currentColor; color: var(--c-heading); background: transparent; }
.btn--ghost:hover { background: var(--c-heading); color: var(--c-bg); }
.btn--ghost-light { border-color: #ffffff; color: #ffffff; background: transparent; }
.btn--ghost-light:hover { background: #ffffff; color: var(--c-heading); }

/* ---------- Topbar ---------- */
.topbar { background: var(--topbar-bg); color: var(--topbar-text); font-size: 0.85rem; }
.topbar__inner { display: flex; justify-content: flex-end; gap: 16px; padding-block: 7px; flex-wrap: wrap; }
.topbar p { margin: 0; }
.topbar a { color: inherit; text-decoration: none; display: inline-block; padding-block: 8px; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header { background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-line); position: sticky; top: 0; z-index: 100; }
.header__inner { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.header__logo { display: flex; flex-direction: column; gap: 2px; text-decoration: none; flex-shrink: 0; }
.header__logo img { width: 248px; height: auto; }
.header__logo-sub { font-size: 0.78rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--c-text-muted); padding-left: 42px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 8px; }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: 6px; padding: 30px 14px; background: none; border: none; color: var(--header-text); font-weight: 600; font-size: 1rem; text-decoration: none; border-bottom: 3px solid transparent; }
.nav__link:hover, .nav__link.is-active, .nav__item.is-open .nav__link { border-bottom-color: var(--c-accent); color: var(--c-accent); }
body .nav__link:hover, body .nav__link.is-active, body .nav__item.is-open .nav__link { border-bottom-color: var(--c-signal); color: var(--c-signal); }
.nav__chevron { transition: transform 0.2s; }
.nav__item.is-open .nav__chevron { transform: rotate(180deg); }
.header__cta { flex-shrink: 0; }

/* ---------- Megamenü ---------- */
.megamenu { visibility: hidden; opacity: 0; transition: opacity 0.15s; position: fixed; left: 0; right: 0; background: var(--mega-bg); border-top: 1px solid var(--header-line); border-bottom: 1px solid var(--header-line); box-shadow: var(--shadow); z-index: 90; }
.nav__item.is-open .megamenu { visibility: visible; opacity: 1; }
.megamenu__inner { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 40px; padding-block: 36px; } /* Spaltenzahl folgt den sichtbaren Spalten (leere Gruppen sind ausgeblendet) */
.megamenu__heading { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-muted); border-bottom: 1px solid var(--c-line); padding-bottom: 8px; margin: 0 0 12px; }
.megamenu__col a { display: block; padding: 7px 0; color: var(--c-heading); text-decoration: none; font-weight: 500; }
.megamenu__col a:hover { color: var(--c-accent); text-decoration: underline; }
body .megamenu__col a:hover { color: var(--c-signal); }
.megamenu__visual img { border-radius: var(--radius); aspect-ratio: 16 / 7; object-fit: cover; }
.megamenu__all { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--c-accent); text-decoration: none; }
body .megamenu__all { color: var(--c-signal); }
.megamenu__all:hover { text-decoration: underline; }
/* Spalten ohne veröffentlichte Zielseite ausblenden (Entwurfs-Seiten fallen aus
   dem Menü, übrig bleibt eine Gruppen-Überschrift ohne Links bzw. ein "#"-Link). */
.megamenu__col:not(:has(a:not([href="#"]))) { display: none; }
.mobile-nav__sub li:has(> a[href="#"]) { display: none; }

/* ---------- Mobile Nav ---------- */
.header__burger { display: none; margin-left: auto; background: none; border: none; padding: 10px; }
.header__burger span { display: block; width: 26px; height: 3px; background: var(--header-text); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }
/* Overlay statt Inflow (Real-Device-Befund Dennis 21.09.): legt sich über den
   Inhalt statt ihn nach unten zu schieben; kurzes Einblenden, Reduced-Motion
   wird über den globalen Block oben abgeschaltet. */
.mobile-nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 95; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; background: var(--header-bg); border-top: 1px solid var(--header-line); box-shadow: var(--shadow); max-height: calc(100vh - 84px); overflow-y: auto; }
.mobile-nav.is-open { visibility: visible; opacity: 1; transform: none; }
.mobile-nav > ul { padding: 12px 24px 24px; }
.mobile-nav a, .mobile-nav__group-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 13px 0; color: var(--header-text); text-decoration: none; font-weight: 600; background: none; border: none; border-bottom: 1px solid var(--header-line); font-size: 1.02rem; text-align: left; }
/* Untermenü rollt auf statt hart umzuschalten (max-height-Animation). */
.mobile-nav__sub { display: block; max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding-left: 16px; }
.mobile-nav li.is-open .mobile-nav__sub { max-height: 480px; }
.mobile-nav__sub a { font-weight: 400; }
/* CTA unten im Panel: gleicher Randabstand wie das Menü, Luft nach unten;
   auf dem Handy volle Breite, ab Tablet zentriert mit begrenzter Breite
   (Real-Device-Feedback Dennis 21.09.). */
.mobile-nav__cta { padding: 10px 24px 28px; }
.mobile-nav a.btn { display: block; width: auto; max-width: 420px; margin: 0 auto; border-bottom: none; background: var(--c-cta-bg); color: var(--c-cta-text); padding: 13px 26px; text-align: center; }

@media (max-width: 980px) {
  .nav, .header__cta { display: none; }
  .header__burger { display: block; }
  .header__inner { min-height: 68px; }
  .header__logo img { width: 190px; }
  .header__logo-sub { padding-left: 32px; letter-spacing: 0.26em; font-size: 0.7rem; }
  .section { padding-block: 60px; }
}

/* ---------- USP-Leiste ---------- */
.usp-bar { border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
.usp-bar__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 22px; }
.usp-bar__item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; color: var(--c-heading); }
.usp-bar__icon { flex-shrink: 0; width: 26px; height: 26px; color: var(--c-accent); }
body .usp-bar__icon { color: var(--c-signal); }
@media (max-width: 980px) { .usp-bar__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .usp-bar__inner { grid-template-columns: 1fr; } }

/* ---------- Leistungs-Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.card { display: flex; flex-direction: column; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--c-accent); }
body .card:hover { border-color: var(--c-signal); }
.card__img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card__title { font-size: 1.18rem; margin: 0; }
.card__text { color: var(--c-text-muted); font-size: 0.97rem; margin: 0; flex-grow: 1; }
.card__more { font-weight: 600; color: var(--c-accent); }
body .card__more { color: var(--c-signal); }
.card:hover .card__more { text-decoration: underline; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Split-Sektion (Bild + Text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split ul.checklist { margin: 20px 0; display: grid; gap: 10px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-accent); -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M6.5 12.2 2.8 8.5l1.4-1.4 2.3 2.3 5.3-5.3 1.4 1.4z"/></svg>') center / contain no-repeat; mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M6.5 12.2 2.8 8.5l1.4-1.4 2.3 2.3 5.3-5.3 1.4 1.4z"/></svg>') center / contain no-repeat; }
body .checklist li::before { background: var(--c-signal); }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Zahlen / Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; }
.stat { text-align: center; }
.stat__value { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; font-family: var(--font-head); color: var(--c-accent); line-height: 1; }
body .stat__value { color: var(--c-signal); }
.stat__label { color: var(--c-text-muted); font-size: 0.95rem; margin-top: 8px; }
@media (max-width: 780px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Prozess-Schritte ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 48px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--c-accent); display: block; margin-bottom: 8px; }
body .step::before { color: var(--c-signal); }
.step__title { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--c-text-muted); font-size: 0.92rem; margin: 0; }
.step { border-top: 3px solid var(--c-line); }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ (Akkordeon, natives details/summary) ---------- */
.faq { max-width: 820px; margin-top: 40px; border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--c-heading); padding: 18px 44px 18px 0; position: relative; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--c-accent); line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:hover { color: var(--c-accent); }
body .faq__item summary::after, body .faq__item summary:hover { color: var(--c-signal); }
.faq__answer { padding: 0 44px 20px 0; color: var(--c-text-muted); max-width: 68ch; }
.faq__answer p { margin: 0; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--c-cta-bg); color: var(--c-cta-text); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 64px; flex-wrap: wrap; }
.cta-band h2 { color: inherit; margin: 0 0 6px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; opacity: 0.9; }
.cta-band .btn { background: #ffffff; color: var(--c-heading); }
.cta-band .btn:hover { background: var(--c-bg-alt); }

/* ---------- Kontakt-Sektion (vor dem Footer, Ziel von #kontakt) ---------- */
.kontakt { background: var(--c-bg); border-top: 1px solid var(--c-line); }
.kontakt .split { align-items: start; }
.kontakt__details { margin-top: 24px; display: grid; gap: 6px; font-weight: 600; }
.kontakt__details a { color: var(--c-heading); text-decoration: none; display: inline-block; padding-block: 4px; }
.kontakt__details a:hover { color: var(--c-accent); text-decoration: underline; }
.kontakt__form { display: grid; gap: 18px; background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 32px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-weight: 600; font-size: 0.95rem; color: var(--c-heading); }
.form-field input, .form-field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #ffffff; color: var(--c-text); width: 100%; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 0; }
.kontakt__form .btn { justify-self: start; border: none; }
.kontakt__hint { font-size: 0.85rem; color: var(--c-text-muted); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: var(--footer-text); font-size: 0.95rem; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1.6fr 1fr; gap: 40px; padding-block: 64px; }
.footer__logo { background: #ffffff; padding: 10px 14px; border-radius: var(--radius); width: fit-content; margin-bottom: 18px; }
.footer__heading { font-weight: 700; color: #ffffff; margin-bottom: 14px; }
.footer__col li { padding: 2px 0; }
.footer__col li a { display: inline-block; padding-block: 5px; }
.footer__list--cols { columns: 2; column-gap: 32px; }
.footer__list--cols li { break-inside: avoid; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 24px; }
@media (max-width: 980px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__inner { grid-template-columns: 1fr; } }


/* ============ portiert aus css/variante-b.css ============ */
/* Richtung B „Engineering“ — dunkler Vollbild-Hero, rote Signallinien, Tiles */

/* Anthrazit leicht ins Grüngrau des Logos getönt (statt neutralem Schwarz) */
.hero-b { position: relative; background: #1b1e19; color: #ffffff; overflow: hidden; }
.hero-b__bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0.38; }
/* Abdunklungs-Verlauf hinter der Textspalte — Kontrast auch über hellen Bildstellen (K3) */
.hero-b::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(27,30,25,0.95) 0%, rgba(27,30,25,0.78) 55%, rgba(27,30,25,0.30) 100%); }
.hero-b__inner { position: relative; z-index: 2; padding-block: 76px 92px; }
/* Auf dunklem Hero: Primär-CTA invertiert (Rot bleibt Akzent-, nicht Flächenfarbe) */
.hero-b .btn--primary { background: #ffffff; color: #1b1e19; }
.hero-b .btn--primary:hover { background: #c9ced2; }
.hero-b__kicker { display: inline-block; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; color: #e6a6ab; border-left: 4px solid var(--c-signal); padding-left: 14px; margin-bottom: 22px; }
.hero-b h1 { color: #ffffff; font-size: clamp(2.4rem, 5vw, 4rem); max-width: 18ch; }
.hero-b__text { font-size: 1.15rem; color: #c9ced2; max-width: 54ch; }
.hero-b__actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

/* Zahlen-Band direkt unter dem Hero — bewusst kompakt */
.statband { background: #1b1e19; color: #ffffff; border-top: 1px solid rgba(255,255,255,0.12); }
.statband .stats { margin-top: 0; padding-block: 26px; gap: 24px; }
body .statband .stat__value { color: #ffffff; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.statband .stat__value::after { content: ""; display: block; width: 34px; height: 3px; background: var(--c-signal); margin: 8px auto 0; }
.statband .stat__label { color: #a4aba1; font-size: 0.88rem; margin-top: 6px; }

/* Leistungen als Bild-Tiles mit Overlay */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,30,25,0) 30%, rgba(27,30,25,0.92) 100%); }
.tile__label { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: #ffffff; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.03em; }
.tile__label::after { content: ""; display: block; width: 34px; height: 3px; background: var(--c-signal); margin-top: 8px; transition: width 0.25s; }
.tile:hover .tile__label::after { width: 64px; }
@media (max-width: 980px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } }


/* ============ portiert aus css/variante-bd.css ============ */
/* Kombi-Variante BD — Kundenfeedback G1a:
   B als Basis (Engineering-Welt), aber Hero wie in D:
   helles Bildband + aufliegende weiße Box, darunter B's dunkles Zahlen-Band.
   Wird ZUSÄTZLICH zu variante-b.css geladen. */

/* Runde 8: CTA in Logo-Rot (mehr Gewicht als Anthrazit), Alt-Flächen warm-grüngrau
   statt Blaugrau (bindet an die Logo-Wortmarke #676E65), Überschriften breiter */
body {
  --c-cta-bg: #942026;
  --c-cta-hover: #7d1b20;
  --c-bg-alt: #f2f3ef;
  --c-line: #dee1da;
}
/* CTA-Band bleibt dunkel — Rot nur für Buttons, nicht als Großfläche */
body .cta-band { background: #1b1e19; }
.section__title { max-width: 32ch; }

.hero-bd__band { position: relative; height: min(58vh, 520px); }
.hero-bd__band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bd__boxwrap { position: relative; height: 100%; display: flex; align-items: center; }
.hero-bd__box { background: rgba(255, 255, 255, 0.9); max-width: 620px; padding: 36px 40px; box-shadow: var(--shadow); }
.hero-bd__kicker { display: inline-block; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; color: var(--c-signal); border-left: 4px solid var(--c-signal); padding-left: 14px; margin: 0 0 14px; }
.hero-bd__box h1 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); margin-bottom: 0.35em; }
.hero-bd__text { font-size: 1.05rem; color: var(--c-text-muted); margin-bottom: 0; }
.hero-bd__actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .hero-bd__band { height: auto; }
  .hero-bd__band > img { position: static; aspect-ratio: 16 / 9; height: auto; }
  .hero-bd__boxwrap { height: auto; padding: 0; }
  /* Unterkante 24px statt 8px (Real-Device-Befund Dennis 21.09.: unter den
     CTAs mindestens so viel Luft wie zwischen den Buttons). */
  .hero-bd__box { max-width: none; margin: 0; padding: 32px 24px 24px; box-shadow: none; background: #ffffff; }
  /* Buttons nebeneinander, solange sie passen; sonst umbrechen sie auf volle Breite. */
  .hero-bd__actions .btn { flex: 1 1 auto; text-align: center; padding-inline: 16px; }
}
@media (min-width: 561px) and (max-width: 860px) {
  .hero-bd__box { max-width: 480px; padding: 28px 30px; }
}


/* ============ portiert aus css/seiten-bd.css ============ */
/* ============================================================
   Unterseiten-Layouts in der BD-Welt (nach Design-Freigabe):
   Artikelhead, Artikel-Layout mit Sticky-TOC links (NN/g-Best-Practice),
   Wissens-Übersicht, Produktseite. Wird zusätzlich zu
   variante-b.css + variante-bd.css geladen.
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--c-text-muted); padding-block: 14px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--c-signal); text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin-inline: 6px; }

/* ---------- Artikelhead (Split: Text links, Bild rechts) ---------- */
.artikelhead { background: var(--c-bg-alt); border-bottom: 1px solid var(--c-line); }
.artikelhead__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding-block: 48px 56px; }
.artikelhead h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 0.35em; }
.artikelhead__lead { font-size: 1.1rem; color: var(--c-text-muted); max-width: 56ch; margin-bottom: 0; }
.artikelhead__meta { display: flex; gap: 22px; margin-top: 22px; font-size: 0.88rem; color: var(--c-text-muted); flex-wrap: wrap; }
.artikelhead__meta span { display: inline-flex; align-items: center; gap: 7px; }
.artikelhead__meta svg { width: 17px; height: 17px; }
.artikelhead__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
@media (max-width: 980px) { .artikelhead__inner { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 40px; } }

/* ---------- Artikel-Layout: Sticky-TOC links, Prosa rechts ---------- */
.artikel { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding-block: 64px 80px; align-items: start; }
.artikel__toc { position: sticky; top: 110px; border-left: 3px solid var(--c-line); padding-left: 20px; display: flex; flex-direction: column; gap: 2px; }
.artikel__toc-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-muted); margin: 0 0 10px; }
.artikel__toc a { display: block; padding: 6px 0; color: var(--c-text-muted); text-decoration: none; font-size: 0.93rem; line-height: 1.35; border-left: 3px solid transparent; margin-left: -23px; padding-left: 20px; }
.artikel__toc a:hover { color: var(--c-heading); }
.artikel__toc a.is-active { color: var(--c-signal); border-left-color: var(--c-signal); font-weight: 600; }
@media (max-width: 980px) {
  .artikel { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px 56px; }
  .artikel__toc { position: static; order: -1; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 20px; background: var(--c-bg-alt); }
  .artikel__toc a { margin-left: 0; padding-left: 0; border-left: none; }
}

/* ---------- Prosa ---------- */
.prosa { max-width: 720px; font-size: 1.04rem; }
.prosa > p:first-child { font-size: 1.12rem; color: var(--c-text); }
.prosa h2 { font-size: 1.5rem; margin: 1.8em 0 0.5em; }
.prosa h3 { font-size: 1.15rem; margin: 1.5em 0 0.4em; }
.prosa ul, .prosa ol { padding-left: 22px; margin: 0 0 1em; }
.prosa li { margin-bottom: 6px; }
.prosa a { color: var(--c-link); }

.figure { margin: 28px 0; }
.figure img { border-radius: var(--radius); width: 100%; }
.figure figcaption { font-size: 0.85rem; color: var(--c-text-muted); margin-top: 8px; }

.callout { border-left: 4px solid var(--c-signal); background: var(--c-bg-alt); padding: 18px 22px; margin: 28px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.callout b { display: block; margin-bottom: 4px; color: var(--c-heading); }
.callout p { margin: 0; color: var(--c-text-muted); }

.table-scroll { overflow-x: auto; margin: 28px 0; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.table-scroll th { text-align: left; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted); border-bottom: 2px solid var(--c-heading); padding: 10px 14px 8px; }
.table-scroll td { border-bottom: 1px solid var(--c-line); padding: 10px 14px; }
.table-scroll tbody tr:hover { background: var(--c-bg-alt); }

/* ---------- Artikel-Karten (Übersicht + Verwandte) ---------- */
.artikelgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.artikelcard { display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.artikelcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--c-signal); }
.artikelcard--static:hover { box-shadow: none; transform: none; border-color: var(--c-line); }
.artikelcard__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.artikelcard__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.artikelcard__cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-signal); }
.artikelcard__title { font-size: 1.12rem; margin: 0; }
.artikelcard__text { color: var(--c-text-muted); font-size: 0.94rem; margin: 0; flex-grow: 1; }
@media (min-width: 621px) { .cards--2col .artikelgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) { .artikelgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .artikelgrid { grid-template-columns: 1fr; } }

/* ---------- Wissens-Übersicht: kompakter Page-Hero + Filter ---------- */
.pagehero { background: var(--c-bg-alt); border-bottom: 1px solid var(--c-line); }
.pagehero__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; padding-block: 48px 56px; }
.pagehero h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 0.3em; }
.pagehero__lead { font-size: 1.08rem; color: var(--c-text-muted); max-width: 56ch; margin: 0; }
.pagehero__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
@media (max-width: 980px) { .pagehero__inner { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 40px; } }

.filterchips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.filterchip { font-size: 0.85rem; font-weight: 600; color: var(--c-heading); background: #ffffff; border: 1px solid var(--c-line); border-radius: 999px; padding: 9px 18px; text-decoration: none; }
.filterchip:hover { border-color: var(--c-signal); color: var(--c-signal); }
.filterchip.is-active { background: var(--c-heading); color: #ffffff; border-color: var(--c-heading); }

/* ---------- Produktseite ---------- */
.produkthero { background: var(--c-bg-alt); border-bottom: 1px solid var(--c-line); }
.produkthero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-block: 48px 60px; }
.produkthero .section__kicker { margin-bottom: 10px; }
.produkthero h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 0.35em; }
.produkthero__lead { font-size: 1.1rem; color: var(--c-text-muted); max-width: 54ch; }
.produkthero__actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.produkthero__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.produkthero__facts { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.produkthero__fact b { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--c-heading); text-transform: uppercase; }
.produkthero__fact span { font-size: 0.85rem; color: var(--c-text-muted); }
@media (max-width: 980px) { .produkthero__inner { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 44px; } }

/* Trustband mit Icons (Variante nach Rotax-Vorbild): dunkles Band,
   runde Icon-Chips + fette Zeile + Subline */
.trustband { background: #1b1e19; color: #ffffff; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.trustband__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 28px; padding-block: 24px; }
.trustband__item { display: flex; align-items: center; gap: 14px; }
.trustband__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); display: grid; place-items: center; color: #e0888e; }
.trustband__icon svg { width: 21px; height: 21px; }
.trustband__label { font-weight: 700; font-size: 0.98rem; line-height: 1.3; color: #ffffff; }
.trustband__sub { font-size: 0.85rem; color: #a4aba1; line-height: 1.35; }
@media (max-width: 980px) { .trustband__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trustband__inner { grid-template-columns: 1fr; } }

/* Merkmal-Grid (Produkt) */
.merkmale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; margin-top: 44px; }
.merkmal h3 { font-size: 1.05rem; margin-bottom: 6px; }
.merkmal h3::before { content: ""; display: block; width: 34px; height: 3px; background: var(--c-signal); margin-bottom: 12px; }
.merkmal p { color: var(--c-text-muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 900px) { .merkmale { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .merkmale { grid-template-columns: 1fr; } }

/* Bild-Text-Wechsel (Produkt-Sektionen) */
.wechsel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.wechsel + .wechsel { margin-top: 64px; }
.wechsel__img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 980px) { .wechsel { grid-template-columns: 1fr; gap: 28px; } .wechsel--flip .wechsel__img { order: -1; } }

/* ============ WP-spezifische Ergänzungen ============ */
/* Sticky-Header unter der Admin-Bar */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }
/* WP-Standard: Screenreader-Text */
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Custom-Logo-Bild (the_custom_logo) an Prototyp-Logo-Layout angleichen */
.header__logo .custom-logo-link { display: block; }
.header__logo img.custom-logo { width: 248px; height: auto; }
@media (max-width: 980px) { .header__logo img.custom-logo { width: 190px; } }
.footer__logo img.custom-logo { width: 248px; height: auto; }

/* ============ Runde Backend-Feedback: FAQ-Animation + Slots + Editor-Hilfen ============ */
/* FAQ: überblendendes Plus/Minus statt Textzeichen */
.faq__item summary::after { content: none; }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-right: 8px; }
.faq__toggle { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--c-signal); border-radius: 1px; transition: transform 0.25s ease, opacity 0.25s ease; }
.faq__toggle::before { width: 16px; height: 2.5px; }
.faq__toggle::after { width: 2.5px; height: 16px; }
details[open] .faq__toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
details[open] .faq__toggle::before { transform: translate(-50%, -50%) rotate(180deg); }
/* FAQ: Höhen-Animation (gesteuert von ui.js) */
.faq__answer { overflow: hidden; }

/* InnerBlocks-Slots (Hero/Split): kontrollierte Absatz-Abstände */
.hero-bd__extra, .split__extra { margin-top: 14px; }
.hero-bd__extra p, .split__extra p { margin: 0 0 0.8em; color: var(--c-text-muted); }
.hero-bd__extra p:last-child, .split__extra p:last-child { margin-bottom: 0; }
.hero-bd__extra ul, .split__extra ul { margin: 0 0 0.8em; padding-left: 20px; color: var(--c-text-muted); }
.hero-bd__extra li, .split__extra li { margin-bottom: 4px; }

/* Editor-Hilfen (erscheinen nur im Block-Editor über editor-preview.css) */
.tdb-placeholder { display: grid; place-items: center; background: var(--c-bg-alt); border: 1px dashed var(--c-line); color: var(--c-text-muted); font-size: 0.9rem; min-height: 120px; border-radius: var(--radius); padding: 16px; text-align: center; }
.tile .tdb-placeholder--fill { position: absolute; inset: 0; min-height: 0; }
.faq__item--editor { border-bottom: 1px solid var(--c-line); padding: 14px 0; }
.faq__summary-editor { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 1.05rem; color: var(--c-heading); }
.artikel--editor .artikel__toc { position: static; }

/* ---------- Megamenü-Positionierung (Fix) ---------- */
/* Statt position:fixed ohne top (scroll-/Safari-/Admin-Bar-Bug): absolut am
   Sticky-Header verankert — .nav__item wird dafür static, damit .header
   (position:sticky) der Bezugsrahmen ist. */
.nav__item--has-mega { position: static; }
.megamenu { position: absolute; top: 100%; left: 0; right: 0; }


/* ---------- Core-Tabellen im Prosa-/Sektions-Kontext = Prototyp-Design ---------- */
/* Gilt für ALLE wp-block-table (auch künftig vom Redakteur eingefügte). */
.wp-block-table { overflow-x: auto; margin: 28px 0; border: none; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 0.95rem; border: none; }
.wp-block-table th { text-align: left; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted); border: none; border-bottom: 2px solid var(--c-heading); padding: 10px 14px 8px; background: none; }
.wp-block-table td { border: none; border-bottom: 1px solid var(--c-line); padding: 10px 14px; }
.wp-block-table tbody tr:hover { background: var(--c-bg-alt); }
.wp-block-table figcaption { font-size: 0.85rem; color: var(--c-text-muted); margin-top: 8px; text-align: left; }

/* ---------- FAQ: doppeltes Minus fixen ---------- */
/* Das alte Text-Zeichen (+/–) hatte im [open]-Zustand höhere Spezifität als
   der content:none-Override — beide Zustände explizit abschalten. */
.faq__item summary::after,
.faq__item[open] summary::after { content: none; }

/* ---------- Header-Breite für die finale Navigation (am Dateiende, damit es
   die Grundregeln für Logo und Burger sicher überschreibt) ---------- */
/* Finale Navigation (6 Hauptpunkte + CTA) braucht mehr Breite als der
   1200er-Inhaltscontainer: Header bekommt einen breiteren Container, darunter
   wird kompakter gesetzt, unter 1220px übernimmt der Burger. */
.header__inner.container { max-width: 1360px; }
.nav__link { white-space: nowrap; }
/* Hub-Menüpunkt mit eigener Seite: Link + Chevron-Schalter (09.10.2026) */
.megamenu__all--top { grid-column: 1; grid-row: 1; justify-self: start; white-space: nowrap; margin: 0; font-size: 1.05rem; }
.megamenu__inner:has(> .megamenu__all--top) > .megamenu__col, .megamenu__inner:has(> .megamenu__all--top) > .megamenu__visual { grid-row: 2; }
.megamenu__inner:has(> .megamenu__all--top) { row-gap: 24px; }
.nav__item--has-mega { display: flex; align-items: stretch; }
.nav__link.nav__link--split { padding-right: 4px; }
.nav__toggle { display: flex; align-items: center; padding: 0 10px 0 2px; background: none; border: none; border-bottom: 3px solid transparent; color: var(--header-text); cursor: pointer; }
.nav__toggle:hover, .nav__item.is-open .nav__toggle { color: var(--c-signal); border-bottom-color: var(--c-signal); }
.nav__toggle:focus-visible { outline: 2px solid var(--c-signal); outline-offset: -4px; }
/* 6 Hauptpunkte mit kurzen Labels (08.10.2026): volle Größe passt ab 1401px nur mit etwas engeren Abständen */
.nav__list { gap: 6px; }
.header__inner { gap: 28px; }
@media (max-width: 1400px) {
  .header__logo img, .header__logo img.custom-logo { width: 210px; }
  .header__logo-sub { padding-left: 36px; letter-spacing: 0.28em; font-size: 0.72rem; }
  .header__inner { gap: 20px; }
  .nav__list { gap: 2px; }
  .nav__link { padding-inline: 9px; font-size: 0.95rem; }
  .header__cta { padding: 12px 18px; }
}
@media (max-width: 1220px) {
  .nav, .header__cta { display: none; }
  .header__burger { display: block; }
  .header__inner { min-height: 68px; }
  .header__logo img, .header__logo img.custom-logo { width: 190px; }
  .header__logo-sub { padding-left: 32px; letter-spacing: 0.26em; font-size: 0.7rem; }
}

/* ---------- Bildlegende (nummerierte Grafik, z. B. Reinraum-Schnittgrafik) ----------
   Einspaltig: Mehrspaltensatz zerteilt die Ziffernkreise am Spaltenumbruch.
   Ziffern als runde Marken wie in der Grafik, exakt mittig gesetzt. */
.prosa ol.bildlegende { list-style: none; counter-reset: legende; padding-left: 0; margin: 4px 0 1.6em; font-size: 0.95rem; }
.prosa ol.bildlegende li { counter-increment: legende; position: relative; padding-left: 40px; margin-bottom: 10px; line-height: 1.45; min-height: 26px; }
.prosa ol.bildlegende li::before { content: counter(legende); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--c-heading); background: var(--c-bg); color: var(--c-heading); font-weight: 700; font-size: 0.82rem; line-height: 1; font-variant-numeric: tabular-nums; display: grid; place-items: center; }
