:root {
    --teaser-radius-outer: 45px;
    --teaser-radius-inner: 34px;
}

.main-teaser {
    background-position: center;
    background-size: cover;
    display: block;
    border: 1px solid var(--color-secondary);
    width: calc(100% - 50px);
    margin: 0 auto;
    overflow: hidden;
}

.main-teaser .content-wrap {
    width: 100%;
    position: absolute;
    bottom: 0;
}

.main-teaser .content {
    width: 639px;
    max-width: 100%;
    padding: 27px 36px 27px 0;
    position: relative;
    hyphens: auto;
}

.main-teaser .content * {
    position: relative;
    z-index: 1;
}

.main-teaser.-has-text {
    border-bottom-left-radius: 0;
}

.main-teaser.-has-text .content::before {
    content: ' ';
    background: var(--color-secondary);
    width: 200%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    border-top-right-radius: var(--teaser-radius-inner);
}

.main-teaser .content h1,
.main-teaser .content .h1 {
    margin: 0;
}

.main-teaser.-has-text.-text-on-top {
    border-bottom-left-radius: var(--teaser-radius-outer);
    border-top-left-radius: 0;
}

.main-teaser.-text-on-top .content-wrap {
    top: 0;
    bottom: auto;
}

.main-teaser.-text-on-top .content {
    width: 805px;
    padding: 20px 35px 15px 0;
    position: relative;
}

.main-teaser.-text-on-top .content::before {
    border-top-right-radius: 0;
    border-bottom-right-radius: var(--teaser-radius-inner);
}

.main-teaser.-text-on-top .content-wrap::after,
.main-teaser.-text-on-top .content::after {
    content: ' ';
    width: 45px;
    height: 45px;
    background: transparent url(/public/img/quarter-circle-outer.svg) no-repeat;
    position: absolute;
    left: 0;
    top: 100%;
}

.main-teaser.-text-on-top .content::after {
    left: 100%;
    right: auto;
    top: 0;
    bottom: auto;
}

.main-teaser h1,
.main-teaser h2,
.main-teaser h3,
.main-teaser h4,
.main-teaser h5,
.main-teaser h6 {
    margin-top: 0;
}

.main-teaser .image {
    height: 550px;
}

.main-teaser .image img {
    border-radius: var(--teaser-radius-outer);
}

.main-teaser .cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media (max-width: 767px) {
    .main-teaser {
        width: 100%;
    }

    .main-teaser .content-wrap {
        position: static;
    }

    .main-teaser .content {
        padding: 20px 0;
    }

    .main-teaser .image img {
        border-radius: 0;
    }
}
