@media (min-width: 2000px){
    #header > .frame-type-textmedia {
        width: 2000px;
        padding-left: calc(50% - 1000px);
    }

    .frame-boxg, .frame-boxk{
        max-width: 2000px;
        margin: 0 calc(50% - 1000px);
    }

    #header .ce-bodytext{
        left: 775px;
    }
}

@media (max-width: 1790px){
    .frame-boxg .row > div:nth-child(2){
        max-height: 290px;
    }
}

@media(max-width: 1730px){
    .frame[class*='frame-box'] .ce-bodytext a{
        margin-top: 0;
    }
}

@media (max-width: 1670px){
    .frame[class*='frame-box'] .ce-textpic {
        overflow: visible;
    }

    .frame[class*='frame-box'] .ce-bodytext h2{
        margin: 0;
    }
}

@media (max-width: 1600px){
    .frame-intro .ce-gallery {
        position: absolute;
        right: calc(50% - 680px);
        top: -130px;
        max-width: 400px;
    }
}

@media (max-width: 1580px){
    .frame-boxg .row > div.bild img{
        width: 100%;
        height: auto;
    }
}

@media (max-width: 1470px){
    #oben{
        width: 90%;
        padding: 0 5%;
    }

    h1, h2 {
        font-size: 30px;
    }

    body{
        font-size: 16px;
    }
}

@media (max-width: 1360px){
    .frame-intro .ce-gallery{
        right: 0;
        opacity: 50%;
    }

    .frame-intro header,
    .frame-intro .ce-bodytext{
        position: relative;
        z-index: 1;
    }

    .owl-carousel .owl-nav button.owl-next, .owl-carousel .owl-nav button.owl-prev {
        top: calc(50% - 50px);
        width: 25px;
        height: 100px;
    }
}

@media (max-width: 1300px){
    .frame-boxg .row > div:nth-child(2) {
        max-height: 215px;
    }

    h1, h2 {
        font-size: 24px;
    }

    h2.folgt, h3{
        font-size: 20px;
    }

    #header .ce-bodytext {
        padding: 100px 30px 30px 30px;
    }
}

@media (max-width: 1290px){
    /* .frame[class*='frame-box'] .ce-bodytext a {
        padding: 9px 10px;
    } */

    .frame[class*='frame-box'] h2 {
        font-size: 20px;
    }

    .frame[class*='frame-box'] p{
        margin: 0;
    }
}

@media (max-width: 1260px){
    .hnavi li a {
        padding: 20px 10px;
    }

    .hnavi li.act::before{
        left: 0;
    }
}

@media (max-width: 1200px){
    #header .ce-bodytext{
        left: 15%;
        font-size: 50px;
    }

    #header .ce-bodytext a {
        padding: 15px 40px;
    }

    .frame-boxg .row > div:first-child,
    .frame-boxg .row > div:first-child .ce-bodytext,
    .frame-boxg .row > div:first-child .ce-gallery {
        width: 100%;
        max-height: 400px;
        overflow: hidden;
    }

    .frame-boxg .row > div:first-child .ce-bodytext {
        width: calc(100% - 50px);
    }
    @media (hover:none){
        .frame-boxg .row > div:first-child .ce-bodytext {
            width: calc(100% - 30px);
        }
    }

    .frame-boxg .row > div:first-child  img {
        transform: translateY(-25%);
    }

    .frame-boxg .row > div:not(:first-child),
    .frame[class*='frame-box'] .text,
    .frame-boxk .row > div:not(:last-child){
        width: 50% !important;
    }

    .frame[class*='frame-box'] .ce-bodytext {
        padding: 40px 25px;
    }

    .frame[class*='frame-box'] h2 {
        font-size: 30px;
    }

    .frame[class*='frame-box'] p{
        margin: 1em 0;
    }

    .frame-boxk .row > div:nth-child(3){
        width: 100%;
    }

    .frame[class*='frame-box'] .ce-bodytext a{
        margin-top: 20px;
    }

    .frame-mitarbeiter .image-caption{
        font-size: 18px;
    }
}

