/* =====================================================================
   Kino-Blau Veredelung — Effekt-Schicht der Startseite (2026-07-08)
   Quellen-Vorlage: docs/superpowers/prototype-startseite-kino-blau-v5.html
   Enthält: Logo-Karussell, Canvas-Hosts (Shader-Band, Wave, Plasma).
   Jeder Canvas wird von seinem Script IO-gegated; reduce/save-data/
   Touch entfernen den Canvas — die CSS-Fallbacks hier bleiben stehen.
   ===================================================================== */

/* OPT-T1: einheitliches Startseiten-Display-Token (Montserrat 800).
   Nur diese Datei lädt --font-display-home; sections.css referenziert
   es in ID-gescopten Regeln (#marken/#partner), Reihenfolge egal —
   Custom Properties lösen sich am fertigen Cascade, nicht beim Parsen. */
:root {
  --font-display-home: 'Montserrat', 'Arial Narrow', system-ui, sans-serif;
  /* OPT-T2: einheitliche Karten-Grid-Gap-Skala (Kevin: „alles unterschiedlich groß"). */
  --pds-grid-gap: clamp(18px, 2.4vw, 28px);
}

/* ============================== Aus der Praxis — Logo-Karussell (3a)
   Heading-Zentrierung über bestehendes .shead.center (sections.css). */
.kunden .shead.center .eyebrow::before { display: none; }

.logo-carousel {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.logocol {
  position: relative;
  height: 150px;
  width: min(30vw, 250px);
  overflow: hidden;
}
.logocol .slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(14%);
  filter: blur(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease-lux), filter .5s var(--ease);
}
.logocol .slot.show { opacity: 1; transform: none; filter: none; }
.logocol .slot.out {
  opacity: 0;
  transform: translateY(-18%);
  filter: blur(6px);
  transition: opacity .3s ease-in, transform .3s ease-in, filter .3s ease-in;
}
.logotile {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 20px;
  border: 1px solid var(--hair-2);
  background: linear-gradient(180deg, #0b1222, #06090f);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
}
.logotile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background: radial-gradient(60% 80% at 50% 0%, var(--accent, rgba(30, 155, 240, .2)), transparent 65%);
}
.logotile img {
  position: relative;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .5));
}
.logotile .ln {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}
/* Volumetrischer Spotlight-Akzent über der Sektion (Prototyp #praxis) */
#praxis { position: relative; }
#praxis::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(46% 60% at 50% -8%, rgba(30, 155, 240, .14), transparent 62%);
}
#praxis .wrap { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .logocol { width: min(44vw, 250px); }
}
@media (prefers-reduced-motion: reduce) {
  .logocol .slot { transition: none; }
}

