@font-face {
    font-family: "Montserrat";
    src: local("Montserrat"),
         url("./fonts/Montserrat/Montserrat-Medium.ttf");
    font-weight: 400;
}

@font-face {
    font-family: "Poppins";
    src: local("Poppins"),
         url("./fonts/Poppins/Poppins-Light.ttf");
    font-weight: 300;
}
@font-face {
    font-family: "Poppins";
    src: local("Poppins"),
         url("./fonts/Poppins/Poppins-Regular.ttf");
    font-weight: 400;
}
@font-face {
    font-family: "Poppins";
    src: local("Poppins"),
         url("./fonts/Poppins/Poppins-SemiBold.ttf");
    font-weight: 500;
}
@font-face {
    font-family: "Poppins";
    src: local("Poppins"),
         url("./fonts/Poppins/Poppins-Bold.ttf");
    font-weight: 600;
}


:root {
    --light: #ffffff;
    --dark: #021722;
    --gray: #f1f0f0;
    --blue-l: #ccedff;
    --blue-d: #083d59;
    --orange-l: #ffae00;
    --orange-d: #e94c0a;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    overflow-x: hidden;
}
html {
    font-family: "Poppins";
    font-size: 16px;
    scroll-behavior: smooth;
}

.section {
    padding: 3rem 0;
    width: 100%;
    background-color: var(--light);
    color: var(--blue-d);
}

.wrapper {
    padding: 0 1rem;
    margin: auto;
    width: 100%;
    max-width: 1100px;
}

.inset {
    padding: 2rem 0;
}
.inset--c {
    display: flex;
    align-items: center;
}

.gray {
    background-color: var(--gray);
    color: var(--dark);
}
.blue-l {
    background-color: var(--blue-l);
    color: var(--dark);
}
.blue-d {
    background-color: var(--blue-d);
    color: var(--light);
}
.orange-l {
    background-color: var(--orange-l);
    color: var(--light);
}
.orange-d {
    background-color: var(--orange-d);
    color: var(--light);
}


ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.indicator li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}
ul.indicator li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--orange-l);
    background: linear-gradient(45deg, var(--orange-d) -100%, var(--orange-l) 100%);
    border-radius: 100%;
    transform: translateY(0.375rem);
}

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

p {
    line-height: 1.5em;
}
p,
h2, h3, h4, h5 {
    max-width: 42.5rem;
}
h2, h3, h4, h5 {
    margin-top: 0 !important;
    margin-bottom: 0.35em !important;
    line-height: 1.3em;
}
h2 {
    font-size: 4rem;
}
h3 {
    font-size: 2rem;
    font-weight: 500;
}
h4 {
    font-size: 2rem;
    font-weight: 400;
}
h5 {
    font-size: 1.25rem;
    color: var(--blue-d);
}
h2 span, h3 span, h4 span, h5 span {
    color: var(--orange-d);
}


p a {
    color: var(--orange-d);
}
a:hover, button:hover {
    filter: opacity(0.85);
}


header.section .contact,
header.section .address {
    font-style: normal;
    font-weight: 300;
}
header.section .contact {
    display: flex;
    flex-direction: row;
    align-items: center;
}
header.section .contact li {
    margin-right: 3rem;
}
header.section .contact a {
    display: flex;
    flex-direction: row;
    align-items: center;
}
header.section .contact img {
    pointer-events: none;
    height: 0.85em;
    margin-right: 0.75rem;
}

header.section .address {
    display: flex;
    flex-direction: row;
}
header.section .address img {
    margin-top: 0.25rem;
    margin-right: 1rem;
    height: 2.5em;
}

header.section h1 {
    font-family: "Montserrat";
    font-size: 2.5rem;
}

header.section .wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: -4rem;
}

header.section nav {
    align-self: center;
    padding: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    background-color: var(--light);
    color: var(--dark);
    font-weight: 600;
}
header.section nav ul {
    display: flex;
    flex-direction: row;
}
header.section nav ul li:not(:last-child) {
    margin-right: 1.5rem;
}
header.section nav ul a:hover {
    color: var(--orange-d);
}

