/* =========================================
   Beyond Steps – OE WOZU (V2) ✅
   - NEW: Markierung per :root Variablen (sichtbarer)
   - NEW: "Weiter"-Button unten rechts im Panel (nur wenn href != "")
   - FIX: kein Focus-/Klick-Rahmen (outline) auf SVG-Hits
   - NO-FLASH: Default transparent, nur Fill/Stroke wechseln
========================================= */

:root {
  /* Layout */
  --bs-oew-gap: 18px;
  --bs-oew-panel-col: 0.92fr;
  --bs-oew-svg-col: 1.08fr;

  /* Title */
  --bs-oew-gap-title-to-bam: 20px;

  /* Spacing */
  --bs-oew-section-pad-y: 28px;
  --bs-oew-intro-gap: 14px;

  --bs-oew-gap-intro-to-first-header: 25px;
  --bs-oew-gap-list-to-header: 25px;
  --bs-oew-gap-subline-to-list: 0px;

  --bs-oew-bam-min-height: 190px;

  --bs-oew-content-top-gap: 6px;
  --bs-oew-list-line-height: 17px;

  /* SVG */
  --bs-oew-svg-radius: 0px;

  /* ===== Markierung (sichtbarer, einstellbar) =====
     Hinweis: Das ist ein Overlay -> Text im SVG wird leicht gedimmt (wie beim Prozess).
     Du kannst hier die Stärke feinjustieren. */
  --bs-oew-mark: rgba(39, 212, 255, 0.22);         /* Hover Fill */
  --bs-oew-mark-strong: rgba(39, 212, 255, 0.32);  /* Active Fill */
  --bs-oew-stroke: rgba(39, 212, 255, 0.70);       /* Hover Stroke */
  --bs-oew-stroke-strong: rgba(39, 212, 255, 0.92);/* Active Stroke */
  --bs-oew-glow: rgba(39, 212, 255, 0.18);         /* Active Glow */

  /* ===== Weiter Button ===== */
  --bs-oew-weiter-h: 38px;
  --bs-oew-weiter-radius: 12px;
}

/* ---------- Section Wrapper ---------- */

.bs-oe-wozu {
  width: 100%;
  max-width: var(--bs-oe-max-width, 1200px);
  margin-inline: auto;
  padding-inline: var(--bs-oe-padding-x, 24px);
  padding-block: var(--bs-oew-section-pad-y);
}

/* ---------- Intro ---------- */

#oewTitle {
  margin-bottom: var(--bs-oew-gap-title-to-bam);
}

.oew-intro {
  margin-bottom: var(--bs-oew-intro-gap);
}

.oew-headline {
  margin: 0 0 10px 0;
  font-size: 1.6rem;
  font-family: "Bebas Neue", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.25;
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: uppercase;
}

.oew-lead {
  margin: 0;
  max-width: 78ch;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.9;
}

/* ---------- Main Layout ---------- */

.oew-layout {
  display: grid;
  grid-template-columns: var(--bs-oew-panel-col) var(--bs-oew-svg-col);
  gap: var(--bs-oew-gap);
  align-items: start;
}

/* ---------- Panel ---------- */

.oew-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bs-oew-content-top-gap);
}

/* Kleine, kontrollierte Vertikalabstände innerhalb der Content-Box */
.oew-content > * + * {
  margin-top: var(--bs-oew-content-top-gap);
}

/* Abstand von Liste -> nächster Subheader */
.oe-panel__list + .oe-panel__sub {
  margin-top: var(--bs-oew-gap-list-to-header);
}

/* Abstand Linie -> Liste steuerbar */
.oe-panel__sub::after {
  margin-bottom: var(--bs-oew-gap-subline-to-list);
}

/* ---- FIX: BAM reserviert Höhe ---- */
#oewBam {
  white-space: pre-line;
  display: block;
  min-height: var(--bs-oew-bam-min-height);
  margin: 0;
}

/* Abstand BAM -> erster Subheader */
#oewBam + .oe-panel__sub {
  margin-top: var(--bs-oew-gap-intro-to-first-header);
}

/* Bullet-Zeilenabstand parametrierbar */
#oewList1 li,
#oewList2 li,
#oewList3 li {
  line-height: var(--bs-oew-list-line-height);
}

/* Kill default UL margins */
#oewList1,
#oewList2,
#oewList3 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-left: var(--bs-oe-list-indent, 18px);
}

/* ---------- NEW: Weiter Button (im Panel) ---------- */
/* wir hängen ihn in .bs-oe__panel -> braucht position:relative */
.bs-oe__panel {
  position: relative;
  padding-bottom: 62px; /* Platz für Button */
}

.oew-weiter {
  position: absolute;
  right: 16px;
  bottom: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: var(--bs-oew-weiter-h);
  padding: 0 16px;
  border-radius: var(--bs-oew-weiter-radius);

  text-decoration: none;
  font-size: 14px;
  font-weight: 600;

  color: rgba(255,255,255,0.92);
  background: rgba(9, 28, 39, 0.35);
  border: 1px solid rgba(255,255,255,0.12);

  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);

  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.oew-weiter.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.oew-weiter:hover {
  background: rgba(39, 212, 255, 0.12);
  border-color: rgba(39, 212, 255, 0.38);
  box-shadow: 0 0 12px rgba(39, 212, 255, 0.18);
}

/* ---------- SVG Wrapper ---------- */

.oew-svg-wrapper {
  border-radius: var(--bs-oew-svg-radius);
  overflow: hidden;
}

.oew-svg-wrapper svg {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================
   SVG Hit Areas (NO-FLASH + sichtbarer)
========================================= */

.oew-hit {
  cursor: pointer;
  pointer-events: all;

  /* FIX: kein Browser-Focusrahmen */
  outline: none !important;

  /* NO-FLASH: niemals opacity animieren */
  opacity: 1;

  /* Default: komplett transparent */
  fill: rgba(0,0,0,0) !important;
  stroke: rgba(0,0,0,0);
  stroke-width: 0;

  filter: none;
  transition: fill 140ms ease, stroke 140ms ease, filter 160ms ease;
}

.oew-hit:focus,
.oew-hit:focus-visible {
  outline: none !important;
}

/* Hover */
.oew-hit.is-hover {
  fill: var(--bs-oew-mark) !important;
  stroke: var(--bs-oew-stroke);
  stroke-width: 1.6;
  filter: none; /* ruhig */
}

/* Active */
.oew-hit.is-active {
  fill: var(--bs-oew-mark-strong) !important;
  stroke: var(--bs-oew-stroke-strong);
  stroke-width: 2.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px var(--bs-oew-glow));
}

/* Active bleibt stärker */
.oew-hit.is-active.is-hover {
  fill: var(--bs-oew-mark-strong) !important;
  stroke: var(--bs-oew-stroke-strong);
  stroke-width: 2.4;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .oew-layout {
    grid-template-columns: 1fr;
  }

  .oew-svg-wrapper {
    order: 2;
  }

  .oew-panel {
    order: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oew-hit,
  .oew-weiter {
    transition: none;
  }
}
