﻿@font-face {
    font-family: "Montserrat";
    src: url("../assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../assets/fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype");
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}
:root {
    --primary-color: #101935;
    --primary-color-rgb: 16, 25, 53;
    --secondary-color: #619eab;
    --light-bg: #f2f2ef;
    --text-dark: #002855;
    --text-bright: white;

    --page-margin-left: 12vw;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--text-bright);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", sans-serif;
    line-height: 38px;
}

a {
    text-decoration: none;
}

h1 {
    font-size: 4rem;
    font-weight: bold;
    line-height: 6rem;
}

h2 {
    font-size: 70px;
    font-weight: bold;
    line-height: 84px;
}

h3 {
    font-size: 40px;
    font-weight: normal;
    line-height: 60px;
}

h4 {
    font-size: 60px;
    line-height: 67px;
}

p {
    font-size: 28px;
    line-height: 50px;
}

section {
    flex: 1;
}

.caption {
    font-family: Montserrat, serif;
    font-size: 26px;
    font-stretch: normal;
    font-style: normal;
    font-weight: normal;
    letter-spacing: 2px;
    line-height: normal;
    margin-bottom: 24px;
    text-transform: uppercase;
    color: #0e3a4f;
}

.content {
    margin-left: var(--page-margin-left);
}

/* STYLES FOR NAVBAR */
.nav {
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    background-color: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 10px 0 rgba(16, 25, 53, 0.15);
    height: 96px;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    padding: 30px var(--page-margin-left) 0 var(--page-margin-left);
}

.navbar .brand img {
    height: 48px;
    max-width: 40vw;
}

.navbar .nav-menu {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
}

.nav-menu .nav-menu-items {
    background-color: var(--text-bright);
    border: none;
    border-radius: 3px;
    box-shadow: 0 4px 10px 0 rgba(16, 25, 53, 0.3);
    /* rows follow their content, so an opened sub menu does not stretch the other items */
    grid-auto-rows: auto;
    opacity: 0;
    display: none;
    transition: all 1s;
    width: 100%;
}

.nav-menu .nav-menu-items.show {
    opacity: 1;
    display: grid;
    transition: all 1s;
}

.navbar .nav-item {
    padding: 24px 36px 24px 36px;
}

.navbar .nav-item:active {
    background-color: var(--light-bg);
}

.navbar .nav-item a {
    color: var(--text-dark);
    font-size: 36px;
    font-weight: normal;
    line-height: 48px;
    margin-left: 2px;
    margin-right: 2px;
}

.navbar .nav-item a:hover {
    font-weight: bold;
    margin: 0;
}

/* STYLES FOR SUB MENUS (mobile: accordion, the chevron button opens and closes the sub items) */
.navbar .nav-item__row {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.submenu-toggle {
    align-items: center;
    background: none;
    border: 0;
    color: var(--text-dark);
    cursor: pointer;
    display: inline-flex;
    flex: none;
    height: 48px;
    justify-content: center;
    padding: 0;
    width: 48px;
}

.submenu-chevron {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    height: 12px;
    margin-top: -4px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    width: 12px;
}

.nav-item.open > .nav-item__row .submenu-chevron {
    margin-top: 4px;
    transform: rotate(-135deg);
}

@keyframes submenu-in {
    from {
        opacity: 0;
        margin-top: -6px;
    }
    to {
        opacity: 1;
        margin-top: 0;
    }
}

.navbar .submenu {
    border-left: 2px solid rgba(var(--primary-color-rgb), 0.15);
    display: none;
    margin: 4px 36px 12px 36px;
    padding: 8px 0 8px 20px;
}

.navbar .nav-item.open > .submenu {
    display: block;
}

.navbar .submenu .nav-item {
    padding: 16px 24px;
}

.navbar .submenu .nav-item a {
    font-size: 28px;
    line-height: 38px;
}

.nav-menu .nav-icon-mobile:before {
    content: "\e5d2";
    color: var(--text-dark);
    font-family: "Material Icons", serif;
    font-size: 55px;
    text-align: center;
}

.nav-menu .nav-icon-mobile.active:before {
    content: "\e5cd";
}

/* STYLES FOR BUTTONS */
.btn {
    border-radius: 4px;
    font-family: inherit;
    line-height: 23px;
    padding: 16px 20px;
}

.btn:empty {
    display: none;
}

.btn.btn-primary {
    background-color: #0e3a4f;
    border-color: var(--primary-color);
    color: var(--text-bright);
}

.btn.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-bright);
}

