@font-face {
    font-family: "Nunito";
    src: url("../fonts/Nunito-VariableFont_wght.woff2") format("woff2");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    font-family: "Nunito", "sans-serif";
    --blauw: oklch(65% 0.05 209);
    --donkerblauw: oklch(0.65 0.2 250);
    --groen: oklch(0.7 0.2 145);
    --orangje: oklch(0.7 0.15 50);
    --rood: oklch(0.55 0.2 25);
    --wit: oklch(0.9961 0.0034 325.6);
    --zwart: oklch(0.3 0 0);
    background-color: var(--wit);
    color: var(--zwart);
    line-height: 1.6;
    scroll-behavior: smooth;
}

@media (min-width: 40em) {
    header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
}

.container {
    max-width: 80rem;
    margin: auto;
    padding: 1rem;
}

header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: var(--blauw);
    color: var(--zwart);
    img.logo {
        display: inline-flex;
        vertical-align: middle;
        width: 10rem;
    }

    p.logo {
        display: inline-flex;
        font-size: 2rem;
        font-weight: bold;
        padding: 1rem;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    nav {
        display: inline-flex;
        justify-content: flex-end;

        ul {
            display: inline-flex;
            justify-content: flex-end;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;

            li {
                list-style: none;

                a {
                    color: inherit;
                    font-size: 1.5rem;
                    font-weight: bold;
                    text-decoration: none;
                    transition: color .2s ease-in-out, background-color .3s ease-in-out;
                    padding: 0 .5rem;
                    border-radius: .5rem;
                }

                a:hover {
                    color: var(--blauw);
                    background-color: var(--zwart);
                }
            }
        }
    }

    .container {
        display: flex;
        justify-content: center;

        width: 87.54rem;
        margin: 0 5.7rem 0 5.7rem;
    }
}

body {
    margin: 0;
    padding: 0;
}

main {
    display: flex;

    img.portrait {
        max-width: 20rem;
        border-radius: .5rem;

        +p {
            font-size: 1.5rem;
        }
    }

    h1,
    h2,
    h3 {
        font-size: 2rem;
    }

    .cards {
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: wrap;
        gap: .5rem;
        justify-content: flex-start;

        li {
            position: relative;
            border: .1rem solid var(--blauw);
            border-radius: .5rem;
            overflow: hidden;
            min-width: 18rem;
            display: flex;
            flex-direction: column;

            .inhoud {
                padding: 1rem;
                flex-grow: 1;
            }
        }

        picture {
            width: 20rem;
            order: -1;
        }

        img {
            max-height: 15rem;
            width: 100%;
        }
    }

    ul.cards {
        margin: 0;
        padding: 0;
        list-style: none;
    }
}

.overlay-link {
    position: absolute;
    inset: 0;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.visually-hidden {
    position: absolute;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.persoonlijke-info,
.labo-info {
    ul {
        margin-top: .5rem;
    }

    li {
        font-size: 1.2rem;
    }

    h2 {
        margin-bottom: .5rem;
    }

    a {
        text-decoration: none;
        font-weight: bold;
    }

    .sub-lijst {
        list-style: square;

        li {
            font-size: 1rem;
        }
    }

    li.sub-lijst {
        list-style: none;
    }

    p {
        display: flex;
        flex-wrap: wrap;
        font-size: 1.2rem;
        max-width: 60rem;
        margin: auto;
        padding: 1rem;
    }
}

p.afgewerkt {
    margin: 0;
    border-radius: 0.5rem;
    color: var(--zwart);
    background-color: var(--groen);
    max-width: 12rem;
    font-size: 1.5rem;
    font-weight: bold;
}

p.progress {
    margin: 0;
    border-radius: 0.5rem;
    color: var(--zwart);
    background-color: var(--orangje);
    max-width: 13rem;
    font-size: 1.5rem;
    font-weight: bold;
}

p.no-progress {
    margin: 0;
    border-radius: 0.5rem;
    color: var(--zwart);
    background-color: var(--rood);
    max-width: 10rem;
    font-size: 1.5rem;
    font-weight: bold;
}

p.check-labo {
    margin: 1.5rem 0;
    border-radius: .5rem;
    background-color: var(--donkerblauw);
    max-width: 13rem;
    font-size: 1.5rem;
    font-weight: bold;

    a {
        text-decoration: none;
        color: var(--zwart);
    }
}

.socials {
    list-style: none;
    display: flex;
    gap: 3rem;

    li {
        position: relative;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: .5rem;

        img {
            max-width: 5rem;
        }

        a {
            text-decoration: none;
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--zwart);
        }
    }
}

.contact-formulier {
    padding: 0;
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1rem;

    li {
        display: flex;
        flex-direction: column;
        border: .1rem solid var(--zwart);
        padding: 1rem;
        border-radius: .5rem;
        font-weight: bold;
        font-size: 1.2rem;

        button {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--zwart);
            background-color: var(--blauw);
            padding: .5rem;
            border-radius: .5rem;
            transition: color .2s ease-in-out, background-color .3s ease-in-out;
        }

        button:hover {
            color: var(--blauw);
            background-color: var(--zwart);
        }

        label {
            margin-bottom: .5rem;
        }
    }

    .verzend {
        max-width: 20rem;
        border: none;
        align-self: center;
    }
}

footer {
    display: flex;
    justify-content: center;
    color: var(--blauw);
    background-color: var(--wit);
    font-size: 1.2rem;
    font-weight: bold;
}