/* roboto-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/roboto-v48-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/roboto-v48-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html, body {
    height: 100%;
}

body {
    display: flex;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 5dvmin;
    background-color: #d9d9d9;
}

body:has(.backdrop) {
    background-color: #1d1919;
    color: #fff;
}

body:has(.backdrop) :is(h1, h2, h3, h4, a) {
    color: #fff;
}

body:has(.backdrop) main {
    padding-top: 8%;
}

.backdrop {
    position: fixed;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-image: url(/images/hintergrund-2.jpg);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    filter: opacity(10%);
    overflow: auto;
}

section {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

main {
    padding: 5dvmin 0;
}

main.grid, footer {
    max-width: 82rem;
    width: 100%;
}

main:not(.grid) {
    max-width: 56em;
    width: 100%;
}

main:not(.grid) img {
    max-width: 6rem;
    width: 100%;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
    padding: 2.5dvmin 0;
    border-top: 1px solid #999;
}

footer nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5dvmin;
    justify-content: center;
}

.grid {
    display: grid;
    gap: 5dvmin;
}

h1,
h2,
h3,
h4,
a {
    color: #343d76;
}

address {
    font-style: normal;
}

main.grid img {
    max-width: 15rem;
    width: 100%;
    background-color: #fff;
    padding: 5px;
}

.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (min-width:768px) {
    .col-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    body {
        font-size: 1.125rem;
    }
    footer {
        flex-direction: row;
        justify-content: space-between;
    }
    .grid section:nth-child(2) {
        padding-top: 4%;
    }
}

@media (min-width:1200px) {
    section:has(img) {
        align-items: center;
    }
    .col-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid section:last-child {
        padding-top: 4%;
    }
}