/* ==========================================================================
   BLAUQUADRAT — Design System
   Basis-CI abgeleitet aus blauquadrat.de (Logo #003399, Sand #EAEACF,
   Creme #FEFEF0, Sandkante #C0C09F, Akzent #990000) — modernisiert.
   Keine Plugins, keine externen Requests. Alles hier drin.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SCHRIFTEN (self-hosted, DSGVO-konform — kein Google-Fonts-CDN)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS
   Zentrale Stellschrauben. Farbe ändern? Nur hier. Sonst nirgends.
   -------------------------------------------------------------------------- */
:root {
  /* Marke — Blau (aus dem Logo-Quadrat abgeleitet) */
  --bq-blue-900: #001B4D;
  --bq-blue-800: #002670;
  --bq-blue:     #003399;  /* Primär. Exakt die Logofarbe. */
  --bq-blue-600: #10409F;
  --bq-blue-400: #3059AC;
  --bq-blue-200: #C0CDE6;
  --bq-blue-100: #E0E6F3;

  /* Marke — Sand (aus dem Bestandslayout, deutlich aufgehellt:
     Original #EAEACF, dann #F0F0D8 — als vollflächiger Hintergrund lag
     beides zu schwer. Creme wandert mit nach oben, sonst wäre der
     Unterschied zwischen Sand- und Creme-Abschnitten nicht mehr lesbar. */
  --bq-cream:    #FFFFFB;
  --bq-sand-100: #FAFAF0;
  --bq-sand:     #F4F4E0;
  --bq-sand-300: #D8D7B8;
  --bq-sand-400: #C0C09F;

  /* Akzent — modernisiertes Rot der Bestandsseite (#990000) */
  --bq-accent:   #A8352A;
  --bq-accent-soft: #F3E2DF;

  /* Semantik */
  --bq-ink:      var(--bq-blue-900);
  --bq-ink-soft: #3C4A66;
  --bq-bg:       var(--bq-sand);
  --bq-surface:  var(--bq-cream);
  --bq-line:     var(--bq-sand-400);

  /* Typografie */
  --bq-font-display: 'Space Grotesk', 'Lucida Sans Unicode', system-ui, sans-serif;
  --bq-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fließende Typo-Skala (clamp = skaliert stufenlos mit dem Viewport) */
  --bq-fs-xs:   0.8125rem;
  --bq-fs-sm:   0.9375rem;
  --bq-fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --bq-fs-lg:   clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --bq-fs-xl:   clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --bq-fs-2xl:  clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --bq-fs-3xl:  clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --bq-fs-hero: clamp(2.5rem, 1.45rem + 3.9vw, 4.75rem);

  /* Raster & Abstände */
  --bq-maxw: 1240px;
  --bq-gutter: clamp(1.25rem, 5vw, 4rem);
  --bq-section-y: clamp(4.5rem, 10vw, 9rem);
  --bq-radius: 2px;        /* Quadrat-Sprache: fast keine Rundung */
  --bq-radius-lg: 4px;

  /* Bewegung */
  --bq-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bq-dur: 0.7s;

  /* Schatten — sehr zurückhaltend, warm getönt */
  --bq-shadow-sm: 0 1px 2px rgba(0, 27, 77, 0.06), 0 2px 8px rgba(0, 27, 77, 0.04);
  --bq-shadow:    0 2px 4px rgba(0, 27, 77, 0.05), 0 12px 32px rgba(0, 27, 77, 0.08);
  --bq-shadow-lg: 0 4px 8px rgba(0, 27, 77, 0.06), 0 24px 64px rgba(0, 27, 77, 0.12);
}

