body {
    background-color: #ddd;
    font-family: Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

#wrapper {
    background-color: #fff;
    margin: 0 auto;
    width: 80%;
    padding: 0 0 0 0;
    max-width: 1000px;
}

a {
    text-decoration: none;
    color: white;    
}

p {
    font-size: small;
    line-height: 1.25;
    margin: 0 0 10px 0;
    padding: 0;
}

h1 {
    font-size: 2.5rem;
    margin: -10px 0 10px 0;
    text-decoration: underline;
}

h2 {
    text-decoration: underline;
    font-size: large;
    margin-top: 0;
}

header {
    background-image: url(img/head_index.JPG);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 10% 0 2% 20%;
}

header.projekte {
    background-image:url(img/head_projekte.jpg);
}

header.coding {
    background-image:url(img/group1.JPG);
    background-position: top;
}

div.header h1 {
    text-decoration: none;
}

div.header h1 span {
    background-color: yellow;
    color: black;
    font-size: 1.5em;
    padding: 0 1%;
}

header p span {
    background-color: black;
    color: yellow;
    width: 40%;
    padding: 1.5% 1%;
    margin: 0;
}

section.coding h1 {
    text-decoration: none;
}

section.coding div.left h1 span {
    background-color: lightgreen;
}

section.coding div.right h1 span {
    background-color: mediumorchid;
}

nav {
    list-style-type: none;
    text-align: center;
    min-width: 100px;
    max-width: 20%;
    float: left;
}

nav ul {
    background-color: #000; 
    padding: 0;
    list-style: none;
}

nav li {
    display: inline-block;
    font-size: 1.2em;
    padding: 20px 0;
    width: 100%;
    border-bottom: 1px solid white;
}

nav li a {
    color: #fff;
    text-decoration: none;
}

section.home p a {
    color: black;
    font-weight: bold;
}

section.home a.main {

}

section.coding a {
    color: black;
    font-weight: 700;
}

section.coding div.left a span {
    background-color: lightgreen;
}

section.coding div.right a span {
    background-color: mediumorchid;
}

section.home, section.projekte, section.galerie, section.coding {
    width: 80%;
    margin: 0 0 0 20%; 
}

section.galerie {
    width: 80%;
    margin: 16px 0 10px 21%;
}

section.galerie img {
    padding: 2%;
    max-width: 27%;
    min-width: 200px;
    box-shadow: 5px 5px 5px #eee;
}

section.projekte img {
    width: 27%;
    margin: 2%;
}

section.projekte div.color1 img, section.coding div.left img {
    box-shadow: 5px 5px 0 mediumorchid;
}

section.projekte div.color2 img, section.coding div.right img {
    box-shadow: 5px 5px 0 lightgreen;
}

div.audio {
    width: 30%;
    display: inline-block;
    margin: 2%;
}

audio {
    width: 200px;
    padding: 9px 0;
}

section.projekte div.color1, section.projekte div.color2 {
    padding: 2%;
    margin: 2%;
    min-height: 280px;
}

section.home div.left, section.home div.right {
    
}

section.coding div.left, section.coding div.right {
    display: inline-block;
    max-width: 300px; 
    margin: 5% 0% 2% 5%;
    vertical-align: text-top;
}

section.home div.left, section.home div.right {
    display: inline-block;
    max-width: 40%;
    min-width: 280px;
}

section.home div.righttext, section.home div.lefttext  {
    display: inline-block; 
    max-width: 50%;
    min-width: 280px;
    margin: 0 3%;
    vertical-align: text-top;
}


section.coding div.left img, section.coding div.right img {
    width: 100%;
}

section.home div.color1, section.projekte div.color1 {
    background: lightgreen;
}

section.home div.color2, section.projekte div.color2 {
    background: mediumorchid;
}

section.home div.color1, section.home div.color2 {
    padding: 2%;
    margin: 2%;
}

section.home img {
    width: 100%;  
    vertical-align: text-top;
}

section.home h1, section.home p, section.home h2 {
    color: black;
}

footer {
    list-style-type: none;
    text-align: center;
    padding: 3%;
    background: black;
    margin: 20px 0 0 0;
}

footer div.footer {
    display: inline;
}

footer div.footer p, footer div.footer a {
    color: white;
}

footer div.footer a {
    text-decoration: underline;
}

@media screen and (max-width: 700px) {
    #wrapper {
        width: 90%;
    }
    
    nav {   
    min-width: 100%;
    padding: 0;
    float: none;
    }
    
    nav li {
        padding: 15px 0;
    }
    
    div.header h1 span {
        font-size: 1.25em;
    }
    
    header p span {
        padding: 0;    
    }
    
    header {
        padding: 10% 0 2% 13%;
    }
    
    header p span {
        font-size: 1.75rem;    
    }
    
    section {
        text-align: center;
    }
    
    section div {
        max-width: auto;
        margin: 5% 2% 2% 2%;
    }
    
    section.home, section.projekte, section.coding, section.galerie {
        width: 100%;
        margin: 0;
    }
    
    section.home img {
        width: 84%;
    }
    
    section.home div.righttext, section.home div.lefttext, section.projekte div.text {
        max-width: 90%;
        min-width: 170px;
        margin: 3%;
    }
    
    section.home h1, section.projekte h1, section.coding h1 {
        font-size: 1.5em;
    }
    
    section.home h2, section.projekte h2, section.coding h2 {
        font-size: 1em;
        margin: 0 0 10% 0;
    }
    
    section.coding div.left img, section.coding div.right img {
        width: 93%;
    }
    
    section.coding a span {
        display: none;
    }
    
    section.galerie img {
        max-width: 96%;
    }
    
    section.projekte img {
        width: 85%;
    }
    
    div.audio {
        width: 100%;
    }
}

