/* seed-animation.css */
/* Fügen Sie dies in Ihre CSS-Datei ein oder als <style> Tag im HTML */

/* Container für den fallenden Samen */
.falling-seed-container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: visible;
}

/* Der Samen selbst */
.falling-seed {
    position: fixed !important;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 30% 30%, #FF9800, #4CAF50, #FFEB3B, #8BC34A);
    border-radius: 50% 40% 50% 40%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 -2px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid #4CAF50;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

/* Wackel-Animation während des Falls */
@keyframes seed-wobble {
    0%, 100% { transform: translate(-50%, -50%) rotate(-5deg); }
    25% { transform: translate(-50%, -50%) rotate(5deg); }
    50% { transform: translate(-50%, -50%) rotate(-3deg); }
    75% { transform: translate(-50%, -50%) rotate(3deg); }
}

/* Aufprall-Animation */
@keyframes seed-bounce {
    0% { transform: translate(-50%, -50%) scaleY(1); }
    40% { transform: translate(-50%, -50%) scaleY(0.8) scaleX(1.1); }
    60% { transform: translate(-50%, -50%) scaleY(1.1) scaleX(0.9); }
    80% { transform: translate(-50%, -50%) scaleY(0.95) scaleX(1.02); }
    100% { transform: translate(-50%, -50%) scaleY(1) scaleX(1); }
}

/* Wackel-Animation anwenden */
.falling-seed {
    animation: seed-wobble 0.5s ease-in-out infinite;
}

/* Landing-Animation */
.falling-seed.seed-landing {
    animation: seed-bounce 0.6s ease-out forwards !important;
}

/* Glow-Effekt für Transformation */
.seed-transform-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(149, 242, 186, 0.8) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 1s ease-out, opacity 1s ease-out;
    pointer-events: none;
    z-index: 52;
}

/* Sichtbarer Samen mit subtilerem Leuchteffekt*/
.falling-seed.visible {
    opacity: 1 !important;
    background: radial-gradient(circle at 30% 30%, #FF9800, #4CAF50, #FFEB3B, #8BC34A) !important;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.4), 
        inset 0 -3px 3px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 255, 255, 0.6),
        0 0 24px rgba(135, 206, 250, 0.4),
        0 0 36px rgba(138, 43, 226, 0.3) !important;
}
