/* --- Premium Theme Variables --- */
:root[data-theme="dark"] {
    --bg-base: #050505;
    --bg-gradient: radial-gradient(circle at top right, #1a1a2e 0%, #050505 100%);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --accent-primary: #5c6bc0;
    --accent-glow: rgba(92, 107, 192, 0.4);
    --discord-color: #5865F2;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

:root[data-theme="light"] {
    --bg-base: #f0f2f5;
    --bg-gradient: radial-gradient(circle at top right, #ffffff 0%, #e4e7eb 100%);
    --text-main: #111827;
    --text-muted: #4b5563;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.9);
    --accent-primary: #4f46e5;
    --accent-glow: rgba(79, 70, 229, 0.3);
    --discord-color: #5865F2;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Base & Scrollbar --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Segoe UI', sans-serif; }
html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

body {
    background: var(--bg-gradient);
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Background Animation --- */
.bg-animation {
    position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 40%);
    opacity: 0.3; pointer-events: none; z-index: -1;
    animation: rotateBg 30s linear infinite;
}
@keyframes rotateBg { 100% { transform: rotate(360deg); } }

/* --- Navbar (Glassmorphism) --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--accent-primary); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-weight: 600;
    position: relative; transition: var(--transition);
}
.nav-links a:hover { color: var(--text-main); }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background: var(--accent-primary);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.nav-controls { display: flex; align-items: center; gap: 1rem; }
#theme-toggle, .mobile-menu-btn {
    background: transparent; border: none; color: var(--text-main);
    font-size: 1.2rem; cursor: pointer; transition: transform 0.2s;
}
#theme-toggle:hover { transform: rotate(30deg) scale(1.1); }
.mobile-menu-btn { display: none; } /* Standard versteckt */

/* --- Container & Typography --- */
.container { max-width: 1200px; margin: 0 auto; padding: 8rem 2rem 2rem; }
.section-title {
    text-align: center; font-size: 2.5rem; margin-bottom: 3rem;
    background: linear-gradient(to right, var(--text-main), var(--accent-primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.highlight { color: var(--accent-primary); }

/* --- Hero Section --- */
.hero-section { text-align: center; margin-bottom: 8rem; padding-top: 4rem; }
.profile-glow {
    position: relative; width: 150px; height: 150px; margin: 0 auto 2rem;
}
.profile-glow::before {
    content: ''; position: absolute; inset: -5px;
    background: linear-gradient(45deg, var(--accent-primary), var(--discord-color), #ff0050);
    border-radius: 50%; filter: blur(20px); opacity: 0.7; z-index: -1;
    animation: pulseGlow 3s ease-in-out infinite alternate;
}
@keyframes pulseGlow { 0% { opacity: 0.5; filter: blur(15px); } 100% { opacity: 0.9; filter: blur(25px); } }
.profile-pic {
    width: 100%; height: 100%; background: var(--bg-base); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; font-weight: 900; border: 3px solid var(--glass-border);
}
.hero-section h1 { font-size: 3.5rem; margin-bottom: 0.5rem; letter-spacing: -1px; }
.typing-container { font-size: 1.8rem; color: var(--accent-primary); height: 40px; margin-bottom: 1.5rem; }
.cursor { animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.bio { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; }

/* Social Glass Grid */
.social-glass-grid { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 3rem; }
.social-btn {
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--text-main); text-decoration: none;
    background: var(--glass-bg); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-radius: 50%;
    transition: var(--transition);
}
.social-btn:hover { transform: translateY(-5px); background: var(--glass-hover); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.social-btn.twitch:hover { color: #9146FF; border-color: #9146FF; }
.social-btn.youtube:hover { color: #FF0000; border-color: #FF0000; }
.social-btn.tiktok:hover { color: #ff0050; border-color: #ff0050; }
.social-btn.instagram:hover { color: #E1306C; border-color: #E1306C; }

/* Premium Button (Discord) */
.premium-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    background: linear-gradient(135deg, var(--discord-color), #4752C4);
    color: white; text-decoration: none; padding: 1.2rem 2.5rem;
    border-radius: 30px; font-size: 1.2rem; font-weight: bold;
    border: none; cursor: pointer; position: relative; overflow: hidden;
    transition: var(--transition); box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}
.premium-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.premium-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 25px rgba(88, 101, 242, 0.5); }
.premium-btn:hover::before { left: 100%; }

/* --- Glass Cards (Projekte, Team etc.) --- */
.content-section { margin-bottom: 8rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 2rem; }

.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-radius: 20px;
    padding: 2.5rem 2rem; text-align: center; position: relative;
    transition: var(--transition); overflow: hidden;
}
.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 60%);
    opacity: 0; transition: var(--transition); pointer-events: none;
}
.glass-card:hover { transform: translateY(-10px); border-color: var(--accent-primary); }
.glass-card:hover::before { opacity: 1; }

.card-icon { font-size: 2.5rem; color: var(--accent-primary); margin-bottom: 1.5rem; }
.glass-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.glass-card p { color: var(--text-muted); line-height: 1.6; }

.partner-logo { max-width: 200px; border-radius: 10px; margin-bottom: 1.5rem; filter: grayscale(100%); transition: var(--transition); }
.glass-card:hover .partner-logo { filter: grayscale(0%); }

.avatar { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white; margin: 0 auto 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.role { display: inline-block; padding: 0.4rem 1rem; background: var(--glass-border); border-radius: 20px; font-size: 0.85rem; margin-top: 1rem; color: var(--text-muted); }

/* --- Clips --- */
.clip-wrapper { border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border); aspect-ratio: 16/9; background: #000; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.clip-wrapper iframe { width: 100%; height: 100%; }

/* --- Modernes Kontaktformular (Floating Labels) --- */
.form-container { max-width: 700px; margin: 0 auto; padding: 3rem; }
.input-group { position: relative; margin-bottom: 2.5rem; }
.input-group input, .input-group textarea {
    width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--glass-border);
    padding: 10px 0; color: var(--text-main); font-size: 1.1rem; outline: none; transition: var(--transition);
}
.input-group label {
    position: absolute; top: 10px; left: 0; color: var(--text-muted); font-size: 1.1rem;
    pointer-events: none; transition: var(--transition);
}
.input-group input:focus, .input-group textarea:focus,
.input-group input:valid, .input-group textarea:valid { border-bottom-color: var(--accent-primary); }
.input-group input:focus ~ label, .input-group textarea:focus ~ label,
.input-group input:valid ~ label, .input-group textarea:valid ~ label {
    top: -20px; font-size: 0.85rem; color: var(--accent-primary);
}

/* Button Loading State */
.submit-btn { width: 100%; background: linear-gradient(135deg, var(--accent-primary), #7c3aed); margin-top: 1rem; }
.loader { display: none; width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: white; animation: spin 1s ease-in-out infinite; margin: 0 auto; }
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Footer --- */
footer { text-align: center; padding: 3rem; color: var(--text-muted); border-top: 1px solid var(--glass-border); margin-top: 5rem; }

/* --- Scroll Animations (Intersection Observer) --- */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Responsive & Mobile Menu --- */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
        background: var(--bg-base); border-left: 1px solid var(--glass-border);
        flex-direction: column; padding: 6rem 2rem; gap: 2rem;
        transition: right 0.4s ease;
    }
    .nav-links.active { right: 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 2.5rem; }
    .form-container { padding: 2rem 1.5rem; }
}