
/* =====================================
   BACKEVESPER – WINTER EFFECT
   Schneefall über die gesamte Website
===================================== */

#winter-snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 99999;
}

/* Einzelner Schneekristall */
.winter-flake {
    position: absolute;
    top: -45px;
    display: block;
    color: #f4fbff;
    will-change: transform;

    filter:
        drop-shadow(0 0 3px #ffffff)
        drop-shadow(0 0 6px rgba(120, 200, 255, 0.9));

    animation: winter-fall linear infinite;
}

/* SVG-Kristall */
.winter-flake svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.winter-flake svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Schneefall */
@keyframes winter-fall {
    0% {
        transform: translate3d(0, -50px, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(var(--drift), 50vh, 0) rotate(180deg);
    }

    100% {
        transform: translate3d(0, 110vh, 0) rotate(360deg);
    }
}

/* Bewegungsreduzierung */
@media (prefers-reduced-motion: reduce) {
    #winter-snow {
        display: none;
    }
}