.btn.btn-bright {
    background-color: var(--text-bright);
    border-color: var(--text-bright);
    border-style: none;
    color: var(--text-dark);
    cursor: pointer;
}

/* STYLES FOR HERO */
.hero {
    align-items: stretch;
    color: var(--text-bright);
    display: flex;
    justify-content: stretch;
    position: relative;
}

/* Darkening layer so bright text stays readable on photos/videos */
.hero::before,
.mission-section::before {
    background-color: rgba(0, 0, 0, 0.3);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.hero > .content-hero,
.hero > canvas {
    z-index: 1;
}

.hero-video {
    height: 60vh;
    object-fit: cover;
    width: 100%;
    z-index: -1;
}

.hero-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 60vh;
    width: 100%;
    z-index: -1;
}

/* Frosted glass panel behind hero-page and mission texts, in the look of the navigation bar (light glass,
   dark text). The text keeps the content width and left edge; the glass extends by --glass-pad around it.
   The start page hero has no glass. */
.hero-page .content-hero,
.content-mission {
    --glass-pad: clamp(16px, 4vw, 48px);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    background-color: rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(16, 25, 53, 0.15);
    color: var(--text-dark);
    text-align: left;
}

.mission-section .content-mission .caption {
    color: var(--text-dark);
}

/* Hero pages without a picture show the brand blue (the darkening layer would turn the white page grey) */
.hero-page--no-image .hero-image {
    background-color: #0e3a4f;
}

.hero-page--no-image .hero::before {
    display: none;
}

/* Hero pages without a title have no text on the image. The image is only as high as two thirds of the window,
   so the wave and the beginning of the content show up in the lower third and invite to scroll. */
.hero-page--no-title .hero-image {
    height: 60vh;
    min-height: 320px;
}

/* On desktop the hero of hero pages is not positioned (see below), so the animated wave would stick to the bottom of
   the window instead of the bottom of the shorter image. */
.hero-page.hero-page--no-title .hero {
    position: relative;
}

.content-hero {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: calc(var(--page-margin-left) - var(--glass-pad, 0px));
    padding: 32px var(--glass-pad, 0px);
    position: absolute;
    /* vertical center between the fixed header (96px) and the wave (120px) */
    top: calc(30vh - 12px);
    transform: translateY(-50%);
    width: calc(70vw + 2 * var(--glass-pad, 0px));
}

/* STYLES FOR NAVIGATION ANCHOR */
.anchor {
    top: -150px;
}

.anchor {
    display: block;
    position: relative;
    top: -80px;
    visibility: hidden;
}

.anchor-sm {
    display: block;
    position: relative;
    top: -20px;
    visibility: hidden;
}

/* STYLES FOR TEASER */
.teaser-section {
    display: flex;
    flex-direction: column;
    /* The wave of the next section is pulled up by 11% of the page width (margin-top of
       .mission-section .overlay-wave). The space below the content has to be at least that much, otherwise the
       wave lies over the buttons of the last teaser. */
    padding-bottom: max(150px, calc(11vw + 24px));
}

.teaser-section .content-teaser {
    align-items: center;
    display: flex;
    flex-direction: column-reverse;
    margin-left: var(--page-margin-left);
    margin-top: 80px;
    width: 70vw;
}

.teaser-info h2 {
    margin-bottom: 46px;
}

.teaser-info .teaser-text {
    margin-bottom: 100px;
}

.teaser-text p {
    margin-bottom: 30px;
}

.teaser-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.teaser-text ul {
    margin-left: 20px;
}

.content-teaser .teaser-image {
    background-repeat: no-repeat;
    background-size: contain;
    height: 70vw;
    margin-bottom: 100px;
    width: 70vw;
}

/* STYLES FOR MISSION */
.mission-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text-bright);
    display: flex;
    flex-direction: column;
    min-height: 800px;
    position: relative;
}

.mission-section > * {
    position: relative;
    z-index: 1;
}

