/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Orbitron:wght@500;700;900&display=swap');

:root {
    --bg-dark: #05080c;
    --bg-card: #0e121b;
    --neon-cyan: #00f3ff;
    --neon-purple: #9d00ff;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-tech: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    font-family: var(--font-body); 
    line-height: 1.6; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
}

/* Dunkles Tech-Raster im Hintergrund */
.grid-bg { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background-image: linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px); 
    background-size: 40px 40px; z-index: -1; pointer-events: none; 
}

/* --- NAVIGATION (Dunkles Glas) --- */
nav { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 20px 5%; 
    background: rgba(5, 8, 12, 0.8); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    position: sticky; top: 0; z-index: 100; 
    border-bottom: 1px solid rgba(0, 243, 255, 0.1); 
}

/* Container für das Logo zentrieren */
.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
}

/* Bild-Größe beschränken */
.logo img {
    height: 40px; 
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Leichter Zoom-Effekt beim Hovern */
.logo:hover img {
    transform: scale(1.05); 
}

.nav-links a { 
    color: var(--text-main); text-decoration: none; margin-left: 30px; 
    font-size: 0.95rem; font-weight: 600; transition: color 0.3s, text-shadow 0.3s; 
}
.nav-links a:hover, .nav-links a.active { 
    color: var(--neon-cyan); 
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
}

/* --- HERO --- */
.hero { padding: 100px 5% 60px; text-align: center; }
.hero h1 { 
    font-family: var(--font-tech); 
    font-size: 4rem; 
    margin-bottom: 20px; 
    letter-spacing: 1px; /* Etwas mehr Luft zwischen den Buchstaben für den modernen Tech-Look */
    
    /* NEU: Ein sauberer, eleganter Verlauf von Weiß zu Cyan (wie auf der Business-Seite, nur in hell) */
    background: linear-gradient(135deg, #ffffff 30%, var(--neon-cyan)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    
    /* Ein hauchzarter Glow, der das Neon-Thema aufgreift */
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.2));
}
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* --- GAMES GRID --- */
.games-section { padding: 0 5% 100px; max-width: 1400px; margin: 0 auto; width: 100%; }
.games-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 40px; 
    justify-items: center; 
}

/* Neon Cards */
.game-card { 
    width: 100%; max-width: 340px; height: 480px; 
    background: var(--bg-card); 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 16px; overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; flex-direction: column; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.game-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 40px rgba(0, 243, 255, 0.15); 
    border-color: rgba(0, 243, 255, 0.5); 
}
.card-image { height: 300px; background: linear-gradient(45deg, #1a1f2e, #2a3b55); flex-shrink: 0; }
.card-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-content h3 { font-family: var(--font-tech); font-size: 1.3rem; margin-bottom: 8px; color: var(--text-main); }
.card-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; line-height: 1.4; }
.card-tags { display: flex; gap: 8px; font-size: 0.7rem; flex-wrap: wrap;}
.tag { padding: 4px 10px; border-radius: 4px; background: rgba(0, 243, 255, 0.1); color: var(--neon-cyan); text-transform: uppercase; font-weight: 600; letter-spacing: 1px;}

/* --- FOOTER (Dunkles Glas) --- */
footer { 
    margin-top: auto; padding: 30px 5%; 
    background: rgba(5, 8, 12, 0.8); 
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-content {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-muted); font-size: 0.95rem; font-weight: 600;
}
.legal-links { display: flex; gap: 30px; }
.legal-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.legal-links a:hover { color: var(--neon-cyan); }

@media (max-width: 768px) {
    .footer-content { flex-direction: column; gap: 15px; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
}
/* --- HAMBURGER MENU & MOBILE NAVIGATION --- */

/* Der Button an sich (auf Desktop unsichtbar) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 21px;
    width: 30px;
    z-index: 101; /* Muss über dem Menü liegen */
}

/* Die drei Striche des Burgers */
.menu-toggle .bar {
    height: 3px;
    width: 100%;
    /* In business.css: #0a1128 / In games.css: #fff */
    background-color: var(--text-main); 
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Animation zu einem "X" wenn aktiv */
.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Ansicht (Handys und kleine Tablets) */
@media (max-width: 768px) {
    
    /* Mach den Burger-Button sichtbar */
    .menu-toggle {
        display: flex;
    }

    /* Das Menü-Design für Handys (Glas-Effekt) */
    .nav-links {
		display: flex;
        position: absolute;
        top: 100%; /* Direkt unter der Navigation ansetzen */
        left: 0;
        width: 100%;
        height: 0; /* Standardmäßig zugeklappt */
        flex-direction: column;
        align-items: center;
        background: rgba(5, 8, 12, 0.95); /* Für business.css! */
        /* HINWEIS: Ändere die Zeile hier drüber in der games.css zu: 
           background: rgba(5, 8, 12, 0.95); */
        backdrop-filter: blur(15px);
        overflow: hidden; /* Versteckt die Links, wenn zugeklappt */
        transition: height 0.4s ease-in-out;
        border-bottom: 1px solid rgba(0,0,0,0.1); /* Für business.css */
        /* HINWEIS: In games.css ändern zu: border-bottom: 1px solid rgba(0,243,255,0.2); */
    }

    /* Das aufgeklappte Menü */
    .nav-links.active {
        height: 280px; /* Platz für 4 Links */
        padding-top: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    /* Die Links im mobilen Menü */
    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    /* Fade-in Animation für die Links, wenn das Menü offen ist */
    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
        /* Leicht verzögert, damit das Menü erst aufklappt und dann der Text kommt */
        transition-delay: 0.1s; 
    }
}