.favorites_wrapper {
    margin: 0 auto;
    max-width: 90%;
}

.favorites_wrapper_small {
    width: 100%;
    max-width: 1000px;
}

.animate {
    animation: fadeIn 2s;
    animation-timing-function: ease-out;
    /* animation-direction: alternate; 
    animation-fill-mode: backwards;*/ /* or: backwards, both, none */
}

.animate_two {
    animation: fadeIn 2s;
    animation-timing-function: ease-out;
    animation-direction: alternate;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}


.containerTab{
    background-color:#F2F2F2; 
    padding-bottom: 40px;
}

/* Portfolio */
.portfolio_wrapper{
    padding-top: 50px;
}

div.gallery {
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    min-height: 295px;  /* Responsive-Design Fix  */

/*    border-radius: 16px; */
}

div.gallery:hover {
    border: 1px solid #777;
    /*
    opacity: 0.7;
    filter: alpha(opacity=0.7); /* For IE8 and earlier */    
}

div.gallery img:hover
{
    -webkit-filter: grayscale(0%); /* Safari 6.0 - 9.0 */
    filter: grayscale(0%);
}

div.gallery img {
    width: 100%;
    height: 100%;
    
    pointer-events: all!important;
    /*   display: block; */
    
    /* -webkit-filter: grayscale(90%); */ /* Safari 6.0 - 9.0 */
    /* filter: grayscale(90%);
    */
    
  /*  border-top-left-radius: 16px;
	border-top-right-radius: 16px;
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 0px;*/
}

.gallery_border {
    border-radius: 16px; 
}

.radius_border {
    border-top-left-radius: 16px;
	border-top-right-radius: 16px;
	border-bottom-left-radius: 0px!importent;
	border-bottom-right-radius: 0px!importent;
}

div.desc {
    /* padding: 10px 10px; */
    text-align: center;
    font-size: small;
}

.big_gallery img{
    height: 500px!important;
}

.responsive_gallery {
    padding: 0 6px;
    float: left;
    
    width: 24.99999%;    
    box-sizing: border-box; 
}

.favorites_gallery {
    min-height: 100px !important;
}

.favorites{
    /* width: 32.99999%;  */
    width: 24.99999%;      
    margin-bottom: 20px;
}

.caption {
    text-align: left;
    margin-bottom: .2em;
    
    padding-left: 5px;
    padding-top: 10px;    
    
    /*max-width: 1280px;*/
    margin: 0 auto;
}

.companyLogoCaption {
    padding-bottom: 5px;
}

.storeCaption{
    padding-top: 40px;
    padding-left: 40px;
    font-weight: 600;
}

.closebtn {
    float: right;
    color: black;
    
    font-size: 35px;
    cursor: pointer;
    
    /* padding-right: 40px; */
    padding-right: 15px;
    margin-top: -5px;
    
    font-weight: bold;
}

/* Filialen switch*/
.branch_container{
    margin-top: 40px;
}

.branch_text_wrapper{
    text-align: center;
}

.branch_button{
    -webkit-border-radius: 4;
    -moz-border-radius: 4;
    
    max-width: 200px;
    margin: 0 auto;
    
    margin-top: 0px;
    margin-bottom: 0px;
    
    display: block;
    border-radius: 4px;
    
    font-size: unset;
    background-color: whitesmoke;
    
    color: black;
    text-align: center;
    
    text-decoration: none;
    padding: 15px 20px 15px 20px;
    
    font-size: 20px;
    cursor: pointer;
    
    border: 2px solid #000;
    font-weight: 300;
    
    line-height: 1.1;
    margin-bottom: 20px;
    
    margin-top: 20px;
}

.branch_button:hover{
    background-color: black !important;
    color: whitesmoke !important;
    
    border: 2px solid #000;
}

/* Service Grid */
.parent_grid {
    display: grid; /* block */
    grid-template-columns: repeat( auto-fit, minmax(320px, 1fr));

    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 20px;
    
    grid-row-gap: 20px;
    
    max-width: 1280px;
    width: 100%;
    
    margin: 0 auto;
}

.parent_grid_div1 { grid-area: 1 / 1 / 2 / 2; }

.parent_grid_div2 { grid-area: 1 / 2 / 2 / 3; }

.parent_grid_div3 {
    grid-area: 1 / 3 / 3 / 4;
    background-color: whitesmoke;
    
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    
    min-height: 295px;  /* Responsive-Design Fix  */
    border-radius: 18px;
}

.parent_grid_div4 { grid-area: 2 / 1 / 3 / 2; }

