/* =========================================
   Beyond Steps – OE Prozess (V2)
   - NEW: "Weiter" button (bottom-right, only visible when JS adds .is-visible)
   - NEW: stronger hover/active mark in cyan-glow style (works on all backgrounds)
   ========================================= */

/* --------------- root ---------------- */
:root {
  --oe-prozess-panel-height: 300px;
  --oe-prozess-bullet-gap: 1px;
  --oe-prozess-bullet-line-height: 1.1;

  /* Markierung (Wheel-Style) */
  /* Markierung – Hintergrund dunkler, Text bleibt klar */
  --oe-prozess-mark: rgba(20, 90, 120, 0.18);
  --oe-prozess-mark-strong: rgba(20, 90, 120, 0.26);

  --oe-prozess-stroke: rgba(90, 160, 190, 0.70);     /* mehr Kontur = bessere Abgrenzung */
  --oe-prozess-stroke-strong: rgba(90, 160, 190, 0.90);

  --oe-prozess-glow: rgba(20, 90, 120, 0.12);        /* Glow stark reduziert */
  --oe-prozess-glow-strong: rgba(20, 90, 120, 0.22);

}

/* ---------- Section Wrapper ---------- */
.bs-oe-prozess {
  width: 100%;
  max-width: var(--bs-oe-max-width, 1200px);
  margin-inline: auto;
  padding-inline: var(--bs-oe-padding-x, 24px);
  padding-block: 28px 42px;
}

.oe-prozess-intro {
  margin-bottom: 18px;
}

.oe-prozess-headline {
  margin: 0 0 10px 0;
  font-family: "Bebas Neue", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: uppercase;
}

.oe-prozess-lead {
  margin: 0;
  max-width: 87ch;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.9;
}

/* ---------- SVG Wrapper ---------- */
.oe-prozess-svg-wrapper {
  margin-top: 16px;
  margin-bottom: 18px;
  border-radius: 0px;
  overflow: hidden;
}

.oe-prozess-svg-wrapper svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Alle SVG-Elemente sollen keine Maus-Events fangen ... */
.oe-prozess-svg-wrapper svg * {
  pointer-events: none;
}

/* ... außer unsere Hit-Flächen */
.oe-prozess-svg-wrapper svg .oe-prozess-hit {
  pointer-events: all;
}

/* ---------- Panel (Textbox) ---------- */
.oe-prozess-panel {
  position: relative; /* <-- für Button Position */
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.2fr;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(9, 28, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: var(--oe-prozess-panel-height);
  padding-bottom: 62px; /* Platz für den Button */
}

.oe-prozess-panel::before {
  content: none !important;
}

.oe-prozess-col {
  min-width: 0;
  overflow-y: auto;
}

.oe-prozess-col--impact {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-left: none;
  border-left: 1px solid rgb(9, 28, 39);
}

.oe-prozess-title {
  margin: 0 0 10px 0;
  font-size: 18px;
  line-height: 1.25;
}

.oe-prozess-bam {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.9;
  max-width: 40ch;
  white-space: pre-line;
}

.oe-prozess-subheadline {
  margin: 0 0 10px 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.oe-prozess-subheadline--spaced {
  margin-top: 16px;
}

.oe-prozess-list {
  margin-bottom: var(--oe-prozess-bullet-gap);
  padding-left: 18px;
}

.oe-prozess-list li {
  margin: 0 0 8px 0;
  line-height: var(--oe-prozess-bullet-line-height);
  font-size: 14px;
  opacity: 0.95;
}

.oe-prozess-list li:last-child {
  margin-bottom: 0;
}

/* ---------- Linie für Header ---------- */
.oe-prozess-subheadline::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.22),
    rgba(255,255,255,0)
  );
  margin-top: 10px;
}

/* ---------- NEW: Weiter Button ---------- */
.oe-prozess-weiter {
  position: absolute;
  right: 16px;
  bottom: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 38px;
  padding: 0 16px;

  border-radius: 12px;
  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);

  box-shadow: 0 0 0 rgba(0,0,0,0);
  opacity: 0;
  pointer-events: none;

  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  transform: translateY(2px);
}

.oe-prozess-weiter.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.oe-prozess-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);
}

/* ---------- Responsive (Mobile Stack) ---------- */
@media (max-width: 860px) {
  .oe-prozess-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .oe-prozess-col--impact {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
  }

  .oe-prozess-bam {
    max-width: none;
  }
}

/* =========================================
   SVG Interaction States (V2 – markanter)
   - JS toggles .is-hover / .is-active on those rects
   ========================================= */
.oe-prozess-hit {
  cursor: pointer;
  pointer-events: all;

  /* WICHTIG: nie opacity animieren */
  opacity: 1;

  /* Default: komplett transparent, damit kein "schwarz" aufblitzt */
  fill: rgba(0,0,0,0) !important;
  stroke: rgba(0,0,0,0);
  stroke-width: 0;

  filter: none;

  /* Nur fill/stroke/filter weich animieren */
  transition: fill 140ms ease, stroke 140ms ease, filter 160ms ease;
}

/* Hover preview */
.oe-prozess-hit.is-hover {
  fill: var(--oe-prozess-mark) !important;
  stroke: var(--oe-prozess-stroke);
  stroke-width: 1.4;

  /* optional: wenn Glow beim Hover stört -> none lassen */
  filter: none;
}

/* Active (locked) */
.oe-prozess-hit.is-active {
  fill: var(--oe-prozess-mark-strong) !important;
  stroke: var(--oe-prozess-stroke-strong);
  stroke-width: 2.2;
  stroke-linejoin: round;

  filter: drop-shadow(0 0 10px var(--oe-prozess-glow-strong));
}

/* If both present, keep active stronger */
.oe-prozess-hit.is-active.is-hover {
  fill: var(--oe-prozess-mark-strong) !important;
  stroke: var(--oe-prozess-stroke-strong);
  stroke-width: 2.2;
}

/* Optional: Focus ring (falls später tabindex) */
.oe-prozess-hit:focus {
  outline: none;
}

.oe-prozess-hit:focus-visible {
  opacity: 1;
  fill: var(--oe-prozess-mark-strong) !important;
  stroke: var(--oe-prozess-stroke-strong);
  stroke-width: 2.2;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .oe-prozess-hit,
  .oe-prozess-weiter {
    transition: none;
  }
}
