@media (max-width: 1330px) {
    #teasertext  {
        max-width: 50%;
    }

    #datum {
        bottom: 30px;
    }

    #inhaltsbereich .frame-type-shortcut.frame-layout-4 > .rahmen {
        width: 1080px;
        margin-left: -540px;
    }
}

@media (max-width: 1300px) {
    #inhaltsbereich > .link-impressionen {
        bottom: 50px;
    }
}

@media (max-width: 1100px) {

    #header::before {
        height: 100px;
    }

	#logo {
        width: 30%;
        height: auto;
    }

    #logo img,
    #datum img {
        width: 100%;
        height: auto;
    }

    #datum {
        width: 40%;
        height: auto;
    }

    #inhaltsbereich > .frame > .rahmen, .quicklinks > .frame,
    #inhaltsbereich .frame-type-shortcut.frame-layout-4 > .rahmen {
        width: 90%;
        position: relative;
        left: auto;
        margin-left: 0;
        padding: 0 5%;
    }

    #inhaltsbereich .frame-type-shortcut.frame-layout-4 > .rahmen > .frame {
        width: 30%;
        margin: 10px 10%;
    }

    #footer {
        width: 90%;
        padding: 0 5% 30px;
    }

    .footerrahmen {
        width: 100%;
        left: auto;
        margin-left: 0;
    }

    #inhaltsbereich > .frame-type-header > .rahmen > header {
        margin-left: -6%;
    }

    #inhaltsbereich > .frame-type-header.ce-headline-right > .rahmen > header {
        margin-left: 0;
        margin-right: -6%;
    }

    #inhaltsbereich > .frame-type-header > .rahmen {
        top: -30px;
    }

    /* .veranstalter_logo {
        left: 5% !important;
        width: auto !important;
        max-width: 28%;
        padding: 0 1%;
    } */

    .veranstalter_adresse {
        /* right: 5% !important; */
        width: auto !important;
        max-width: 40%;
    }
}

@media (max-width: 1050px) {
    
    #navi > ul > li {
        margin: 0 0 0 15px;
    }

    .veranstalter_unternehmen .innovationen {
        width: 52% !important;
    }

    .veranstalter_unternehmen .veranstalter_imagefilm {
        width: 46% !important;
    }

    .mapsoverlay button, #cookie_einstellungen {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .mob_button {
        display: block; 
    }   

    .mobnavvisible {
        position: fixed;
    }

    #navi {
        /* display: none;  */
        right: -330px;
        top: 0;
        /* background: rgba(255,255,255,0.8); */
        background: rgba(14, 28, 65, 0.95);
        padding: 100px 0 50px;
        box-shadow: 0 0 50px rgba(0,0,0,0.5);
        z-index: 9;
        position: fixed;
        height: 100% !important;
    }

    #navi > ul {
        width: 100%;
        max-width: 300px;
    }

    #navi > ul > li {
        width: 80%;
        margin: 0 10%;
        border-bottom: 0px;
    }

    #navi > ul > li.act, #navi > ul > li:hover { 
        border-bottom: 0px;
    }

    #navi > ul > li.act { 
        background: url(../images/aufzaehlung_weiss.png) left 17px no-repeat;
        padding: 0 0 0 7%;
        width: 73%;
    }

    #navi > ul > li > a {
        padding: 15px 0;
    }

    /* .buslinien.ja {
        max-width: none !important;
        width: 93% !important;
        border-left: none; 
        margin-left: 0;
        margin-top: 10px;
        padding-left: 7% !important;
        background-position-x: left !important;
    } */

    .veranstalter_logo img {
        width: 100%;
        height: auto;
    }

    /* .veranstalter_unternehmen .veranstalter_imagefilm iframe {
        height: 160px !important;
    } */

}

@media (max-width: 980px) {
    #header > .frame .image {
        text-align: center; 
    }

    #header > .frame img {
        width: 80%;
        height: auto;
        display: inline-block;
        padding-top: 25px;
    }

    #footer::before {
        height: 60px;
        top: -60px;
    }

    #inhaltsbereich > .frame:last-child {
        padding-bottom: 100px !important;
    }

    /* .veranstalter_organisatorisches {
        width: 63% !important;
        padding: 10px 2% 10px 35% !important;
    } */

    #inhaltsbereich .tx_cn-columns .col-40,
    #inhaltsbereich .tx_cn-columns .col-60 {
        width: 100%;
        margin-top: 30px;
    }

    #inhaltsbereich .tx_cn-columns .col-40 > .frame,
    #inhaltsbereich .tx_cn-columns .col-60 > .frame {
        margin: 0;
    }

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

    h2 span {
        font-size: 40px;
    }

}

