html{
    scroll-behavior: smooth;
    word-wrap: break-word;
}

body{
    margin: 0;
    font-family: Calibri, serif;
}

a{
    cursor: pointer;
}

section{
    height: auto;
    width: 100%;
    padding: 5vh 0 0 0;
    margin: 0;
    display: block;
    text-align: center;
}

#home{
    background: url("img/home.png");
    background-size: cover;
    background-attachment: fixed;
    background-position: 20% top;
    height: 100vh;
    padding: 0;
}

#home a{
    padding: 8vh 4vw;
    font-size: 35px;
    display: block;
    position: absolute;
    left: auto;
    right: 0;
    color: white;
    z-index: 15;
}

#home #logo{
    padding: 43vh 0;
    margin: 0 auto;
    display: block;
    height: 15%;
    width: auto;
}

#home .flex{
    display: none; /*flex;*/
    flex-direction: column;
    position: fixed;
    height: 75vh;
    background: #235081;
    z-index: 5;
    width: auto;
    margin: 0;
    left: auto;
    right: 0;
    padding: 25vh 0 0 0;
    justify-content: left;
}

#home .flex li{
    display: block;
    width: auto;
    list-style-type: none;
}

#home .flex a{
    position: static;
    display: block;
    cursor: pointer;
    font-size: 28px;
    padding-top: 1.5vh;
    padding-bottom: 1.5vh;
    text-decoration: none;
    color: white;
    border-top: 3px solid white;
}

#home .flex a:hover{
    background: white;
    color: black;
}

#home .flex img{
    display: block;
    width: 12vw;
    height: auto;
    position: absolute;
    right: 2vw;
    bottom: 1vh;
}

#about{
    background: url("img/about.png");
    background-size: cover;
    height: auto;
    padding: 5vh 0 10vh 0;
}

#sticky-nav{
    width: 100%;
    margin: 0;
    position: fixed;
    display: none;
    list-style-type: none;
    overflow: hidden;
    top: 0;
    z-index: 10;
}

#sticky-nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 84%;
    background: white;
    margin: 0;
    padding: 4vh 8% 4vh 8%;
}

#sticky-nav ul a {
    text-decoration: none;
    font-size: xx-large;
    color: black;
}

#sticky-nav li {
    list-style-type: none;
    padding: 0 1.2vw;
    line-height: 5vh;
    height: 5vh;
    cursor: pointer;
}

#sticky-nav li img {
    height: 5vh;
    width: auto;
    margin: 0;
    bottom: 0;
}

h1{
    display: initial;
    color: white;
    background: #235081;
    text-align: center;
    font-size: 40px;
    margin: 0 auto 8vh auto;
}

#about div{
    height: auto;
    width: 80%;
    display: block;
    padding: 5vh 0;
    margin: 7vh auto 0 auto;
    background: rgba(255,255,255,0.71);
}

#about div li{
    font-weight: bold;
    font-size: 30px;
    text-align: center;
    list-style-type: none;
}

#about i{
    text-align: center;
    font-size: x-large;
    color: white;
    margin: 2vh 0;
    padding: 1vh 1vw;
    background: black;
}

#about p{
    font-size: x-large;
    text-align: left;
    color: black;
    width: 90%;
    padding: 5vh 5%;
    margin: 0 auto;
    display: block;
}

#about p a{
    color: black;
}

#about span{
    margin: 3vh 0 0 0;
    text-align: center;
    font-size: x-large;
    color: #235081;
    display: block;
}

#about #medium{
    margin: 0;
    color: #444444;
    font-size: medium;
    font-weight: bold;
}

#leistungen{
    background: url("img/products.png");
    background-size: cover;
    height: 80vh;
}

#leistungen .flex{
    margin-top: 15vh;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    float: right;
}

#leistungen .flex-child{
    width: 50%;
    margin-left: 50%
}

.accordion {
    background-color: white;
    color: #444;
    cursor: pointer;
    border: none;
    text-align: left;
    padding: 0 1vw;
    outline: none;
    font-size: 28px;
    transition: 0.4s;
    margin: 0;
    display: block;
}

.active, .accordion:hover {
    background-color: #ccc;
}

.panel {
    padding: 0 5vw;
    text-align: left;
    display: none;
    flex-direction: row;
    overflow: hidden;
    width: auto;
}

.panel p{
    background: #444444;
    color: white;
    width: max-content;
    font-size: x-large;
    padding: 0 1vw;
}

#products{
    padding: 0;
}

#products .flex{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background: white;
}

#products .flex-child{
    width: 50%;
    position: relative;
    text-align: center;
    font-size: x-large;
    color: white;
    font-weight: bold;
    background: white;
    overflow: hidden;
    border: none;
    display: none;
}

#products .overlay {
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    transition: .5s ease;
    background-color: transparent;
    cursor: pointer;
}

#products .flex-child:hover .overlay {
    background: rgba(17,17,17,0.25);
}

#products .flex-child:hover .text{
    display: block;
}

#products .text {
    display: none;
    color: #235081;
    font-size: 16px;
    position: absolute;
    width: 40vw;
    bottom: -5vh;
    left: 25vw;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: left;
    line-height: normal;
}

#products h3{
    font-size: xx-large;
    color: white;
}

#products .flex .header{
    background: #235081;
    width: 50%;
    position: relative;
    text-align: center;
    font-size: x-large;
    color: white;
    font-weight: bold;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: background-color .8s;
}

#products .flex .header:hover{
    background: #242424;
}

#products .flex span{
    padding: 5vh 0;
    display: block;
}

#products .flex-child img{
    width: 100%;
    height: auto;
    display: block;
}