/* --------------------------------------------------------------------------
   3. BASIS
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sticky-Header-Höhe beim Ankersprung freihalten */
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body.bq {
  margin: 0;
  background-color: var(--bq-bg);
  color: var(--bq-ink);
  font-family: var(--bq-font-body);
  font-size: var(--bq-fs-base);
  line-height: 1.7;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bq h1, .bq h2, .bq h3, .bq h4,
.bq .bq-display {
  font-family: var(--bq-font-display);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--bq-blue-900);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

.bq p { margin: 0 0 1.15em; max-width: 68ch; }
.bq p:last-child { margin-bottom: 0; }
.bq strong { font-weight: 600; color: var(--bq-blue-900); }
.bq img { max-width: 100%; height: auto; display: block; }

.bq a:not(.bq-btn) { color: var(--bq-blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.bq a:not(.bq-btn):hover { color: var(--bq-accent); }

/* Sichtbarer Fokus — Pflicht für Tastaturbedienung (BITV/WCAG) */
.bq :focus-visible {
  outline: 3px solid var(--bq-blue);
  outline-offset: 3px;
  border-radius: var(--bq-radius);
}

/* Screenreader-only + Skip-Link */
.bq-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bq-skip {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: 2000; background: var(--bq-blue); color: #fff;
  padding: 0.85rem 1.5rem; font-weight: 600; text-decoration: none;
  transition: transform 0.2s var(--bq-ease);
}
.bq-skip:focus { transform: translate(-50%, 0); color: #fff; }

/* --------------------------------------------------------------------------
   4. LAYOUT-PRIMITIVE
   -------------------------------------------------------------------------- */
.bq-wrap {
  width: 100%;
  max-width: var(--bq-maxw);
  margin-inline: auto;
  padding-inline: var(--bq-gutter);
}
.bq-section { padding-block: var(--bq-section-y); position: relative; }
.bq-section--cream  { background: var(--bq-surface); }
.bq-section--sand   { background: var(--bq-sand); }
.bq-section--ink    { background: var(--bq-blue-900); color: var(--bq-blue-100); }
.bq-section--ink h2, .bq-section--ink h3 { color: #fff; }

/* Feine Trennlinie im Sandton statt harter Kante */
.bq-section + .bq-section { border-top: 1px solid rgba(192, 192, 159, 0.45); }
.bq-section--ink + .bq-section,
.bq-section + .bq-section--ink { border-top: 0; }

/* Überschriften-Utilities.
   Diese Klassen werden in Elementor unter „Erweitert → CSS-Klassen“ vergeben.
   Zeilenhöhe und Schriftschnitt stehen hier mit, weil die Durchreich-Regel
   (.bq-el) sie vom Wrapper an das innere Element weitergibt. */
.bq-h2,
.bq-h3 {
  font-family: var(--bq-font-display);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--bq-blue-900);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
.bq-h2 { font-size: var(--bq-fs-3xl); max-width: 20ch; }
.bq-h3 { font-size: var(--bq-fs-2xl); max-width: 24ch; }
.bq-section--ink .bq-h2,
.bq-section--ink .bq-h3 { color: #fff; }

/* Abschnittsmarke: das Quadrat als wiederkehrendes Leitmotiv */
.bq-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--bq-font-display);
  font-size: var(--bq-fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bq-blue);
  margin-bottom: 1.4rem;
}
.bq-eyebrow::before {
  content: ''; width: 0.6rem; height: 0.6rem;
  background: var(--bq-blue); flex: none;
}
.bq-section--ink .bq-eyebrow { color: var(--bq-blue-200); }
.bq-section--ink .bq-eyebrow::before { background: var(--bq-blue-200); }

.bq-lead {
  font-size: var(--bq-fs-lg);
  line-height: 1.6;
  color: var(--bq-ink-soft);
  max-width: 62ch;
}
.bq-section--ink .bq-lead { color: var(--bq-blue-200); }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.bq-btn {
  --_bg: var(--bq-blue);
  --_fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.55rem;
  background: var(--_bg); color: var(--_fg);
  font-family: var(--bq-font-display);
  font-size: var(--bq-fs-sm); font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid var(--_bg); border-radius: var(--bq-radius);
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform 0.25s var(--bq-ease), box-shadow 0.25s var(--bq-ease);
}
/* Füllanimation von unten — ersetzt den plumpen Farbwechsel */
.bq-btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--bq-blue-900);
  transform: translateY(101%);
  transition: transform 0.4s var(--bq-ease);
}
.bq-btn:hover, .bq-btn:focus-visible {
  color: var(--_fg); transform: translateY(-2px); box-shadow: var(--bq-shadow);
}
.bq-btn:hover::after, .bq-btn:focus-visible::after { transform: translateY(0); }
.bq-btn:active { transform: translateY(0); }

/* SCHUTZREGEL — nicht entfernen.
   Kontextregeln wie ".bq a" oder ".bq-nav a" haben eine höhere Spezifität als
   ".bq-btn" und würden sonst die Buttonfarbe überschreiben (weißer Text wurde
   dadurch blau auf blau = unsichtbar). Diese Selektoren liegen darüber. */
.bq a.bq-btn, .bq button.bq-btn { color: var(--_fg); text-decoration: none; }
.bq a.bq-btn:hover, .bq a.bq-btn:focus-visible { color: var(--_fg); }

.bq-btn .bq-btn__arrow { transition: transform 0.3s var(--bq-ease); flex: none; }
.bq-btn:hover .bq-btn__arrow { transform: translateX(4px); }

.bq-btn--ghost {
  --_bg: transparent; --_fg: var(--bq-blue);
  border-color: var(--bq-blue);
}
.bq-btn--ghost::after { background: var(--bq-blue); }
.bq-btn--ghost:hover, .bq-btn--ghost:focus-visible { --_fg: #fff; }

.bq-btn--light {
  --_bg: var(--bq-cream); --_fg: var(--bq-blue-900);
  border-color: var(--bq-cream);
}
.bq-btn--light::after { background: #fff; }
.bq-btn--light:hover, .bq-btn--light:focus-visible { --_fg: var(--bq-blue-900); }

/* --------------------------------------------------------------------------
   6. HEADER (sticky, schrumpft beim Scrollen) + Lesefortschritt
   -------------------------------------------------------------------------- */
.bq-header {
  position: sticky; top: 0; z-index: 900;
  /* Muss dem Wert von --bq-sand entsprechen (rgba braucht die Zahlen
     einzeln). Wird der Token geändert, diese Zeile mit anpassen. */
  background: rgba(244, 244, 224, 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--bq-ease), background 0.3s var(--bq-ease);
}
.bq-header.is-stuck {
  border-bottom-color: var(--bq-sand-400);
  background: rgba(255, 255, 251, 0.9);
}
.bq-header__inner {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 5.25rem;
  transition: min-height 0.3s var(--bq-ease);
}
.bq-header.is-stuck .bq-header__inner { min-height: 4.25rem; }

/* Wortmarke: das Quadrat + Schriftzug, skaliert mit */
.bq-logo {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; margin-right: auto; flex: none;
}
.bq-logo__mark {
  width: 2.25rem; height: 2.25rem; background: var(--bq-blue);
  display: grid; place-items: center; flex: none;
  transition: width 0.3s var(--bq-ease), height 0.3s var(--bq-ease), transform 0.5s var(--bq-ease);
}
.bq-logo__mark::after {
  content: ''; width: 0.7rem; height: 0.7rem; border: 2px solid var(--bq-cream);
  transition: transform 0.5s var(--bq-ease);
}
.bq-logo:hover .bq-logo__mark { transform: rotate(90deg); }
.bq-header.is-stuck .bq-logo__mark { width: 1.9rem; height: 1.9rem; }
.bq-logo__text {
  font-family: var(--bq-font-display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0.04em;
  color: var(--bq-blue-900); text-transform: uppercase;
}

.bq-nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.9rem); }
.bq-nav a:not(.bq-btn) {
  position: relative; font-size: var(--bq-fs-sm); font-weight: 500;
  color: var(--bq-ink); text-decoration: none; padding-block: 0.35rem;
  white-space: nowrap;
}
.bq-nav a:not(.bq-btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--bq-blue); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--bq-ease);
}
.bq-nav a:hover::after,
.bq-nav a:focus-visible::after,
.bq-nav a[aria-current='true']::after { transform: scaleX(1); transform-origin: left; }
.bq-nav a[aria-current='true'] { color: var(--bq-blue); font-weight: 600; }

/* Der CTA in der Navigation wird am Desktop ausgeblendet — dort steht der CTA
   bereits rechts im Header. */
@media (min-width: 961px) { .bq-nav > .bq-btn { display: none; } }

.bq-header .bq-btn { padding: 0.7rem 1.3rem; flex: none; }

/* Lesefortschritt — dünner Balken ganz oben */
.bq-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--bq-blue); transform: scaleX(var(--bq-scroll, 0));
  transform-origin: left; pointer-events: none;
}

