html {
    padding: 10px 2px 10px 0;
    background: #d5d5d5;
}

body {
    width: 1000px;
    margin: 0 auto;
    font-size: 12px;
    color: #535353;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

header {
    width: 100%;
    height: 157px;
    background-image: linear-gradient(60deg, #cee9fc 40%, white, rgb(252, 252, 168), white, rgb(248, 187, 187));
    overflow: hidden;
    display: flex;
    justify-content: left;
    align-items: center;
    box-shadow: 10px 10px 20px silver;
    -webkit-box-shadow: 10px 10px 20px silver;
    position: relative;
}

header a {
    width: 30%;
    height: auto;
}

nav {
    margin-left: 30px;
}

nav a {
    color: rgb(155, 159, 163);
    font-size: 20px;
    font-weight: bold;
    justify-content: left;
    margin: auto 25px;
}

main {
    padding: 20px 60px;
    -webkit-box-shadow: 0 0 80px rgba(0, 0, 0, 0.1) inset, 0 3px 1px rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.1) inset, 0 3px 1px rgba(0, 0, 0, 0.15);
    background: white;
    height: auto;
}

header img {
    width: 100%;
    height: auto;
}

h1 {
    font-size: 1.75em;
    font-weight: normal;
    font-family: 'Arial', serif;
    color: rgb(155, 159, 163);
}

h2 {
    font-size: 16px;
    font-weight: bold;
    padding: 0px;
    margin: 0px;
    color: #585858;
}

p {
    text-align: left;
    line-height: 1.6em;
}

a {
    padding: 5px 0;
    outline: none;
    text-decoration: none;
    color: #585858;
}

a:hover {
    color: #818181;
    text-decoration: none;
}

section#intro {
    width: 100%;
    padding: 10px 5% 0 0;
}

section.box {
    width: 80%;
    padding: 30px 5% 10px 0;
}

#tiles {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.ref {
    width: 200px;
    height: auto;
    margin-top: 20px;
    margin-right: 10px;
    background-color: #F2F2F2;
}

.ref p {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

section p img {
    margin: 0 10px 10px 0;
    height: auto;
    width: 90%;
    margin-top: 10px;
}

section img {
    height: 150px;
    width: 200px;
}

section li {
    padding: 2px 2%;
}

#legals {
    justify-content: right;
    margin: auto 0;
}

#legals a:last-child {
    border-left: solid #858181 1px;
    padding-left: 4px;
}

footer {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 10px;
}

/* 1-Spaltenlayout  */

@media only screen and (max-width: 900px) {
   body {
       width: 100%;
   }
   
    header {
        position: sticky;
        top: 0;
        height: auto;
        padding: 3% 0 ;
    }
    header img {
        display: none;
    }

    nav {
        margin-left: 0;
        width: 100%;
    }

    nav a {
        margin: auto 1%;
        font-size: 18px;
    }

    header a {
        width: 2%;
    }
    article section.spalte {
        width: 100%;
    }
    article {
        padding: 5%;
    }
    main {
        padding: 2%;
    }
}