* {box-sizing: border-box;}

img {max-width: 100%;}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.125rem;
    text-align: center;
}

a {
    text-decoration: none;
    color: white;
}

header {
    background-image: url(../bilder/background1.jpg);
    background-size: cover;
    background-position: center;
    color: white;
    padding-top: 2.5rem;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.logo img {
    max-width: 400px;
}

.logo h1 {
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.1rem;
    margin-left: 1rem;
}

h2 {
    font-size: 1.75rem;
    margin: 0 0.5rem 2rem;
    font-weight: 400;
}

header ul {
    display: flex;
    padding: 0;
    list-style: none;
    padding: 1rem 0;
    color: white;
    justify-content: center;
    margin: 0;
    background-color: #731f3575;
}

header li {
    padding: 0 3rem;
    display: flex;
    text-transform: capitalize;
    font-weight: 300;
    font-size: 1.5rem;
}

li img {
    width: 20px;
    margin-right: 1rem;
}

section {
    display: flex;
    justify-content: center;
}

figcaption {
    margin: 1rem 0;
    font-size: 1.5rem;
    font-weight: 500;
}

figure {
    margin-bottom: 5rem;
    margin-top: 2rem;
}

figure img {
    border: 1rem solid white;
    box-shadow: 12px 16px 18px 0px rgb(0 0 0 / 30%);
    margin-bottom: 2rem;
}

figure p {
    max-width: 600px;
    margin: auto;
}

footer {
    background-color: #222222;
    text-align: left;
    padding: 1.5rem 3rem;
    text-transform: uppercase;
    display: flex;
}

footer nav {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.75rem;
    margin-top: 2.25rem;
}

footer address {
    color: white;
    text-transform: none;
    font-style: normal;
    font-weight: 300;
    font-size: 0.95rem;
    margin-right: 4rem;
}

address p {
    margin: 0;
}

strong {
    text-transform: uppercase;
    font-weight: 500;
}

.imprint {
    text-align: left;
    margin: 4rem 6rem;
    font-size: 1rem;
}

.imprint ul {
    list-style: none;
    padding: 0;
}

@media screen and (max-width: 900px) {
    .logo {text-align: left;}
    section {flex-direction: column;}
    figcaption {margin-top: 2rem;}
    figure img {margin-bottom: 0;}
    figure p {margin-top: 1.5rem;}
    footer {margin-top: 2rem;}
    footer ul {flex-direction: column;}
    footer ul {
        padding: 0 3rem 0;
        font-size: 0.95rem;
    }
    footer li {
        line-height: 1.75rem;
    }
}
  
@media screen and (max-width: 550px) {
    body {
        background-image: url(../bilder/background1.jpg);
        background-position: center;
        background-attachment: fixed;
        font-size: 1.5rem;
    }
    header {
        background-image: none;
        background-color: #222222;
        padding-top: 0.5rem;
    }
    header h2 {
        font-weight: 300;
        margin-bottom: 1rem;
    }
    .logo {font-size: 0.85rem;}
    .logo img {max-width: 250px;}
    .logo h1 {display: none;}
    figcaption {
        color: white;
        margin:  0  0 2rem;
        font-size: 1.5rem;
    }
    figure {
        margin-bottom: 2.5rem;
    }
    figure img {
        border: none;
        max-width: 100%;
    }
    figure p {
        color: white;
        font-weight: 400;
    }
    address {font-size: 1rem;}
    nav {margin-top: 0;}
    nav a {font-size: 1rem;}
    header ul {padding: 0;}
    header ul img {margin-right: 0.5rem;}
    header li {
        font-size: 1.25rem;
        padding: 0.75rem;
        font-weight: 400;
    }
    .imprint {color: white;}
}