:root {
    /* --- NEUE FARBPALETTE (Basierend auf dem Logo) --- */
    
    /* Die Farbe der Kristalle und der Schrift-Highlights */
    --primary: #00e5ff;      /* Leuchtendes Cyan/Eisblau */
    --primary-dark: #00b0c7; /* Dunkleres Cyan für Hover-Effekte */
    
    /* Die Farbe des Stein-Rahmens und der Runen */
    --accent: #607d8b;       /* Kühles Stein-Grau/Blau */
    --accent-glow: #cfd8dc;  /* Helles Silber für Highlights */
    
    /* Hintergrund: Nicht mehr reines Schwarz, sondern sehr tiefes Nachtblau */
    --bg-dark: #05070a;      
    --bg-light: #0f1419;     
    
    --text: #e0f7fa;         /* Ein sehr helles, kühles Weiß */
    
    /* Glas-Effekt mit leichtem Blaustich */
    --glass: rgba(15, 20, 25, 0.9);
    
    /* Der Glow ist jetzt Eisblau statt Gold */
    --border-glow: rgba(0, 229, 255, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    /* Subtiles Hintergrund-Raster für mehr Tiefe */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Custom Scrollbar (Frost Look) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { 
    background: #263238; 
    border-radius: 5px; 
    border: 1px solid rgba(0, 229, 255, 0.2); 
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* Typografie */
h1, h2, h3, .logo { 
    font-family: 'Cinzel', serif; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

p { line-height: 1.8; font-size: 1.05rem; color: #b0bec5; }

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    /* Rahmen ist jetzt Eisblau statt Grün */
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.logo { 
    font-size: 1.8rem; 
    color: var(--text); 
    font-weight: 900; 
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); /* Leichter Frost-Glow */
    display: flex; align-items: center; gap: 15px; /* Logo und Text ausrichten */
}
.logo span { color: var(--primary); }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 700; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); text-shadow: 0 0 8px var(--primary); }
.nav-links a i { margin-right: 8px; } /* Abstand für Icons */

/* Hamburger Menu (Desktop: Hidden) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text);
    box-shadow: 0 0 5px var(--primary); /* Leichter Glow passend zum Theme */
}

/* Hamburger Animation zu X */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--primary);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--primary);
}

.btn-discord {
    background: #5865F2; padding: 10px 20px; border-radius: 5px; text-decoration: none; color: white; font-weight: bold;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-discord:hover { background: #4752c4; box-shadow: 0 0 15px rgba(88, 101, 242, 0.4); }

/* --- LOGO BILD & ANIMATION --- */
.logo-wrapper {
    position: relative;
    width: 50px; /* Größe in der Navbar */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Wichtig für den Schimmer */
    border-radius: 8px;
}

.navbar-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.3));
}

.logo-wrapper::after {
    content: '';
    position: absolute; top: 0; left: -200%; width: 200%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shimmer 10s infinite; /* Alle 10 Sekunden */
}

@keyframes shimmer {
    0% { left: -200%; }
    10% { left: 200%; } /* Läuft schnell durch */
    100% { left: 200%; } /* Wartet den Rest der Zeit */
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

/* Das animierte Hintergrundbild */
.hero-bg-image {
    position: absolute; top: -5%; left: -5%; width: 110%; height: 110%;
    background: url('../img/bg.webp') no-repeat center center/cover;
    animation: heroZoom 30s infinite alternate ease-in-out; /* Epischer Zoom */
    z-index: 1;
}

/* Der Gradient liegt darüber für Lesbarkeit */
.overlay::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5, 7, 10, 0.4), var(--bg-dark));
    z-index: 2;
}

@keyframes heroZoom { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }

.hero-content { position: relative; z-index: 3; max-width: 900px; padding: 20px; }
.hero-logo {
    max-width: 245px;
    height: auto;
    margin-bottom: 15px;
    animation: float-logo 6s ease-in-out infinite;
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0px) scale(1); filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3)); }
    50% { transform: translateY(-12px) scale(1.05); filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.6)); }
}

