:root {
    --nav-height: 150px;
    --footer-height: 200px;
}

html {
    --background: #fff;
    --text: #000;
    --dominant-text: #fff;
    --accent: #DF102B;
    --dominant: rgb(8, 75, 131);
    --dominant-selection: rgb(8, 75, 131, .996); 
}

* {
    box-sizing: border-box;
    font-family: "Neue Haas Grotesk Text", Arial, Helvetica, sans-serif;
}

/* ::selection und ::-moz-selection müssen getrennt bleiben, da Chrome sonst faxen macht */
::selection {
    background: var(--dominant);
    color: #ffffff;
    text-shadow: none;
}

::-moz-selection {
    background: var(--dominant);
    color: #ffffff;
    text-shadow: none;
}

.blue::selection, .blue *::selection {
    background: var(--accent);
    color: #ffffff;
    text-shadow: none;
}

.blue::-moz-selection, .blue *::-moz-selection {
    background: var(--accent);
    color: #ffffff;
    text-shadow: none;
}

body {
    margin: 0;

    font-family: "Neue Haas Grotesk Text", Arial, Helvetica, sans-serif;
    font-weight: 400;
    color: var(--text);
    font-size: 3rem
}

button {
    position: relative;
    border: 2px solid var(--dominant);
    padding: 1rem 2rem;
    font-size: 1rem;
    background-color: transparent;
    cursor: pointer;

    color: black;
    z-index: 900;
    transition: color 0.3s ease-in-out, scale 150ms ease-in-out;
}

button:hover {
    color: white;
}

button:active {
    scale: .95;
}

button::after {
    content: '';
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 100%;
    background-color: var(--dominant);
    transition: right 0.3s ease-in-out;
}

button:hover::after {
    right: 0;
}

button svg {
    height: .7em;
    width: .7em;
    margin-left: 2rem;
}

nav {
    height: var(--nav-height);
}

footer {
    height: var(--footer-height);
    background: var(--dominant);
    color: var(--dominant-text);
    font-size: 1.5rem;
    font-family: "Neue Haas Grotesk Display", Arial, Helvetica, sans-serif;
    font-weight: 300;
}

nav, footer, main, section.legal-infos {
    width: 100vw;
    position: relative;
}

nav, footer {
    display: grid;
    place-items: center;
}

.peaks-wrapper {
    height: calc(100vw / 1440 * 266);
    width: 100%;
    position: relative;
}

.peaks {
    position: absolute;
    width: 100vw;
    bottom: -1px;
    left: 0;
    z-index: -1;
}

.logo {
    height: 50px;
}

section {
    position: relative;
}

section.hero {
    width: 100%;
    height: calc(100vh - var(--nav-height));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: var(--nav-height);
}

section.legal-infos, section.blue {
    background: var(--dominant);
    color: var(--dominant-text);
    padding: 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Neue Haas Grotesk Display", Arial, Helvetica, sans-serif;
    font-weight: 300;
}

h4, h5, h6 {
    margin: 0;
}

.hero > h1 {
    font-size: clamp(60px, 7vw, 100px);
    font-weight: 300;
    margin: 0;
    text-align: center
}

.hero > p {
    margin: 0;
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 400;
    font-family: "Neue Haas Grotesk Display", Arial, Helvetica, sans-serif;
    max-width: 600px;
    text-align: center;
    display: block
}

.red {
    color: var(--accent);
}

.flex {
    display: flex;
}

.flex.row {
    flex-direction: row;
}

.flex.column {
    flex-direction: column;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: right;
}

.p-2 {
    padding: 2rem;
}

.pi-2 {
    padding-inline: 2rem;
}

.pt-2 {
    padding-top: 2rem;
}

.w-100 {
    width: 100%
}

p {
    font-size: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: min-content;
}

.specialities {
    scroll-snap-align: start;
}