/* Premium partner gallery */
#praxis { padding-block: clamp(84px, 11vw, 150px); background: radial-gradient(70% 80% at 50% 0%, rgba(25, 91, 180, .16), transparent 56%), #04070f; }
#praxis .shead { max-width: 940px; margin-inline: auto; }
#praxis .logo-carousel { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 52px); max-width: 1180px; margin: clamp(48px, 7vw, 88px) auto 0; }
#praxis .logocol { width: auto; height: 300px; overflow: visible; }
#praxis .logocol .slot { overflow: hidden; border-radius: 20px; }
#praxis .logotile { height: 260px; border-radius: 20px; border: 1px solid rgba(125,180,255,.22); background: linear-gradient(145deg, rgba(16,29,53,.96), rgba(5,9,18,.96)); gap: 20px; box-shadow: 0 22px 48px -32px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.07); transition: transform .42s var(--pds-ease), border-color .42s var(--pds-ease), box-shadow .42s var(--pds-ease); }
#praxis .logotile::before { opacity: .9; background: radial-gradient(65% 80% at 50% 0%, var(--accent), transparent 68%); }
#praxis .logotile::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: 18px; height: 1px; background: linear-gradient(90deg, transparent, rgba(125,180,255,.5), transparent); opacity: .55; }
#praxis .logotile:hover { transform: translateY(-9px); border-color: rgba(125,180,255,.52); box-shadow: 0 30px 60px -32px rgba(18,95,215,.7), inset 0 1px 0 rgba(255,255,255,.11); }
#praxis .logotile img { width: 132px; height: 132px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.48)); transition: transform .42s var(--pds-ease), filter .42s var(--pds-ease); }
#praxis .logotile:hover img { transform: scale(1.07); filter: drop-shadow(0 16px 25px rgba(20,100,225,.34)); }
#praxis .logotile img[src*="express-kiosk"] { filter: drop-shadow(0 10px 20px rgba(245,137,35,.38)); }
#praxis .logo-carousel { perspective: 1200px; }
#praxis .logotile .ln { color: var(--pds-text-2); font: 500 .73rem/1.4 var(--pds-font-mono); letter-spacing: .16em; text-transform: uppercase; text-align: center; }
@media (max-width: 720px) { #praxis .logo-carousel { grid-template-columns: 1fr; max-width: 420px; } #praxis .logocol { height: 240px; } #praxis .logotile { height: 220px; } #praxis .logotile img { width: 112px; height: 112px; } }

/* JS-Variante: ein echtes, nahtlos laufendes Markenband. Der komplette
   Bildausschnitt bleibt sichtbar; es gibt weder Crop noch Blend-Darkening. */
#praxis .logo-carousel.is-enhanced { display: block; max-width: none; margin-inline: calc(50% - 50vw); overflow: hidden; padding-block: 16px 26px; }
#praxis .logo-carousel.is-enhanced::before,
#praxis .logo-carousel.is-enhanced::after { content: ''; position: absolute; z-index: 2; top: 0; bottom: 0; width: clamp(28px, 8vw, 180px); pointer-events: none; }
#praxis .logo-carousel.is-enhanced::before { left: 0; background: linear-gradient(90deg, #04070f, transparent); }
#praxis .logo-carousel.is-enhanced::after { right: 0; background: linear-gradient(270deg, #04070f, transparent); }
#praxis .logo-carousel.is-enhanced .logo-track { display: flex; width: max-content; animation: pds-logo-marquee 34s linear infinite; will-change: transform; }
#praxis .logo-carousel.is-enhanced.is-paused .logo-track { animation-play-state: paused; }
#praxis .logo-carousel.is-enhanced .logo-set { display: flex; align-items: stretch; gap: clamp(18px, 2.4vw, 38px); padding-right: clamp(18px, 2.4vw, 38px); }
#praxis .logo-carousel.is-enhanced .logotile { width: clamp(240px, 20vw, 340px); height: 292px; padding: 22px 24px; border-radius: 16px; flex: 0 0 auto; }
#praxis .logo-carousel.is-enhanced .logotile img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  /* Einheitliche, weiche Freistellung: Die runden Marken bleiben komplett,
     die farbigen Quadrat-Hintergründe verschwinden am Rand. */
  -webkit-mask-image: radial-gradient(circle at center, #000 0 46%, transparent 50%);
  mask-image: radial-gradient(circle at center, #000 0 46%, transparent 50%);
}
#praxis .logo-carousel.is-enhanced .logotile .ln { min-height: 2.8em; display: grid; place-items: start center; }
#praxis .logo-carousel.is-enhanced .logotile:hover { transform: translateY(-7px) scale(1.015); }
@keyframes pds-logo-marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (hover: hover) { #praxis .logo-carousel.is-enhanced:hover .logo-track { animation-play-state: paused; } }
@media (max-width: 720px) {
  #praxis .logo-carousel.is-enhanced { margin-top: 34px; padding-block: 8px 22px; }
  #praxis .logo-carousel.is-enhanced .logo-set { gap: 16px; padding-right: 16px; }
  #praxis .logo-carousel.is-enhanced .logotile { width: min(76vw, 320px); height: 286px; padding: 20px; }
  #praxis .logo-carousel.is-enhanced .logotile img { width: 194px; height: 194px; }
  #praxis .logo-carousel.is-enhanced .logotile .ln { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { #praxis .logo-carousel.is-enhanced .logo-track { animation: none; transform: none; } #praxis .logo-carousel.is-enhanced .logo-set[aria-hidden="true"] { display: none; } }

/* OPT-T1: Startseiten-Display-Hierarchie — Montserrat 800 uppercase, eine Skala.
   Hero-H1 hat ihre eigene explizite Regel (sections.css .hero-h1); #marken/#partner
   H2 leben aus historischen Gründen konsolidiert in sections.css (Z. ~1161). Alle
   übrigen Startseiten-H2 bekommen hier ihre einheitliche ID-gescopte Regel. */
#warum .h2, #bereiche .h2, #prozess .h2, #faq .h2, #selbst-checks .h2, #erstgespraech .h2, #praxis .h2 {
  font-family: var(--font-display-home);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
  /* Fix 2026-07-13 (ersetzt OPT-T3 Fix 1b): Silbentrennung auf ALLEN Breiten
     (nicht nur ≤480px) + -webkit-Präfix für Safari/iOS. Lange Komposita
     („zusammenarbeiten.", „Wettbewerbsvorteil") brechen so an Silbengrenzen
     MIT Trennstrich statt willkürlich in der Wortmitte. break-word bleibt als
     Fallback für nicht trennbare Zeichenketten. lang="de" steht auf <html>. */
  -webkit-hyphens: auto;
          hyphens: auto;
  overflow-wrap: break-word;
}
/* Kevin 2026-07-13: Die satz-artigen Section-Header mit sehr langen Komposita
   („Wettbewerbsvorteil", „KI-Automatisierung", „zusammenarbeiten", „Unternehmen")
   waren zu groß und brachen mitten im Wort um — MOBIL wie auch auf DESKTOP: dort
   ist der `.shead`-Container nur ~780px breit, während die Basis-H2 auf 5rem/80px
   skaliert (WETTBEWERBSVORTEIL ≈ 1035px → Umbruch). Daher auf ALLEN Breiten (nicht
   nur mobil) kleiner skalieren, bis das längste Wort (≈12,9×fs) in den Container
   passt: Deckel 3.4rem/54px hält WETTBEWERBSVORTEIL bei ~704px in 780px.
   `hyphens:none` ist zwingend — sonst trennt hyphens:auto (Basis .h2) das Wort
   trotzdem, nur um die vorige Zeile aufzufüllen. Betrifft nur die drei satz-
   artigen Header; kurze Schlagzeilen-H2 (prozess/faq/marken/…) bleiben bei voller
   Größe (passen, kein Umbruch — Kevin: „der rest passt"). */
#warum .h2, #bereiche .h2, #erstgespraech .h2 {
  font-size: clamp(1.3rem, 6.4vw, 3.4rem);
  -webkit-hyphens: none;
          hyphens: none;
}

/* Karten-/Panel-Titel: gleiche Familie, kleinere Stufe der Skala.
   .card ist eine geteilte Klasse (style.css/sections.css) — daher ID-gescopt neu,
   statt die Basisklasse anzufassen. */
#bereiche .card h3 {
  font-family: var(--font-display-home);
  font-weight: 800;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  -webkit-hyphens: auto;
          hyphens: auto;
}

/* Kleine Titel (Selbst-Checks-Tools + Analyse-Teaser): .tc-title/.analyse-teaser sind
   geteilte Klassen (auch auf leistungen.html) — daher zwingend ID-gescopt hier,
   nicht in sections.css/style.css. */
#selbst-checks .tc-title {
  font-family: var(--font-display-home);
  font-weight: 800;
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
#selbst-checks .analyse-teaser h3 {
  font-family: var(--font-display-home);
  font-weight: 800;
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

/* Mono-Vereinheitlichung: Eyebrows/Idx auf der Startseite auf IBM Plex Mono heben
   (sitieweit bleibt .eyebrow/.idx auf JetBrains Mono — style.css NICHT anfassen). */
main .eyebrow, main .idx {
  font-family: var(--pds-font-mono);
}

/* ============================== Warum jetzt — Blau-Kosmos-Shader-Band (3b) */
#warum { position: relative; overflow: hidden; }
#warum .fx-band-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(80% 80% at 30% 20%, #123268, transparent 60%),
              radial-gradient(70% 70% at 80% 85%, #0c2450, transparent 60%),
              #04060d;
}
#fx-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
/* Rand-Vignette + Lesbarkeits-Abdunklung über dem Shader, unter dem Inhalt */
#warum::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 34%, rgba(2, 4, 10, .72) 100%);
}
#warum .wrap { position: relative; z-index: 2; }

