@media screen and (max-width: 1810px) {
    .logo.logo_singlerow > a:first-child {
        margin-left: 0;
    }
    .navigation_mega .level_1 {
       left: calc(350px + 2%);
    }
    .maplayout nav.navigation_mega .level_1{
       left: calc(250px + 2%);
    }
    nav.mod_customnav.login_reg {
        left: calc(1310px + 2%);
    }
    body.maplayout nav.mod_customnav.login_reg, body.maplayout nav.mod_customnav.ts{
       left: calc(1210px + 2%);
    }
    /*---scrolling-down-----*/
    header#header.scrolling-down  .navigation_mega .level_1 {
       left: calc(200px + 2%);
    }
    .scrolling-down  nav.mod_customnav.login_reg, .scrolling-down  nav.mod_customnav.ts {
        left: calc(1160px + 2%);
    }
    /*------*/
    nav.mod_customnav.ts {
         right: 30px;
         left: auto;
    }
}
@media(min-width: 1280px) {
    .logo.logo_singlerow > a:first-child {
    display: block;
    width: max-content;
    }
}

/* vom 25.5.20 NEi */
@media screen and (max-width: 1280px) {
    .header-text {
        font-size: 2.8em;
    }
    h1 {
            font-size: 1.6em;
    }
    h2 {
            font-size: 1.4em;
    }
    h3 {
            font-size: 1.2em;
    }
    .image_wrapper h3 {
           font-size: 1.2em;
    }
    h4 {
        font-size: 1.2em;
    }
}
@media screen and (max-width: 1280px) {
    /*--------------------Logo----------------*/
    .logo.logo_singlerow img, .logo.logo_singlerow > a:first-child, body.tkst header:not(.scrolling-down) .logo.logo_singlerow img {
        width: 200px;
    }
    /*header#header:not(.scrolling-down) .logo.logo_singlerow > a:first-child {
        margin-top: 20px;
    }*/
    .logo.logo_singlerow > a:first-child {
        display: block;
        margin-left: 0;
        width: max-content;
        transition: 1s;
    }
    /*-------------------------------------*/
    /*---------------------Navigation--------------------*/
    body:not(.maplayout) #wrapper .navigation_mega .level_1 {
        top: 35px;
        left: calc(200px + 25px + 2%);
    }
    header#header.scrolling-down .navigation_mega .level_1 {
        top: 25px;
        left: calc(150px + 25px + 2%);
    }
    nav.navigation_mega .level_1 > li > a, nav.navigation_mega .level_1 > li > span {
        padding: calc(25px - 15px/2 - .5px) 10px;
    }
    .navigation_mega .level_1 {
        font-size: 1em;
    }
    /*-------------------------------------*/
    .question {
        background-size: 100% 100%;
    }
}
@media screen and (max-width: 1585px) and ( min-width: 940px) {
    /*-----------------Login button--------------------*/
        #header nav.mod_customnav.block {
             top: 45; /* entfernt, vorher war top: 0; */
             right: 5px;
             left: auto;
        }
        #header .login_reg li {
    /*        width: 35px; entfernt, da falsche Logik */
            vertical-align: top;
            overflow: hidden;
        }
       #header .login_reg li:hover {
            width: max-content;           
        }
        #header .mod_customnav ul li a, #header .mod_customnav ul li strong {
            padding: 5px 10px;
        }
        #header.scrolling-down .mod_customnav ul li a, #header.scrolling-down .mod_customnav ul li strong {
             padding: 0 10px;
        }
        /*-------------------------------------*/
}
@media (max-width:939px) {
    nav.mod_navigation.navi.navigation_mega.block {display:none}
}
@media screen and (max-width: 940px) {
    .wrapper_team .wrapper-inside {
       grid-template-columns: auto auto;
       margin-bottom: 10%;
    }
    .ce_image.vorteile {
    display: none;
    }
    #main .timeline_block {
    width: 100%;
    margin: 0;
    }
    .header-text + figure > img {
        min-height: 500px;
        min-width: 700px;
    }
    .question{
        background-size: auto 100%;
        background-position: center right -100px;
    }
}
@media (max-width: 939px) {
    #header nav.mod_customnav.block {
        top: 35px;
        right: 65px;
        left: auto;
    }
    .maplayout #header nav.mod_customnav.block {
        top: 25px;
    }
    #header.scrolling-down nav.mod_customnav.block {
        top: 25px;
    }
    #top #header .mod_customnav ul li a, 
    #top #header .mod_customnav ul li strong {
        padding: 0 10px;
    }
    /*#header:not(.burger_opened):before {*/
    /*     display: block;*/
    /*}*/
}

/* vom 25.5.20 NEi */
@media screen and (max-width: 940px) {
    html {
            font-size: 20px;
    }
    .search_block_full { 
             width: max-content; 
    }
    .header-text {
        font-size: 2.25em;
    }
    h2 {
            font-size: 1.4em;
    }
    .image_wrapper h3 {
           font-size: 1.5em;
    }
    h4 {
        font-size: 1em;
    }
    img.medium {
       max-width: 100%;
       height: auto;
    }
    figure.float_right, figure.float_left {
    margin-left: 0em;
    margin-right: 0em;
    margin-bottom: 0%;
    }
    .float_right, .float_left {
        float: none;
    }
    .wrapper_2_column .wrapper-inside {
        display: grid;
        grid-template-columns: auto;
        grid-gap: 0px;
    margin-bottom: 0%;
    }
    .wrapper_2_column.with_header .ce_text.first, 
    .wrapper_2_column.with_header .content-text:first {
    grid-column: 1;
    }
    #footer h5 {
       font-size: 1.1em;
    }
}
@media (max-height: 880px) {
    nav.mod_navigation.navigation_burger.block.c4g_show_on_mobile .navigation_mobile { position: static; }
}

