@import url("tokens.css?v3");
@import url("tiles.css?v3");
@import url("menu.css?v3");

* {
    box-sizing: border-box;
}

/* typografie */
body {
    font-size: var(--font-body);
    font-weight: 400;
    line-height: 160%;
    color: var(--color-text);
    font-family: "Barlow", sans-serif;
    margin: 0;
}

h1 {
    font-size: var(--font-h1-clamp);
    font-weight: 700;
}

h2 {
    font-size: var(--font-h2-clamp);
    font-weight: 700;
}

h3,
.h3-styling {
    font-size: var(--font-h3-clamp);
}

h1,
h2,
h3,
.h3-styling {
    line-height: 130%;
    color: var(--color-text);
    font-weight: 700;
    font-family: "BarlowBold", sans-serif;
}

h1,
h2,
h3,
p {
    margin-top: 0;
    margin-bottom: var(--gap-txt-xs);
    word-break: break-word;
    hyphens: auto;
}

p+h2,
p+h3 {
    margin-top: var(--gap-obj-lg);
}

div>p {
    margin: 0;
}

/* einde typografie */


.b_btn {
    color: var(--color-btn);
    font-weight: 700;
    text-decoration: none;
    font-size: var(--font-b_btn);
    width: fit-content;

    &.outline {
        display: flex;
        align-items: center;
        width: 100%;

        span {
            border: 1px solid var(--white);
            padding: 12px 16px;
            color: var(--white);
            white-space: nowrap;
            width: 100%;
            text-align: center;
            min-height: 58px;
        }

        &::before {
            content: "\f061";
            font-family: "Font Awesome 6 Pro";
            display: flex;
            position: relative;
            border: 1px solid var(--white);
            color: var(--white);
            width: 56px;
            height: stretch;
            min-height: 56px;
            right: -1px;
            background-color: transparent;
            justify-content: center;
            align-items: center;
            text-decoration: none;
        }

        &.orange {
            span {
                color: var(--darkBlue);
                border: 1px solid var(--orange);
            }

            &::before {
                border-color: var(--orange);
                color: var(--darkBlue);
                background-color: var(--orange);
            }

            &:hover {
                span {
                    border: 1px solid var(--darkBlue);
                }

                &::before {
                    border-color: var(--darkBlue);
                    color: var(--white);
                    background-color: var(--darkBlue);
                }
            }

            &.backbtn {
                margin-top: var(--gap-obj-md);

                &::before {
                    content: "\f060";
                }
            }
        }

        &.external-link {
            &:hover {
                span {
                    border-right: unset;
                }

                &::after {
                    border-color: var(--darkBlue);
                    color: var(--darkBlue);
                }
            }

            span {
                border-right: unset;
                border-radius: unset;
                background-color: var(--white);
            }

            &::after {
                background-color: var(--white);
                border: 1px solid var(--orange);
                border-left: unset;
                color: var(--darkBlue);
                padding: 12px;
                left: 0;
            }
        }

        /* voor op de contact pagina */
        &.contactinput--button {
            input {
                background-color: transparent;
                padding: 17px 16px 18px 16px;
                color: var(--darkBlue);
                border: 1px solid var(--orange);
                border-radius: 0px 4px 4px 0px;
                cursor: pointer;
                max-height: 58px;
            }
        }
    }

    &.readmore {
        font-weight: 400;
        text-decoration: none;
        gap: 8px;
        display: flex;
        position: absolute;
        bottom: -40px;
        justify-content: center;
        width: 90%;

        &:before {
            content: "\e195";
            font-family: "Font Awesome 6 Pro";
            color: var(--darkBlue);
        }
    }
}

.orangebar::after {
    content: "";
    width: 72px;
    height: 8px;
    background-color: var(--orange);
    display: block;
    position: relative;
    top: 14px;
}

.a-skiplink {
    background-color: #fff;
    border: 2px solid #999;
    display: block;
    left: -1000em;
    padding: .5em;
    position: absolute;
    z-index: 10;
    transition: none;
}

.a-skiplink:focus-visible {
    left: 1em;
    top: 126px;
    z-index: 1000;
}

.content-wrapper,
#content {
    padding: var(--pad-obj-xl) var(--pad-obj-sm);
    box-sizing: content-box;
}

.content,
#content {
    max-width: 1140px;
    margin: 0 auto;
}

/* einde componenten */

/* layout  */
#aspnetForm {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

#ballroom #qs-container {
    ul:not(.ballroomitemlist) {
        list-style-type: square;
        padding-left: 20px;

        ::marker {
            color: var(--orange);
        }
    }
}

.column {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    flex-direction: column;

    &.space-between {
        justify-content: space-between;
    }

    &.justify-center {
        justify-content: center;
    }
}

