@font-face {
    font-family: "RO Sans";
    font-style: normal;
    font-weight: normal;
    font-display: auto;
    src: url("fonts/RO-SansWebText-Regular.woff") format("opentype"), url("fonts/RO-SansWebText-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "RO Sans";
    font-style: normal;
    font-weight: bold;
    font-display: auto;
    src: url("fonts/RO-SansWebText-Bold.woff") format("opentype"), url("fonts/RO-SansWebText-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "RO Serif";
    font-style: normal;
    font-weight: normal;
    font-display: auto;
    src: url("fonts/RO-SerifWeb-Italic.woff") format("opentype"), url("fonts/RO-SerifWeb-Italic.ttf") format("truetype");
}

@font-face {
    font-family: "RO Icons";
    font-style: normal;
    font-weight: bold;
    font-display: auto;
    src: url("fonts/ro-icons-1.11.woff") format("opentype"), url("fonts/ro-icons-1.11.ttf") format("truetype");
}

:root {
    --primary-color: #154273;
    --secondary-color: #42135F;
    --tertiary-color: #A90061;
    --default-white: #FFF;
    --default-black: #000;

    --text-color: #1C1C1C;
    --inactive-color: #9D9D9D;
    --error-color: #B30000;

    --background-color-grey: #F5F6F7;

    --ratio: 1.234;
    --text-sm: 0.968rem;
    --text-base: 1.1875rem;
    --h4: clamp(1.25rem, 1.05rem + 0.85vw, 1.469rem);
    --h3: clamp(1.4rem, 1.10rem + 1.30vw, 1.8125rem);
    --h2: clamp(1.65rem, 1.20rem + 1.95vw, 2.219rem);
    --h1: clamp(1.95rem, 1.30rem + 2.85vw, 2.75rem);
}

/* Scroll to top start */
#scrollToTop {
    right: -100px;
    position: absolute;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    background-color: var(--primary-color);

    @media screen and (max-width: 1380px) {
        right: 0;
    }
}

.fa-arrow-to-top::before {
    content: "\f062";
}

.scroll-up #scrollToTop {
    display: block;
}

.button-container {
    max-width: 1300px;
    width: 100%;
    transform: translateX(-50%);
    left: 50%;
    position: fixed;
    bottom: 68px;
    height: 0;
    z-index: 1;
}

.back-to-top i {
    text-shadow: none;
    font-size: 22px;
    color: #fff;
}

/* Scroll to top end */

.a-fa {
    font-size: 17px;
    display: inline-block;
    position: relative;
    transition: .3s ease-in-out;
}

.a-fa:before {
    font-family: "Font Awesome 6 Pro";
    font-weight: 400;
    content: "\f33d";
    font-size: 14px;
    line-height: 24px;

    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Font Awesome 6 Pro";
    font-weight: 400;
    content: "\f33d";
    display: inline-block;
    margin-right: 8px;
}

#container_menu_top,
#apptitle,
#header_top,
#pull,
.eerste-menu-item {
    display: none;
}

#container_menu_top,
.b_header-wrapper,
#footer {
    font-family: "RO Sans", Calibri, sans-serif;

    p,
    a {
        line-height: 17px;
    }
}

#qs-container,
#content,
.grid {
    max-width: 1232px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 16px;
}

#innerheader {
    margin: 0 auto;
    display: flex;
    max-width: 1232px;
    justify-content: center;

    a {
        display: flex;
        height: 103px;
        padding-left: 50%;

        img {
            height: 100%;
        }
    }

    p {
        margin: 0 0 18px;
        line-height: 1;
    }
}

.b_menu-search-container {
    background: var(--default-white);
    color: var(--primary-color);
    padding: 0 16px;
}

.b_menu-search-wrapper {
    max-width: 1232px;
    height: 100%;
    padding: 0 8px;
    margin: 0 auto;
    position: relative;
}

.menu {
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    align-items: center;

    li:not(#p108, #p109) {
        display: flex;
        align-items: center;
        padding: 0;
        height: fit-content;

        a {
            padding: 24px 8px;
            font-size: 20px;
            line-height: 24px;
            font-weight: 400;
            color: var(--primary-color);
        }

        .subMenu {
            padding: 12px 0;

            li {
                a {
                    width: 100%;
                    padding: 12px 16px;
                    font-size: 17px;
                    color: var(--text-color);
                }
            }
        }

        &.active a,
        a:hover {
            text-decoration-line: underline;
            text-decoration-thickness: 2px;
            text-decoration-color: var(currentColor);
            text-underline-offset: 3px;

            +.subMenu li {
                a {
                    text-decoration: none;
                }

                &.active a {
                    text-decoration-line: underline;
                    text-decoration-thickness: 2px;
                    text-decoration-color: var(currentColor);
                    text-underline-offset: 3px;
                }
            }
        }
    }

    a {
        text-decoration: none;
        border: none;
        font-family: "RO Sans", Calibri, sans-serif;
    }
}

.c-1 .payoff {
    line-height: 26px;
}

.c-2 {
    .h4-style {
        font-family: "RO Sans", Calibri, sans-serif;
        margin-top: 0;
        margin-bottom: 24px;
    }

    a {
        font-family: "RO Sans", Calibri, sans-serif;
        text-decoration: none;
        border: none;
    }

    .active a,
    a:hover {
        text-decoration-line: underline;
        text-decoration-thickness: 2px;
        text-decoration-color: var(currentColor);
        text-underline-offset: 3px;
    }
}

