*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*CONTAINERS*/

html {scroll-behavior: smooth;}

body {overflow-x: hidden;}

#wrapper {
    width: 100vw;
    margin: auto;
}

.img {
    max-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    }

.foto {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#foto {
    width: 70vw;
    height: 70vh;
}

.imagecontainer {
    padding: 0;
    height: 400px;
    width: 80vw;
    overflow: hidden;
    margin: 3rem 0 1rem 0;
    position: relative;
}

.bred {
    width: 60vw;
    margin: auto;
}

.flexcontainer {
    display: flex;
}

.cover {
    width: 100vw;
}

header {
    background-color: #EBEBEB;
    height: 100vh;
    padding-top: 5rem;
    position: relative;
    margin-bottom: 2rem;
}

#overlap {
    position: absolute;
    right: 6rem;
    top: 10%;
    width: 800px;
    /*background-color: aliceblue;*/
}

section:nth-child(3) {
    background-color: beige;
    padding-top: 2em;
}


#list {
    background-color: #EBEBEB;
    padding: 3em 0 2em 3em;
    width: 70vw;
    float: right;
}

.blue {
    color: #395272;
}

.red {
    color: #B24C34;
}


.right {
    float: right;
}


/*fonts*/

h1 {
    font-family: 'Staatliches';
    font-size: 8rem;
    color: #B24C34;
    text-align: end;

}

h2 {
    font-family: 'Staatliches';
    font-size: 4rem;
    width: 50%;
    line-height: 105%;
    margin-top: 1rem;
}

h3 {
    font-family: 'Staatliches';
    font-size: 3rem;
    width: 50%;
    line-height: 105%;
}
h4 {
    font-family: 'Staatliches';
    font-size: 2rem;
    width: 50%;
    line-height: 105%;
}

.clear {
    clear: both;
}

#overlap p {
    text-align: end;
    width: 300px;
    float: right;
}

p  {
    font-family: 'degular';
    margin: 0.5rem 0 2rem 0;
    font-size: 16px;

}

.bred p {
    width: 50%;
}

#grey p {
    width: 50%;
}

footer {
    background-color: #ebebeb;
    width: 100vw;
    padding: 40px;
}

footer div {
    width: 350px;

}
/*liste*/

ul {list-style:none;}

a  {
    text-decoration: none; color: black;
    font-family: 'Staatliches';
    font-size: 2rem;
}

a:hover {
    color:#B24C34;
}

@media screen and (min-width: 320px) and (max-width:640px) {
    h1 {
        font-size: 5rem;
        text-align: right;
        color: #B24C34;
    }
    .bred {
        100vw;
        
    }
     .bred p {
        width: 90%;
    }
    
    .imagecontainer {
        margin: 0 0 0.5rem 0;
        width: 100vw;
    }
    
    h2 {
        width: 100%;
        padding-right: 10vw;
        font-size: 3rem;
    }
    
    #overlap {
        width: 300px;
        right: 0;
        top: 40%;
        background-color: #ebebeb;
        padding: 10px 40px 10px 10px;
        margin-right: 0;
        
    }
    
    #overlap p {
        width: 180px;
    }
    
    header {
        height: 100vh;
        padding-top: 0;
    }
    
    #foto {
        width: 100vw;
    height: 100vh;
    }
    .right {
        float: none;
    }
    

}
    
@media screen and (min-width:641px) and (max-width:768px) {
    h1 {
        font-size: 5rem;
        text-align: right
    }
    .bred {
        80vw;
    }
     .bred p {
        width: 70%;
    }
    
    .imagecontainer {
        margin: 0 0 0.5rem 0;
    }
    
    h2 {
        width: 100%;
        padding-right: 10vw;
    }
    
    #overlap {
        width: 50vw;
        right: 3rem;
        top: 7%;

    }
    
    #overlap p {
        width: 180px;
    }
    
    header {
        height: 80vh;
    }
    
    #foto {
        width: 60vw;
    height: 60vh;
    }
}

@media screen and (min-width:768px) and (max-width:1100px) {
    header {
        height: 80vh;
    }
    h1 {
        font-size: 7rem;
    }
    #overlap {
        width:28rem;
        right: 4rem;
        top: 3%;
    }
    
    #overlap p {
        width: 200px;
    }
    
    .bred p {
    width: 70%;
    }
    
    h2 {
        width: 70%;
    }
    
    #foto {
        width: 60vw;
    height: 60vh;
    }
}