.mf-card-carousel {
    --mf-card-width: clamp(340px, 52vw, 720px);
    --mf-card-height: clamp(420px, 54vw, 640px);
    --mf-container-width: 1200px;
    --mf-highlight: #64cbc9;
    --mf-title-hover-color: #64cbc9;

    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 40px 0 56px;
    overflow: visible;
}

.mf-card-carousel__viewport {
    position: relative;
    width: 100%;
    min-height: var(--mf-card-height);
    overflow: visible;
}

.mf-card-carousel__track {
    position: relative;
    width: 100%;
    height: var(--mf-card-height);
    overflow: visible;
}

.mf-card-carousel__card {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--mf-card-width);
    height: var(--mf-card-height);
    display: block;
    overflow: hidden;
    border-radius: 24px;
    color: #fff;
    text-decoration: none;
    background: #111;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    transform-origin: center center;
    will-change: transform, opacity, filter;
    transition:
        transform 650ms cubic-bezier(.2, .8, .2, 1),
        opacity 450ms ease,
        filter 450ms ease;
}

.mf-card-carousel__card:focus-visible {
    outline: 2px solid var(--mf-highlight);
    outline-offset: 5px;
}

.mf-card-carousel__image {
    position: absolute;
    inset: 0;
    background-color: #202020;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 850ms cubic-bezier(.2, .8, .2, 1);
}

.mf-card-carousel__card.is-active .mf-card-carousel__image {
    transform: scale(1);
}

.mf-card-carousel__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.02) 38%,
            rgba(0, 0, 0, 0.34) 68%,
            rgba(0, 0, 0, 0.82) 100%
        );
}

.mf-card-carousel__content {
    position: absolute;
    left: 5%;
    right: auto;
    bottom: 0;
    width: 90%;
    max-width: 90%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    min-height: 48%;
    padding: clamp(24px, 3.2vw, 46px) 0 clamp(28px, 3vw, 44px);
    pointer-events: none;
}

.mf-card-carousel__label,
.mf-card-carousel__title,
.mf-card-carousel__text {
    opacity: 0;
    transform: translateY(26px);
    will-change: transform, opacity;
    transition:
        opacity 420ms ease,
        transform 620ms cubic-bezier(.2, .8, .2, 1),
        color 320ms ease;
}

.mf-card-carousel__label {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mf-card-carousel__title {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
	font-family: "Days One", sans-serif;
    font-size: clamp(26px, 2.8vw, 46px);
    line-height: 1.3;
    letter-spacing: -0.035em;
    color: #fff;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
    text-wrap: normal;
}

.mf-card-carousel__text {
    max-width: 34ch;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.84);
}

.mf-card-carousel__card:hover .mf-card-carousel__title {
    color: var(--mf-title-hover-color);
}

.mf-card-carousel__card.is-active.is-text-in .mf-card-carousel__label,
.mf-card-carousel__card.is-active.is-text-in .mf-card-carousel__title,
.mf-card-carousel__card.is-active.is-text-in .mf-card-carousel__text {
    opacity: 1;
    transform: translateY(0);
}

.mf-card-carousel__card.is-active.is-text-in .mf-card-carousel__label {
    transition-delay: 40ms;
}

.mf-card-carousel__card.is-active.is-text-in .mf-card-carousel__title {
    transition-delay: 90ms;
}

.mf-card-carousel__card.is-active.is-text-in .mf-card-carousel__text {
    transition-delay: 150ms;
}

.mf-card-carousel__card:not(.is-active) .mf-card-carousel__label,
.mf-card-carousel__card:not(.is-active) .mf-card-carousel__title,
.mf-card-carousel__card:not(.is-active) .mf-card-carousel__text {
    transition-delay: 0ms;
}

.mf-card-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 999;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        transform 220ms ease,
        background 220ms ease,
        color 220ms ease,
        box-shadow 220ms ease;
}

.mf-card-carousel__nav:hover {
    background: var(--mf-highlight);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.30);
}

