/*
 Theme Name:     Psychotherapie Rienecker
 Theme URI:      https://psychotherapie-rienecker.de
 Description:    Divi Child-Theme
 Author:         Christian Muschiol
 Author URI:     https://minimizeit.de
 Template:       Divi
 Version:        1.0.0
*/
 
/* =Ab hier kannst du deine CSS-Anpassungen eintragen
------------------------------------------------------- */

.mobile_menu_bar::before, 
.mobile_menu_bar::after, 
#top-menu li.current-menu-ancestor > a, 
#top-menu li.current-menu-item > a {
  color: #567666 !important;
}
.et_header_style_left .logo_container {
  text-align: center !important;
}

/* Menu */
/* Move the hamburger to the right of the header */

.et_mobile_menu li a {
    color: #ffffff;
    padding: 16px 5%;
}
.et_mobile_menu li a, .nav li li a {
    font-size: 36px;
    line-height: 2em !important;
}

/* mobile */
/* Hide the desktop menu */
@media only screen and (max-width: 600px) {
  .et_mobile_menu li a, .nav li li a {
    font-size: 24px !important;
    line-height: 1.3em !important;
  }
}


.cb-hamburgermenu .et_pb_menu__wrap {
  justify-content: flex-end !important;
}


.cb-hamburgermenu .et_pb_menu__wrap .et_pb_menu__menu {
  display: none !important;
}

/* Force the mobile version of the menu */

.cb-hamburgermenu .et_pb_menu__wrap .et_mobile_nav_menu {
  display: block !important;
  align-items: center !important;
}

/* Fullscreen Menu Style when Opened*/

.cb-hamburgermenu .opened #mobile_menu1 {
  width: 100vw !important; /* Make it span the full width of the viewport */
  position: fixed !important;
  top: 0em !important;
  left: 0vw !important;
  height: 100vh !important; /* Make it span the full height of the viewport */
  display: flex !important;
  justify-content: center !important;
  flex-direction: column !important;
  transition: visibility 0.3s, opacity 0.3s ease-in-out; /* Animate the menu to fade in */
  padding: 0 !important;
  background-color: #567666 !important; /* Fullscreen menu background color */
}

/* Show fullscreen menu */

.cb-hamburgermenu .opened #mobile_menu1 {
  opacity: 1 !important; /* Make it visible by setting opacity to 1 */
  visibility: visible !important; /* Show the menu */
}

/* Hide and fade out the Menu when closed */

.cb-hamburgermenu .closed #mobile_menu1 {
  opacity: 0 !important; /* Make it invisible by setting opacity to 0 */
  visibility: hidden !important; /* Hide the menu */
  transition: visibility 0.3s, opacity 0.3s, left 1s, ease-in-out !important; /* Animate the menu to fade out */
}

/* Remove Bullets next to LI Elements */

.cb-hamburgermenu #mobile_menu1 li {
  list-style: none !important;
  text-align: center !important;
  width: 100%;
}

/* Make sure that the menu is above other elements */

.cb-hamburgermenu .et_pb_menu__wrap span.mobile_menu_bar {
  z-index: 999999 !important;
}

/* Set the close icon for when the menu is open */

.cb-hamburgermenu .et_pb_menu__wrap .opened .mobile_menu_bar:before {
  color: white !important; /* Icon color */
  content: "\4d" !important; /* Divi font icon to use for the close icon */
  left: -40px; /* Close icon position. You might need to play with this to make it look right */
}

/* Keep hamburger icon in fixed position on mobile */
.cb-hamburgermenu .opened .mobile_menu_bar {
  position: fixed !important;
}

/* Remove mobile menu border */

.cb-hamburgermenu .et_mobile_menu {
  border-top: none;
}

/* Make sure the menu items do not show a background */

.cb-hamburgermenu .et_mobile_menu .menu-item-has-children > a {
  background-color: transparent;
}

/* Remove the hover background from the menu items and add hover animation */

.et_mobile_menu li a:hover {
  background-color: transparent;
  color: #eae7de;
  opacity: 1;
  transition: transform 0.3s ease-in-out !important; /* Animated the menu item when hovered */
  transform: scale(
    1.15
  ); /* Enlarge the hovered menu item by 15% when hovered */
}

/* Remove menu item bottom borders */

.cb-hamburgermenu .et_mobile_menu li a {
  border-bottom: none;
}