/* --- STANDARD TEASER --- */
.standard-teaser__box {
    position: relative;
}
.standard-teaser__text {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 20px;
}
.standard-teaser__text .h3 {
    margin-top: 1rem;
    padding-bottom: 0;
}
.standard-teaser__text .h3:first-child {
    margin-top: 0;
}
.standard-teaser__text .headline__underlined::after {
    display: none;
}
.standard-teaser__subtitle {
    display: none;
}
.page-teaser:not(:has(.container)) {
    display: none;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* --- PHONE (SM) --- */
@media (min-width: 576px) {
    .standard-teaser__text {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 40px;
        text-align: inherit;
    }
    .standard-teaser__text p:not(.standard-teaser__subtitle) {
        display: block;
    }
}

/* --- TABLET (MD) --- */
@media (min-width: 768px) {
    .standard-teaser__subtitle {
        display: block;
    }
    .standard-teaser__text .headline__underlined {
        padding-bottom: 20px;
    }
    .standard-teaser__text .headline__underlined::after {
        display: block;
    }
}

/* --- DESKTOP (LG) --- */
@media (min-width: 992px) {
    .standard-teaser__text {
        right: 38%;
    }
    .col-lg-4 .standard-teaser__text,
    .col-lg-6 .standard-teaser__text {
        right: 0;
        padding: 25px 20px;
    }
    .col-lg-4 .standard-teaser__text .h3,
    .col-lg-6 .standard-teaser__text .h3 {
        font-size: 1.25rem;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .col-lg-4 .standard-teaser__subtitle,
    .col-lg-6 .standard-teaser__subtitle {
        display: none;
    }
    .col-lg-8 .standard-teaser__text .headline__underlined {
        padding-bottom: 25px;
    }
    .col-lg-4 .standard-teaser__text .headline__underlined::after,
    .col-lg-6 .standard-teaser__text .headline__underlined::after {
        display: none;
    }
    .page-teaser .col-lg-6 {
        margin-bottom: 2.5rem;
    }
    .page-teaser .col-lg-4 {
        margin-bottom: 2.5rem;
    }
    .page-teaser .col-lg-6:nth-last-child(-n+2) {
        margin-bottom: 0;
    }
    .page-teaser .col-lg-4:nth-last-child(-n+3) {
        margin-bottom: 0;
    }
}

/* --- DESKTOP (XL) --- */
@media (min-width: 1200px) {
    .col-lg-4 .standard-teaser__text,
    .col-lg-6 .standard-teaser__text {
        padding: 40px;
    }
    .col-lg-4 .standard-teaser__text .h3,
    .col-lg-6 .standard-teaser__text .h3 {
        font-size: 1.75rem;
    }
    .col-lg-4 .standard-teaser__text .headline__underlined,
    .col-lg-6 .standard-teaser__text .headline__underlined {
        padding-bottom: 20px;
    }
    .col-lg-8 .standard-teaser__text .headline__underlined {
        padding-bottom: 30px;
    }
    .col-lg-8 .standard-teaser__text .standard-teaser__subtitle {
        margin-top: 30px;
    }
    .col-lg-4 .standard-teaser__subtitle,
    .col-lg-6 .standard-teaser__subtitle {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .col-lg-4 .standard-teaser__text .headline__underlined::after,
    .col-lg-6 .standard-teaser__text .headline__underlined::after {
        display: block;
    }
}

/* --- DESKTOP (XXL) --- */
@media (min-width: 1440px) {
    .col-lg-4 .standard-teaser__subtitle,
    .col-lg-6 .standard-teaser__subtitle {
        display: block;
    }
    .standard-teaser__text {
        right: 58%;
        padding: 100px 0 100px 100px;
    }
    .col-lg-8 .standard-teaser__text {
        right: 42%;
        padding: 100px 0 100px 50px;
    }
    .col-lg-6 .standard-teaser__text {
        right: 0;
        padding: 50px;
    }
    .col-lg-4 .standard-teaser__text {
        right: 0;
        padding: 35px;
    }
}
