/* =========================================
   Beyond Steps – OE Was ist das? (MASTER CLEAN)
   - SVG Navigation links
   - Textpanel rechts (CSS Grid, No Jitter)
   - Hover + Active States via JS
   ========================================= */

/* --------------- root ---------------- */
:root {
  --oe-was-gap: 22px;
  --oe-was-panel-pad: 22px;

  /* Typo & Rhythmus */
  --oe-was-title-gap: 14px;
  --oe-was-subhead-gap-top: 12px;
  --oe-was-subhead-gap-bottom: 10px;
  --oe-was-rule-gap: 10px;

  /* Fazit */
  --oe-was-fazit-block-gap: 18px;
  --oe-was-fazit-text-gap: 8px;

  /* Panel-Größe & Luft (PARAMETER) */
  --oe-was-panel-pad: 22px;

  /* Fixe Y-Startpunkte (PARAMETER) */
  --oe-was-y-intro: 50px;
  --oe-was-y-list: 200px;
  --oe-was-y-fazit: 480px;

  /* optional: feinere Luft */
  --oe-was-zone-width: auto;


}

/* ---------- Section Wrapper ---------- */
.bs-oe-was {
  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;
}

/* ---------- Layout Grid ---------- */
.oe-was-layout {
  display: grid;
  grid-template-columns: minmax(340px, 440px) 1fr;
  gap: var(--oe-was-gap);
  align-items: stretch;
}

/* ---------- SVG Wrapper ---------- */
.oe-was-svg-wrapper {
  overflow: visible; /* wichtig: nichts clippen */
  border-radius: 0px;
}

.oe-was-svg-wrapper svg {
  display: block;
  width: 100%;
  height: auto; /* SVG bestimmt die Höhe */
}

/* Default: SVG soll keine Pointer-Events fangen ... */
.oe-was-svg-wrapper svg * {
  pointer-events: none;
}

/* ... außer unsere Hit-Flächen */
.oe-was-svg-wrapper svg .oe-was-hit {
  pointer-events: all;
}

/* ---------- Panel (Textbox) ---------- */
/* Panel = Koordinatensystem */
.oe-was-panel{
  position: relative;
  overflow: hidden;   /* du willst Überlappung im Panel, nicht außen */
  min-height: 100%;
  padding: var(--oe-was-panel-pad);
}

/* Jede Zone wird absolut gepinnt */
.oe-was-zone{
  position: absolute;
  left: var(--oe-was-panel-pad);
  right: var(--oe-was-panel-pad);
}

.bs-oe-was .oe-was-zone,
.bs-oe-was .oe-was-zone * {
  box-sizing: border-box;
}

/* FIXED Y Positions */
.oe-was-zone--intro{ top: var(--oe-was-y-intro); }
.oe-was-zone--list{  top: var(--oe-was-y-list);  }
.oe-was-zone--fazit{ top: var(--oe-was-y-fazit); }

/* UL Defaults kontrollieren */
.oe-was-list{
  margin: 0;
  padding-left: 18px;
  overflow: visible; /* kein Scroll, du willst Overlap zulassen */
}

.bs-oe-was .oe-was-panel{ position: relative; }

.bs-oe-was .oe-was-zone{
  position: absolute;
  left: var(--oe-was-panel-pad);
  right: var(--oe-was-panel-pad);
}

.bs-oe-was .oe-was-zone--intro{ top: var(--oe-was-y-intro); }
.bs-oe-was .oe-was-zone--list{  top: var(--oe-was-y-list);  }
.bs-oe-was .oe-was-zone--fazit{ top: var(--oe-was-y-fazit); }

.bs-oe-was #oeWasTitle,
.bs-oe-was #oeWasIntro{
  margin: 0;
}
.bs-oe-was #oeWasIntro{ margin-top: 12px; }

.oe-was-intro,
.oe-was-fazit,
.oe-was-list {
  padding-right: 2px; /* Mikro-Ausgleich für Font-Rendering */
}