.banner {
    width: calc(100% + 0rem);
    position: relative;
    margin-top: 16px;

    a.external-link {
        &::after {
            display: none;
        }
    }

    a {
        color: var(--white);
    }

    .search {
        background-color: var(--orange);
        bottom: 0;
        max-width: 630px;
        width: 100%;
        padding: var(--gap-obj-md) 154px var(--gap-obj-md) 48px;
        right: 110px;
        position: absolute;
        display: none;

        .ac-s-container {
            width: 80%;
        }

        .br-large {
            border-radius: 0px;
        }

        .ac-s-container>.ac-s-input-container {
            outline: unset;
        }

        .ac-s-container>.ac-s-input-container>input {
            background-color: var(--white);
            padding-left: 10px;
        }

        .ac-s-container>.ac-s-input-container>i {
            display: none;
        }

        .ac-s-container>.ac-s-input-container label {
            margin-left: 15px;
            margin-top: 7px;
            display: block;
        }

        .ac-s-container>.ac-s-input-container label.active {
            margin-left: 10px;
            margin-top: -1px;
        }

        .btn-color {
            display: flex;
            width: 56px;
            height: 53px;
            justify-content: center;
            align-items: center;

            span {
                display: none;
            }

            &::after {
                content: "\f002";
                font-family: "Font Awesome 6 Pro";
                color: var(--white);
                font-size: 18px;

            }

            &:hover {
                &::after {
                    color: var(--light-purple);
                }
            }
        }
    }

    .b_search-container {
        display: flex;
    }

    .banner-container {
        display: flex;
        height: 100%;
        position: relative;
        flex-direction: column-reverse;
        gap: unset;
        align-items: unset;
        min-height: 430px;
    }

    .banner__content--wrapper {
        width: 100%;
        margin: 0 -160px 0 0;
        order: 1;
        z-index: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: flex-end;

        .banner__content {
            padding: var(--gap-obj-md);
            height: 100%;
            background: var(--gradient);
            display: flex;
            flex-direction: column;
            gap: clamp(16px, .8em + 8 * (100vw - 360px) / 1080, var(--gap-obj-sm));



            time {
                background-color: var(--orange);
                color: var(--darkBlue);
                padding: 3px 5px;
                width: fit-content;
                font-family: "BarlowBold", sans-serif;
                font-size: 16px;
            }

            p,
            h1 {
                color: var(--white);
            }

            h1 {
                word-break: break-word;
                hyphens: auto;
            }
        }
    }

    .banner__image {
        /* max-width: 913px; */
        order: 2;
        width: 100%;
        display: flex;

        img {
            position: relative;
            height: 360px;
            width: 100%;
            object-fit: cover;
        }
    }
}

.ballroom_custompage,
.ballroom_documenten {
    .banner__image {
        display: none;
    }
}

.ballroom_custompage {
    .banner {
        display: none;
    }

    #custompage {
        max-width: 780px;
    }
}

.page_bevolking,
.page_gezondheid,
.page_leefstijl,
.page_middelen,
.page_fysiekeomgeving,
.page_socialeomgeving,
.page_gevolgen,
.page_gala {
    .gezondheidsmonitor {
        .tile-section-text {
            max-width: unset;
        }
    }
}


#dashboards {
    position: relative;
    margin-bottom: 30px;
}

.textbar__wrapper {
    background-color: var(--darkBlue);
    padding: var(--gap-obj-md) 16px;
    gap: 16px;

    .textbar__content {
        gap: var(--gap-obj-sm);
    }

    h2,
    p {
        color: var(--white);
    }

    .textbar__button {
        display: flex;
        align-items: center;
    }
}

.nieuws__wrapper {
    position: relative;

    .background-square {
        display: none;
        position: absolute;
        width: 67%;
        height: 357px;
        background-color: var(--light-purple);
        top: 125px;
        right: 0;
        z-index: -1;
    }
}

.page_publicaties {

    #ctl00_QsPH_container_newsoverview h1,
    #newsoverview .overviewheading {
        display: none;
    }

    #ctl00_QsPH_container_newsitem {
        display: none;
    }

    .newspreviews {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(269px, 1fr));
        gap: 16px;
    }

    #content {
        max-width: 1484px;
    }
}

.page_news {
    #ctl00_QsPH_container_newsitem {
        display: none;
    }

    #content {
        max-width: 1484px;
    }

    #ctl00_QsPH_container_newsoverview h1,
    .overviewheading {
        display: none;
    }
}

#newsoverview {
    .newslistitem__preview {
        padding: 0 var(--gap-obj-md);
    }
}