.hero-socials {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 25px;
}
.hero-socials a {
    color: var(--accent-glow);
    font-size: 1.8rem;
    transition: 0.3s;
}
.hero-socials a:hover {
    color: var(--primary);
    transform: translateY(-3px);
    text-shadow: 0 0 15px var(--primary);
}

.hero h1 { 
    font-size: clamp(3rem, 8vw, 6rem); /* Responsive Font Size */
    margin-bottom: 10px; 
    /* Schatten angepasst auf Cyan */
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.6); 
    letter-spacing: 5px; font-weight: 900;
}

/* Wrapper für den Shine-Effekt */
.hero-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    z-index: 5;
}

/* Der Licht-Schein (Shine) */
.hero-logo-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(0, 229, 255, 0.8) 50%, /* Helles Cyan Highlight */
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: shine-sweep 6s infinite ease-in-out; /* Alle 6 Sekunden */
    pointer-events: none;
    mix-blend-mode: screen; /* Leuchtet intensiv auf dunklem Grund */
}

.hero-title-gif {
    max-width: 100%;
    width: 600px; /* Optimale Breite für Desktop */
    height: auto;
    /* Epische Dauer-Animation (Schweben & Glow) */
    animation: epic-float 5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4));
}

/* Scroll Indicator */
.scroll-indicator {
    margin: 50px auto 0;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 0.7; animation: bounce 2s infinite;
    text-decoration: none;
    width: fit-content;
}

/* Animationen */
@keyframes shine-sweep {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    40% { left: 200%; opacity: 0; } /* Zieht schnell vorbei */
    100% { left: 200%; opacity: 0; } /* Pause */
}

@keyframes epic-float {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3)); 
    }
    50% { 
        transform: translateY(-12px) scale(1.03); 
        filter: drop-shadow(0 0 45px rgba(0, 229, 255, 0.7)); /* Starker Glow */
    }
}