/* Mobile-Navigation */
.bq-burger {
  display: none; width: 2.75rem; height: 2.75rem; flex: none;
  background: none; border: 1px solid var(--bq-sand-400); border-radius: var(--bq-radius);
  cursor: pointer; padding: 0; place-items: center;
}
.bq-burger span {
  display: block; width: 1.1rem; height: 2px; background: var(--bq-blue-900);
  position: relative; transition: background 0.2s var(--bq-ease);
}
.bq-burger span::before, .bq-burger span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--bq-blue-900); transition: transform 0.3s var(--bq-ease);
}
.bq-burger span::before { top: -6px; }
.bq-burger span::after { top: 6px; }
.bq-burger[aria-expanded='true'] span { background: transparent; }
.bq-burger[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.bq-burger[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .bq-burger { display: grid; }
  .bq-header .bq-header__inner > .bq-btn { display: none; }
  .bq-nav {
    position: fixed; inset: 5.25rem 0 auto; z-index: 899;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bq-cream); border-bottom: 1px solid var(--bq-sand-400);
    padding: 0.5rem var(--bq-gutter) 1.75rem;
    box-shadow: var(--bq-shadow-lg);
    clip-path: inset(0 0 100% 0); opacity: 0;
    transition: clip-path 0.4s var(--bq-ease), opacity 0.3s var(--bq-ease);
  }
  .bq-nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; }
  .bq-nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--bq-sand); font-size: 1.0625rem; }
  .bq-nav a::after { display: none; }
  .bq-nav .bq-btn { margin-top: 1.25rem; justify-content: center; }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.bq-hero {
  position: relative; overflow: hidden;
  background: var(--bq-sand);
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 9vw, 8rem);
}
/* Feines Quadratraster als Grundtextur — reines CSS, kein Bild */
.bq-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 51, 153, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 51, 153, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, #000 20%, transparent 78%);
}
.bq-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.bq-hero__title {
  font-size: var(--bq-fs-hero);
  /* Zeilenhöhe MUSS hier stehen: in Elementor sitzt die Klasse auf dem
     Widget-Rahmen und wird über .bq-el an die Überschrift weitergereicht.
     Ohne diesen Wert erbt sie die 1.7 des Fließtexts. */
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
/* Zweite Zeile im Markenblau absetzen */
body.bq .bq-hero__title .bq-hl { color: var(--bq-blue); display: block; }
.bq-hero__lead { font-size: var(--bq-fs-lg); max-width: 46ch; color: var(--bq-ink-soft); }
.bq-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }
/* Buttongruppe. Wird auch innerhalb eines Elementor-HTML-Widgets gebraucht,
   weil dort alle Buttons in EINEM Widget stecken und sonst untereinander
   umbrechen statt nebeneinander zu stehen. */
.bq-btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* Vertrauensanker unter dem CTA */
.bq-hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem;
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid var(--bq-sand-400);
  font-size: var(--bq-fs-sm); color: var(--bq-ink-soft);
}
.bq-hero__meta span { display: inline-flex; align-items: center; gap: 0.55rem; }
.bq-hero__meta span::before {
  content: ''; width: 0.4rem; height: 0.4rem; background: var(--bq-accent); flex: none;
}

/* Bildbühne: Foto + versetztes Quadrat dahinter */
.bq-hero__media { position: relative; }
.bq-hero__media::before {
  content: ''; position: absolute;
  inset: auto -1.75rem -1.75rem auto;
  width: 58%; aspect-ratio: 1; background: var(--bq-blue);
  z-index: 0;
}
.bq-hero__figure {
  position: relative; z-index: 1; margin: 0;
  aspect-ratio: 4 / 5;
  background: var(--bq-cream);
  box-shadow: var(--bq-shadow-lg);
  overflow: hidden;
}
.bq-hero__figure img { width: 100%; height: 100%; object-fit: cover; }
/* Tageslicht-Look: leichte Aufhellung + Wärme auf dem Foto */
.bq-hero__figure--daylight img { filter: brightness(1.04) saturate(1.03) contrast(1.02); }

@media (max-width: 860px) {
  .bq-hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .bq-hero__media { max-width: 26rem; }
  .bq-hero__lead, .bq-hero__title { max-width: none; }
}

/* --------------------------------------------------------------------------
   8. KERNPFEILER (3er-Grid)
   -------------------------------------------------------------------------- */
