.overview {
    margin-bottom: 10rem;
    margin-top: 10rem;
}

.overview .teaser-block {
    width: 100%;
}

.overview .row_content {
    position: relative;
    padding: 3rem 0 15rem;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    z-index: 1;
    width: 100%;
    min-height: 80vh;
    justify-content: center;
}

.overview .row_content>.background {
    position: absolute;
    left: calc(0px - var(--padding));
    right: calc(0px - var(--padding));
    z-index: -1;
    top: -3rem;
    bottom: -3rem;
    mask-image: var(--right), var(--top_bottom);
    mask-composite: intersect;
}

.overview .teaser-block.list:not([role="tablist"] ~ *) .row_content {
    padding: 5rem 0;
}

.overview .teaser-block.list:not([role="tablist"] ~ *) .row_content:first-of-type {
    padding-top: 0;
}

.overview .teaser-block.list:not([role="tablist"] ~ *) .row_content:last-of-type {
    padding-bottom: 0;
}

.overview .teaser-block.list:not([role="tablist"] ~ *) .row_content:nth-child(odd) {
    align-items: flex-end;
}

.overview .teaser-block.list:not([role="tablist"] ~ *) .row_content:nth-child(odd) > .background {
    mask-image: var(--left), var(--top_bottom);
}

/* .overview .row_content > :not(.background) {
    max-width: 90rem;
    width: 100%;
}

.overview .teaser-block.list:not([role="tablist"] ~ *) .row_content > :not(.background) {
    max-width: 75rem;
    width: 100%;
} */

.overview .row_content>.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overview>ul {
    list-style: none;
    padding: 0;
}

.overview [role="tablist"] {
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); */
    display: flex;
    gap: 1em 3em;
    flex-wrap: wrap;
    align-items: flex-end;
}

.overview [role="tablist"] button {
    padding: 1.5rem 2rem;
    font-size: 1.2em;
    text-transform: none;
    text-align: left;
    border: none;
    padding: 0;

    height: auto;
    margin: 0;
    flex-shrink: 1;
    border-radius: 0;
    text-transform: uppercase;

    max-width: 40rem;
    align-items: last baseline;
    gap: .5em;
}

.overview [role="tablist"] button:before {
    content: "";
    display: inline-block;
    width: .66em;
    height: .66em;
    border-bottom: 2px solid;
    border-left: 2px solid;
    transform: rotate(-45deg);
    transition: all .3s ease;
    overflow: visible;
    flex-shrink: 0;
    transform-origin: left bottom;
}

.overview [role="tablist"] button:hover,
.overview [role="tablist"] button[aria-selected="true"] {
    border-color: var(--white);
    color: var(--white);
}

.overview [role="tablist"] ~ .teaser-block.list .row_content > h2:nth-child(2) {
    display: none;
}

.overview .content_block:before {
    content: none;
}

.content_block.overview:before {
    content: none;
}


/* TPL Overview -> blauer Hintergrund für jeden ungeraden Block */
.content_module.overview .teaser-block.list div[role="tabpanel"]:nth-child(odd)::before {
  /* --background: #0e445f; */

    content: '';
    position: absolute;
    background-color: var(--background, #0e445f);
    left: calc(0px - var(--padding));
    right: calc(0px - var(--padding));
    top: -10rem;
    bottom: -10rem;
    z-index: -1;
    mask-image: var(--top_bottom);
    pointer-events: none;
}

@media (max-width: 768px) {
    .overview [role="tablist"] button {
        padding: 1rem;
        font-size: 1em;
    }

    .overview .row_content>* {
        order: 2;
    }

    .overview .row_content>.background {
        position: static;
        margin-left: calc(0px - var(--padding));
        margin-right: calc(0px - var(--padding));
        mask-image: var(--top_bottom) !important;
        order: 1;
    }


    .overview .row_content>.background img {
        width: 100vw;
}


.overview {
    margin-top: 0rem;
}
}


