.swiper-hero.referenz-teile {
  height: auto;
  width: 100%;
  position: relative;
}

.swiper-hero.referenz-teile .swiper-wrapper {
    height: 100%;
    width: 100%;
}

.swiper-hero.referenz-teile .swiper-hero--inner {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
}

.swiper-hero.referenz-teile .swiper-hero--content-wrap {
    background-color: var(--bs-dark);
    position: relative;
    padding-top: 1rem;
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
    padding-right: 1rem;
    right: 0%;
    bottom: 0%;
    width: 100%;
    height: 50%;
}

.swiper-hero.referenz-teile .swiper-hero--content-wrap h3,
.swiper-hero.referenz-teile .swiper-hero--content-wrap p,
.swiper-hero.referenz-teile .swiper-hero--content-wrap a.btn {
    color: white;
}

.swiper-hero.referenz-teile .swiper-hero--image {
    height: 50%;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--bs-gray-40);
    background-image: url(metall.webp);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-hero.referenz-teile .swiper-hero--image img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
}

.swiper-hero.referenz-teile .swiper-hero--pagination {
    text-align: center;
    position: relative;
    width: auto !important;
    left: 0% !important;
    bottom: 0% !important;
    margin: 0;
    z-index: 11;
}

.swiper-hero.referenz-teile span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: var(--bs-dark);
    opacity: 1;
}

.swiper-hero.referenz-teile .swiper-pagination-bullet {
    background-color: var(--bs-gray-40);
    opacity: 1;
    width: 22px;
    height: 4px;
    border-radius: 0;
    z-index: 111;
}

@media (min-width: 576px) {

    .swiper-hero.referenz-teile {
        aspect-ratio: 16 / 9;
    }

    .swiper-hero.referenz-teile .swiper-hero--inner {
        height: 100%;
        display: inline-block;
    }

    .swiper-hero.referenz-teile .swiper-hero--content-wrap {
        position: absolute;
        width: 50%;
        height: unset;
    }

    .swiper-hero.referenz-teile .swiper-hero--image {
        height: auto;
        width: 70%;
        max-width: 860px;
        aspect-ratio: 4 / 3;
    }

    .swiper-hero.referenz-teile .swiper-hero--pagination {
        position: absolute;
    }

}

@media (min-width: 768px) {
    
    .swiper-hero.referenz-teile .swiper-hero--content-wrap {
        width: 40%;
        padding: 2rem 2rem 1.5rem 2rem;
    }
    
    .swiper-hero.referenz-teile .swiper-hero--content-wrap h3 {
        font-size: 28px;
    }
    
    .swiper-hero.referenz-teile .swiper-hero--content-wrap p {
        font-size: 22px;
        line-height: 140%;
    }

}

@media (min-width: 992px) {
    .swiper-hero.referenz-teile .swiper-pagination-bullet {
        width: 44px;
        height: 4px;
    }    

}

/* smaller font for mobile screens */
@media (max-width: 575px) {
    .swiper-hero.referenz-teile .swiper-hero--content-wrap p,
    .swiper-hero.referenz-teile .swiper-hero--content-wrap,
    .swiper-hero.referenz-teile .swiper-hero--content-wrap a.btn {
        font-size: 1rem;
    }
    
    .swiper-hero.referenz-teile .swiper-hero--content-wrap h3 {
        font-size: 1.5rem;
    }
}