@media (max-width: 1120px){
    .mob_button{
        display: block;
    }

    .hnavi{
        position: absolute;
        right: -250px;
        top: 95px;
        margin: 0;
        background: #fff;
        margin-top: 0;
        max-height: calc(95vh - 55px);
        overflow: scroll;
    }

    .mob_button.mobnavvisible + .hnavi{
        right: 0;
    }

    .hnavi li{
        display: block;
        float: left;
        clear: both;
        width: 100%;
    }

    .hnavi li a{
        width: calc(100% - 80px);
        padding: 15px 40px;
        float: left;
    }

    .hnavi li.act::before {
        left: 20px;
        top: 4px;
    }

    .hnavi li:last-child a {
        color: #373737;
        background: none;
        border-radius: 0;
        margin-bottom: 0;
        font-weight: 500;
        padding: 15px 40px;
    }

    .hnavi li:last-child.act a {
        color: #373737;
        background: none;
    }

    .hnavi li:last-child.act::before {
        display: block;
    }
    
    #oben .frame-type-textmedia img{
        height: 75px;
        width: auto;
        transition: all ease 0.3s;
    }

    #oben .frame-type-textmedia{
        margin-top: 10px;
    }

    #oben.scroll .frame-type-textmedia{
        transform: none;
        margin-top: 0;
    }
    
    #oben.scroll .hnavi{
        top: 55px;
        margin-top: 0;
    }

    #oben.scroll .mob_button{
        top: -3px;
    }

    #oben.scroll .frame-type-textmedia img {
        max-height: 55px;
    }

    #header{
        margin-top: 95px;
    }
}

@media (max-width: 1000px){
    #header{
        margin-bottom: 40px;
    }
    
    .frame-intro .ce-bodytext {
        width: 90%;
    }

    .frame-chronik .col- {
        width: 300px;
        padding: 25px;
    }

    .frame-back {
        margin-top: -80px;
    }
}

@media (max-width: 900px){
    #footer .col-33:nth-child(3){
        width: 50%;
        margin: 0 25%;
        padding-top: 0;
    }

    #footer .col-33:not(:nth-child(3)){
        width: 50%;
        padding-top: 0;
        margin-top: 40px;
    }

    .frame-icon .row .col-:nth-child(-n+3) {
        width: calc(100% - 60px);
        margin-bottom: 20px;
    }

    .frame-icon .row .col- .ce-gallery {
        margin-right: 20px;
    }

    .frame-icon .row .col-:nth-child(-n+3) .ce-above .ce-bodytext{
        clear: none;
        margin-top: -20px;
        margin-left: 20px;
    }

    .frame-chronik{
        font-size: 16px;
    }

    .frame-chronik .col- {
        width: 250px;
    }

    .frame-mitarbeiter .ce-row {
        width: 49%;
    }
}

@media (max-width: 700px){
    #header .ce-bodytext{
        padding: 30px;
        font-size: 40px;
    }

    #header .ce-bodytext a {
        padding: 10px 20px;
        float: left;
    }

    .frame-intro .ce-gallery {
        top: -80px;
    }

    .tx_cn-columns .row .col-50,
    .tx_cn-columns .row .col-50 > div{
        float: left;
        clear: both;
        width: 100%;
        margin: 0 !important;
    }

    .tx_cn-columns .row .col-50 + .col-50{
        margin-top: 20px !important;
    }

    .frame-chronik .col- {
        width: 200px;
        padding: 10px;
        margin-bottom: -50px;
    }

    .frame-boxg .row > div:first-child  img {
        transform: translateY(0);
    }
}

