:root {
    --product-content-width: 386px;
}

/* Alle teilen sich den verfügbaren Platz,
   Breite wird über flex-grow gesteuert */
.product-teaser-container .swiper-wrapper {
    display: flex;
    gap: 24px;
}

.product-teaser-container .swiper-slide {
    flex: 1 1 0; /* wichtig: grow = 1, basis = 0 */
    transition: flex-grow 1.5s ease;
}

.product-teaser {
    position: relative;
    height: 600px;
    width: 100%;
    flex: 1 1 0; /* wichtig: grow = 1, basis = 0 */
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: flex-grow 1.5s ease;
}

.product-teaser-content {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    z-index: 1;
    padding: 28px 8px 16px 28px;
    display: flex;
    height: 100%;
    max-width: var(--product-content-width);
    min-width: var(--product-content-width);
}

.product-teaser-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 12px;
    padding: 0;
}

.product-teaser-content-inner {
    margin-top: auto;
}

.product-teaser-buttons {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    min-height: 100px;
}

.product-teaser-buttons .button-element {
    margin-top: auto;
}

.product-teaser-buttons .button-element .btn {
    margin-right: 0;
    white-space: nowrap;
}

.product-teaser .product-teaser-image {
    position: absolute;
    inset: 0;
    overflow: hidden; /* schneidet überstehendes Bild ab */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-teaser .product-teaser-image img {
    height: 100%;
    width: auto;
}

.product-teaser .product-teaser-image::before {
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 73.56%);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

@media (max-width: 1660px) {
    :root {
        --product-content-width: 350px;
    }
}

@media (max-width: 1499px) {
    :root {
        --product-content-width: 300px;
    }

    .product-teaser-container .swiper-wrapper {
        gap: 24px;
    }

}

@media (max-width: 1460px) {
    :root {
        --product-content-width: 300px;
    }

    .product-teaser-content {
        max-width: var(--product-content-width);
        min-width: var(--product-content-width);
    }
}

@media (max-width: 1199px) {
    .product-teaser-container .swiper-wrapper {
        gap: 16px;
    }

    .product-teaser-container .swiper-slide {
        flex: 1 1 30%;
    }

    .product-teaser {
        height: 400px;
        border-radius: var(--border-radius);
    }

    .product-teaser .product-teaser-image::before {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 44.71%);
    }

    .product-teaser-content {
        padding: 20px 8px 8px 20px;
    }

    .product-teaser-title {
        font-size: 24px;
    }
}

@media (max-width: 1024px) {
    .product-teaser-container .swiper-wrapper {
        flex-wrap: wrap;
    }

    .product-teaser-container .swiper-slide {
        flex: unset;
        overflow: unset;
        border-radius: 0;
        flex: 0 0 auto;
    }

    .product-teaser {
        flex: unset;
        overflow: hidden;
        width: 100%;
    }

    .product-teaser-content {
        max-width: unset;
        min-width: unset;
        width: 100%;
        padding: 20px 20px 8px 20px;
    }

    .product-teaser-title {
        font-size: 28px;
        margin-bottom: 4px;
    }

    .product-teaser .product-teaser-image::before {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 44.71%);
    }

    .product-teaser-buttons {
        min-height: 95px;
    }
}

@media (max-width: 992px) {
    .product-teaser {
        height: 400px;
        min-height: 400px;
    }
}

@media (max-width: 639px) {
    .product-teaser {
        height: 320px;
        min-height: 320px;
    }

    .product-teaser-title {
        font-size: 22px;
    }

    .product-teaser-buttons .button-element {
        width: auto;
    }
}

@media (max-width: 567px) {
    .btn-icon.btn-icon-prefix {
        display: none !important;
    }
}