/* Hauptnavigation */
.nav__one {
  width: 100%;
  margin: 0;
  padding: 0 15px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #003354, #0f6e9c, #003354);
}

.menu-container {
  display: inline-flex;
  align-items: center;
  height: 48px;
}

/* Menü-Button */
.menu-button {
  display: inline-flex;
  align-items: center;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  height: 48px;
  background: none;
  border: none;
  padding: 0;
}

.menu-button:hover {
  color: #ff0000;
}

/* Menü-Symbol */
.menu-icon {
  font-size: 1.8rem;
  margin-right: 5px;
}

/* Sprachauswahl */
.nav__one__languages {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__one__languages__item a {
  color: #fff;
  text-decoration: none;
}

.nav__one__languages__item a:hover {
  color: #ff0000;
}

/* ---------- Overlay-Menü mit details/summary ---------- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #003354, #2a9dda);
  z-index: 1000;
  padding: 100px 20px 40px 20px;
  box-sizing: border-box;
  overflow-y: auto;
  display: none;
}

/* Das Menü wird nur sichtbar, wenn das entsprechende #menu-target durch Anker angesteuert wird */
#menu-target:target + .menu-overlay {
  display: block;
}

/* Overlay-Header */
.overlay-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to right, #003354, #2a9dda);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  box-sizing: border-box;
}

/* Logo im Overlay */
.logo-link {
  display: flex;
  align-items: center;
  z-index: 10;
  height: 100px;
}

.logo-link img {
  height: 45px;
  width: auto;
  transition: filter 0.3s ease;
}

.logo-link:hover img {
  filter: saturate(3);
}

/* Schließen-Button */
.close-button {
  font-size: 2.8rem;
  text-decoration: none;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.close-button:hover {
  color: #eee;
}

/* ---------- Accordion mit details/summary ---------- */
.menu-group {
  margin-bottom: 20px;
}

/* Styling für das details-Element */
.menu-accordion {
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
}

/* Styling für summary (Hauptmenüpunkte) */
.menu-accordion summary {
  padding: 14px 20px;
  background-color: #003354;
  color: white;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background-color 0.3s;
  /* Anpassungen zur einheitlichen Formatierung wie andere main-menu-links */
  display: block;
  text-decoration: none;
  margin-bottom: 1px;
  font-size: 16px;
}

.menu-accordion summary:hover {
  background-color: #001728;
  color: #ff0000;
}

/* Details-Inhalt */
.menu-accordion-content {
  background-color: #004370;
  padding: 0;
}

/* Untermenü-Gruppen */
.submenu-accordion {
  margin: 0;
  border-top: 1px solid #002a40;
}

.submenu-accordion summary {
  padding: 10px 20px 10px 40px;
  background-color: #003354;
  font-weight: bold;
}

.submenu-accordion-content {
  padding: 0;
}

/* Menü-Links */
.menu-link {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px 20px 10px 60px;
  transition: background-color 0.3s;
  position: relative;
}

.menu-link:hover {
  color: #ff0000;
  background-color: #004880;
}

/* Menülinks direkt im Hauptmenü */
.main-menu-link {
  padding: 14px 20px;
  background-color: #003354;
  color: white;
  font-weight: bold;
  display: block;
  text-decoration: none;
  margin-bottom: 1px;
}

.main-menu-link:hover {
  background-color: #001728;
  color: #ff0000;
}

/* Styling für die Pfeilsymbole */
.menu-accordion summary::after {
  content: "↓";
  position: absolute;
  right: 20px;
}

.menu-accordion[open] summary::after {
  transform: rotate(180deg);
}

.submenu-accordion summary::after {
  content: "↓";
  position: absolute;
  right: 20px;
}

.submenu-accordion[open] summary::after {
  transform: rotate(180deg);
}

/* Punkte für Untermenüelemente */
.menu-link::before {
  content: "●";
  margin-right: 10px;
}

/* Bildcontainer in Menüs */
.images-container {
  display: flex;
  gap: 15px;
  padding: 10px 20px 10px 60px;
  background-color: #004370;
}

.images-container img {
  height: auto;
  width: auto;
  max-height: 72px;
}

/* Korrigierte Regeln für die proportionale Skalierung der Bilder */
/* Für 4-RAD MÜLLTONNEN */
.submenu-accordion:first-of-type .images-container img:first-child {
  transform: scale(0.9);
  transform-origin: center center;
}

/* Für ABFALLBEHÄLTER */
.submenu-accordion:nth-of-type(3) .images-container img:first-child {
  transform: scale(0.5);
  transform-origin: center center;
}

/* Icons für medizinische Abfälle */
.medical-icons {
  display: flex;
  gap: 15px;
  padding: 10px 20px 10px 60px;
  background-color: #004370;
}

.medical-icon {
  font-size: 2.9rem;
  color: white;
}

/* Responsive Bildanpassung */
img {
  max-width: 100%;
  height: auto;
}

/* Deaktivierter Link-Stil - geändert, damit ERSATZTEILE nicht grau wird */
.disabled-link {
  cursor: default;
  color: white;
}

/* Medcell Stile für medizinische Produkte */
.medcell {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.medcell li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

/* Hilfsstile für Text und Layout */
.red-link {
  color: #ff0000;
}

.red-text {
  color: #ff0000;
}

.news-text {
  color: #383838;
}

.news-spacer {
  height: 20px;
}

.description-text {
  display: block;
}

/* Worldmap.png ausblenden */
.nav__two__map {
  display: none; /* Das ursprüngliche Bild ausblenden */
}

/* Font Awesome-Anpassungen für bessere Standards-Kompatibilität */
.fa, .fab, .fad, .fal, .far, .fas {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
}

/* Fix für die Transformationen mit standardkonformer CSS3-Syntax */
.fa-flip-horizontal {
  transform: scale(-1, 1);
}

.fa-flip-vertical {
  transform: scale(1, -1);
}

.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {
  transform: scale(-1, -1);
}

/* Responsive Anpassungen */
@media screen and (max-width: 768px) {
  .nav__one {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }
  
  .menu-container {
    margin-bottom: 10px;
    width: 100%;
    justify-content: center;
  }
  
  .nav__one__languages {
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }
  
  .product-row .container__full {
    flex-direction: column;
  }
  
  .product, .product2 {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .service-row .container__full {
    flex-direction: column;
    align-items: center;
  }
  
  .service {
    width: 80%;
    margin-bottom: 20px;
  }
  
  /* Konsistente Größe für PRODUKTÜBERSICHT */
  .menu-accordion summary {
    font-size: 16px;
  }
}

/* Mobile Optimierungen für bessere Performance */
@media screen and (max-width: 480px) {
  .images-container {
    flex-direction: row; /* Immer horizontal ausrichten */
    flex-wrap: nowrap; /* Verhindern, dass Bilder umbrechen */
    align-items: center;
    overflow-x: auto; /* Horizontales Scrollen ermöglichen wenn nötig */
  }
  
  .nav__two__navigation {
    flex-direction: column;
    align-items: center;
  }
  
  .nav__two__logo--logo {
    max-width: 80%;
  }
}

@media (max-width: 1490px) {
  .nav__two__logo--seperator {
    display: none;
  }
  
  .nav__two__logo--logo {
    padding: 0;
  }
}