﻿body.home .text-grid > .container {
    height: 0;
}

body.home .text-grid .usps li {
    justify-content: flex-start;
}

.highlights__carousel .slick-slide,
.highlights__carousel .slick-slide > div {
    line-height: 0;
}

.highlights__item {
    position: relative;
}

    .highlights__item img {
        aspect-ratio: 2 / 1;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
    }

.highlights__text {
    background-color: rgba(0,0,0,.2);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    padding: 8rem 6rem;
}

    .highlights__text h2 {
        font-size: 6rem;
        line-height: 6rem;
    }

    .highlights__text .subtitle {
        font-size: 3rem;
        line-height: 3rem;
        margin-bottom: 1.5rem;
    }

    .highlights__text p:not(.subtitle) {
        font-size: 1.6rem;
        line-height: 2.4rem;
        max-width: 50%;
        margin-bottom: 0;
    }

    .highlights__text .button {
        margin-top: 2.5rem;
    }

.highlights .slick-dots {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .highlights .slick-dots button {
        width: 1rem;
        height: 1rem;
        background-color: #e1e5e6;
        border-radius: .5rem;
        border: none;
        box-shadow: none;
        outline: none;
        padding: 0;
        margin: .5rem;
        text-indent: -9000px;
        transition: var(--transition-default);
    }

        .highlights .slick-dots button:hover {
            background-color: #fff;
        }

    .highlights .slick-dots .slick-active button {
        background-color: var(--blue);
    }

@media(max-width: 991px) {
    .highlights__item img {
        object-fit: cover;
        object-position: 50% 50%;
    }

    .highlights__text p:not(.subtitle) {
        max-width: 75%;
    }

    .highlights__text .button {
        margin-top: 3rem;
    }
}

/* iPad portret (en vergelijkbare breedtes): bij de 2:1-verhouding is de slide te laag
   voor de tekstoverlay, waardoor tekst onder de slide uit valt. Een hoger 4:3-beeld
   geeft de overlay meer ruimte. Onder 576px geldt alweer de height: 90vw-override. */
@media(min-width: 577px) and (max-width: 991px) {
    .highlights__item img {
        aspect-ratio: 4 / 3;
    }
}

@media(max-width: 576px) {
    .highlights > .container {
        padding: 0;
    }

        /* Bootstrap-row heeft negatieve marges en de kolommen padding; die steken
           buiten de container zonder padding uit en veroorzaken horizontale scroll.
           Neutraliseren zodat de sectie echt beeldvullend is. */
        .highlights > .container > .row {
            margin-left: 0;
            margin-right: 0;
        }

            .highlights > .container > .row > [class*="col-"] {
                padding-left: 0;
                padding-right: 0;
            }

    .highlights__item img {
        height: 90vw;
    }

    .highlights__text {
        padding: 3rem 2rem;
    }

        .highlights__text h2 {
            font-size: 4rem;
            line-height: 4rem;
        }

        .highlights__text .subtitle {
            font-size: 2.5rem;
            line-height: 2.5rem;
        }

        .highlights__text p:not(.subtitle) {
            max-width: unset;
            font-size: 1.4rem;
            line-height: 2rem;
        }

        .highlights__text .button {
            margin-top: 1rem;
        }

    .highlights .slick-dots {
        bottom: 0;
    }
}

.highlights__blocks {
    display: flex;
    flex-flow: column;
    gap: 3rem;
}

.highlight__block {
    padding: 2rem 3rem 2rem 12rem;
    color: var(--white);
    height: 21.8rem;
    position: relative;
}

    .highlight__block:first-of-type {
        background-color: var(--blue);
    }

        .highlight__block:first-of-type img {
            position: absolute;
            top: 2.3rem;
            left: 0;
            mix-blend-mode: multiply;
        }

    .highlight__block:last-of-type {
        background-color: var(--red);
    }

        .highlight__block:last-of-type img {
            position: absolute;
            bottom: 0;
            left: 1.1rem;
            mix-blend-mode: multiply;
        }

    .highlight__block h2 {
        line-height: 4rem;
    }

    .highlight__block p {
        line-height: 2rem;
    }

section.entries {
    margin-top: 3rem;
}

.entries__block {
    background-color: var(--blue-light);
    padding: 2rem;
    display: flex;
    flex-flow: column;
    gap: 1.4rem;
    position: relative;
}

    .entries__block .entries__link {
        font-size: 1.6rem;
        color: var(--black);
        position: relative;
        z-index: 1;
    }

        .entries__block .entries__link span {
            position: relative;
        }

            .entries__block .entries__link span:after {
                content: "";
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='12' viewBox='0 0 8 14'%3E%3Cpolyline points='1 13 7 7 1 1' fill='none' stroke='%23121212' stroke-linecap='round' stroke-linejoin='round' stroke-width='3'/%3E%3C/svg%3E");
                width: .6rem;
                height: 1.2rem;
                position: absolute;
                top: .5rem;
                right: -1.5rem;
                transition: var(--transition-default);
            }

    .entries__block .entries__link--last {
        color: var(--blue);
        font-weight: 600;
    }

        .entries__block .entries__link--last span:after {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='12' viewBox='0 0 8 14'%3E%3Cpolyline points='1 13 7 7 1 1' fill='none' stroke='%231289a7' stroke-linecap='round' stroke-linejoin='round' stroke-width='3'/%3E%3C/svg%3E");
        }

    .entries__block img {
        object-fit: contain;
        object-position: right top;
        position: absolute;
        bottom: 2rem;
        right: 1rem;
        z-index: 0;
    }

.entries__miniblock {
    position: relative;
    border: .1rem solid #e1e5e5;
    aspect-ratio: 1/1;
    padding: 2rem;
    margin-top: 3rem;
}

    .entries__miniblock a {
        display: flex;
        flex-flow: column;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        height: 100%;
        font-size: 1.6rem;
        color: var(--blue);
        font-weight: 600;
    }

        .entries__miniblock a span {
            position: relative;
        }

            .entries__miniblock a span:after {
                content: "";
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='12' viewBox='0 0 8 14'%3E%3Cpolyline points='1 13 7 7 1 1' fill='none' stroke='%231289a7' stroke-linecap='round' stroke-linejoin='round' stroke-width='3'/%3E%3C/svg%3E");
                width: .6rem;
                height: 1.2rem;
                position: absolute;
                top: .8rem;
                right: -1.5rem;
                transition: var(--transition-default);
            }

    .entries__miniblock img {
        position: absolute;
        top: 1rem;
        height: calc(100% - 4rem - 2.6rem);
        object-fit: contain;
        object-position: top center;
    }

/* Tot 1200px staan .highlights en .entries full-width gestapeld (col-xl-*), dus gelden
   hier de gestapelde afstanden én de begrensde afbeeldingsbreedte die voorkomt dat de
   teaser-foto over de linktekst valt. Vanaf 1200px splitsen de kolommen pas. */
@media(max-width: 1199px) {
    .highlights__blocks {
        margin-top: 1.5rem;
        gap: 1.5rem;
    }

    .highlight__block h2 {
        font-size: 3rem;
    }

    section.entries {
        margin-top: 1.5rem;
    }

    .entries .row > div + div .entries__block {
        margin-top: 1.5rem;
    }

    .entries__block img {
        width: 15rem;
        height: auto;
    }


}

@media (pointer: fine) {
    .entries__block .entries__link:hover,
    .entries__miniblock a:hover {
        color: var(--blue-hover);
    }

        .entries__block .entries__link:hover span:after,
        .entries__miniblock a:hover span:after {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='12' viewBox='0 0 8 14'%3E%3Cpolyline points='1 13 7 7 1 1' fill='none' stroke='%23066e88' stroke-linecap='round' stroke-linejoin='round' stroke-width='3'/%3E%3C/svg%3E");
            right: -1.8rem;
        }
}

.login-blocks {
    margin: 3.2rem 0 4.5rem;
}

    .login-blocks .row > div:first-of-type .login-blocks__item {
        margin-right: 5px;
    }

    .login-blocks .row > div:last-of-type .login-blocks__item {
        margin-left: 5px;
    }

.login-blocks__item {
    background-color: var(--blue-light);
    padding: 3rem 5rem;
    height: 100%;
}

    .login-blocks__item .button--blue-transparent {
        border: 0.2rem solid var(--blue);
        min-height: 4.6rem;
        padding-top: 1.2rem;
        padding-bottom: 1.4rem;
    }

@media(max-width: 991px) {
    .login-blocks__item .button--blue-transparent {
        margin-top: 1rem;
        padding-left: 0;
    }
}

@media(max-width: 767px) {
    .login-blocks__item {
        padding: 1.5rem 3rem;
    }

    .login-blocks .row > div:first-of-type .login-blocks__item {
        margin-right: 0;
    }

    .login-blocks .row > div:last-of-type .login-blocks__item {
        margin-left: 0;
        margin-top: 1.5rem;
    }
}

.landingpage .block__image--single img {
    width: 100%;
}


section {
    margin: 4.5rem 0;
}

    section + section {
        margin-top: 9rem;
    }

@media(max-width: 991px) {
    section + section {
        margin-top: 4rem;
    }
}

.text-grid {
    order: 99;
}

    .text-grid + .highlights {
        margin-top: 0;
        margin-bottom: 0;
    }

main > .highlights {
    margin-top: 0;
}

.text-grid h1 {
    font-size: 2rem;
    line-height: 2rem;
    color: #fff;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-grid .button {
    margin-top: 4rem;
}

.home__quickadd {
    background-color: rgba(237, 241, 242, .5);
    padding: 3rem 0;
    margin: 3rem 0 0;
}

    .home__quickadd .quickadd__form {
        margin-top: 0;
    }

        .home__quickadd .quickadd__form label {
            font-weight: 700;
        }

        .home__quickadd .quickadd__form input {
            background-color: #fff;
        }

    .home__quickadd + section {
        margin-top: 6rem;
    }

@media(max-width: 991px) {
    .home__quickadd .quickadd__form label {
        text-align: center;
    }
}
