@font-face {
    font-family: 'Fredoka';
    src: url('../fonts/Fredoka-VariableFont_wdth\,wght.woff2') format('woff2');
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    font-family: 'Fredoka';
    line-height: 1.6;
    scroll-behavior: smooth;
    --bg: oklch(0.99 0.003 325);
    --primary: oklch(0.25 0.01 325);
    background-color: var(--bg);
    color: var(--primary);
}

body {
    margin: 0;
    display: flex;
    /* Flexbox voor sticky footer */
    flex-direction: column;
    min-height: 100vh;
    /* Volle viewport hoogte */
}

.wrapper {
    flex: 1;
    /* Laat de wrapper groeien om footer naar beneden te duwen */
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    background-color: var(--primary);
}

nav {
    display: flex;
    flex-direction: column;
    /* Mobiel: alles onder elkaar */
    margin: 0 -1rem;
    /* Mobiel: volle breedte door container-padding te compenseren */
}

nav>a {
    display: block;
    padding: 1rem 2rem;
    color: var(--bg);
    text-decoration: none;
    font-weight: bold;
    /* Optioneel: maak het iets prominenter */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* Mobiel: verticaal */
}

nav li {
    position: relative;
    /* Voor active highlight */
}

nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--bg);
    text-decoration: none;
}

/* Active state voor nav (voor huidige pagina) - nu op li voor volle breedte */
nav li.active {
    background-color: oklch(0.8 0.01 325);
    /* Subtiele highlight over volle breedte */
}

.cards {
    display: flex;
    gap: 4rem;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;

    li {
        display: flex;
        flex-direction: column-reverse;
        background: oklch(1 0 0);
        border-radius: 12px;
        box-shadow: 0 6px 20px oklch(0% 0 0 / 0.404);
        overflow: hidden;
        flex: 1 1 100%;
        /* Fluid voor mobiel: volle breedte */
        margin-left: auto;
        margin-right: auto;
        position: relative;
        /* Voor overlay */
        transition: transform 0.3s ease;
        /* Voor smooth hover */
    }

    img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
    }

    .content {
        padding: 1rem;
    }

    .overlay-link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: transparent;
        /* Volledig transparant, geen grijze tint */
        z-index: 1;
        /* Boven content, maar onder eventuele andere elementen */
        text-decoration: none;
        color: inherit;
    }
}

/* Media query voor tablets (768px tot 1024px) */
@media (min-width: 768px) and (max-width: 1023px) {
    nav {
        flex-direction: row;
        /* Horizontaal */
        justify-content: space-between;
        /* Pierre links, ul rechts */
        align-items: center;
        /* Verticaal centreren van tekst */
        margin: 0;
        /* Desktop: normale margin, container-padding blijft */
    }

    nav ul {
        flex-direction: row;
        /* Links horizontaal naast elkaar */
        margin: 0;
        /* Reset margin voor betere uitlijning */
    }

    .cards {
        display: grid;
        /* Grid voor max 2 kolommen op tablet */
        grid-template-columns: repeat(2, 1fr);
        /* Max 2 naast elkaar op tablet */
        gap: 4rem;
        /* Behoud gap */

        li {
            flex: none;
            /* Reset flex voor grid */
            margin: 0;
            /* Reset centrering voor grid */
        }
    }

    /* Hover effect alleen op desktop/tablet */
    .cards li:hover {
        transform: scale(1.05);
        /* Subtiele vergroting */
    }
}

/* Media query voor desktop (1024px en hoger) */
@media (min-width: 1024px) {
    nav {
        flex-direction: row;
        /* Horizontaal */
        justify-content: space-between;
        /* Pierre links, ul rechts */
        align-items: center;
        /* Verticaal centreren van tekst */
        margin: 0;
        /* Desktop: normale margin, container-padding blijft */
    }

    nav ul {
        flex-direction: row;
        /* Links horizontaal naast elkaar */
        margin: 0;
        /* Reset margin voor betere uitlijning */
    }

    .cards {
        display: grid;
        /* Grid voor max 3 kolommen op desktop */
        grid-template-columns: repeat(3, 1fr);
        /* Max 3 naast elkaar op desktop */
        gap: 4rem;
        /* Behoud gap */

        li {
            flex: none;
            /* Reset flex voor grid */
            margin: 0;
            /* Reset centrering voor grid */
        }
    }

    /* Hover effect alleen op desktop */
    .cards li:hover {
        transform: scale(1.05);
        /* Subtiele vergroting */
    }
}

.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

img[alt="Pierre Van de Velde"] {
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
	max-width: 50vw;
}



footer {
    background-color: lightgrey;
    margin-block-start: 2rem;

}