/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Sandro Portner
 Author URI:     https://www.sandroportner.ch
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

/* Hide image title tooltip */
.et_pb_image:hover::after,
.et_pb_image:hover::before {
    display: none !important;
}

/* Row ist sticky */
.et_pb_row_sticky {
  transition: all 0.3s ease;
}

/* Shrink beim sticky */
.et_pb_row_sticky.et_pb_sticky--top {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

/* Logo kleiner */
.et_pb_image_sticky.et_pb_sticky--top img {
  max-height: 40px !important;
}

/* Menü kompakter */
.et_pb_row_sticky.et_pb_sticky--top .et_pb_menu {
  min-height: auto !important;
}

#player {
	position: relative;
	height: 81vh !important;
	min-height: 500px;
	overflow: hidden;
	border-bottom: 10px solid var(--Blau);
}

/* Erzwingt korrektes responsives Seitenverhältnis */
.video-wrapper .fluid-width-video-wrapper {
  position: relative;
  width: 100% !important;
}
.video-wrapper .fluid-width-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.et_pb_video_wrap,
.et_pb_video_wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
}

/******** MOBILE OVERLAY MENU **********/

.et_mobile_menu {
  display: none;
}

/* NUR wenn geöffnet → Fullscreen */
.mobile_nav.opened .et_mobile_menu {
  display: block !important;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;

  background: #fff;
  z-index: 9999;
  overflow-y: auto;

  padding-top: 100px;
}

.mobile_nav {
  z-index: 10001;
}

.mobile_menu_bar {
  z-index: 10002;
}

.mobile_nav.opened .et_mobile_menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
}

/* Basis zurücksetzen */
.mobile_menu_bar:before {
  content: "" !important;
}

/* Container */
.mobile_menu_bar {
  position: relative;
  width: 30px;
  height: 20px;
  display: block;
}

/* 3 Linien */
.mobile_menu_bar span,
.mobile_menu_bar::before,
.mobile_menu_bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #0061a8;
  border-radius: 2px; 
  transition: all 0.4s ease;
}

.mobile_nav.opened .et_mobile_menu {
  padding-top: 120px; /* erhöhen je nach Bedarf */
}

/* mittlere Linie */
.mobile_menu_bar span {
  top: 50%;
  transform: translateY(-50%);
}

/* obere */
.mobile_menu_bar::before {
  top: 0;
}

/* untere */
.mobile_menu_bar::after {
  bottom: 0;
}

/* OPEN → X */
.mobile_nav.opened .mobile_menu_bar span {
  opacity: 0;
}

.mobile_nav.opened .mobile_menu_bar::before {
  transform: rotate(45deg);
  top: 50%;
}

.mobile_nav.opened .mobile_menu_bar::after {
  transform: rotate(-45deg);
  bottom: auto;
  top: 50%;
}

.et_pb_section video {
  transform: none !important;
}

video {
  position: relative;
  z-index: 2;
}