.mission-section .caption {
    color: white;
}

.mission-section .overlay-wave {
    margin-bottom: -3px;
    margin-top: -11%;
}

.mission-section .overlay-wave-bottom {
    margin-bottom: -3px;
}

.content-mission {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 185px 0 77px calc(var(--page-margin-left) - var(--glass-pad));
    padding: 40px var(--glass-pad);
    width: calc(70vw + 2 * var(--glass-pad));
}

.content-mission h2 {
    margin-bottom: 56px;
}

.content-mission .text {
    width: 100%;
}

/* STYLES FOR PORTFOLIO */
.portfolio-section {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: 150px;
    text-align: center;
}

.portfolio-section h2 {
    margin-bottom: 119px;
}

.portfolio-section .caption {
    font-size: 36px;
}

.portfolio-section .overlay-wave {
    margin-bottom: -3px;
}

.portfolio-items {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    margin: 0 var(--page-margin-left) 119px var(--page-margin-left);
}

.portfolio-item {
    align-items: center;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    margin-bottom: 150px;
}

.portfolio-item .circle-image {
    background-repeat: no-repeat;
    background-size: contain;
    height: 40vw;
    margin-bottom: 80px;
    width: 40vw;
}

.portfolio-item h4 {
    margin-bottom: 63px;
    color: #0e3a4f;
}

.portfolio-item .text {
    font-weight: bold;
}

/* STYLES FOR CONTACT */
#contact-section {
    align-items: center;
    background-color: #0e3a4f;
    color: white;
    display: flex;
    flex-direction: column-reverse;
}

.content-contact-form {
    padding: 108px var(--page-margin-left) 78px var(--page-margin-left);
}

.content-contact-form h2 {
    margin-bottom: 30px;
}

.contact-form {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 40px;
}

select {
    align-self: flex-start;
}

#contact-section .content-contact-form .contact-form select,
#contact-section .content-contact-form .contact-form .form-item {
    color: var(--text-dark);
}

#contact-section .content-contact-form .contact-form select,
input,
.contact-message .form-item-message {
    border: none;
    border-radius: 3px;
    flex: 1;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 30px;
    padding: 20px;
    width: 100%;
}

#datapolicy {
    margin-bottom: 0;
    height: 10px;
    width: 10px;
    appearance: none;
    background-color: white;
}
#datapolicy:checked {
    background-color: var(--primary-color);
}

#datapolicyTick {
    pointer-events: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    font-family: "Material Icons", serif;
    font-size: 30px;
    line-height: 30px;
    text-align: center;
    padding-top: 5px;
}

#datapolicyCheckboxContainer {
    position: relative;
    font-size: 0;
    line-height: 0;
}

/* the contact section is dark blue: the link has to be white to be readable */
#datapolicy-link:link,
#datapolicy-link:visited {
    color: var(--text-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

#datapolicy-link:hover,
#datapolicy-link:focus-visible {
    text-decoration-thickness: 2px;
}

.contact-form select,
.contact-controls input,
.form-checkbox label {
    cursor: pointer;
}

select {
    appearance: none;
    -webkit-appearance: none;
    font-weight: 500;
    width: 100%;
}

.select-wrapper {
    width: 100%;
    position: relative;
}

.select-wrapper::after {
    content: "\e5cf";
    font-family: "Material Icons", serif;
    font-size: 1.5rem;
    pointer-events: none;
    position: absolute;
    right: 18px;
    top: 20%;
}

.contact-select,
.contact-sender,
.contact-message,
.contact-controls {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.contact-select select:focus,
.contact-select select:active,
.form-item:focus,
.form-item:active {
    border: none;
    border-radius: 2pt;
    box-shadow: 0 0 0 1pt var(--primary-color);
    outline: none;
    transition: 0.1s;
}

.contact-message .form-item-message {
    min-height: 185px;
}

.form-checkbox {
    align-items: center;
    display: flex;
    margin-bottom: 100px;
}

.contact-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.form-checkbox label {
    display: inline-block;
    font-size: 24px;
    padding-left: 28px;
    position: relative;
}

.contact-form .form-button {
    background-color: var(--primary-color);
    color: var(--text-bright);
    flex: 0;
    margin-bottom: 0;
}

#contact-section .img-contact-form {
    background-image: url("../assets/img/flaschenpost-orange.svg");
    background-repeat: no-repeat;
    background-size: contain;
    width: 40vw;
    height: 400px;
    margin-top: 50px;
    margin-bottom: -150px;
}

