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

    #oben.scroll .hnavi{
        float: right;
        width: calc(100% - 20px);
    }

    #oben.scroll > .frame-default {
        margin-left: -7%;
        margin-bottom: -80px;
    }

    #inhaltsbereich.sub {
        margin-top: 60px;
    }

    #inhaltsbereich header,
    #inhaltsbereich .ce-bodytext {
        hyphens: auto;
        -webkit-hyphens: auto;
        hyphenate-limit-chars: 10 5 5;
    }

    @supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {
        #header.sub .ce-bodytext, h1, h2, h3, h4, h5{
            /* Safari-spezifische Regeln */
            hyphens: auto;
            -webkit-hyphens: auto; 
            -webkit-hyphenate-limit-before: 4;
            -webkit-hyphenate-limit-after: 5;
        }
    }

    @media not all and (min-resolution: 0.001dpcm) {
        #header.sub .ce-bodytext, h1, h2, h3, h4, h5{
            hyphens: auto;
            -webkit-hyphens: auto; 
            -webkit-hyphenate-limit-before: 4;
            -webkit-hyphenate-limit-after: 5;
        }
    }   
}

@media (max-width: 1480px){
    #oben.scroll .hnavi > li:first-of-type {
        margin-left: 20px;
    }

    ul.hnavi > li > a {
        padding: 20px 5px 5px;
        width: calc(100% - 10px);
    }
}

@media (max-width: 1330px){
    .news-single .text{
        margin-top: 20px;
        float: left;
    }
}

@media (max-width: 1300px) {
    #oben .image-embed-item,
    #oben.scroll .image-embed-item {
        max-width: 200px;
        margin: 0;
    }

    #oben.scroll > .frame-default {
        margin-left: 0%;
        margin-bottom: 0px;
    }

    .infoleiste,
    #oben.scroll .infoleiste{
        height: auto;
        padding-top: 30px;
        margin-right: 110px;
    }

    .infoleiste .ce-gallery,
    .infoleiste .ce-gallery .ce-row{
        margin-bottom: 0;
    }

    .infoleiste .ce-gallery .ce-row + .ce-row {
        margin-left: 40px;
    }

    /* .mob_button{
        display: block;
        right: 5%;
        top: 25px;
    } */

    #oben{
        width: 90%;
        padding: 0 5%;
    }

    #oben > .frame-default .ce-gallery {
        margin: 5px 0;
    }

     ul.hnavi {
        display: none;
    }
    
    label[for="mobnav"] .mob_button {
        display: block;
    }

    .hnavi::before{
        display: none;
    }
    
    #mobnav:checked ~ ul.hnavi {
        display: block;
        text-align: left;
        position: absolute;
        top: var(--hoben);
        right: 0;
        width: calc(100% - 40px);
        max-width: 800px;
        padding: 30px 20px 0px 20px;
        background: var(--navbg);
        max-height: calc(100vh - var(--hoben) - 80px);
        overflow: auto;
        margin-top: 0;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
        border: none !important;
    }

    #oben.scroll .hnavi > li:first-of-type{
        margin: 0;
    }
    
    ul.hnavi > li,
    ul.hnavi > li:last-child {
        display: block;
        float: left;
        clear: both;
        margin: 0;
        padding: 0 20px;
        width: calc(100% - 40px);
        background: var(--navbg);
        position: relative;
        border-bottom: 3px solid var(--weiss) !important;
	}

    ul.hnavi > li + li {
        border-top: 1px solid var(--akzent1) !important;
        border-left: none;
    }

    ul.hnavi > .ifsub:hover > label > .navtoggle{
        transform: rotate(90deg);
    }

    ul.hnavi > li > a {
        width: 100%;
        margin-left: 0;
        text-align: left;
    }

    ul.unavi li > a:hover,
    ul.unavi li:hover > a,
    ul.unavi li.act > a {
        color: var(--akzent1);
        background: var(--weiss);
    }
    
    ul.hnavi > li > a {
        display: block;
        padding: 12px 0;
    }
    
    ul.hnavi > .ifsub > label {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
        z-index: 1;
    }
    
    ul.hnavi li.ifsub:hover > .klappnavi {
        display: none;
    }

    .klappnavi {
        position: static;
        float: left;
        clear: both;
        width: 100%;
        margin: 10px 0 !important;
        padding: 0 !important;
    }

    ul.unavi{
        position: inherit;
        float: left;
        clear: both;
        width: calc(100% - 10px) !important;
        margin: 0;
        box-shadow: none;
        left: 0;
        padding: 0 0 0 10px !important;
        border: none;
        min-width: inherit;
        background: var(--weiss) !important;
        border: none !important;
    }

    ul.unavi::after {
        display: none;
    }

    ul.unavi > li,
    ul.unavi > li:first-child {
        float: left;
        clear: both;
        width: 100%;
        text-align: left;
        margin: 0;
        padding: 0;
    }

    ul.unavi li + li{
        border: none
    }

    ul.hnavi > li:hover > a::before,
    ul.hnavi > li.act > a::before,
    ul.unavi li:hover a::before{
        display: none;
    }

    ul.hnavi > li:hover .unavi a,
    ul.hnavi > li.act .unavi a{
        background: var(--weiss);
        color: var(--akzent1) !important;
    }
    
    ul.unavi > li > a {
        border: none;
        padding: 10px 0;
        width: 100%;
        margin: 0;
    }
    
    .hnavi li.ifsub input[name="togglesub"]:checked + a + label + .klappnavi {
      display: block;
    }

    #header,
    #oben.scroll + #header{
       margin-top: 102px;
    }

    .news .news-list2-view .article{
        width: calc(49% - 40px);
    }

    .news-single .news-text-wrap, .news-single .teaser-text,
    #inhaltsbereich > .frame-default.frame-type-textmedia header,
    #inhaltsbereich > .frame-default.frame-type-textmedia .ce-bodytext,
    #inhaltsbereich > .frame-default.tx_cn-multicontent .cn_multicontent_teaser,
    .news.news-single .article .news-img-wrap,
    .news.news-single .zusatzcontent{
        width: 100%;
        float: left;
        max-width: 100%;
    }

    .news.news-single .article .news-img-wrap{
        display: grid;
        grid-template-columns: auto auto auto;
        gap: 10px;
}
}

