/* =========================================
   Startseite Layout
   ========================================= */
.content-left {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin-left: 2vw;
    background-color: transparent;
    padding: 2.5rem;
    border-radius: 12px;
}

.content-left h1 {
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #aaffaa, #cceeff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(170, 255, 170, 0.4));
    font-size: 4rem;
    line-height: 1.1;
}

.content-left p {
    line-height: 1.6;
    color: #eaffea; 
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.join-wrapper {
    position: relative;
    display: block;
    width: fit-content;
    margin: 1rem auto 2rem auto;
}

.join-box {
    display: inline-block;
    background-color: transparent;
    color: #eaffea; 
    border: 2px solid #aaffaa;
    box-shadow: 0 0 15px rgba(170, 255, 170, 0.2), inset 0 0 15px rgba(170, 255, 170, 0.1);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.join-box:hover {
    background-color: #aaffaa;
    color: #002200;
    border-color: #cceeff;
    box-shadow: 0 0 25px rgba(170, 255, 170, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.join-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 35px;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: skewX(-45deg);
    transition: left 0.6s ease;
}

.join-box:hover::after {
    left: 150%;
}

.stats-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
}

.stats-section h3 {
    position: relative;
    margin-bottom: 0.2rem;
    color: #cceeff;
    text-shadow: 0 0 15px rgba(150, 200, 255, 0.4);
    font-size: 2.2rem;
    font-weight: bold;
}

.stats-section p, .stats-section a {
    color: #b3cdd6;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   Parallax Animation (Rechte Seite)
   ========================================= */
#parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.parallax-layer {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* =========================================
   Wetter-Effekte (Parallax Startseite)
   ========================================= */
#weather-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 78;
    pointer-events: none;
}

.weather-particle {
    position: absolute;
    will-change: transform, opacity;
    pointer-events: none;
}

body {
    --w-snow-bg: rgba(116, 125, 159, 0.85);
    --w-snow-shadow: rgba(87, 104, 146, 0.6);
    --w-rain-grad: rgba(117, 120, 143, 0.8);
    --w-leaf-bg: #576892;
}
body.gw2-dawn {
    --w-snow-bg: rgba(161, 137, 132, 0.85);
    --w-snow-shadow: rgba(136, 80, 71, 0.6);
    --w-rain-grad: rgba(149, 111, 103, 0.8);
    --w-leaf-bg: #66504f;
}
body.gw2-day {
    --w-snow-bg: rgba(228, 205, 121, 0.85);
    --w-snow-shadow: rgba(225, 180, 77, 0.6);
    --w-rain-grad: rgba(197, 189, 133, 0.8);
    --w-leaf-bg: #d2c97c;
}
body.gw2-dusk {
    --w-snow-bg: rgba(189, 183, 176, 0.85);
    --w-snow-shadow: rgba(148, 134, 116, 0.6);
    --w-rain-grad: rgba(170, 161, 148, 0.8);
    --w-leaf-bg: #948674;
}
body.gw2-night {
    --w-snow-bg: rgba(116, 125, 159, 0.85);
    --w-snow-shadow: rgba(87, 104, 146, 0.6);
    --w-rain-grad: rgba(117, 120, 143, 0.8);
    --w-leaf-bg: #576892;
}

.weather-particle.snow {
    background-color: var(--w-snow-bg);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--w-snow-shadow);
    animation: fallSnow linear infinite;
    transition: background-color 2.5s ease, box-shadow 2.5s ease;
}
@keyframes fallSnow {
    0% { transform: translate3d(0, -5vh, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate3d(8vw, 105vh, 0); opacity: 0; }
}

.weather-particle.rain {
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--w-rain-grad));
    animation: fallRain linear infinite;
}
@keyframes fallRain {
    0% { transform: translate3d(0, -5vh, 0); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translate3d(6vw, 105vh, 0); opacity: 0; }
}

