/*
 Theme Name:     Divi Child Theme
 Theme URI:      http://www.elegantthemes.com
 Description:    Child Theme for Divi Theme by Elegant Themes
 Author:         Divi.world
 Author URI:     http://divi.world
 Template:       Divi
 Version:        1.0.0
*/

/* ==========================================
   LOCAL FONT – ROBOTO
   ========================================== */

@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-variable-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
}
 
/* =Ab hier kannst du deine CSS-Anpassungen eintragen
------------------------------------------------------- */

.btn-icon-up::after,
.btn-icon-up:hover::after {
  padding-bottom: 5px;
}

/* stabiler Button ohne Hover-Sprung */
/* btn-stable: Hover-Padding des Divi-Presets überschreiben */
body #page-container .et_pb_section a.et_pb_button.btn-stable,
body #page-container .et_pb_section a.et_pb_button.btn-stable:hover {
  padding: 10px 20px !important;
}

/* ==========================================
   HERO FULLSCREEN (greift automatisch, wenn hero-fullscreen existiert)
   Klassen:
   - Abschnitt: hero-fullscreen
   - Zeile 1:  hero-top
   - Zeile 2:  hero-bottom
   ========================================== */

/* Variablen: kannst du so lassen */
:root{
  --hero-header-offset: 90px;
  --hero-top-offset: clamp(90px, 12vh, 170px);
  --hero-bottom-offset: clamp(18px, 4vh, 56px);

  --hero-content-width: 90%;
  --hero-content-max: 1350px;

  --hero-mobile-btn-gap: 14px;
}

/* 1) Divi-Header-Offset NUR auf Seiten mit Hero-Overlay entfernen */
body.has-hero-overlay #page-container{
  padding-top: 0 !important;
}

/* 2) Hero: wirklich 100vh und Flex-Verteilung */
#page-container .et_pb_section.hero-fullscreen{
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh !important;

  padding-top: 0 !important;
  padding-bottom: 0 !important;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 3) Zeilen: wie dein Standard-Grid */
#page-container .et_pb_section.hero-fullscreen .et_pb_row.hero-top,
#page-container .et_pb_section.hero-fullscreen .et_pb_row.hero-bottom{
  width: var(--hero-content-width) !important;
  max-width: var(--hero-content-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 4) Zeile 1 */
#page-container .et_pb_section.hero-fullscreen .et_pb_row.hero-top{
  margin-top: calc(var(--hero-header-offset) + var(--hero-top-offset)) !important;
  margin-bottom: 0 !important;
}

/* 5) Zeile 2 */
#page-container .et_pb_section.hero-fullscreen .et_pb_row.hero-bottom{
  margin-top: 0 !important;
  margin-bottom: var(--hero-bottom-offset) !important;
}

/* 6) Mobile: Abstand zwischen gestapelten Button-Spalten */
@media (max-width: 767px){
  #page-container .et_pb_section.hero-fullscreen .et_pb_row.hero-bottom .et_pb_column:not(:first-child){
    margin-top: var(--hero-mobile-btn-gap) !important;
  }
}


/* Mittlere Spalte bei Desktop auf 0 setzen */
@media (min-width: 700px){
  .header-cols{
    display: flex;
    align-items: center;
  }

  /* links 30% */
  .header-cols > .et_pb_column:nth-child(1){
    flex: 0 0 35% !important;
    max-width: 35% !important;
  }

  /* mitte bleibt, aber unsichtbar / 0 Breite */
  .header-cols > .et_pb_column:nth-child(2){
    flex: 0 0 0px !important;
    max-width: 0px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
  }

  /* rechts 70% */
  .header-cols > .et_pb_column:nth-child(3){
    flex: 0 0 65% !important;
    max-width: 65% !important;

    /* optional: Inhalt rechts ausrichten */
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}

/* Button Rahmen auf 3 Pixel nach außen */

body #page-container .et_pb_section a.et_pb_button.btn-stable.btn-hover-strong-border{
  border-radius: 6px !important;
  transition: box-shadow 0.2s ease !important;
}

body #page-container .et_pb_section a.et_pb_button.btn-stable.btn-hover-strong-border:hover,
body #page-container .et_pb_section a.et_pb_button.btn-stable.btn-hover-strong-border.toggle-section-btn.is-active{
  box-shadow: 0 0 0 2px currentColor !important;
}

/* Button ohne Änderung des Cursors (für Button mit Linie) */

.et_pb_button.no-pointer{
  pointer-events: none !important;
  cursor: default !important;
}


/* ==========================================
   Hotspot-Basis
   Dateien:
   - /wp-content/uploads/2026/03/hotspot-inaktiv.svg
   - /wp-content/uploads/2026/03/hotspot-aktiv.svg
   ========================================== */

.hotspot-stage{
  position: relative !important;
  overflow: visible !important;
  align-self: flex-start !important;
  height: auto !important;
}

/* Blurb als leerer Hotspot-Container */
.hotspot-stage .hs-trigger{
  position: absolute !important;
  z-index: 20;
  width: 100px !important;
  height: 100px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}

