/* Enhanced Speisekarte Animations */

/* Grid animation for smooth layout changes */
.speisekarte-grid {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card transitions */
.gericht-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card exit animation */
.gericht-card.hidden {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Filter button animations */
.filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

.filter-btn.active {
    animation: buttonPulse 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Stagger animation for cards */
.gericht-card:nth-child(1) { animation-delay: 0.1s; }
.gericht-card:nth-child(2) { animation-delay: 0.2s; }
.gericht-card:nth-child(3) { animation-delay: 0.3s; }
.gericht-card:nth-child(4) { animation-delay: 0.4s; }
.gericht-card:nth-child(5) { animation-delay: 0.5s; }
.gericht-card:nth-child(6) { animation-delay: 0.6s; }
.gericht-card:nth-child(7) { animation-delay: 0.7s; }
.gericht-card:nth-child(8) { animation-delay: 0.8s; }
.gericht-card:nth-child(9) { animation-delay: 0.9s; }
.gericht-card:nth-child(10) { animation-delay: 1.0s; }
.gericht-card:nth-child(11) { animation-delay: 1.1s; }
.gericht-card:nth-child(12) { animation-delay: 1.2s; }

/* Smooth grid reflow */
.speisekarte-grid.reflowing {
    transition: none;
}

.speisekarte-grid.reflowing .gericht-card {
    animation: none;
    transition: none;
} 