.parent_grid_div5 { grid-area: 2 / 2 / 3 / 3; }

.parent_grid_div6 { 
    grid-area: 3 / 1 / 4 / 3; 
    /* display: none; */ 
}

.parent_grid_div7 {
    grid-area: 4 / 1 / 5 / 3; 
    display: none;
}

.parent_grid_div8 { 
    grid-area: 3 / 3 / 5 / 4; 
    display: none;
} 

.parten_grid_div9{
    display: none;
    visibility: hidden;
}

/* Overlay */
#overlayHotline {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.85);
  z-index: 1100;
}

.overlay_container{
    position: absolute;
    top: 50%;
    
    left: 50%;
    color: red;
    
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    
    height:auto;
    width: 90%;
    
    max-width:520px;
    margin:0 auto;
    
    background-color: white;
    z-index: 2000;
    
    -webkit-box-shadow: 0px 0px 100px -20px #fff;
    box-shadow: 0px 0px 100px -20px #fff;
    
    border-radius: 4px;
}

.overlay_content{
    padding: 10px 10px;
    width: 100%;
    
    font-weight: 400;
    line-height: 1.1;
    
    margin-bottom: .8em;
    font-size: 1.429em;
}

.overlay_content h2{
    margin-bottom: -20px;
}

.overlay_close {
    width: 22px;
    height: 22px;
    margin: 13px 13px 7px 7px;
    position: fixed;
    top: 0px;
    right: 0px;
    float: right;
    overflow: hidden;
    cursor: pointer;
    background: url(../images/lightbox-arrow-close.svg?1) no-repeat;
    background-size: contain;
    opacity: 0.65;
    z-index: 1200;
    -webkit-transition: opacity 250ms ease;
    transition: opacity 250ms ease;
}

.overlay_close:hover{
    opacity:1;
}

.overlay_button{
    padding: 16px 32px;
    text-align: center;
  
    text-decoration: none;
    display: inline-block;
    
    font-size: 16px;
    margin: 4px 2px;
    
    transition-duration: 0.4s;
    
    cursor: pointer;
    background-color: #ffffff; 
  
    color: black; 
    border: 2px solid red;
    
    min-width: 50%;
    height: auto;
    
    margin-top: 50px;
    border-radius: 4px;
}

.overlay_button:hover{
    background-color: red;
    color: white;
}

.overlay_button_address{
    margin-top: 0px;
    margin-bottom: 20px;
}

#overlayAddress{
    position: fixed;
    display: none;
  
    width: 100%;
    height: 100%;
  
    top: 0;
    left: 0;
  
    right: 0;
    bottom: 0;
  
    background-color: rgba(0,0,0,0.85);
    z-index: 1100;
}

/* ---------------------------
   ------ Media Queries ------ 
   --------------------------- */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

@media only screen and (max-width: 1040px){
    
    /* Service Grid */
.parent_grid {
    display: grid; /* block */
    /* grid-template-columns: repeat(5, 1fr); */
    grid-template-columns: repeat( auto-fit, minmax(320px, 1fr));
    /*grid-template-columns: repeat( 5, minmax(320px, 1fr));*/

    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    
    max-width: 1000px;
    width: 100%;
    
    margin: 0 auto;
}

.parent_grid_div1 { grid-area: 1 / 1 / 2 / 2; }
.parent_grid_div2 { grid-area: 1 / 2 / 2 / 3; }
.parent_grid_div3 {
   /* grid-area: 1 / 3 / 3 / 4;
    background-color: whitesmoke;
    
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    
    min-height: 295px; */
    display: none;
}

.parent_grid_div4 { /*grid-area: 2 / 1 / 3 / 2; */ grid-area: auto / auto / auto / auto;}
.parent_grid_div5 { /*grid-area: 4 / 1 / 5 / 3; */  grid-area: auto / auto / auto / auto; }
.parent_grid_div6 { grid-area: 4 / 1 / 4 / 3;  /*grid-area: auto / auto / auto / auto; */}
.parent_grid_div7 { /*grid-area: 4 / 1 / 5 / 3;  */ grid-area: auto / auto / auto / auto;}
.parent_grid_div8 { /*grid-area: 5 / 1 / 6 / 3; */  grid-area: auto / auto / auto / auto;} 
.parten_grid_div9 { 
    grid-area: 3 / 1 / 4 / 2;  /* grid-area: auto / auto / auto / auto;*/
    visibility:visible;
    display: block;
}
    
.address_smartphone{
    display: none;
}    
    
}