@media (max-width: 650px){
    .frame-boxg .row > div:not(:first-child),
    .frame[class*='frame-box'] .text,
    .frame-boxk .row > div:not(:last-child) {
        width: 90% !important;
        overflow: hidden;
    }

    /* .frame-boxg .row > div:nth-child(2){
        margin-top: -60px;
    } */

    .frame-boxg .row > div:nth-child(3) {
        top: -5px;
    }

    .frame-boxg .row > div:nth-child(4){
        left: 10%;
    }

    .frame-boxg .row > div:nth-child(5) {
        left: 20px;
        top: -10px;
    }

    .frame-boxk .row > div:nth-child(2) {
        left: 10%;
        top: -50px;
        margin-bottom: -90px;
    }
    .frame-boxg .row > div {
        max-height: unset !important;
    }

    @media (hover:none){
        .frame-boxg .row > div:nth-child(1) .ce-bodytext{
            padding-bottom: 35px;
        }

        .frame-boxg .row > div:nth-child(4) .ce-bodytext{
            padding-bottom: 55px;
        }

        .frame-boxk .row > div:not(:last-child) .ce-bodytext{
            padding-bottom: 60px;
        }
    }
}

@media (max-width: 550px){
    #header .ce-bodytext {
        padding: 30px;
        font-size: 24px;
        z-index: 1;
        left: 10%;
        max-width: calc(80% - 60px);
        opacity: 1;
    }

    #header .ce-bodytext a{
        margin-top: 20px;
    }

    #footer .col-33,
    #footer .col-33 > div{
        width: 100% !important;
        float: left;
        clear: both;
        margin: 5px 0 !important;
        text-align: left;
    } 

    #footer .frame-type-menu_pages ul{
        text-align: left;
    }

    #footer .col-33:first-child p:last-child{
        margin-top: 0;
    }

    #footer .col-33:nth-child(3){
        width: 100%;
        max-width: 300px;
    }

    .frame-icon .row .col-:nth-child(4) .ce-gallery{
        margin-top: 20%;
    }

    .frame-icon .row .col-:nth-child(4) img{
        max-width: 80px;
    }

    .frame-icon .row .col-:nth-child(4)::before {
        width: 285px;
    }

    .frame-chronik .col-{
        width: calc(80% - 5px);
        float: left;
        margin: 10px 0;
    }

    .frame-chronik .col-:nth-child(even){
        text-align: right;
    }

    .frame-chronik .col-::after{
        display: none;
    }

    .frame-back {
        margin-top: -40px;
        margin-bottom: -20px;
    }

    @media (hover:none){
        .frame[class*='frame-box'] .bild .ce-bodytext{
            font-size: 16px;
        }

        .frame-boxg .row > div:nth-child(1) .ce-bodytext {
            padding-bottom: 30px;
        }
        
        .frame-boxk .row > div:not(:last-child) .ce-bodytext {
            padding-bottom: 45px;
        }

        .frame-boxg .row > div:nth-child(4) .ce-bodytext {
            padding-bottom: 50px;
        }
    }

    .frame-mitarbeiter .ce-row {
        width: 100%;
    }
}

@media (max-width: 499px){
    #header .ce-bodytext{
        opacity: 1;
    }

    @media (hover: hover) {
        .frame-ref .justified-gallery > a > .caption, 
        .justified-gallery > div > .caption, 
        .frame-ref .justified-gallery > figure > .caption {
            font-size: 18px;
        }
    }
}


@media (max-width: 400px){
   /*  #header .ce-bodytext{
        top: 30px;
    } */

    #oben .frame-type-textmedia img{
        height: 60px;
    }

    #header .ce-bodytext {
        font-size: 20px;
    }

    #header .ce-bodytext a{
        font-size: 16px;
    }

    .frame-boxk .row > div:nth-child(2) {
        top: -40px;
    }

    .frame-boxk .row div:nth-child(3) {
        top: 70px;
    }

    .frame-icon .row .col- .ce-gallery,
    .frame-icon .row .col- .ce-bodytext{
        float: left;
        clear: both;
        /* width: 100%; */
        margin: 0;
    }

    .frame-icon .row .col-:nth-child(4) .ce-gallery {
        background: #c7c7c7;
        margin: 0;
    }

    .frame-icon .row .col-:nth-child(4)::before{
        display: none;
    }
}