/* Header Navigation */
.header {
    background: var(--background);
    padding: 0.75rem 1.25rem;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(2, 30, 84, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Content sollte über dem Header angezeigt werden */
.content-wrapper {
    z-index: 1010;
    position: relative;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand {
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-logo {
    height: 26px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo {
    width: 40px;
    height: auto;
    display: block;
    transition: transform 0.3s var(--transition);
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    display: inline-block;
}

/* Navigation Links */
.nav-link {
    display: inline-block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #004aad;
    margin: 0 0.25rem;
}

.nav-link:hover {
    background-color: #003f8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    background-color: #003f8a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Avatar Button Styles */
.avatar-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #004aad;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    position: static; /* no absolute; keep it in normal flow */
    margin-right: 1.25rem;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--primary);
    font-size: 1.4rem;
}

.avatar-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background-color: #003f8a;
}

.user-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    background-color: #004aad;
}

/* Verstecke den Avatar-Button auf der Profilseite */
.profile-page .avatar-button {
    display: none !important;
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
    }
    
    .mobile-nav-toggle {
        display: none;
    }

    .nav-link {
        color: #0f172a;
        text-decoration: none;
        font-weight: 600;
        padding: 0.5rem 0.9rem;
        border-radius: 8px;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: transparent;
    }

    .nav-link:hover {
        background: rgba(10, 80, 194, 0.06);
        color: #0A50C2;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .nav-link.active {
        background: rgba(10, 80, 194, 0.08);
        color: #0A50C2;
    }
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }

    .avatar-button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}
