
body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

#schh {
  background-color: var(--e-global-color-secondary);
  padding: 15px;
  position: relative; /* for submenu positioning */
  display: grid;
  /*grid-template-columns: 80px 1fr 80px;*/
  grid-template-columns: 95px 1fr 95px;
}

@media (max-width: 600px) {
  #schh {
    /*grid-template-columns: 10px 1fr 10px;*/
    grid-template-columns: 0px 1fr 0.5fr;
  }
}

#schh > div {
    align-self: center;
}

#schh .main-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  /* no position relative here so submenu can position absolutely relative to #schh */
}

#schh .nav-left,
#schh .nav-right {
  display: flex;
  gap: 10px;
}

#schh .nav-left a,
#schh .nav-right a {
  color: white;
  font-family: Nunito, Sans-serif;
  /*font-size: 13px;*/
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  cursor: pointer;
}

#schh .nav-left {
  justify-content: end;
}

#schh .nav-center {
  display: flex;
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}

#schh .nav-center img {
  height: 100px;
}

@media (max-width: 600px) {
  #schh .nav-center img {
    height: 100px;
  }
}

#schh .submenu {
  display: none;
  position: absolute;
  top: 100%;
  /*left: 0;*/
  /*width: 1390px;*/
  /*width: 1560px;*/
  width: 1346px;
  z-index: 1000;
}

/* Center content inside submenu */
#schh .submenu-content {
    
  color: white;
    
  /*max-width: 1400px;*/
  max-width: 1560px;
  margin: 0 auto;
}

#schh .submenu-content section.elementor-section {
  padding-top: 0px;
}
#schh .submenu-content section.elementor-section > div.elementor-container {
  margin: 0px;
}

/* Optional: submenu visible class */
#schh .submenu.visible {
  display: block;
}

/* Hide toggle by default, show on small screens */
#schh .mobile-menu-toggle {
  border-color: white;
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}

#schh .mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

/* X icon when active */
#schh .mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
#schh .mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
#schh .mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

#schh .schh-header-lang > div {
  padding: 6px;
}

#schh .schh-header-lang > div a {
  font-size: 17px;
}

/* Mobile menu container */
#schh-mm .mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  min-height: calc(100vh - 100%); /* fill remaining viewport */
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--e-global-color-secondary);
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 20px;
}

#schh-mm .mobile-menu.show {
  display: block;
}

#schh-mm .mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#schh-mm .mobile-menu-content a {
  color: white;
  font-size: 18px;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Nunito, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0px !important;
}

/* Responsive trigger */

/*@media (max-width: 1620px) {*/
@media (max-width: 1530px) {
  #schh .mobile-menu-toggle {
    display: flex;
    align-items: end;
  }
  
  #schh .main-nav {
    grid-template-columns: 1fr;
  }
  
  #schh .schh-header-lang,
  #schh .nav-left,
  #schh .nav-right {
    display: none !important;
  }
}

@media (max-width: 600px) {
    #schh .nav-left,
    #schh .nav-right {
        display: none;
    }
    
    #schh {
      padding: 5px;
    }
}

/* mobile menu */

#schh-mm .mobile-menu-item {
  border-bottom: 1px solid #eee;
  padding: 0.75rem 1rem;
}

#schh-mm .mobile-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#schh-mm .mobile-item-title a {
  font-family: "FuturaLTPro, sans-serif";
  font-size: 24px;
  line-height: 20px;
}

#schh-mm .toggle-mobile-submenu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
  display: flex;
  align-items: center;
}

#schh-mm .toggle-mobile-submenu svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

#schh-mm .toggle-mobile-submenu svg.rotate {
  transform: rotate(180deg);
}

#schh-mm .mobile-submenu {
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    row-gap: 30px;
    overflow: hidden;
    transition: all 0.25s ease-in;
    max-height: 0;
}

#schh-mm .mobile-submenu.mobile-submenu-open {
    margin-top: 35px;
    max-height: 500px;
}

/*
#schh-mm .mobile-submenu {
  padding-left: 1rem;
  margin-top: 0.5rem;
}
#schh-mm .mobile-submenu.mobile-submenu-open {
  display: flex;
  flex-direction: column;
}
*/

#schh-mm .mobile-submenu a {
  padding: 0.5rem 0;
  color: white;
  text-decoration: none;
}
#schh-mm svg,
#schh-mm svg > path {
  fill: white;
}

/* wpml */

#schh-container div.wpml-ls {
  border-left: 1px solid white;
  margin-bottom: 0px;
}

#schh-container div.wpml-ls > ul {
  display: flex;
}

#schh-container div.wpml-ls > ul li > a {
 color: white;
}

#schh-container div.wpml-ls > ul li:first-child > a {
  padding-right: 3px;
}
#schh-container div.wpml-ls > ul li:last-child > a {
  padding-left: 3px;
  padding-right: 0px;
}

/* wpml mobile specific */

#schh-container #schh-mm div.wpml-ls {
  border-left: none;
}

#schh-container #schh-mm div.wpml-ls > ul {
  justify-content: center;
  margin: 20px !important;
}

#schh-container #schh-mm div.wpml-ls > ul li > a {
  font-size: 24px;
}

#schh-container #schh-mm div.wpml-ls > ul li:first-child > a {
  padding-left: 0px;
  padding-right: 10px;
}
#schh-container #schh-mm div.wpml-ls > ul li:last-child > a {
  padding-left: 10px;
}

@media (max-width: 1361px) {
  #schh-container > div {
    margin: 0px !important;
    min-width: 100%;
  }
}

.schh-header-side-right {
  display: flex;
  gap: 10px;
}

@media (max-width: 600px) {
  .schh-header-side-right {
    justify-self: end;
  }
}


/* such button */

.search-icon i {
    color: #fff;
    fill: #fff;
    cursor: pointer;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center; /* Stellt sicher, dass die Elemente in einer Linie sind */
}

.search-icon {
    cursor: pointer;
    font-size: 20px;
    display: inline-block;
    padding: 5px;
}

.search-field {
    display: none; /* Zuerst wird das Suchfeld ausgeblendet */
    position: absolute;
    top: 0;
    right: 0;
    left: -275px;
}

.search-field form {
    display: flex; /* Flexbox für die Ausrichtung von Input-Feld und Button nebeneinander */
    align-items: center;
    justify-content: flex-start; /* Der Button wird direkt neben dem Inputfeld ausgerichtet */
}

.search-field input {
    padding: 5px;
    width: 200px;
    margin-right: 5px; /* Abstand zwischen Input-Feld und Button */
    border-radius: 0 !important; /* Keine abgerundeten Ecken */
}

.search-field button {
    padding: 5px 15px;
    background-color: #D7AA67; /* Button-Farbe */
    color: white; /* Weiße Schrift */
    border: none; /* Keine Umrandung */
    font-weight: bold; /* Fettere Schrift */
    cursor: pointer;
    text-transform: uppercase; /* Großbuchstaben für den Button */
    border-radius: 0 !important; /* Keine abgerundeten Ecken */
}

.search-field button:hover {
    background-color: #C19055; /* Dunklere Farbe bei Hover */
}