@media (max-width: 920px) {
    #unterseite #header {
        height: 300px;
    }

    
    /* #inhaltsbereich > .frame-type-header + .frame {
        padding: 30px 0 120px;
    } */

    .footerrahmen .col-66 img {
        height: 40px;
        width: auto;
    }
    .footerrahmen .col-33 img {
        height: 60px;
        width: auto;
    }

    .veranstalter_unternehmen .innovationen {
        width: 50% !important;
    }
    
    .veranstalter_unternehmen .veranstalter_imagefilm {
        width: 48% !important;
    }
}

@media (max-width: 880px) {
    .veranstalter_logo {
        top: -20px !important;
    }

    #inhaltsbereich .frame-type-shortcut.frame-layout-4 > .rahmen > .frame {
        width: 40%;
        margin: 10px 5%;
    }
}

@media (max-width: 820px) {

    #header::before {
        height: 70px;
    }

    #inhaltsbereich > .frame {
        padding: 80px 0 80px;
    }

    #inhaltsbereich > .frame-type-header, #inhaltsbereich > .link-impressionen {
        padding: 0px;
    }

    .news .article {
        width: 47.5%;
    }
    
    .news-list-container .article {
        padding: 20px 5%;
        width: 37.5%;
    }

    .news .article, .news .article:nth-child(1), .news .article:nth-child(2), .news .article:nth-child(3) {
        margin: 50px 5% 0 0;
    }

    .news .article:nth-child(1), .news .article:nth-child(2) {
        margin-top: 0;
    }

    .news .article:nth-child(even) {
        margin-right: 0;
    }

    .news #zuruebersicht {
        right: 5%;
    }

    h1, h2 {
        font-size: 40px;
        margin-bottom: 30px;
    }

    #inhaltsbereich > .frame-type-header:first-child > .rahmen > header {
        margin-bottom: 30px;
    }

    h2 span {
        font-size: 32px;
    }


    #inhaltsbereich > .link-impressionen {
        bottom: 30px;
    }

    .veranstalter_adresse {
        max-width: 55% !important;
    }

    .veranstalter_logo {
        margin-top: -80px !important;
    }

    .veranstalter_adresse, .veranstalter_logo {
        margin-bottom: 30px !important;
    }

    /* .veranstalter_unternehmen .veranstalter_imagefilm iframe {
        height: 140px !important;
    } */

    .popup_banner {
        top: 50px;
        left: 2%;
        margin-left: 0px;
        margin-top: 0px;
        width: 96%;
        height: auto;
    }

    #footer .tx_cn-columns > .row > div:first-child .ce-gallery[data-ce-columns="4"] .ce-column {
        width: calc(50% - 50px);
        margin-right: 50px;
        min-height: 115px;
        width: 35%;
        margin-right: 15%;
    }

    .liste_veranstalter .box_veranstalter:nth-child(3) {
        margin-right: 1% !important;
    }

    .liste_veranstalter .box_veranstalter {
        width: 48% !important;
        margin: 1% !important;
    }    

    #startseite .ce-gallery[data-ce-columns="3"] .ce-column {
        width: calc(33.3% - 20px);
    }


}

