/* === Header Base === */
.header {
    width: 100%;
    background-color: #00000091;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); */
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* === Logo === */
.logo {
    font-size: 1.2 rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    color: #fff;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
    color: #fff;
}

.logo-img {
    width: 60px;
    height: 60px;
}

/* === Navigation === */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li {
    position: relative;
}

.nav-links a:hover {
    /* text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); */
    color: var(--orange);
}

/* Social Icons */
.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Social Icons Styling */
.social-links img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.social-links a:hover img {
    transform: scale(1.2);
    /* filter: brightness(0) invert(0.5); */
}

/* === Hamburger Button === */
.nav-toggle {
    display: none;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    background-color: #fff;
    height: 2px;
    width: 24px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* === Hamburger Animation === */
.nav-toggle.open .hamburger {
    background: transparent;
}

.nav-toggle.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}


/* Dropdown verstecken */
.nav-links .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #00000085;
    /* gleiche Farbe wie Header */
    padding: 0;
    margin: 0;
    list-style: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Dropdown sichtbar beim Hover */
.nav-links li.has-dropdown:hover>.dropdown {
    display: block;
}

/* Dropdown-Links */
.nav-links .dropdown li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links .dropdown li a:hover {
    /* text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); */
    color: var(--orange);
    ;
}

/* Pfeil anzeigen bei Dropdowns */
.has-dropdown>a::after {
    content: "▼";
    font-size: 0.5em;
    margin-left: 4px;
    vertical-align: middle;
}

/* Overlay base (desktop hidden) */
.nav-overlay {
    display: none;
}

/* === Responsive === */
@media (max-width: 1060px) {
    body.no-scroll {
        overflow: hidden;
    }

    /* Overlay für die Seite */
    .nav-overlay {
        display: block;
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 998;
    }

    /* Slide-in für Navigation selbst */
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 90%;
        max-width: 360px;
        background-color: var(--mobile-menu-color);
        flex-direction: column;
        padding: 2rem 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Navigation öffnen */
    .nav.nav-open {
        transform: translateX(0);
    }

    /* Menülinks vertikal */
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
        align-items: flex-start;
        width: 80%;
    }

    .nav-links a {
        color: #fff;
        font-size: 1.2rem;
        font-weight: 500;
        text-decoration: none;
    }

    /* Social Links unter Menü */
    .social-links {
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 1.5rem;
    }

    .social-links img {
        display: block;
        width: 36px;
        height: 36px;
    }

    /* Hamburger sichtbar */
    .nav-toggle {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        width: 44px;
        height: 44px;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1001;
    }


    /* Overlay sichtbar wenn Navigation offen */
    .nav.nav-open+.nav-overlay {
        opacity: 1;
        pointer-events: all;
    }

    .nav-links .dropdown {
        position: static;
        background: none;
        box-shadow: none;
        display: block;
        padding-left: 1rem;
    }

    .nav-links .dropdown li a {
        font-size: 1rem;
        padding: 6px 0;
        color: #fff;
        opacity: 0.9;
    }

    /* Pfeil bei mobilen Dropdowns entfernen */
    .has-dropdown>a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links .dropdown li a:hover {
        color: #fff;
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
    }
}


/* === Language Switch === */
.language-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.language-switch .lang {
    color: #fff;
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.language-switch .lang:hover {
    opacity: 1;
    color: var(--orange);
}

.language-switch .lang.active {
    opacity: 1;
    font-weight: 600;
    pointer-events: none;
}

.language-switch .divider {
    opacity: 0.4;
}