
/*
================================================================
 DEFAULT.CSS
================================================================

 Algemene technische CSS-basis.

 Deze stylesheet bevat uitsluitend algemene regels die voor
 vrijwel iedere website bruikbaar zijn.

 NIET IN DIT BESTAND:
 - kleuren
 - lettertypen
 - huisstijl
 - schaduwen
 - afgeronde hoeken
 - specifieke website-opmaak

 De daadwerkelijke vormgeving komt in:

 css/style.css

================================================================
*/


/*
================================================================
 01. BOX MODEL
================================================================
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}


/*
================================================================
 02. HTML / BODY
================================================================
*/

html {
    margin: 0;
    padding: 0;

    font-size: 100%;

    scroll-behavior: smooth;

    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/*
================================================================
 03. HTML5 ELEMENTEN
================================================================
*/

main,
header,
footer,
nav,
section,
article,
aside,
figure,
figcaption {
    display: block;
}


/*
================================================================
 04. TYPOGRAFIE
================================================================
*/

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    line-height: 1.2;
}

p {
    margin-top: 0;
}

blockquote {
    margin: 0;
}


/*
================================================================
 05. LINKS
================================================================
*/

a {
    background-color: transparent;
}


/*
================================================================
 06. MEDIA
================================================================

 Voorkomt dat afbeeldingen, video's en andere media de
 beschikbare breedte overschrijden.
*/

img,
picture,
video,
canvas,
svg {
    display: block;

    max-width: 100%;
}

img {
    height: auto;
}

iframe {
    max-width: 100%;

    border: 0;
}


/*
================================================================
 07. FIGURE
================================================================
*/

figure {
    margin: 0;
}


/*
================================================================
 08. FORMULIEREN
================================================================
*/

button,
input,
optgroup,
select,
textarea {
    margin: 0;

    font: inherit;

    line-height: 1.5;
}

textarea {
    overflow: auto;

    resize: vertical;
}

input,
textarea,
select {
    max-width: 100%;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    cursor: pointer;
}


/*
================================================================
 09. TABLES
================================================================
*/

table {
    width: 100%;

    border-collapse: collapse;

    border-spacing: 0;
}

th,
td {
    text-align: left;
}


/*
================================================================
 10. HIDDEN
================================================================
*/

[hidden] {
    display: none !important;
}


/*
================================================================
 11. PAGINA
================================================================
*/

.site {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

header,
footer {
    flex-shrink: 0;
}


/*
================================================================
 12. CONTAINERS
================================================================

 De container is standaard maximaal 1200px breed.

 Er wordt automatisch ruimte aan de linker- en rechterzijde
 gehouden.

 style.css kan dit later overschrijven.
*/

.container {
    width: min(
        1200px,
        calc(100% - 40px)
    );

    margin-left: auto;
    margin-right: auto;
}


/*
 Brede container.
*/

.container-wide {
    width: min(
        1600px,
        calc(100% - 40px)
    );

    margin-left: auto;
    margin-right: auto;
}


/*
 Smalle container.
*/

.container-narrow {
    width: min(
        800px,
        calc(100% - 40px)
    );

    margin-left: auto;
    margin-right: auto;
}


/*
================================================================
 13. FLEX
================================================================
*/

.flex {
    display: flex;
}

.flex-inline {
    display: inline-flex;
}

.flex-row {
    flex-direction: row;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}


/*
 Uitlijning horizontaal.
*/

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}


/*
 Uitlijning verticaal.
*/

.align-start {
    align-items: flex-start;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

.align-stretch {
    align-items: stretch;
}


/*
================================================================
 14. GRID
================================================================
*/

.grid {
    display: grid;
}


/*
 Automatische grid.
*/

.grid-auto {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                min(100%, 250px),
                1fr
            )
        );
}


/*
 Twee kolommen.
*/

.grid-2 {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
}


/*
 Drie kolommen.
*/

.grid-3 {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}


/*
 Vier kolommen.
*/

.grid-4 {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
}


/*
================================================================
 15. GAP
================================================================
*/

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-10 {
    gap: 2.5rem;
}

.gap-12 {
    gap: 3rem;
}


/*
================================================================
 16. OVERFLOW
================================================================
*/

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}


/*
================================================================
 17. POSITIONERING
================================================================
*/

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.position-fixed {
    position: fixed;
}

.position-sticky {
    position: sticky;
}


/*
================================================================
 18. TEKST
================================================================
*/

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}


/*
================================================================
 19. AFBEELDINGEN
================================================================
*/

.img-fluid {
    display: block;

    width: 100%;
    height: auto;
}


/*
================================================================
 20. TOEGANKELIJKHEID
================================================================
*/

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/*
================================================================
 21. FOCUS
================================================================
*/

:focus-visible {
    outline: 2px solid currentColor;

    outline-offset: 2px;
}


/*
================================================================
 22. TABLET
================================================================
*/

@media (max-width: 900px) {

    .grid-4 {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .grid-3 {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/*
================================================================
 23. MOBIEL
================================================================
*/

@media (max-width: 600px) {

    .container,
    .container-wide,
    .container-narrow {
        width: calc(100% - 30px);
    }


    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }


    .flex-mobile-column {
        flex-direction: column;
    }


    .mobile-full-width {
        width: 100%;
    }

}


/*
================================================================
 24. REDUCED MOTION
================================================================
*/

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }

}
