/* =========================
   BEYOND STEPS — OE Wheel
   styles-oe.css (MASTER)
   =========================

   WICHTIG:
   - Der „zu große Abstand“ kam in deinem aktuellen Master sehr wahrscheinlich
     von (a) doppelten/konkurrierenden Spacing-Regeln und (b) einem kaputten
     CSS-Block (fehlende schließende Klammer), wodurch Browser teils auf
     Default-Margins (h4/ul) zurückfielen.

   Diese Version:
   - ist syntaktisch sauber
   - definiert EINEN Spacing-Mechanismus
   - sorgt dafür, dass Impact & Enables identisch aussehen
*/

:root {
  /* ===== Layout (Grid rechts/links) ===== */
  /* ===== Layout ===== */
  --bs-oe-max-width: var(--bs-sub-layout-max-width, 1400px);
  --bs-oe-padding-x: var(--bs-sub-layout-padding-x, 24px);
  
  --bs-oe-gap: 24px;                                            /* Abstand Wheel ↔ Panel */
  --bs-oe-wheel-max: 720px;                                     /* max. Wheel-Größe */

  /* ===== Panel Look ===== */
  --bs-oe-panel-radius: 22px;
  --bs-oe-panel-border: 1px solid rgba(255,255,255,.0);
  --bs-oe-panel-bg: rgba(8, 28, 38, .55);
  --bs-oe-panel-shadow: 0 12px 40px rgba(0,0,0,.35);

  /* ===== Header-Balken ===== */
  --bs-oe-header-bg: linear-gradient(
    90deg,
    rgba(39, 212, 255, 0.18),
    rgba(39, 212, 255, 0.04)
  );
  --bs-oe-header-border: 2px solid rgba(21, 96, 130, 0);
  --bs-oe-header-radius: 12px;
  --bs-oe-header-pad-y: 24px;
  --bs-oe-header-pad-x: 18px;

  /* ===== Typo ===== */
  --bs-oe-title-size: 20px;
  --bs-oe-text-size: 16px;
  --bs-oe-sub-size: 12px;

  /* ===== Abstände (die „Regler“) ===== */
  --bs-oe-space-title-to-text: 20px;                            /* Header → Text */
  --bs-oe-space-text-to-impact: 3px;                            /* Text → Impact-Subheader */
  --bs-oe-space-impact-to-enables: 33px;                        /* Ende Impact-Block → Enables-Subheader */
  --bs-oe-space-enables-to-work: 33px;                          /* Ende Enables-Block → Work-Subheader */


  --bs-oe-space-sub-to-line: 8px;                               /* Subheader → Linie */
  --bs-oe-space-sub-to-list: 10px;                              /* Subheader-Linie → erste Bullet */
  --bs-oe-space-line-to-list: var(--bs-oe-space-sub-to-list);

  --bs-oe-li-gap: 5px;                                          /* Abstand zwischen Bullets */

  --oed-title-to-svg: 14px;                                     /* hier stellst du den Abstand ein Detail Site Header VS Kasten
  */

  /* ===== Stabilität (gegen „Zittern“) ===== */
  --bs-oe-text-min: 108px;                                      /* Min-Höhe Textblock */
  --bs-oe-list-min: 20px;                                       /* Min-Höhe je Liste */

  /* ===== Fade ===== */
  --bs-oe-fade-ms: 120ms;

  /* ===== wheel details desc-box ===== */
  --oed-bam-color: rgba(245, 248, 248, 0.92);         /* Box #1 Textfarbe */
  --oed-body-color: rgba(173, 223, 226, 0.86);        /* Box #2-4 Textfarbe */
  --oed-head-color: rgba(255, 255, 255, 0.92);        /* Headerfarbe */
  --oed-bam-head-color:  rgba(255, 255, 255, 1);      /* Headerfarbe */

  --oed-head-to-list: 3px;                        /* (h) Abstand Header → Bullets (default klein) */
  --oed-li-gap: 5px;                              /* Bullet-Abstand untereinander */

  --oed-head-line-a: rgba(39,212,255,0.70);       /* (d) Gradient-Linie */
  --oed-head-line-b: rgba(39,212,255,0.18);
  --oed-head-line-c: rgba(39,212,255,0.00);

  --oed-bam-font-size: 14px; /* BAM Text Größe (steuerbar) */


  /* ===== Section Divider (WAS → WIE → WOZU) ===== */
  --bs-divider-max-width: var(--bs-oe-max-width, 1200px);
  --bs-divider-padding-x: var(--bs-oe-padding-x, 24px);
  --bs-divider-margin-y: 64px;

  --bs-divider-gap: 18px;               /* Abstand Text ↔ Linien */
  --bs-divider-line-h: 1px;             /* Linienhöhe */
  --bs-divider-line-alpha: 0.55;        /* Sichtbarkeit */
  --bs-divider-text-size: 13px;
  --bs-divider-text-opacity: 0.78;
}

