/* Sjabloon "bolhuis" - rustig, leesbaar, met een bol-in-huis als enige echte opvallend element */

:root {
    --ink: #1B2B2A;
    --black: #000;
    --leaf: #24604A;
    --tulip: #B3205A;
    --tulip-dark: #8F1A49;
    --sun: #F0C040;
    --page: #F3F6F4;
    --surface: #FFFFFF;
    --line: #D3DDD8;
    --muted: #506059;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --gap: 1.5rem;
    --measure: 40rem;
}

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

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

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 1.0625rem/1.65 var(--sans);
}

img, svg, video { max-width: 100%; height: auto; }

.wrap {
    width: 100%;
    max-width: 68rem;
    margin-inline: auto;
    padding-inline: var(--gap);
}

/* Toegankelijkheid */
.skip-link {
    position: absolute;
    left: var(--gap);
    top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--sun);
    color: var(--ink);
    font-weight: 600;
}
.skip-link:focus { top: .5rem; }

:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 2px;
}
main:focus { outline: none; }

/* Typografie */
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.15;
    margin: 2rem 0 .75rem;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); letter-spacing: -.01em; margin-top: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p, ul, ol, dl, blockquote, table, figure { margin: 0 0 1.1rem; }

.content p,
.content li { max-width: var(--measure); }

.content p { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.7; }

a { color: var(--leaf); text-underline-offset: .18em; }
a:hover { color: var(--tulip); }

blockquote {
    padding-left: 1rem;
    border-left: 4px solid var(--tulip);
    font-family: var(--serif);
    font-style: italic;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }

/* Kop */
.site-header {
    background: var(--black);
    color: #fff;
    border-bottom: 4px solid var(--tulip);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 2rem;
    padding-block: .9rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: #fff;
    text-decoration: none;
}
.brand:hover { color: #fff; }

.brand-mark { flex: none; width: auto; height: 4.25rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; }
.brand-tagline { font-size: .9rem; color: #C9D6D1; }

/* Navigatie */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-block;
    padding: .4rem 0;
    color: #fff;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: #fff; color: #fff; }
.site-nav .current > a,
.site-nav .active > a { border-bottom-color: var(--sun); font-weight: 600; }

.nav-toggle { display: none; }

/* Zoekveld in de kop */
.header-search input[type="search"],
.header-search input[type="text"] {
    width: 11rem;
    padding: .45rem .7rem;
    border: 1px solid #5B706B;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .95rem;
}

/* Hero (optionele modulepositie "hero") */
.hero {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding-block: 2.5rem;
}
.hero h1, .hero h2 { margin-top: 0; }

/* Indeling */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-block: 2.5rem 3.5rem;
}

.breadcrumbs { margin-bottom: 1.5rem; font-size: .9rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .6rem; margin: 0; padding: 0; list-style: none; }

.main-top, .main-bottom { margin-block: 2rem; }

.sidebar > * + * { margin-top: 2rem; }
.sidebar h3 { margin-top: 0; font-size: 1.15rem; }
.sidebar > div,
.sidebar > section { padding-top: 1rem; border-top: 1px solid var(--line); }
.sidebar ul { padding-left: 1.1rem; }

/* Artikelen */
.page-header h1,
.com-content-article__header h1 { margin-bottom: 1rem; }

.article-info, .tags { font-size: .9rem; color: var(--muted); }

/* Formulieren (o.a. contactformulier) */
.control-group { margin-bottom: 1.1rem; max-width: var(--measure); }
.control-label label,
legend, label { font-weight: 600; }
.control-label { margin-bottom: .3rem; }
.form-text, .form-control-feedback { font-size: .9rem; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], select, textarea {
    width: 100%;
    max-width: var(--measure);
    padding: .65rem .8rem;
    border: 1px solid #8CA097;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
textarea { min-height: 10rem; }

input:focus, select:focus, textarea:focus {
    border-color: var(--leaf);
    outline: 3px solid var(--sun);
    outline-offset: 0;
}

fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; }
legend { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .75rem; }

.btn, button[type="submit"], input[type="submit"] {
    display: inline-block;
    padding: .7rem 1.4rem;
    border: 0;
    border-radius: 4px;
    background: var(--tulip);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    background: var(--tulip-dark);
    color: #fff;
}

.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }

/* Paginering */
.pagination ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.pagination a, .pagination span {
    display: inline-block;
    padding: .35rem .7rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    text-decoration: none;
}
.pagination .active span { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Voettekst */
.site-footer {
    background: var(--black);
    color: #C9D6D1;
    font-size: .95rem;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 2rem;
    padding-block: 1.5rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sun); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }

/* Foutpagina */
.error-page .layout { min-height: 60vh; align-content: center; }

/* Breed scherm: zijbalk ernaast */
@media (min-width: 56rem) {
    .has-sidebar .layout { grid-template-columns: minmax(0, 1fr) 17rem; gap: 3.5rem; }
}

/* Smal scherm: uitklapbaar menu */
@media (max-width: 47.99rem) {
    .nav-toggle {
        display: inline-block;
        padding: .5rem 1rem;
        border: 2px solid #fff;
        border-radius: 4px;
        background: transparent;
        color: #fff;
        font: inherit;
        font-weight: 600;
        cursor: pointer;
    }
    .nav-toggle[aria-expanded="true"] { background: #fff; color: var(--ink); }

    .site-nav { width: 100%; flex-direction: column; align-items: stretch; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav a { display: block; padding: .75rem 0; border-bottom: 1px solid #3A4C49; }
    .site-nav .current > a,
    .site-nav .active > a { border-bottom-color: var(--sun); }
    .header-search input { width: 100%; }

    .js .site-nav:not(.is-open) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
}
