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

   .infoleiste{
    right: 5%;
   }


    #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: 1500px){
    .frame-bildtext .ce-right .ce-bodytext {
        padding: 0 60px;
        width: calc(50% - 120px);
        margin: 0;
    }
}

@media (max-width: 1400px){
    :root{
        --hoben: 127px
    }
   #oben .image-embed-item {
        max-width: 200px;
    }
    .splitnavi .frame-type-textmedia {
        margin: 0 40px;
    }
}

@media (max-width: 1300px) {
    #oben {
        width: 98%;
        padding: 0 1%;
    }

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

@media (max-width: 1270px) {
    #oben.scroll .hnavi > li {
        padding-top: 0;
    }
}

@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;
        clear: both;
        width: 100%;
    }

    #footer .tx_cn-multicontent .row > div:last-child .ce-gallery {
        margin-top: 30px;
    }

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

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

    .news .news-list-view .article .content{
        margin-top: 0;
    }

    .news .news-list-view .article .news-img-wrap{
        margin-bottom: 20px;
    }

    .frame-feedback .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1150px){
    .splitnavi .frame-type-textmedia {
        margin: 0 20px;
    }

    ul.hnavi > li + li {
        margin-left: 0px;
    }
}

@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: 1050px){
    #oben{
        height: 185px;
        position: relative;
        transition: var(--standardtransition);
        width: 90%;
        padding: 0 5%;
    }

    #oben.scroll{
        position: fixed;
    }

    .frame-filter .ui-accordion-header .header {
        font-size: 20px;
    }

    .frame-filter .ui-accordion-header .subheader {
        font-size: 16px;
    }

    .splitnavi .frame-type-textmedia {
        position: absolute;
        left: calc(50% - 120px);
        top: 10px;
    }
    
    #oben .image-embed-item {
        max-width: 250px;
        margin: 0;
    }

    #oben.scroll {
        height: 105px;
    }

    #oben.scroll .splitnavi .frame-type-textmedia {
        left: calc(50% - 75px);
    }

    #oben.scroll .image-embed-item {
        max-width: 150px;
        margin: 0;
    }

    .infoleiste{
        margin: 0;
        padding: 0;
        right: 5%;
        top: 90px;
        height: auto;
        overflow: visible;
    }

    #oben.scroll .infoleiste .frame-default{
        display: none;
    }

    .infoleiste .ce-gallery .ce-row:not(:nth-child(2)) {
        display: none;
    }

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

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

    .frame-bewerben{
        display: block;
        top: 95px;
        transition: var(--standardtransition);
        z-index: -1;
    }

    #oben.scroll .frame-bewerben{
        top: 15px;
    }

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

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

    #oben.scroll label[for="mobnav"]{
        top: 20px;
    }

    .hnavi::before{
        display: none;
    }

    .splitnavi{
        flex-direction: column;
        margin-top: 185px;
        width: 600px;
        background: var(--weiss);
        float: right;
        margin-right: -5vw;
    }

    #oben.scroll .splitnavi{
        margin-top: 105px;
    }

    .splitnavi > .hauptnavi{
        width: 100%;
    }


    #mobnav:checked ~ ul.hnavi {
        display: block;
    }

    ul.hnavi {
        text-align: left;
        top: var(--hoben);
        left: 0;
        width: calc(100% - 40px) !important;
        padding: 0 20px;
        background: var(--navbg);
        max-height: calc(100vh - var(--hoben) - 80px);
        overflow: auto;
        margin-top: 0;
        position: inherit !important;
        border: none !important;
    }
    
    ul.hnavi > li,
    ul.hnavi > li:last-child {
        display: block;
        float: left;
        clear: both;
        margin: 0;
        padding: 5px 20px;
        width: calc(100% - 40px);
        background: var(--navbg);
        position: relative;
        border-top: 1px solid var(--blau);
        border-bottom: none !important;
	}

    ul.hnavi > li > a{
        text-align: left;
    }

    .hnavi > li.ifsub > a::after{
        display: none !important;
    }

    ul.hnavi > .ifsub > label > .navtoggle, ul.unavi > .ifsub > label > .navtoggle {
        right: 10px;
        top: -5px;
        padding: 10px;
    }

    ul.hnavi .navtoggle::before, ul.hnavi .navtoggle::after {
        top: 50%;
        left: calc(50% - 9px)
    }

    ul.hnavi .navtoggle::after{
        left: calc(50% - 2px)
    }

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

    ul.unavi li > a:hover,
    ul.unavi li:hover > a,
    ul.unavi li.act > a {
        color: var(--blau) !important;
        background: var(--weiss) !important;
    }
    
    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: initial;
        float: left;
        clear: both;
        width: 90%;
        margin: 0 0 0 10% !important;
        padding: 0 !important;
    }

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

    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 !important;
    }

    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.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: 0;
    }

    .news-list3-view .article .news-content{
        width: 100%;
        margin: 20px 0 0 0 ;
    }
}

