/* =========================================================================
   GOD GAMING - GLOBAL DESIGN SYSTEM (Modern Glassmorphism)
   ========================================================================= */

/* 🔤 1000% LOKALE DSGVO-SCHRIFTARTEN (Müssen im Ordner /fonts liegen!) */
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400; src: url('fonts/orbitron-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 700; src: url('fonts/orbitron-bold.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 900; src: url('fonts/orbitron-black.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 400; src: url('fonts/courier-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 700; src: url('fonts/courier-bold.woff2') format('woff2'); font-display: swap; }

/* 🎨 THEME VARIABLES */
:root {
    --main-cyan: #2ecc71; /* GLA Default */
    --alert-red: #ff4444;
    --panel-bg: rgba(5, 12, 20, 0.65); /* Glassmorphism Base */
    --card-bg: rgba(0, 30, 45, 0.4);
    --glow: rgba(57, 255, 20, 0.3);
    --blur: blur(12px);
    --border-color: rgba(46, 204, 113, 0.3);
}

body.theme-china { --main-cyan: #ff3e3e; --card-bg: rgba(60, 0, 0, 0.4); --glow: rgba(255, 62, 62, 0.3); --border-color: rgba(255, 62, 62, 0.3); }
body.theme-usa { --main-cyan: #1e90ff; --card-bg: rgba(0, 40, 80, 0.4); --glow: rgba(30, 144, 255, 0.3); --border-color: rgba(30, 144, 255, 0.3); }
body.theme-modern { --main-cyan: #ffffff; --alert-red: #ff7675; --panel-bg: rgba(25, 25, 25, 0.65); --card-bg: rgba(255, 255, 255, 0.05); --border-color: rgba(255, 255, 255, 0.2); font-family: 'Orbitron', sans-serif; }

/* 🖋️ TYPOGRAPHY */
body, p, span, div, button, .btn, input, select, a { font-family: 'Courier Prime', 'Courier', monospace !important; }
h1, h2, h3, h4, h5, h6, .player-count-big, .orbitron-text { font-family: 'Orbitron', sans-serif !important; }

/* 🌐 GLOBAL RESETS & BODY */
* { box-sizing: border-box; }

/* 🖱️ MODERN CUSTOM CURSOR (AURORA) */
@media (hover: hover) and (pointer: fine) {
    * { 
        cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon points="3,3 21,11 13,13 11,21" fill="white" stroke="%2300f5d4" stroke-width="2"/></svg>') 3 3, auto !important; 
    }
}

body { 
    margin: 0; padding: 0; 
    background: #000; color: #eee; 
    overflow-x: hidden; width: 100%; 
    display: flex; flex-direction: column; align-items: center; 
    min-height: 100vh; 
    transition: background 0.4s ease, color 0.4s ease; 
}
@media (max-width: 768px) { .header-logo { width: 85% !important; } }

/* 📺 VIDEO BACKGROUND CSS */
#video-bg-container { position: fixed; inset: 0; z-index: -10; opacity: 0.15; overflow: hidden; pointer-events: none; background: #000; }
#video-bg-container iframe { width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* 🌊 WEBGL FLUID CANVAS */
#fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000000; /* Ganz vorne über allem Content */
    pointer-events: none; /* Klicks durchlassen auf die Buttons darunter */
    display: none;
}
body.fluid-active #fluid-canvas {
    display: block;
}

/* 🪟 GLASSMORPHISM CONTAINERS */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.02);
    padding: 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}
.glass-panel::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(var(--main-cyan) 1px, transparent 1px), linear-gradient(90deg, var(--main-cyan) 1px, transparent 1px);
    background-size: 40px 40px; opacity: 0.02; z-index: 0; pointer-events: none;
}
.glass-panel > * { position: relative; z-index: 5; }