/* --- NEUE SPIELER LISTE (Hero) --- */
.new-players-container {
    margin-top: 35px;
    background: rgba(5, 7, 10, 0.6); /* Dunkles Glas */
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(8px);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.new-players-title {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.new-players-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.new-player-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.9rem; color: #eceff1;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.new-player-item i { color: #00e676; font-size: 0.8rem; } /* Grüner Haken */
.new-player-time { font-size: 0.75rem; color: #90a4ae; margin-left: 4px; }

.scroll-indicator span { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); }
.scroll-indicator i { color: var(--text); font-size: 1.2rem; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* --- HERO FIGUREN (Zaubi & Schweini) --- */
.hero-figure {
    position: absolute;
    bottom: 0;
    z-index: 2; /* Hinter dem Text (3), aber vor dem Overlay (1) */
    pointer-events: none; /* Klicks gehen durch */
    opacity: 0; /* Startzustand für Animation */
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5)); /* Schatten für Tiefe */
    transition: filter 0.3s;
}

/* Magier Links */
.hero-figure-left {
    left: -50px; /* Leicht angeschnitten für Dynamik */
    height: 85vh; /* Passt sich der Höhe an */
    width: auto;
    max-width: 40vw; /* Nicht zu breit werden */
    object-fit: contain;
    animation: enterLeft 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, floatFigure 6s ease-in-out infinite 2.5s;
}

/* Schwein Rechts */
.hero-figure-right {
    right: -20px;
    height: 65vh; /* Etwas kleiner als der Magier */
    width: auto;
    max-width: 35vw;
    object-fit: contain;
    animation: enterRight 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, floatFigure 7s ease-in-out infinite 2.5s;
}

/* Animationen */
@keyframes enterLeft {
    from { opacity: 0; transform: translateX(-150px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes enterRight {
    from { opacity: 0; transform: translateX(150px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes floatFigure {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); } /* Sanftes Schweben */
}

/* Mobile Hide (Tablets & Phones) */
@media (max-width: 1200px) {
    .hero-figure { display: none; }
}

/* =========================================
   MOBILE RESPONSIVENESS & MEDIA QUERIES
   ========================================= */

@media (max-width: 768px) {
    
    /* 1. Layout & Navigation */
    .navbar {
        /* flex-direction: column;  <-- ENTFERNT, damit Logo und Burger nebeneinander sind */
        padding: 15px 20px;
        /* gap: 20px; <-- ENTFERNT */
        height: 80px; /* Feste Höhe für Mobile Header */
    }

    .hamburger {
        display: block; /* Burger anzeigen */
        z-index: 1001;
    }

    /* Das eigentliche Menü (Slide-In von rechts) */
    .nav-links {
        position: fixed;
        left: -100%; /* Startet außerhalb des Bildschirms */
        top: 80px; /* Unterhalb der Navbar */
        flex-direction: column;
        background-color: rgba(5, 7, 10, 0.98); /* Fast undurchsichtiges Dunkelblau */
        width: 100%;
        height: calc(100vh - 80px); /* Restliche Höhe */
        text-align: center;
        transition: 0.4s ease;
        padding-top: 40px;
        gap: 30px;
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(0, 229, 255, 0.2);
    }

    .nav-links.active {
        left: 0; /* Fährt herein */
    }

    .hero {
        height: auto; /* Erlaubt Scrollen, falls Inhalt zu lang ist */
        min-height: 100vh;
        align-items: flex-start; /* Startet oben statt in der Mitte */
        padding-top: 120px; /* 80px Navbar + 40px Abstand -> Logo immer sichtbar */
    }

    .hero-content {
        margin-top: 0; /* Margin wird durch das sichere Padding im Hero ersetzt */
    }

    /* LCP Optimierung: Text sofort anzeigen ohne Fade-In */
    .hero-content.fade-in, 
    .new-players-container.fade-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-title-gif {
        animation: none !important; /* Logo sofort zeigen */
    }

    /* Performance: CPU-intensive Animationen auf Mobile deaktivieren */
    .hero-bg-image,
    .server-box,
    .logo-wrapper::after,
    .hero-logo,
    .hero-title-gif,
    .glitch-effect::before, 
    .glitch-effect::after {
        animation: none !important;
    }

    /* 2. Typografie Anpassungen */
    .hero h1 {
        font-size: 2.8rem; /* Reduziert von 5rem */
        letter-spacing: 2px;
    }

    .hero-title-gif {
        width: 300px; /* Kleiner auf Handys */
    }

    .hero-logo {
        max-width: 220px;
    }

    .subtitle {
        font-size: 1.2rem !important;
    }

    /* 3. Cards & Grids (Stacking) */
    /* Erzwingt untereinanderliegende Karten statt Nebeneinander */
    .cards-grid, .story-grid, .testimonial-grid, .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    /* Story Visual (Bild) nach oben oder unten schieben */
    .story-grid {
        display: flex;
        flex-direction: column-reverse; /* Bild unter Text oder umgekehrt */
    }

    /* 4. Touch Targets (Min 44x44px) */
    .btn-primary, .btn-secondary, .btn-discord, .nav-links a, .server-ip-container {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 25px; /* Etwas mehr Padding für Finger */
    }

    /* Discord Button im Header nur als Icon */
    .navbar .btn-discord {
        font-size: 0; /* Text verstecken */
        padding: 0;
        width: 44px;
        height: 44px;
        margin-left: 5px;
    }
    .navbar .btn-discord i {
        font-size: 1.5rem; /* Icon wieder sichtbar machen */
    }
    
    /* Container Padding reduzieren */
    .section-dark, .section-light {
        padding: 60px 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }

    /* Nur die 3 neuesten Spieler auf Mobile anzeigen (versteckt den 4. und 5.) */
    .new-player-item:nth-child(n+4) {
        display: none;
    }

    /* Kompaktere Darstellung der Liste auf Mobile */
    .new-players-container {
        margin-top: 15px;
        padding: 5px 10px;
        width: 95%; /* Platz besser nutzen */
    }

    .new-players-title {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }

    .new-player-item {
        padding: 3px 6px;
        font-size: 0.65rem;
    }

    /* Scroll Indicator näher heranholen & skalieren */
    .scroll-indicator {
        margin-top: 15px;
        transform: scale(0.85);
    }

    /* Formular Optimierung Mobile (Login) */
    input, select, textarea {
        font-size: 16px !important; /* Verhindert iOS Zoom */
        padding: 14px; /* Größere Touch-Fläche */
    }

    /* Buttons untereinander und volle Breite */
    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .btn-primary, .btn-secondary, .btn-discord {
        width: 100%;
    }
}

/* Glitch Effect (Angepasst auf Cyan/Weiß) */
.glitch-effect { position: relative; color: var(--text); }
.glitch-effect::before, .glitch-effect::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-dark); opacity: 0.8;
}
.glitch-effect::before {
    left: 2px; text-shadow: -2px 0 #00e5ff; clip-path: inset(44% 0 61% 0); /* Cyan Glitch */
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch-effect::after {
    left: -2px; text-shadow: -2px 0 #ffffff; clip-path: inset(50% 0 30% 0); /* White Glitch */
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}
/* Animationen bleiben gleich */
@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); } 20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); } 60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); } 100% { clip-path: inset(30% 0 20% 0); }
}
@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); } 20% { clip-path: inset(30% 0 10% 0); }
    40% { clip-path: inset(70% 0 20% 0); } 60% { clip-path: inset(20% 0 50% 0); }
    80% { clip-path: inset(50% 0 30% 0); } 100% { clip-path: inset(0% 0 80% 0); }
}