.weather-particle.leaf {
    background-color: var(--w-leaf-bg);
    border-radius: 0 50% 0 50%;
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.15);
    animation: fallLeafIndex linear infinite;
    transition: background-color 2.5s ease;
}
@keyframes fallLeafIndex {
    0% { transform: translate3d(0, -5vh, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translate3d(15vw, 105vh, 0) rotate(720deg); opacity: 0; }
}

.weather-particle.glitter {
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 12px 2px rgba(255, 255, 200, 0.8);
    animation: twinkleGlitter ease-in-out infinite;
}
@keyframes twinkleGlitter {
    0% { transform: scale(0.2); opacity: 0; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(0.2); opacity: 0; }
}

/* =========================================
   Startseite Irrlichter (Index)
   ========================================= */
.wisp.b-wisp-1 { width: 14px; height: 14px; top: -10px; right: -15px; animation: buttonWisp1 6s infinite ease-in-out; z-index: 10; }
.wisp.b-wisp-2 { width: 10px; height: 10px; top: 5px; right: -30px; animation: buttonWisp2 8.5s infinite ease-in-out; z-index: 10; }
.wisp.b-wisp-3 { width: 12px; height: 12px; bottom: -5px; left: -15px; animation: buttonWisp3 7.2s infinite ease-in-out; z-index: 10; }

@keyframes buttonWisp1 { 0% { transform: translate(0px, 0px) scale(0.9); } 33% { transform: translate(-12px, -7px) scale(1.1); } 66% { transform: translate(-5px, 7px) scale(0.95); } 100% { transform: translate(0px, 0px) scale(0.9); } }
@keyframes buttonWisp2 { 0% { transform: translate(0px, 0px) scale(1.1); } 25% { transform: translate(10px, -12px) scale(0.9); } 50% { transform: translate(17px, 2px) scale(1.2); } 75% { transform: translate(7px, 10px) scale(0.95); } 100% { transform: translate(0px, 0px) scale(1.1); } }
@keyframes buttonWisp3 { 0% { transform: translate(0px, 0px) scale(1.0); } 33% { transform: translate(-10px, 5px) scale(1.1); } 66% { transform: translate(5px, 10px) scale(0.9); } 100% { transform: translate(0px, 0px) scale(1.0); } }

.parallax-wisps { position: absolute; top: 37.4vh; left: 35.7vw; width: 100px; height: 100px; pointer-events: none; animation: pGroupFly 20s infinite alternate ease-in-out; z-index: 75; }
.p-wisp-fly { position: absolute; will-change: transform; }
.p-wisp-fly-1 { top: 0; left: 0; }
.p-wisp-fly-2 { top: 25px; left: 35px; }
.p-wisp-fly-3 { top: 10px; left: 70px; }
@keyframes pGroupFly { 0% { transform: translate(-8vw, 2vh); } 50% { transform: translate(12vw, -3vh); } 100% { transform: translate(-2vw, 5vh); } }

.layer-8-wrapper { display: flex; justify-content: center; align-items: center; pointer-events: none; z-index: 80; }
.layer-8-content { position: relative; width: max(110vw, 110vh * (1920 / 960)); height: max(110vh, 110vw * (960 / 1920)); flex-shrink: 0; }
.layer-8-content img { width: 100%; height: 100%; position: absolute; top: 0; left: 0; will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }

.parallax-wisps-small { position: absolute; top: 42.40%; left: 88.85%; width: 40px; height: 40px; pointer-events: none; animation: pGroupFlySmall 15s infinite alternate ease-in-out; z-index: 85; }
.p-wisp-small { position: absolute; will-change: transform; }
.p-wisp-small-1 { top: 0; left: 0; animation: wispDrift1 4.5s infinite ease-in-out; }
.p-wisp-small-2 { top: 15px; left: 20px; animation: wispDrift3 5s infinite ease-in-out; }
@keyframes pGroupFlySmall { 0% { transform: translate(0, 0); } 50% { transform: translate(-1.5vw, 1.5vh); } 100% { transform: translate(1vw, -1vh); } }

/* =========================================
   Mobile Anpassungen
   ========================================= */
@media (max-width: 768px) {
    .content-left { max-width: 100%; margin-left: 0; background-color: transparent; }
    .stats-content { flex-direction: column; text-align: center; gap: 2.5rem; }
    .content-left h1 { font-size: 2.5rem; }
    .content-left p { font-size: 1.2rem; }
    .join-box { font-size: 1.2rem; padding: 1rem 2rem; }
    
    body::before {
        background-image: url('images/start_standbild.png');
        background-size: cover;
        background-position: 35% center;
        filter: none;
        opacity: 1;
    }
    #parallax-container { display: none !important; }
}