/*
Theme Name: Divi Child Theme | 2025
Theme URI: https://www.cordmedia.de
Version: 2.0
Description: Made with love by Cord Media Digital Services
Template: Divi
Author: Frank Oschatz
Author URI: https://www.cordmedia.de
*/

 
/* =Theme customization starts here
------------------------------------------------------- */

/* Globale Barrierefreiheits-Einstellung: Respektiere Nutzer mit „Reduzierter Bewegung“ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  /* Divi-spezifisch: Animationen sichtbar machen, wenn sie „nicht mehr ablaufen dürfen“ */
  .et-animated,
  .et_pb_module.et_pb_image.et-animated.et_had_animation {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}



/* Barrierefreies Menü */

/* Fokus Korrektur Main Navi */
#et-top-navigation nav>ul>li>a{
	padding: 8px 3px !important;
}

#et-top-navigation nav>ul>li{
	padding-bottom: 33px;
}

.menu-item-has-children {
    margin-right: 10px;
}

#et_top_search {
    float: right;
    margin: 10px 0 0 22px;
    position: relative;
    display: block;
    width: 18px;
}


/* Korrektur Submenü */
/* Original-Icon ausblenden

#top-menu .menu-item-has-children > a:first-child::after {
  display: none !important;
} */

/* Neuer Button mit Symbol 
#top-menu .menu-item-has-children > .sub-toggle {
  font-family: ETmodules;
  font-size: 16px;
  position: absolute;
  right: 3px;
  top: 5px;
  font-weight: 800;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 1.3em;
  cursor: pointer;
  color: inherit;
}*/

/* Ausgangszustand: Submenü ist unsichtbar */
#top-menu .sub-menu {
  display: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  z-index: 999;
}

/* Sichtbar, wenn geöffnet */
#top-menu .sub-menu.submenu-open {
  display: block;
  visibility: visible;
  opacity: 1;
}

/* Toggle-Pfeil-Button */
#top-menu .menu-item-has-children > .sub-toggle {
  font-family: ETmodules;
  font-size: 16px;
  position: absolute;
  right: 3px;
  top: 5px;
  font-weight: 800;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 1.3em;
  cursor: pointer;
  color: inherit;
}

/* Original-Icon ausblenden */
#top-menu .menu-item-has-children > a:first-child::after {
  display: none !important;
}



