:root {
    /* --- NEUE FARBPALETTE (Lebendiger, blauer, mehr Tiefe) --- */
    --background: 224 30% 12%; /* Helleres Deep Space Blue (nicht mehr fast schwarz) */
    --foreground: 210 40% 98%;
    
    --card: 222 47% 8%; /* Dunkler als der Hintergrund für Kontrast */
    --card-border: 1px solid hsla(217, 91%, 60%, 0.15);
    
    --primary: 217 91% 60%;
    --primary-glow: hsla(217, 91%, 60%, 0.4);
    
    --secondary: 217 33% 17%;
    --muted: 217 33% 15%;
    --muted-foreground: 215 20% 70%;
    
    --destructive: 0 84% 60%;
    
    --header-height: 90px;
    --radius: 12px;
}

/* Neuer Body Hintergrund mit Verlauf ins Schwarze (für den Footer-Übergang) */
body {
    background-color: hsl(var(--background));
    /* Verlauf: Oben Blau/Lila Licht, Mitte Deep Blue, Unten Schwarz für den Footer */
    background-image: 
        radial-gradient(circle at 50% 0%, hsla(250, 60%, 20%, 0.4) 0%, transparent 50%),
        linear-gradient(to bottom, hsl(var(--background)) 0%, #000000 100%);
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.2s ease; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

/* --- UTILITIES --- */
.w-full { width: 100%; }
.text-gradient {
    background: linear-gradient(135deg, hsl(var(--foreground)) 0%, hsla(var(--foreground), 0.5) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* --- COMPONENTS --- */
.glass-panel, .widget, .sidebar-module {
    background: hsla(var(--card), 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid hsla(var(--border), 0.5);
    border-radius: var(--radius);
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

/* --- BUTTONS (NEW STYLE) --- */
.btn-core {
    background: hsl(var(--primary));
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: 0.3s;
    text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 4px 15px hsla(var(--primary), 0.3);
}
.btn-core:hover {
    background: hsl(var(--primary));
    box-shadow: 0 8px 25px hsla(var(--primary), 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent; border: 1px solid hsla(var(--border), 0.8);
    color: hsl(var(--foreground)); padding: 10px 24px; border-radius: 6px; font-weight: 600;
    cursor: pointer; text-transform: uppercase; font-size: 0.85rem;
}
.btn-outline:hover {
    border-color: hsl(var(--primary)); color: hsl(var(--primary));
    background: hsla(var(--primary), 0.1);
}

/* Social Icons */
.btn-social {
    width: 40px; height: 40px; border-radius: 8px;
    background: hsla(var(--card), 0.8); border: 1px solid hsla(var(--border), 0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: hsl(var(--muted-foreground)); transition: 0.3s;
}
.btn-social:hover { color: white; border-color: hsl(var(--primary)); background: hsla(var(--primary), 0.1); transform: translateY(-3px); }

/* --- HEADER (FULL WIDTH) --- */
.site-header {
    height: var(--header-height);
    width: 100vw !important; max-width: 100vw !important;
    position: fixed; top: 0; left: 0; right: 0; z-index: 5000;
    background: hsla(var(--background), 0.85);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid hsla(var(--border), 0.3);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px !important;
}

.nav-link {
    font-weight: 700; font-size: 13px; color: hsl(var(--muted-foreground)); 
    text-transform: uppercase; letter-spacing: 1px; margin: 0 15px; position: relative; padding: 32px 0;
}
.nav-link:hover, .nav-link.active { color: white; }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: hsl(var(--primary));
    box-shadow: 0 -5px 15px hsl(var(--primary));
}

/* Header Actions (Neu) */
.header-actions { display: flex; align-items: center; gap: 15px; }
.action-btn {
    display: flex; align-items: center; gap: 10px;
    background: hsla(var(--card), 0.5); border: 1px solid hsla(var(--border), 0.5);
    padding: 8px 16px; border-radius: 8px; color: white; font-weight: 600; font-size: 13px;
    transition: 0.2s; cursor: pointer;
}
.action-btn:hover { background: hsla(var(--border), 0.5); border-color: hsl(var(--primary)); }
.action-btn i { font-size: 18px; color: hsl(var(--primary)); }

/* --- LAYOUT --- */
.site-wrapper {
    margin-top: var(--header-height); width: 100%; display: flex; flex-direction: column; align-items: center; flex: 1;
}
.content-container { width: 90%; max-width: 1600px; margin: 40px auto; position: relative; z-index: 10; }

/* --- FOOTER --- */
.site-footer {
    width: 100%; background: #000;
    border-top: 1px solid var(--glass-border); padding: 80px 0 40px 0;
    margin-top: auto; position: relative; z-index: 20;
}
.footer-inner {
    width: 90%; max-width: 1600px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px;
}
/* Standard Link Container (Desktop: Untereinander) */
.footer-link-list { display: flex; flex-direction: column; gap: 12px; }

/* Mobile Optimierungen für den Footer */
@media (max-width: 1024px) {
    .site-footer { padding: 40px 0 20px 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    
    /* Text ausblenden mobil */
    .footer-desc-text { display: none; }
    
    /* Socials zentrieren mobil */
    .footer-socials { justify-content: center; margin-bottom: 10px; }
    
    /* Legal Links NEBENEINANDER mobil */
    .footer-link-list.legal-mobile-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-bottom: 10px;
    }
    
    .footer-link-list.legal-mobile-row a {
        font-size: 12px;
        background: hsla(var(--card), 0.5);
        padding: 8px 12px;
        border-radius: 6px;
        border: 1px solid var(--glass-border);
    }
}

/* --- MOBILE --- */
.mobile-only { display: none; }
@media (max-width: 1024px) {
    .site-header { padding: 0 20px !important; }
    .content-container { width: 95%; margin: 20px auto; }
    .desktop-only { display: none !important; }
    .mobile-only { display: block; }
    
    /* Footer Mobile Optimierung */
    .site-footer { padding: 40px 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-links-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } /* 2 Spalten für Links mobil */
    
    .mobile-bar {
        position: fixed; bottom: 0; left: 0; width: 100%; height: 70px;
        background: hsla(var(--background), 0.95); border-top: 1px solid hsla(var(--border), 0.5);
        z-index: 10000; display: flex; justify-content: space-around; align-items: center;
        backdrop-filter: blur(20px);
    }
    .m-icon {
        display: flex; flex-direction: column; align-items: center; gap: 4px;
        color: hsl(var(--muted-foreground)); font-size: 10px; background: none; border: none;
    }
    .m-icon.active { color: hsl(var(--primary)); }
    
    /* Mobile Overlay Menu - DARK THEME */
    .mobile-overlay {
        position: fixed; inset: 0; 
        background: hsl(var(--background)); /* Dunkler Hintergrund */
        z-index: 99999; transform: translateY(100%); transition: 0.3s;
        padding: 20px 20px 100px 20px; overflow-y: auto;
        display: flex; flex-direction: column;
    }
    .mobile-overlay.open { transform: translateY(0); }
}