/* =========================
   Layout Wrapper
   ========================= */

.bs-oe {
  width: 100%;
  max-width: var(--bs-oe-max-width);
  margin-inline: auto;
  padding-inline: var(--bs-oe-padding-x);
}

.bs-oe__layout {
  display: grid;
  /*grid-template-columns: minmax(320px, var(--bs-oe-wheel-max)) 1fr;*/
  grid-template-columns: minmax(0, var(--bs-oe-wheel-max)) 1fr;
  gap: var(--bs-oe-gap);
  align-items: start;
}


/* Wheel Wrapper — robust (beide Klassen abfangen) */
.bs-oe__wheel-wrap,
.bs-oe-wheel-wrap {
  width: min(100%, var(--bs-oe-wheel-max));
  justify-self: center;          /* zentriert im Grid */
}

svg.bs-oe-wheel {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Panel
   ========================= */

.bs-oe__panel {
  border-radius: var(--bs-oe-panel-radius);
  border: var(--bs-oe-panel-border);
  background: var(--bs-oe-panel-bg);
  box-shadow: var(--bs-oe-panel-shadow);
  padding: 26px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

/* optional: sanfter „Glow“ */
.bs-oe__panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 220px;
  background: radial-gradient(circle at 30% 40%, rgba(21,96,130,.35), transparent 60%);
  pointer-events: none;
  filter: blur(10px);
  opacity: .6;
}

/* ===== Fade-Animation (JS toggelt .is-fading am Panel) ===== */
.bs-oe__panel.is-fading {
  opacity: .65;
  transform: translateY(2px);
  transition: opacity var(--bs-oe-fade-ms) ease, transform var(--bs-oe-fade-ms) ease;
}

/* Meta (ID) optional */
.oe-panel__meta {
  font-size: 12px;
  opacity: .55;
  margin-bottom: 10px;
}

/* Header-Balken */
.oe-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--bs-oe-title-size);
  letter-spacing: .6px;
  text-transform: uppercase;
  background: var(--bs-oe-header-bg);
  border: var(--bs-oe-header-border);
  border-radius: var(--bs-oe-header-radius);
  padding: var(--bs-oe-header-pad-y) var(--bs-oe-header-pad-x);
}

/* Haupttext */
.oe-panel__text {
  margin: var(--bs-oe-space-title-to-text) 0 0 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--bs-oe-text-size);
  line-height: 1.55;
  min-height: var(--bs-oe-text-min);
}

/* Subheader (Impact/Enables) */
.oe-panel__sub {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--bs-oe-sub-size);
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}

/* Abstand vor dem jeweiligen Subheader */
#oePanelImpactTitle.oe-panel__sub {
  margin-top: var(--bs-oe-space-text-to-impact);
}

#oePanelEnablesTitle.oe-panel__sub {
  margin-top: var(--bs-oe-space-impact-to-enables);
}

#oePanelWorkTitle.oe-panel__sub {
  margin-top: var(--bs-oe-space-enables-to-work);
}

/* Linie unter Subheader */
.oe-panel__sub::after {
  content: "";
  display: block;
  height: 1px;
    background: linear-gradient(
    to right,
    rgba(255,255,255,0.22),
    rgba(255,255,255,0)
  );
  margin-top: var(--bs-oe-space-sub-to-line);
}