.subtitle { font-size: 1.8rem; margin-bottom: 30px; color: var(--accent-glow); font-weight: 300; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.lead-text { font-size: 1.25rem; line-height: 1.8; color: #eceff1; max-width: 800px; margin: 0 auto; border-left: 3px solid var(--primary); padding-left: 20px; }
.lead-text strong { color: var(--primary); }

/* Server Box */
.server-box {
    background: rgba(15, 20, 25, 0.85);
    border: 2px solid #37474f; /* Dunkler Stein-Rahmen */
    border-bottom: 4px solid var(--primary); /* Eisblauer Boden */
    display: inline-block;
    padding: 20px 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); box-shadow: 0 25px 40px rgba(0, 229, 255, 0.1); } /* Leichter blauer Schatten beim Schweben */
    100% { transform: translateY(0px); }
}
.status-indicator { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 5px; font-weight: bold; }
.ping-dot {
    width: 12px; height: 12px; background-color: #00e676; /* Grün lassen für "Online" oder zu Cyan ändern */
    border-radius: 50%;
    box-shadow: 0 0 15px #00e676; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* Server IP Box */
.server-ip-container {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    position: relative;
}
.server-ip-container:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}
.server-ip-container:active { transform: scale(0.98); }
.copy-tooltip {
    position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #000; padding: 2px 8px; border-radius: 4px;
    font-size: 0.8rem; font-weight: bold; opacity: 0; transition: 0.3s; pointer-events: none;
}
.server-ip-container.copied .copy-tooltip { opacity: 1; top: -35px; }

/* Buttons */
.cta-group { display: flex; gap: 20px; justify-content: center; margin-top: 20px; }
.btn-primary { 
    background: var(--primary); color: #000; /* Schwarzer Text auf hellem Cyan liest sich besser */
    padding: 15px 35px; border-radius: 5px; text-decoration: none; font-weight: 900; 
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4); 
    transition: transform 0.2s, background 0.2s; position: relative; overflow: hidden;
}
/* Shine Effect */
.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); transition: 0.5s;
}
.btn-primary:hover::after { left: 100%; }

.btn-secondary { 
    border: 2px solid var(--accent); 
    color: var(--text); padding: 13px 33px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: 0.3s; 
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 0 30px rgba(0, 229, 255, 0.8); color: white; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: rgba(0, 229, 255, 0.05); }

.btn-text { color: var(--primary); text-decoration: none; font-weight: bold; margin-top: 15px; display: inline-block; transition: 0.3s; }
.btn-text:hover { color: #fff; transform: translateX(5px); }

/* Button Attention Animation (Pulsieren) */
.btn-attention {
    animation: btn-pulse 2s infinite ease-in-out;
}
.btn-attention:hover {
    animation: none; /* Stoppt Animation beim Hovern für sauberen Übergang */
}

@keyframes btn-pulse {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 229, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(0, 229, 255, 0.9); } /* Starker Glow */
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 229, 255, 0.4); }
}

