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

    #oben:where(.kjf-site-papst).scroll .cn-nav-list {
        float: right;
        width: calc(100% - 20px);
    }

    #oben:where(.kjf-site-papst).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:where(.kjf-site-papst).scroll .cn-nav-list>li:first-of-type {
        margin-left: 20px;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-list>li > :where(.cn-nav-item-head) > 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:where(.kjf-site-papst) .image-embed-item,
    #oben:where(.kjf-site-papst).scroll .image-embed-item {
        max-width: 200px;
        margin: 0;
    }

    #oben:where(.kjf-site-papst).scroll>.frame-default {
        margin-left: 0%;
        margin-bottom: 0px;
    }

    .infoleiste,
    #oben:where(.kjf-site-papst).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:where(.kjf-site-papst) {
        width: 90%;
        padding: 0 5%;
    }

    #oben:where(.kjf-site-papst)>.frame-default .ce-gallery {
        margin: 5px 0;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-list {
        display: none;
    }

    

    :where(#oben.kjf-site-papst) .cn-nav-list::before {
        display: none;
    }

    

    #oben:where(.kjf-site-papst).scroll .cn-nav-list>li:first-of-type {
        margin: 0;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-list>li,
    :where(#oben.kjf-site-papst) ul.cn-nav-list>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;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-list>li+li {
        border-top: 1px solid var(--akzent1) !important;
        border-left: none;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-list>.ifsub:hover>label>.cn-nav-arrow {
        transform: rotate(90deg);
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-list>li > :where(.cn-nav-item-head) > a {
        width: 100%;
        margin-left: 0;
        text-align: left;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-sublist li > :where(.cn-nav-item-head) > a:hover,
    :where(#oben.kjf-site-papst) ul.cn-nav-sublist li:hover > :where(.cn-nav-item-head) > a,
    :where(#oben.kjf-site-papst) ul.cn-nav-sublist li.act > :where(.cn-nav-item-head) > a {
        color: var(--akzent1);
        background: var(--weiss);
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-list>li > :where(.cn-nav-item-head) > a {
        display: block;
        padding: 12px 0;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-list>.ifsub>label {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
        z-index: 1;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-list li.ifsub:hover>.cn-nav-panel {
        display: none;
    }

    :where(#oben.kjf-site-papst) .cn-nav-panel {
        position: static;
        float: left;
        clear: both;
        width: 100%;
        margin: 10px 0 !important;
        padding: 0 !important;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-sublist {
        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;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-sublist::after {
        display: none;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-sublist>li,
    :where(#oben.kjf-site-papst) ul.cn-nav-sublist>li:first-child {
        float: left;
        clear: both;
        width: 100%;
        text-align: left;
        margin: 0;
        padding: 0;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-sublist li+li {
        border: none
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-list>li:hover > :where(.cn-nav-item-head) > a::before,
    :where(#oben.kjf-site-papst) ul.cn-nav-list>li.act > :where(.cn-nav-item-head) > a::before,
    :where(#oben.kjf-site-papst) ul.cn-nav-sublist li:hover a::before {
        display: none;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-list>li:hover .cn-nav-sublist a,
    :where(#oben.kjf-site-papst) ul.cn-nav-list>li.act .cn-nav-sublist a {
        background: var(--weiss);
        color: var(--akzent1) !important;
    }

    :where(#oben.kjf-site-papst) ul.cn-nav-sublist>li > :where(.cn-nav-item-head) > a {
        border: none;
        padding: 10px 0;
        width: 100%;
        margin: 0;
    }

    

    #header,
    #oben:where(.kjf-site-papst).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;
    }

    #footer .tx_cn-multicontent:nth-child(2) .row>div:last-child .ce-bodytext {
        float: left;
        width: 100%;
    }
}

@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:where(.kjf-site-papst) ul.cn-nav-list>li {
        margin: 0 !important;
        padding: 0 20px !important;
        /* width: calc(100% - 40px); */
        width: 100%;
        /* border-bottom: none !important; */
    }

    :where(#oben.kjf-site-papst) .cn-nav-sublist li.act a::before {
        display: none;
    }

    :where(#oben.kjf-site-papst) .cn-nav-list>li[data-toggled="on"] > :where(.cn-nav-item-head) > a,
    :where(#oben.kjf-site-papst) .cn-nav-list>li.act > :where(.cn-nav-item-head) > a {
        border: none;
    }

    :where(#oben.kjf-site-papst) .cn-nav-list>li > :where(.cn-nav-item-head) > a,
    :where(#oben.kjf-site-papst) .cn-nav-sublist 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%;
    }

    #footer>.frame-type-textmedia .ce-gallery {
        gap: 0;
        flex-direction: column;
    }

}

@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:where(.kjf-site-papst) .infoleiste {
        display: none;
    }

    :where(#oben.kjf-site-papst) .cn-nav-mobile {
        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:where(.kjf-site-papst) .cn-nav-list>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;
    }

    :where(#oben.kjf-site-papst) .cn-nav-list>li > :where(.cn-nav-item-head) > 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;
    }
}