:root {
    --text: #212322;
    --text-hover: #1e201f;
    --text-active: #1a1c1b;
    --background: #ffffff;
    --primary: #d6001a;
    --primary-hover: #c10017;
    --primary-active: #ab0015;
    --secondary: #c8c9c7;
    --secondary-hover: #1e201f;
    --secondary-active: #1a1c1b;
    --accent: #b80000;
    --accent-hover: #a60000;
    --accent-active: #930000;
    --black: #0a0a0a;
    --white: #ffffff;
}


@font-face {
    font-family: Urbanist;
    src: url(../assets/fonts/Urbanist/Urbanist-VariableFont_wght.ttf);
    font-display: swap;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    font-synthesis: none;
}


header {
    box-sizing: border-box;
    padding-top: 1rem;
    position: sticky;
    top: -16px;
    background-color: var(--white);
    z-index: 10;
    width: 100%;

    .col-12-grid {
        max-width: 1252px;
        margin: 0 auto;
        row-gap: 0 !important;
    }

    .logo-wrapper {
        display: block;
        width: fit-content;
        height: 5rem;

        a {
            position: relative;
        }

        .logo {
            position: absolute;
            top: 0;
            left: 0;
        }

        .logo-mobile {
            opacity: 0;
            transition: all 0.2s ease-in-out;
            transform: translatey(150%);

            &.scrolled {
                opacity: 1;

            }
        }

        .logo-desktop {
            transition: all 0.2s ease-in-out;

            &.scrolled {
                opacity: 0;
            }
        }
    }
}



.mobile-nav {
    display: none;

}

.hamburger-menu {
    display: none;
    height: 16px;
    width: 48px;
    position: absolute;
    right: 16px;
    top: 48px;
    cursor: pointer;
    justify-content: space-between;

    div {
        height: 4px;
        width: 100%;
        background-color: var(--primary);
        transition: 100ms transform linear;
    }

    &.active {
        div:nth-child(1) {
            transform: translate(0, 6px) rotate(45deg);
        }

        div:nth-child(2) {
            transform: translate(0, -6px) rotate(-45deg);
        }
    }
}

body {
    font-family: Urbanist;
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    background-color: var(--white);
    margin: 0 auto;
}

main {
    padding: 0 16px;
}

footer {
    border: 5px solid var(--black);
    width: 100%;
    padding: 24px 0;
    box-sizing: border-box;


    a {
        color: var(--text);
    }

    .d-flex {
        gap: 1rem;
    }

    .footer-content {
        /* max-width: 1252px; */
        width: 100%;
        margin: 0 auto;
        margin-top: 32px;
        grid-template-columns: repeat(3, 1fr);

        .contact {
            align-items: start;
        }

        .links {
            align-items: end;
        }
    }

    i {
        font-size: 2rem;

        &.fa-copyright {
            font-size: 1rem;
        }
    }
}



h1,
h2,
h3,
h4,
h5 {
    font-family: 'Urbanist';
    font-weight: 700;
    margin: 0;
}

p {
    margin: 0;
}

html {
    font-size: 100%;
}

/* 16px */

h1 {
    font-size: 4.210rem;

    /* 67.36px */
}

h2 {
    /* font-size: 3.158rem; */
    font-size: clamp(2.488rem, 4vw, 3.158rem);

    /* 50.56px */
}

h3 {
    /* font-size: 2.369rem; */
    font-size: clamp(2.074rem, 3vw, 2.369rem);
    /* 37.92px */
}

h4 {
    /* font-size: 1.777rem; */
    font-size: clamp(1.728rem, 2vw, 1.777rem);

    /* 28.48px */
}

h5 {
    font-size: 1.333rem;

    /* 21.28px */
}

small {
    font-size: 0.750rem;
    /* 12px */
}

/* standart candidate */
.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

/* standart candidate */
.fd-col {
    flex-direction: column;
}

/* standart candidate */
.align-center {
    align-items: center;
}

/* standart candidate */
.justify-center {
    justify-content: center;
}

/* standart candidate */
.col-12-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
}

.w-100 {
    width: 100%;
}