.bq-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.bq-pillar {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bq-surface);
  border: 1px solid var(--bq-sand-400);
  border-radius: var(--bq-radius);
  overflow: hidden;
  transition: transform 0.4s var(--bq-ease), box-shadow 0.4s var(--bq-ease),
              border-color 0.4s var(--bq-ease);
}
/* Blauer Balken fährt beim Hover von links ein */
.bq-pillar::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--bq-blue); transform: scaleY(0); transform-origin: top;
  transition: transform 0.45s var(--bq-ease);
}
.bq-pillar:hover, .bq-pillar:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--bq-shadow);
  border-color: var(--bq-blue-200);
}
.bq-pillar:hover::before, .bq-pillar:focus-within::before { transform: scaleY(1); }

.bq-pillar__num {
  font-family: var(--bq-font-display); font-weight: 700;
  font-size: 3.25rem; line-height: 1; letter-spacing: -0.04em;
  color: var(--bq-blue-200);
  margin-bottom: 1.1rem;
  transition: color 0.4s var(--bq-ease);
}
.bq-pillar:hover .bq-pillar__num { color: var(--bq-blue); }
.bq-pillar__title { font-size: var(--bq-fs-xl); line-height: 1.12; font-weight: 700; margin-bottom: 0.8rem; }
.bq-pillar__claim {
  display: inline-block; align-self: flex-start;
  margin-bottom: 1.1rem; padding: 0.3rem 0.7rem;
  background: var(--bq-accent-soft); color: var(--bq-accent);
  font-family: var(--bq-font-display); font-size: var(--bq-fs-xs);
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.bq-pillar p { font-size: var(--bq-fs-sm); line-height: 1.75; color: var(--bq-ink-soft); }

/* --------------------------------------------------------------------------
   9. CORE STORY — Biografie als Kausalkette (Timeline)
   -------------------------------------------------------------------------- */
.bq-story__grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.bq-story__intro { position: sticky; top: 7.5rem; }
@media (max-width: 900px) {
  .bq-story__grid { grid-template-columns: 1fr; }
  .bq-story__intro { position: static; }
}

.bq-chain { position: relative; list-style: none; margin: 0; padding: 0 0 0 3.25rem; }
/* Die Linie der Kausalkette — wächst beim Scrollen mit */
.bq-chain::before {
  content: ''; position: absolute; left: 0.5rem; top: 0.75rem; bottom: 0.75rem;
  width: 2px; background: var(--bq-sand-400);
}
.bq-chain::after {
  content: ''; position: absolute; left: 0.5rem; top: 0.75rem;
  width: 2px; background: var(--bq-blue);
  height: calc(var(--bq-chain-progress, 0) * (100% - 1.5rem));
  transition: height 0.15s linear;
}
.bq-chain__item { position: relative; padding-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.bq-chain__item:last-child { padding-bottom: 0; }
/* Der Knoten: ein Quadrat, kein Punkt */
.bq-chain__item::before {
  content: ''; position: absolute; left: -3.25rem; top: 0.45rem;
  width: 1.1rem; height: 1.1rem;
  background: var(--bq-sand); border: 2px solid var(--bq-sand-400);
  transition: background 0.4s var(--bq-ease), border-color 0.4s var(--bq-ease),
              transform 0.4s var(--bq-ease);
}
.bq-chain__item.is-visible::before {
  background: var(--bq-blue); border-color: var(--bq-blue); transform: rotate(45deg);
}
.bq-chain__era {
  font-family: var(--bq-font-display); font-size: var(--bq-fs-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--bq-accent);
  display: block; margin-bottom: 0.4rem;
}
.bq-chain__title { font-size: var(--bq-fs-xl); line-height: 1.15; font-weight: 700; margin-bottom: 0.6rem; }
.bq-chain__item p { font-size: var(--bq-fs-sm); line-height: 1.75; color: var(--bq-ink-soft); }
/* Die Schlussfolgerung der Kette hervorheben */
.bq-chain__item--result .bq-chain__title { color: var(--bq-blue); }
.bq-chain__item--result p {
  padding: 1.1rem 1.35rem; background: var(--bq-cream);
  border-left: 3px solid var(--bq-blue); color: var(--bq-ink);
  font-size: var(--bq-fs-base);
}

/* --------------------------------------------------------------------------
   10. ANGEBOT — Power-Workshop
   -------------------------------------------------------------------------- */
.bq-offer {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--bq-surface);
  border: 1px solid var(--bq-sand-400);
  border-radius: var(--bq-radius);
  overflow: hidden;
  box-shadow: var(--bq-shadow);
}
@media (max-width: 900px) { .bq-offer { grid-template-columns: 1fr; } }

.bq-offer__main { padding: clamp(1.75rem, 4vw, 3.25rem); }
.bq-offer__title { font-size: var(--bq-fs-2xl); line-height: 1.07; font-weight: 700; margin-bottom: 0.5rem; }
.bq-offer__sub { font-size: var(--bq-fs-lg); line-height: 1.35; color: var(--bq-blue); margin-bottom: 1.75rem; }

.bq-includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.bq-includes li {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.9rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--bq-sand);
  font-size: var(--bq-fs-sm); line-height: 1.6;
}
.bq-includes li:last-child { border-bottom: 0; }
/* Haken als Inline-SVG via Maske — kein Icon-Font, kein Plugin */
.bq-includes li::before {
  content: ''; width: 1.15rem; height: 1.15rem; margin-top: 0.22rem;
  background: var(--bq-blue);
  -webkit-mask: var(--bq-check) center / contain no-repeat;
  mask: var(--bq-check) center / contain no-repeat;
  flex: none;
}
.bq-includes b { display: block; font-weight: 600; color: var(--bq-blue-900); }

:root {
  --bq-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 10.5l5 5L18 4.5' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E");
}