/* ============================== Zwei starke Marken — Dotted-Wave (3c) */
#marken { position: relative; overflow: hidden; }
#fx-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .55;
}
#marken .wrap { position: relative; z-index: 1; }

/* ============================== Erstgespräch — Plasma-Flow (3d) */
#erstgespraech { position: relative; overflow: hidden; }
#fx-plasma {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .7;
}
#erstgespraech .wrap { position: relative; z-index: 1; }

/* ============================== Hero-Partikel-Claims + Spotlight (3h) */
/* rev5 (Kevin 2026-07-13): deutlich größerer Auftritt — volle Spaltenbreite
   statt 560px-Deckel, Höhe ~+55%. Die Canvas-Schriftgrößen leiten sich aus
   der Container-Höhe ab und skalieren via FIT auf die Breite. */
.hero-claims {
  position: relative;
  width: 100%;
  margin: 0 auto 18px;
  height: clamp(150px, 16vw, 232px);
}
#fx-claims {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}
.hero-claims.on #fx-claims { display: block; }
/* Statisches Lockup: no-JS / reduce / save-data */
.hc-static {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  margin: 0;
  font-family: var(--font-display);
}
.hc-static b {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--silver-1);
  line-height: 1;
}
.hc-static span {
  font-size: clamp(.85rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero-claims.on .hc-static { display: none; }
/* Scheinwerfer aufs Logo (Aceternity-Spotlight-Port, spielt 1x nach Load) */
.fx-spotlight {
  position: absolute;
  top: -260%;
  left: -42%;
  width: 190%;
  height: 560%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: kbSpotlight 1.7s var(--ease-out) .7s forwards;
}
@keyframes kbSpotlight {
  0% { opacity: 0; transform: translate(-22%, -18%) scale(.6); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@media (max-width: 960px) {
  .hero-claims { margin: 0 auto 12px; height: clamp(118px, 26vw, 190px); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-spotlight { animation: none; opacity: .3; transform: none; }
}
.no-anim .fx-spotlight { animation: none; opacity: .3; }

/* rev4: Materialisierung — scharfes Live-Element über den Partikeln */
.hc-live {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .45s var(--ease), transform .45s var(--ease-lux);
  pointer-events: none;
}
.hero-claims.crisp .hc-live { opacity: 1; transform: none; }
#fx-claims { transition: opacity .45s var(--ease); }
.hero-claims.crisp #fx-claims { opacity: .28; }
.hc-live img { display: block; filter: drop-shadow(0 6px 22px rgba(10, 60, 140, .5)); }
.hc-live .hl-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .18em;
  text-align: left;
  font-family: var(--font-display);
  line-height: 1;
  white-space: nowrap;
}
.hc-live .hl-brand b {
  color: var(--silver-1);
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 2px 18px rgba(30, 155, 240, .35);
}
.hc-live .hl-brand i {
  color: #7cc4ff;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .1em;
}
.hc-live .hl-claim {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(30, 155, 240, .3);
}

/* =====================================================================
   Task 4 — Sektions-Veredelung (index-only; Copy unangetastet)
   Bezel-Prinzip: Doppelrahmen per box-shadow-Ring (0 0 0 7px Fläche +
   0 0 0 8px Linie) — bewusst OHNE ::before/::after, damit bestehende
   Pseudo-Elemente (Card-Glare, Timeline-Nummern/-Verbinder) intakt bleiben.
   ===================================================================== */

/* ---- Reveal-Wucht (Prototyp-Motion, reduce-/no-anim-safe s.u.)
   WICHTIG: .js-gescoped wie das Original in style.css — ohne JS bleibt
   alles sichtbar, und die Spezifität schlägt die Basisregel sauber. ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(40px) scale(.99);
  filter: blur(8px);
  transition: opacity .9s var(--ease), transform 1s var(--ease-lux), filter .9s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .stagger > * { transform: translateY(40px); }
/* Pflicht-Reset (Fund WP-A-Final-Review, Kevin-OK 2026-07-09): gleiche Spezifität wie
   style.css `.stagger.in > *`, aber spätere Datei — ohne diese Zeile blieben die
   Stagger-Kinder dauerhaft 40px unter ihrer Layout-Position. */
.js .stagger.in > * { transform: none; }

/* ---- Marquee: größer, Kino-Fade an den Rändern ---- */
.marquee span { font-size: clamp(1.6rem, 3.4vw, 2.6rem); -webkit-text-stroke: 1px rgba(150, 195, 250, .55); }
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

/* ---- Leistungen #bereiche: Double-Bezel-Karten + Hover-Glow (jetzt dark) ---- */
#bereiche .grid-3 { gap: 26px; }
#bereiche .card {
  border-radius: 18px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, #0a1122, #060b16);
  box-shadow: 0 0 0 7px rgba(120, 170, 235, .045), 0 0 0 8px var(--hair-2);
  transition: transform .55s var(--ease-lux), box-shadow .55s var(--ease);
}
#bereiche .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 7px rgba(120, 170, 235, .07), 0 0 0 8px var(--hair-2),
              0 26px 70px -20px rgba(30, 155, 240, .35);
}

/* ---- Marken #marken: Panels als Bezel-Karten über der Wave ---- */
#marken .brands { gap: 26px; }
#marken .brand-panel {
  border-radius: 18px;
  border: 1px solid var(--hair);
  box-shadow: 0 0 0 7px rgba(120, 170, 235, .045), 0 0 0 8px var(--hair-2);
  transition: transform .55s var(--ease-lux), box-shadow .55s var(--ease);
}
#marken .brand-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 7px rgba(120, 170, 235, .07), 0 0 0 8px var(--hair-2),
              0 26px 70px -20px rgba(30, 155, 240, .35);
}

/* ---- Prozess #prozess: komplett neu als verkettete Phasen (.proc) —
   siehe OPT-T2-Block am Dateiende. Der tote .beams-SVG-Stack + die
   2×2-Timeline sind entfernt (Kevin-Screenshot: schwebende Kreise). ---- */

