@media (max-width: 1600px) {
    #inhaltsbereich .rahmen, #footer .rahmen {
        width: 86%;
    }

    #karte .rahmen {
        width: 100%;
    }
}

@media (max-width: 1330px) {
    .owl-carousel .owl-nav button.owl-prev {
        left: -32px;
    }
    
    .owl-carousel .owl-nav button.owl-next {
        right: -32px;
    }

    #footerinhalt .frame-type-menu_subpages ul {
        margin: 0 20px 0 0;
    }
}

@media (max-width: 1200px) {
    .frame-bogenberg .ce-gallery {
        margin: 0 0 0 20px;
    }

    .frame-bogenberg +.frame-bogenberg .ce-gallery {
        margin: 0 20px 0 0;
    }

    .frame-bogenberg +.frame-bogenberg {
        margin-top: 30px;
    }
}

@media (max-width: 1100px) {
    .logo {
        display: none;
    }
    
    #header.mobile .logo {
        display: block;
    }

    .mob_button {
        display: block;
    }

    #header > .rahmen {
        display: block;
    }

    .navibereich, #hauptnavi ul, #hauptnavi ul li {        
        float: left;
        clear: both;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #hauptnavi ul {
        display: none;
        width: 100% !important;
        margin: 25px 0 0 0;
    }

    #hauptnavi ul li a {
        display: block;
        width: 96%;
        text-align: center;
        padding: 15px 2%;
        margin: 0 0 5px 0;
        background: var(--farbe2);
        /*box-shadow: inset 0 0 1000px 1000px rgba(0,0,0,0.3);*/
        color: var(--farbe4);
        position: relative;
    }

    #hauptnavi ul li a, #hauptnavi ul li.act a, #hauptnavi ul li a:hover {
        border-bottom: 0 !important;
    }

    #hauptnavi ul li.act a {
        border-bottom: 0;
        /*box-shadow: none;*/
        background: var(--farbe8);
    }

    .inhaltsheader {
        max-height: 400px;
        overflow: hidden;
    }

    .owl-carousel {
        text-align: center;
    }

    .owl-stage-outer {
        text-align: left;
    }

    .owl-carousel .owl-nav, .owl-carousel .owl-dots {
        position: static;
        margin: 0;
        padding: 0;
        display: inline-block;
        float: none;
        width: auto;
    }

    .owl-carousel .owl-dots {
        border-left: 1px solid rgba(0,0,0,0.3);
        padding-left: 6px;
        margin: 20px 0 0 5px;
    } 

    .owl-carousel .owl-nav button.owl-next, .owl-carousel .owl-nav button.owl-prev {
        position: static;
        margin: 0 4px;
        padding: 0;
        display: inline-block;
        float: none;
        background: url("../img/owl-left.png") left top no-repeat;
        width: 12px;
        height: 20px;
    }

    .owl-carousel .owl-nav button.owl-next {
        background: url("../img/owl-right.png") left top no-repeat;
    }

    .owl-carousel .owl-dots .owl-dot {
        top: -3px;
        position: relative;
    }

    .tx_cn-multicontent .row > div:not(:first-child) .tx-powermail {
        margin-top: 50px;
    }

    #footerinhalt .tx_cn-columns .row > div {
        width: auto;
        max-width: 45%;
    }

    #footerinhalt .tx_cn-columns .row > div > div {
        margin: 0 0 0 0 !important;
        width: 100% !important;
    }

    #footerinhalt .tx_cn-columns .row > div:first-child {
        margin-right: 10%;
    }

    #footerinhalt .tx_cn-columns .row > div:last-child {
        float: left;
        clear: both;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        padding-top: 20px;
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    #footerinhalt .tx_cn-columns .row > div:last-child > div {
        margin-left: 0 !important;
        width: 100% !important;
    }

    #footerinhalt .tx_cn-columns .row > div:last-child > div > .rahmen > .frame {
        display: inline-block;
        clear: none;
        width: auto;
    }
    
    #footerinhalt .tx_cn-columns .row > div:last-child > div > .rahmen > .frame ul {
        float: left;
        width: 100%;
        margin: 0;
    }
    
    #footerinhalt .tx_cn-columns .row > div:last-child > div > .rahmen > .frame ul li {
        text-align: left;
        margin: 0 10px 5px 0;
        min-width: 180px;
        display: inline-block;
        clear: none;
        float: left;
    }

    #footerinhalt .tx_cn-columns .row > div:last-child > div > .rahmen > .frame ul li a {
        width: 100%;
        float: left;
        clear: both;
    }

    #footerinhalt .tx_cn-columns .row > div:last-child > div > .rahmen > .frame ul li a span {
        display: block;
        float: left;
        clear: both;
        padding: 15px 5%;
        width: 90%;
        background: rgba(0,0,0,0.1);
    }
}

