@font-face {
    font-family: 'AirAmericana';
    src: url('/fonts/AirAmericana-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

/* ===========================
   MENU.CSS — NUR .main-nav a
   Normale Links auf der Seite
   bleiben UNBERÜHRT!
   =========================== */




@keyframes gradientShift {
    0%, 100% {
        background:
            radial-gradient(circle at 20% 50%, rgba(255,0,100,0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(0,150,255,0.1) 0%, transparent 50%);
    }
    50% {
        background:
            radial-gradient(circle at 80% 50%, rgba(255,0,100,0.1) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(0,217,255,0.1) 0%, transparent 50%);
    }
}

/* --- Nav-Container --- */
.menu-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0.5rem 2rem;
    /*background: rgba(10, 10, 30, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);*/
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(31,38,135,0.37);
}

/* --- LOGO --- */
.nav-logo {
    font-family: 'AirAmericana', cursive;
    font-size: 2.5rem;
    color: #ff006e;
    filter: drop-shadow(0 0 15px rgba(255,0,110,0.5));
    cursor: pointer;
    margin-right: 2rem;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: #00d9ff;
    filter: drop-shadow(0 0 30px rgba(0,217,255,0.8));
    transform: scale(1.1);
}

/* ============================================
   ALLE REGELN GELTEN NUR FÜR .main-nav a
   => Normale <a>-Tags auf der Seite: NORMAL!
   ============================================ */

.main-nav a {
    position: relative;
    text-decoration: none;
    font-family: 'AirAmericana', cursive;
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255,0,110,0.2));
}

/* --- Entrance-Animationen (einmalig beim Laden) --- */

.main-nav a:nth-child(2) {
    animation: slideInRight 0.8s cubic-bezier(0.68,-0.55,0.265,1.55) forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.main-nav a:nth-child(3) {
    animation: slideInLeft 0.8s cubic-bezier(0.68,-0.55,0.265,1.55) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.main-nav a:nth-child(4) {
    animation: zoomIn 0.8s cubic-bezier(0.68,-0.55,0.265,1.55) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.main-nav a:nth-child(5) {
    animation: lightInTop 0.8s cubic-bezier(0.68,-0.55,0.265,1.55) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.main-nav a:nth-child(6) {
    animation: lightInBottom 0.8s cubic-bezier(0.68,-0.55,0.265,1.55) forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes lightInTop {
    from { opacity: 0; transform: translateY(-50px); filter: blur(10px); }
    to   { opacity: 1; transform: translateY(0);     filter: blur(0); }
}

@keyframes lightInBottom {
    from { opacity: 0; transform: translateY(50px); filter: blur(10px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* --- Hover --- */
.main-nav a:hover {
    color: #00d9ff;
    transform: scale(1.15) rotateZ(2deg);
    filter: drop-shadow(0 0 20px rgba(0,217,255,0.8))
            drop-shadow(0 0 40px rgba(255,0,110,0.5));
}

/* --- Glow-Linie unten beim Hover --- */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff006e, #00d9ff);
    transition: width 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.main-nav a:hover::after {
    width: 100%;
}

/* --- Click-Explosion --- */
.main-nav a:active {
    animation: explosivePulse 0.5s ease-out;
}

@keyframes explosivePulse {
    0%   { transform: scale(1.1); }
    50%  { transform: scale(1.4);
           filter: drop-shadow(0 0 50px rgba(255,0,110,1))
                   drop-shadow(0 0 80px rgba(0,217,255,1)); }
    100% { transform: scale(1); }
}



/* --- Responsive --- */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-logo {
        font-size: 1.8rem;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .main-nav a {
        font-size: 1.4rem;
    }
}

/* ── Admin Dropdown ── */

/* ── Admin Dropdown ── */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* unsichtbare Brücke zwischen Toggle und Menü */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 16px;
}

.nav-dropdown-toggle {
    font-family: 'AirAmericana', cursive;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255,0,110,0.2));
    user-select: none;
}

.nav-dropdown:hover .nav-dropdown-toggle {
    color: #00d9ff;
    transform: scale(1.15) rotateZ(2deg);
    filter: drop-shadow(0 0 20px rgba(0,217,255,0.8))
            drop-shadow(0 0 40px rgba(255,0,110,0.5));
}

.nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,10,30,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease 0.15s;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.15s ease 0s;
}

.nav-dropdown-menu a {
    font-family: 'AirAmericana', cursive;
    font-size: 1.3rem !important;
    color: white !important;
    text-decoration: none;
    padding: 0.55rem 1.25rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

.nav-dropdown-menu a:hover {
    color: #00d9ff !important;
    background: rgba(255,255,255,0.06);
    filter: drop-shadow(0 0 10px rgba(0,217,255,0.6)) !important;
    transform: none !important;
}

.nav-dropdown-menu a::after {
    display: none;
}

/* ── Logout ans Ende ── */
.nav-logout {
    margin-left: auto !important;
}

/* ── Nachrichten-Badge ── */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ff006e;
    color: #fff;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    margin-left: 6px;
    box-shadow: 0 0 8px rgba(255,0,110,0.7);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255,0,110,0.7); }
    50%       { box-shadow: 0 0 18px rgba(255,0,110,1); }
}