/* vom 25.5.20 NEi */
@media screen and (max-width: 769px) {
    html {
            font-size: 18px;
    }
    .header-text {
        font-size: 1.75em;
    }
    h2 {
            font-size: 1.2em;
    }
    body:not(.maplayout) .wrapper-inside {
        max-width: 90%;
    }
    .question {
       width: 90%;
    }
    .vorteile figure.float_right {
        display: none;
    }
    .wrapper_2_column .wrapper-inside {
        grid-template-columns: auto;
        grid-gap: 0px; 
    }
    .btn > a:before {
        display: none;
    }
    #main .btn:hover {
    padding: 0;
    }
    .image_wrapper h3 {
           font-size: 1.3em;
    }
    .teaser_wrapper .wrapper-inside {
        max-width: 90%;
    }
    .card img {
        max-height: 135px;
        width: 110px;
        height: 110px;
    }
    #footer .inside {
       max-width: 90%;
    }
}
@media (max-width:769px ) {
    .search_block_full .left-content {display: none;}
    #header .search_block_full input { margin: 0; }
    #header .search_block_full input { width: 100%; }
    .search_block_full { text-align: left; width: 100%; }
    div#c4g_search_17 { width:calc(100% - 40px); }
    div#c4g_search_17 ul {
        max-width: calc(100% - 40px - 10px);
        width: 100%;
    }
}
@media screen and (max-width: 769px) {
    .wrapper_team .wrapper-inside {
       display: block;
       margin-bottom: 5%;
    }
    #header .inside {
       height: 80px;
    }
    body.no_header_no_searchblock #headimg div.inside {
    margin-top: 80px;
    }
    .no_header_no_searchblock {
    margin:0;
    }
    .teaser_wrapper .wrapper-inside {
        grid-template-columns: 1fr;
    }
    #footer .inside .box_wrapper {
        display: block;
    }
    body:not(.without_searchblock) #headimg .inside {
        margin-top: 125px;
    }
    .without_searchblock #headimg .inside {
        margin-top: 80px;
    }
    /*.maplayout .navigation_mobile:after {
        top: 35px;
    }
    .maplayout #header nav.mod_customnav.block {
        top: 35px;
    }
    .maplayout #header:before {
        top: 35px;
    } */
    .logo.logo_singlerow > a:first-child {
        margin-top: 5px !important;
    }
    .logo.logo_singlerow > a:first-child img {
        max-width: 150px;
    }
    #headimg .wrapper-inside {
         position: relative;
    }
    #headimg .header-image {
        margin-top: 0px;
        min-height: 100%;
    }
    .search_block_full {
        top: 75px;
    }
    .without_searchblock #headimg .header-image {
        margin-top: 0px;
    }
    .without_searchblock .custom {
        margin-top: -10px;
    }
    #header nav.mod_customnav.block {
        top: 25px;
    }
    .navigation_mobile:after, #header:not(.burger_opened):before {
        top: 25px;
    }
    /* #headimg img {
        transform: scale(1.78);
    } */
}

/* vom 30.5.20 NEi */
@media screen and (max-width: 650px) {
    html {
            font-size: 17px;
    }
    .header-text {
        font-size: 1.75em;
    }
    h1 {
            font-size: 1.5em;
    }
    .image_wrapper h3 {
           font-size: 1.3em;
    }
    h3 {
           font-size: 1.3em;
    }
    .spaceup {
        margin-top: 5px; 
    }
    #main a.hyperlink_txt {
        font-weight: 400;
    }
    .btn {
        width: 265px;
        font-size: 0.8em;
       line-height: 2.5em;
    }
    .bg_color_green .btn {
        border: 2px solid;
    }
    .timeline_item img {
       width: 60px;
    }
    #header .login_reg li{
        width: 40px;
        overflow: hidden;
    }
    #header .login_reg li a, 
    #header .login_reg li strong, 
    #header .login_reg li span {
        color: #30816D;
        text-shadow: none;
    }
}
@media(max-width: 580px) {
    #header .ts li{
            width: 40px;
            overflow: hidden;
    }
    #header .ts li a, 
    #header .ts li strong, 
    #header .ts li span {
            color: #30816D;
            text-shadow: none;
    }
}

/* vom 30.5.20 NEi */
@media screen and (max-width: 520px) {
    html {
            font-size: 16px;
    }
     #headimg .header-image {
            min-height: unset;
        }
    .header-text {
        font-size: 1.5em;
    }
    h1 {
            font-size: 1.3em;
    }
    h2 {
            font-size: 1.1em;
    }
    .image_wrapper h3 {
           font-size: 1.0em;
    }
    h3 {
           font-size: 1.0em;
    }
    .twocolumn .ce_text, content-text .twocolumn {
        column-count: unset;
    -moz-column-count: unset;
    -webkit-column-count: unset;
    }
    .btn {
        width: 190px;
    }
    .bg_color_green .btn {
        border: 1.5px solid;
    }
    .spacedown {
        margin-bottom: 15px;
    }
}
@media (max-width: 320px) {
    i.fas.fa-gas-pump { display: none; }
    i.fas.fa-map-marked-alt { display: none; }
    div#c4g_search_17 { margin: 0; width: 100%;}
    .search_block_full i.fas.fa-search { right: 20px; }
    div#c4g_search_17 li { width: 100%; }
    div#c4g_search_17 ul { max-width: calc(100% - 0px); right: 0;}
}
