/* === Grunddesign Navbar === */
.navbar {
    background: rgba(10, 15, 30, 0.7);
    height: 80px;
    display: flex;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1300px;
}

.navbar-logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    position: relative;
    background: linear-gradient(135deg, hsl(210, 100%, 60%), hsl(28, 90%, 60%));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
    letter-spacing: -0.03em;
}

.navbar-logo:hover {
    background-position: right center;
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 165, 0, 0.3));
}

.navbar-logo::after {
    display: none;
}

/* === Burger Menu === */
.navbar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transform: translateX(30.5px);
}

.bar {
    height: 2px;
    width: 100%;
    background-color: hsl(210, 40%, 98%);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* === Dropdown Menü Animation === */
.navbar-links {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    width: 1050px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    justify-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 0 0 1.5rem 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.navbar-links.active {
    transform: translateX(-50%) scaleY(1);
}

/* === Boxen Links === */
.nav-box {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    width: 200px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-box a {
    color: hsl(210, 40%, 98%);
    text-decoration: none;
    font-weight: 600;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    transition: color 0.3s ease;
}

.nav-box:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.nav-box:hover a {
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Overlay removed, using background on .nav-box directly for cleaner glass effect */
.nav-box::before {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-links {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        width: 95%;
        gap: 10px;
    }
}

/* Navbar Profil Link */
.navbar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: hsl(210, 40%, 98%);
    font-weight: 600;
    height: 44px;
    flex-shrink: 0;
    padding: 4px 12px 4px 4px;
    border-radius: 50px;
    transition: background 0.3s ease;
}

.navbar-profile:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Avatar-Bild */
.navbar-profile .navbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    display: block;
    transition: all 0.3s ease;
}

/* Hover-Glow */
.navbar-profile:hover .navbar-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 15px hsl(28, 90%, 55%, 0.5);
    border-color: hsl(28, 90%, 55%);
}

/* Username */
.navbar-profile .profile-username {
    font-size: 0.95rem;
    white-space: nowrap;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-profile {
        height: 36px;
        padding-right: 8px;
    }
    .navbar-profile .navbar-avatar {
        width: 32px;
        height: 32px;
    }
    .navbar-profile .profile-username {
        font-size: 0.85rem;
    }
}
