/* ========================================================
   1. Desktop Only (> 1024px): Quote & Testimonial Softening
   ======================================================== */
@media (min-width: 1025px) {
    /* Smooth opacity curve for incoming/outgoing slides */
    .w-grid-list.owl-carousel .owl-item.animated {
        transition: opacity 750ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Soft vertical drift for text on entry */
    .w-grid-list.owl-carousel .owl-item.owl-animated-in .teammitglied-zitat-inhalt-wrapper,
    .w-grid-list.owl-carousel .owl-item.owl-animated-in .kundentestimonial-inhalt-wrapper {
        animation: smoothQuoteIn 750ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    /* Clean exit for text */
    .w-grid-list.owl-carousel .owl-item.owl-animated-out .teammitglied-zitat-inhalt-wrapper,
    .w-grid-list.owl-carousel .owl-item.owl-animated-out .kundentestimonial-inhalt-wrapper {
        animation: smoothQuoteOut 400ms ease forwards;
    }
}

@keyframes smoothQuoteIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes smoothQuoteOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-6px);
    }
}

/* ========================================================
   2. Desktop Only (> 1024px): Lock 3-Item Blog Carousel
   ======================================================== */
@media (min-width: 1025px) {
    .w-grid-list:has(.blog-item) {
        pointer-events: auto;
    }

    .w-grid-list:has(.blog-item) .owl-stage {
        transform: none !important;
        width: 100% !important;
    }

    .w-grid-list:has(.blog-item) .owl-item {
        pointer-events: auto !important;
        cursor: default !important;
    }
}

/* ========================================================
   3. Tablet & Mobile (<= 1024px): Snappy Touch Swiping
      Applies to both Leistungen and Blog elements
   ======================================================== */
@media (max-width: 1024px) {
    .leistungen-grid .owl-carousel,
    .w-grid-list:has(.blog-item) {
        --transition-duration: 350ms !important;
    }

    .leistungen-grid .owl-carousel .owl-stage,
    .w-grid-list:has(.blog-item) .owl-stage {
        transition-duration: 350ms !important;
        transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important;
    }
}