.container_ballroomlist,
#newsoverview {
    display: flex;
    flex-direction: column;
    gap: var(--gap-obj-md);
    position: relative;

    .ballroomitemlist {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(269px, 1fr));
        gap: 16px;
    }

    .newspreviews .nieuwstitel {
        margin-bottom: 24px;
    }

    li {
        display: flex;
        align-items: center;
        background-color: var(--white);

        .listitem__title a {
            text-decoration: none;
            font-family: "BarlowBold", sans-serif;
        }
    }

    h3,
    .news-title {
        width: 100%;
        font-size: var(--font-h4-clamp);

        &:after {
            display: none;
        }
    }

    p {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .listitem__image {
        display: none;
    }

    .nieuwscontrol {
        margin-top: var(--gap-obj-sm);
        padding: 0 var(--gap-obj-md) var(--gap-obj-md) var(--gap-obj-md);
    }

    .meta,
    .nieuwsdatum {
        display: block;
        padding: var(--gap-txt-sm);

        time {
            display: flex;
            width: 90px;
            height: 90px;
            text-align: center;
            align-items: center;
            background-color: var(--light-purple);
            padding: 3px 15px;
            font-family: "BarlowBold", sans-serif;
            font-size: 16px;
            line-height: 1.2;
            border-radius: 50%;
        }
    }

    .meta__separator,
    .postername,
    .datumseparator {
        display: none;
    }

    img {
        display: none;
        width: 100%;
        height: 305px;
        object-fit: cover;
    }

    .poster {
        display: none;
        flex-direction: column;
        gap: var(--pad-obj-sm);
        margin-top: var(--gap-obj-md);
        padding: 0px var(--gap-obj-md) var(--gap-obj-md) var(--gap-obj-md);
        /* height: 100%;
        max-height: 270px; */
    }

    .newslistitem__readmore {
        display: none;
        margin-top: auto;
    }
}

#container_newslist .newslist li:nth-child(n+4) {
    display: none;
}

#newsoverview #ctl00_QsPH_ctl00_newspreviews .nieuwspreview {
    height: 100%;
    max-height: 150px;
}

#nieuws {

    h1,
    #container_meta {
        display: none;
    }
}

.container_newsitem {
    max-width: 676px;

    #ctl00_QsPH_ctl00_title {
        display: none;
    }

    ul {
        list-style-type: square;
        padding-left: 20px;

        ::marker {
            color: var(--orange);
        }
    }
}

.gezondheidsmonitor {
    display: flex;
    flex-direction: column;

    .readmore {
        bottom: -50px;
    }

    &.p40 {
        padding: 2rem 16px 7rem 16px;
    }
}

.page_contact {

    .subscribe,
    #container_contactinfo,
    #content h1,
    .contactform .contact-intro {
        display: none;
    }

    .contactfield {
        font-family: "Barlow Bold", sans-serif;
        font-weight: 700;
        margin-bottom: 8px;
    }

    #ctl00_QsPH_contactForm_contactform {
        display: flex;
        flex-direction: column;
        gap: var(--gap-obj-md);
    }

    .contactform__field--textarea {
        grid-column: 1 / 3;

        textarea {
            width: 100%;
            resize: none;
            border-radius: 4px;
            border: 1px solid var(--mid-grey);
            padding-left: 10px;
            padding-top: 10px;
            font-size: 18px;
        }
    }

    .contact-intro {
        grid-column: 1 / 3;
    }

    .contactinput--button {
        grid-row: 5 / 6;
        grid-column: 1 / 3;
    }

    input:not([type="submit"]) {
        display: flex;
        padding: 10px;
        align-items: center;
        border: 1px solid var(--mid-grey);
        border-radius: 4px;
        width: 100%;
        height: 52px;
        font-size: 18px;
    }
}

.b_module-wrapper {
    display: flex;
    gap: 90px;
    flex-direction: column;

    .b_module-items {
        margin-top: var(--gap-obj-md);
    }

    .b_module-list {
        display: flex;
        flex-direction: column;
        gap: 39px;

        .documentlistitem__image {
            display: none;
        }
    }

    .b_meta {
        display: none;
    }

    #nav_module {
        width: 400px;
    }

    h2 a {
        text-decoration: none;
    }

    ul.ballroomcategories {
        padding-left: 40px;
        margin: unset;
        list-style-type: none;
        margin-top: var(--gap-obj-md);

        a {
            text-decoration: none;
            color: var(--darkBlue);
        }

        li {
            display: flex;
            flex-direction: column;
            border-top: 1px solid rgba(92, 14, 129, 0.50);

            &.active {
                font-weight: bold;
            }

            button,
            a {
                padding: 9px 8px;
                transition: all 0.3s ease-in-out;

                &:hover {
                    background: #e3e2ee;
                }
            }

            span {
                padding: 9px 8px;
            }

            ul {
                margin-left: 0;

                li {
                    border-top: 1px solid rgb(187 145 208 / 50%);

                    a {
                        padding-left: 32px;
                    }
                }
            }
        }
    }

    .document {
        border: 1px solid rgba(92, 14, 129, 0.50);
        padding: var(--gap-obj-md);
        display: flex;
        flex-direction: column;
        gap: var(--gap-obj-sm);
    }
}