.mf-card-carousel__nav span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 42px;
    line-height: 1;
    font-weight: 300;
    color: currentColor;
    transform: translateY(-2px);
}

.mf-card-carousel__nav--prev {
    left: max(24px, calc((100vw - var(--mf-container-width)) / 2 + 24px));
}

.mf-card-carousel__nav--next {
    right: max(24px, calc((100vw - var(--mf-container-width)) / 2 + 24px));
}

.mf-card-carousel__dots {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.mf-card-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition:
        width 220ms ease,
        background 220ms ease;
}

.mf-card-carousel__dot.is-active {
    width: 24px;
    background: rgba(0, 0, 0, 0.75);
}

/* Variante: Jobs / Stellen */

.mf-card-carousel.is-variant-jobs {
    --mf-card-height: clamp(360px, 42vw, 520px);
}

.mf-card-carousel.is-variant-jobs .mf-card-carousel__content {
    left: 5%;
    right: auto;
    bottom: 0;
    width: 90%;
    max-width: 90%;
    min-width: 0;
    min-height: 45%;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: clamp(24px, 3vw, 44px) 0 clamp(30px, 3.4vw, 52px);
}

.mf-card-carousel.is-variant-jobs .mf-card-carousel__title {
    width: 100%;
    max-width: none;
    min-width: 0;
    font-size: clamp(22px, 2.1vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.mf-card-carousel.is-variant-jobs .mf-card-carousel__overlay {
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.04) 36%,
            rgba(0, 0, 0, 0.38) 68%,
            rgba(0, 0, 0, 0.82) 100%
        );
}

/* Variante: Success Stories */

/* Variante: Success Stories */

.mf-card-carousel.is-variant-success .mf-card-carousel__content {
    left: 10%;
    right: auto;
    bottom: 0;
    width: 80%;
    max-width: 80%;
    min-width: 0;
    min-height: 40%;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: clamp(20px, 2.6vw, 36px) 0 clamp(28px, 3vw, 44px);
}

.mf-card-carousel.is-variant-success .mf-card-carousel__label {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
}

.mf-card-carousel.is-variant-success .mf-card-carousel__title {
    width: 100%;
    max-width: none;
    min-width: 0;
    font-size: clamp(19px, 1.75vw, 28px);
    line-height: 1.28;
    letter-spacing: -0.015em;
    text-align: center;
}

.mf-card-carousel.is-variant-success .mf-card-carousel__text {
    display: none;
}

.mf-card-carousel.is-variant-success .mf-card-carousel__overlay {
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.03) 42%,
            rgba(0, 0, 0, 0.28) 68%,
            rgba(0, 0, 0, 0.80) 100%
        );
}

.mf-card-carousel.is-variant-success .mf-card-carousel__card:hover .mf-card-carousel__title {
    color: var(--mf-title-hover-color);
}

.mf-card-carousel.is-variant-success .mf-card-carousel__card:hover .mf-card-carousel__label {
    color: #fff;
}
/* Mobile */

@media (max-width: 767px) {
    .mf-card-carousel {
        --mf-card-width: 82vw;
        --mf-card-height: 460px;

        padding: 28px 0 44px;
    }

    .mf-card-carousel__nav {
        width: 46px;
        height: 46px;
    }

    .mf-card-carousel__nav span {
        font-size: 36px;
    }

    .mf-card-carousel__nav--prev {
        left: 14px;
    }

    .mf-card-carousel__nav--next {
        right: 14px;
    }

    .mf-card-carousel__title {
        font-size: 28px;
    }

    .mf-card-carousel__text {
        font-size: 14px;
    }

    .mf-card-carousel.is-variant-jobs .mf-card-carousel__title {
        font-size: 24px;
    }
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
    .mf-card-carousel__card,
    .mf-card-carousel__image,
    .mf-card-carousel__label,
    .mf-card-carousel__title,
    .mf-card-carousel__text {
        transition: none;
    }
}