/* Seitenpanel in Markenblau */
.bq-offer__aside {
  padding: clamp(1.75rem, 4vw, 3.25rem);
  background: var(--bq-blue-900); color: var(--bq-blue-100);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.bq-offer__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.bq-offer__facts dt,
.bq-offer__facts .bq-k {
  font-family: var(--bq-font-display); font-size: var(--bq-fs-xs); font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--bq-blue-200);
  margin-bottom: 0.2rem;
}
.bq-offer__facts .bq-v {
  font-family: var(--bq-font-display); font-size: var(--bq-fs-lg);
  font-weight: 700; color: #fff; line-height: 1.25;
}
.bq-offer__aside .bq-btn { margin-top: auto; justify-content: center; }
.bq-offer__note { font-size: var(--bq-fs-xs); color: var(--bq-blue-200); line-height: 1.6; }

/* --------------------------------------------------------------------------
   11. VIDEO — Fassade, lädt YouTube erst nach Klick (DSGVO + Performance)
   -------------------------------------------------------------------------- */
.bq-video {
  position: relative; margin-top: clamp(2.5rem, 5vw, 4rem);
  aspect-ratio: 16 / 9; width: 100%;
  background: var(--bq-blue-900);
  border-radius: var(--bq-radius-lg); overflow: hidden;
  box-shadow: var(--bq-shadow-lg);
}
.bq-video img, .bq-video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border: 0;
}
.bq-video__btn {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center; gap: 1rem; align-content: center;
  background: linear-gradient(to top, rgba(0, 27, 77, 0.72), rgba(0, 27, 77, 0.15));
  border: 0; cursor: pointer; color: #fff;
  font-family: var(--bq-font-display); font-size: var(--bq-fs-sm); font-weight: 600;
  transition: background 0.35s var(--bq-ease);
}
.bq-video__btn:hover { background: linear-gradient(to top, rgba(0, 27, 77, 0.82), rgba(0, 27, 77, 0.3)); }
.bq-video__play {
  position: relative;
  width: 5rem; height: 5rem; background: var(--bq-cream);
  display: grid; place-items: center;
  transition: transform 0.4s var(--bq-ease), background 0.3s var(--bq-ease);
}
.bq-video__play::after {
  content: ''; width: 0; height: 0; margin-left: 5px;
  border-left: 1.35rem solid var(--bq-blue);
  border-block: 0.85rem solid transparent;
}
.bq-video__btn:hover .bq-video__play { transform: scale(1.08) rotate(90deg); }
/* Pulsring um den Play-Button */
.bq-video__play::before {
  content: ''; position: absolute; inset: 0;
  border: 2px solid rgba(254, 254, 240, 0.55);
  animation: bq-pulse 2.6s var(--bq-ease) infinite;
}
@keyframes bq-pulse {
  0%   { transform: scale(1);    opacity: 0.8; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.bq-video__hint { font-size: var(--bq-fs-xs); font-weight: 400; max-width: 34ch; text-align: center; opacity: 0.9; }

/* --------------------------------------------------------------------------
   12. FAQ — natives <details>, komplett ohne JavaScript
   -------------------------------------------------------------------------- */
.bq-faq { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--bq-sand-400); }
.bq-faq details { border-bottom: 1px solid var(--bq-sand-400); }
.bq-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--bq-font-display); font-size: var(--bq-fs-lg); font-weight: 600;
  color: var(--bq-blue-900);
  transition: color 0.25s var(--bq-ease);
}
.bq-faq summary::-webkit-details-marker { display: none; }
.bq-faq summary:hover { color: var(--bq-blue); }
/* Plus-Zeichen aus zwei Strichen, dreht zum Minus */
.bq-faq summary::after {
  content: ''; flex: none; width: 1.1rem; height: 1.1rem;
  background:
    linear-gradient(var(--bq-blue), var(--bq-blue)) center / 100% 2px no-repeat,
    linear-gradient(var(--bq-blue), var(--bq-blue)) center / 2px 100% no-repeat;
  transition: transform 0.35s var(--bq-ease);
}
.bq-faq details[open] summary::after { transform: rotate(135deg); }
.bq-faq__answer { overflow: hidden; }
.bq-faq__answer p {
  padding-bottom: 1.5rem; font-size: var(--bq-fs-sm); line-height: 1.75;
  color: var(--bq-ink-soft); max-width: 72ch;
}
.bq-faq details[open] .bq-faq__answer { animation: bq-reveal 0.4s var(--bq-ease); }
@keyframes bq-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   13. KONTAKT
   -------------------------------------------------------------------------- */
.bq-contact__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
@media (max-width: 860px) { .bq-contact__grid { grid-template-columns: 1fr; } }