#products .detail{
    height: 84vh;
    padding: 8vh 8vw;
    width: 84vw;
    top: 0;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    position: fixed;
    z-index: 15;
    background: #e8e8e8;
}

#products .detail .flex-child{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    background: none;
    margin: auto 0 0 0;
}

#products .detail img{
    width: 44%;
    align-self: flex-start;
}

#products .detail i{
    display: block;
    position: absolute;
    top: 4vh;
    left: 3vw;
    font-size: 42px;
    cursor: pointer;
}

#team{
    justify-content: space-around;
    background: url("img/team.png");
    background-attachment: fixed;
    background-size: cover;
    width: 70%;
    height: auto;
    padding: 10vh 15% 0 15%;
}

#team h4{
    font-size: x-large;
}

#team span{
    font-size: medium;
}

#team .flex{
    margin-top: 2vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#team .flex-child{
    padding: 9vh 2vw;
    height: auto;
    display: flex;
    flex-direction: column;
    color:white;
    border-radius: 15px;
    border:none;
}

#team .flex-child img{
    width: 18vw;
    height: auto;
    margin: 0 auto;
}

#contact{
    padding: 5vh 0;
}

#contact .flex{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 0;
}

#map{
    width: 45vw;
    height: 60vh;
}

#contact .flex-child{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 42vw;
    text-align: left;
}

#contact .flex-child h2{
    color: #235081;
    margin: 0;
    font-size: 45px;
}

#contact .flex-child span{
    color: black;
    font-size: larger;
}

#footer{
    padding: 5vh 0;
    background: #235081;
    display: flex;
    flex-direction: column;
}

#footer img{
    width: 18vw;
    height: auto;
    margin: 0 auto;
}

#footer .flex-child{
    padding: 7vh;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
}

#footer div{
    display: flex;
    flex-direction: column;
    padding: 0 2vw;
    text-align: right;
    color: white;
    font-size: large;
}

#footer div a{
    text-decoration: none;
    color: white;
    cursor: pointer;
}

#footer #text-left{
    text-align: left;
}

#footer i{
    text-align: center;
    color: white;
    font-size: xx-large;
    cursor: pointer;
}

#detailContainer{
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    z-index: 15;
    top: 0;
}

#detail{
    width: 65%;
    height: auto;
    display: flex;
    flex-direction: column;
    background: white;
    border: none;
    border-radius: 4px;
    margin: auto auto;
}

#detail h3{
    font-size: 30px;
    color: #E7EBF0;
    margin: 3vh 5vw;
}

#detail .header{
    width: 100%;
    height: auto;
    background: #235081;
    border: none;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

#detail .detail-image{
    max-width: 40%;
    display: flex;
    flex-direction: column;
}

#detail .detail-text{
    max-width: 50%;
}

#detail .detail-image img{
    display: block;
    width: 100%;
    height: auto;
}

#detail .detail-content{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    max-width: 80%;
    margin: 4vh auto;
}

#detail .detail-content h4{
    font-size: 28px;
    color: #235081;
}

#detail .detail-content p{
    font-size: 22px;
    text-align: right;
}

#detail #closeDetail{
    background: #AF1F24;
    color: white;
    margin: 3vh 6vw 3vh 0;
    padding: 1.5vh 2vw;
    display: block;
    float: right;
    border:none;
    border-radius: 3px;
}

@media only screen and (max-width: 1000px) {
    #home #logo {
        padding: 43vh 0;
        margin: 0 auto;
        display: block;
        height: auto;
        width: 80%;
    }

    #home a {
        padding: 8vh 8vw;
    }

    #home{
        background-position: 20% bottom;
    }

    #home .flex{
        height: 65vh;
        width: 100%;
    }

    #home .flex img{
        display: none;
    }

    #about div {
        height: auto;
        width: 100%;
        display: block;
        padding: 5vh 0;
        margin: 7vh auto 0 auto;
        background: rgba(255,255,255,0.71);
    }

    #leistungen{
        background-size: contain;
        height: 100vh;
    }

    #leistungen .flex-child {
        width: 90%;
        margin-left: 5%;
        word-break: break-all;
    }

    .panel p {
        background: #444444;
        color: white;
        width: 80vw;
        font-size: x-large;
        padding: 0 1vw;
    }

    #products .flex {
        flex-direction: column;
    }

    #products .flex .header, #products .flex-child {
        width: 100%;
    }

    #team{
        width: 80%;
        height: auto;
        padding: 10vh 10% 0 10%;
    }

    #team .flex-child img{
        width: 50vw;
        height: auto;
        margin: 0 auto;
    }

    #contact .flex {
        flex-direction: column;
    }

    #map{
        width: 90vw;
        margin: 0 auto;
        height: 60vh;
    }

    #contact .flex-child {
        width: 80%;
        margin: 5vh 10%;
    }

    #contact .flex-child span{
        margin: 3vh 0;
    }

    #footer img {
        width: 80vw;
        height: auto;
        margin: 0 auto;
    }

    #detailContainer{
        overflow-y: scroll;
        padding: 8vh 0 5vh 0;
        height: 80vh;
    }

    #detail{
        width: 90%;
        max-height: 100%;
        overflow-y: scroll;
        height: auto;
        display: flex;
        flex-direction: column;
        background: white;
        border: none;
        border-radius: 4px;
        margin: auto auto;
    }

    #detail .detail-content{
        flex-direction: column;
    }

    #detail .detail-image{
        max-width: 100%;
    }

    #detail .detail-text{
        max-width: 100%;
    }

    #products .text {
        display: block;
        width: 90vw;
        left: 50vw;
        bottom: -5vh;
        line-height: 1;
    }

    #products .text h3{
        font-size: 18px;
    }

    #products .text p{
        display: none;
    }
}