/* Navigation Styles for Seifert Aviation Software Website */

/* Header */
header {
    background-color: var(--primary-darker);
    position: sticky;
    top: 0;
    z-index: 1000; /* Höherer z-index für bessere Sichtbarkeit */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Desktop Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    color: var(--accent-orange);
}

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

.nav-links a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    position: relative; /* Für bessere Touch-Unterstützung */
    z-index: 3000; /* Höchster z-index für Klickbarkeit */
}

.hamburger::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: transparent; /* Vergrößert den Klickbereich */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--primary-dark);
    transition: right 0.3s ease;
    z-index: 2000; /* Deutlich höher für mobiles Menü */
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
}

.mobile-menu-links li {
    margin-bottom: 1.5rem;
}

.mobile-menu-links a {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu-links a:hover {
    color: var(--accent-orange);
}

/* Overlay Background */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500; /* Zwischen Header und mobilem Menü */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Active Navigation Link */
.nav-links a.active,
.mobile-menu-links a.active {
    color: var(--accent-orange);
}

.nav-links a.active::after {
    width: 100%;
}

/* Logo size adjustment for very narrow screens */
@media (max-width: 479px) {
    .logo {
        font-size: 1.3rem;
        letter-spacing: -0.5px;
    }
}