/**
 * ANIMATIONS.CSS - Alle Animationen & Keyframes
 */

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Particle Animations */
@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-10vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Orb Animations */
@keyframes glowFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) scale(1.1);
        opacity: 0.6;
    }
}

/* Hero Badge & Title */
@keyframes badgePulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(67, 221, 255, 0.2);
    }
    50% { 
        box-shadow: 0 0 30px rgba(67, 221, 255, 0.4);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(67, 221, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(67, 221, 255, 0.3);
    }
}

/* Simple Logo */
@keyframes gentleGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(67, 221, 255, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 60px rgba(67, 221, 255, 0.6);
        transform: scale(1.05);
    }
}

.simple-logo {
    animation: gentleGlow 4s ease-in-out infinite;
}

/* Button Animations */
@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 50px rgba(67, 221, 255, 0.2), 0 0 0 0 rgba(67, 221, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(67, 221, 255, 0.4), 0 0 0 10px rgba(67, 221, 255, 0);
    }
}

.btn-primary {
    animation: buttonPulse 3s ease-in-out infinite;
}

/* Service Graphics */
@keyframes codeWrite {
    0%, 100% { width: 20px; }
    50% { width: calc(100% - 16px); }
}

@keyframes codeFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.web-animation::before {
    animation: codeWrite 2s ease-in-out infinite;
}

.web-animation::after {
    animation: codeFlicker 1.5s ease-in-out infinite;
}

/* Design Animation */
@keyframes designSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.design-circle {
    animation: designSpin 4s linear infinite;
}

.design-circle.circle-2 {
    animation-delay: 1s;
    animation-direction: reverse;
}

.design-circle.circle-3 {
    animation-delay: 2s;
}

/* AI Brain */
@keyframes brainThink {
    0%, 100% { border-color: #43ddff; }
    50% { border-color: #c364fc; }
}

@keyframes neuronFire {
    0%, 100% { 
        background: #43ddff;
        transform: scale(1);
    }
    50% { 
        background: #ed3cfb;
        transform: scale(1.5);
    }
}

.ai-brain-visual {
    animation: brainThink 3s ease-in-out infinite;
}

.ai-neuron {
    animation: neuronFire 2s ease-in-out infinite;
}

.ai-neuron.n1 { animation-delay: 0s; }
.ai-neuron.n2 { animation-delay: 0.5s; }
.ai-neuron.n3 { animation-delay: 1s; }

/* Card Hover Effects */
.service-card,
.reference-card,
.tech-category {
    animation: gentleFloat 6s ease-in-out infinite;
}

.service-card:nth-child(2n),
.reference-card:nth-child(2n) {
    animation-delay: 1s;
}

.service-card:nth-child(3n),
.reference-card:nth-child(3n) {
    animation-delay: 2s;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.service-card:hover,
.reference-card:hover,
.tech-category:hover {
    animation-play-state: paused;
}

/* Navigation */
.liquid-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #43ddff, #988cfd, #ed3cfb, #43ddff);
    background-size: 200% 100%;
    animation: flowingBorder 3s linear infinite;
    opacity: 0.8;
}

@keyframes flowingBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Footer */
@keyframes footerScan {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

footer::before {
    animation: footerScan 4s linear infinite;
}

/* FAQ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer.active {
    animation: fadeInDown 0.3s ease;
}

/* Stat Pulse */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Reference Image */
@keyframes imagePulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

.reference-image::before {
    animation: imagePulse 4s ease-in-out infinite;
}

/* Cookie Banner */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-banner.active {
    animation: slideInUp 0.5s ease-out;
}

.cookie-banner.hidden {
    animation: slideOutDown 0.5s ease-out forwards;
}

/* Alert */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Performance */
.particle,
.glowing-orb,
.service-card,
.reference-card,
.btn,
.nav-links a {
    will-change: transform, opacity;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle,
    .glowing-orb {
        display: none;
    }
}


/* Fehlende Animationen - HINZUFÜGEN */

/* Digital Animation */
@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes digitalPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px rgba(67, 221, 255, 0.5);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.3);
        box-shadow: 0 0 30px rgba(67, 221, 255, 0.8);
    }
}

.digital-grid {
    animation: gridPulse 2s ease-in-out infinite;
}

.digital-center {
    animation: digitalPulse 1.5s ease-in-out infinite;
}

/* Chart Bars Animation */
@keyframes chartGrow {
    0%, 100% { 
        transform: scaleY(0.8);
        opacity: 0.7;
    }
    50% { 
        transform: scaleY(1.2);
        opacity: 1;
    }
}

.chart-bar {
    animation: chartGrow 2s ease-in-out infinite;
}

.chart-bar.bar-1 { animation-delay: 0s; }
.chart-bar.bar-2 { animation-delay: 0.3s; }
.chart-bar.bar-3 { animation-delay: 0.6s; }
.chart-bar.bar-4 { animation-delay: 0.9s; }

/* Lightbulb Animation */
@keyframes ideaGlow {
    0%, 100% { 
        border-color: #43ddff;
        box-shadow: 0 0 20px rgba(67, 221, 255, 0.3);
    }
    50% { 
        border-color: #ed3cfb;
        box-shadow: 0 0 30px rgba(237, 60, 251, 0.6);
    }
}

@keyframes sparkFly {
    0% { 
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    25% { 
        transform: translate(10px, -10px) scale(1);
        opacity: 1;
    }
    75% { 
        transform: translate(20px, -20px) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(30px, -30px) scale(0);
        opacity: 0;
    }
}

.lightbulb {
    animation: ideaGlow 3s ease-in-out infinite;
}

.idea-spark {
    animation: sparkFly 2s linear infinite;
}

.idea-spark.spark-1 { animation-delay: 0s; }
.idea-spark.spark-2 { animation-delay: 0.5s; }
.idea-spark.spark-3 { animation-delay: 1s; }