/* ========== Grundlayout ========== */
.header-nav {
     background: #fff;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-left: 2rem;
	margin-right: 2rem;
}

 
/* Standardstile für alle Menülinks */
nav ul li a {
    color: #fff; /* Standardfarbe für Links */
    text-decoration: none; /* Entfernt die Unterstreichung */
    transition: color 0.3s ease; /* Sanfte Farbänderung */
	 background: #0b5c4c;
	border-radius: 8px;
}

/* Hover- und Fokuszustand */
nav ul li a:hover,
nav ul li a:focus {
    color: #fff; /* Farbe beim Hover oder Fokus */
    text-decoration: none; /* Sicherstellen, dass keine Unterstreichung erscheint */
}

/* Aktive Links (z. B. die aktuelle Seite) */
nav ul li a:active,
nav ul li.current-menu-item > a {
    color: #fff; /* Gleiche Farbe wie Hover für Konsistenz */
    text-decoration: none; /* Keine Unterstreichung */
}

/* Spezifisch für Untermenüelemente */
nav ul li.menu-item-has-children > a {
    position: relative; /* Ermöglicht Pfeil- oder andere Symbole */
    padding-right: 1.5rem; /* Platz für ein Symbol rechts */
}

/* Pfeil im Standardzustand */
.header-nav .menu-item-has-children > a::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #fff;
}

/* Rotiert den Pfeil nur, wenn aktiv */
.header-nav .menu-item-has-children.open > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Untermenülinks */
nav ul li ul li a {
    color: #fff; /* Standardfarbe für Untermenülinks */
    text-decoration: none; /* Keine Unterstreichung */
}

nav ul li ul li a:hover {
    color: #fff; /* Hover-Farbe für Untermenülinks */
    text-decoration: none; /* Keine Unterstreichung */
}

/* ========== Hamburger-Menü ========== */


.hamburger {
    display: none; /* Standardmäßig für größere Bildschirme ausgeblendet */
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    gap: 1px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background: #106b59;
    border-radius: 3px;
    margin: 1px 0;
}


 


/* ========== Menü ========== */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-direction: row;
    justify-content: flex-end;
}

nav ul li {
    position: relative;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    text-transform: none;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s, color 0.3s;
}

 

/* Untermenüs */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: none;
    padding: 0;
    z-index: 10;
}

nav ul li:hover > ul {
    display: block;
}

nav ul li ul li {
    /*width: 200px;*/
	  width:auto;
}

nav ul li ul li a {
    padding: 10px;
    color: #fff;
    background: #0b5c4c;
   
}

nav ul li ul li a:hover {
    background: #111;
    color: #fff;
}

/* Untermenüs der 3. Ebene */
nav ul li ul li ul {
    left: 100%;
    top: 0;
    display: none;
}

nav ul li ul li:hover > ul {
    display: block;
}

/* ========== Responsive Stile ========== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    .header-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .hamburger {
        display: flex; /* Aktiviert das Hamburger-Menü */
    }

    nav ul {
        display: none; /* Standardmäßig ausgeblendet */
        flex-direction: column;
        background: #106b59;
        position: absolute;
        top: 40px;
        right: 0;
        width: 100%;
        z-index: 1000;
    }

    nav ul.open {
        display: flex; /* Menü wird geöffnet */
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li ul li {
        width: 100%;
    }
}




/* Grundlegende Styles für das Menü */
.header-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav .menu-item {
    position: relative;
}

/* Verstecke das Submenü standardmäßig */
.header-nav .menu-item-has-children > .sub-menu {
    display: none;
      margin: 0;
    padding: 0;
}

/* Toggle-Status: Zeige das Submenü, wenn die "open" Klasse hinzugefügt wurde */
.header-nav .menu-item-has-children.open > .sub-menu {
    display: block;
}

/* Style für das Toggle-Symbol */
.header-nav .menu-item-has-children > a {
    position: relative;
    padding-right: 25px; /* Platz für das Symbol */
}

.header-nav .menu-item-has-children::after {
    
    position: absolute;
    right: 10px;
    top: 50%;
  
    cursor: pointer;
    font-size: 18px;
    color: #fff;
}

/* Ändere das Symbol, wenn Submenü geöffnet ist */
.header-nav .menu-item-has-children.open::after {
     
}

 
nav ul li {
    flex: 1; /* Jeder Menüpunkt nimmt den gleichen Platz ein */
    text-align: center; /* Zentriert den Text */
}

nav ul li a {
    text-decoration: none;
	text-transform: uppercase;
    color: #fff; /* Weißer Text */
    font-weight: bold;
    padding: 10px 15px;
    display: block; /* Block-Element für bessere Steuerung */
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
    background: #106b59; /* Hintergrundfarbe beim Hover */
    color: #fff; /* Textfarbe bleibt weiß */
}

/* Responsive Verhalten */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column; /* Menüpunkte vertikal anordnen */
        justify-content: flex-start; /* Start-Ausrichtung */
    }

    nav ul li {
        width: 100%; /* Menüpunkte füllen die Breite */
    }

    nav ul li a {
        text-align: left; /* Linksbündig innerhalb der Box */
        padding-left: 20px; /* Optionaler Abstand für besseres Design */
    }
}





/* Mobile-Menü standardmäßig ausblenden */
nav ul {
    display: none;
    flex-direction: column;
    background: #000;
    position: absolute;
    top: 40px;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

/* Menü anzeigen, wenn die Klasse `open` hinzugefügt wird */
nav ul.open {
    display: flex;
}

/* Hamburger-Button */
.hamburger {
    display: flex; /* Sichtbar nur auf mobilen Geräten */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

 


@media (min-width: 769px) {
    nav ul {
        display: flex; /* Immer sichtbar auf größeren Geräten */
        position: static;
        flex-direction: row;
        background: none;
    }

    .hamburger {
        display: none; /* Hamburger-Button verstecken */
    }
}