@media (max-width: 1200px){
    #footer .tx_cn-multicontent:first-child .col-33:last-child ul{
        float: left;
    }

    #footer .tx_cn-multicontent:last-child .row > div:last-child .ce-bodytext{
        float: left;
    }

    .news .news-list-view .article{
        width: 48%;
        margin: 0 1% 20px !important;
    }
}

@media (max-width: 1100px){
    #header .ce-bodytext::before,
    #header .ce-bodytext::after {
        display: none !important;
    }

    #header .ce-bodytext{
        left: inherit;
        width: inherit;
        bottom: -130px;
        padding: 30px;
        font-size: 40px;
    }
    
    #header .ce-bodytext {
        line-height: 1.4em;
    }

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

    #inhaltsbereich > .frame:not(.frame-schraeg, .frame-bildkacheln) .ce-textpic .ce-gallery{
        max-width: 50%;
    }

    .news .news-list-view .article .news-img-wrap{
        width: 100%;
    }

    .news .news-list-view .article .content{
        width: 96%;
    }
}

@media (max-width: 1000px) {
    #oben ul.hnavi > li{
        margin: 0 !important;
        padding: 0 20px !important;
        width: calc(100% - 40px);
        /* border-bottom: none !important; */
    }

    .unavi li.act a::before {
        display: none;
    }

    .hnavi > li[data-toggled="on"] > a, .hnavi > li.act > a{
        border: none;
    }

    .hnavi > li > a,
    .unavi li a {
        color: var(--akzent1);
    }

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

    .frame-bildkacheln .ce-bodytext {
        border-top: 5px solid var(--weiss);
        padding: 20px;
        font-size: 20px;
    }

    .news.news-single .article .news-img-wrap{
        grid-template-columns: auto auto;
    }

    .news.news-single .article .news-img-wrap .outer{
        width: 100%;
    }

    .news.news-single .article .news-img-wrap iframe,
    .news.news-single .article .news-img-wrap img{
        width: 100%;
    }

}

@media (max-width: 991px) {
    #inhaltsbereich > .frame-type-textmedia .ce-gallery,
    #inhaltsbereich > .frame-type-textmedia .ce-bodytext {
        float: left;
        clear: both;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        position: inherit;
    }

    #inhaltsbereich > .frame:not(.frame-schraeg, .frame-bildkacheln) .ce-textpic .ce-gallery {
        max-width: 100%;
        margin-bottom: 20px;
    }

    #inhaltsbereich > .frame-bildunten .ce-textpic{
        display: flex; 
        flex-direction: column-reverse;
    }

    #inhaltsbereich .frame-schmaler > .rahmen{
        padding: 0;
        width: 90%;
    }

    #inhaltsbereich > .frame:last-child{
        margin-bottom: 0;
    }

    #inhaltsbereich > .frame-type-div > .rahmen{
        margin: 0;
    }

    /* #inhaltsbereich .frame:not(.frame-schraeg, .frame-bildkacheln) .ce-textpic{
        display: flex;
        flex-direction: column-reverse;
    } */

    #inhaltsbereich .frame-type-textmedia header + .ce-gallery{
        margin-bottom: 20px;
    }

    #inhaltsbereich .frame.frame-bildkacheln .ce-textpic{
        display: block !important;
    }
}

