/* Animations.css */
/* Enthält alle Animationsstile für die Super Reinigung Service Website */

/* Header-Animation beim Scrollen */
#main-header {
    transition: all 0.25s ease;
}

.header-scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.97);
}

/* Logo-Hover-Animation */
.logo-image {
    transition: transform 0.25s ease;
}

.logo-hover {
    transform: scale(1.05);
}

/* Button-Hover-Animationen */
.btn {
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Service-Kategorie-Hover-Animation */
.service-category, .service-item, .feature, .value-item, .why-choose-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-category:hover, .service-item:hover, .feature:hover, .value-item:hover, .why-choose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Icon-Animation */
.service-icon i, .feature-icon i, .value-icon i, .section-icon, .fas.fa-check {
    transition: transform 0.25s ease, color 0.25s ease;
}

.service-category:hover .service-icon i,
.service-item:hover .service-icon i, 
.feature:hover .feature-icon i, 
.value-item:hover .value-icon i {
    transform: scale(1.2);
    color: #4CAF50; /* Grüne Farbe, passend zu einem Reinigungsservice */
}

/* Bild-Hover-Animation für Galerien */
.result-container {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.result-container:hover {
    transform: scale(1.03);
}

.result-container img {
    transition: transform 0.3s ease;
}

.result-container:hover img {
    transform: scale(1.05);
}

/* Link-Hover-Animationen */
.more-link, .footer-links a, .contact-info a {
    position: relative;
    transition: color 0.25s ease;
}

.more-link::after, 
.footer-links a::after, 
.contact-info a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.more-link:hover::after, 
.footer-links a:hover::after, 
.contact-info a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Formular-Feld-Animation */
.form-group input, 
.form-group textarea {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Spezifische Animationen für AOS (Animate On Scroll) */
[data-aos="fade-up-right"] {
    transform: translate3d(-50px, 50px, 0);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-up-right"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

[data-aos="fade-up-left"] {
    transform: translate3d(50px, 50px, 0);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-up-left"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

/* Animation für den Mobile-Menu-Toggle */
.mobile-menu-toggle .bar {
    transition: all 0.25s ease;
}

.mobile-menu-toggle:hover .bar:nth-child(1) {
    transform: translateY(-2px);
}

.mobile-menu-toggle:hover .bar:nth-child(3) {
    transform: translateY(2px);
}

/* Pulsierender CTA-Button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.btn-primary.btn-large {
    animation: pulse 2s infinite;
} 