/* ---------- Grid placement (IDs bleiben stabil) ---------- */
#oeWasTitle { grid-row: 1; }
#oeWasIntro { grid-row: 2; }
#oeWasSubhead { grid-row: 3; }

#oeWasList {
  grid-row: 4;

  /* DER einzige Bereich, der wachsen & scrollen darf */
  min-height: 0;
  overflow: auto;

  /* UL defaults kontrollieren */
  margin: 0;
  padding-left: 18px;
}

.oe-was-fazit-title { grid-row: 5; }
#oeWasFazit {
  grid-row: 6;
  margin-top: var(--oe-was-fazit-text-gap); /* Abstand Linie -> Text */
}

/* ---------- Typo ---------- */
.oe-was-title {
  margin: 0 0 var(--oe-was-title-gap) 0;
  font-family: "Bebas Neue", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: uppercase;
}

.oe-was-intro {
  margin: 0 0 var(--oe-was-title-gap) 0;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.92;
  white-space: pre-line;
}

.oe-was-subhead {
  margin: var(--oe-was-subhead-gap-top) 0 var(--oe-was-subhead-gap-bottom) 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.oe-was-subhead::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: var(--oe-was-rule-gap);
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.22),
    rgba(255,255,255,0)
  );
}

/* Liste */
.oe-was-list li {
  margin: 0 0 8px 0;
  line-height: 1.35;
  font-size: 16px;
  opacity: 0.95;
}

.oe-was-list li:last-child {
  margin-bottom: 0;
}

/* ---------- Fazit: feste Überschrift + Linie ---------- */
.oe-was-fazit-title {
  margin-top: var(--oe-was-fazit-block-gap);
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.oe-was-fazit-title::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: var(--oe-was-rule-gap);
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.22),
    rgba(255,255,255,0)
  );
}

.oe-was-fazit {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.95;
  white-space: pre-line;
}

.oe-was-fazit strong {
  font-weight: 700;
}

/* =========================================
   SVG Interaction States
   Requirements:
   - SVG contains rects with class "oe-was-hit"
   - JS toggles .is-hover / .is-active
   ========================================= */

.oe-was-hit {
  cursor: pointer;
  transition: opacity 120ms ease, filter 160ms ease;
  opacity: 0; /* overlay rects are invisible by default */

  fill: #000;
  fill-opacity: 1;
}

/* Hover preview */
.oe-was-hit.is-hover {
  opacity: 0.08;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

/* Active (locked) */
.oe-was-hit.is-active {
  opacity: 0.12;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.oe-was-hit.is-active.is-hover {
  opacity: 0.14;
}



/* ===== OE WAS – SVG Look (soft, weniger dominant) ===== */

/* sichtbare Buttons */
.bs-oe-was .oe-was-btn{
  fill: url(#oeWasNavGradient);
  stroke-width: 0;
}

/* Subtile Gesamt-Tiefe (nicht zu stark) */
.bs-oe-was .oe-was-svg-wrapper svg{
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.22));
}

/* kleine Trennlinie (optional, gibt Struktur ohne Härte) */
.bs-oe-was svg{
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.25)); /* sehr subtil */
}

/* Hover/Active: sanfte Tiefe, nicht “Block” */
.bs-oe-was .oe-was-hit{
  transition: opacity 160ms ease, transform 160ms ease;
}

.bs-oe-was .oe-was-hit.is-hover{
  opacity: 0.08;                     /* sanft */
}

.bs-oe-was .oe-was-hit.is-active{
  opacity: 0.12;                     /* etwas stärker */
}

/* Optional: Mini-Lift beim Hover (wirkt weniger “statisch”) */
.bs-oe-was .oe-was-hit.is-hover{
  transform: translateY(-0.4px);
}

.bs-oe-was .oe-was-hit.is-active.is-hover{
  opacity: 0.14;
}




/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .oe-was-layout {
    grid-template-columns: 1fr;
  }

  .oe-was-panel {
    min-height: auto;
  }

  #oeWasList {
    max-height: 320px; /* auf Mobile: nicht endlos hoch */
  }
}