/* ---- Warum wir #partner: Module als Bezel-Karten ---- */
#partner .modules { gap: 26px; }
#partner .module {
  border-radius: 18px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, #0a1122, #060b16);
  box-shadow: 0 0 0 7px rgba(120, 170, 235, .045), 0 0 0 8px var(--hair-2);
  transition: transform .55s var(--ease-lux), box-shadow .55s var(--ease);
}
#partner .module:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 7px rgba(120, 170, 235, .07), 0 0 0 8px var(--hair-2),
              0 26px 70px -20px rgba(30, 155, 240, .35);
}

/* ---- FAQ + Selbst-Checks: leiser Kino-Schliff ---- */
#faq .faq-item {
  border: 1px solid var(--hair-2);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
#faq .faq-item:hover, #faq .faq-item[open] {
  border-color: rgba(30, 155, 240, .4);
  box-shadow: 0 12px 44px -18px rgba(30, 155, 240, .3);
}
#selbst-checks .tool-card { transition: transform .45s var(--ease-lux), box-shadow .45s var(--ease), border-color .35s var(--ease); }
#selbst-checks .tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 155, 240, .4);
  box-shadow: 0 22px 60px -22px rgba(30, 155, 240, .35);
}

/* ---- Sicherheitsnetz: reduce-motion / no-anim (diese Datei lädt zuletzt) ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .js .stagger > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .marquee-track { animation: none; }
}
.no-anim .reveal, .no-anim .stagger > * {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* =====================================================================
   OPT-T2 — Kino-Effekte, Hintergrund-Bühnenbild, Prozess-Kette,
   einheitlicher Sektions-Rhythmus (index-only, 2026-07-10).
   Alle Keyframes pds-opt-* (Kollisions-Guard). Nur transform/opacity/
   filter/background-position animiert. reduced-motion + .no-anim am Ende.
   ===================================================================== */

/* ---------- Keyframes ---------- */
@keyframes pds-opt-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
/* OPT-T3 I1: von "left" (Layout-Property, erzwingt Reflow jeden Frame) auf
   transform:translateX umgestellt (Compositor-only). 76cqw = dieselbe Strecke
   wie vorher 12%->88% (76 Prozentpunkte), aber relativ zur Breite des
   nächsten Query-Containers (.bereiche-link bzw. #prozess .proc, s. dort
   container-type:inline-size) statt zur eigenen Box — die Endposition bleibt
   exakt gleich, nur GPU-composited statt Layout-Trigger. */
@keyframes pds-opt-runx { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(76cqw); opacity: 0; } }
@keyframes pds-opt-linex { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pds-opt-liney { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pds-opt-ignite { 0% { background: rgba(46,123,255,.05); box-shadow: none; } 55% { background: rgba(46,123,255,.5); box-shadow: 0 0 26px rgba(125,180,255,.95); color: #fff; } 100% { background: rgba(46,123,255,.08); box-shadow: none; } }
@keyframes pds-opt-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes pds-opt-sheen { from { background-position: 180% 0; } to { background-position: -80% 0; } }
@keyframes pds-opt-beam { 0% { transform: translateX(-280px) rotate(16deg); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(1520px) rotate(16deg); opacity: 0; } }
@keyframes pds-opt-drift { 0% { transform: translate3d(-1%, 0, 0); opacity: .7; } 100% { transform: translate3d(1.5%, -1%, 0); opacity: 1; } }
@keyframes pds-opt-aurora { 0% { transform: translate3d(-4%, 2%, 0) rotate(-2deg); opacity: .75; } 100% { transform: translate3d(4%, -2%, 0) rotate(2deg); opacity: 1; } }
@keyframes pds-opt-vault { 0% { transform: translate3d(-2%, 1%, 0) scale(1); opacity: .8; } 100% { transform: translate3d(2%, -1%, 0) scale(1.06); opacity: 1; } }

/* =========================================================
   Sektions-Rhythmus (Kevin Punkt 4): ein vertikaler Takt.
   Hero ausgenommen (eigene Höhe); alle Content-Sektionen gleich.
   ========================================================= */
main > section:not(.hero) { padding-block: clamp(84px, 11vw, 150px); }
main .shead { margin-bottom: clamp(40px, 5vw, 64px); }
main .shead .h2 { margin-bottom: clamp(14px, 1.8vw, 20px); }
#bereiche .grid-3 { gap: var(--pds-grid-gap); }
/* Lange Uppercase-Komposita in Karten-Titeln (z. B. AUTOMATISIERUNG) nicht
   abschneiden — T1-Schriftgröße bleibt, nur Umbruch/Silbentrennung (lang="de").
   Nur Karten-/Modul-Titel; die Section-H2 bleiben unangetastet (T1-Renderung). */
#bereiche .card h3, #prozess .tl-step h3, .partner-modules .module h3 {
  overflow-wrap: break-word; hyphens: auto;
}

/* =========================================================
   Energie-Nähte zwischen den Blöcken: glühende Hairline (Glow-
   Gradient) auf jeder Sektions-Oberkante. Border-Image liegt auf
   der Border-Kante — Canvas/::before (inset:0 = Padding-Box) decken
   sie nicht ab, daher auf FX- wie Flat-Sektionen sichtbar.
   ========================================================= */
main > section.seam-top { border-image: linear-gradient(90deg, transparent 6%, rgba(125,180,255,.5) 50%, transparent 94%) 1; }

/* =========================================================
   Hintergrund-Bühnenbild „Lichtregie" — jede Sektion eigene Signatur,
   Nachbarn nie gleich. CSS-only, absolute Layer, aria-hidden, pointer
   -events:none, hinter dem Content (.wrap z-index:1).
   ========================================================= */
#bereiche, #prozess, #partner { position: relative; overflow: hidden; }
#bereiche > .wrap, #prozess > .wrap, #partner > .wrap { position: relative; z-index: 1; }

/* #bereiche „Konstellation": Blueprint-Punktraster (nach unten ausblendend)
   + weicher Radial-Glow oben + zwei langsam pulsende Lichtpunkte. */
#bereiche::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(rgba(125,180,255,.26) 1px, transparent 1.6px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, #000 0 34%, transparent 76%);
          mask-image: linear-gradient(180deg, #000 0 34%, transparent 76%);
  animation: pds-opt-drift 34s ease-in-out infinite alternate;
}
#bereiche::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 34% at 50% -6%, rgba(46,123,255,.18), transparent 62%),
    radial-gradient(9px 9px at 16% 32%, rgba(125,180,255,.5), transparent 70%),
    radial-gradient(7px 7px at 84% 24%, rgba(125,180,255,.4), transparent 70%);
  animation: pds-opt-pulse 6.5s ease-in-out infinite;
}

/* #prozess „Lichtbahn": diagonaler Aurora-Streifen (blur, driftet)
   + Rand-Vignette — die Kette wirkt beleuchtet. */
#prozess::before {
  content: ""; position: absolute; inset: -25% -12%; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 34%, rgba(46,123,255,.17) 49%, rgba(125,180,255,.1) 56%, transparent 70%);
  filter: blur(60px);
  animation: pds-opt-aurora 30s ease-in-out infinite alternate;
}
#prozess::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 92% at 50% 46%, transparent 52%, rgba(2,5,12,.62));
}