.specialities-text, .about .header {
    position: absolute;
    top: 0;
    left: 0;
    margin-left: 8rem;
}

.specialities-text h1 {
    margin-top: 0;
    margin-bottom: 3rem;
}

.specialities-grid {
    margin: 4rem 4rem 4rem auto;
}

.speciality-box {
    --color: black;
    position: relative;
    width: 400px;
    height: 400px;
    box-sizing: border-box;
    border: 5px solid var(--color);

    display: flex;
    justify-content: end;
    align-items: end;
    padding: 20px;
    text-align: right;
    font-size: 2rem;
}

.speciality-box span {
    max-width: 400px;
}

.speciality-box p.description {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    text-align: left;
    margin: 0;
    color: transparent;
    transition: color 0.3s ease-in-out;
}

.speciality-box:hover p.description {
    color: #000;
}

.br, .tr, .bl {
    transition: scale 0.3s ease-in-out;
}

.br {
    transform-origin: top left;
}

.tr {
    transform-origin: bottom left;
}

.bl {
    transform-origin: top right;
}

.br:hover {
    scale: 1.1;
}

.tr:hover {
    scale: 1.1;
}

.bl:hover {
    scale: 1.1;
}

.bold {
    font-weight: 700;
}

.about {
    display: grid;
    place-items: center;
    padding-block: 250px;
}

.employee-card {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    margin: 4rem;
}

.employee-card h3 {
    margin: 1rem 0;
}

.employee-card img {
    height: 250px;
    width: 250px;
}

.employee-card p {
    max-width: 500px;
}

#cursor-pendant, #backdrop-filter {
    transition: transform 100ms ease-out, opacity 0ms linear 100ms;
    opacity: 0;
}

#cursor-pendant {
    width: 50px;
    height: 50px;
    background-color: #20efd4;
    pointer-events: none;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: -1;
}

#backdrop-filter {
    position: fixed;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    backdrop-filter: invert(100%);
    z-index: 900;
    pointer-events: none;
}

object {
    pointer-events: none;
}

.no-filter {
    z-index: 1000;
}

.rel {
    position: relative;
}

.portrait {
    width: min-content;
    height: min-content;
    padding: 20px;
    width: 290px;
    height: 290px;
    aspect-ratio: 1/1;
}

.portrait img {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

#img-deco:first-of-type {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100px;
    height: 100px;
    z-index: -1;
    background-color: var(--accent);
    pointer-events: none;
}

#img-deco:nth-of-type(2) {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 100px;
    height: 100px;
    z-index: -1;
    background-color: var(--dominant);
    pointer-events: none;
}

a {
    color: white;
    text-decoration: none;
    font-weight: normal;
}


@media (max-width: 943px)
{
    .specialities-text {
        position: relative;
        margin: auto;
        width: 400px;
    }

    .specialities-grid {
        grid-template-columns: 1fr;
        margin: 4rem auto;
    }

    .br:hover, .tr:hover, .bl:hover {
        scale: 1;
    }

    .employee-card {
        flex-direction: column;
        gap: 2rem;
    }

    .about .header {
        left: 0;
        right: 0;
        text-align: center;
        margin: 0;
    }
}

@media (max-width: 850px)
{
    .logo {
        height: 40px;
    }

    :root {
        --nav-height: 100px;
    }
}

@media (max-width: 587px)
{
    section.legal-infos .flex.row {
        flex-direction: column;
    }

    section.legal-infos .text-right {
        text-align: left;
    }
}

@media (max-width: 425px)
{
    .speciality-box {
        width: 90vw;
        height: 90vw;
        font-size: 7.2vw;
    }

    .specialities-text {
        width: 90vw;
        padding-inline: 2rem;
    }

    .employee-card {
        margin: 2rem;
    }
}

@media (pointer: coarse) {
    #cursor-pendant, #backdrop-filter {
        display: none;
    }

    .speciality-box:active p.description {
        color: #000;
    }
}