@media (max-width: 950px) {
    .frame-bogenberg .ce-gallery .ce-row img {
        height: 120px !important;
    }
}

@media (max-width: 850px) {
    .inhalt .tx_cn-columns .row > div {
        width: 100% !important;
    }

    .inhalt .tx_cn-columns .row > div > div {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 800px) {
    .frame-bogenberg .ce-gallery, .frame-bogenberg .ce-bodytext {
        width: 100%;
        clear: both;
        margin: 0 0 0 0 !important;
    }

    .frame-bogenberg .ce-gallery {
        margin-bottom: 20px !important;
    }

    .frame-bogenberg .ce-gallery .ce-row img {
        height: 220px !important;
        width: auto;
    }

    .frame-bogenberg .ce-bodytext > * {
        text-align: left;
    }

    .frame-bogenberg .ce-gallery .ce-row {
        margin: 0 15px 0 0;
    }
    
    #inhaltsbereich.onepageinhalt > .bereiche > .inhalt {
        padding: 0;
    }

    .frame-kontakt {
        padding: 70px 0 !important;
    }
}

@media (max-width: 720px) {
    #inhaltsbereich .rahmen, #footer .rahmen {
        width: 82%;
    }

    /*.news .article {
        margin-bottom: 40px;
    }

    .news .article .news-img-wrap {
        float: left;
        clear: both;
        width: 100%;
        margin: 3px 0 5px;
    }

    #inhaltsbereich .news .article .news-img-wrap img {
        max-width: 100%;
    }*/

    .news-list-container .news-img-wrap {
        width: 150px;
        height: 150px;
    }

    .news-list-container .news-content {
        width: calc(100% - 170px);
    }

    #karte .rahmen {
        width: 100%;
    }

    #footerinhalt .tx_cn-columns .row > div:last-child > div > .rahmen > .frame ul li {
        width: 100%;
    }

    #footerinhalt .tx_cn-columns .row > div:last-child > div > .rahmen > .frame {
        display: block;
        clear: both;
        width: 100%;
    }
    
    #footerinhalt .tx_cn-columns .row > div {
        width: 100%;
        max-width: 100%;
    }

    #footerinhalt .tx_cn-columns .row > div:first-child {
        margin-right: 0;
    }
    
    #footerinhalt .tx_cn-columns .row > div > div {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .mapsoverlay {
        padding: 0 5%;
    }

    .mapsoverlay button {
        display: inline-block;
        margin: 10px auto 5px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .frame-bogenberg .ce-gallery .ce-row img {
        height: 130px !important;
    }
}

@media (max-width: 550px) {
    .news-list-container .news-img-wrap {
        width: 100%;
        height: auto;
        margin: 0 0 0 0 !important;
        float: left;
        clear: both;
        text-align: center;
    }

    .news-list-container .news-img-wrap > * {
        display: inline-block !important;
        float: none !important;
    }

    .news-list-container .news-content {
        float: left;
        clear: both;
        width: 100%;
        margin-top: 20px;
        text-align: center;
    }

    #inhaltsbereich.onepageinhalt > .bereiche:first-child .inhaltsheader .ce-bodytext {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .frame-bogenberg .ce-gallery .ce-row img {
        height: 100px !important;
    }
}