/* #partner „Tresor": tiefe Vignette + driftender Glow von links unten
   + hauchfeines Diagonal-Linienraster. */
#partner::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 60% at 10% 100%, rgba(46,123,255,.15), transparent 62%),
    repeating-linear-gradient(135deg, rgba(125,180,255,.038) 0 1px, transparent 1px 15px);
  animation: pds-opt-vault 36s ease-in-out infinite alternate;
}
#partner::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(132% 100% at 50% 38%, transparent 46%, rgba(2,4,10,.72));
}

/* =========================================================
   Cursor-Glow aktiviert (Goal 1): fx.js schreibt --spot-x/y auf diese
   Sektionsgruppen; bislang konsumierte sie nur .wp3-grid .card::before.
   #marken .brand-panel nutzt ::before (überschreibt b-blue-Ecken-Glow;
   die Ecke steckt ohnehin im BG 1165/1166). ========================= */
#marken .brand-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(340px circle at var(--spot-x,50%) var(--spot-y,50%), rgba(46,123,255,.13), transparent 68%);
}
#marken .brand-panel > *:not(.brand-panel-logo) { position: relative; z-index: 1; }
#partner .module { position: relative; }
#partner .module::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(340px circle at var(--spot-x,50%) var(--spot-y,50%), rgba(46,123,255,.13), transparent 68%);
}
#partner .module > * { position: relative; z-index: 1; }
#erstgespraech .cta-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--spot-x,50%) var(--spot-y,50%), rgba(46,123,255,.13), transparent 68%);
}

/* =========================================================
   #bereiche — Verbindungslinie (4 pulsende Knoten + Lichtpunkt),
   Ghost-Nummern, „Mehr erfahren"-Zeile, Megafon-Icon-Größe.
   ========================================================= */
.bereiche-link { position: relative; height: 30px; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 46px); container-type: inline-size; }
.bl-track { position: absolute; inset: 0; }
.bl-track::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,180,255,.5), transparent);
}
.bl-node {
  position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: #7db4ff; box-shadow: 0 0 12px rgba(125,180,255,.9);
  animation: pds-opt-pulse 3.2s ease-in-out infinite;
}
.bl-node:nth-child(1) { left: 12%; }
.bl-node:nth-child(2) { left: 37.3%; animation-delay: .6s; }
.bl-node:nth-child(3) { left: 62.6%; animation-delay: 1.2s; }
.bl-node:nth-child(4) { left: 88%; animation-delay: 1.8s; }
.bl-spark {
  position: absolute; top: 50%; left: 12%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: #bfe0ff; box-shadow: 0 0 14px 3px rgba(125,180,255,.85);
  /* OPT-T3 I1: lief bislang ohne Sichtbarkeits-Gate dauerhaft (paused per
     Default, wie .proc-spark; fx.js/pdsProcInit setzt .bl-live via IO). */
  animation: pds-opt-runx 7s linear infinite; animation-play-state: paused;
}
.bereiche-link.bl-live .bl-spark { animation-play-state: running; }
#bereiche .card { position: relative; }
#bereiche .card .card-ghost {
  position: absolute; z-index: -1; right: 14px; bottom: -6px; margin: 0;
  font-family: var(--font-display-home); font-weight: 800; font-size: clamp(4rem, 8vw, 6.6rem);
  line-height: 1; color: rgba(125,180,255,.06); pointer-events: none; user-select: none;
}
#bereiche .card .card-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font: 500 .66rem/1 var(--pds-font-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--pds-text-3); transition: color .3s var(--pds-ease);
}
#bereiche .card .card-more svg { width: 15px; height: 15px; transition: transform .3s var(--pds-ease); }
#bereiche .card:hover .card-more { color: var(--pds-blue-light); }
#bereiche .card:hover .card-more svg { transform: translateX(5px); }
#bereiche .card .cico svg { width: 24px; height: 24px; }

/* =========================================================
   #prozess — verkettete Phasen. Mobile-first: vertikale Timeline
   (Spine links, Knoten auf der Spine, Karte rechts). Ab 960px:
   horizontale Kette (Knoten auf einer Linie über 4 Karten, Segmente
   zeichnen sich L→R, Stub je Karte, Ring dreht, Lichtpunkt wandert).
   ========================================================= */
#prozess .proc { --node: clamp(40px, 11vw, 46px); position: relative; display: flex; flex-direction: column; gap: clamp(24px, 4vw, 38px); container-type: inline-size; }