.bq-contact__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.35rem; }
.bq-contact__list a { color: #fff; text-decoration: none; }
.bq-contact__list a:hover { text-decoration: underline; text-decoration-color: var(--bq-blue-200); }
.bq-contact__k {
  font-family: var(--bq-font-display); font-size: var(--bq-fs-xs); font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--bq-blue-200);
  display: block; margin-bottom: 0.25rem;
}
.bq-contact__v { font-size: var(--bq-fs-lg); color: #fff; font-weight: 500; }

.bq-contact__card {
  background: var(--bq-cream); color: var(--bq-ink);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--bq-radius); box-shadow: var(--bq-shadow-lg);
}
.bq-contact__card h3, .bq-contact__card .bq-h3 { font-size: var(--bq-fs-xl); line-height: 1.12; }
.bq-contact__steps { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
.bq-contact__steps li {
  display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.9rem;
  align-items: start; font-size: var(--bq-fs-sm); line-height: 1.6;
  counter-increment: s;
}
.bq-contact__steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--bq-font-display); font-size: var(--bq-fs-xs); font-weight: 700;
  color: var(--bq-blue); background: var(--bq-blue-100);
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.bq-footer {
  background: var(--bq-blue-900); color: var(--bq-blue-200);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  font-size: var(--bq-fs-sm);
}
.bq-footer a { color: var(--bq-blue-200); text-decoration: none; }
.bq-footer a:hover { color: #fff; text-decoration: underline; }
.bq-footer__top {
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
  align-items: start;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(192, 205, 230, 0.2);
}
.bq-footer__brand { display: flex; align-items: center; gap: 0.7rem; }
.bq-footer__brand .bq-logo__mark { background: var(--bq-cream); }
.bq-footer__brand .bq-logo__mark::after { border-color: var(--bq-blue); }
.bq-footer__brand .bq-logo__text { color: #fff; }
.bq-footer__links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.bq-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.75rem; font-size: var(--bq-fs-xs); opacity: 0.75;
}

/* --------------------------------------------------------------------------
   15. SCROLL-ANIMATIONEN
   Elemente mit der Klasse .bq-reveal starten unsichtbar und fahren ein,
   sobald sie in den Viewport kommen (siehe bq-motion.js).
   Richtungsvarianten: .bq-reveal--left, .bq-reveal--right, .bq-reveal--scale
   Auf einem Elternelement staffelt .bq-stagger die Kinder nacheinander.
   Diese Klassen lassen sich in Elementor unter
   „Erweitert → CSS-Klassen“ an jedes Widget hängen.
   -------------------------------------------------------------------------- */
/* WICHTIG: Der Startzustand (unsichtbar) gilt NUR, wenn JavaScript nachweislich
   läuft (<html class="bq-js">, gesetzt durch das Inline-Snippet im <head>).
   Ohne JS — oder bei einem JS-Fehler — bleibt die Seite vollständig sichtbar.
   Niemals Inhalt verstecken, dessen Wiederauftauchen von Skripten abhängt. */
.bq-js .bq-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--bq-dur) var(--bq-ease) var(--bq-delay, 0s),
    transform var(--bq-dur) var(--bq-ease) var(--bq-delay, 0s);
  will-change: opacity, transform;
}
.bq-js .bq-reveal.is-visible { opacity: 1; transform: none; will-change: auto; }

.bq-js .bq-reveal--left  { transform: translateX(-30px); }
.bq-js .bq-reveal--right { transform: translateX(30px); }
.bq-js .bq-reveal--scale { transform: scale(0.94); }

/* Zeilenweiser Auftritt der Hero-Headline */
.bq-hero__title .bq-line { display: block; overflow: hidden; }
.bq-js .bq-hero__title .bq-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--bq-ease) var(--bq-delay, 0s);
}
.bq-hero.is-ready .bq-hero__title .bq-line > span { transform: translateY(0); }

/* Dekoratives, sanft schwebendes Quadrat */
.bq-float {
  position: absolute; pointer-events: none;
  border: 2px solid var(--bq-blue); opacity: 0.22;
  animation: bq-float 13s ease-in-out infinite;
}
@keyframes bq-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(0, -26px, 0) rotate(45deg); }
}
.bq-float--a { width: 7rem;  height: 7rem;  top: 11%; right: 3%; }
.bq-float--b { width: 3.5rem; height: 3.5rem; bottom: 14%; left: 4%; animation-delay: -5s; }

/* --------------------------------------------------------------------------
   16. BEWEGUNG REDUZIEREN
   Respektiert die Systemeinstellung. Inhalt bleibt immer sichtbar.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bq *, .bq *::before, .bq *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bq-reveal { opacity: 1 !important; transform: none !important; }
  .bq-hero__title .bq-line > span { transform: none !important; }
  .bq-float { display: none; }
  .bq-chain::after { height: 100% !important; }
}

/* --------------------------------------------------------------------------
   17. DRUCK
   -------------------------------------------------------------------------- */
