/* =====================================================
   JAKSCH FERNSEHTECHNIK — Animationen
   ===================================================== */

/* --- Hero Einblend-Animationen --- */
.animate-fade-in {
    animation: fadeInUp 1s var(--ease) both;
}
.animate-fade-in-delay {
    animation: fadeInUp 1s var(--ease) .25s both;
}
.animate-fade-in-delay2 {
    animation: fadeInUp 1s var(--ease) .5s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Pulse (für Badges, Buttons) --- */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--clr-accent-glow); }
    50%       { box-shadow: 0 0 0 10px transparent; }
}
.pulse { animation: pulse 2.5s ease-in-out infinite; }

/* --- Float (für Icons) --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.float { animation: float 3s ease-in-out infinite; }

/* --- Gradient-Text Shift --- */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.gradient-text-animated {
    background: linear-gradient(270deg, #ff6b8a, #c41e3a, #9e1630, #c41e3a, #ff6b8a);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

/* --- Spinner --- */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: var(--clr-white);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
}

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: 6px;
}
@keyframes skeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Counter Zahl animiert --- */
.count-val { display: inline; }

/* --- Reduce Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}
