/* =========================================
   GOLFVERSAND FEATURE GRID
   ========================================= */

.gv-feature-grid {
    position: relative;

    /*
     * Die Anzahl der Sets wird vom JS gesetzt.
     *
     * 3 Bilder = 1 Set
     * 6 Bilder = 2 Sets
     * 9 Bilder = 3 Sets
     */

    height:
        calc(
            var(--gv-feature-steps, 1)
            *
            100vh
        );

    background: #FFFFFF;
}


/* =========================================
   ORIGINAL OPC GALERIE
   ========================================= */

.gv-feature-grid__opc-source {
    display: none !important;
}


/* =========================================
   STICKY CONTAINER
   ========================================= */

.gv-feature-grid__sticky {
    position: sticky;
    top: 0;
    height: 100vh;

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

    padding: 0 24px;

    overflow: hidden;
}


.gv-feature-grid__inner {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
}


/* =========================================
   SECTION HEADER
   ========================================= */

.gv-feature-grid__header {
    padding-bottom: 24px;
}


.gv-feature-grid__header h2 {
    margin: 0;

    font-size:
        clamp(
            1.5rem,
            4vw + 1rem,
            3rem
        );

    font-weight: 600;

    line-height: 1;

    letter-spacing: -0.03em;

    color: #111111;
}


/* =========================================
   DESKTOP GRID
   ========================================= */

.gv-feature-grid__layout {
    width: 100%;

    height:
        min(
            70vh,
            800px
        );

    display: grid;

    grid-template-columns:
        1.8fr
        1fr;

    gap: 18px;
}


.gv-feature-grid__right {
    display: grid;

    grid-template-rows:
        1fr
        1fr;

    gap: 18px;
}


/* =========================================
   CARDS
   ========================================= */

.gv-feature-card {
    position: relative;

    min-height: 0;

    overflow: hidden;

    border-radius: 20px;

    background: #111111;

    color: #FFFFFF;
}


/* =========================================
   OFFERS / SETS
   ========================================= */

.gv-feature-offer {
    position: absolute;

    inset: 0;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.65s ease,
        visibility 0.65s ease;
}


.gv-feature-offer.is-active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================================
   PICTURE
   ========================================= */

.gv-feature-offer picture {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;

    height: 100%;
}


/* =========================================
   IMAGE
   ========================================= */

.gv-feature-card__image {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transform: scale(1.04);

    transition:
        transform 0.8s ease;
}


.gv-feature-offer.is-active
.gv-feature-card__image {
    transform: scale(1);
}


/* =========================================
   DARK IMAGE OVERLAY
   ========================================= */

.gv-feature-offer::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 25%,
            rgba(0, 0, 0, 0.18) 55%,
            rgba(0, 0, 0, 0.72) 100%
        );

    pointer-events: none;
}


/* =========================================
   CONTENT
   ========================================= */

.gv-feature-card__content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    padding: 28px;

    transform:
        translateY(10px);

    transition:
        transform 0.6s ease;
}


.gv-feature-offer.is-active
.gv-feature-card__content {
    transform:
        translateY(0);
}


/* =========================================
   EYEBROW
   ========================================= */

.gv-feature-card__eyebrow {
    display: block;

    margin-bottom: 8px;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color:
        rgba(
            255,
            255,
            255,
            0.72
        );
}


/* =========================================
   HEADLINE
   ========================================= */

.gv-feature-card h3 {
    margin: 0;

    font-size:
        clamp(
            22px,
            2.2vw,
            34px
        );

    font-weight: 500;

    line-height: 1.1;

    color: #FFFFFF;
}


/* =========================================
   BUTTON
   ========================================= */

.gv-feature-card__button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 20px;

    padding:
        12px
        20px;

    border-radius: 999px;

    background: #FFFFFF;

    color: #111111 !important;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none !important;

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


.gv-feature-card__button:hover,
.gv-feature-card__button:focus {
    background: #EEEEEE;

    color: #111111 !important;

    text-decoration: none !important;

    transform:
        translateY(-1px);
}


/* =========================================
   DESKTOP HOVER
   ========================================= */

@media (hover: hover) {

    .gv-feature-card:hover
    .gv-feature-offer.is-active
    .gv-feature-card__image {
        transform:
            scale(1.035);
    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .gv-feature-grid {
        height:
            calc(
                var(--gv-feature-steps, 1)
                *
                100vh
            );
    }


    /* =====================================
       STICKY
       ===================================== */

    .gv-feature-grid__sticky {
        position: sticky;

        top: 0;

        height: 100vh;

        display: flex;

        align-items: center;

        padding: 0;
    }


    .gv-feature-grid__inner {
        width: 100%;
    }


    /* =====================================
       HEADER
       ===================================== */

    .gv-feature-grid__header {
        padding:
            24px
            20px
            20px;
    }


    .gv-feature-grid__header h2 {
        font-size:
            clamp(
                1.5rem,
                4vw + 1rem,
                3rem
            );
    }


    /* =====================================
       MOBILE LAYOUT
       ===================================== */

    .gv-feature-grid__layout {
        display: block;

        width: 100%;

        height: 78vh;
    }


    /*
     * WICHTIG:
     *
     * Mobil werden die rechten Karten
     * komplett ausgeblendet.
     *
     * Bei:
     *
     * Set 1 = #1 / #2 / #3
     * Set 2 = #4 / #5 / #6
     * Set 3 = #7 / #8 / #9
     *
     * sieht Mobile also nur:
     *
     * #1 -> #4 -> #7
     */

    .gv-feature-grid__right {
        display: none !important;
    }


    /* =====================================
       GROSSE MOBILE KARTE
       ===================================== */

    .gv-feature-card--large {
        width:
            calc(
                100%
                -
                32px
            );

        height: 78vh;

        margin-left: 16px;

        margin-right: 16px;

        border-radius: 20px;

        transition:
            width 0.5s ease,
            margin-left 0.5s ease,
            margin-right 0.5s ease,
            border-radius 0.5s ease;
    }


    /* =====================================
       MOBILE OPEN / PARALLAX EFFECT
       ===================================== */

    .gv-feature-card--large.is-scrolling {
        width: 100%;

        margin-left: 0;

        margin-right: 0;

        border-radius: 0;
    }


    /* =====================================
       MOBILE CONTENT
       ===================================== */

    .gv-feature-card__content {
        padding:
            22px
            20px
            max(
                28px,
                env(
                    safe-area-inset-bottom
                )
            );
    }


    .gv-feature-card h3 {
        font-size:
            clamp(
                30px,
                9vw,
                44px
            );
    }


    .gv-feature-card__button {
        margin-top: 16px;
    }

}