/* Mats Milestone Slider Styles */
.mats-milestone-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 0 5.2vw;
    box-sizing: border-box;
}

/* Continuous Timeline Background Line across entire wrapper behind arrows & badges */
.mats-milestone-timeline {
    position: absolute;
    top: 2.3vw;
    left: 1.8vw;
    right: 1.4vw;
    height: 0.7vw;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
    transform: translateY(-50%);
}

/* Swiper Nav Arrows placed on timeline ends - FORCE ALWAYS VISIBLE */
.mats-milestone-nav,
.mats-milestone-nav.swiper-button-lock,
.mats-milestone-nav.swiper-button-disabled {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
}

.mats-milestone-nav,
.mats-milestone-nav:hover,
.mats-milestone-nav:focus,
.mats-milestone-nav:active {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.mats-milestone-nav {
    position: absolute;
    top: 0.3vw;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    width: 2.4vw;
    height: 3.9vw;
}

/* Korrektur tm-progress-widget Anzeige der Pfeile vor der Animation unterdrücken  */
.elementor-invisible .mats-milestone-nav img {
    opacity: 0;
}

.mats-milestone-prev {
    left: 0.4vw;
}

.mats-milestone-next {
    right: 0.5vw;
}

.mats-milestone-nav:hover {
    transform: scale(1.18);
}

.mats-milestone-nav img {
    width: 100%;
    height: auto;
    display: block;
}


/* Slider Main Container */
.mats-milestone-slider-container {
    width: 100%;
}

/* Individual Slide Item */
.mats-milestone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    /* padding: 0 6px; */
}

/* Badge Wrap */
.mats-milestone-badge-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1vw;
}

/* 68px Badge Circle with 1.5px border */
.mats-milestone-badge {
    width: 4.7vw;
    height: 4.7vw;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1.5px solid #fc6676;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fc6676;
    box-shadow: 0 4px 16px rgba(252, 102, 118, 0.12);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mats-milestone-badge svg,
.mats-milestone-badge i {
    width: 2.7vw;
    height: 2.7vw;
    /* fill: currentColor; */
    /* color: currentColor; */
}

/* .mats-milestone-badge img {
    max-width: 34px;
    max-height: 34px;
    object-fit: contain;
} */

/* Checkmark Icon directly below Badge on Timeline */
.mats-milestone-check {
    margin-top: 0.5vw;
    width: 1.3vw;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mats-milestone-check img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Card Box (coaching-bg.png) */
.mats-milestone-card {
    width: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 1.4vw 1.6vw 1vw 1.7vw;
    text-align: center;
    min-height: 11vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.mats-milestone-card:hover {
    transform: translateY(-4px);
    /* box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08); */
}

.mats-milestone-title {
    font-family: inherit;
    font-size: 1.19vw;
    font-weight: 700;
    color: #0b1a30;
    margin: 0 auto 10px auto;
    line-height: 1.3;
}

.mats-milestone-desc {
    font-family: inherit;
    font-size: 1.12vw;
    line-height: 1.5;
    color: #5a6578;
    margin: 0;
    font-weight: 400;
}

/* --- INACTIVE / PENDING STATE (GRAU) --- */
.mats-milestone-item.is-pending .mats-milestone-badge {
    border-color: #c6c6c6 !important;
    color: #a0a8b8;
    box-shadow: none;
}

.mats-milestone-item.is-pending .mats-milestone-badge svg,
.mats-milestone-item.is-pending .mats-milestone-badge img {
    filter: grayscale(100%) opacity(0.5);
}

.mats-milestone-item.is-pending .mats-milestone-check img {
    filter: grayscale(100%) opacity(0.4);
    display: none;
}

.mats-milestone-item.is-pending .mats-milestone-check {
    border-radius: 50%;
    background: #c6c6c6;
    height: 1.3vw;
}

.mats-milestone-item.is-pending .mats-milestone-card {
    /* opacity: 0.65; */
    filter: grayscale(60%);
}

.mats-milestone-item.is-pending .mats-milestone-title {
    /* color: #9aa4b6; */
    opacity: 0.5;
}

.mats-milestone-item.is-pending .mats-milestone-desc {
    /* color: #b0b9c9; */
    opacity: 0.5;
}

/* Festes Bild auf Mobile (meilensteine-mobil.jpg) */
.mats-milestone-fixed-image {
    display: none;
}

/* Responsive adjustments for Mobile (<= 767px): 1 Slide + Feststehendes Bild links */
@media (max-width: 767px) {
    .mats-milestone-wrapper {
        padding: 0;
        position: relative;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        box-sizing: border-box;
        margin-top: 5.4vw;
    }

    .mats-milestone-item {
        gap: 16vw;

        &.is-pending {
            .mats-milestone-check {
                height: 8vw;
            }
        }
    }



    /* Das stehende Mats-Bild links (slidet NICHT mit) */
    .mats-milestone-fixed-image {
        display: block;
        position: absolute;
        left: -18.3vw;
        top: 20vw;
        width: 47%;
        z-index: -1;
        pointer-events: none;
    }

    .mats-milestone-fixed-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Slider nimmt den rechten Bereich ein */
    .mats-milestone-slider-container {
        width: 100%;
        /* max-width: 260px !important; */
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    /* Timeline-Linie auf Mobile oberhalb der Meilenstein-Kachel */
    .mats-milestone-timeline {
        top: 13.3vw;
        left: 5.5vw;
        right: 5vw;
        height: 1.2vw;
    }

    /* Swiper Pfeile oben auf Höhe der Linie */
    .mats-milestone-nav {
        top: 6.4vw;
        width: 9vw;
        height: 14vw;
        transform: scaleY(-1);
    }


    .mats-milestone-prev {
        left: 0.8vw;
    }

    .mats-milestone-next {
        right: -0.5vw;
    }

    .mats-milestone-badge-wrap {
        align-self: center;
        margin-bottom: 0;
    }

    .mats-milestone-badge {
        width: 25vw;
        height: 25vw;
        border-width: 2px;
    }

    .mats-milestone-check {
        top: 14.8vw;
        width: 8vw;
        height: 8vw;
        position: absolute;
        left: 18.8vw;
        background: #ffffff;
        border-radius: 8vw;
    }

    .mats-milestone-badge svg,
    .mats-milestone-badge i,
    .mats-milestone-badge img {
        width: 16vw;
        height: 16vw;
    }

    .mats-milestone-card {
        aspect-ratio: 228 / 149 !important;
        height: auto !important;
        padding: 4vw 6vw;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        width: 66% !important;
    }

    .mats-milestone-title {
        font-size: 4.6vw;
        font-weight: 600;
        margin-bottom: 3vw;
        line-height: 1.25;
    }

    .mats-milestone-desc {
        font-size: 4vw;
        line-height: 1.4 !important;
    }
}