@media print {
  .bq-header, .bq-video, .bq-float, .bq-skip { display: none !important; }
  .bq { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .bq-section { padding-block: 1.5rem; break-inside: avoid; }
  .bq-reveal { opacity: 1 !important; transform: none !important; }
  .bq a::after { content: ' (' attr(href) ')'; font-size: 9pt; }
}

/* ==========================================================================
   18. WORDPRESS- UND ELEMENTOR-ANPASSUNGEN
   Die Abschnitte oben beschreiben das reine Markup. WordPress und Elementor
   erzeugen zusätzliche Hüllen (<ul>/<li> in Menüs, Widget-Wrapper in
   Elementor). Dieser Block bringt beides auf denselben Stand — damit sieht
   die WordPress-Seite exakt so aus wie die statische Vorschau.
   ========================================================================== */

/* --- Navigationsmenüs aus WordPress ------------------------------------- */
.bq-nav { --bq-nav-gap: clamp(0.75rem, 2vw, 1.9rem); }
.bq-nav__list {
  display: flex; align-items: center; gap: var(--bq-nav-gap);
  list-style: none; margin: 0; padding: 0;
}
.bq-nav__list li { margin: 0; }

.bq-footer__list {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem;
  list-style: none; margin: 0; padding: 0;
}
.bq-footer__list li { margin: 0; }

@media (max-width: 960px) {
  .bq-nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
}

/* --- Elementor-Container neutralisieren ---------------------------------
   Elementor gibt jedem Container eigene Breiten und Innenabstände. Die
   Abschnittsrhythmik kommt aber aus .bq-section / .bq-wrap, sonst entstehen
   doppelte Abstände. */
.bq .e-con.bq-section,
.bq .e-con.bq-hero {
  --padding-block-start: 0; --padding-block-end: 0;
  --padding-inline-start: 0; --padding-inline-end: 0;
  --content-width: 100%;
  max-width: none; width: 100%;
}
.bq .e-con.bq-wrap {
  --content-width: 100%;
  --padding-inline-start: var(--bq-gutter);
  --padding-inline-end: var(--bq-gutter);
  --padding-block-start: 0; --padding-block-end: 0;
  max-width: var(--bq-maxw); width: 100%; margin-inline: auto;
}
/* Elementor setzt auf Containern display:flex. Dort, wo das Design ein Raster
   braucht, muss das wieder überschrieben werden. */
.bq .e-con.bq-pillars      { display: grid; }
.bq .e-con.bq-offer        { display: grid; }
.bq .e-con.bq-hero__grid   { display: grid; }
.bq .e-con.bq-story__grid  { display: grid; }
.bq .e-con.bq-contact__grid{ display: grid; }

/* Elementor-Widgets bringen eigene Außenabstände mit. */
.bq .elementor-widget { margin-bottom: 0; }
.bq .elementor-widget-container > :last-child { margin-bottom: 0; }

/* --- Elementor-Standardfarben neutralisieren -----------------------------
   Elementor liefert ein "Global Kit" mit eigenen Farben aus (standardmäßig
   ein helles Blau) und bindet es NACH diesem Stylesheet ein. Bei gleicher
   Spezifität gewinnt das zuletzt geladene — deshalb stehen hier bewusst
   etwas spezifischere Selektoren (body.bq … statt .bq …).
   Ohne diesen Block erscheinen alle Überschriften in Elementor-Hellblau. */
body.bq :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--bq-font-display);
  font-weight: 700;
  color: var(--bq-blue-900);
  letter-spacing: -0.025em;
  line-height: 1.07;
}
body.bq .bq-section--ink :is(h1, h2, h3, h4, h5, h6) { color: #fff; }

/* --- Typo-Klassen auf Elementor-Widgets durchreichen ---------------------
   Eine in Elementor vergebene CSS-Klasse landet auf dem WIDGET-RAHMEN, nicht
   auf der Überschrift darin. Widgets, die zusätzlich die Klasse "bq-el"
   tragen, geben ihre Schrifteinstellungen deshalb an das innere Element
   weiter. Nur für einzeilige Texte verwenden (Überschriften, Labels) —
   nicht für Fließtext mit mehreren Absätzen.

   Beide Varianten nötig: Elementor rendert je nach Version mit oder ohne
   die Zwischenebene .elementor-widget-container. Nur direkte Kinder, damit
   Spans INNERHALB einer Überschrift (z. B. .bq-hl) ihre eigene Farbe behalten. */
.bq .bq-el > :is(h1, h2, h3, h4, h5, h6, p, div, span),
.bq .bq-el > .elementor-widget-container > :is(h1, h2, h3, h4, h5, h6, p, div, span) {
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0;
  /* Warum !important ausgerechnet hier:
     Elementor erzeugt aus den globalen Kit-Farben die Regel
       .elementor-widget-heading .elementor-heading-title { color: … }
     und spielt sie im Editor zusätzlich höher gescopt aus — dort gewinnt sie
     gegen jede vertretbare Spezifität. Sichtbare Folge war blauer Text auf
     blauem Grund im Bearbeitungsmodus.
     Die Farbe gehört in diesem Projekt bewusst dem Theme, nicht dem
     Seitenbaukasten: Die Bausteine setzen sie am Wrapper, das Textelement
     erbt sie. Deshalb ist das hier kein Notnagel, sondern die Regel.
     Wer in Elementor doch einmal eine Einzelfarbe braucht, vergibt sie über
     eine eigene CSS-Klasse statt über die Farbwahl des Widgets. */
  color: inherit !important;
}

/* Elementor-Buttons auf die Hausoptik bringen, falls das Button-Widget
   statt eines reinen Links verwendet wird. */
.bq .elementor-button.bq-btn { border-radius: var(--bq-radius); }

/* Elementor-Bild-Widget im Hero: Bild soll die Fläche füllen. */
.bq .bq-hero__figure .elementor-widget-container,
.bq .bq-hero__figure figure,
.bq .bq-hero__figure img { width: 100%; height: 100%; margin: 0; }
.bq .bq-hero__figure img { object-fit: cover; }

/* WordPress-Admin-Leiste darf den klebenden Kopf nicht überdecken. */
body.admin-bar .bq-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .bq-header { top: 46px; } }

/* --- Elementor-Container: Flex/Grid-Verhalten der Bausteine erzwingen -----
   Elementor macht aus jedem Container eine Flexbox mit eigenem Abstand.
   Hier bekommen die Bausteine ihr im Design vorgesehenes Verhalten zurück.
   Die höhere Spezifität (.bq .e-con.xxx) ist Absicht — sonst entscheidet die
   zufällige Ladereihenfolge der Stylesheets. */
.bq .e-con.bq-pillars {
  display: grid; gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}