/* ---------- Fortschritts-Rail (01–04) ---------- */
#prozess .proc-rail { position: relative; }
#prozess .proc[data-flow="on"] .proc-rail { max-width: 780px; margin: 0 auto; width: 100%; }
#prozess .proc-rail-track {
  position: absolute; left: calc(var(--node) / 2); right: calc(var(--node) / 2); top: calc(var(--node) / 2);
  height: 2px; transform: translateY(-50%); border-radius: 2px; background: rgba(77,154,255,.16); overflow: visible;
}
#prozess .proc-rail-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--fill, 0) * 100%); border-radius: 2px;
  background: linear-gradient(90deg, rgba(46,123,255,.45), rgba(125,180,255,.95));
  box-shadow: 0 0 12px rgba(125,180,255,.45);
}
#prozess .proc[data-flow="on"] .proc-rail-fill::after {
  content: ""; position: absolute; right: -3px; top: 50%; width: 9px; height: 9px; transform: translateY(-50%);
  border-radius: 50%; background: #cfe6ff; box-shadow: 0 0 12px 3px rgba(125,180,255,.85);
}
#prozess .proc-nodes { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
#prozess .proc-nodes > li { display: flex; }
#prozess .proc-node {
  position: relative; width: var(--node); height: var(--node); border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: default;
  font: 600 12px/1 var(--pds-font-mono); color: var(--pds-blue-light);
  background: radial-gradient(circle, rgba(46,123,255,.16), #0a1220);
  border: 1px solid rgba(77,154,255,.4); box-shadow: 0 0 0 6px var(--night, #04070f);
  transition: color .35s var(--ease), border-color .35s var(--ease), box-shadow .4s var(--ease-lux), background .35s var(--ease), transform .4s var(--ease-lux);
}
#prozess .proc-node-n { position: relative; z-index: 1; }
#prozess .proc-node:focus-visible { outline: 3px solid rgba(125,180,255,.75); outline-offset: 3px; }

/* Flow-Knotenzustände: erledigt / aktiv / kommend */
#prozess .proc[data-flow="on"] .proc-node { cursor: pointer; }
#prozess .proc[data-flow="on"] .proc-node[data-state="future"] { color: var(--pds-text-3); border-color: rgba(77,154,255,.22); }
#prozess .proc[data-flow="on"] .proc-node[data-state="past"] { color: #eaf4ff; border-color: rgba(125,180,255,.5); background: radial-gradient(circle, rgba(46,123,255,.42), rgba(29,111,232,.62)); }
#prozess .proc[data-flow="on"] .proc-node[data-state="active"] { color: #fff; border-color: rgba(160,205,255,.85); background: radial-gradient(circle, rgba(46,123,255,.6), rgba(29,111,232,.95)); box-shadow: 0 0 0 6px var(--night, #04070f), 0 0 22px rgba(125,180,255,.7); transform: scale(1.08); }

/* ---------- Bühne (Karten) — Fallback: alle sichtbar, gestapelt ---------- */
#prozess .proc-stage { display: flex; flex-direction: column; gap: clamp(16px, 3vw, 22px); }
#prozess .proc[data-flow="on"] .proc-stage { max-width: 780px; margin: 0 auto; width: 100%; }

/* Prozess-Karten (Basis-.tl-step-Badge/Connector neutralisiert; ::before = Cursor-Glow,
   ::after = obere Lichtkante). Icon-Kachel + geisterhaftes Icon-Wasserzeichen (wie #partner). */
#prozess .tl-step {
  position: relative; overflow: hidden; min-height: 0;
  display: flex; flex-direction: column;
  border: 1px solid rgba(125,180,255,.18); border-radius: 22px;
  background:
    radial-gradient(120% 78% at 50% -12%, rgba(46,123,255,.13), transparent 58%),
    linear-gradient(162deg, #101a2e, #0a1120 72%);
  box-shadow: inset 0 1px 0 rgba(190,220,255,.08), 0 26px 50px -34px rgba(2,6,16,.9);
  padding: clamp(24px, 3vw, 36px) clamp(22px, 2.6vw, 32px) clamp(26px, 3vw, 34px);
  transition: transform .45s var(--ease-lux), border-color .35s var(--ease), box-shadow .45s var(--ease-lux);
}
#prozess .tl-step::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--spot-x,50%) var(--spot-y,50%), rgba(46,123,255,.14), transparent 68%);
}
#prozess .tl-step::after { /* obere Lichtkante */
  content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(190,220,255,.55), transparent);
  opacity: .5; transition: opacity .35s var(--ease);
}
#prozess .tl-step > *:not(.proc-watermark) { position: relative; z-index: 1; }
#prozess .tl-step:hover {
  border-color: rgba(125,180,255,.42);
  box-shadow: inset 0 1px 0 rgba(190,220,255,.14), 0 32px 60px -30px rgba(4,10,24,.95), 0 0 0 1px rgba(46,123,255,.12);
}
/* Lift nur im Fallback — im Flow trägt transform die Karten-Bewegung */
#prozess .proc:not([data-flow="on"]) .tl-step:hover { transform: translateY(-8px); }
#prozess .tl-step:hover::after { opacity: 1; }

#prozess .proc-ico {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; margin-bottom: clamp(18px, 2.2vw, 26px);
  border-radius: 15px; color: var(--pds-blue-light);
  background: linear-gradient(158deg, rgba(46,123,255,.22), rgba(46,123,255,.05));
  border: 1px solid rgba(77,154,255,.34);
  box-shadow: inset 0 1px 0 rgba(190,220,255,.2), 0 10px 22px -14px rgba(29,111,232,.7);
  transition: transform .42s var(--ease-lux), color .35s var(--ease), border-color .35s var(--ease), box-shadow .4s var(--ease-lux);
}
#prozess .proc-ico svg { width: 26px; height: 26px; }
#prozess .tl-step:hover .proc-ico {
  color: #eef5ff; border-color: rgba(125,180,255,.62); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(190,220,255,.32), 0 14px 28px -12px rgba(46,123,255,.8);
}

#prozess .proc-watermark {
  position: absolute; right: -18px; bottom: -22px; z-index: 0;
  width: clamp(112px, 10vw, 138px); height: clamp(112px, 10vw, 138px); pointer-events: none;
  color: rgba(125,180,255,.05); stroke-width: 1; fill: none;
  transition: transform .55s var(--ease-lux), color .4s var(--ease);
}
#prozess .tl-step:hover .proc-watermark { color: rgba(125,180,255,.1); transform: rotate(-7deg) scale(1.06); }

#prozess .proc-phase { margin: 0 0 10px; color: var(--pds-blue-light); font: 500 .72rem/1 var(--pds-font-mono); letter-spacing: .22em; text-transform: uppercase; opacity: .82; }
#prozess .tl-step h3 { font-family: var(--font-display-home); font-weight: 800; font-size: clamp(1.28rem, 1.02rem + .85vw, 1.6rem); line-height: 1.08; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; hyphens: manual; margin-bottom: 12px; }
#prozess .tl-step p { max-width: 34ch; color: var(--pds-text-2); font-size: 1rem; line-height: 1.62; }

