/* components/navbar.css */
.navbar {
    background-color: var(--color-navy);
    color: white;
    padding: 0.875rem 2rem;
    box-shadow: 0 2px 12px rgba(24, 26, 43, 0.35);
    position: relative;
    z-index: 100;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    text-decoration: none;
}

.navbar-logo {
    height: 32px;
    width: auto;
}

.navbar-logo-text {
    height: 16px;
    width: auto;
}

/* Burger Menu Button */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Burger Menu Animation - wenn aktiv */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease, color 0.2s ease;
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    background-color: var(--color-navy-hover);
    color: white;
}

/* Aktiver Link (z.B. aktuell besuchte Seite) */
.nav-link.active {
    color: white;
    background-color: rgba(124, 58, 237, 0.3);
    /* primary glow on navy */
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-navy);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 1rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        gap: 0;
    }

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

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link {
        padding: 1rem;
        border-radius: 0;
        width: 100%;
    }

    .nav-link:hover {
        background-color: var(--color-navy-hover);
    }

    /* Overlay wenn Menu geöffnet */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}