#container.ballroom_documenten {
    #content {
        max-width: 1484px;
    }

    h1 .b_category_title {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
    }
}

.page_rapporten .document,
.page_inleiding .document {
    display: none;
}

.page_dashboards .title__container {
    display: none;
}

.dashboard {

    .dashboard__content--left,
    .dashboard__content--right {
        max-width: 676px;
    }

    .dashboard__content {
        position: relative;

        ul {
            list-style-type: square;
            padding-left: 20px;

            ::marker {
                color: var(--orange);
            }
        }

        &::before {
            content: '';
            display: none;
            position: absolute;
            top: 0;
            left: -38%;
            background-color: var(--light-purple);
            width: 1300px;
            height: 100%;
            z-index: -1;
        }
    }
}

.ballroom_documenten {
    #nav_module {
        width: 100%;
        max-width: 400px;
    }
}

@media screen and (min-width: 480px) {
    .banner {
        .banner__content--wrapper {
            .banner__content {
                h1 {
                    word-break: unset;
                    hyphens: unset;
                }
            }
        }
    }
}

@media screen and (min-width: 768px) {
    .b_btn {
        &.outline {
            width: fit-content;

            span {
                width: fit-content;
                text-align: start;
            }

            &::before {
                height: stretch;
                /* min-height: 56px; */
            }
        }

        &.readmore {
            width: unset;
        }
    }

    .row {
        flex-direction: row;

        &.align-center {
            align-items: center;
        }
    }

    .b_btn {
        &.outline {
            span {
                white-space: nowrap;
            }
        }
    }

    .page_documents {
        #nav_module {
            width: 400px;

            a {
                white-space: nowrap;
            }
        }
    }

    .textbar__wrapper {
        gap: unset;
    }

    .b_btn {
        &.readmore {
            position: relative;
            bottom: unset;
        }
    }

    .textbar__wrapper {
        padding: 50px;

    }
}

@media screen and (min-width: 1070px) {
    .page_contact {
        #ctl00_QsPH_contactForm_contactform {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
            column-gap: 37px;
            row-gap: var(--gap-obj-md);
        }
    }

    #dashboards {
        margin-bottom: unset;
    }
}

@media screen and (min-width: 1080px) {
    .banner {
        .banner__content--wrapper {
            .banner__content {
                padding: 32px 82px 32px 32px;
                height: 364px;
            }
        }

        .search {
            display: flex;
        }

        .banner__image {
            max-width: 913px;
        }
    }

    .ballroom_documenten {
        .banner {
            .banner-container {
                min-height: auto;
            }

            .banner__content--wrapper {
                .banner__content {
                    height: auto;
                }
            }
        }
    }

    .page_publicaties {
        .newspreviews {
            grid-template-columns: repeat(auto-fill, minmax(369px, 1fr));
        }
    }

    .dashboard {
        .dashboard__content {
            &::before {
                display: block;
            }
        }
    }

    .page_news #ctl00_QsPH_ctl00_newspreviews.newspreviews {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
        gap: 37px;
    }

    .container_ballroomlist,
    #newsoverview {
        .ballroomitemlist {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(345px, 1fr));
            gap: 65px;
        }
    }

    .container {
        &.textbar.p40 {
            padding: unset;
        }
    }

    .b_module-wrapper {
        flex-direction: row;
    }

    .banner {
        .banner__content--wrapper {
            width: calc(60% - 8.33333vw + clamp(16px, 2vw, 48px) * 11 / 12);
        }

        .banner__image {
            width: 51%;
        }

        img {
            bottom: 62px;
        }

        .banner-container {
            flex-direction: row;
            gap: 90px;
            align-items: end;
        }

        .dummysearch {
            display: flex;
        }
    }
}

@media screen and (min-width: 1520px) {
    .nieuws__wrapper {
        .background-square {
            display: block;
        }
    }

    .container {
        &.p40 {
            padding: 40px 0;
        }

        &.p80-40 {
            padding: 80px 0 40px 0;
        }

        &.p80 {
            padding: var(--pad-obj-xl) 0;
        }

        &.mixed {
            padding: var(--pad-obj-lg) 0 var(--pad-obj-xl) 0;
        }
    }

    .banner {
        .banner__content--wrapper {
            .banner__content {
                padding: var(--gap-obj-md) 150px 50px calc((100vw - 1489px) / 2);
            }
        }
    }

    .container {
        &.p60-p80 {
            padding: 60px 80px;
        }

        &.nieuws.p60-p80 {
            padding: 60px 0;
        }
    }
}