@font-face {
    font-family: "Sensa Wild Fill";
    src:
        url("../Fonts/SensaWild-Fill.woff2") format("woff2"),
        url("../Fonts/SensaWild-Fill.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "WinkySans";
    src: url("../Fonts/WinkySans-Variable.ttf") format("ttf");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/**
 * Navigation
 */
.navbar-default {
    background-color: var(--bs-primary) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Sensa Wild Fill", sans-serif;
}

ol, ul {
    padding-left: 1.25rem;
}

.header-logo {
    @media (max-width: 991px) {
        max-height: 300px;
        width: auto;
    }
}

.header-mascot {
    z-index: 4;
    width: auto;
}

.header-mascot--left {
    position: absolute;
    max-height: 200px;
    left: -5px;
    bottom: 20px;

    @media (min-width: 992px) {
        top: 75px;
        left: -12px;
        max-height: 300px;
    }
}

.header-mascot--right {
    position: absolute;
    max-height: 200px;
    right: 7vw;
    bottom: 20px;

    @media (min-width: 992px) {
        top: 75px;
        right: 20vw;
        max-height: 400px;
    }
}

:root {
    --bs-body-font-family: "WinkySans", Arial, sans-serif;
    --brand-image-modifier: 1.5;
    --mainnavigation-brand-image-offet: 17px;
    --mainnavigation-nav-height: 120px;
    font-size: 16px;
    @media (min-width: 992px) {
        --mainnavigation-brand-image-offet: 20px;
        --brand-image-modifier: 1.35;
    }
}

.navbar-mainnavigation {
    transition: none !important;
    justify-content: flex-end;
    text-align: end;

    .navbar-nav {
        justify-content: flex-end;

        @media (min-width: 992px) {
            margin: 0 1rem !important;
        }
    }

    .navbar-toggler {
        transform: scale(1.25);
        margin: 0.5rem;
        @media (min-width: 992px) {
            margin: 0 0.5rem;
        }
    }

    &.navbar-mainnavigation--fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
    }

    &.navbar-mainnavigation--transition {
        transition: transform 0.3s ease !important;
        transform: translateY(0);
    }
}

.behaviour-scroll--down .navbar-mainnavigation--fixed {
    transform: translateY(-150%);
}

.navbar-mainnavigation {
    --mainnavigation-link-height: var(--mainnavigation-nav-height);

    padding-top: calc(var(--mainnavigation-brand-image-offet) / 2);

    .navbar-brand-image {
        position: relative;
        top: var(--mainnavigation-brand-image-offet);
        z-index: 2;

        img {
            max-height: calc(
                var(--mainnavigation-nav-height) * var(--brand-image-modifier)
            );
        }
    }

    .navbar-nav {
        margin: 0;

        &:before {
            height: 0;
        }
    }

    .nav-link-indicator:before {
        padding-top: 0.75em;
        padding-left: 0.75em;
        margin-top: -5px;

        @media (min-width: 992px) {
            padding-top: 0.5em;
            padding-left: 0.5em;
        }
    }

    .show > .nav-link-indicator:before {
        transform: translateY(4px) rotate(45deg);
    }

    .navbar-nav .dropdown-menu {
        --bs-dropdown-spacer: 0;
        --bs-dropdown-padding-x: 0;
        --bs-dropdown-padding-y: 0;

        li.nav-item .nav-link {
            padding: 0.5rem var(--mainnavigation-dropdown-padding-x);
        }

        li.nav-item .nav-link:not(.nav-link-toggle) {
            &:before {
                content: unset;
            }

            &:hover {
                background-color: var(--bs-gray-100);
            }
        }
    }

    .navbar-nav > .nav-item {
        --bs-bg-opacity: 0.7;
        background: rgba(0, 0, 0, var(--bs-bg-opacity));
        border-radius: var(--bs-border-radius);

        &:hover {
            --bs-bg-opacity: 0.5;
        }

        .nav-link:not(.nav-link-toggle):focus-visible:before {
            content: unset;
        }

        & > .nav-link {
            color: var(--bs-white);
            font-weight: bold;
            padding: 0.75rem;

            &:before {
                inset: unset;
            }
        }
    }
}

.container-mainnavigation {
    padding: 0 10px;
    @media (min-width: 992px) {
        padding: 0;
    }
}

/* Move breadcrumbs so they are not covered by logo */
.breadcrumb-section .breadcrumb {
    padding-left: 100px;

    @media (min-width: 992px) {
        padding-left: 100px;
        padding-top: var(--bs-breadcrumb-padding-y);
    }
}

.breadcrumb-section:not(.breadcrumb-mobile) {
    display: none;
    position: relative;
    @media (min-width: 992px) {
        display: block;
    }
}

.breadcrumb-mobile {
    width: 100vw;
    justify-self: center;

    .breadcrumb {
        margin-top: 0.5rem;
        margin-bottom: 0;
    }
}

/**
 * Footer
 */
.footer-meta-wrapper {
    height: 400px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to bottom, #000, var(--bs-primary) 90%);

    img.footer-image {
        width: 100%;
        object-fit: cover;
        bottom: -191px;
        opacity: 0.5;
        z-index: 1;
        position: absolute;
    }

    .footer-logo {
        position: relative;
        display: flex;
        height: 100%;
        width: 100%;
        z-index: 3;
        align-items: center;
        justify-content: center;
    }
}

.footer-menu-section + .footer-info-section {
    margin-top: 0;
}
.footer-info-section {
    text-align: center;
}
.footer-navigation-list-level-1 {
    justify-content: center;
    row-gap: 0.5rem;
}
.footer-navigation-link-level-1 {
    margin-bottom: 0;
}

.footer-info-section > *:not(:first-child) {
    margin-top: 0;
}

/* Move social links up on mobile */
.footer-sociallinks {
    order: -1;
    @media (min-width: 992px) {
        order: unset;
    }
}

.bg-honeycomb {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgb(166, 143, 46), rgb(166, 141, 36) 50%, rgb(64, 56, 18));
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 169.5'%3E%3Cpolygon points='50,34.75 93.5,59.75 93.5,109.75 50,134.75 6.5,109.75 6.5,59.75'%3E%3C/polygon%3E%3Cpolygon points='0,-50 43.5,-25 43.5,25 0,50 -43.5,25 -43.5,-25'%3E%3C/polygon%3E%3Cpolygon points='100,-50 143.5,-25 143.5,25 100,50 56.5,25 56.5,-25'%3E%3C/polygon%3E%3Cpolygon points='0,119.5 43.5,144.5 43.5,194.5 0,219.5 -43.5,194.5 -43.5,144.5'%3E%3C/polygon%3E%3Cpolygon points='100,119.5 143.5,144.5 143.5,194.5 100,219.5 56.5,194.5 56.5,144.5'%3E%3C/polygon%3E%3C/svg%3E");
    mask-size: 128px;
}