/* --- FORM ELEMENTS (Login & Profile) --- */
input, select, textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    width: 100%;
    transition: 0.3s;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

/* Content Sections */
.section-dark { background: transparent; padding: 100px 20px; position: relative; }
.section-light { background: rgba(15, 20, 25, 0.6); padding: 100px 20px; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(5px); }
.container { max-width: 1200px; margin: 0 auto; text-align: center; }

.divider { height: 2px; width: 100px; background: linear-gradient(90deg, transparent, var(--primary), transparent); margin: 20px auto; box-shadow: 0 0 15px var(--primary); }

/* Story Grid Update */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
}
@media (max-width: 768px) { .story-grid { grid-template-columns: 1fr; text-align: center; } }

.story-visual { position: relative; }
.story-visual img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(0, 229, 255, 0.2);
    transition: 0.3s;
    position: relative; z-index: 2;
}
.story-visual img:hover { transform: scale(1.02); border-color: var(--primary); }
.visual-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80%; height: 80%; background: var(--primary); filter: blur(80px); opacity: 0.2; z-index: 1;
}

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card {
    background: rgba(20, 25, 30, 0.6);
    padding: 40px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05); 
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
/* Card Inner Glow */
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.1), transparent 60%);
    opacity: 0; transition: 0.4s;
}
.feature-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.2); 
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover .icon-box { color: var(--primary); transform: scale(1.1); text-shadow: 0 0 15px var(--primary); }
.icon-box { font-size: 3rem; color: var(--accent); margin-bottom: 20px; transition: 0.3s; position: relative; z-index: 2; }

/* --- NEWS MEDIA STYLES (Video/Bild) --- */
.news-media-wrapper {
    width: 100%;
    height: 220px; /* Einheitliche Höhe für alle News-Bilder/Videos */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #05070a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.news-media-wrapper img, 
.news-media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Füllt den Bereich aus */
    display: block;
    border: none;
}

.news-media-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- YOUTUBE FACADE (Performance) --- */
.youtube-facade {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.youtube-facade img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.8; transition: 0.3s;
}
.youtube-facade:hover img { opacity: 0.6; transform: scale(1.02); }

.youtube-facade .play-button {
    position: absolute;
    width: 65px; height: 65px;
    background: rgba(0, 229, 255, 0.8); /* Theme Cyan */
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 1.8rem; padding-left: 5px; /* Icon optisch mittig */
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transition: 0.3s; z-index: 2;
    pointer-events: none; /* Klick geht auf Wrapper */
}
.youtube-facade:hover .play-button {
    transform: scale(1.1);
    background: #fff; box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

/* Purple Theme Modifier (SEO Features) */
.feature-card.purple-theme:hover {
    border-color: #d500f9;
    box-shadow: 0 0 20px rgba(213, 0, 249, 0.4);
}
.feature-card.purple-theme:hover .icon-box { color: #d500f9; text-shadow: 0 0 15px #d500f9; }

/* Call to Action Box */
.cta-box {
    margin-top: 60px;
    text-align: center;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 40px;
}
.gallery-item {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    transition: 0.4s;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    filter: grayscale(30%);
}
.gallery-item:hover { transform: scale(1.05); z-index: 2; box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3); border-color: var(--primary); filter: grayscale(0%); }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card {
    background: rgba(255,255,255,0.03); padding: 30px; border-radius: 10px; border-left: 3px solid var(--primary); font-style: italic; position: relative;
}
.testimonial-card::before { content: '"'; position: absolute; top: 10px; right: 20px; font-size: 4rem; color: rgba(255,255,255,0.05); font-family: serif; }
.testimonial-author { margin-top: 20px; font-weight: bold; color: var(--primary); font-style: normal; display: flex; align-items: center; gap: 10px; }

/* Class Cards */
.section-intro { max-width: 700px; margin: 0 auto 40px; color: #b0bec5; font-size: 1.1rem; }
.class-card {
    background: rgba(15, 20, 25, 0.8); border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.4s; text-align: left;
}
.class-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-color: var(--primary); }
.class-img { height: 200px; background-size: cover; background-position: center; transition: 0.5s; }
.class-card:hover .class-img { transform: scale(1.1); }
.class-content { padding: 25px; position: relative; }
.class-content h3 { color: var(--primary); margin-bottom: 10px; }
.class-tag { 
    display: inline-block; background: rgba(0, 229, 255, 0.1); color: var(--primary); 
    padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; margin-top: 15px; border: 1px solid var(--primary);
}

/* FAQ Accordion */
.faq-container { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item { margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; background: rgba(255,255,255,0.02); overflow: hidden; transition: 0.3s; }
.faq-question {
    padding: 20px; cursor: pointer; font-weight: bold; display: flex; justify-content: space-between; align-items: center;
    transition: 0.3s;
}
.faq-question:hover { background: rgba(0, 229, 255, 0.05); color: var(--primary); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 20px; color: #ccc; line-height: 1.6;
}
.faq-item.active .faq-answer { padding: 20px; max-height: 200px; border-top: 1px solid rgba(255,255,255,0.1); }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary); }

