#spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;

    /* Zentriert den bee-container im Overlay */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Standardmäßig ausgeblendet */
    display: none;
}

/* Der quadratische Bereich, in dem sich die Biene bewegt */
.bee-container {
    width: 150px;
    height: 150px;
    position: relative; /* Wichtig für die Positionierung der Biene und der Spur */
}

/* Die Biene selbst */
/* Die Biene selbst */
#bee {
    position: absolute;
    width: 50px;
    height: 50px; /* Höhe an die Proportionen Ihrer SVG anpassen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-image: url('../images/bee.svg');

    /* Sicherstellen, dass das Bild korrekt angezeigt wird */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Die Flugspur-Partikel */
.trail {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #fdc506;
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 1s, transform 1s;
}


.wing {
    position: absolute;
    width: 20px;
    height: 30px;
    background: rgba(166, 234, 246, 0.6);
    border-radius: 50% 10% 50% 10%;
    animation: wing-flap 0.1s infinite alternate;
}

.wing-left {
    left: -15px;
    top: 10px;
    transform-origin: right center;
}

.wing-right {
    right: -15px;
    top: 10px;
    transform-origin: left center;
    animation-delay: 0.05s;
}

@keyframes wing-flap {
    0% {
        transform: rotateY(0deg) rotateZ(-10deg);
    }
    100% {
        transform: rotateY(20deg) rotateZ(10deg);
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}
