/* === RESET === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    object-fit: cover;
}

ul li {
    list-style-type: none;
    list-style: none;
}

/* === GLOBAL === */
body {
    /* kleuren */
    --background-primary: #F0F0F0;
    --background-secondary: #FFFFFF;

    --highlight: #0275FF;

    --filter-highlight: #CCE3FF;

    --text-primary: #5D666A;
    --text-light: #FFFFFF;

    /* toegankelijk */
    --accessible-primary: #00C858;
    --accessible-secondary: #BBFFD8;

    /* nfo = nieuwe fouten ontdekt */
    --nfo-primary: #FF9800;
    --nfo-secondary: #FFD08A;
    --nfo-button-secondary: #FFFAF3;

    /* ontoegankelijk */
    --inaccessible-primary: #B50000;
    --inaccessible-secondary: #FFDADA;

    /* typografie */
    --font-family-primary: 'Outfit', sans-serif;
    --line-height-primary: 1.35rem;

    /* 16px */
    --font-size-primary: 1rem;
    /* 14px */
    --font-size-secondary: 0.875rem;

    /* 48px */
    --font-size-title-l: clamp(2rem, calc(3.3vw + 1rem), 3rem);
    /* 32px */
    --font-size-title-m: clamp(1rem, calc(2.2vw + 1rem), 2rem);
    /* 26px */
    --font-size-title-s: clamp(0.625rem, calc(1.8vw + 1rem), 1.625rem);

    /* 20px */
    --font-size-headings: clamp(0.25rem, calc(1.4vw + 1rem), 1.25rem);

    --font-weight-primary: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* formulieren */
    --icon-primary: #5D666A;

    --button-radius-s: 59px;
    --button-radius-m: 69px;
    --button-transition: 400ms;

    --button-height-s: 32px;
    --button-height-m: 50px;

    --button-width-s: 142px;
    --button-width-m: 185px;
    --button-width-l: 229px;

    --button-hover-scale: 1.05;
    --button-click-scale: 0.9;

    --button-shadow: 5px 5px 9px gray;

    /* animation */
    --animation-time: 1.3s;
    --duration: 100ms;

    /* global styling */
    background-color: var(--background-primary);
    color: var(--text-primary);

    line-height: var(--line-height-primary);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-primary);
    font-weight: var(--font-weight-primary);
}


/* === TYPOGRAFIE === */
/* normal */
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-v11-latin-regular.woff2') format('woff2');
    font-weight: var(--font-weight-primary);
    font-style: normal;
}

/* semibold */
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-v11-latin-regular.woff2') format('woff2');
    font-weight: var(--font-weight-semibold);
    font-style: normal;
}

/* bold */
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-v11-latin-regular.woff2') format('woff2');
    font-weight: var(--font-weight-bold);
    font-style: normal;
}

.font-primary {
    font-size: var(--font-size-primary);
    font-weight: var(--font-weight-primary);
}

.font-title {
    font-size: var(--font-size-title-l);
    font-weight: var(--font-weight-bold);
}

.font-details-title {
    font-size: var(--font-size-title-m);
    font-weight: var(--font-weight-bold);
}

.font-overzicht-title {
    font-size: var(--font-size-headings);
    font-weight: var(--font-weight-semibold);
}

.font-nav-links {
    font-size: var(--font-size-headings);
    font-weight: var(--font-weight-semibold);
}

.font-nav-headings {
    color: var(--highlight);
    font-size: var(--font-size-headings);
    font-weight: var(--font-weight-bold);
}

a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: var(--font-size-secondary);
}


/* === FORMULIEREN === */
.icon-search {
    color: var(--icon-primary);
    height: 30px;
    width: 24px;
}

.icon-drop-down {
    color: var(--icon-primary);
    height: 4px;
    width: 8px;
}

.button-filter {
    background-color: var(--highlight);
    color: var(--text-light);
}

.button-filter:hover {
    background-color: var(--filter-highlight);
    color: var(--highlight);
}

.button-filter-active {
    background-color: var(--filter-highlight);
    color: var(--highlight);
}

/* button voor nfo */
.button-nfo {
    background-color: var(--nfo-button-secondary);
    border-color: var(--nfo-primary);
    color: var(--text-primary);
    transition: var(--button-transition);
    border: 1px solid var(--nfo-primary);
    border-radius: var(--button-radius-s);
    height: var(--button-height-m);
    min-width: var(--button-width-m);
    max-width: var(--button-width-l);
}

.button-nfo:hover {
    scale: var(--button-hover-scale);
    box-shadow: var(--button-shadow);
    transition: var(--button-transition);
}

.button-nfo:active {
    animation: is-clicked var(--animation-time) ease-in;
    animation-duration: var(--duration);
}

/* button voor ontoegankelijk */
.button-inaccessible {
    background-color: var(--inaccessible-secondary);
    color: var(--inaccessible-primary);
    transition: var(--button-transition);
    border-radius: var(--button-radius-m);
    height: var(--button-height-s);
    width: var(--button-width-s);
    border: none;
}

.button-inaccessible:hover {
    scale: var(--button-hover-scale);
    box-shadow: var(--button-shadow);
    transition: var(--button-transition);
}

.button-inaccessible:active {
    animation: is-clicked var(--animation-time) ease-in;
    animation-duration: var(--duration);
}

/* button voor toegankelijk */
.button-accessible {
    background-color: var(--accessible-secondary);
    color: var(--accessible-primary);
    transition: var(--button-transition);
    border-radius: var(--button-radius-m);
    height: var(--button-height-s);
    width: var(--button-width-s);
    border: none;
}

.button-accessible:hover {
    scale: var(--button-hover-scale);
    box-shadow: var(--button-shadow);
    transition: var(--button-transition);
}

.button-accessible:active {
    animation: is-clicked var(--animation-time) ease-in;
    animation-duration: var(--duration);
}


/* === KEYFRAMES VOOR BUTTONS === */
@keyframes is-clicked {
    from {
        transform: scale(var(--button-hover-scale));
    }

    to {
        transform: scale(var(--button-click-scale));
    }
}



/* === progress BAR === */
/* https://css-tip.com/circular-progress/ */
@property --x {
    syntax: '<integer>';
    inherits: true;
    initial-value: 100;
}

@property --y {
    syntax: '<number>';
    inherits: true;
    initial-value: 1;
}

.progress-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    appearance: none;
    position: relative;
    animation: y 2s .5s both;
    timeline-scope: --progress;
}

.progress-circle::-webkit-progress-bar {
    overflow: auto;
    visibility: hidden;
}

.progress-circle::-webkit-progress-value {
    view-timeline: --progress inline;
}

.progress-circle::before,
.progress-circle::after {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: x linear;
    animation-timeline: --progress;
    animation-range: entry 100% exit 100%;
}

.progress-circle::before {
    content: counter(val) "%";
    counter-reset: val calc(var(--y)*var(--x));
    display: grid;
    place-content: center;
    font-weight: 900;
    font-size: 1.8rem;
}

.progress-circle::after {
    content: "";
    background: color-mix(in hsl, #E80E0D, #7AB317 calc(1%*var(--x)));
    padding: round(15%, 1px);
    border-radius: 50%;
    mask:
        conic-gradient(#0000 0 0) subtract content-box,
        conic-gradient(#000 calc(1%*var(--y)*var(--x)), #0000 0);
}

@keyframes x {
    to {
        --x: 0
    }
}

@keyframes y {
    0% {
        --y: 0
    }
}