/* =========================================================
   GOLFVERSAND.DE – FEATURES & BENEFITS SLIDER
   Nike Style
========================================================= */


/* ---------------------------------------------------------
   Hauptwrapper
--------------------------------------------------------- */

.features-slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}


/* ---------------------------------------------------------
   Header / Navigation
--------------------------------------------------------- */

.features-slider-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: 100%;
    margin-bottom: 1rem;
}

.features-slider-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* ---------------------------------------------------------
   Navigation Buttons
--------------------------------------------------------- */

.features-slider-nav button {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    transform: none !important;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: var(--color-grey);
    color: var(--color-deep-blue);

    cursor: pointer;
    appearance: none;

    transition:
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.features-slider-nav button:hover:not(:disabled) {
    background: var(--color-primary);
}

.features-slider-nav button:focus {
    outline: none;
}

.features-slider-nav button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.features-slider-nav button:disabled,
.features-slider-nav button.is-disabled {
    opacity: 0.3;
    cursor: default;
}


/* ---------------------------------------------------------
   Navigation Icons
--------------------------------------------------------- */

.features-slider-nav .fas {
    position: static !important;

    display: block;

    width: auto;
    height: auto;

    margin: 0;
    padding: 0;

    font-size: 14px;
    line-height: 1;

    transform: none !important;
}

.features-slider-prev .fa-chevron-left,
.features-slider-next .fa-chevron-right {
    transform: none !important;
}


/* ---------------------------------------------------------
   Slick Slider
--------------------------------------------------------- */

.features-and-benefits {
    position: relative;
    width: 100%;
}

.features-and-benefits .slick-list {
    overflow: hidden;
}


/* ---------------------------------------------------------
   Slick Track
--------------------------------------------------------- */

.features-and-benefits .slick-track {
    display: flex;
    align-items: flex-start;
}


/* ---------------------------------------------------------
   Slides
--------------------------------------------------------- */

.features-and-benefits .slick-slide {
    height: auto;
    padding-right: 16px;
}


/* ---------------------------------------------------------
   Slick interner Wrapper
--------------------------------------------------------- */

.features-and-benefits .slick-slide > div {
    height: auto;
}


/* ---------------------------------------------------------
   Eigentliche Card
--------------------------------------------------------- */

.features-and-benefits .slick-item {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: auto;
}


/* ---------------------------------------------------------
   Bilder & Videos
   Einheitliches 4:5 Format
--------------------------------------------------------- */

.features-and-benefits .slick-item img,
.features-and-benefits .slick-item video {
    display: block;

    width: 100% !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0;

    aspect-ratio: 4 / 5;

    margin: 0 0 1.25rem;

    object-fit: cover;
    object-position: center;

    background-color: var(--color-grey);

    border-radius: 8px;
}


/* ---------------------------------------------------------
   Video absichern
--------------------------------------------------------- */

.features-and-benefits .slick-item video {
    flex: none;
    overflow: hidden;
}


/* ---------------------------------------------------------
   Überschrift
--------------------------------------------------------- */

.features-and-benefits .slick-item h3 {
    width: 100%;
    margin: 0 0 1rem;
}


/* ---------------------------------------------------------
   Beschreibung
--------------------------------------------------------- */

.features-and-benefits .slick-item p {
    width: 100%;
}


/* ---------------------------------------------------------
   Aufgeklappter Beschreibungstext
--------------------------------------------------------- */

.features-and-benefits.is-expanded .slick-item p.is-collapsible {
    max-height: none !important;
    overflow: visible;
}

.features-and-benefits.is-expanded .slick-item p.is-collapsible::after {
    display: none;
}


/* ---------------------------------------------------------
   Technologie anzeigen Button
--------------------------------------------------------- */

.features-and-benefits .tech-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin: 20px auto 0;
    padding: 0;

    background: none;
    color: var(--color-deep-blue);

    border: 0;

    font-size: 14px;
    font-weight: 400;

    text-decoration: underline;
    text-underline-offset: 3px;

    cursor: pointer;
}

.features-and-benefits .tech-more-btn::after {
    content: "+";

    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    flex-shrink: 0;

    border: 1px solid var(--color-deep-blue);
    border-radius: 50%;

    font-size: 18px;
    font-weight: 300;
    line-height: 1;

    transition: all 0.25s ease;
}

.features-and-benefits.is-expanded .tech-more-btn::after {
    content: "−";
}


/* ---------------------------------------------------------
   Scrollbar
--------------------------------------------------------- */

.features-slider-scrollbar {
    width: 100%;

    margin-top: 2rem;
    padding: 8px 0;
}

.features-slider-scrollbar-track {
    position: relative;

    width: 100%;
    height: 1px;

    background: var(--color-grey);

    cursor: pointer;
    touch-action: none;
}

.features-slider-scrollbar-thumb {
    position: absolute;

    top: 50%;
    left: 0;

    height: 4px;

    background: var(--color-deep-blue);

    border-radius: 999px;

    transform: translate3d(0, -50%, 0);

    cursor: grab;
    touch-action: none;

    transition:
        transform 0.35s ease,
        width 0.35s ease;
}

.features-slider-scrollbar-thumb.is-dragging {
    cursor: grabbing;
    transition: none;
}

.features-slider-scrollbar-thumb::before {
    content: "";

    position: absolute;

    top: -10px;
    right: 0;
    bottom: -10px;
    left: 0;
}


/* ---------------------------------------------------------
   Tablet
--------------------------------------------------------- */

@media (max-width: 991.98px) {

    .features-and-benefits .slick-slide {
        padding-right: 14px;
    }
}


/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 575.98px) {

    .features-slider-wrapper {
        margin-bottom: 1.5rem;
    }

    .features-slider-header {
        margin-bottom: 0.75rem;
    }

    .features-slider-nav {
        gap: 0.4rem;
    }

    .features-slider-nav button {
        width: 42px;
        height: 42px;
    }

    .features-slider-nav .fas {
        font-size: 13px;
    }

    .features-and-benefits .slick-slide {
        padding-right: 12px;
    }

    .features-slider-scrollbar {
        margin-top: 1.5rem;
        padding: 10px 0;
    }
}
