/**
 * Festival Animation Block Styles
 */

/* Google Fonts einbinden */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');
/* Font Awesome für Icons einbinden */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

.wp-block-theme1-festival-animation {
    padding: 2rem 0;
    margin: 0;
    overflow: hidden;
    background-color: #ffffff !important;
    width: 100%;
}

.animation-content {
    text-align: center;
    margin-bottom: 2rem;
}

/* Überschrift im Hero1-Stil */
.animation-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1e3a32; /* Dunkelgrün */
    margin-bottom: 1rem;
    margin-top: 0;
    background-color: transparent !important;
    padding: 0;
    text-transform: uppercase;
}

.animation-description {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem !important;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Button im Hero1-Stil */
.animation-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: #1e3a32; /* Dunkelgrün */
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.animation-button:hover {
    background-color: #d4af37; /* Gold */
    color: #1e3a32; /* Dunkelgrün */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Stil für den Maps-Button mit Bestätigungsdialog */
.maps-confirm-button {
    position: relative;
}

/* Standort-Icon vor dem Button-Text */
.maps-confirm-button:before {
    content: '\f3c5'; /* Font Awesome Location/Map Marker Icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #d4af37; /* Gold-Akzentfarbe */
    font-size: 1.1em;
    transition: color 0.3s ease;
}

/* Icon-Farbe beim Hover ändern */
.maps-confirm-button:hover:before {
    color: #1e3a32; /* Dunkelgrün - Primärfarbe */
}

.animation-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Fußstapfen-Pfad - Container für alle Fußabdrücke und das Zelt */
.footprint-path {
    position: relative;
    width: 80%; /* Breiter für Fußabdrücke und Zelt */
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fußstapfen-Stil - Alle Fußabdrücke übereinander */
.footprint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.footprint.visible {
    opacity: 1;
}

.footprint img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Helleres Grau für die Fußspuren */
    filter: brightness(1.5) saturate(0.2) contrast(0.8);
}

/* Zelt-Stil - exakt gleiche Position wie die Fußabdrücke */
.tent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.tent img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Schatten für räumliche Tiefe */
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

/* Steuerung der Zelt-Anzeige */
.tent-initial {
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
    display: block;
    z-index: 3; /* Höherer z-index, damit es über dem zweiten Zelt liegt */
}

.tent-final-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 1; /* Immer sichtbar */
    visibility: visible; /* Immer sichtbar */
}

.tent-final {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    opacity: 0.3; /* Leicht sichtbar im Hintergrund */
    transition: opacity 0.8s ease-in-out;
    /* Verstärkter Schatten für das finale Zelt */
    filter: drop-shadow(3px 5px 8px rgba(0, 0, 0, 0.4));
}

.tent-switch .tent-initial {
    opacity: 0;
    visibility: hidden;
}

.tent-switch .tent-final {
    opacity: 1; /* Vollständig sichtbar nach dem Übergang */
}

/* Goldener Pulsier-Effekt für das zweite Zelt */
.golden-pulse {
    animation: goldenPulse 2s infinite;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7)) drop-shadow(3px 5px 8px rgba(0, 0, 0, 0.4));
}

/* Animation für den goldenen Pulsier-Effekt */
@keyframes goldenPulse {
    0% {
        filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5)) drop-shadow(3px 5px 8px rgba(0, 0, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8)) drop-shadow(4px 6px 10px rgba(0, 0, 0, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5)) drop-shadow(3px 5px 8px rgba(0, 0, 0, 0.4));
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .animation-container {
        height: 200px;
    }
    
    .footprint-path {
        width: 90%; /* Breiter auf mobilen Geräten */
    }
    
    .footprint {
        width: 100%;
        height: 100%;
    }
    
    .footprint img {
        /* Helleres Grau für die Fußspuren auf mobilen Geräten */
        filter: brightness(1.5) saturate(0.2) contrast(0.8);
    }
    
    .tent {
        width: 100%;
        height: 100%;
    }
    
    .tent img {
        filter: drop-shadow(1px 3px 4px rgba(0, 0, 0, 0.3));
    }
    
    .tent-final {
        filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
    }
    
    /* Responsive Anpassungen für Überschrift und Button im Hero1-Stil */
    .animation-title {
        font-size: 2.5rem;
    }
    
    .animation-description {
        font-size: 1rem;
    }
    
    .animation-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Anpassung des goldenen Pulsier-Effekts für mobile Geräte */
    .golden-pulse {
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.7)) drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
    }
    
    @keyframes goldenPulse {
        0% {
            filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5)) drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
        }
        50% {
            filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8)) drop-shadow(3px 5px 8px rgba(0, 0, 0, 0.5));
        }
        100% {
            filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5)) drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
        }
    }
} 