@media only screen and (max-width: 700px){
    .favorites_wrapper_small{
        max-width: 90%;
    }
    
    div.desc {
        padding: 10px 10px;
    }
    
    .responsive_gallery {
        width: 49.99999%;
        margin: 6px 0;
    } 

     .video_player_wrapper{
        padding-top: 20px;    
    }
    
    .job_button_right{       
        margin-left: 10px;
        margin-top: 20px !important;
    }
    
    .job_button_left{
        margin-top: 20px!important;   
    }    
    
    .store_text_wrapper_left{
        /* width: 100%;
        padding-left: 5px;*/
        width: 90%;
        
        padding-left: 20px;
        padding-right: 20px;        
    }
    
    .store_text_wrapper_right{
        display: none;
    }
    
    .store_text_wrapper{
        padding-left: 0px;
    }
    
    .caption_mobile{
        padding-left: 20px;    
    }
    
    .job_button_wrapper_center{
        display: table;
    }
}

@media only screen and (max-width: 568px){
    .logo{
        width: auto;
        /* height: 85px;*/
        
        max-width: 220px;
    }
    
    .responsive_gallery {
        width: 100%;
    }
    
    .caption_mobile{
        font-size: 18px;
        font-weight: 600;
        
       /* padding-left: 5px; */
        padding-top: 40px;
    }
    
    .video_player_wrapper{
        padding-top: 20px;    
    }
    
    .future_caption{
        letter-spacing: 0.00em;        
        font-size: 30px;
    }    
    
    .job_button_right{
        float: left;
        margin-left: 0px;
    }
    
    .job_button_left{
        margin-top: 20px!important;   
    }    
    
    .job_button_spacer{
        margin-top: 10px;
        margin-bottom: 10px;        
    }
    
    .store_text_wrapper_right{
        display: none;
    }
    
    .store_text_list li{
        display: inline-block;
    }
    
    .store_text_list ul{
        padding-left: 0px;
    }
    
    .job_button{
        width: 100%!important;        
        max-width: 100%!important;
        
        margin-bottom: 40px!important;
    }
}

@media (min-width : 568px)
{
    .containerTab{
        margin-bottom: 20px;
    }
}

@media only screen and (min-width : 150px) and (max-width : 770px)
{    
    div.gallery img {
        height: auto;
    }
    
    .job_advertisement_wrapper{
        max-width: 90%;
        margin: 0 auto;
        
        min-height: 420px;
    }
    
    .job_advertisement_wrapper_left{
        width: 100%;
        /*padding: 20px;*/

        float: none;
        margin: 0 auto;
    }   
    
    .job_advertisement_wrapper_right{
        display: none;
    }
    
    .job_benefits_wrapper{
        max-width: 90%;
    }
    
    .job_selection_wrapper{
        max-width: 90%;
    }
    
    .job_button_right{
        display: none!important;
    }
    
    .job_button_left{
        width: 100%;
    }
    
/* Service Grid */
.parent_grid {
    display: block; 
    max-width: 390px;
    
    width: 90%;
    height: auto;
    
    margin: 0 auto;
}
    
.parent_grid_div1 { 
    grid-area: auto / auto / auto / auto; 
    margin-bottom: 20px;
}
    
.parent_grid_div2 {
    grid-area: auto / auto / auto / auto; 
    margin-bottom: 20px;
}
    
.parent_grid_div3 {
    visibility:hidden;
    display: none;
}

.parent_grid_div4 {
    grid-area:  grid-area: auto / auto / auto / auto;
    margin-bottom: 20px;
}
    
.parent_grid_div5 { 
    grid-area: auto / auto / auto / auto; 
    margin-bottom: 20px;
}
    
.parent_grid_div6 { 
    grid-area: auto / auto / auto / auto;
    margin-bottom: 20px;
}
    
.parent_grid_div7 { 
    grid-area: auto / auto / auto / auto;
    margin-bottom: 20px;
}

.parent_grid_div8 {
    grid-area: auto / auto / auto / auto;
    margin-bottom: 20px;
} 

.parten_grid_div9 { 
    visibility:hidden;
    display: none;
}

.address_container p {
   /* font-size: 80%; */
}
    
.address_caption {
   /* font-size: 1em; */
    font-weight: 400;
}
    
.address_smartphone {
        display: block;
} 
}

@media only screen and (max-width: 1115px){
.address_caption_revert {
    font-size: revert!important;
}

    .branch_button{
        max-width: 180px!important;
    }
}