.bq .e-con.bq-offer         { display: grid; gap: 0; }
.bq .e-con.bq-hero__grid    { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.bq .e-con.bq-story__grid   { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.bq .e-con.bq-contact__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.bq .e-con.bq-offer__facts  { display: grid; gap: 1.15rem; }

.bq .e-con.bq-hero__text,
.bq .e-con.bq-story__intro,
.bq .e-con.bq-offer__main,
.bq .e-con.bq-contact__card { display: flex; flex-direction: column; gap: 0; }

.bq .e-con.bq-pillar        { display: flex; flex-direction: column; gap: 0; }
.bq .e-con.bq-offer__aside  { display: flex; flex-direction: column; gap: 1.5rem; }
.bq .e-con.bq-hero__media   { display: block; }
.bq .e-con.bq-hero__figure  { display: block; padding: 0; }
.bq .e-con.bq-chain         { display: flex; flex-direction: column; gap: 0; }
.bq .e-con.bq-chain__item   { display: flex; flex-direction: column; gap: 0; }
.bq .e-con.bq-hero__actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.9rem; }

/* Abstände zwischen den Textbausteinen innerhalb der Karten */
.bq .e-con.bq-pillar > .elementor-widget + .elementor-widget { margin-top: 0.8rem; }
.bq .e-con.bq-chain__item > .elementor-widget + .elementor-widget { margin-top: 0.45rem; }

/* Video-Platzhalter, solange keine Video-ID hinterlegt ist. */
.bq-video--leer .bq-video__btn { cursor: default; }
.bq-video--leer .bq-video__play::before { animation: none; }


/* --- Klassische WordPress-Seiten (Impressum, Datenschutz, 404 …) ----------
   Diese Seiten werden NICHT in Elementor gebaut, sondern im normalen Editor.
   Sie bekommen hier Satzspiegel und Abstände, damit sie zur Startseite passen.
   Die Startseite ist davon nicht betroffen: Elementor-Vollbreitseiten haben
   kein <main class="site-main">. */
body.bq:not(.elementor-template-full-width) .site-main {
  display: block;
  max-width: var(--bq-maxw);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--bq-gutter) clamp(3.5rem, 8vw, 6rem);
}
.bq .page-header { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.bq .page-header .entry-title {
  font-size: var(--bq-fs-3xl);
  line-height: 1.07;
  margin: 0;
}
.bq .page-content { max-width: 68ch; }
.bq .page-content > :first-child { margin-top: 0; }
.bq .page-content h2 {
  font-size: var(--bq-fs-xl);
  line-height: 1.2;
  margin: 2.5rem 0 0.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bq-line);
}
.bq .page-content h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.bq .page-content ul { padding-left: 1.2rem; margin: 0 0 1.15em; }
.bq .page-content li { margin-bottom: 0.4rem; }
.bq .page-content code {
  font-size: 0.9em;
  background: var(--bq-sand);
  padding: 0.1em 0.4em;
  border-radius: var(--bq-radius);
}


/* ==========================================================================
   19. FARBEN GEGEN ELEMENTOR DURCHSETZEN
   Elementor erzeugt pro Seite Regeln, die das Textelement DIREKT treffen:

     .elementor-widget-heading .elementor-heading-title { color: … }   (0,2,0)
     .elementor-widget-text-editor                      { color: … }   (0,1,0)

   Sie stammen aus den globalen Kit-Farben und werden nach diesem Stylesheet
   geladen. Bei gleicher Spezifität gewinnt das zuletzt geladene — Bausteine,
   die ihre Farbe nur über eine einzelne Klasse setzen, verlieren dann.
   Sichtbar wurde das im Editor als blauer Text auf blauem Grund.

   Deshalb bekommen alle farbtragenden Bausteine hier eine höhere Spezifität
   (body.bq … plus Nachfahren-Selektor für das innere Textelement).
   ========================================================================== */
body.bq .bq-offer__aside .bq-k,
body.bq .bq-offer__aside .bq-k * { color: var(--bq-blue-200); }

body.bq .bq-offer__aside .bq-v,
body.bq .bq-offer__aside .bq-v * { color: #fff; }

body.bq .bq-offer__note,
body.bq .bq-offer__note * { color: var(--bq-blue-200); }

body.bq .bq-section--ink .bq-lead,
body.bq .bq-section--ink .bq-lead * { color: var(--bq-blue-200); }

body.bq .bq-contact__k,
body.bq .bq-contact__k * { color: var(--bq-blue-200); }

body.bq .bq-contact__v,
body.bq .bq-contact__v * { color: #fff; }

body.bq .bq-lead { color: var(--bq-ink-soft); }
body.bq .bq-eyebrow { color: var(--bq-blue); }
body.bq .bq-section--ink .bq-eyebrow { color: var(--bq-blue-200); }
body.bq .bq-pillar__claim { color: var(--bq-accent); }
body.bq .bq-chain__era { color: var(--bq-accent); }
body.bq .bq-pillar__num { color: var(--bq-blue-200); }
body.bq .bq-pillar:hover .bq-pillar__num { color: var(--bq-blue); }
body.bq .bq-offer__sub { color: var(--bq-blue); }
body.bq .bq-chain__item--result .bq-chain__title { color: var(--bq-blue); }


/* ==========================================================================
   20. ELEMENTOR-EDITOR
   Im Bearbeitungsmodus dürfen die Scroll-Animationen nicht greifen:
   Elementor erzeugt Widgets bei jeder Änderung neu, der IntersectionObserver
   kennt diese Knoten nicht und ließe sie dauerhaft auf opacity:0 stehen.

   Die Klasse bq-editor setzt das Theme selbst (functions.php). Elementors
   eigenes "elementor-editor-active" sitzt am äußeren Editor-Dokument und
   nicht am Vorschau-iframe — darauf kann man sich hier nicht stützen.
   ========================================================================== */
body.bq-editor .bq-reveal {
  opacity: 1 !important;
  transform: none !important;
}
body.bq-editor .bq-hero__title .bq-line > span { transform: none !important; }

/* Kausalkette vollständig zeichnen, sonst fehlt sie beim Bearbeiten. */
body.bq-editor .bq-chain { --bq-chain-progress: 1; }
body.bq-editor .bq-chain__item::before {
  background: var(--bq-blue);
  border-color: var(--bq-blue);
  transform: rotate(45deg);
}

/* Schwebende Deko lenkt beim Bearbeiten ab. */
body.bq-editor .bq-float { animation: none; }

/* Der klebende Kopfbereich würde über der Bearbeitungsfläche kleben. */
body.bq-editor .bq-header { position: static; }