@media (max-width: 1000px) {
    .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;
    }

    .frame-farbkacheln .row > div .ce-bodytext{
        text-align: center;
    }

    .frame-farbkacheln .row > div .ce-gallery{
        margin: 0 !important;
    }

    .news.news-single .article .news-img-wrap iframe, .news.news-single .article .news-img-wrap img {
        height: max-content;
        max-width: 100%;
        /* width: auto; */
    }

    header{
        margin-bottom: 0;
    }

    .news .news-list-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@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% !important;
        margin: 5px 0;
        padding: 0;
        position: inherit;
    }

    /* #inhaltsbereich > .frame-meldungen {
        margin: -40px 0 0;
    } */

    #inhaltsbereich > .frame > .rahmen, #footer > .frame > .rahmen {
        margin: 0 5%;
        float: left;
        width: 90%;
    }

    #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.frame-bildkacheln .ce-textpic{
        display: block !important;
    }
}

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

    #header{
        padding-bottom: 0;
    }

    #header .ce-gallery{
        max-width: 100%;
    }

    #header .ce-bodytext{
        display: block;
        background: var(--rot);
        position: inherit;
        width: calc(100% - 20px);
        border-radius: 0;
        bottom: 0;
        padding: 10px;
        right: 0;
        height: auto;
        font-size: 32px;
        min-width: inherit;
    }

    #header .ce-bodytext a.more{
        position: relative;
        bottom: 0;
        left: calc(50% - 70px);
        float: left;
    }

    #inhaltsbereich{
        margin-top: 0;
    }

    .frame-meldungen{
        margin-top: 0 !important;
    }

    .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;
    }

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

@media (max-width: 800px){
    h2.folgt, h3 {
        font-size: 22px;
    }

    .frame-farbkacheln .row {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-row-gap: 20px;
        justify-items: center;
    }

    .frame-farbkacheln .row > div{
        max-width: 400px;
    }
}

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

@media (max-width: 700px){
    body {
        font-size: 16px;
    }

    #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 .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%;
    }

    .frame-feedback .row {
        display: flex;
        flex-direction: column;
    }

    .news .news-list-view{
        display: flex;
        flex-direction: column;
    }

    .news .news-list-view .article{
        max-width: 500px;
        margin: 0 auto !important;
    }
}

@media (max-width: 600px){

    .splitnavi{
        width: 100vw;
    }

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

    .splitnavi .frame-type-textmedia,
    #oben.scroll .splitnavi .frame-type-textmedia {
        left: 0;
    }

    .mob_button {
        top: 23px;
    }

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

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

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

    #inhaltsbereich.sub > .frame.breadcrumb {
        margin-top: 0px;
        margin-bottom: 10px;
    }

    .tx-powermail .powermail_fieldset {
        margin: 30px 0 0 0;
    }

    .tx-powermail .powermail_fieldwrap,
    .tx-powermail .powermail_fieldwrap.layout1,
    .tx-powermail .powermail_fieldwrap.layout1 + .powermail_fieldwrap.layout1,
    .tx-powermail .powermail_fieldwrap.layout2,
    .tx-powermail .powermail_fieldwrap.layout1 + .powermail_fieldwrap {
        width: 100%;
        display: block;
        margin: 0 0 20px 0 !important;
        max-height: initial;
    }
}

@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 .row > div{
        width: 48%;
    }

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

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

    .tx-powermail .powermail_field{
        font-size: 14px;
    }

    .tx-powermail .powermail_field > input[type="file"]::file-selector-button {
        padding: 5px;
        background: var(--gruen);
        font-size: 14px;
    }

    .tx-powermail .powermail_fieldwrap_type_file .powermail_field::before,
    .tx-powermail .powermail_fieldwrap_type_file .powermail_field::after{
        display: none;
    }

    .tx-powermail fieldset .powermail_fieldwrap .powermail_field > input[type="file"]{
        float: left;
        clear: both;
        width: 100%;
    }
    .tx-powermail fieldset .powermail_fieldwrap_type_file .powermail_field label{
        float: left;
        clear: both;
        width: 100%;
        font-size: 14px;
    }
}

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

    #oben{
        height: 138px;
    }

    #oben .image-embed-item {
        max-width: 200px;
    }

    label[for="mobnav"] .mob_button{
        right: -40px
    }

    .frame-bewerben {
        top: 48px;
    }

    .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;
    }
}