:root {
    --bg-glass: rgba(5, 5, 5, 0.65);
    --surface: rgba(18, 18, 18, 0.5);
    --surface-hover: rgba(26, 26, 26, 0.7);
    --primary: #00e070;
    --primary-hover: #00c060;
    --text: #ffffff;
    --text-muted: #cccccc;
    --gradient: linear-gradient(135deg, #00e070 0%, #00a8cc 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #050505; 
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; transition: all 0.4s ease; }
ul { list-style: none; }

/* DYNAMISCHER HINTERGRUND */
.bg-slider-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; background-color: #000;
}
.bg-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0;
    transition: opacity 1.5s ease-in-out; transform: scale(1.05);
}
.bg-layer.active { opacity: 1; animation: slowZoom 15s linear infinite; }

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* NAVBAR */
.navbar {
    position: fixed; top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.5s ease, padding 0.5s ease;
}
.navbar:hover { background: rgba(5, 5, 5, 0.3); }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.nav-logo { height: 45px; transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); }
.nav-logo:hover { transform: scale(1.08) rotate(-2deg); filter: drop-shadow(0 0 15px rgba(255,255,255,0.6)); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:hover { color: var(--primary); text-shadow: 0 0 10px rgba(0, 224, 112, 0.4); transform: translateY(-2px); }

.btn-login { font-weight: 600; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

/* PREMIUM BUTTONS MIT SHINE EFFEKT */
.btn-primary, .btn-discord, .btn-hero, .btn-secondary {
    position: relative; overflow: hidden;
}

.btn-primary::after, .btn-discord::after, .btn-hero::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); transition: all 0.7s ease;
}

.btn-primary:hover::after, .btn-discord:hover::after, .btn-hero:hover::after {
    left: 200%; transition: all 0.7s ease;
}

.btn-primary {
    background: var(--gradient); color: #000; padding: 10px 20px; border-radius: 50px;
    font-weight: 800; box-shadow: 0 4px 15px rgba(0, 224, 112, 0.3); border: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(0, 224, 112, 0.6); color: #fff; }

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #7289da); color: white; padding: 18px 45px;
    border-radius: 50px; font-weight: 800; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 12px;
    border: none; box-shadow: 0 5px 20px rgba(88, 101, 242, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-discord:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 15px 35px rgba(88, 101, 242, 0.5); color: white; }

.btn-hero {
    background: var(--primary); color: #000; padding: 18px 45px; border-radius: 50px;
    font-weight: 800; font-size: 1.1rem; box-shadow: 0 5px 25px rgba(0, 224, 112, 0.4);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-hero:hover { background: #fff; box-shadow: 0 0 40px rgba(0, 224, 112, 0.8); transform: translateY(-4px) scale(1.05); }

.btn-secondary {
    padding: 18px 45px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.3); font-weight: 700;
    background: rgba(255,255,255,0.03); backdrop-filter: blur(8px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: rgba(0, 224, 112, 0.05); transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 25px rgba(0, 224, 112, 0.2); }

/* HERO SECTION */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(5,5,5,0.95) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 850px; padding: 20px; }

/* PULSIERENDER BADGE */
@keyframes pulse-badge {
    0% { box-shadow: 0 0 15px rgba(0, 224, 112, 0.15), inset 0 0 10px rgba(0, 224, 112, 0.1); }
    50% { box-shadow: 0 0 25px rgba(0, 224, 112, 0.5), inset 0 0 15px rgba(0, 224, 112, 0.2); }
    100% { box-shadow: 0 0 15px rgba(0, 224, 112, 0.15), inset 0 0 10px rgba(0, 224, 112, 0.1); }
}

.badge {
    display: inline-block; background: rgba(0, 224, 112, 0.05); color: var(--primary);
    padding: 6px 18px; border-radius: 20px; border: 1px solid rgba(0, 224, 112, 0.5);
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
    backdrop-filter: blur(5px); margin-bottom: 25px; 
    animation: pulse-badge 3s infinite ease-in-out;
}

.hero h1 { font-size: 4.5rem; margin: 10px 0 20px 0; line-height: 1.1; font-weight: 800; text-shadow: 0 4px 15px rgba(0,0,0,0.5); letter-spacing: -1px; }

.text-gradient {
    background: linear-gradient(135deg, #00e070 0%, #00a8cc 50%, #00e070 100%); background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block;
    animation: gradientShine 4s linear infinite; text-shadow: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
@keyframes gradientShine { to { background-position: 200% center; } }

.hero p { font-size: 1.25rem; color: #e0e0e0; margin-bottom: 45px; text-shadow: 0 2px 8px rgba(0,0,0,0.9); font-weight: 400; line-height: 1.7; }
.cta-group { display: flex; gap: 20px; justify-content: center; }

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem; animation: bounce 2s infinite ease-in-out; cursor: pointer; transition: color 0.5s ease;
}
.scroll-indicator:hover { color: var(--primary); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* FEATURES - Weiches Glas */
.features { padding: 120px 5%; background: var(--bg-glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid rgba(255,255,255,0.08); }
.container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.section-title { font-size: 3rem; margin-bottom: 20px; text-align: center; font-weight: 800; letter-spacing: -1px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; margin-top: 60px;}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 45px 35px; border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05); border-top: 1px solid rgba(255, 255, 255, 0.15); border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 224, 112, 0.15) 0%, transparent 60%); opacity: 0; transition: opacity 0.6s ease; pointer-events: none;
}
.feature-card:hover { transform: translateY(-15px); border-color: rgba(0, 224, 112, 0.4); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 224, 112, 0.15); background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%); }
.feature-card:hover::before { opacity: 1; }