/**
 * Content Elements
 */
.bg-black {
    background-color: #000 !important;
}

.btv-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    font-family: 'Sensa Wild Fill', sans-serif;

    &:before, &:after {
        content: '';
        position: absolute;
        z-index: 2;
        height: 80px;
        left: 0; right: 0;
    }

    &:before {
        top: 0;
        background: linear-gradient(
            rgba(0, 0, 0, 1),
            rgba(0, 0, 0, 0)
        );
    }

    &:after {
        bottom: 0;
        background: linear-gradient(
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 1)
        );
    }
}

.btv-hero__title, .btv-hero__subtitle {
    font-size: clamp(3rem, 10vw, 4.4rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.btv-hero__background img {
    filter: grayscale(100%) brightness(40%);
}

.section {
    /** explicitly allow overflow, otherwise our design does not work */
    overflow: visible;
}

.hexagon {
    aspect-ratio: cos(30deg);
    clip-path: polygon(-50% 50%,50% 100%,150% 50%,50% 0);
    background: rgb(255, 222, 89);
    opacity: 0.36;
}

.btv-mascottext-container {
    display: flex;
    flex-direction: column;
    padding-bottom: 25em;

    .speech-bubble {
        --arrow-position-sm: 50%;
        --arrow-position-md: 55%;
        --arrow-position-lg: 75%;

        .speech-bubble-content {
            position: relative;
            z-index: 3;
        }

        .mascot {
            z-index: 2;
            align-self: self-end;
            max-width: 40%;
            height: auto;

            position: absolute;
            right: 0;
            bottom: -10em;

            @media (min-width: 992px) {
                bottom: -11em;
                right: -4em;
            }
        }
    }
}

/* @todo rework or remove */
.btv-linkpanel-container {
    position: relative;

    .mascot {
        position: absolute;
        bottom: -350px;
        right: 0;

        @media (min-width: 992px) {
            top: unset;
            right: -130px;
            bottom: -447px;
        }
    }

    .hexagon {
        height: 800px;
        position: absolute;
        z-index: -1;
        right: -50px;
        bottom: -200px;

        @media (min-width: 992px) {
            right: 0;
            bottom: -200px;
        }
    }

    section {
        position: relative;

        @media (min-width: 992px) {
            max-width: 66%;
        }
    }
}

.btv-linkpanel {
    position: relative;
    margin-left: calc(var(--bs-gutter-x) * -1);

    @media (min-width: 992px) {
        margin-left: calc(var(--bs-gutter-x) * -2);
        max-width: 66%;
    }

    ul {
        list-style: none;
        padding-left: 0;
        font-family: "Sensa Wild Fill", sans-serif;

        li {
            background: rgb(255, 255, 238);
            padding: 1rem 2rem;
            font-size: 2.5rem;
            border: 0.5rem dashed black;
            width: fit-content;
        }

        a {
            color: rgb(133, 102, 18);
        }

        li + li {
            margin: 1rem 0 0 1rem;

            @media (min-width: 992px) {
                margin: 3rem 0 0 3rem;
            }
        }
    }
}

.speech-bubble,
.frame-layout-speech_bubble {
    --arrow-position-sm: 25%;
    --arrow-position-md: 65%;
    --arrow-position-lg: 65%;

    position: relative;
    background: #fff;
    color: #000;
    border-radius: 1em;
    outline: 0.25em solid #000;
    padding: 1.25em;
    margin-bottom: 3em;
    font-size: 1em;
    @media (min-width: 992px) {
        font-size: 1.25em;
    }

    h1, h2, h3, h4, h5 {
        font-size: 1.5em;
    }

    &:before, &:after {
        content: '';
        position: absolute;
        bottom: 0;
        width: 0;
        height: 0;
    }
    &:after {
        border: 1.6em solid transparent;
        border-top-color: #fff;
        border-bottom: 0;
        border-right: 0;
        margin-left: -1.4em;
        margin-bottom: -1.6em;
        left: var(--arrow-position-sm);

        @media (min-width: 578px) {
            left: var(--arrow-position-md);
        }
        @media (min-width: 992px) {
            left: var(--arrow-position-lg)
        }
    }
    &:before {
        border: 2.2em solid transparent;
        border-top-color: #000;
        border-bottom: 0;
        border-right: 0;
        margin-left: -1.75em;
        margin-bottom: -2.2em;
        left: var(--arrow-position-sm);

        @media (min-width: 578px) {
            left: var(--arrow-position-md);
        }
        @media (min-width: 992px) {
            left: var(--arrow-position-lg)
        }
    }
}