/* Animation Classes */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Staggered Animation */
.cards-grid .feature-card:nth-child(1) { transition-delay: 0.1s; }
.cards-grid .feature-card:nth-child(2) { transition-delay: 0.3s; }
.cards-grid .feature-card:nth-child(3) { transition-delay: 0.5s; }

.fade-in { animation: fadeIn 1.5s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Footer Pro */
footer { background: #020304; padding: 60px 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 50px; position: relative; z-index: 10; }
.footer-desc { color: #546e7a; margin: 10px 0 20px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-links a { color: #90a4ae; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); }
.social-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; font-size: 1.5rem; }
.social-icons a { color: var(--text); transition: 0.3s; }
.social-icons a:hover { color: var(--primary); transform: scale(1.2); text-shadow: 0 0 10px var(--primary); }
.copyright { color: #37474f; font-size: 0.9rem; }

/* Lightbox (Galerie Popup) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
    border-radius: 5px;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn { from {transform:scale(0.8); opacity: 0;} to {transform:scale(1); opacity: 1;} }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover { color: var(--primary); }

/* --- DEV NOTICE SECTION (EPIC) --- */
.dev-notice {
    background: linear-gradient(to bottom, var(--bg-dark), #080a0c);
    padding: 60px 20px;
    position: relative;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    overflow: hidden;
}

.dev-box {
    background: rgba(0, 229, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 15px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.05);
    backdrop-filter: blur(5px);
}

.dev-icon-wrapper {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--primary);
}

.dev-title {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dev-text {
    font-size: 1.1rem;
    color: #b0bec5;
    line-height: 1.6;
    margin-bottom: 25px;
}

.dev-status-info {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #ffe0b2;
    padding: 15px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    text-align: left;
}
.dev-status-info i { color: #ff9800; font-size: 1.2rem; }

.progress-container { text-align: left; max-width: 600px; margin: 0 auto; }
.progress-label { font-weight: bold; margin-bottom: 8px; color: #eceff1; font-family: 'Cinzel', serif; }
.progress-bar { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.progress-fill {
    height: 100%; width: 85%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    box-shadow: 0 0 10px var(--primary);
    position: relative;
    animation: shimmerBar 2s linear infinite;
    background-size: 200% 100%;
}
@keyframes shimmerBar { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* --- SVG DIVIDERS --- */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}
.custom-shape-divider-bottom .shape-fill {
    fill: var(--bg-dark); /* Matches the next section background */
}

/* =========================================
   LEADERBOARD STYLES
   ========================================= */

/* Tab Navigation */
.lb-tabs {
    display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; flex-wrap: wrap;
}
.lb-tab-btn {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text); padding: 12px 30px; border-radius: 30px; cursor: pointer;
    font-family: 'Cinzel', serif; font-weight: bold; transition: 0.3s;
    text-transform: uppercase; letter-spacing: 1px;
}
.lb-tab-btn:hover, .lb-tab-btn.active {
    background: var(--primary); color: #000; box-shadow: 0 0 20px rgba(0, 229, 255, 0.4); border-color: var(--primary);
}

/* Podium Layout (Top 3) */
.podium-container {
    display: flex; justify-content: center; align-items: flex-end; gap: 20px;
    margin-bottom: 80px; min-height: 380px; padding-top: 20px;
    position: relative;
}

/* Background Glow behind Podium */
.podium-container::before {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 80%; height: 200px;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    z-index: 0; pointer-events: none;
}

.podium-card {
    background: linear-gradient(160deg, rgba(30, 35, 40, 0.9), rgba(15, 20, 25, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 15px; padding: 25px; text-align: center;
    width: 240px; position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float-podium 6s ease-in-out infinite;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Animation für das Schweben */
@keyframes float-podium {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hover Effect */
.podium-card:hover { transform: translateY(-15px) scale(1.02); }

/* Rang 1 (Mitte) */
.podium-card.rank-1 {
    order: 2; /* In der Mitte */
    height: 360px;
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(30, 35, 40, 0.9), rgba(15, 20, 25, 0.95)), linear-gradient(to bottom right, #FFD700, #FDB931, #9e7e06);
    background-origin: border-box; background-clip: content-box, border-box;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.15);
    z-index: 2;
    transform: scale(1.1); /* Größer */
}
.podium-card.rank-1 .rank-badge { 
    background: linear-gradient(45deg, #FFD700, #FDB931); 
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    color: #000; font-size: 1.2rem; width: 40px; height: 40px; top: -20px;
}
.podium-card.rank-1 .crown-icon { 
    display: block; color: #FFD700; font-size: 2.5rem; margin-bottom: 15px; 
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    animation: float-crown 3s ease-in-out infinite;
}
@keyframes float-crown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Rang 2 (Links) */
.podium-card.rank-2 {
    order: 1;
    height: 300px;
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(30, 35, 40, 0.9), rgba(15, 20, 25, 0.95)), linear-gradient(to bottom right, #E0E0E0, #BDBDBD, #757575);
    background-origin: border-box; background-clip: content-box, border-box;
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.1);
    animation-delay: 0.5s; /* Versetztes Schweben */
}
.podium-card.rank-2 .rank-badge { background: linear-gradient(45deg, #E0E0E0, #BDBDBD); color: #000; }

/* Rang 3 (Rechts) */
.podium-card.rank-3 {
    order: 3;
    height: 280px;
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(30, 35, 40, 0.9), rgba(15, 20, 25, 0.95)), linear-gradient(to bottom right, #CD7F32, #A1662F, #6d4c41);
    background-origin: border-box; background-clip: content-box, border-box;
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.1);
    animation-delay: 1s;
}
.podium-card.rank-3 .rank-badge { background: linear-gradient(45deg, #CD7F32, #A1662F); color: #000; }

/* Avatar im Podium */
.podium-avatar {
    width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
    margin-bottom: 20px; border: 4px solid rgba(255,255,255,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: 0.3s;
}
.podium-card:hover .podium-avatar { transform: scale(1.1); border-color: rgba(255,255,255,0.2); }
.rank-1 .podium-avatar { width: 110px; height: 110px; border-color: #FFD700; box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }

.podium-name { font-weight: 900; font-size: 1.4rem; margin-bottom: 5px; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.5); letter-spacing: 1px; }
.podium-score { color: var(--primary); font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: bold; text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
.rank-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-family: 'Cinzel', serif;
}
.crown-icon { display: none; }

/* Liste (Rang 4-30) */
.lb-list {
    max-width: 900px; margin: 0 auto;
    background: rgba(10, 15, 20, 0.6); border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.lb-item {
    display: flex; align-items: center; padding: 18px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: 0.2s;
    position: relative;
}
.lb-item:last-child { border-bottom: none; }
.lb-item:hover { 
    background: rgba(255,255,255,0.03); 
    padding-left: 30px; /* Slight shift */
}
.lb-item::before {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
    background: var(--primary); opacity: 0; transition: 0.2s;
}
.lb-item:hover::before { opacity: 1; }

.lb-rank { width: 50px; font-weight: bold; color: #546e7a; font-family: 'Cinzel', serif; font-size: 1.1rem; }
.lb-user { flex-grow: 1; display: flex; align-items: center; gap: 20px; font-weight: bold; color: #eceff1; font-size: 1.1rem; }
.lb-user img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.1); box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.lb-val { color: var(--primary); font-weight: bold; font-family: 'Courier New', monospace; font-size: 1.1rem; text-shadow: 0 0 5px rgba(0, 229, 255, 0.3); }

/* User Rank Bar (Leaderboard) */
.user-rank-bar {
    background: rgba(20, 25, 30, 0.9);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}
.user-rank-bar::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}
.urb-profile { display: flex; align-items: center; gap: 20px; }
.urb-avatar { 
    width: 60px; height: 60px; border-radius: 50%; 
    border: 2px solid var(--primary); 
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}
.urb-info h3 { margin: 0; color: #fff; font-size: 1.3rem; font-family: 'Cinzel', serif; }
.urb-info span { color: #b0bec5; font-size: 0.9rem; }

.urb-stats { display: flex; gap: 40px; text-align: right; }
.urb-stat-item { display: flex; flex-direction: column; }
.urb-label { font-size: 0.8rem; color: #546e7a; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }
.urb-value { font-size: 1.4rem; color: var(--primary); font-family: 'Cinzel', serif; font-weight: bold; text-shadow: 0 0 10px rgba(0, 229, 255, 0.3); }
.urb-sub { font-size: 0.85rem; color: #eceff1; font-family: 'Courier New', monospace; }

@media (max-width: 768px) {
    .user-rank-bar { flex-direction: column; gap: 20px; text-align: center; padding: 20px; }
    .urb-profile { flex-direction: column; gap: 10px; }
    .urb-stats { width: 100%; justify-content: space-around; gap: 10px; }
    .urb-stat-item { align-items: center; }
    .user-rank-bar::before { width: 100%; height: 4px; top: 0; left: 0; }
}

/* --- LEADERBOARD FIGURES --- */
.lb-figure {
    position: absolute;
    top: -320px;   /* Schiebt das Bild nach oben in den Header */
    left: -80px;   /* Leicht links versetzt für Dynamik */
    height: 380px; /* Feste Höhe, damit es proportional passt */
    width: auto;
    max-width: 45vw;
    object-fit: contain;
    z-index: 1;
    display: none;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
    pointer-events: none;
}

.lb-figure.active {
    display: block;
    animation: enterLeft 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, floatFigure 6s ease-in-out infinite 1.5s;
}
/* Mobile Optimierung */
@media (max-width: 768px) {
    .podium-container {
        flex-direction: column; /* Untereinander */
        align-items: center;
        height: auto;
        gap: 30px;
    }
    
    /* Reihenfolge ändern: 1. oben, dann 2., dann 3. */
    .podium-card.rank-1 { order: 1; transform: scale(1); width: 100%; max-width: 300px; }
    .podium-card.rank-2 { order: 2; width: 100%; max-width: 300px; height: auto; }
    .podium-card.rank-3 { order: 3; width: 100%; max-width: 300px; height: auto; }
    
    .podium-card { animation: none; } /* Kein Schweben auf Mobile um Platz zu sparen/Ruckeln zu vermeiden */
}

/* --- USER MENU (Navbar & Mobile) --- */
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
}

.diamond-badge {
    display: flex; align-items: center; gap: 10px;
    background: rgba(0, 229, 255, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.profile-btn {
    background: rgba(0, 229, 255, 0.1) !important;
    border-color: var(--primary) !important;
    display: flex; align-items: center; gap: 10px;
}

@media (max-width: 768px) {
    .user-menu-item {
        flex-direction: column;
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    
    .diamond-badge, .profile-btn {
        width: auto;
        min-width: 180px;
        justify-content: center;
    }
}