/* --- 1. BASIS SETUP --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: transparent; 
    color: #d1d1d1; 
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- 2. RAUCH-VIDEO FIX --- */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; 
    background-color: #000; 
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; 
    display: block !important;
}

/* --- 3. HEADER (Zentriertes Menü) --- */
header {
    background-color: rgba(15, 15, 15, 0.98);
    border-bottom: 2px solid #A00000;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    flex-shrink: 0;
}

/* Linker Bereich: Logo */
.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo {
    height: 35px;
    width: auto;
}

/* Mittlerer Bereich: Navigation */
nav {
    flex: 2; /* Nimmt mehr Platz ein, um zu zentrieren */
    display: flex;
    justify-content: center;
}

nav ul { 
    list-style: none; 
    display: flex; 
    align-items: center; 
    gap: 20px;
}

nav a { 
    color: #999; 
    text-decoration: none; 
    text-transform: uppercase; 
    font-size: 0.75em; 
    font-weight: 600; 
    transition: 0.3s;
    letter-spacing: 1px;
}

nav a:hover { color: #fff; }

/* Rechter Bereich: Store Button */
.header-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-buy-button {
    background-color: #A00000;
    padding: 8px 16px;
    border-radius: 4px;
    color: #fff !important;
    font-size: 0.75em;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.nav-buy-button:hover { background-color: #cc0000; }

/* --- 4. CONTENT BEREICH (FOOTER-FIX) --- */
main {
    flex: 1 0 auto; 
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-content, .media-gallery, .game-section-wrapper, .story-content, .follow-page {
    background-color: rgba(20, 20, 20, 0.5) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 900px;
    margin-bottom: 30px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- 5. ELEMENTE --- */
img:not(.logo) {
    max-width: 100%;
    max-height: 450px;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
}

.game-link-button, .contact-email, .game-card-button {
    display: inline-block;
    padding: 14px 28px;
    background-color: #A00000;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 10px;
    transition: 0.3s;
}

.contact-email { background-color: #383838; }

/* --- 6. MOBILE OPTIMIERUNG --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6em;
    cursor: pointer;
}

@media (max-width: 950px) {
    .menu-toggle { display: block; z-index: 1001; }
    
    .logo-container { flex: 1; }
    .header-actions { display: none; } /* Desktop-Button ausblenden */

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98); 
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease-in-out;
    }

    nav.active { right: 0; }
    nav ul { 
        flex-direction: column; 
        gap: 30px; 
        width: 100%; /* Volle Breite für Zentrierung */
        padding: 0 20px;
    }
    
    nav a { font-size: 1.2em; }

    /* FIX: Verhindert, dass der rote Store-Button auf Mobile abgeschnitten wird */
    .mobile-store-li {
        display: block !important;
        width: 100%;
        margin-top: 20px !important;
        text-align: center;
    }

    .mobile-store-li .nav-buy-button {
        display: inline-block !important; /* Erlaubt Padding und Hintergrund korrekt darzustellen */
        width: 85%;
        max-width: 280px;
        padding: 15px 20px !important;
        background-color: #A00000 !important;
        border-radius: 6px;
        font-size: 1em !important;
        box-sizing: border-box; /* Wichtig, damit Padding die Breite nicht sprengt */
    }
    
    /* Backstage im Menü hervorheben falls gewünscht */
    .nav-backstage {
        margin-top: 10px;
    }
}

/* --- 7. FOOTER --- */
footer {
    flex-shrink: 0;
    background-color: rgba(10, 10, 10, 0.95);
    padding: 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}