.module_team_with_image {
    margin: 40px 0 0 0;
}

.module_team_with_image .container {
    background-color: #f6f7f9 !important;
    padding: 0 0 !important;
}

.module_team_with_image .mainheadline {
    text-align: left;
    margin-bottom: 20px;
}

.module_team_with_image .teaser_image,
.module_team_with_image .teaser_image img {
    width: 100%;
    object-position: top center;
    object-fit: cover;
}

@media (min-width: 992px) {
    .module_team_with_image .teaser_image,
    .module_team_with_image .teaser_image img {
        height: 325px;
    }
}

.module_team_with_image .teaser {
    border-bottom-right-radius: 25px;
}

.module_team_with_image .teaser_headline {
    margin: 17px 0 0;
}

.module_team_with_image .teaser_headline .headline {
    margin-bottom: 0;
    font-size: 25px;
    padding-bottom: 5px;
}

.module_team_with_image .teaser_text {
    margin: 30px 0 20px 0;
    line-height: 19px;
}

.module_team_with_image .teaser {
    margin-bottom: 25px;
    background-color: #fff;
    padding: 0 !important;
}

.module_team_with_image .teaser_headline,
.module_team_with_image .teaser_position,
.module_team_with_image .teaser_text {
    padding-left: 17px;
    padding-right: 17px;
}

.module_team_with_image .teaser_text p {
    line-height: 1.4;
}

.module_team_with_image .teaser_link a {
    background: none;
    color: #c1d112;
    display: inline-block;
    padding: 8px 33px;
    border: 2px solid #c1d112 !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.5s ease-in-out;
    -moz-transition: background 0.5s ease-in-out;
    -ms-transition: background 0.5s ease-in-out;
    -webkit-transition: background 0.5s ease-in-out;
}

.module_team_with_image .teaser_link a:hover {
    background-color: #c1d112;
    color: white;
    text-decoration: none;
    transition: background 0.5s ease-in-out;
    -moz-transition: background 0.5s ease-in-out;
    -ms-transition: background 0.5s ease-in-out;
    -webkit-transition: background 0.5s ease-in-out;
}

.module_team_with_image .teaser_position {
    color: #000;
    font-size: 18px;
}

@media (max-width: 767px) {
    .module_team_with_image .teaser_headline .headline {
        font-size: 20px;
    }

    .module_team_with_image .teaser_area {
        padding: 0 30px;
    }
}

@media (min-width: 768px) {
    .module_team_with_image {
        margin: 80px 0 0 0;
    }

    .module_team_with_image .teaser {
        margin-bottom: 20px;
        width: 47.7%;
    }

    .module_team_with_image .mainheadline {
        margin-bottom: 20px;
    }

    .module_team_with_image .mainheadline .headline {
        padding-bottom: 15px;
    }

    .module_team_with_image .teaser_area {
        padding-left: 30px;
    }

    .module_team_with_image .teaser_area .teaser:nth-child(odd) {
        margin-right: 10px;
    }

    /* Abstand für gerade Teaser (2, 4, 6, etc.) */
    .module_team_with_image .teaser_area .teaser:nth-child(even) {
        margin-left: 10px;
    }
}

@media (min-width: 992px) {
    .module_team_with_image .mainheadline {
        margin-bottom: 20px;
    }

    .module_team_with_image .mainheadline .headline {
        font-size: 28px;
    }

    .module_team_with_image .teaser_text p {
        margin-bottom: 35px;
    }

    .module_team_with_image .teaser {
        margin-bottom: 30px;
    }

    .module_team_with_image .teaser_area .teaser:nth-child(odd) {
        margin-right: 15px;
    }

    /* Abstand für gerade Teaser (2, 4, 6, etc.) */
    .module_team_with_image .teaser_area .teaser:nth-child(even) {
        margin-left: 15px;
    }

    .module_team_with_image .teaser_headline,
    .module_team_with_image .teaser_position,
    .module_team_with_image .teaser_text {
        padding-left: 35px;
        padding-right: 35px;
    }
}

@media (min-width: 1200px) {
    .module_team_with_image .teaser {
        width: 48.2%;
    }

    .module_team_with_image .teaser_text {
        margin: 30px 0 30px 0;
    }
}

/*Styling, if there is only one teaser-field*/

.module_team_with_image .teaser:only-child {
    width: 100%;
    height: 100%;
    display: flex;
}

.module_team_with_image .teaser:only-child .teaser_image {
    width: 40% !important;
    height: 325px;
}

.module_team_with_image .teaser:only-child .teaser_image img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
}

.module_team_with_image .teaser:only-child .teaser_headline .headline {
    font-size: 28px;
}

/*Styling, if there is only one teaser-field*/

@media (min-width: 768px) {
    .module_team_with_image .row {
        display: flex;
        flex-wrap: wrap;
    }

    .module_team_with_image .teaser {
        display: flex;
        flex-direction: column;
    }

    .module_team_with_image .content_container {
        flex-grow: 1;
    }

    .teaser_area .row:has(> .teaser:only-child) .teaser {
        flex-direction: row !important;
    }
}

@media (max-width: 767px) {
    .teaser_area .row:has(> .teaser:only-child) .teaser {
        flex-direction: column !important;
    }

    .teaser_area .row:has(> .teaser:only-child) .teaser_image {
        width: 100% !important;
    }
}