/* WEICHE ICON DE-ANIMATION (Kein Sprung mehr, federt sanft zurück) */
.icon-box { 
    font-size: 3.5rem; margin-bottom: 25px; color: var(--primary); 
    filter: drop-shadow(0 0 15px rgba(0, 224, 112, 0.5)); display: inline-block; 
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s ease; 
}
.feature-card:hover .icon-box { 
    transform: translateY(-12px) scale(1.15); 
    filter: drop-shadow(0 10px 25px rgba(0, 224, 112, 0.8)); 
}

.feature-card h3 { font-size: 1.6rem; margin-bottom: 15px; font-weight: 800; color: #fff; }
.feature-card p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* STATS SECTION */
.stats-section { padding: 120px 5%; background: linear-gradient(to bottom, rgba(5,5,5,0.8), rgba(10,10,10,0.95)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,0.05); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; flex: 1; }
.stat-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255,255,255,0.05); border-top: 1px solid rgba(255, 255, 255, 0.15); border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px; text-align: center; border-radius: 24px; box-shadow: 0 15px 35px rgba(0,0,0,0.5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.stat-box:hover { border-color: rgba(0, 224, 112, 0.3); transform: translateY(-8px) scale(1.02); background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%); box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(0, 224, 112, 0.1); }
.stat-box h3 { font-size: 4rem; color: var(--primary); margin-bottom: 10px; text-shadow: 0 0 25px rgba(0, 224, 112, 0.4); font-weight: 800; }
.stat-box p { font-weight: 700; color: #fff; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px;}

/* KINEMATOGRAFISCHE SCROLL REVEAL ANIMATIONS */
.reveal { 
    opacity: 0; 
    transform: translateY(50px) scale(0.95); 
    filter: blur(10px); 
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); 
}
.reveal.active { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
    filter: blur(0); 
}

/* =========================================
   👥 USER MENTIONS
   ========================================= */