.above-the-fold {
    .headline {
        font-size: clamp(3.584rem, 10vw, 6.71rem) !important;
    }
}

.color-change {
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.black-background {
    background-color: black;
    color: var(--white);
}

a.black-background {
    color: var(--white) !important;
    background-color: transparent !important;

}
/* Base link styles */
a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.1s ease-in-out;

    &:hover {
        color: var(--primary-hover);
    }

    &:active {
        color: var(--primary-active);
    }

    img {
        display: block;
    }
}

/* .aos {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;  
}

.show {
    opacity: 1;
} */


.cta-button-primary {
    display: inline-block;
    padding: 0.75em 1.25em;
    font-size: 1em;
    color: white;
    background-color: var(--primary);
    border: none;
    cursor: pointer;
    text-decoration: none;

    &:hover {
        background-color: var(--primary-hover);
        color: white;
    }

    &:active {
        background-color: var(--primary-active);
        color: white;
    }
}

.cta-button-secondary {
    display: inline-block;
    padding: 0.75em 1.25em;
    font-size: 1em;
    color: var(--primary);
    background-color: white;
    border: 2px solid var(--primary);
    cursor: pointer;
    text-decoration: none;

    &:hover {
        background-color: var(--primary-hover);
        color: white;
    }

    &:active {
        background-color: var(--primary-active);
        color: white;
    }
}

nav {
    grid-column: 7/span 6;
    justify-self: end;


    .navigation-items {
        gap: 32px;
        white-space: nowrap;
    }

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

        li {
            display: block;
            font-size: inherit;
            font-weight: inherit;
            color: inherit;
            margin: 0;
            padding: 0;

            a {
                color: var(--text);
                text-decoration: none !important;
                transition: color 0.1s ease-in-out;

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

.standart-width {
    max-width: 1252px;
    margin: 0 auto;
    min-height: fit-content;
}

.legal {

    h1,
    h2,
    h3,
    h4,
    h5,
    p {
        margin: revert;
    }

    ol {
        li {
            margin: 1rem 0;
        }
    }

    margin-bottom: 4rem;

    #impressum {
        min-height: calc(100dvh - 256px - 201px);
    }
}


@media only screen and (max-width: 1268px) {


    .standart-width,
    header .col-12-grid {
        max-width: 92dvw;
    }
}

@media only screen and (max-height: 790px) {


    .standart-width {
        margin-top: 4rem;
    }
}

@media only screen and (max-width: 590px) {

    h1 {
        font-size: 2.986rem !important;
    }

    h2 {
        font-size: 2.488rem !important;
    }

    h3 {
        font-size: 2.074rem !important;
    }

    h4 {
        font-size: 1.728rem !important;
    }

    h5 {
        font-size: 1.44rem !important;
    }

    h6 {
        font-size: 1.2rem !important;
    }

    small {
        font-size: 0.833rem !important;
    }


    header {
        padding: 16px 0 0;

        .col-12-grid {
            display: block;
        }

        .desktop-nav {
            display: none;
        }

        .hamburger-menu {
            display: flex;
        }


    }

    .mobile-nav {
        height: calc(100dvh - 64px);
        background-color: white;
        display: block;
        position: fixed;
        transform: translateX(100%);
        right: 0;
        top: 112px;
        max-width: 100%;
        width: 100%;
        transition: transform 250ms ease-out;
        z-index: 100;

        &.scrolled {
            top: 72px;
            .navigation-items {
                height: 95%;
            }
        }

        &.active {
            transform: translateX(0);
        }

        .navigation-items {
            gap: 48px;
            height: 90%;
            width: 90%;
            align-items: end;
            justify-content: end;
            

            a:not(.cta-button-primary) {
                font-size: 3rem;
            }

            

            .cta-button-primary {
                font-size: 1.5rem;

            }
        }
    }

    footer {
        padding: 24px 16px 32px;
        width: 100dvw;
        box-sizing: border-box;

        .footer-content {
            grid-template-columns: 1fr;
            row-gap: 4rem;

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

            .d-flex {
                align-items: start;
            }
        }
    }
}