/* Lists */
.oe-panel__list {
  /* WICHTIG: hier entsteht der Abstand „Linie → Bullets“ */
  margin: 0;
  padding: var(--bs-oe-space-line-to-list) 0 0 18px;

  min-height: var(--bs-oe-list-min);

  display: grid;
  gap: var(--bs-oe-li-gap);

  list-style: disc;
  list-style-position: outside;

  font-family: var(--font-text);
  font-weight: 400;
}

/* reset: keine versteckten UA-margins bei li */
.oe-panel__list li {
  margin: 0;
}

/* =========================
   Hit-Flächen Cursor
   ========================= */

.bs-oe-hit {
  cursor: pointer;
}


/* ===== Section Divider (WAS → WIE → WOZU) ===== */
.bs-divider{
  width: 100%;
  max-width: var(--bs-divider-max-width);
  margin: var(--bs-divider-margin-y) auto;
  padding-inline: var(--bs-divider-padding-x);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--bs-divider-gap);
}

.bs-divider::before,
.bs-divider::after{
  content: "";
  flex: 1;
  height: var(--bs-divider-line-h);
  opacity: var(--bs-divider-line-alpha);
}

.bs-divider::before{
  background: linear-gradient(
    to right,
    rgba(255,255,255,0),
    rgba(255,255,255,1)
  );
}

.bs-divider::after{
  background: linear-gradient(
    to left,
    rgba(255,255,255,0),
    rgba(255,255,255,1)
  );
}

.bs-divider__text{
  font-family: var(--font-text);
  font-size: clamp(12px, 1.0vw, var(--bs-divider-text-size));
  line-height: 1.5;

  letter-spacing: 0.04em;          /* weniger “Label”, mehr Fluss */
  opacity: var(--bs-divider-text-opacity);

  white-space: nowrap;
  text-align: center;

  font-style: italic;              /* poetischer Ton */

}


/* =================================
   SEHEN - GEHEN - SPÜREN - Chapter
   ================================= */

/* ===== Kapitelmarker: Sehen → Gehen → Spüren ===== */

.oe-chapter {
  margin: 48px 0 16px 0;
  text-align: left;
}

.oe-chapter__key {
  font-size: 12px;
  letter-spacing: 0.22em;
  opacity: 0.55;
  margin-bottom: 6px;
}

.oe-chapter__sub {
  font-size: 14px;
  opacity: 0.65;
  max-width: 520px;
}


/* =========================
   OE Wheel Details — Content Block
   ========================= */

.oed-details{
  width: 100%;
  max-width: var(--bs-oe-max-width, 1200px);
  margin-inline: auto;
  padding-inline: var(--bs-oe-padding-x, 24px);
  padding-block: 24px 64px;
}

.oed-grid-2x3{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-top: 18px;
  margin-bottom: 22px;
}

.oed-grid-2x3__head{
  font-weight: 700;
  letter-spacing: .2px;
  opacity: .95;
}


/* =========================
   OE Wheel Details — SVG full width like other pages
   ========================= */

.oed-svg-wrap{
  width: 100%;
  max-width: var(--bs-sub-layout-max-width, 1400px);  /* nutzt Standardbreite */
  margin-inline: auto;                                /* zentriert */
  padding-inline: var(--bs-oe-padding-x, 24px);
}

.oed-svg{
  width: 100%;
  height: auto;              /* proportional skalieren */
  display: block;
}





/* foreignObject Container */
.oed-cell{
  font-family: var(--font-text);   /* InterLocal */
  font-weight: 400;
  font-size: 13px;
  color: var(--oed-body-color);
  line-height: 1.45;
  padding: 10px 12px;
  box-sizing: border-box;
}

/* Box #1: BAM (f,g,i) */
.oed-cell--bam{
  color: var(--oed-bam-color);
}
.oed-bam{
  margin: 0;
  margin-bottom: 25px;
  font-size: var(--oed-bam-font-size);
  line-height: 1.55;
}

