/* Thema "Standaard" – mobiel eerst, WCAG 2.2 AA.
   Kleuren en lettertype komen uit Website-instellingen (CSS-variabelen). */
:root { --ink: #1d1b1a; --muted: #5c5653; --bg: #fffdfb; --soft: #f6f1ee; --line: #e7dfda; --radius: 12px; --wrap: 72rem; --read: 46rem; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: 0; transform: translateY(-110%); background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 8px; }
.skip-link:focus { transform: none; }

/* Kop en navigatie */
.site-header { background: var(--primary); color: var(--on-primary); border-bottom: 5px solid var(--accent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { display: block; height: clamp(2.75rem, 2.4rem + 1.5vw, 3.5rem); width: auto; max-width: min(16rem, 60vw); object-fit: contain; }
.brand-name { font-weight: 700; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); }
.nav-toggle { display: none; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .9rem; border: 2px solid currentColor; border-radius: 999px;
              background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ''; }
.nav-toggle-icon::before { position: absolute; top: -6px; } .nav-toggle-icon::after { position: absolute; top: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a { display: block; color: inherit; text-decoration: none; padding: .6rem .9rem; border-radius: 8px; font-weight: 600; min-height: 44px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: color-mix(in srgb, var(--on-primary) 16%, transparent); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.site-nav .has-sub { position: relative; }
.site-nav .sub { position: absolute; left: 0; top: 100%; min-width: 14rem; background: #fff; color: var(--ink); border-radius: var(--radius);
                 box-shadow: 0 12px 30px rgba(0,0,0,.15); padding: .4rem; display: none; z-index: 20; }
.site-nav .sub a { color: var(--ink); font-weight: 500; }
.site-nav .sub a:hover, .site-nav .sub a[aria-current="page"] { background: var(--soft); }
.site-nav .has-sub:hover > .sub, .site-nav .has-sub:focus-within > .sub { display: block; }

/* Inhoud */
main { display: block; padding: clamp(1.5rem, 5vw, 3.5rem) 0; }
main:focus { outline: none; }
.content { max-width: calc(var(--read) + 4rem); }
.content-wide { max-width: var(--wrap); }
.content h1 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem); line-height: 1.15; margin: 0 0 1rem; }
.content h2 { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.85rem); line-height: 1.25; margin: 2.2rem 0 .7rem; }
.content h3 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; } .content h4, .content h5 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
.content p, .content ul, .content ol { margin: 0 0 1.1rem; }
.content blockquote { margin: 1.5rem 0; padding: .8rem 1.2rem; border-left: 5px solid var(--accent); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; }
.content hr { border: 0; border-top: 2px solid var(--line); margin: 2rem 0; }
.content figure { margin: 1.5rem 0; } .content figure img { border-radius: var(--radius); display: block; }
.content figcaption { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.button { display: inline-block; background: var(--primary); color: var(--on-primary); padding: .75rem 1.4rem; border-radius: 999px; text-decoration: none; font-weight: 700; min-height: 44px; }
.button:hover { filter: brightness(1.08); }
.gallery { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: .75rem; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery a:hover img { transform: scale(1.04); }
.preview-banner { margin: 0 0 1.5rem; background: #fff3c4; color: #4a3800; text-align: center; padding: .6rem 1rem; font-weight: 600; }

/* Footer */
.site-footer { background: #24201f; color: #f1ece9; padding: 2.5rem 0 1rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; }
.footer-title { font-weight: 700; margin: 0 0 .4rem; color: #fff; }
.site-footer p { margin: 0 0 .3rem; }
.footer-links { list-style: none; margin: 0; padding: 0; } .footer-links a { display: inline-block; padding: .35rem 0; }
.pre { white-space: pre-line; }
.copyright { color: #b9b0ab; font-size: .85rem; margin-top: 2rem !important; }

/* Mobiel: menu als uitklaplijst (alleen met JavaScript; anders blijft het zichtbaar) */
@media (max-width: 52rem) {
    .js .nav-toggle { display: inline-flex; }
    .js .site-nav { display: none; width: 100%; }
    .js .site-nav.open { display: block; }
    .site-nav { width: 100%; }
    .site-nav > ul { flex-direction: column; padding-bottom: .5rem; }
    .site-nav .sub { position: static; display: block; box-shadow: none; background: transparent; color: inherit; padding: 0 0 0 1rem; min-width: 0; }
    .site-nav .sub a { color: inherit; }
    .site-nav .sub a:hover, .site-nav .sub a[aria-current="page"] { background: color-mix(in srgb, var(--on-primary) 16%, transparent); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header nav, .nav-toggle, .skip-link, .site-footer nav { display: none; } body { background: #fff; } }

/* Pagebuilder-pagina's: rijen bepalen zelf hun ruimte en breedte */
.is-builder main { padding: 0; }
.builder-content .page-title-wrap { padding-top: clamp(1.5rem, 5vw, 3rem); }
.builder-content .page-title-wrap h1 { margin-bottom: 0; }
.b-row .b-el h1, .b-row .b-el h2, .b-row .b-el h3, .b-row .b-el h4 { line-height: 1.2; }
.edit-page-button { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 999px;
    text-decoration: none; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.25); min-height: 44px; }
.edit-page-button:hover { background: #000; }
@media print { .edit-page-button { display: none; } }