@media (max-width: 720px) {
    
    #header {
        padding-bottom: 50px;
    }

    /* #header > .frame .image {
        text-align: left;
    } */

    #unterseite #header > .default.frame-type-textmedia {
        margin-top: -100px;
    }

    #teasertext {
        font-size: 14px;
    }

    #teasertext h3 {
        font-size: 22px;
        margin: 0 0 20px 0;
    }

    #datum {
        width: 30%;
        bottom: -120px;
    }

    #inhaltsbereich > :first-child {
        padding-bottom: 30px;
    }

    #inhaltsbereich .tx_cn-columns .col-50 {
        width: 100%;
        margin-top: 30px;
    }

    #inhaltsbereich .tx_cn-columns .col-50:first-child {
        margin-top: 0px;
    }

    #inhaltsbereich .tx_cn-columns[data-cols="2"] .row > div:nth-child(even) > div, 
    #inhaltsbereich .tx_cn-columns[data-cols="2"] .row > div:nth-child(odd) > div {
        margin: 0;
        width: 100%;
    }

    /* #inhaltsbereich > .frame-type-header + .frame {
        padding: 20px 0 120px;
    } */

    .veranstalter_logo, .veranstalter_adresse {
        margin-bottom: 30px !important;
    }

    .veranstalter_organisatorisches {
        width: 96% !important;
        padding: 10px 2% 10px 2% !important;
    }

    .veranstalter_logo {
        width: 35% !important;
    }

    .quicklinks li {
        border: none;
        margin: 5px 5px 5px 0;
        padding: 0;
        clear: both;
    }

    .veranstalter_unternehmen .veranstalter_imagefilm, 
    .veranstalter_unternehmen .innovationen {
        width: 100% !important;
    }

    #startseite .frame-type-shortcut .frame-type-html {
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    #startseite .frame-type-shortcut .frame-type-html:nth-child(2n) {
        margin: 0 0 20px 0;
    }
    h1, h2 {
        font-size: 36px;
    }

    h2 span {
        font-size: 28px;
    }
}

@media (max-width: 620px) {

    #stama {
        width: 130px;
    }

    #stama img {
        width: 100%;
        height: auto;
    }

    #navi {
        padding-top: 80px;
    }

    .mob_button {
        top: 90px;
    }

    .news-latest-container {
        padding-bottom: 120px;
    }

    .news .article, .news .article:nth-child(2), .news .article:nth-child(3) {
        width: 100%;
        margin: 50px 0 0 0;
    }

    .news-list-container .article, .news-list-container .article:nth-child(2), .news-list-container .article:nth-child(3) {
        width: 90%;
        margin: 20px 0 0 0;
    }

    .news .article:nth-child(1) {
        margin-top: 0;
    }

    .news #zuruebersicht img {
        width: 200px;
        height: auto;
    }

    .tx-mmc-directmail-subscription .form-row label {
        width: 100%;
        padding-top: 0;
    }   
    
    .tx-mmc-directmail-subscription .form-row select {
        width: 100%;
    }

    .tx-mmc-directmail-subscription .form-row input {
        width: 96%;
    }

    .veranstalter_logo {
        float: right !important;
        margin-top: -120px !important;
    }
    
    .veranstalter_adresse {
        width: 96% !important;
        max-width: none !important;
        margin-top: -20px !important;
    }

    /* .veranstalter_unternehmen .veranstalter_imagefilm, 
    .veranstalter_unternehmen .innovationen {
        width: 100% !important;
    } */
    
    .veranstalter_unternehmen .veranstalter_imagefilm iframe {
        height: 250px !important;
    }

    /* #datum img, */
    #logo img {
        width: 90%
    }

    #header > .frame img {
        padding-top: 40px;
        padding-bottom: 20px;
    }

    #datum h1 {
        font-size: 36px;
    }

    

}

@media (max-width: 580px) {

    #unterseite #header > .default.frame-type-textmedia {
        margin-top: -50px;
    }

    #teasertext {
        max-width: 60%;
    }

    /* #datum {
        width: 45%;
        width: 100%;
        bottom: 0;
    } */

    #logo {
        width: 40%;
    }
    #inhaltsbereich > .frame {
        padding: 50px 0 80px;
    }

    #inhaltsbereich > .frame-type-header, #inhaltsbereich > .link-impressionen {
        padding: 0px;
    }

    #inhaltsbereich > .frame-type-header > .rahmen {
        top: -40px;
    }

    h1, h2 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 16px;
    }

    
    .footerrahmen .tx_cn-columns .row > div,
    .quicklinks .tx_cn-columns .row > div,
    .footerrahmen .ce-gallery,
    .quicklinks .ce-gallery,
    .footerrahmen .ce-row ,
    .quicklinks .ce-row {
        width: 100%;
    }

    .footerrahmen .ce-column{
        width: 33%;
        margin: 0;
    }

    .footerrahmen .col-33 .ce-column{
        width: 100%;
        margin-top: 30px;
    }

    .footerrahmen .image {
        margin: 0 auto;
    }

    .footerrahmen .tx_cn-columns[data-cols="2"] .row > div > div,
    .quicklinks .tx_cn-columns[data-cols="2"] .row > div > div {
        margin: 0;
        width: 100%;
    }

    .quicklinks ul {
        text-align: center;
    }

    .quicklinks li {
        /* float: none !important; 
        display: inline-block; */
        text-align: center;
        width: 100%;
        margin: 5px 0;
    }

    .quicklinks .ce-row {
        text-align: center;
        margin-top: 20px;
    }

    .quicklinks .ce-column {
        display: inline-block;
        float: none; 
    }