/* STYLES FOR FOOTER */
footer {
    background-image: url("../assets/img/sand-wave-overlay-footer.png");
    background-repeat: no-repeat;
    background-size: contain;
    flex: 1;
}

footer * {
    color: var(--text-bright);
    font-style: normal;
}

/* The footer wave is drawn as one piece: wave picture on top, solid sand below it. What lies behind the wave
   (white page, on the start page the dark blue contact section) shows in its valleys. The sand block of the footer
   used to start at a fixed distance and cut off the valleys on wide screens (flat spots).
   12.15vw is the height of the wave picture (1917 x 233) when it spans the page width. */
@media only screen and (min-width: 711px) {
    footer {
        background-image: url("../assets/img/sand-wave-overlay-footer.png"), linear-gradient(#eee6db, #eee6db);
        background-position: top center, bottom center;
        background-repeat: no-repeat, no-repeat;
        /* the solid part reaches 4px under the picture, whose last row is slightly transparent */
        background-size: 100% auto, 100% calc(100% - 12.15vw + 4px);
    }

    footer .content-footer {
        background-color: transparent;
        margin-top: 0;
        /* The wave grows with the page width (12.15vw). The text always starts below its lowest valley (about 90 %
           of the picture height), otherwise it lies on the white page on very wide screens. 220px is the old
           distance (110-120px margin plus 100px padding). */
        padding-top: max(220px, calc(12.15vw * 0.9 + 40px));
    }
}

.content-footer {
    background-color: #eee6db;
    display: flex;
    flex-direction: column;
    font-size: 32px;
    justify-content: space-between;
    line-height: 42px;
    margin-top: 110px;
    padding: 100px var(--page-margin-left) 125px var(--page-margin-left);
    padding-top: 100px;
}

.content-footer img {
    margin-bottom: 50px;
    width: 30vw;
}

.content-footer .nav-item {
    margin-bottom: 32px;
}

.content-footer .nav-item a {
    color: var(--primary-color);
}

.footer-address-top {
    margin-bottom: 42px;
}

.footer-address-top address {
    color: var(--primary-color);
}

.footer-address-bottom {
    display: flex;
    flex-direction: column;
}

.footer-address-bottom a {
    color: var(--primary-color);
}

/* STYLES FOR ANIMATED WAVE */
canvas {
    bottom: -2px;
    height: 120px;
    position: absolute;
    width: 100%;
}

/* STYLES FOR OVERLAY WAVE */
.overlay-wave {
    width: 100%;
}

/* decorative pictures never take clicks away from the content below them */
.overlay-wave,
.overlay-wave-bottom {
    pointer-events: none;
}

/* STYLES FOR FADE IN ANIMATION */
.animated {
    opacity: 0;
    transform: translate(0, 10vh);
    transition: all 1s;
}

.animated.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* STYLES FOR COOKIE BANNER */
.cookie-banner {
    align-items: center;
    background-color: rgba(var(--primary-color-rgb), 0.8);
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    padding: 20px 30px;
    position: fixed;
    width: 100%;
    /* above the page content and the waves (canvas, overlay waves), below the header (1000) and the mobile menu */
    z-index: 999;
}

.cookie-banner .btn.btn-bright {
    font-size: 18px;
}

p.cookie-text {
    color: var(--text-bright);
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 20px;
}

.cookie-text a {
    color: var(--text-bright);
    font-size: 16px;
    line-height: 1.75;
    text-decoration: underline;
}

/* STYLES FOR PAGE */
.page {
    margin-left: var(--page-margin-left);
    margin-top: 25%;
    width: 75vw;
}

.page h2 {
    margin-bottom: 60px;
}

/* STYLES FOR HERO PAGE */
.hero-page .content-teaser {
    flex-direction: column;
    margin-left: var(--page-margin-left);
    width: 70vw;
}

.hero-page .teaser-image {
    height: 0;
    width: 0;
}

/* STYLES FOR GALLERY PAGE (masonry below the text, lightbox) */
.gallery-section {
    margin: 80px var(--page-margin-left) 0 var(--page-margin-left);
    /* room for the wave of the footer, as in the teaser section */
    padding-bottom: max(150px, calc(11vw + 24px));
}

.gallery-text {
    margin-bottom: 60px;
    max-width: 900px;
}

.gallery-text p {
    margin-bottom: 30px;
}

.masonry {
    column-gap: 16px;
    column-width: 280px;
}

.masonry-item {
    break-inside: avoid;
    margin: 0 0 16px 0;
}

.masonry-link {
    border-radius: 12px;
    display: block;
    overflow: hidden;
}

.masonry-link img {
    display: block;
    height: auto;
    transition: transform 0.4s ease;
    width: 100%;
}

.masonry-link:hover img,
.masonry-link:focus-visible img {
    transform: scale(1.03);
}

.masonry-item figcaption {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 6px;
}

.lightbox {
    background: transparent;
    border: 0;
    height: 100vh;
    max-height: 100vh;
    max-width: 100vw;
    padding: 0;
    width: 100vw;
}

.lightbox[open] {
    align-items: center;
    display: flex;
    justify-content: center;
}

.lightbox::backdrop {
    background-color: rgba(var(--primary-color-rgb), 0.92);
}

.lightbox figure {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.lightbox img {
    border-radius: 8px;
    max-height: 85vh;
    max-width: 86vw;
    object-fit: contain;
}

.lightbox figcaption {
    color: var(--text-bright);
    font-size: 16px;
    margin-top: 12px;
    text-align: center;
}

.lightbox button {
    background: transparent;
    border: 0;
    color: var(--text-bright);
    cursor: pointer;
    font-size: 48px;
    line-height: 1;
    padding: 8px 14px;
    position: absolute;
}

.lightbox-close {
    right: 12px;
    top: 12px;
}

.lightbox-prev {
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox button[hidden] {
    display: none;
}

/* STYLES FOR ERROR PAGE */
.error-content {
    display: flex;
    justify-content: center;
    height: 80vh;
    padding-top: 15vh;
    width: 100%;
}

.error-content h2 {
    margin: 0 10vw;
}

@media only screen and (max-width: 710px) {
    footer {
        background-size: auto;
    }
}

@media only screen and (min-width: 1200px) {
    h1 {
        font-size: 85px;
        line-height: 120px;
        margin-bottom: 36px;
    }
}

@media only screen and (min-width: 1025px) {
    :root {
        --page-margin-left: 17vw;
    }

    body {
        font-size: 18px;
        line-height: 30px;
    }

    h1 {
        font-size: 65px;
        line-height: 95px;
        margin-bottom: 24px;
    }

    h2 {
        font-size: 55px;
        line-height: 67px;
    }

    h4 {
        font-size: 28px;
        line-height: 36px;
    }

    p {
        font-size: 18px;
        line-height: 30px;
    }

    /* STYLES FOR NAVBAR */
    .navbar {
        justify-content: space-around;
        padding: 30px 0 0 0;
    }

    .navbar .brand {
        margin-top: -10px;
    }

    .navbar .brand img {
        max-height: 62px;
        max-width: 20vw;
    }

    .navbar .nav-menu {
        display: contents;
    }

    .nav-menu .nav-menu-items {
        background: none;
        box-shadow: none;
        display: flex;
        justify-content: space-evenly;
        opacity: 1;
        text-align: center;
        width: 45vw;
    }

    .navbar .nav-item {
        padding: 0;
    }

    .navbar .nav-item:active {
        background: none;
    }

    .navbar .nav-item a {
        font-size: 22px;
        line-height: 25px;
    }

    /* STYLES FOR SUB MENUS (desktop: dropdown on hover, keyboard focus or click on the chevron) */
    .navbar .nav-item {
        position: relative;
    }

    .navbar .nav-item__row {
        gap: 2px;
        justify-content: center;
    }

    .submenu-toggle {
        height: 28px;
        width: 24px;
    }

    .submenu-chevron {
        height: 8px;
        margin-top: -3px;
        width: 8px;
    }

    .nav-item.open > .nav-item__row .submenu-chevron {
        margin-top: 3px;
    }

    /* The sub menu uses the same glass material as the navigation bar. A nested backdrop-filter does not blur
       inside the (already blurred) bar, so the panel is a bit more opaque instead. */
    .navbar .submenu {
        animation: submenu-in 0.18s ease-out;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 246, 249, 0.82));
        border: 1px solid rgba(255, 255, 255, 0.7);
        border-radius: 14px;
        box-shadow: 0 12px 32px 0 rgba(16, 25, 53, 0.18), 0 2px 6px 0 rgba(16, 25, 53, 0.08);
        margin: 0;
        /* as wide as the longest entry, but at least as wide as the menu item itself */
        min-width: 100%;
        padding: 8px;
        position: absolute;
        /* right edge in line with the right edge of the menu item (end of the chevron) */
        right: 0;
        text-align: left;
        top: calc(100% + 18px);
        width: max-content;
        z-index: 1001;
    }

    /* keeps the sub menu open while the mouse moves from the item to the sub menu */
    .navbar .submenu::before {
        content: "";
        height: 18px;
        left: 0;
        position: absolute;
        right: 0;
        top: -18px;
    }

    .navbar .nav-item.has-submenu:hover > .submenu,
    .navbar .nav-item.has-submenu:focus-within > .submenu {
        display: block;
    }

    .navbar .submenu .nav-item {
        padding: 0;
        white-space: nowrap;
    }

    .navbar .submenu .nav-item__row {
        justify-content: flex-start;
    }

    .navbar .submenu .nav-item a {
        border-radius: 8px;
        display: block;
        flex: 1;
        font-size: 17px;
        font-weight: 500;
        line-height: 24px;
        margin: 0;
        padding: 10px 16px;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .navbar .submenu .nav-item a:hover,
    .navbar .submenu .nav-item a:focus-visible {
        background-color: rgba(var(--primary-color-rgb), 0.08);
        font-weight: 500;
        outline: none;
    }

    .nav-menu .nav-icon-mobile {
        display: none;
    }

    /* STYLES FOR NAVIGATION ANCHOR */
    .anchor {
        top: -150px;
    }

    .anchor-sm {
        top: -50px;
    }

    /* STYLES FOR BUTTONS */
    .btn {
        padding: 11px 15px;
    }

    /* STYLES FOR HERO */
    .hero-video {
        height: 96vh;
    }

    .hero-image {
        height: 96vh;
    }

    .hero-page--no-title .hero-image {
        height: 68vh;
    }

    .content-hero {
        top: calc(48vh - 12px);
    }

    /* STYLES FOR TEASER */
    .teaser-section .content-teaser {
        flex-direction: row;
        justify-content: space-between;
    }

    .teaser-info .teaser-text {
        margin-bottom: 74px;
        width: 38vw;
    }

    .content-teaser .teaser-image {
        background-repeat: no-repeat;
        background-size: contain;
        height: 25vw;
        margin-bottom: 0;
        width: 25vw;
    }

    .teaser-section .overlay-wave {
        margin-top: 190px;
        margin-bottom: -233px;
    }

    /* STYLES FOR MISSION */
    /* STYLES FOR PORTFOLIO */
    .portfolio-section {
        margin-top: 34px;
    }

    .portfolio-section .caption {
        font-size: 26px;
    }

    .portfolio-items {
        flex-direction: row;
        justify-content: space-between;
        width: 65vw;
    }

    .portfolio-item {
        margin-bottom: 0;
        padding: 20px;
        width: 15vw;
    }

    .portfolio-item:hover {
        background-color: var(--light-bg);
        border-radius: 3px;
    }

    .portfolio-item .circle-image {
        background-repeat: no-repeat;
        background-size: contain;
        height: 180px;
        margin-bottom: 42px;
        width: 180px;
    }

    /* STYLES FOR CONTACT */
    #contact-section {
        flex-direction: row;
        justify-content: space-between;
    }

    .content-contact-form {
        margin-left: var(--page-margin-left);
        margin-top: 108px;
        padding: 0;
        width: 48vw;
        padding-bottom: 200px;
    }

    #contact-section .content-contact-form .contact-form select,
    input,
    .contact-message .form-item-message {
        padding: 15px;
    }

    #contact-section .content-contact-form .contact-form select,
    input {
        margin-bottom: 30px;
    }

    #datapolicy {
        margin-bottom: 0;
    }

    #datapolicyTick {
        padding-top: 0;
    }

    .select-wrapper {
        width: 296px;
    }

    .select-wrapper::after {
        top: 15%;
    }

    .contact-select,
    .contact-sender,
    .contact-message,
    .contact-controls {
        flex-direction: row;
        justify-content: space-between;
    }

    .contact-form .form-item-name {
        margin-right: 12px;
    }

    .contact-form .form-item-email {
        margin-left: 12px;
    }

    .contact-message {
        margin-bottom: 23px;
    }

    .form-checkbox {
        margin-bottom: 0;
    }

    .form-checkbox label {
        font-size: 18px;
        line-height: 30px;
        padding-left: 18px;
    }

    .form-checkbox label:before {
        height: 30px;
        line-height: 30px;
        width: 30px;
    }

    .form-checkbox input[type="checkbox"]:checked + label:before,
    .form-checkbox label:hover:before {
        font-size: 25px;
        line-height: 30px;
    }

    #contact-section .img-contact-form {
        height: 382px;
        margin-right: 150px;
        margin-top: 0;
        width: 192px;
    }

    /* STYLES FOR FOOTER */
    footer {
        margin-top: -150px;
    }

    .content-footer {
        flex-direction: row;
        font-size: 18px;
        line-height: 30px;
        margin-top: 120px;
        padding: 100px var(--page-margin-left) 125px var(--page-margin-left);
    }

    .content-footer img {
        margin-bottom: 0;
        width: 20vw;
    }

    /* STYLES FOR HERO PAGE */
    .hero-page .hero {
        padding-bottom: 0;
        position: static;
    }

    .hero-page .content-teaser {
        flex-direction: column;
        margin-left: var(--page-margin-left);
    }

    .hero-page .teaser-text {
        width: 65vw;
    }

    /* STYLES FOR PAGE */
    .page {
        margin-left: var(--page-margin-left);
        margin-top: 15%;
        width: 65vw;
    }

    /* STYLES FOR COOKIE BANNER */
    .cookie-banner {
        flex-direction: row;
        padding: 40px 70px;
    }

    .cookie-banner .btn.btn-bright {
        font-size: 16px;
    }

    p.cookie-text {
        font-size: 16px;
        margin-bottom: 0;
        margin-right: 40px;
    }

    /* STYLES FOR ERROR PAGE */
    .error-content {
        padding-top: 35vh;
    }

    .error-content h2 {
        margin: 0 var(--page-margin-left);
    }
}