/* ---------- Flow: eine Karte gestapelt (grid-area 1/1 → Höhe = größte Karte) ---------- */
#prozess .proc[data-flow="on"] .proc-stage { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
#prozess .proc[data-flow="on"] .tl-step {
  grid-area: 1 / 1; width: min(100%, 620px);
  opacity: 0; transform: translateX(46px); pointer-events: none;
}
#prozess .proc[data-flow="on"] .tl-step.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; z-index: 2; }
#prozess .proc[data-flow="on"] .tl-step.is-past { opacity: 0; transform: translateX(-46px); }
#prozess .proc[data-flow="on"] .tl-step.is-future { opacity: 0; transform: translateX(46px); }

/* ---------- Phasen-Glow: die aktive Karte "leuchtet" ----------
   Kevins GlowingShadow-Referenz (Regenbogen-Hue) in den Marken-Blau-
   Verlauf übersetzt (Ein-Akzent-Lock). Reine CSS-Ergänzung hinter der
   aktiven Karte: ::after = ruhige Grund-Aura, ::before = rotierender
   Blau-Sweep (leuchtender Rand). Nur transform/opacity/filter; über
   .proc-live IO-gated; reduced-motion/.no-anim stoppen die Bewegung. */
#prozess .proc[data-flow="on"] .proc-stage { position: relative; }
#prozess .proc[data-flow="on"] .proc-stage::before,
#prozess .proc[data-flow="on"] .proc-stage::after {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 0;
  pointer-events: none; opacity: 0; transition: opacity .8s var(--ease-lux);
}
#prozess .proc[data-flow="on"] .proc-stage::after { /* ruhige Grund-Aura */
  width: min(92%, 580px); height: 80%; border-radius: 34px;
  background: radial-gradient(58% 60% at 50% 50%, rgba(46,123,255,.34), rgba(29,111,232,.1) 56%, transparent 74%);
  filter: blur(30px); transform: translate(-50%, -50%);
}
#prozess .proc[data-flow="on"] .proc-stage::before { /* rotierender Blau-Sweep */
  width: min(96%, 620px); height: 90%; border-radius: 40px;
  background: conic-gradient(from 0deg,
    rgba(46,123,255,0) 0deg, rgba(125,185,255,.72) 60deg, rgba(46,123,255,.05) 150deg,
    rgba(150,200,255,.85) 240deg, rgba(29,111,232,.05) 320deg, rgba(46,123,255,0) 360deg);
  filter: blur(24px); transform: translate(-50%, -50%) rotate(0deg);
  animation: pds-proc-glow-sweep 8s linear infinite; animation-play-state: paused;
}
#prozess .proc.proc-live[data-flow="on"] .proc-stage::before,
#prozess .proc.proc-live[data-flow="on"] .proc-stage::after { opacity: 1; }
#prozess .proc.proc-live[data-flow="on"] .proc-stage::before { animation-play-state: running; }
@keyframes pds-proc-glow-sweep {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  #prozess .proc-stage::before { animation: none !important; opacity: 0 !important; }
  #prozess .proc-stage::after { opacity: 0 !important; }
}
.no-anim #prozess .proc-stage::before { animation: none !important; }

/* ---------- Replay (erscheint am Ende) ---------- */
#prozess .proc-replay { display: flex; justify-content: center; }
#prozess .proc-replay-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid rgba(125,180,255,.3); background: rgba(46,123,255,.08); color: var(--pds-blue-light);
  font: 500 .68rem/1 var(--pds-font-mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
#prozess .proc-replay-btn[hidden] { display: none; }
#prozess .proc-replay-btn:hover { color: #eaf4ff; border-color: rgba(125,180,255,.6); background: rgba(46,123,255,.16); }
#prozess .proc-replay-btn:focus-visible { outline: 3px solid rgba(125,180,255,.75); outline-offset: 3px; }
#prozess .proc-replay-btn svg { width: 15px; height: 15px; }

/* ---------- Desktop (≥720px): Fallback 4-spaltig, Flow-Karte größer ---------- */
@media (min-width: 720px) {
  #prozess .proc:not([data-flow="on"]) .proc-stage { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pds-grid-gap); align-items: stretch; }
  #prozess .proc:not([data-flow="on"]) .tl-step { height: 100%; }
  #prozess .proc[data-flow="on"] .tl-step { padding: clamp(30px, 3.4vw, 44px) clamp(28px, 3vw, 40px) clamp(32px, 3.4vw, 44px); }
  #prozess .proc[data-flow="on"] .proc-ico { width: 58px; height: 58px; }
  #prozess .proc[data-flow="on"] .proc-ico svg { width: 29px; height: 29px; }
  #prozess .proc[data-flow="on"] .tl-step h3 { font-size: clamp(1.55rem, 1.1rem + 1.3vw, 2.05rem); }
  #prozess .proc[data-flow="on"] .tl-step p { font-size: 1.05rem; max-width: 44ch; }
}

/* =========================================================
   #partner — Titel-Unterstreichung beim Hover (38×2px, scaleX).
   ========================================================= */
#partner .partner-modules .module h3 { position: relative; display: inline-block; }
#partner .partner-modules .module h3::after {
  content: ""; position: absolute; left: 0; bottom: -8px; width: 38px; height: 2px;
  background: var(--pds-grad-headline); transform: scaleX(0); transform-origin: left center;
  transition: transform .22s var(--pds-ease);
}
#partner .partner-modules .module:hover h3::after { transform: scaleX(1); }

/* =========================================================
   #marken — Checkmarks statt „—", Listenpunkte staggern.
   ========================================================= */
#marken .bp-list li { align-items: center; gap: 11px; }
#marken .bp-list li::before {
  content: "✓"; color: var(--pds-blue-light); font-weight: 800; font-size: .95rem; line-height: 1;
  flex: none; width: 1.1em; text-align: center;
}
#marken .brand-panel--cca .bp-list li::before { color: #d9a4ff; }

/* =========================================================
   #erstgespraech — Sheen an der Oberkante, Diagonalstrahl, Cursor-Glow;
   consult-steps Linie zeichnet sich, Nummern zünden; Trust-Pills.
   ========================================================= */
