/* --- Grundlayout --- */
.techno-main-menu .menu-item-has-children>a:after {
  margin-left: 5px;
  content: "\f107";
  font-family: FontAwesome;
  opacity: 1;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  font-size: 13px;
  opacity: .8;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"
}

.techno-main-menu .menu-item-has-children .menu-item-has-children>a:after {
  margin-left: 8px;
  content: "\f105"
}

/* Horizontales Menü mit Linien */
.menu-bar .main-nav {
  background: linear-gradient(180deg, #ddd 0%, #fff 99%) !important;
}

.menu { 
  display: flex;
  gap: 0; /* Kein Abstand, nur Linien */
  border-left: 1px solid #ccc; /* Anfangslinie */
  /*display: none;*/
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item-has-children.open > a::after {
  content: "-";
}

.menu > li {
  position: relative;
  padding: 0 1rem;
  border-right: 1px solid #ccc;
}

/* Einheitliches Styling für alle Menülinks */
.menu a {
  display: block;
  padding: 1rem 2rem;
  font-size: 1.1rem;  /* ~18px */
  color: #666;
  text-decoration: none;
  font-weight: 500;
}

/* Link-Styling */
.menu > li > a {
  display: block;
  padding: 1rem 0;            /* vertikaler Abstand */
  font-size: 1.125rem;        /* ca. 18px */
  color: #666;                /* grau */
  text-decoration: none;
  font-weight: 500;

}
.menu li ul {
  
  padding: 0;
  border: 1px solid #ccc;
}


/* Trennlinien in der 2. Ebene (optional) */
.menu li ul li {
  border-top: 1px solid #ccc;
}

/* Make every 2nd sublevel item a bit darker */
.menu li ul li:nth-child(even) {
  background: #f3f3f3; /* or a slightly darker shade, adjust as needed */
}

/* "+" rechts */
.menu .menu-item-has-children > a::after {
  content: "+";
  position: absolute;
  right: 1rem;
  
  transform: translateY(-50%);
  font-weight: bold;
  color: #aaa;
  pointer-events: none;
}


/* Für Dropdowns im Mobile-View: "+" bleibt */
@media (max-width: 991px) {
  .menu {
    flex-direction: column;
    border-left: none;
  }

  .menu > li {
    border-right: none;
    border-bottom: 1px solid #ccc;
  }
}


.menu li {
  position: relative;
}

/* Dropdown */
.menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  
  border: 0px solid #ddd;
  padding: 0.1rem 0;
  min-width: 180px;
  z-index: 10;
}

.menu li:hover > ul {
  display: block;
}

/* --- Mobile --- */


@media (max-width: 991px) {
  .menu {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
  }

  .menu.open {
    max-height: 1000px; /* Should be larger than your menu's height */
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; /* Or flex-direction: column for mobile */ 
  }

  .menu li ul {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: none !important;
  }

  .menu li.open > ul {
    display: block !important;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1.5rem;
    color: #19369a !important;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    height: 3rem;
    padding: 0 1rem;
  }

  
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

@media (min-width: 992px) {
  .menu,
  .menu-toggle {
    display: none !important;
  }
}

.burger-icon {
    font-size: 2.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
}