/* Header in Box #2-4 + Gradient-Linie (d) */
.oed-cell__head{
  margin: 0;
  color: var(--oed-head-color);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
}

.oed-cell__head::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: linear-gradient(
    90deg,
    var(--oed-head-line-a) 0%,
    var(--oed-head-line-b) 55%,
    var(--oed-head-line-c) 100%
  );
  opacity: 0.9;
}

/* Bullets (h) */
.oed-list{
  margin: 0;
  padding-left: 18px;
  padding-top: var(--oed-head-to-list);
  display: grid;
  gap: var(--oed-li-gap);
  list-style: disc;
}
.oed-list li{
  margin: 0;
}

.oed-bam-head{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 6px;
  color: var(--oed-bam-head-color);
}


/* =========================
   Wheel-Details: shared container (Header + SVG gleiche Kante)
   ========================= */

.oed-container{
  width: 100%;
  max-width: var(--bs-oe-max-width);     /* = 1400px */
  margin-inline: auto;
  padding-inline: var(--bs-oe-padding-x);
}

/* SVG-Wrapper: keine eigene Max-Width mehr, Container macht das */
.oed-svg-wrap{
  max-width: none;
  padding-inline: 0;
}



.oed-list--details{
  margin-top: 6px;
}


/* =========================
   OE Prozess-Headline
   ========================= */

.oe-prozess-headline {
  margin: 0 0 var(--oed-title-to-svg);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
}

/* =========================
   OE Wheel — Hover / Active Highlight
   ========================= */

/* kein Browser-Outline bei focus (SVG) */
.bs-oe-hit:focus{
  outline: none;
}

/* Hover = Preview (leicht) */
.bs-oe-hit:hover{
  fill: rgba(39,212,255,0.18) !important;
  fill-opacity: 1 !important;
  stroke: rgba(39,212,255,0.55);
  stroke-width: 0.2;
  filter: drop-shadow(0 0 8px rgba(39,212,255,0.22));
}

/* Active = Freeze (markanter) */
.bs-oe-hit.is-active{
  fill: rgba(39,212,255,0.26) !important;
  fill-opacity: 1 !important;
  stroke: rgba(39,212,255,0.85);
  stroke-width: 0.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(39,212,255,0.35));
}

/* =========================
   OE Wheel — "Weiter" Button im Panel
   ========================= */

.bs-oe__panel.has-more-btn{
  position: relative;
  padding-bottom: 62px;
}

.bs-oe-more{
  position: absolute;
  right: 18px;
  bottom: 16px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 12px;

  font-family: var(--font-text);
  font-size: 13px;
  letter-spacing: 0.04em;

  color: rgba(245,248,248,0.92);
  background: linear-gradient(90deg, rgba(39,212,255,0.16), rgba(39,212,255,0.06));
  border: 1px solid rgba(255,255,255,0.10);

  cursor: pointer;
  user-select: none;

  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease, border-color 120ms ease;
}

.bs-oe-more:hover{
  transform: translateY(-1px);
  background: linear-gradient(90deg, rgba(39,212,255,0.22), rgba(39,212,255,0.08));
  border-color: rgba(255,255,255,0.16);
}

.bs-oe-more:active{
  transform: translateY(0);
}

.bs-oe-more.is-hidden{
  opacity: 0;
  pointer-events: none;
}


/* Mobile: untereinander */
@media (max-width: 820px){
  .oed-grid-2x3{
    grid-template-columns: 1fr;
  }
}




/* =========================
   Responsive
   ========================= */

@media (max-width: 1100px) {
  .bs-oe__layout {
    grid-template-columns: 1fr;
  }

  .bs-oe__wheel-wrap,
  .bs-oe-wheel-wrap {
    margin: 0 auto;
  }
}



/* ================================
   OE WOZU – Mobile Reihenfolge fix
   (SVG zuerst, dann Textbox)
================================ */
@media (max-width: 900px) {
  .bs-oe-wozu .oew-layout{
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .bs-oe-wozu .oew-svg-wrapper{
    order: 1;
    width: 100%;
  }

  .bs-oe-wozu .oew-panel{
    order: 2;
    width: 100%;
  }
}