#erstgespraech .cta-band > div, #erstgespraech .cta-band > ol { position: relative; z-index: 1; }
#erstgespraech .cta-sheen {
  position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(125,180,255,.2) 35%, rgba(190,220,255,.9) 50%, rgba(125,180,255,.2) 65%, transparent);
  background-size: 250% 100%; animation: pds-opt-sheen 8s linear infinite;
}
#erstgespraech .cta-beam {
  position: absolute; top: -40%; bottom: -40%; left: 0; width: 150px; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(125,180,255,.07), transparent);
  filter: blur(4px); animation: pds-opt-beam 11s linear 1s infinite;
}
#erstgespraech:not(.cta-live) .cta-sheen,
#erstgespraech:not(.cta-live) .cta-beam { animation-play-state: paused; }
#erstgespraech .consult-steps::before { transform-origin: top center; }
#erstgespraech .cta-band.in .consult-steps::before { animation: pds-opt-liney 1100ms var(--pds-ease) .3s backwards; }
#erstgespraech .cta-band.in .consult-steps li::before { animation: pds-opt-ignite 800ms var(--ease-out) backwards; }
#erstgespraech .cta-band.in .consult-steps li:nth-child(1)::before { animation-delay: .7s; }
#erstgespraech .cta-band.in .consult-steps li:nth-child(2)::before { animation-delay: .92s; }
#erstgespraech .cta-band.in .consult-steps li:nth-child(3)::before { animation-delay: 1.14s; }
#erstgespraech .cta-band.in .consult-steps li:nth-child(4)::before { animation-delay: 1.36s; }
#erstgespraech .wp3-trust {
  list-style: none; margin: clamp(16px, 2vw, 22px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
#erstgespraech .wp3-trust li {
  padding: 7px 14px; border: 1px solid rgba(125,180,255,.28); border-radius: 999px;
  font: 500 .62rem/1 var(--pds-font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--pds-blue-light); background: rgba(46,123,255,.06);
}

/* =========================================================
   Cinematic polish pass — vorhandene Bildwelt, keine neue Runtime.
   ========================================================= */
@media (min-width: 961px) and (hover: hover) and (pointer: fine) {
  .hero-media-sheen::before {
    content: ""; position: absolute; inset: 10px; z-index: 2; pointer-events: none;
    border: 1px solid rgba(205,230,255,.16); border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(46,123,255,.09), inset 0 0 40px rgba(30,155,240,.11);
    opacity: .52; transition: opacity .45s var(--ease), box-shadow .55s var(--ease-lux);
  }
  .hero-media-frame:hover .hero-media-sheen::before {
    opacity: 1; box-shadow: inset 0 0 0 1px rgba(125,180,255,.26), inset 0 0 58px rgba(30,155,240,.2);
  }
  #selbst-checks .tool-card::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    border-radius: inherit; opacity: 0;
    background: radial-gradient(300px circle at var(--spot-x,50%) var(--spot-y,50%), rgba(46,123,255,.16), transparent 66%);
    transition: opacity .35s var(--ease);
  }
  #selbst-checks .tool-card { position: relative; overflow: hidden; isolation: isolate; }
  #selbst-checks .tool-card > * { position: relative; z-index: 1; }
  #selbst-checks .tool-card:hover::before { opacity: 1; }
}

/* =========================================================
   OPT-T2 Motion-Abschaltung (content-never-hidden): Endzustände statisch.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  #bereiche::before, #bereiche::after, #prozess::before, #partner::before,
  .bl-node, .bl-spark, #prozess .proc::before, #prozess .proc-node, #prozess .proc-ring,
  #prozess .proc-seg, #prozess .proc-stub, #prozess .proc-spark,
  #erstgespraech .cta-sheen, #erstgespraech .cta-beam,
  #erstgespraech .consult-steps::before, #erstgespraech .consult-steps li::before {
    animation: none !important;
  }
  .bl-spark, #prozess .proc-spark { opacity: 0; }
  .hero-media-sheen::before, #selbst-checks .tool-card::before { display: none; }
}
.no-anim #bereiche::before, .no-anim #bereiche::after, .no-anim #prozess::before, .no-anim #partner::before,
.no-anim .bl-node, .no-anim .bl-spark,
.no-anim #prozess .proc::before, .no-anim #prozess .proc-node, .no-anim #prozess .proc-ring,
.no-anim #prozess .proc-seg, .no-anim #prozess .proc-stub, .no-anim #prozess .proc-spark,
.no-anim #erstgespraech .cta-sheen, .no-anim #erstgespraech .cta-beam,
.no-anim #erstgespraech .consult-steps::before, .no-anim #erstgespraech .consult-steps li::before {
  animation: none !important;
}
.no-anim .bl-spark, .no-anim #prozess .proc-spark { opacity: 0; }

/* =========================================================
   OPT-T3 Fix 4: .tools-grid kollabiert (style.css auto-fit) erst <542px —
   auf der Startseite wirkt 2-spaltig noch bis 542px gequetscht. Index-
   gescopt (die Klasse lädt auch auf 5 Unterseiten, dort unangetastet).
   ========================================================= */
@media (max-width: 640px) {
  #selbst-checks .tools-grid { grid-template-columns: 1fr; }
}

/* Solar & Haustechnik (Referenz seit 09/2026): breites Wortmarken-Logo — kein
   Kreis-Mask (würde „Solar"/„Haustechnik" an den Rändern kappen), warmer Saum. */
#praxis .logotile img[src*="solar-haustechnik"] { width: 176px; filter: drop-shadow(0 10px 22px rgba(245, 166, 35, .42)); }
#praxis .logotile:hover img[src*="solar-haustechnik"] { filter: drop-shadow(0 16px 28px rgba(245, 166, 35, .55)); }
#praxis .logo-carousel.is-enhanced .logotile img[src*="solar-haustechnik"] { width: min(100%, 240px); -webkit-mask-image: none; mask-image: none; }
@media (max-width: 720px) { #praxis .logotile img[src*="solar-haustechnik"] { width: 150px; } }
/* Statisches Raster (No-JS/reduced-motion): einzelne letzte Kachel mittig statt linksbündig. */
@media (min-width: 721px) { #praxis .logo-carousel:not(.is-enhanced) .logocol:last-child:nth-child(3n+1) { grid-column: 2; } }
