/* =======================
   Customizer Variablen
   ======================= */
:root {
    --primary-color: #39ff14;
    --secondary-color: #32cd32;
    --danger-color: #ff1414;
    --panel-bg: rgba(0,0,0,0.25);
    --panel-border-opacity: 0.4;
    --text-color: #e0ffe0;

    --particle-size: 2.5px;
    --particle-glow: 0.5;
    --particle-speed: 12s;
    --particle-count: 50;

    --neon-pulse-speed: 1.8s;
    --pulse-box-speed: 2.5s;
    --shimmer-speed: 4s;

    --panel-radius: 15px;
    --panel-padding: 20px;
    --gap-main: 50px;

    --panel-hover-scale: 1.02; /* leichtes Hervorgehoben */
    --panel-hover-translateY: -4px; /* leichtes Anheben */
}

/* =======================
   Basis & Body
   ======================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

/* =======================
   Partikel-Hintergrund
   ======================= */
#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: var(--particle-size);
    height: var(--particle-size);
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    opacity: var(--particle-glow);
    animation: floatParticle var(--particle-speed) linear infinite, pulseParticle 2s ease-in-out infinite;
    filter: blur(1px);
    will-change: transform, opacity;
}

@keyframes floatParticle {
    0% { transform: translate3d(0,0,0); }
    50% { transform: translate3d(20px,-60px,0); }
    100% { transform: translate3d(0,-120px,0); }
}

@keyframes pulseParticle {
    0%, 100% { transform: scale(1); opacity: var(--particle-glow); }
    50% { transform: scale(1.4); opacity: 1; }
}

/* =======================
   Main Layout
   ======================= */
main {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-main);
}

/* =======================
   Panels (Home, Server, Regeln, Community)
   ======================= */
.panel {
    position: relative;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--panel-radius);
    padding: var(--panel-padding);
    border: 1px solid rgba(57,255,20,var(--panel-border-opacity));
    box-shadow: 0 0 12px rgba(57,255,20,0.2), 0 3px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(57,255,20,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shimmer var(--shimmer-speed) infinite;
}

/* Leichtes Hervorheben bei Hover */
.panel:hover {
    transform: scale(var(--panel-hover-scale)) translateY(var(--panel-hover-translateY));
    box-shadow: 0 0 28px var(--primary-color), 0 8px 25px rgba(0,0,0,0.5);
}

/* =======================
   Überschriften
   ======================= */
.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 12px var(--primary-color), 0 0 25px var(--secondary-color);
    margin-bottom: 15px;
    animation: neonPulse var(--neon-pulse-speed) infinite alternate;
}

/* =======================
   Text & Links
   ======================= */
p, li {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-color);
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 10px;
}

ul li::before {
    content: "▸";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 12px var(--secondary-color);
}

/* =======================
   Keyframes
   ======================= */
@keyframes neonPulse {
    0% { text-shadow: 0 0 8px var(--primary-color), 0 0 20px var(--secondary-color); }
    50% { text-shadow: 0 0 16px var(--primary-color), 0 0 30px var(--secondary-color); }
    100% { text-shadow: 0 0 12px var(--primary-color), 0 0 25px var(--secondary-color); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* =======================
   Footer
   ======================= */
footer {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0,0,0,0.85);
    border-top: 2px solid var(--primary-color);
    border-radius: 25px 25px 0 0;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.5);
    color: var(--primary-color);
}

/* =======================
   Responsive
   ======================= */
@media (max-width: 900px) {
    main { gap: 35px; }
    .panel { width: 95%; padding: 15px; }
    .section-title { font-size: 1.2rem; }
    p, li { font-size: 0.9rem; }
}