@media only screen and (max-width: 1024px) {
    .content-hero {
        align-items: flex-start;
    }
    h1 {
        margin-top: 10px;
        font-size: 35px;
        line-height: 30px;
        margin-bottom: 20px;
    }
    h3 {
        font-size: 25px;
        line-height: 40px;
    }
}

@media only screen and (max-height: 650px) {
    canvas {
        height: 100px;
    }
}

@media only screen and (max-height: 650px) {
}

@media only screen and (min-width: 1100px) {
    /* STYLES FOR FOOTER */
    footer {
        margin-top: -150px;
    }

    .content-footer {
        flex-direction: row;
        font-size: 18px;
        line-height: 30px;
        margin-top: 130px;
        padding: 100px var(--page-margin-left) 125px var(--page-margin-left);
    }
}
@media only screen and (min-width: 1250px) {
    .teaser-section .overlay-wave {
        margin-bottom: -155px;
    }
    /* STYLES FOR FOOTER */
    .content-footer {
        margin-top: 150px;
    }
}
@media only screen and (min-width: 1580px) {
    .teaser-section .overlay-wave {
        margin-bottom: -183px;
    }
    /* STYLES FOR FOOTER */
    .content-footer {
        margin-top: 190px;
    }
}

@media only screen and (min-width: 1760px) {
    .teaser-section .overlay-wave {
        margin-bottom: -233px;
    }
    /* STYLES FOR FOOTER */
    .content-footer {
        margin-top: 210px;
    }
}