/* komplette Blurb-Inhalte neutralisieren */
.hotspot-stage .hs-trigger .et_pb_blurb_content,
.hotspot-stage .hs-trigger .et_pb_main_blurb_image,
.hotspot-stage .hs-trigger .et_pb_blurb_container{
  display: none !important;
}

/* inaktiver Zustand: 28 x 28 px */
.hotspot-stage .hs-trigger::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  background: url("/wp-content/uploads/2026/03/hotspot-inaktiv.svg") center center / contain no-repeat;
  opacity: 1;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

/* aktiver Zustand: 100 x 100 px */
.hotspot-stage .hs-trigger::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%) scale(0.28);
  transform-origin: center center;
  background: url("/wp-content/uploads/2026/03/hotspot-aktiv.svg") center center / contain no-repeat;
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}

/* zum Testen schon auf Hover sichtbar */
.hotspot-stage .hs-trigger:hover::before,
.hotspot-stage .hs-trigger.is-active::before{
  opacity: 0;
}

.hotspot-stage .hs-trigger:hover::after,
.hotspot-stage .hs-trigger.is-active::after{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ==========================================
   Hotspot-Positionen
   top/left = Mittelpunkt des Hotspots
   ========================================== */

.hotspot-stage .hs-trigger{
  transform: translate(-50%, -50%) !important;
}


/* ==========================================
   Hotspot-Textblöcke weich umschalten
   Rechte Spalte: hs-panel-stage
   ========================================== */

.hs-panel-stage{
  position: relative !important;
}
.hs-panel-stage .hs-panel{
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0s linear 0.28s !important;
}

.hs-panel-stage .hs-panel.is-active{
  position: relative !important;
  top: auto;
  left: auto;
  width: 100% !important;

  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.28s ease,
    visibility 0s linear 0s !important;
}

/* ==========================================
   Umschaltbare Inhalts-Zeilen im Abschnitt
   Nur Fade, keine Höhenanimation
   ========================================== */

.toggle-content-section .toggle-section{
  display: none;
  opacity: 0;
  transition: opacity 0.28s ease !important;
}

.toggle-content-section .toggle-section.is-active,
.toggle-content-section .toggle-section.is-fading-out{
  display: block !important;
}

.toggle-content-section .toggle-section.is-active{
  opacity: 1;
}

.toggle-content-section .toggle-section.is-fading-out{
  opacity: 0;
}


/* ==========================================
   Callout-Bühne – Grundsetup
   ========================================== */

.callout-stage{
  position: relative !important;
  overflow: visible !important;
}

.callout-stage .callout-base{
  position: relative !important;
  z-index: 1;
}

/* ==========================================
   Auslöser (Blurbs) – Grundsetup
   ========================================== */

.callout-stage .callout-trigger{
  position: absolute !important;
  z-index: 20;
  width: 100px !important;
  height: 100px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  transform: translate(-50%, -50%) !important;
}

/* Blurb-Inhalte ausblenden */
.callout-stage .callout-trigger .et_pb_blurb_content,
.callout-stage .callout-trigger .et_pb_main_blurb_image,
.callout-stage .callout-trigger .et_pb_blurb_container{
  display: none !important;
}

/* inaktiver Zustand */
.callout-stage .callout-trigger::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  background: url("/wp-content/uploads/2026/03/hotspot-inaktiv.svg") center center / contain no-repeat;
  opacity: 1;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

/* aktiver Zustand */
.callout-stage .callout-trigger::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%) scale(0.28);
  transform-origin: center center;
  background: url("/wp-content/uploads/2026/03/hotspot-aktiv.svg") center center / contain no-repeat;
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}

.callout-stage .callout-trigger:hover::before,
.callout-stage .callout-trigger.is-active::before{
  opacity: 0;
}

.callout-stage .callout-trigger:hover::after,
.callout-stage .callout-trigger.is-active::after{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ==========================================
   Beschriftungen – Grundsetup
   ========================================== */

.callout-stage .callout-label{
  position: absolute !important;
  z-index: 15;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.callout-stage .callout-label.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}



/* ==========================================
   DRITTE MENUEEBENE SICHTBAR ABSETZEN
   Untermenue eines Untermenue-Eintrags (z. B. Versionsvergleich
   unter STX Controlcenter) wird eingerueckt und bekommt links
   eine duenne gruene Linie. Gilt fuer Desktop- und Mobilmenue.
   ========================================== */

.et-menu .sub-menu .sub-menu > li > a,
.et_mobile_menu .sub-menu .sub-menu > li > a{
  display: block;
  margin-left: 12px !important;
  padding-left: 16px !important;
  border-left: 1px solid rgba(147, 192, 32, 0.55) !important;
  font-size: 0.92em;
  opacity: 0.85;
}

.et-menu .sub-menu .sub-menu > li > a:hover,
.et_mobile_menu .sub-menu .sub-menu > li > a:hover{
  opacity: 1;
}
