header {
    background-color: #48494b;
    padding: 15px 0;
    
}

header .center-box {
    position: relative;
}
header #container {
    display: flex;
    justify-content: space-between;
    align-items: center;    
}

#logo {
    width: 100px;
    height: auto;
    position: absolute;
    top: 10px;
    left: 10px;
}

#logo a {
    display: inline-block;
}

#main-menu ul {
    display: flex;
}

#main-menu ul li a{
    display: block;
}

#main-menu ul li a:hover {
    color: #00bbff;
}

#main-menu ul li a:last-of-type {
    margin-right: 0px;
}

#top {
    background: white url('../img/slideheader0.jpg') no-repeat center;
    background-size: cover;
    padding: 12vh 0;
}

section {
    padding: 50px 0 90px 0;
    overflow: hidden;
}

/* Dienstleistungen section style */
#dienst img {
    width: 100%;
    padding-top: 40px;
    object-fit: fill;
}

.dienst-box {
    margin: 20px 0;
}

.dienst-box:hover {
    transform: scale(1.05);
    filter: grayscale(100%);
}

.dienst-content {
    padding: 80px 0;
    clear: both;
    overflow: hidden;
} 

.dienst-content h1{
    margin: 0 0 30px 0;
}

.dienst-content img {
  width: 80%;
  margin: 30px;
}

.dienst-content2 {
    background-color: #f0f0f0;
    padding: 40px 0;
}

/* Uber uns section style */
#uber_uns {
    background: white url(../img/worker.jpg) no-repeat center;
    background-size: cover;
}

.p-box {
    padding-top: 30px;
}

/* Referenz section style */
#referenz h1 {
    margin-bottom: 60px;
}

.slideshow-container {
    max-width: 900px;
    position: relative;
    margin: 0 auto;
}

.mySlides {
    display: none;
}

.mySlides img{
    width: 100%;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: #000000;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease; 
    background-color: rgba(255, 255, 255, 0.9);
}
  
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.text {  
    padding: 10px 0px;
}

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}
  
@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.color-block1 {
    background: -moz-linear-gradient(top,  rgba(173,173,173,1) 0%, rgba(136,182,219,0) 78%, rgba(125,185,232,0) 100%); 
    background: -webkit-linear-gradient(top,  rgba(173,173,173,1) 0%,rgba(136,182,219,0) 78%,rgba(125,185,232,0) 100%); 
    background: linear-gradient(to bottom,  rgba(173,173,173,1) 0%,rgba(136,182,219,0) 78%,rgba(125,185,232,0) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#adadad', endColorstr='#007db9e8',GradientType=0 );
    padding: 6px 0;
}

.color-block2 {
    background: -moz-linear-gradient(top,  rgba(125,185,232,0) 0%, rgba(136,182,219,0) 22%, rgba(173,173,173,1) 100%); 
    background: -webkit-linear-gradient(top,  rgba(125,185,232,0) 0%,rgba(136,182,219,0) 22%,rgba(173,173,173,1) 100%); 
    background: linear-gradient(to bottom,  rgba(125,185,232,0) 0%,rgba(136,182,219,0) 22%,rgba(173,173,173,1) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#007db9e8', endColorstr='#adadad',GradientType=0 ); 
    padding: 6px 0;
}
.scroll-container{
    overflow: auto;
    white-space: nowrap;
    padding: 40px 70px 10px 20px;
    background: transparent;
    height: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius:15px;
  }

.gridscroll{
    display:inline-block;
}
  
.gridscroll img {
    margin-right:22px;
    width: 100px;
    height: auto;
}

/* Klienten section style */
#klienten {
    padding: 40px 0;
}

#klienten-box {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

#klienten-box img{
    height: auto;
    width:100%;
}

/* Kontakt section style */
#kontakt {
    background:#48494b url(../img/footerimg.jpg) center no-repeat;    
    background-size: cover;
    color: #ffffff;
}

#kontakt-box {
    padding-top: 20px;
}


/* Footer style */
footer {
    background-color: #00bbff;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    bottom: 0;
}

@media only screen and (max-width: 1200px) {
    header #container {
       flex-wrap: wrap;
    }

    header #container {
        align-items: flex-start;    
    }
    
    #logo {
        width: 80px;
        height: auto;
        position: absolute;
        top: 10px;
        left: 45%;
    }
   
    #main-menu {
        width: 100%;
        max-height: 0;
        transition: all 0.3s ease-in-out;
        overflow: hidden;
        opacity: 0;
    }

    #main-menu ul {
        display: block;
    }
    
    #main-menu ul li a {
        padding-bottom: 10px;
        margin: 0;
    }
    
    #hamburger {    
        width: 40px;
        height: 40px;
        background: #48494b;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 12px;
        margin: 0;
    }

    #hamburger span {
        display: block;
        background: #ffffff;
        height: 2px;
    }

    #hamburger.open {
        justify-content: center;
    }

    #hamburger.open span:first-of-type {
        display: block;
    }

    #hamburger.open span {
        display: none;
    }

    #hamburger.open + nav {
        max-height: 250px;
        opacity: 1;
    }

   
} 
