@media (max-width: 1280px) {
    .headerbild {
        max-height: 460px;
    }
    
    .partner .logos {
        justify-content: space-around;
        gap: 25px;
    }

    .partner .logos img {
        max-width: unset;
    }

    .unterseite h2 span {
        white-space: unset;
    }
}

@media (max-width: 1080px) {
    .navi {
        margin-top: 70px;
    }

    .navi a {
        font-size: 16px;
    } 

    .logo img {
        width: 200px;
    }

    #inhaltsbereich {
        padding-top: 110px;
    }

    /* .unterseite #inhaltsbereich {
        padding-top: 110px;
    } */
    
    .anker {
        top: -110px;
    }

    .icons img {
        width: auto;
        max-width: 100%;
    }

    .col-50 {
        width: 100%;
        padding: 0;
    }

    .col-50:first-child, 
    .col-50:nth-child(2) {
        padding: 0 0 0 0;
    }
}

@media (max-width: 870px) {    
    .navi {
        position: relative;
    }
    
    .navi .qnavi {
        position: absolute;
        bottom: 100%;
        right: 0;
        margin-bottom: 5px;
    }

    .navi .qnavi::before {
        display: none;
    }
    .navi a {
        padding: 5px;
    }
    .navi .qnavi a {
        font-size: 14px;
    }

    .navi li:last-child a {
        padding-right: 0;
    }

    .headerbild {
        max-height: 370px;
    }

    .headertext p {
        font-size: 22px;
        line-height: 1.2em;
        width: 300px;
        height: 130px;
    }

    .headertext::before {
        width: 304px;
        height: 134px;
    }

    h1 {
        font-size: 40px;
        line-height: 1.2em;
    }

    h2 {
        font-size: 28px;
    }
}

@media (max-width: 690px) {
    h1 {
        font-size: 34px;
        line-height: 1.2em;
    }

    h2 {
        font-size: 24px;
    }
}

@media (max-width: 570px) {
    .rahmen {
        width: 90%;
    }
    
    nav > .rahmen {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: center;
        width: 100%;
    }

    .navi {
        margin-top: 0;
        z-index: 1;
        background-color: var(--dunkelblau);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%);
        padding-left: 50px;
    }

    .navi ul {
        padding: 30px 10px 0 0;
    }
    
    .navi .hnavi li {
        float: right;
        clear: both;
    }

    .navi a {
        font-size: 14px;
    }

    .navi .hnavi li a {
        padding: 5px 0 5px 5px;
    }
    
    .navi .qnavi {
        display: none;
    }

    .headerbild {
        max-height: 230px;
    }

    .headertext p {
        font-size: 18px;
        line-height: 1.2em;
        width: 250px;
        height: 90px;
        bottom: 20px;
    }

    .headertext::before {
        width: 254px;
        height: 94px;
        bottom: 20px;
    }

    #footer .qnavi {
        display: block;
    }
}

@media (max-width: 480px) {
    h2, p.center {
        text-align: left;
    }

    h2 span {
        padding: 0;
    }

    h2::before, h2::after {
        display: none;
    }

    .partner .logos a {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .headerbild {
        max-height: 180px;
    }

    .headertext p {
        bottom: -70px;
        right: calc(50% - 135px);
        width: 270px;
        height: 100px;
        border: none;
    }

    .headertext::before {
        bottom: -70px;
        right: calc(50% - 135px);
        width: 270px;
        height: 100px;
        background: var(--dunkelblau);
        mix-blend-mode: unset;
    }

    .willkommen {
        padding-bottom: 70px;
        /* background: pink; */
    }
}

@media (max-width: 370px) {
    .logo img {
        width: 160px;
    }

    .navi ul {
        padding: 10px 10px 0 0;
    }

    #inhaltsbereich {
        padding-top: 90px;
    }

    /* .unterseite #inhaltsbereich {
        padding-top: 92px;
    } */
    
    .anker {
        top: -90px;
    }
}