/* 
    .veranstalter_adresse {
        top: -80px !important;
        max-width: 86% !important;
    }

    .veranstalter_organisatorisches {
        margin-top: 100px !important;
    }

    .veranstalter_logo {
        top: 220px !important; 
    } */

    .veranstalter_unternehmen {
        width: 100% !important;
        padding: 0 !important;
        /* margin-top: 180px !important; */
    }

    .weitere_programmpunkte {
        width: 100% !important;
        margin: 0 !important;
    }

    #teasertext h3 {
        font-size: 18px;
        margin: 0 0 10px 0;
    }

    #inhaltsbereich .frame-type-shortcut.frame-layout-4 > .rahmen > .frame {
        width: 48%;
        margin: 10px 1%;
    }
}

@media (max-width: 460px) {

    #header::before {
        height: 40px;
    }

    .mob_button {
        top: 70px;
    }

    #navi {
        padding-top: 60px;
    }

    #unterseite #header {
        height: 250px;
    }

    #logo img, #datum img {
        width: 100%;
    }

    #stama {
        width: 100px;
    }
    
    h1, h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    .veranstalter_unternehmen .veranstalter_imagefilm iframe {
        height: 180px !important;
    }

    .veranstalter_logo {
        width: 40% !important;
    }

    #header > .frame .ce-gallery,
    #header > .frame img {
        padding-top: 0;
        padding-bottom: 0;
    }

    #teasertext {
        transform: none;
        max-width: 100%;
        padding: 5%;
        background: rgba(14, 28, 65, 0.10);
        position: static;
        margin-bottom: 30px;
        margin-top: -30px;
    }
    
    #datum {
        display: none;
    }

    /* #inhaltsbereich > .frame.default:first-child + .frame.default {
        padding-top: 180px;
    } */

    #inhaltsbereich .single-bild.bild-preview {
        float: left !important;
        width: 100%;
        clear: both;
        margin: 0 0 0 0;
    }

    .liste_veranstalter .box_veranstalter {
        width: 56% !important;
        margin: 3% 22% !important;
    }

    #startseite .ce-gallery[data-ce-columns="3"] .ce-column {
        width: calc(100% - 20px);
        max-width: 200px;
    }

    .mapsoverlay {
        overflow: auto;
        font-size: 12px;
    }

    .mapsoverlay button, #cookie_einstellungen {
        font-size: 12px;
    }

}

@media (max-width: 380px) {
    /* #datum {
        width: 50%;
    } */
    
    #logo {
        width: 45%;
        top: -15px;
    }

    #unterseite #header {
        height: 220px;
    }

    #unterseite #header > .default.frame-type-textmedia {
        margin-top: -20px;
    }

    #inhaltsbereich > .frame-type-header.ce-headline-right > .rahmen {
        top: -40px;
    }

    .footerrahmen .col-66 img {
        height: 35px;
    }

    .quicklinks {
        font-size: 12px;
    }

    /* .veranstalter_unternehmen .veranstalter_imagefilm iframe {
        height: 150px !important;
    } */

    .veranstalter_logo {
        margin-top: -100px !important;
    }

    .veranstalter_unternehmen {
        margin-top: 30px !important;
    }

    #footer .tx_cn-columns > .row > div:first-child .ce-gallery[data-ce-columns="4"] .ce-column {
        min-height: 75px;
    }
}

@media (max-width: 340px) {
    #datum h1 {
        font-size: 32px;
    }

    #teasertext {
        bottom: -160px;
    }

    /* #inhaltsbereich > .frame.default + .frame.default {
        padding-top: 130px;
    } */

    .news-single h1 {
        font-size: 22px;
    }
}