@media (max-width: 900px){
    .infoleiste{
        display: none;
    }

    #header .ce-bodytext{
        display: block;
        background-color: var(--akzent2);
        position: relative;
        width: calc(100% - 20px);
        border-radius: 0;
        bottom: 0;
        padding: 10px;
        right: 0;
    }

    .news.news-single .zusatzcontent > div{
        width: 100%;
    }

    .news .news-list-view .article .news-img-wrap {
        max-width: 400px;
    }

    #footer .tx_cn-multicontent:nth-child(2) .row > div:last-child ul li{
        margin: 0;
    }

    #footer .tx_cn-multicontent:nth-child(2) .row > div:last-child ul li a{
        float: none;
    }
}

@media (max-width: 800px){
    h2.folgt, h3 {
    font-size: 22px;
}
}
@media (max-width: 750px){
    .frame-bildkacheln .ce-bodytext {
        padding: 20px 5px;
        font-size: 16px;
    }
}

@media (max-width: 700px){
    /* #inhaltsbereich .ce-bodytext a.link-external, #inhaltsbereich .ce-bodytext a.more {
        padding: 5px 15px;
    } */

    #inhaltsbereich > .frame:not(.breadcrumb) + .frame{
        margin-top: 60px;
    }

    .frame-type-menu_pages {
        background: var(--akzent3);
        padding: 50px 0;
    }

   .frame-type-menu_pages header{
        width: 100%;
        margin: 0;
   } 

   .frame-type-menu_pages ul.menu-mit-bildern {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

   .frame-type-menu_pages ul.menu-mit-bildern li{
        width: calc(50% - 10px);
        margin: 0 0 20px 0 !important;
        font-size: 18px;
   }

   .frame-type-menu_pages ul.menu-mit-bildern li .box {
        padding: 15px 15px 25px;
        width: calc(100% - 30px);
    }

    .frame-bildkacheln .tx_cn-columns .row > div{
        margin-left: 1.3%;
        margin-bottom: 10px;
    }

    .news .news-list-view .article{
        width: 100%;
        margin: 0 0 20px !important;
    }

    .news .news-list-view .article .news-img-wrap{
        width: 100%;
        max-width: 100%;
    }

    .news.news-single .article .news-img-wrap{
        display: block;
    }
}

@media (max-width: 600px){
    #oben .infoleiste{
        display: none;
    }

    .mob_button {
        top: 23px;
    }

    #inhaltsbereich > .frame.breadcrumb {
        margin: 10px 0 10px;
    }

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

@media (max-width: 500px){
    #header .ce-bodytext{
        font-size: 24px;
    }

    #oben .hnavi > li {
        width: 90%;
        margin: 0 5% !important;
    }

    #inhaltsbereich > .frame:not(.breadcrumb) + .frame{
        margin-top: 30px;
    }

    .frame-bildkacheln .tx_cn-columns .row > div{
        width: 48%;
    }

    .frame-bildkacheln .tx_cn-columns .row > div:nth-child(odd){
        margin: 0 1% 10px 0;
    }

    .frame-bildkacheln .tx_cn-columns .row > div:nth-child(even){
        margin: 0 0 10px 1%;
    }
}

@media (max-width: 450px){
    body,
    .frame-type-menu_pages ul.menu-mit-bildern li,
    #footer{
        font-size: 16px;
    }

    .hnavi > li > a{
        font-size: 18px;
    }
    h1, h2 {
        font-size: 24px;
    }
    #header .ce-bodytext {
        font-size: 20px;
    }

    #inhaltsbereich .table th,
    #inhaltsbereich .table tr,
    #inhaltsbereich .table td{
        float: left;
        clear: both;
        width: 100%;
        border: none;
        padding: 0;
    }

     #inhaltsbereich .table td:first-child{
        font-weight: 700;
     }

    #inhaltsbereich .table tr{
        margin-bottom: 25px;
    }
}