html {
    font-family: Avenir Next, sans-serif;
    background: #FFFCF9;
    color: #242424;
    height: 100%;
}

body {
    height: 100%;
    margin: 0 0.938rem;
    max-width: 41.01625rem;
}

header {
    max-width: 18.125rem;
    margin: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 3.125rem;
    font-weight: 600;
    margin: 0;
    z-index: 1;
}

#umbruch {
    display: block;
}

h2 {
    font-size: 2.34375rem;
    font-weight: 400;
    margin: 0;
    z-index: 1;
}

h3 {
    font-size: 1.3em;
}

h4 {
    margin-bottom: 0;
    font-size: 1em;
}

nav {
    z-index: 1;
    background: #FFFCF9;
    padding-bottom: 8px;
}

@media screen and (min-width: 756px) {
    nav {
        padding-bottom: 0;
    }
}

ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

a {
    color: inherit;
    text-decoration: underline;
}

.placeholder-space {
    height: 67px;
    display: none;
}

main {
    line-height: 1.6;

}

@media screen and (min-width: 446px) {
    main {
        font-size: 1.125rem;
    }
}

@media screen and (min-width: 687px) {
    body {
        margin: auto;
    }
}

#aboutme,
#reference,
#contact {
    padding: 50px 0 0 0;
}

#contact {
    min-height: calc(100vh - 100px);
}



/*ab 756px broserfenster breite*/
@media screen and (min-width: 756px) {
    header {
        max-width: 41.01625rem;
        height: 80%;
    }

    .space {
        height: 20%;
    }

    h1 {
        font-size: 3.90625rem;
    }

    h2 {
        font-size: 2.9296875rem;
    }

    nav {
        font-size: 1.25rem
    }

    #umbruch {
        display: inline;
    }
}

img,
video {
    display: block;
    max-width: 100%;
    width: 657px;
    border-radius: 0.313rem;
    margin-bottom: 0.313em;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

#reference img {
    max-height: 413px;
}

#aboutme img {
    max-height: 493px;
}

.active {
    position: fixed;
    top: 0;
    left: 0.938rem;
}

.active>ul {
    margin: 7px 0 0 0;
}

@media screen and (min-width: 756px) {
    .active {
        left: auto;
    }

    .active>ul {
        margin: 9px 0 0 0;
    }
}


.visible {
    display: block;
}

.nav-background {
    height: 37px;
    width: 200vh;
    background-color: #FFFCF9;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

@media screen and (min-width: 756px) {
    .nav-background {
        height: 46px;
    }
}

#quote {
    text-align: center;
    margin: 2rem 0 4rem 0;
}

#quote-author {
    font-weight: bold;
    font-size: 0.8em;
}

.reference-box {
    margin-bottom: 5rem;
}

/*
.reference-box:nth-of-type(5) {
    margin-bottom: 0;
}*/

.reference-box>p {
    margin-top: 0.5em;
}

footer {
    padding: 10px 0;
}