/* --- FONTS (Inter für sauberen Look) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-light: #f4f7f6; /* Sehr helles Grau-Grün */
    --text-main: #0a1128; /* Dunkelblau */
    --text-muted: #53648e;
    --primary-blue: #007bff; /* Klassisches Blau */
    --primary-cyan: #00f3ff; /* Dein Cyan-Akzent */
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: var(--bg-light); 
    /* Flüssiger Glas-Hintergrundeffekt */
    background-image: 
        radial-gradient(at 10% 10%, rgba(0, 123, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(0, 243, 255, 0.1) 0px, transparent 50%);
    color: var(--text-main); 
    font-family: var(--font-body); 
    line-height: 1.6; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
}

/* --- NAVIGATION --- */
nav { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 20px 5%; 
    background: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(15px); /* Starker Frosteffekt */
    position: sticky; top: 0; z-index: 100; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); 
}

/* Container für das Logo zentrieren */
.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
}

/* Bild-Größe beschränken */
.logo img {
    height: 40px; /* Falls das Logo zu groß/klein ist, passe diesen Wert an (z.B. 35px oder 50px) */
    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-muted); text-decoration: none; margin-left: 30px; 
    font-size: 0.95rem; font-weight: 600; transition: color 0.3s; 
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-blue); }

/* --- HERO --- */
.hero { padding: 120px 5% 80px; text-align: center; max-width: 900px; margin: 0 auto; }
.hero h1 { 
    font-size: 4rem; font-weight: 800; color: var(--text-main); 
    margin-bottom: 20px; line-height: 1.1; letter-spacing: -2px; 
    /* Subtiler Verlaufeffekt im Text */
    background: linear-gradient(135deg, var(--text-main), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 50px; }

/* --- BUTTONS --- */
.btn { 
    padding: 16px 36px; 
    background: linear-gradient(135deg, var(--primary-blue), #00aaff); 
    color: #fff; font-weight: 600; text-decoration: none; border-radius: 50px; /* Abgerundete Formen */
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease; display: inline-block; border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4); }
.btn-outline { background: transparent; color: var(--primary-blue); border: 2px solid var(--primary-blue); box-shadow: none;}
.btn-outline:hover { background: rgba(0, 123, 255, 0.05); }

/* --- CARDS & PANELS --- */
/* --- LAYOUT FÜR DIE KARTEN (Verhindert, dass sie so extrem breit gezogen werden) --- */
.section-container { 
    padding: 0 5% 80px; 
    max-width: 1200px; 
    margin: 0 auto; 
    width: 100%; 
}

.portal-grid { 
    display: grid; 
    /* Sorgt dafür, dass die Karten am PC nebeneinander und am Handy untereinander stehen */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; 
}

/* --- VERBESSERTE LIQUID GLASS KARTEN --- */
.card { 
    /* Ein feiner Farbverlauf für mehr 3D-Glas-Optik */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8); 
    border-radius: 24px; 
    padding: 50px 40px; 
    /* Subtiler Schatten plus ein innerer "Glow" (inset) */
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.4); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Leicht federnde Animation */
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    align-items: center;
}

.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 25px 50px rgba(0, 123, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.8); 
}

.card h2 { 
    font-size: 2rem; 
    margin-bottom: 20px; 
    /* Überschrift bekommt denselben edlen Verlauf wie die Haupt-Headline */
    background: linear-gradient(135deg, var(--text-main), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card p {
    margin-bottom: 35px;
}

/* --- SCHICKER FOOTER IM GLAS-DESIGN --- */
footer { 
    margin-top: auto; 
    padding: 30px 5%; 
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-content {
    max-width: 1200px;
    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 ease, transform 0.3s ease;
    display: inline-block;
}

.legal-links a:hover { 
    color: var(--primary-blue); 
    transform: translateY(-2px);
}

/* Responsive Anpassung für den Footer auf Handys */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* --- 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(255, 255, 255, 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; 
    }
}