/* --------------------------------------------- header ----------------------------------------- */

@media (min-width: 992px) {
    header {
        background: url('../../img/circle.svg') left calc(50% + 620px) top 90px / 285px auto no-repeat;
    }
}

header>.row>*:first-child::after {
    content: "";
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    height: 400px;
    background: url('../../img/header/post-its.webp') center / cover no-repeat;
}

@media (min-width: 768px) {
    header>.row>*:first-child::after {
        right: 15px;
    }
}

@media (min-width: 992px) {
    header>.row>*:first-child::after {
        border-radius: 5px;
        right: 45px;
    }
}

@media (min-width: 1200px) {
    header>.row>*:first-child {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    header>.row>*:first-child::after {
        border-top-left-radius: 200px;
        top: 0;
        bottom: 0;
        height: unset;
        right: -30px;
        min-width: 100%;
        max-width: 840px;
        left: -165px;
    }
}

header>.row {
    row-gap: 20px;
    padding: var(--distance-small) 0;
}

@media (max-width: 1199px) {
    header>.row {
        padding-top: 150px;
    }
}

header .header-tab {
    margin-top: 25px;
}

@media (min-width: 768px) and (max-width: 991px) {
    header .header-tab {
        margin-left: -385px;
        max-width: none;
    }

    header .large-text {
        min-height: 310px;
    }
}

header .stoerer {
    position: absolute;
    bottom: 40px;
    left: 15px;
    z-index: 2;
}

@media (min-width: 768px) {
    header .stoerer {
        bottom: auto;
        top: -20px;
    }
}

@media (min-width: 1200px) {
    header .stoerer {
        top: unset;
        left: 15px;
        bottom: 100px;
    }
}

@media (min-width: 1400px) {
    header .stoerer {
        left: -35px;
    }
}

header .smartphone-mockup.small-smartphone {
    max-width: 126px;
}

@media (max-width: 1199px) {
    header .smartphone-mockup {
        display: none;
    }
}

header .laptop-mockup {
    margin: 18px auto 46px auto;
}

@media (min-width: 768px) {
    header .laptop-mockup {
        margin-left: -100px;
    }
}

@media (min-width: 992px) {
    header .laptop-mockup {
        max-width: 539px;
    }

    header .smartphone-mockup {
        position: absolute;
        bottom: -5px;
        right: 60px;
        z-index: 2;
    }
}

@media (min-width: 1200px) {
    header .laptop-mockup {
        margin-left: 50px;
    }

    header .button-style a {
        margin-top: 8px;
    }
}

@media (min-width: 1400px) {
    header .large-text {
        margin-right: -50px;
        width: auto;
    }
}

/* -------------------------------------------- content ----------------------------------------- */

.half-background-right {
    position: relative;
    z-index: 1;
    padding-top: var(--distance-small);
    padding-bottom: var(--distance-small);
}

.half-background-right::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: -120px;
    bottom: 0;
    left: -120px;
    z-index: -1;
    background: var(--highlight);
}

@media (min-width: 768px) {
    .half-background-right::after {
        left: 50%;
        border-radius: 5px 0 0 5px;
    }
}

@media (min-width: 992px) {
    .half-background-right::after {
        right: -50vw;
    }
}

main>section[id^="aufgaben"] {
    padding: var(--distance-small) 0 0 0;
}

#aufgaben-1 {
    position: relative;
    background: url('../../img/circle.svg') right calc(50% + 800px) top 220px / 90px auto no-repeat, url('../../img/circle.svg') right calc(50% + 720px) top 300px / 50px auto no-repeat, url('../../img/circle.svg') right calc(50% + 680px) bottom 170px / 100px auto no-repeat;
}

#aufgaben-1 .half-background-right::after {
    background-image: url('../../img/circle.svg');
    background-position: left 610px bottom 280px;
    background-size: 210px auto;
    background-repeat: no-repeat;
}

#aufgaben-1>.row {
    row-gap: var(--distance-min);
}

@media (min-width: 992px) {
    #aufgaben-1 .btgrid>.row {
        row-gap: var(--distance-min);
    }
}

#aufgaben-1 img {
    padding: 15px;
    background: #fff;
}

@media (min-width: 576px) {
    #aufgaben-1 img {
        width: 161px !important;
        height: 161px !important;
        object-fit: scale-down;
        box-shadow: var(--shadow);
        border-radius: 2px;
    }
}

#aufgaben-3>* {
    padding: var(--distance-small) 0;
}

#aufgaben-3-1 {
    position: relative;
    background-image: url('../../img/circle.svg'), url('../../img/circle.svg');
    background-position: left calc(50% + 750px) top 240px, left calc(50% + 850px) top 150px;
    background-size: 115px auto, 64px auto;
    background-repeat: no-repeat;
}

#aufgaben-3-1::after {
    content: "";
    display: block;
    position: absolute;
    right: calc(50% + 600px);
    top: -170px;
    width: 454px;
    height: 454px;
    background: url('../../img/header/ehepaar-smartphone.webp') center no-repeat;
}

#aufgaben-3-2 {
    background-image: url('../../img/circle.svg');
    background-position: right calc(50% + 80px) top 100px;
    background-size: 74px auto;
    background-repeat: no-repeat;
}

#aufgaben-3-3,
#aufgaben-3-5 {
    position: relative;
}

#aufgaben-3-3::after {
    content: "";
    display: block;
    position: absolute;
    top: -161px;
    left: calc(50% + 720px);
    width: 334px;
    height: 334px;
    border-radius: 50%;
    background: #ffe4e4;
}

@media (min-width: 1200px) and (max-width: 1499px) {
    #aufgaben-3 .wimpel {
        top: calc(clamp(75px, 6vw, 85px) * -1);
    }
}

@media (min-width: 1500px) {
    #aufgaben-3 .wimpel {
        top: -20px;
    }

    #aufgaben-3-3 .wimpel {
        top: -85px;
    }
}

#aufgaben-3-5::after {
    content: "";
    display: block;
    position: absolute;
    top: -161px;
    right: calc(50% + 720px);
    width: 334px;
    height: 334px;
    border-radius: 50%;
    background: #ffe4e4;
}

@media (min-width: 576px) {
    #aufgaben-3-5 img:first-of-type {
        position: relative;
        z-index: 1;
        margin-left: clamp(100px, 20vw, 370px);
        margin-bottom: -50px;
    }

    #aufgaben-3-5 img~img {
        margin-top: calc(clamp(100px, 10vw, 170px) * -1);
    }
}

footer {
    margin-top: 0;
}