/* =========================================
    TESTIMONIAL CAROUSEL - VERBESSERT
    ========================================= */
/* ANPASSBARE VARIABLEN */
:root {
    --testimonial-spacing: 60px; /* Abstand UNTER dem Slogan */
    --testimonial-bg-opacity: 0.2;
    --testimonial-blur: 8px;
    --testimonial-max-width: 500px;
    --testimonial-padding: 15px 25px;
    --testimonial-animation-speed: 5s; /* Geschwindigkeit der Puls-Animation */
    --testimonial-scale-size: 1.03; /* Skalierung beim Pulsieren (1.0 = keine Skalierung) */
    --testimonial-text-scale: 1.00; /* Skalierung für Text (1.0 = keine Skalierung) */
}

.testimonial-carousel {
    position: absolute;
    max-width: var(--testimonial-max-width);
    width: 90%;
    
    /* NEUE POSITIONIERUNG: Relativ zur Mitte des Headers */
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Abstand zum Slogan durch margin-top */
    margin-top: calc(var(--testimonial-spacing) + 40px); /* 40px = halbe Höhe des Slogans geschätzt */
    
    padding: var(--testimonial-padding);
    background: rgba(20, 20, 20, var(--testimonial-bg-opacity));
    border-radius: 0px;
    backdrop-filter: blur(var(--testimonial-blur));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    min-height: 160px;
    z-index: 3;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Cooler Musik-Effekt: Pulsieren mit Glow */
    animation: musicPulse var(--testimonial-animation-speed) ease-in-out infinite;
}

/* Pseudo-Element für zusätzlichen Glow-Effekt */
.testimonial-carousel::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 0px;
    opacity: 0;
    z-index: -1;
    animation: glowPulse var(--testimonial-animation-speed) ease-in-out infinite;
}

/* --------------------------
   TESTIMONIAL ITEMS
   -------------------------- */

.testimonial-item {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.testimonial-item.active {
    display: flex;
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-item.fade-out {
    animation: slideDownFade 0.6s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

/* --------------------------
   ANIMATIONEN
   -------------------------- */

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(10px);
    }
    60% {
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes slideDownFade {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        filter: blur(8px);
    }
}

/* Musik-Puls für Hintergrund */
@keyframes musicPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(8px);
    }
    50% {
        transform: translate(-50%, -50%) scale(var(--testimonial-scale-size));
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 
                    0 0 30px rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
}

/* Glow-Effekt */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
}

/* Text-Intensität Animation */
@keyframes textIntensity {
    0%, 100% {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7),
                     0 0 20px rgba(255, 255, 255, 0.2);
        transform: scale(var(--testimonial-text-scale));
    }
}

/* --------------------------
   TEXTSTILE
   -------------------------- */

.testimonial-text {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    color: white;
    margin-bottom: 10px;
    text-align: center;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: textIntensity var(--testimonial-animation-speed) ease-in-out infinite;
}

.testimonial-song {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    text-align: center;
    font-style: normal;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    animation: textIntensity var(--testimonial-animation-speed) ease-in-out 0.2s infinite;
}

.testimonial-author {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    animation: textIntensity var(--testimonial-animation-speed) ease-in-out 0.4s infinite;
}

/* --------------------------
   RESPONSIVE DESIGN
   -------------------------- */

/* Tablets */
@media (max-width: 768px) {
    .testimonial-carousel {
        max-width: 85%;
        padding: 20px 25px;
        min-height: 140px;
        margin-top: calc(var(--testimonial-spacing) + 30px);
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-song {
        font-size: 0.85rem;
    }

    .testimonial-author {
        font-size: 0.85rem;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .testimonial-carousel {
        max-width: 90%;
        padding: 15px 20px;
        min-height: 120px;
        margin-top: calc(var(--testimonial-spacing) - 10px);
    }

    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .testimonial-song {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .testimonial-author {
        font-size: 0.75rem;
    }
}