@font-face {
    font-family: "GratoGrotesk";
    src: url("../fonts/gratogroteskregular-webfont.woff2") format("woff2"),
        url("../fonts/gratogroteskregular-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    text-rendering: optimizeLegibility;
    font-display: swap;
}

@font-face {
    font-family: "GratoGrotesk";
    src: url("../fonts/gratogroteskbold-webfont.woff2") format("woff2"),
        url("../fonts/gratogroteskbold-webfont.woff") format("woff");
    font-weight: bold;
    font-style: bold;
    text-rendering: optimizeLegibility;
    font-display: swap;
}

:root {
    --clr-light: white;
    --clr-dark: black;
    --clr-primary: #784EEC;
    --clr-secondary: #F237A3;

    /* @link https://utopia.fyi/type/calculator?c=320,16,1.2,1240,18,1.25,6,1,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

    --step--1: clamp(0.8333rem, 0.7754rem + 0.2899vi, 1rem);
    --step-0: clamp(1rem, 0.913rem + 0.4348vi, 1.25rem);
    --step-1: clamp(1.2rem, 1.0739rem + 0.6304vi, 1.5625rem);
    --step-2: clamp(1.44rem, 1.2615rem + 0.8924vi, 1.9531rem);
    --step-3: clamp(1.728rem, 1.4799rem + 1.2407vi, 2.4414rem);
    --step-4: clamp(2.0736rem, 1.7334rem + 1.7011vi, 3.0518rem);
    --step-5: clamp(2.4883rem, 2.027rem + 2.3067vi, 3.8147rem);
    --step-6: clamp(2.986rem, 2.366rem + 3.0998vi, 4.7684rem);
    --step-7: clamp(3.5832rem, 2.7563rem + 4.1344vi, 5.9605rem);
    --step-8: clamp(4.2998rem, 3.2039rem + 5.4796vi, 7.4506rem);

    --space-3xs: clamp(0.25rem, 0.2283rem + 0.1087vi, 0.3125rem);
    --space-2xs: clamp(0.5rem, 0.4565rem + 0.2174vi, 0.625rem);
    --space-xs: clamp(0.75rem, 0.6848rem + 0.3261vi, 0.9375rem);
    --space-s: clamp(1rem, 0.913rem + 0.4348vi, 1.25rem);
    --space-m: clamp(1.5rem, 1.3696rem + 0.6522vi, 1.875rem);
    --space-l: clamp(2rem, 1.8261rem + 0.8696vi, 2.5rem);
    --space-xl: clamp(3rem, 2.7391rem + 1.3043vi, 3.75rem);
    --space-2xl: clamp(4rem, 3.6522rem + 1.7391vi, 5rem);
    --space-3xl: clamp(6rem, 5.4783rem + 2.6087vi, 7.5rem);

    /* One-up pairs */
    --space-3xs-2xs: clamp(0.25rem, 0.1196rem + 0.6522vi, 0.625rem);
    --space-2xs-xs: clamp(0.5rem, 0.3478rem + 0.7609vi, 0.9375rem);
    --space-xs-s: clamp(0.75rem, 0.5761rem + 0.8696vi, 1.25rem);
    --space-s-m: clamp(1rem, 0.6957rem + 1.5217vi, 1.875rem);
    --space-m-l: clamp(1.5rem, 1.1522rem + 1.7391vi, 2.5rem);
    --space-l-xl: clamp(2rem, 1.3913rem + 3.0435vi, 3.75rem);
    --space-xl-2xl: clamp(3rem, 2.3043rem + 3.4783vi, 5rem);
    --space-2xl-3xl: clamp(4rem, 2.7826rem + 6.087vi, 7.5rem);

    /* Custom pairs */
    --space-s-l: clamp(1rem, 0.4783rem + 2.6087vi, 2.5rem);

    --contain: 900px;
    --contain-text: 80ch;

    --ease: cubic-bezier(0.645, 0.045, 0.355, 1);

    --titleLineHeight: 1.1;
    --defaultLineHeight: 1.4;

    --gutter: var(--space-s-m, clamp(1rem, 0.4975rem + 2.5126vw, 2.25rem));

    --ease: cubic-bezier(0.645, 0.045, 0.355, 1);

    --flow: var(--space-m-l);
    --flow-s: var(--space-s-m);
    --flow-xs: var(--space-3xs-2xs);

    --system-ui: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

html {
    height: 100%;
    font-family: "GratoGrotesk", var(--system-ui);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-margin-top: var(--flow);
    scrollbar-gutter: stable;
    line-height: 1.3;
}

body.preload>* {
    transition: none !important;
}

@media screen and (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    scrollbar-gutter: stable;
}

address {
    font-style: normal;
}

a,
button {
    outline-offset: var(--outline);
    outline-color: var(--clr-dark);
    outline-width: 1px;
}

::-moz-selection {
    color: var(--clr-light);
    background-color: var(--clr-secondary);
}

::selection {
    color: var(--clr-light);
    background-color: var(--clr-secondary);
}

.hideOnLandscape {
    visibility: visible;
}

@media (orientation: landscape) {
    .hideOnLandscape {
        visibility: hidden;
    }
}

.skip {
    left: -100%;
    position: absolute;
    z-index: 3;
    font-size: var(--step-0);
    width: auto;
}

.skip:focus-visible {
    left: .5rem;
    top: .5rem;
}

.flow>*+* {
    margin-block-start: var(--flow, 1em);
}

.flow-s>*+* {
    margin-block-start: var(--flow-s, 0.75em);
}

.flow-xs>*+* {
    margin-block-start: var(--flow-xs, 0.5em);
}

.content-grid {
    --padding-inline: var(--gutter);
    --content-max-width: var(--contain, 80ch);
    --breakout-max-width: calc(var(--content-max-width, 80ch) * 1.4);
    --content-size: min(100% - (var(--padding-inline) * 2),
            var(--content-max-width));
    --breakout-size: calc((var(--breakout-max-width) - var(--content-max-width)) / 2);

    display: grid;

    grid-template-columns:
        [full-width-start] minmax(var(--padding-inline), 1fr) [breakout-start] minmax(0, var(--breakout-size)) [content-start] var(--content-size) [content-end] minmax(0, var(--breakout-size)) [breakout-end] minmax(var(--padding-inline), 1fr) [full-width-end];

    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.content-grid> :not(.breakout, .full-width),
.full-width> :not(.breakout, .full-width) {
    grid-column: content;
}

.content-grid>.breakout {
    grid-column: breakout;
}

.content-grid>.breakout-left {
    grid-column: breakout / content;
}

.content-grid>.breakout-right {
    grid-column: content / breakout;
}

.content-grid>.full-left {
    grid-column: full-width / content;
}

.content-grid>.full-right {
    grid-column: content / full-width;
}

.content-grid>.full-width {
    grid-column: full-width;
}

/* typography */
.step-8 {
    font-size: var(--step-8);
}

.step-7 {
    font-size: var(--step-7);
}

.step-6 {
    font-size: var(--step-6);
}

.step-5 {
    font-size: var(--step-5);
}

.step-4 {
    font-size: var(--step-4);
}

.step-3 {
    font-size: var(--step-3);
}

.step-2 {
    font-size: var(--step-2);
}

.step-1 {
    font-size: var(--step-1);
}

.step-0 {
    font-size: var(--step-0);
}

.step--1 {
    font-size: var(--step--1);
}

/* images */
picture img,
img {
    user-select: none;
    max-width: 100%;
    height: auto;
    /* Removes the empty space on the bottom without using 'display'. */
    vertical-align: middle;
    /* If image doesn't load, the alt text is visible in italic. */
    font-style: italic;
    /* Used on images with LQIP backgrounds: see snippet 'image-with-lqip'. */
    background-repeat: no-repeat;
    background-size: cover;
    /* In case you are using 'float' on the image. */
    shape-margin: 1rem;
}

.image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.lqip {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.tap-highlight {
    -webkit-tap-highlight-color: transparent;
}

a:visited,
a:focus,
a {
    color: inherit;
}

/* sprachauswahl */
.sprachauswahl {
    position: absolute;
    top: var(--gutter);
    right: var(--gutter);
    background-color: var(--clr-light);
}

.languages {
    display: flex;
    flex-wrap: nowrap;
    gap: calc(var(--gutter) * .5);
    color: rgb(165, 165, 165);
    font-weight: bold;
}

.language.active {
    color: var(--clr-primary);
}

.hero {
    user-select: none;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr) auto;

    padding-top: calc(var(--gutter) * 6);
    margin-bottom: var(--gutter);
}

@media screen and (min-width: 768px) {
    .hero {
        padding-top: calc(var(--gutter) * 6);
    }
}

.logo {
    position: absolute;
    top: var(--gutter);
    left: var(--gutter);

    width: 100%;
    max-width: 150px;
}

@media screen and (min-width: 768px) {
    .logo {
        max-width: 250px;
    }
}

.hero-background {
    background-color: var(--clr-primary);
    grid-column: 1 / 12;
    grid-row: 1 / 3;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .hero-background {
        grid-column: 1 / 12;
        grid-row: 1 / 3;
    }
}

.hero-bild {
    display: block;
    grid-column: 2 / 13;
    grid-row: 1 / 2;

    width: 100%;
    height: 100%;
    object-fit: cover;

    position: relative;
    top: -1rem;
}

@media screen and (min-width: 768px) {
    .hero-bild {
        grid-column: 2 / 13;
        grid-row: 1 / 2;
        top: 0;
    }
}

.hero-text {
    grid-column: 1 / 12;
    grid-row: 2 / 3;
    color: var(--clr-light);

    position: relative;
    left: var(--gutter);
    top: -3.2rem;
}

@media screen and (min-width: 768px) {
    .hero-text {
        grid-column: 3 / 10;
        grid-row: 2 / 3;
        top: -2.2rem;
    }
}

.hero-titel {
    font-size: var(--step-6);
    font-weight: bold;
    line-height: 1;
    max-width: 10ch;
}

.content-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gutter);
}

@media screen and (min-width: 768px) {
    .content-block {
        grid-template-columns: minmax(10rem, var(--width, 1fr)) minmax(0, 4fr);
    }
}

.content-block .left {
    color: var(--clr-primary);
    font-weight: bold;
}

.content-block .left span {
    display: block;
    max-width: 20ch;
}

@media screen and (min-width: 768px) {
    .content-block .left span {
        max-width: 15ch;
    }
}

.content-block .left img {
    margin-top: var(--gutter);
    max-width: 150px;
}

.content-block .right {
    max-width: var(--contain-text);
}

.content-block .right ul {
    list-style-type: disc;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: var(--flow-xs);
}

.content-block .right ul li::marker {
    content: "– ";
}

.info-banner {
    border: none;
    background-color: var(--clr-primary);
    color: var(--clr-light);

    display: flex;
    flex-direction: column;
    overflow: hidden;

    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 1024px) {
    .info-banner {
        max-width: 100%;
        flex-direction: row;
    }
}

.info-banner>div {
    width: 100%;
}

.info-banner>div:nth-child(1) {
    flex-basis: 44%;
    font-weight: bold;
}

.info-banner>div:nth-child(2) {
    flex-basis: 66%;
}

.info-banner>div:nth-child(1),
.info-banner>div:nth-child(2) {
    padding: var(--gutter);
}

.info-banner-bild {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--gutter);
}