.user-mention {
    display: inline-flex;
    align-items: center;
    height: 20px;
    background: rgba(0, 224, 112, 0.15);
    color: #00e070 !important;
    padding: 0 4px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    vertical-align: baseline; 
    border: none;
    transition: background 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.user-mention:hover {
    background: rgba(0, 224, 112, 0.3);
}

.user-mention img {
    width: 14px;
    height: 14px;
    border-radius: 0 !important; 
    image-rendering: pixelated; 
    display: block; 
    margin-right: 4px;
}

/* =========================================
   📱 MASTER MOBILE UPGRADE FOR LANDING.CSS
   (Ersetzt den alten @media Block komplett)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. NAVBAR - Garantiert exakt EINE Zeile hoch */
    .navbar {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 5% !important;
        height: 70px !important;
        position: fixed !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. HAMBURGER-BUTTON - Sauber auf der rechten Seite */
    .navbar::after {
        content: '☰' !important;
        display: block !important;
        color: #fff !important;
        font-size: 1.8rem !important;
        cursor: pointer !important;
        transition: transform 0.3s ease, color 0.3s ease !important;
        line-height: 1 !important;
    }

    /* 3. DROPDOWN-MENÜ - Schwebende Ebene */
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        position: absolute !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(8, 8, 8, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        
        max-height: 0 !important;
        opacity: 0 !important;
        overflow-y: auto !important;
        pointer-events: none !important;
        padding: 0 !important;
        gap: 0 !important;
        
        transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.9) !important;
        border-bottom: 2px solid rgba(0, 224, 112, 0.3) !important;
    }

    /* Links & Social Icons absolut perfekt zentriert */
    .nav-links a {
        width: 100% !important;
        max-width: 320px !important;
        padding: 14px 20px !important;
        margin: 0 !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        font-size: 16px !important;
    }
    
    .nav-links a:last-child { border-bottom: none !important; }
    .nav-divider { display: none !important; }

    /* Aktivierung bei Berührung der Navbar (Schließen durch Tippen auf Website-Inhalt) */
    .navbar:hover .nav-links,
    .navbar:active .nav-links,
    .navbar:focus-within .nav-links {
        max-height: 85vh !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        padding: 15px 0 !important;
    }

    .navbar:hover::after,
    .navbar:active::after,
    .navbar:focus-within::after {
        content: '✕' !important;
        color: var(--primary) !important;
        transform: rotate(90deg) !important;
    }

    /* =========================================
       ✍️ TEXT-OVERFLOW & ZEILENUMBRUCH-FIX
       ========================================= */
    .hero h1, .page-header h1 {
        font-size: max(24px, 7vw) !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
    }

    /* Erzwingt den Zeilenumbruch auch mitten im Farbverlauf */
    .text-gradient {
        display: inline !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }

    .hero p { font-size: 1.05rem !important; margin-bottom: 30px !important; line-height: 1.6 !important; }
    .page-header { padding: 120px 5% 20px !important; }
    .mission-text { padding: 22px !important; margin-bottom: 40px !important; }
    .grid, .team-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .feature-card, .team-card, .stat-box { padding: 25px 20px !important; }
    .stats-grid { grid-template-columns: 1fr !important; }
    .btn-discord, .btn-hero, .btn-secondary, .btn-curseforge { width: 100% !important; justify-content: center !important; text-align: center !important; }

    /* =========================================
       📢 FOOTER RADIKALE ZENTRIERUNG
       ========================================= */
    .footer-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 40px !important;
    }

    .footer-brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Zentriert das Logo und die Beschreibung mit max-width */
    .footer-logo {
        margin: 0 auto 20px auto !important;
        display: block !important;
    }

    .footer-brand p {
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* Zentriert die Link-Gruppen (Navigation, Rechtliches...) */
    .footer-links {
        width: 100% !important;
        justify-content: center !important;
        gap: 35px !important;
        text-align: center !important;
    }

    .link-group {
        flex: 1 1 100% !important;
        text-align: center !important;
    }

    .link-group h4 {
        margin-bottom: 15px !important;
    }

    .link-group a {
        text-align: center !important;
        margin: 12px auto !important;
    }

    /* Ganz untere Zeile zentrieren */
    .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
        margin-top: 40px !important;
        padding-top: 20px !important;
    }
    /* =========================================
       📰 BLOG-POSTS & NEWS-MINTIONS (AKTUELLES) OPTIMIERUNG
       ========================================= */
    .blog-post {
        padding: 25px 20px !important;
        margin-bottom: 25px !important;
    }

    .blog-title {
        font-size: max(22px, 5.5vw) !important;
        line-height: 1.3 !important;
    }

    /* Fixt die auseinanderbrechenden Metadaten (Datum, Autor) auf Mobile */
    .blog-meta {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }

    /* Verhindert, dass Icons im Text oder in den Metadaten riesig werden */
    .blog-meta span, .blog-content i, .blog-post i {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 14px !important; /* Richtige Mindestgröße für Lesbarkeit */
    }

    .blog-meta i {
        margin-right: 8px !important;
        width: 16px !important; /* Zwingt das Icon in ein festes Gehäuse */
        text-align: center !important;
    }

    /* Fixt eingebettete Videos und Youtube-Iframes, damit sie nicht clippen */
    .blog-content iframe {
        height: 250px !important; /* Angenehme mobile Höhe */
        width: 100% !important;
    }

    /* =========================================
       👥 USER MENTIONS & KEYBINDS INLINE-FLOW
       ========================================= */
    /* Verhindert, dass mechanische Tasten im Text das Layout sprengen */
    kbd {
        padding: 2px 6px !important;
        font-size: max(12px, 0.8em) !important;
        border-radius: 4px !important;
        box-shadow: 0 2px 0 #000, 0 3px 5px rgba(0,0,0,0.4) !important; /* Flachere 3D-Tiefe */
    }
}
