@media (max-width: 1650px) {
    #oben:where(.kjf-site-hdgh) {
        width: 90%;
        padding: 0 3% 0 7%;
    }

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

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

    #footer .tx_cn-multicontent:last-child .row {
        display: flex;
        justify-content: space-between;
    }

    #footer .tx_cn-multicontent:last-child .row>div {
        width: auto !important;
    }
}

@media (max-width: 1300px) {
    #oben:where(.kjf-site-hdgh) .image-embed-item {
        max-width: 120px;
        margin: 0;
    }

    #oben:where(.kjf-site-hdgh).scroll .image-embed-item {
        max-width: 100px;
        margin: 0;
    }

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


    .infoleiste {
        padding-top: 5px;
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-mobile {
        display: block;
        right: 5%;
        top: 45px;
    }

    #oben:where(.kjf-site-hdgh).scroll .cn-nav-mobile {
        top: 15px;
    }

    #oben:where(.kjf-site-hdgh) {
        width: 90%;
        padding: 0 5%;
    }

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

    :where(#oben.kjf-site-hdgh) .cn-nav-list {
        position: absolute;
        display: none;
        right: 0;
        top: 105px;
        background: #fff;
        width: 100%;
        border-bottom: 2px solid var(--akzent1);
        border-top: 2px solid var(--akzent1);
        max-height: calc(90vh - 100px);
        overflow-y: scroll;
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-list li:last-child .cn-nav-sublist {
        left: 0;
    }

    #oben:where(.kjf-site-hdgh).scroll .cn-nav-list {
        top: 90px;
        width: 100%;
    }

    #oben:where(.kjf-site-hdgh) .cn-nav-list>li {
        display: block;
        float: left;
        clear: both;
        width: 80%;
        padding: 0 0 0 0;
        margin: 0 10% !important;
        text-align: center;
        border-bottom: 1px solid var(--akzent1);
    }

    #oben:where(.kjf-site-hdgh) .cn-nav-list>li:last-child {
        border-bottom: none;
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-list>li > :where(.cn-nav-item-head) > a {
        float: left;
        clear: both;
        width: calc(100% - 30px);
        margin: 0;
        border: none;
        color: var(--akzent2);
    }

    /*     .hnavi > li > a::before{
        display: none;
    }
 */
    :where(#oben.kjf-site-hdgh) .cn-nav-list>li.ifsub > :where(.cn-nav-item-head) > a::after {
        content: '';
        background: url(/typo3conf/ext/cn_kunde_layout/Resources/Public/Images/Sites/hausdesgutenhirten/next.svg) center center/contain no-repeat;
        transform: rotate(90deg);
        display: inline-block;
        position: absolute;
        top: 19px;
        width: 20px;
        height: 20px;
        margin: 0 0 0 30px;
        transition: ease-out all 0.3s;
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-list>li.ifsub[data-toggled="on"] > :where(.cn-nav-item-head) > a::after {
        top: 26px;
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-list>li:hover > :where(.cn-nav-item-head) > a {
        color: var(--akzent1) !important;
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-list>li:hover {
        background: none;
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-list>li[data-toggled="on"] .cn-nav-sublist,
    :where(#oben.kjf-site-hdgh) .cn-nav-list>li.act .cn-nav-sublist {
        border-bottom: 5px solid #FFF;
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-list>li[data-toggled="on"],
    :where(#oben.kjf-site-hdgh) .cn-nav-list>li.act {
        border-bottom: 2px solid var(--akzent2);
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-list>li[data-toggled="on"] > :where(.cn-nav-item-head) > a,
    :where(#oben.kjf-site-hdgh) .cn-nav-list>li.act > :where(.cn-nav-item-head) > a {
        background: var(--akzent4);
        color: var(--weiss);
        /* border-top: 5px solid #FFF;
        border-bottom: 5px solid #FFF; */
        color: var(--akzent1) !important;
        margin: 5px 0;
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-list>li.act > :where(.cn-nav-item-head) > a {
        background: var(--akzent4);
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-list>li.ifsub[data-toggled="on"] > :where(.cn-nav-item-head) > a::after {
        transform: rotate(180deg);
    }

    #oben:where(.kjf-site-hdgh).scroll .cn-nav-list>li {
        padding-top: 0;
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-sublist {
        position: inherit;
        float: left;
        clear: both;
        width: 100%;
        margin: 0 0 0 0;
        box-shadow: none;
        background: var(--akzent4) !important;
        left: 0;
        padding: 0 0 0 0;
    }

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

    :where(#oben.kjf-site-hdgh) .cn-nav-sublist li {
        float: left;
        clear: both;
        width: 100%;
        padding: 0;
        text-align: center;
        margin: 0;
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-sublist li a {
        border: none;
        padding: 5px 0;
        width: 100%;
        margin: 0;
        /* color: var(--akzent1) !important; */
    }

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

    #header {
        margin-top: 107px;
    }

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

    .frame-kachel .row>div .ce-gallery {
        float: left;
        clear: both;
        width: 100%;
    }

    .frame-kachel .row>div {
        width: calc(49% - 2px);
        margin: 0 0.5% 10px 0.5% !important;
        float: left;
        clear: none;
    }

    .powermail_form {
        display: block;
    }

    .tx-powermail .powermail_fieldset {
        margin-bottom: 20px;
    }

    .news-listslider-view:not(.owl-carousel) .article {
        width: 49%;
    }
}

@media (max-width: 1200px) {
    #footer .tx_cn-multicontent:first-child .col-33:last-child ul {
        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 {
        background: var(--akzent1) !important;
    }

    #header .ce-bodytext {
        line-height: 1.4em;
    }

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

    #footer .tx_cn-multicontent:last-child .row {
        flex-wrap: wrap;
    }

    #footer .tx_cn-multicontent:last-child .row>div {
        width: 50% !important;
    }

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

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

@media (max-width: 1000px) {
    :where(#oben.kjf-site-hdgh) .cn-nav-sublist li.act a::before {
        display: none;
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-sublist li a {
        color: var(--akzent2);
    }

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

    .frame-kachel .row>div {
        width: calc(100% - 2px);
        margin: 0 0 10px 0 !important;
        float: left;
    }
}

@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-schmaler>.rahmen {
        padding: 0;
        width: 90%;
    }

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

@media (max-width: 900px) {
    .news .news-list-view .article .news-img-wrap {
        max-width: 400px;
    }
}

@media (max-width: 750px) {
    #footer .tx_cn-multicontent:last-child .row {
        display: block;
    }

    #footer .tx_cn-multicontent:last-child .row>div {
        width: 100% !important;
    }
}

@media (max-width: 749px) {
    .news-listslider-view:not(.owl-carousel) .article {
        width: 100%;
    }
}

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

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

    .powermail_fieldset.powermail_fieldset_5 .powermail_fieldwrap_type_check {
        width: 100%;
        margin-bottom: 0;
        margin-top: 20px;
    }

    .tx-powermail .powermail_fieldwrap[class*='powermail_fieldwrap_anzahl'] {
        width: 100%;

    }

}

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

    :where(#oben.kjf-site-hdgh) .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-hdgh) .cn-nav-list>li {
        width: 90%;
        margin: 0 5% !important;
    }
}

@media (max-width: 450px) {

    body,
    .frame-type-menu_pages ul.menu-mit-bildern li,
    #footer {
        font-size: 16px;
    }

    :where(#oben.kjf-site-hdgh) .cn-nav-list>li > :where(.cn-nav-item-head) > a {
        font-size: 18px;
    }

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

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

    .news .row .col-md-3 {
        width: 100%;
        font-size: 14px;
    }
}

@media (max-width: 350px) {
    .news .row .col-md-3 {
        font-size: 12px;
    }

    #inhaltsbereich .news .table th,
    #inhaltsbereich .news .table td {
        padding: 2px 9px;
    }
}