/* ========================================
   HEADER & LOGO
   ======================================== */
.header {
    position: relative;
    z-index: 100;
    padding: 1.5rem 2rem;
    background: transparent;
    font-family: 'Big Shoulders Inline', 'VT323', sans-serif;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo {
    flex-shrink: 0;
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.logo-image {
    height: 35px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.navigation {
    display: flex;
    gap: 1.8rem;
}

/* ========================================
   MENÜPUNKTE – BASIS
   ======================================== */
.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-weight: 300;
    font-size: 1.2rem;
    padding: 0.5rem 0.2rem;
    text-transform: uppercase;
    position: relative;
    transition: color 0.25s ease;
}

/* HOVER – ROTER TEXT (OHNE OVERLAY) */
.nav-link:hover {
    color: #ff0000;
    background: none;
    backdrop-filter: none;
    transform: none;
}

/* AKTIVER MENÜPUNKT – ROTER PUNKT */
.nav-link.active::after,
.nav-link.current-menu-item::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #ff0000;
    border-radius: 50%;
    opacity: 0.9;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.2; }
}

/* Social Media Buttons – Desktop */
.social-media-buttons {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.social-media-buttons .social-icon {
    width: 20px;
    height: auto;
    transition: transform 0.2s, opacity 0.2s;
}

.social-media-buttons .social-icon:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* ========================================
   MOBILE MENU BUTTON
   ======================================== */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    text-shadow: 0 0 4px rgba(255,255,255,0.5);
    transition: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    z-index: 1001;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    background: transparent;
    transform: none;
    outline: none;
}

.mobile-menu-btn.blurred {
    opacity: 0.5;
    filter: blur(1px);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* ========================================
   MOBILE MENU OVERLAY
   ======================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem;
    z-index: 999;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ========================================
   MOBILE NAV LINKS
   ======================================== */
.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    font-size: 3.5rem;
    font-weight: 300;
    padding: 0.4rem;
    text-align: center;
    border-radius: 15px;
    transition: transform 0.25s ease, background 0.25s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.mobile-nav-link:hover {
    transform: translateX(0) scale(1.03);
    background: rgba(255,255,255,0.15);
}

.mobile-nav-link.active {
    color: red;
}

@keyframes slideInLeftSmooth {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

.mobile-menu.active .mobile-nav-link {
    animation: slideInLeftSmooth 0.5s forwards ease-out;
}

.mobile-menu.active .mobile-nav-link:nth-child(1) { animation-delay: 0s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { animation-delay: 0.08s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { animation-delay: 0.16s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { animation-delay: 0.24s; }
.mobile-menu.active .mobile-nav-link:nth-child(5) { animation-delay: 0.32s; }

/* MOBILE MENU LINKS – Layout untereinander mit funktionierendem Abstand */
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

/* Entfernt margin-bottom auf Links, wird jetzt über gap gesteuert */
.mobile-menu-links a {
    display: block;
    text-align: center;
    margin: 0;
}

.mobile-menu-links a:last-child {
    margin-bottom: 0;
}

/* ========================================
   MOBILE CLOSE BUTTON
   ======================================== */
.mobile-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    font-family: 'VT323', monospace;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transform: scale(0);
    opacity: 0;
}

.mobile-close-btn:hover {
    transform: scale(1.1);
}

@keyframes growFromNothing {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shrinkToVoid {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

.mobile-menu.active .mobile-close-btn {
    animation: growFromNothing 0.35s forwards ease-out;
}

.mobile-menu:not(.active) .mobile-close-btn {
    animation: shrinkToVoid 0.35s forwards ease-in;
}

/* ========================================
   MOBILE SOCIAL MEDIA ICONS – CONTAINER
   ======================================== */
.mobile-social-media {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Container sichtbar */
.mobile-menu.active .mobile-social-media {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   ICON EINZEL-ANIMATION – VON RECHTS
   ======================================== */
.mobile-social-media a {
    display: inline-block;
    margin: 0 7.5px;
    opacity: 0;
    transform: translateX(30px) scale(0.9);
}

/* Animation trigger */
.mobile-menu.active .mobile-social-media a {
    animation: socialIconSlideRight 0.45s forwards ease-out;
}

/* Stagger Delays */
.mobile-menu.active .mobile-social-media a:nth-child(1) { animation-delay: 0.38s; }
.mobile-menu.active .mobile-social-media a:nth-child(2) { animation-delay: 0.46s; }
.mobile-menu.active .mobile-social-media a:nth-child(3) { animation-delay: 0.54s; }
.mobile-menu.active .mobile-social-media a:nth-child(4) { animation-delay: 0.62s; }

/* Keyframes */
@keyframes socialIconSlideRight {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ========================================
   ICON STYLE + HOVER
   ======================================== */
.mobile-social-media .mobile-social-icon {
    width: 32px;
    height: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-social-media .mobile-social-icon:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* ========================================
   MEDIA QUERIES
   ======================================== */
@media (max-width: 768px) {
    .header { padding: 1rem; font-family: 'VT323', monospace; }
    .header-container { max-width: 100%; padding: 0 1rem; justify-content: space-between; }
    .logo { position: static !important; transform: none !important; }
    .logo-image { height: 35px !important; max-width: 110px !important; }
    .navigation { display: none !important; }
    .social-media-buttons { display: none !important; }
    .mobile-menu-btn { display: block !important; }
}

@media (max-width: 480px) {
    .logo-image { height: 30px !important; max-width: 100px !important; }
    .mobile-nav-link { font-size: 2.2rem; }
    .mobile-social-media .mobile-social-icon { width: 28px; }
}