#container_menu .menu {
    margin: 0;
}

#container_menu {
    display: flex;
    height: 100%;
    align-items: center;
    overflow: visible;
}

.menu {

    #p108,
    #p109 {
        display: none;
        margin-left: auto;

        a {
            padding: 12px 20px;
            border: 1px solid var(--primary-color);
            border-radius: 4px;
            font-size: 17px;
            line-height: 100%;
            color: var(--primary-color);
        }

        a::before {
            font-family: "Font Awesome 6 Pro";
            font-size: 12px;
            line-height: 16px;
            font-weight: 400;
            content: "\e4b2";
            font-weight: 400;
            margin-right: 10px;
        }

        a:hover {
            text-decoration: none;
        }
    }

    a[aria-expanded="false"],
    a[aria-expanded="true"] {

        &:after {
            font-family: "Font Awesome 6 Pro";
            font-size: 18px;
            font-weight: 400;
            content: "\f078";
            display: inline-block;
            margin-left: 10px;
        }
    }

    a[aria-expanded="true"] {

        &:after {
            content: "\f077";
        }

        +.subMenu {
            display: flex;
            flex-direction: column;
        }
    }
}

.authenticated_False #p108 {
    display: block;
}

.authenticated_True #p109 {
    display: block;
}

#p107 a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 0;

    &:hover {
        text-decoration: none;
    }

    &:after {
        font-size: 22px;
        line-height: 24px;
        font-family: "Font Awesome 6 Pro";
        font-weight: 400;
        content: "\f002";
        display: inline-block;
    }
}

.subMenu {
    display: none;
    position: absolute;
    top: 72px;
    padding: 0;
    margin: 0;
    background: #FFF;
    z-index: 73;
    box-shadow: 0px 4px 16px -4px rgba(0, 0, 0, 0.1), 0px 24px 32px 0px rgba(0, 0, 0, 0.12);

    li {
        a {
            padding: 16px 24px;
            color: var(--text-color);
        }
    }
}

/* Footer - start section */
#footer {
    background: var(--primary-color);
    margin-top: auto !important;
}

#innerfooter {
    max-width: 100%;
    margin: 0 auto;

    .grid {
        display: grid;
        justify-content: space-between;
        gap: 24px;
        grid-template-columns: 2fr 1fr 1fr;
    }

    a {
        color: var(--default-white);
    }

    .a-fa:before {
        content: '\f054';
        font-size: 14px;
    }

    h2 {
        margin-top: 0;
        margin-bottom: 24px;
        line-height: 33px;
    }
}

.payoff {
    font-family: "RO Serif";
    color: var(--default-white);
    font-size: 32px;
}

.c-2 {
    width: 100%;

    ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    ul,
    li {
        margin: 0;
        padding: 0;
        list-style: none;
        line-height: 100%;
    }

    h4,
    .h4 {
        color: var(--default-white);
        font-weight: 500;
    }

    .a-fa:before {
        line-height: 100%;
    }
}

/* Footer - end section */


@media screen and (max-width: 900px) {
    #innerheader {
        p {
            margin-bottom: 8px
        }

        a {
            height: 82px;
        }
    }

    .teaser {
        max-width: calc(100% - 32px);
    }

    .b_menu-search-wrapper {
        height: 100%;
        position: static;
    }

    .b_menu-search-container,
    .b_menu-search-wrapper {
        padding: 0;
    }

    #container_menu {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    #pull {
        color: var(--primary-color);
        background: var(--default-white);
        display: flex;
        align-items: center;
        text-decoration: none;
        padding: 0 16px 0 0;
        margin: 0 2%;
        font-size: 17px;
    }

    #pull:before {
        font-family: "Font Awesome 6 Pro";
        font-size: 21px;
        font-weight: 400;
        content: "\f0c9";
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #pull[aria-expanded="true"]::before {
        content: "\f00d";
    }

    .menu {
        display: none;

        li {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        #p108,
        #p109 {
            margin: 0 32px;
        }

        & li:not(#p108, #p109) {
            align-items: flex-start;
            width: 100%;
            height: unset;

            .subMenu {
                padding: 0;

                & li {
                    a {
                        padding-right: 48px;
                        padding-left: 48px;
                    }
                }
            }

            a {
                padding: 12px 32px;
            }
        }
    }

    .b_menu-open {
        display: block;
        position: relative;
        z-index: 99;
        background: var(--default-white);
        width: 100%;
        padding-bottom: 24px;
        height: fit-content;
        box-shadow: 2px 6px 16px -8px rgba(0, 0, 0, .5);

        a {
            display: block;
            padding: 20px;
            width: 100%;
        }
    }

    .subMenu {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    .eerste-menu-item {
        text-decoration: none;
        display: block;
        color: var(--default-white);
        font-family: "RO Sans";
        font-size: 25px;
        font-weight: 500;
        position: relative;
        left: 0;
    }

    .payoff {
        font-size: 26px;
    }

    #p107 a {
        justify-content: flex-start;
        width: 100%;
        height: unset;
        font-size: 22px;
        gap: 10px;
    }
}

@media screen and (max-width: 740px) {
    #innerfooter .grid {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    #innerfooter {
        .grid {
            grid-template-columns: 1fr;
            row-gap: 48px;
        }
    }

    .empty-column {
        display: none;
    }
}

@media screen and (max-width: 560px) {
    #innerfooter {
        .grid {
            grid-template-columns: 1fr;
            row-gap: 48px;
        }
    }
}