/* Navigation und Hamburger-Menü Stile */

/* Header und Navigation */
header {
    background-color: #000000;
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: headerShine 10s linear infinite;
}

@keyframes headerShine {
    from { transform: translateX(-100%) rotate(30deg); }
    to { transform: translateX(100%) rotate(30deg); }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    z-index: 1002; /* Über dem Menü */
}

.logo:hover {
    transform: scale(1.1) rotate(2deg);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Desktop Navigation */
.desktop-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
}

.desktop-navigation a {
    color: #9370DB;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.desktop-navigation a:hover {
    color: #fff;
    background-color: rgba(147, 112, 219, 0.2);
}

.desktop-navigation a:last-child {
    margin-right: 0;
}

/* Aktive Navigation Link */
.desktop-navigation a.active {
    color: #fff;
    background-color: rgba(147, 112, 219, 0.4);
}

/* Hamburger-Button */
.hamburger-button {
    display: none;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
    outline: none;
}

.hamburger-button span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-button span:nth-child(1) {
    top: 0;
}

.hamburger-button span:nth-child(2) {
    top: 10px;
}

.hamburger-button span:nth-child(3) {
    top: 20px;
}

/* Hamburger-Button Animation (X) */
.hamburger-button.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.hamburger-button.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-button.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

/* Mobile Menü */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 300px;
}

.mobile-menu-content a {
    width: 100%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 15px;
    margin: 5px 0;
    text-align: center;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-content a:hover,
.mobile-menu-content a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .desktop-navigation {
        display: none;
    }
    
    .hamburger-button {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    header {
        position: sticky;
        top: 0;
        z-index: 100;
    }
}