@media screen and (min-width: 1024px) {
    .info-banner-bild {
        padding: 0;
        aspect-ratio: 95 / 66;
    }
}

.info-banner-logo {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 33%;
    display: block;
    opacity: .15;
}

@media screen and (min-width: 1024px) {
    .info-banner-logo {
        display: block;
        width: 100%;
        top: unset;
        right: unset;
        bottom: -25%;
        left: -12.5%;
        opacity: 1;
    }
}

.team-list {
    top: 2rem;
    display: flex;
    flex-wrap: nowrap;
    gap: calc(var(--gutter) * .5);
    background-color: transparent;
    position: relative;
    justify-content: space-between;
}

@media screen and (min-width: 768px) {
    .team-list {
        justify-content: flex-start;
        top: 4rem;
        gap: var(--gutter);
    }
}

.team-bild {
    aspect-ratio: 32 / 58;
    width: auto;
    max-width: 100px;
}

@media screen and (min-width: 1024px) {
    .team-bild {
        max-width: 150px;
    }
}

.breakout-bild {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    height: auto;
}

@media screen and (min-width: 768px) {
    .breakout-bild {
        aspect-ratio: 168 / 65;
    }
}

.breakout-bild-2 {
    width: 70%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
}

@media screen and (min-width: 768px) {
    .breakout-bild-2 {
        aspect-ratio: 145 / 42;
    }
}

.breakout-2 {
    overflow: hidden;
    width: 100%;
    position: relative;
    background-color: var(--clr-primary);
}

.breakout-logo-2 {
    transform: rotate(-15deg);
    width: 40%;
    position: absolute;
    top: -25%;
    right: -5%;
}

.contact-banner {
    background-color: var(--clr-primary);

    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: var(--flow);
}

@media screen and (min-width: 768px) {
    .contact-banner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 4fr);
    }
}

.contact-banner-logo {
    padding: var(--gutter);
    max-width: 25%;
}

@media screen and (min-width: 768px) {
    .contact-banner-logo {
        max-width: 100%;
    }
}

.contact-banner-text {
    font-size: var(--step-0);
    padding: var(--gutter);
    color: var(--clr-light);
}