/* 🎯 BUTTONS (MODERN) */
.btn-row { display: flex; justify-content: center; gap: 20px; margin-bottom: 60px; flex-wrap: wrap; align-items: center; }
.btn { 
    border: 1px solid var(--main-cyan); 
    padding: 12px 24px; 
    color: #fff; 
    background: rgba(0, 0, 0, 0.4); 
    font-family: 'Orbitron'; font-weight: bold; font-size: 0.95rem;
    transition: all 0.3s ease; 
    text-transform: uppercase; letter-spacing: 1px; 
    cursor: pointer; text-decoration: none; outline: none; 
    border-radius: 6px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.btn:hover { background: var(--main-cyan); color: #000; box-shadow: 0 0 20px var(--glow); transform: translateY(-2px); }

.btn-alert { border-color: var(--alert-red); color: #fff; background: rgba(255, 68, 68, 0.1); }
.btn-alert:hover { background: var(--alert-red); color: #000; box-shadow: 0 0 20px rgba(255, 68, 68, 0.5); }

.btn-discord { border-color: #5865F2; color: #fff; background: rgba(88, 101, 242, 0.15); }
.btn-discord:hover { background: #5865F2; color: #fff; box-shadow: 0 0 25px rgba(88, 101, 242, 0.5); }

.btn-purple { border-color: #9b59b6; color: #fff; background: rgba(155, 89, 182, 0.15); }
.btn-purple:hover { background: #9b59b6; color: #000; box-shadow: 0 0 20px rgba(155, 89, 182, 0.5); }

.btn-pink { border-color: #ff6b81; color: #fff; background: rgba(255, 107, 129, 0.15); }
.btn-pink:hover { background: #ff6b81; color: #000; box-shadow: 0 0 20px rgba(255, 107, 129, 0.5); }

.btn-gold { border-color: #f1c40f; color: #fff; background: rgba(241, 196, 15, 0.15); }
.btn-gold:hover { background: #f1c40f; color: #000; box-shadow: 0 0 20px rgba(241, 196, 15, 0.5); }

/* 📜 WRAPPER & HEADER */
.content-wrapper { width: 90%; max-width: 1400px; margin: 80px auto 40px auto; z-index: 10; transition: 0.3s; }
.logo-presentation-container { position: relative; width: 100%; height: 350px; display: flex; justify-content: center; align-items: center; margin: 0 auto 30px auto; overflow: visible; }
.logo-energy-field { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; max-width: 800px; height: 500px; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="43.3" viewBox="0 0 50 43.3"><polygon points="25,0 50,14.4 50,28.8 25,43.3 0,28.8 0,14.4" stroke="white" stroke-width="2" fill="none" opacity="0.35"/></svg>'); background-size: 50px 43.3px; background-color: var(--main-cyan); mix-blend-mode: screen; -webkit-mask-image: radial-gradient(circle at center, black 15%, rgba(0,0,0,0.6) 35%, transparent 60%); mask-image: radial-gradient(circle at center, black 15%, rgba(0,0,0,0.6) 35%, transparent 60%); animation: energyPulse 5s infinite ease-in-out; z-index: 1; pointer-events: none; }
.header-logo { width: 400px; max-width: 85%; position: relative; z-index: 10; filter: drop-shadow(0 0 35px rgba(0,0,0,0.8)) drop-shadow(0 0 15px var(--glow)); display: block; }
@keyframes energyPulse { 0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.95); filter: blur(3px); } 50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); filter: blur(0px); } }

@media (max-width: 850px) {
    .logo-presentation-container { height: 200px; margin-bottom: 20px; }
    .logo-energy-field { height: 300px; max-width: 100%; }
    .header-logo { width: 280px; }
}

/* 🔧 SETTINGS WRAPPER & THEME CONTAINER (TOP RIGHT) */
.settings-wrapper { position: fixed; top: 60px; right: 30px; z-index: 10000; display: flex; flex-direction: column; align-items: flex-end; }
.settings-toggle-btn {
    background: rgba(5, 10, 15, 0.8); color: var(--main-cyan); border: 1px solid var(--border-color);
    padding: 10px; font-size: 1.5rem; border-radius: 50%; cursor: pointer; transition: all 0.3s ease;
    backdrop-filter: blur(10px); width: 50px; height: 50px; display: flex; justify-content: center;
    align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.5); z-index: 10001; position: relative;
}
.settings-toggle-btn:hover { border-color: var(--main-cyan); box-shadow: 0 0 15px var(--glow); transform: rotate(90deg); }
.theme-container { 
    position: absolute; top: 60px; right: 0; display: flex; flex-direction: column; gap: 10px; 
    min-width: 280px; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: all 0.3s ease;
    background: rgba(5, 10, 15, 0.95); padding: 15px; border-radius: 8px; border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.theme-container.active { opacity: 1; pointer-events: all; transform: translateY(0); }
.top-select, .sound-toggle-btn { 
    background: rgba(5, 10, 15, 0.8); color: var(--main-cyan); border: 1px solid var(--border-color); 
    padding: 10px 15px; font-family: 'Orbitron', sans-serif; font-size: 0.85rem; 
    backdrop-filter: blur(10px); cursor: pointer; outline: none; transition: all 0.3s ease; 
    border-radius: 6px; width: 100%; text-align: center; 
}
.top-select:hover, .sound-toggle-btn:hover { border-color: var(--main-cyan); box-shadow: 0 0 15px var(--glow); }
.top-select option { background: #0b1118; color: #fff; }

/* 📡 DYNAMISCHES RADAR-LAYOUT */
.modern-radar-panel {
    width: 100%; margin-top: 20px; margin-bottom: 60px;
}
.radar-grid { 
    display: grid; 
    grid-template-columns: minmax(min(100%, 350px), 350px) 1fr; 
    gap: 40px; 
    position: relative; 
    z-index: 5; 
    width: 100%;
}
.radar-header-title { color: var(--main-cyan); font-family: 'Orbitron'; font-size: 1.3rem; letter-spacing: 2px; text-shadow: 0 0 15px var(--glow); border-bottom: 1px solid var(--border-color); padding-bottom: 12px; margin-top: 0; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.radar-category-header { background: rgba(0,0,0,0.4); padding: 8px 12px; margin: 15px 0 10px 0; font-family: 'Orbitron', sans-serif; font-size: 0.85rem; font-weight: bold; border-left: 3px solid; border-radius: 0 6px 6px 0; letter-spacing: 1px; color: #fff; }
.clan-radar-item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 15px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; background: rgba(0,0,0,0.4); margin-bottom: 8px; border-radius: 8px; }
.clan-radar-item:hover { background: rgba(0,0,0,0.6); border-color: var(--main-cyan); transform: translateX(5px); }
.radar-player-name { color: #fff; font-weight: bold; font-size: 1.1rem; font-family: 'Orbitron', sans-serif; cursor: pointer; transition: 0.2s; }
.radar-player-name:hover { color: var(--main-cyan); text-shadow: 0 0 8px var(--glow); }
.status-text { color: #a0aab0; font-size: 0.9rem; line-height: 1.4; word-break: break-word; margin-top: 5px; }
.radar-pulse-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
@keyframes radar-blink-green { 0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--main-cyan); background: var(--main-cyan); } 50% { opacity: 0.4; transform: scale(1.2); box-shadow: 0 0 15px var(--main-cyan); background: var(--main-cyan); } }
@keyframes radar-blink-red { 0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--alert-red); background: var(--alert-red); } 50% { opacity: 0.4; transform: scale(1.2); box-shadow: 0 0 15px var(--alert-red); background: var(--alert-red); } }

/* DISCORD CHANNELS */
.discord-channels-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; width: 100%; }
.discord-channel-card { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 15px; transition: 0.3s; }
.discord-channel-card:hover { border-color: var(--main-cyan); background: rgba(0, 0, 0, 0.7); box-shadow: 0 8px 25px rgba(0,0,0,0.5); transform: translateY(-3px); }
.discord-channel-title { color: #f39c12; font-size: 0.85rem; font-weight: bold; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.discord-user-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 6px; background: rgba(255,255,255,0.03); border-radius: 6px; transition: 0.2s; }
.discord-user-row:hover { background: rgba(255,255,255,0.08); }
.discord-user-avatar { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-color); }
.discord-user-name { color: #fff; font-size: 0.85rem; font-family: system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 🎮 GAME CARDS (OPERATIONS) */
.operations-header { text-align: center; font-family: 'Orbitron'; color: var(--main-cyan); font-size: 2.2rem; text-transform: uppercase; letter-spacing: 8px; margin-bottom: 15px; text-shadow: 0 0 20px var(--glow); }
.operations-disclaimer { text-align: center; color: #a0aab0; font-size: 0.95rem; margin-bottom: 50px; font-style: italic; letter-spacing: 1px; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 25px; padding-bottom: 50px; }
.game-card { background: var(--card-bg); border: 1px solid var(--border-color); height: auto; min-height: 380px; display: flex; flex-direction: column; overflow: hidden; backdrop-filter: var(--blur); transition: all 0.4s ease; border-radius: 12px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }        
.game-card:hover { transform: translateY(-10px); border-color: var(--main-cyan); box-shadow: 0 15px 40px var(--glow); }
.game-icon-wrapper { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 30px; background: rgba(0,0,0,0.4); }
.game-icon { max-height: 180px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6)); transition: 0.4s; }
.game-card:hover .game-icon { transform: scale(1.05); filter: drop-shadow(0 10px 20px var(--glow)); }
.status-container { background: rgba(0,0,0,0.8); padding: 25px; border-top: 1px solid var(--border-color); text-align: center; position: relative; }
.status-label { font-family: 'Courier Prime'; font-size: 0.85rem; color: var(--main-cyan); letter-spacing: 2px; text-transform: uppercase; }
.player-count-big { font-size: 3.5rem; font-weight: 900; color: #fff; text-shadow: 0 0 25px var(--glow); display: block; margin: 10px 0; }
.sync-box { position: absolute; bottom: 12px; right: 15px; display: flex; align-items: center; gap: 6px; }

/* 🏷️ PLAYER BADGES (DYNAMIC CARDS) */
.player-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    justify-content: flex-start;
    max-height: 110px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--main-cyan) rgba(0,0,0,0.2);
}

.player-badge-container::-webkit-scrollbar { width: 4px; }
.player-badge-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
.player-badge-container::-webkit-scrollbar-thumb { background: var(--main-cyan); border-radius: 10px; box-shadow: 0 0 5px var(--glow); }

.player-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 0.7rem;
    color: #ccc;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: bold;
    backdrop-filter: blur(5px);
    white-space: nowrap;
}
.player-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--main-cyan);
    box-shadow: 0 0 8px var(--glow);
    transform: translateY(-1px);
    color: #fff;
}
.player-badge.voice {
    border-left: 2px solid var(--main-cyan);
}
.player-badge.playing {
    border-left: 2px solid #a0aab0;
}
.player-badge i {
    margin-right: 4px;
    font-style: normal;
    font-size: 0.65rem;
    opacity: 0.7;
}
.sync-text { font-size: 0.75rem; color: var(--alert-red); font-family: 'Courier Prime'; font-weight: bold; }

/* 🚨 TICKER */
#ticker-wrap { position: fixed; top: 0; left: 0; width: 100%; height: 45px; background: rgba(0, 5, 10, 0.95); border-bottom: 1px solid var(--border-color); z-index: 9999; display: flex; align-items: center; backdrop-filter: blur(10px); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.6); }
.ticker-move { display: inline-block; white-space: nowrap; animation: ticker-anim 90s linear infinite; font-weight: 700; letter-spacing: 3px; color: #fff; font-family: 'Orbitron'; font-size: 0.9rem; text-shadow: 0 0 10px var(--glow); }
.ticker-win { color: #2ecc71 !important; text-shadow: 0 0 10px rgba(46, 204, 113, 0.5); }
.ticker-loss { color: #ff4444 !important; text-shadow: 0 0 10px rgba(255, 68, 68, 0.5); }
@keyframes ticker-anim { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }
#ticker-wrap:hover .ticker-move { animation-play-state: paused; cursor: default; }

/* 🛡️ MODALS & POPUPS */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 100000; justify-content: center; align-items: center; backdrop-filter: blur(8px); padding: 20px; animation: fadeIn 0.3s ease; }
.modal-box { width: 100%; max-width: 900px; background: var(--panel-bg); border: 1px solid var(--border-color); display: flex; flex-direction: column; max-height: 90vh; box-shadow: 0 15px 50px rgba(0,0,0,0.8); border-radius: 12px; overflow: hidden; backdrop-filter: var(--blur); }
.modal-header { padding: 25px 30px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: center; align-items: center; background: rgba(0,0,0,0.4); }
.modal-header h2 { font-family: 'Orbitron'; color: var(--main-cyan); margin: 0; letter-spacing: 2px; text-transform: uppercase; text-align: center; }
.modal-content-inner { padding: 40px; overflow-y: auto; flex: 1 1 auto; color: #ddd; font-size: 1.05rem; line-height: 1.7; }
#m-footer { padding: 20px 30px; display: flex; justify-content: flex-end; gap: 15px; border-top: 1px solid var(--border-color); background: rgba(0,0,0,0.4); }

#tournament-popup-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 300000; align-items: center; justify-content: center; backdrop-filter: blur(15px); padding: 20px; }
#tournament-popup-box { background: rgba(10, 0, 0, 0.85); border: 1px solid var(--alert-red); padding: 50px; max-width: 650px; width: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(255,0,0,0.3); text-align: center; backdrop-filter: blur(20px); }
.popup-header { color: var(--alert-red); font-family: 'Orbitron'; font-size: 2.2rem; margin: 0 0 30px 0; letter-spacing: 4px; text-shadow: 0 0 20px rgba(255,0,0,0.6); }
.popup-section { border-bottom: 1px dashed rgba(255,255,255,0.2); padding-bottom: 20px; margin-bottom: 20px; text-align: left; }
.popup-date { font-family: 'Orbitron'; font-size: 1.3rem; font-weight: bold; margin-bottom: 10px; letter-spacing: 1px; }
.popup-text { font-size: 1.05rem; color: #ddd; line-height: 1.6; font-family: 'Courier Prime'; }
.btn-popup-close { background: rgba(255, 68, 68, 0.1); border: 2px solid var(--alert-red); color: #fff; padding: 15px 30px; font-family: 'Orbitron'; font-weight: bold; cursor: pointer; transition: 0.3s; font-size: 1.1rem; border-radius: 6px; margin-top: 20px; text-transform: uppercase; letter-spacing: 2px; width: 100%; display: block; }
.btn-popup-close:hover { background: var(--alert-red); color: #000; box-shadow: 0 0 25px var(--alert-red); }

#god-cookie-banner { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(5,10,15,0.95); border-top: 2px solid var(--main-cyan); z-index: 999999; padding: 40px 20px; box-shadow: 0 -15px 50px rgba(0,0,0,0.8); flex-direction: column; align-items: center; text-align: center; backdrop-filter: blur(20px); }
.cookie-title { color: var(--main-cyan); font-family: 'Orbitron'; font-size: 1.6rem; letter-spacing: 3px; margin: 0 0 20px 0; }
.cookie-text { font-size: 1rem; color: #ccc; max-width: 900px; margin-bottom: 30px; line-height: 1.6; }

/* 🛠️ TOOLS OVERLAY (INTELLIGENCE HUB) - 300% SKALIERUNGS-FIX */
.tool-overlay { 
    display: none; 
    position: fixed; inset: 0; 
    background: rgba(2, 5, 10, 0.95); 
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); 
    z-index: 99999; 
    flex-direction: column; 
    align-items: center; 
    
    /* FIX 1: Nicht zentrieren, sondern oben anheften. Sonst schneidet Windows 300% oben alles ab! */
    justify-content: flex-start; 
    
    /* FIX 2: Das gesamte Overlay darf scrollen, wenn die Höhe nicht reicht */
    overflow-y: auto; 
    padding: 5vh 5%; 
    
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.tool-header { 
    width: 100%; max-width: 1400px; 
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 15px; margin-bottom: 20px; 
    position: relative; 
    flex-wrap: wrap; gap: 10px; /* Erlaubt Umbruch bei Platzmangel */
}

/* FIX 3: Clamp() lässt die Schrift bei 300% Zoom dynamisch schrumpfen */
.tool-header h2 { 
    font-family: 'Orbitron'; 
    font-size: clamp(1.2rem, 5vw, 2.2rem); 
    color: var(--main-cyan); margin: 0; text-transform: uppercase; 
    letter-spacing: 2px; text-shadow: 0 0 20px var(--glow); 
}

.tool-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); 
    gap: 20px; 
    width: 100%; max-width: 1400px; 
    height: auto; /* Kein starrer max-height mehr */
    padding: 10px 0; box-sizing: border-box; 
}

.tool-card { 
    background: rgba(0, 15, 25, 0.4); 
    border: 1px solid var(--border-color); border-left: 4px solid var(--accent, var(--main-cyan)); 
    padding: 20px; /* Weniger starres Padding */
    border-radius: 12px; text-decoration: none; 
    display: flex; align-items: flex-start; gap: 15px; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    position: relative; overflow: hidden; backdrop-filter: blur(10px); 
    box-sizing: border-box; width: 100%; min-width: 0; /* Zwingt Flexbox zum Schrumpfen */
}

.tool-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent); transform: translateX(-100%); transition: 0.6s; }
.tool-card:hover::before { transform: translateX(100%); }
.tool-card:hover { transform: translateY(-5px); background: rgba(0, 30, 45, 0.6); border-color: var(--accent, var(--main-cyan)); box-shadow: 0 10px 30px rgba(0,0,0,0.6), inset 0 0 20px rgba(255,255,255,0.05); }

/* FIX 4: Clamp() auf das Icon, damit es bei Platzmangel weich mit-schrumpft */
.tool-icon { 
    font-size: clamp(2rem, 6vw, 3.5rem); 
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); transition: 0.4s; flex-shrink: 0; 
}
.tool-card:hover .tool-icon { transform: scale(1.1) rotate(-5deg); filter: drop-shadow(0 0 15px var(--accent, var(--glow))); }

/* Zwingt den Text endgültig zum automatischen Umbrechen */
.tool-info { flex: 1; min-width: 0; word-wrap: break-word; overflow-wrap: break-word; }
.tool-info h3 { font-family: 'Orbitron'; color: #fff; margin: 0 0 8px 0; font-size: clamp(1rem, 3.5vw, 1.2rem); letter-spacing: 1px; transition: 0.3s; }
.tool-card:hover .tool-info h3 { color: var(--accent, var(--main-cyan)); text-shadow: 0 0 10px var(--accent, var(--glow)); }
.tool-info p { margin: 0; color: #a0aab0; font-size: clamp(0.85rem, 2.5vw, 0.95rem); line-height: 1.4; font-family: 'Courier Prime'; transition: 0.3s; }
.tool-card:hover .tool-info p { color: #eee; }

/* 📋 FOOTER */
.site-footer { background: rgba(2, 5, 10, 0.95); padding: 50px 20px 30px 20px; border-top: 1px solid var(--border-color); text-align: center; margin-top: auto; width: 100%; position: relative; z-index: 100; box-shadow: 0 -10px 40px rgba(0,0,0,0.5); }
.partner-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 30px; margin-bottom: 25px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.partner-links a { color: #888; text-decoration: none; font-weight: bold; transition: 0.3s; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.partner-links a:hover { color: var(--main-cyan); text-shadow: 0 0 10px var(--glow); }
.footer-links a { color: var(--main-cyan); text-decoration: none; font-weight: bold; margin: 0 15px; cursor: pointer; transition: 0.3s; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: #555; font-size: 0.8rem; margin-top: 30px; }

/* DPI-SCALING BREAKPOINT FÜR WINDOWS (Löst das Radar-Problem bei 125/150%) */
@media (max-width: 1200px) {
    .radar-grid { grid-template-columns: 1fr; gap: 30px; }
    .glass-panel { padding: 30px 20px; }
}

/* MOBILE RESPONSIVE & EXTREME 300% WINDOWS SCALING FIX */
@media (max-width: 850px) {
    .settings-wrapper { top: 10px; right: 10px; }
    .settings-toggle-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .top-select, .sound-toggle-btn { width: 100%; flex: none; min-width: 140px; padding: 10px; font-size: 0.75rem; }
    .content-wrapper { width: 92%; margin: 60px auto 20px auto; }
    .glass-panel { padding: 25px 15px; margin-bottom: 25px; }
    .main-intro-panel { padding: 30px 20px !important; }
    .operations-header { font-size: 1.8rem; letter-spacing: 4px; }
    .radar-header-title { font-size: 1.1rem; flex-direction: column; align-items: flex-start; gap: 5px; }
    .modal-box { border-radius: 0; border: none; max-height: 100vh; height: 100%; }
    .player-badge-container { max-height: none; }
}

/* FALLBACK FÜR WIRKLICH EXTREMEN PLATZMANGEL */
@media (max-width: 450px) {
    .tool-card { 
        flex-direction: column; /* Setzt Icon ÜBER den Text statt daneben */
        align-items: center; 
        text-align: center; 
        padding: 15px; 
    }
}

/* =========================================================================
   🌌 THEME FUTURE (COMMUNITY GAMING REDESIGN)
   ========================================================================= */
body.theme-future {
    --bg-main: #0b0e14;
    --panel-bg: rgba(20, 25, 33, 0.7);
    --card-bg: rgba(30, 36, 45, 0.6);
    --main-cyan: #00f5d4;
    --alert-red: #ff3366;
    --glow: rgba(0, 245, 212, 0.4);
    --blur: blur(16px);
    --border-color: rgba(255, 255, 255, 0.08);
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background: var(--bg-main) !important;
    color: #b1b1b1 !important;
    background-image: radial-gradient(circle at 50% 0%, rgba(122, 40, 255, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(0, 245, 212, 0.1) 0%, transparent 40%) !important;
    background-attachment: fixed !important;
}

body.theme-future h1, body.theme-future h2, body.theme-future h3, body.theme-future h4, body.theme-future h5, body.theme-future h6, body.theme-future .player-count-big, body.theme-future .orbitron-text {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    color: #ffffff !important;
}

body.theme-future p, body.theme-future span, body.theme-future div, body.theme-future a {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Background video */
body.theme-future #video-bg-container {
    opacity: 0.05 !important; /* YouTube video leicht im Hintergrund */
}

/* Glass Panels */
body.theme-future .glass-panel {
    background: var(--panel-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}
body.theme-future .glass-panel::before { display: none; } /* Remove grid lines */

/* Cards */
body.theme-future .game-card, body.theme-future .tool-card, body.theme-future .discord-channel-card, body.theme-future .clan-radar-item {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
body.theme-future .game-card:hover { transform: translateY(-8px); border-color: #7a28ff; box-shadow: 0 15px 40px rgba(122, 40, 255, 0.2); }
body.theme-future .tool-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

/* Buttons */
body.theme-future .btn {
    border-radius: 30px !important; /* Pill shape */
    font-family: 'Inter', system-ui, sans-serif !important;
    border: none !important;
    text-shadow: none !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    background: var(--card-bg) !important;
}
body.theme-future .btn:hover { background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.3) !important; transform: translateY(-2px) !important; }

body.theme-future .btn-discord {
    background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%) !important;
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(0, 245, 212, 0.4) !important;
}
body.theme-future .btn-discord:hover { box-shadow: 0 6px 25px rgba(0, 245, 212, 0.6) !important; transform: translateY(-2px) !important; }

body.theme-future .btn-gold {
    background: linear-gradient(135deg, #7a28ff 0%, #4b00e0 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(122, 40, 255, 0.4) !important;
}
body.theme-future .btn-gold:hover { background: linear-gradient(135deg, #8a38ff 0%, #5b10f0 100%) !important; box-shadow: 0 6px 25px rgba(122, 40, 255, 0.6) !important; transform: translateY(-2px) !important; }

body.theme-future .btn-pink {
    background: linear-gradient(135deg, #ff3366 0%, #ff0044 100%) !important;
    color: #fff !important;
}
body.theme-future .btn-pink:hover { box-shadow: 0 6px 25px rgba(255, 51, 102, 0.6) !important; transform: translateY(-2px) !important; }

body.theme-future .btn-alert {
    background: linear-gradient(135deg, #ff3366 0%, #ff0044 100%) !important;
    border: none !important;
}

/* Ticker & Footer */
body.theme-future #ticker-wrap { background: rgba(11, 14, 20, 0.95); border-bottom: 1px solid var(--border-color); }
body.theme-future .site-footer { background: var(--bg-main); border-top: 1px solid var(--border-color); }

/* =========================================================================
   🛒 STEAM OVERLAY (GAME CARDS)
   ========================================================================= */
.game-icon-wrapper { position: relative; }
.steam-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none; /* unsichtbar = nicht anklickbar, Discord-Links frei */
    transition: opacity 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(8px);
    color: #fff;
    text-decoration: none !important;
    cursor: pointer;
}
.game-icon-wrapper:hover .steam-overlay {
    opacity: 1;
    pointer-events: auto; /* sichtbar = klickbar */
}
.steam-overlay span:last-child {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-top: 10px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--main-cyan);
}