.shadow {
    box-shadow: 0 0 0.5rem -0.125rem rgba(0, 0, 0, 0.3);
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.center > h2, .center > h3, .center > h4, .center > h5 {
    text-align: center;
}

.signature {
    margin-top: -1.5rem;
    margin-left: 2rem;
    height: 5rem;
}

.flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.flex > * {
    width: calc(50% - 3rem);
}
.flex--u > *:first-child {
    padding-right: 3rem;
    width: 60%;
}
.flex--u > *:last-child {
    width: 40%;
}


.flex-child {
    width: 30% !important;
}

.gallery {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.gallery img {
    width: 80%;
}
.gallery img:last-of-type {
    align-self: flex-start;
    margin-top: -4rem;
}


footer.section input,
footer.section textarea {
    padding: 1rem;
    background-color: var(--light);
    border: none;
    font-family: inherit;
    font-size: inherit;
    border-radius: 0;
}
footer.section input {
    width: 100%;
}
footer.section input:not(:last-child) {
    margin-bottom: 3rem;
}
footer.section button {
    cursor: pointer;
    margin-top: 3rem;
    padding: 1rem 2rem;
    background-color: var(--orange-d);
    color: var(--light);
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
}
footer.section .legal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 5rem;
    font-size: 0.9rem;
    font-weight: 300;
}
footer.section .legal a {
    cursor: pointer;
    margin: 0 1rem;
}

.thin {
    font-weight: 300;
}

.extend {
    display: flex;
    align-items: center;
    width: 1000% !important;
    height: 100%;
}
.extend img {
    width: 35vw;
    transform: translateX(-5rem);
}


.cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
.cards .card {
    align-self: flex-start;
    padding: 0.75rem 2rem;
    background-color: var(--light);
    color: var(--dark);
    margin-top: 3rem;
    width: calc(50% - 1.5rem);
}

.image-series {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.image-series img {
    height: 7.5rem;
}

.space-s {
    display: none;
    height: 2rem;
}

.show-s {
    display: none;
}

.overlay {
    position: fixed;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: scroll;
    opacity: 0.0;
    pointer-events: none;
    transition: all 400ms;
}
.overlay.active {
    margin-top: 0;
    opacity: 1.0;
    pointer-events: auto;
}
.overlay::before {
    content: "";
    position: fixed;
    display: block;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    opacity: 0.5;
    z-index: -1;
}
.overlay-wrapper {
    align-self: flex-start;
    margin: 2rem 1rem;
    padding: 2.5rem 3rem;
    max-width: 900px;
    width: 100%;
    background-color: var(--blue-d);
    color: var(--light);
}
.overlay-wrapper strong {
    font-size: 1.25rem;
}
.overlay-wrapper p {
    line-height: 1.5em;
}
.overlay-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.overlay-close {
    cursor: pointer;
    color: var(--orange-d);
    font-size: 0.95rem;
}


@media all and (max-width: 974px) {
    #persoenlich .flex {
        flex-direction: column;
    }
    #persoenlich .flex > * {
        width: 100% !important;
    }

    .gallery {
        margin-top: 3rem;
    }
}
@media all and (max-width: 768px) {
    .flex {
        flex-direction: column;
    }
    .flex > * {
        width: 100% !important;
    }
    
    .space-s {
        display: block;
    }

    header.section .wrapper {
        margin-bottom: 0;
    }
    header.section nav {
        display: none;
    }

    .image-series,
    .image-series img {
        width: 100%;
    }

    .extend {
        flex-direction: column;
        align-items: center;
        margin-left: -50% !important;
        width: 200% !important;
    }
    .extend img {
        width: calc(100vw - 2rem);
        transform: none;
    }
    
    footer.section .wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    footer.section form {
        margin-top: 1rem;
    }
    footer.section input {
        margin-bottom: 2rem !important;
    }

    .cards .card {
        width: 100% !important;
        margin-top: 1rem;
    }

    html {
        font-size: 15px;
    }
    h2 {
        font-size: 2.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    h4 {
        font-size: 1.5rem;
    }
    h5 {
        font-size: 1rem;
    }

    .hide-s {
        display: none;
    }
    .show-s {
        display: block;
    }

    .overlay-wrapper {
        padding: 2rem 1rem;
    }
}
@media all and (max-width: 522px) {
    html {
        font-size: 14px;
    }

    .collapse {
        position: relative;
        max-height: calc(15 * 1.5em);
        overflow: hidden;
    }
    .collapse::after {
        content: "…";
        position: absolute;
        padding: 0 0.75rem;
        bottom: 0;
        right: 0;
        background-color: var(--blue-l);
    }
    .uncollapse {
        display: flex;
        justify-content: center;
    }
    #uncollapse {
        cursor: pointer;
        color: var(--orange-d);
        font-size: 1.1em;
    }
}
@media all and (max-width: 394px) {
    html {
        font-size: 12px;
    }
}