/* ===== Variabelen & reset ===== */
:root {
    --kleur-bg:        #F7F3EC;
    --kleur-bg-alt:    #EEE8DC;
    --kleur-tekst:     #2A2018;
    --kleur-tekst-zacht: #6B5A48;
    /* --kleur-groen (de huiskleur) staat in css/huiskleur.css */
    --kleur-groen-licht: #3D7558;
    --kleur-groen-bg:  #EAF0EC;
    --kleur-goud:      #A67B30;
    --kleur-goud-licht: #C49A4A;
    --kleur-rand:      #D8CEBC;
    --kleur-wit:       #FFFDF8;
    --lettertype-kop:  'Playfair Display', Georgia, serif;
    --lettertype-tekst: 'Source Serif 4', Georgia, serif;
    --max-breedte:     1200px;
    --ruimte:          1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--lettertype-tekst);
    background-color: var(--kleur-bg);
    color: var(--kleur-tekst);
    font-size: 1rem;
    line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--kleur-groen); text-decoration: none; }
a:hover { color: var(--kleur-goud); }

.container {
    max-width: var(--max-breedte);
    margin: 0 auto;
    padding: 0 var(--ruimte);
}

/* Alleen voor schermlezers: een label dat niet in beeld hoeft (zoekveld met plaatshouder), wel in de toegankelijkheidsboom. */
.alleen-lezer { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Leeskolom: de container blijft standaard breed (gelijk met het logo), de inhoud krijgt een leesbare breedte, links. */
.container.leeskolom > * { max-width: var(--leesbreedte, 720px); }

/* ===== Typografie ===== */
h1, h2, h3, h4 {
    font-family: var(--lettertype-kop);
    line-height: 1.25;
    color: var(--kleur-tekst);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

/* ===== Header ===== */
.site-header {
    background: var(--kleur-groen);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .85rem;
    padding-bottom: .85rem;
}

.site-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.logo-naam {
    font-family: var(--lettertype-kop);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: .02em;
}

.logo-sub {
    font-size: .75rem;
    color: rgba(255,255,255,.75);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hoofd-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.hoofd-nav a {
    color: rgba(255,255,255,.9);
    font-size: .95rem;
    letter-spacing: .04em;
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}

.hoofd-nav a:hover,
.hoofd-nav a.actief {
    color: #fff;
    border-bottom-color: var(--kleur-goud-licht);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--kleur-groen) 0%, #1E3D2E 100%);
    color: #fff;
    padding: 2.5rem var(--ruimte);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M30 30c0-11 9-20 20-20s20 9 20 20-9 20-20 20-20-9-20-20zm-30 0C0 19 9 10 20 10s20 9 20 20-9 20-20 20S0 41 0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inhoud { position: relative; max-width: 680px; margin: 0 auto; }

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #fff;
    margin-bottom: 1rem;
    font-style: italic;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 2rem;
}

.hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--kleur-goud-licht);
}

.hero-ornament::before,
.hero-ornament::after {
    content: '';
    height: 1px;
    width: 60px;
    background: var(--kleur-goud-licht);
    opacity: .6;
}

/* ===== Knoppen ===== */
.knop {
    display: inline-block;
    padding: .65rem 1.75rem;
    border-radius: 3px;
    font-family: var(--lettertype-tekst);
    font-size: .9rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
}

.knop-primair {
    background: var(--kleur-goud);
    color: #fff;
    border-color: var(--kleur-goud);
}

.knop-primair:hover {
    background: var(--kleur-goud-licht);
    border-color: var(--kleur-goud-licht);
    color: #fff;
}

.knop-lijn {
    background: transparent;
    border-color: currentColor;
    color: var(--kleur-groen);
}

.knop-lijn:hover {
    background: var(--kleur-groen);
    color: #fff;
    border-color: var(--kleur-groen);
}

.knop-wit {
    background: transparent;
    border-color: rgba(255,255,255,.7);
    color: #fff;
}

.knop-wit:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
    color: #fff;
}

/* ===== Sectie-header ===== */
.sectie-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.sectie-header h2 { margin-bottom: .5rem; }

.sectie-lijn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin: .75rem auto 0;
    color: var(--kleur-goud);
}

.sectie-lijn::before,
.sectie-lijn::after {
    content: '';
    height: 1px;
    width: 40px;
    background: var(--kleur-goud);
}

/* ===== Uitgelichte items (homepage) ===== */
.uitgelicht-sectie {
    padding: 4rem 0;
}

.item-raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
}

.item-kaart {
    background: var(--kleur-wit);
    border: 1px solid var(--kleur-rand);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
    display: flex;
    flex-direction: column;
}

.item-kaart:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    transform: translateY(-3px);
}

.item-kaart-foto {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--kleur-bg-alt);
    position: relative;
}

.item-kaart-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.item-kaart:hover .item-kaart-foto img {
    transform: scale(1.04);
}

.item-kaart-geen-foto {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kleur-rand);
    font-size: 3rem;
}

.item-kaart-inhoud {
    padding: 1.1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-type-label {
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--kleur-goud);
    margin-bottom: .3rem;
}

.item-kaart-inhoud h3 {
    font-size: 1rem;
    margin-bottom: .3rem;
}

.item-kaart-inhoud h3 a {
    color: var(--kleur-tekst);
}

.item-kaart-inhoud h3 a:hover {
    color: var(--kleur-groen);
}

.item-meta {
    font-size: .82rem;
    color: var(--kleur-tekst-zacht);
    margin-top: auto;
    padding-top: .5rem;
}

/* ===== Collectiepagina filters ===== */
.collectie-header {
    background: var(--kleur-groen);
    padding: 2.5rem var(--ruimte);
    color: #fff;
}

.collectie-header h1 {
    color: #fff;
    font-style: italic;
    margin-bottom: .5rem;
}

.collectie-header p {
    color: rgba(255,255,255,.8);
    font-size: .95rem;
}

.filter-balk {
    background: var(--kleur-wit);
    border-bottom: 1px solid var(--kleur-rand);
    padding: 1rem 0;
    position: sticky;
    top: 57px;
    z-index: 50;
}

.filter-balk .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.filter-balk input[type="search"] {
    flex: 1;
    min-width: 180px;
    padding: .5rem .85rem;
    border: 1px solid var(--kleur-rand);
    border-radius: 3px;
    font-family: var(--lettertype-tekst);
    font-size: .9rem;
    background: var(--kleur-bg);
    color: var(--kleur-tekst);
}

.filter-balk input[type="search"]:focus {
    outline: none;
    border-color: var(--kleur-groen);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.chip {
    padding: .3rem .85rem;
    border: 1px solid var(--kleur-rand);
    border-radius: 100px;
    font-size: .8rem;
    cursor: pointer;
    background: var(--kleur-bg);
    color: var(--kleur-tekst-zacht);
    transition: all .15s;
}

.chip:hover,
.chip.actief {
    background: var(--kleur-groen);
    border-color: var(--kleur-groen);
    color: #fff;
}

.teller {
    font-size: .8rem;
    color: var(--kleur-tekst-zacht);
    margin-left: auto;
}

.collectie-sectie {
    padding: 2.5rem 0 4rem;
}

.geen-resultaten {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--kleur-tekst-zacht);
    display: none;
}

.geen-resultaten.zichtbaar { display: block; }

/* ===== Detailpagina ===== */
.object-sectie {
    padding: 3rem 0 5rem;
}

.object-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.object-fotogallerij {
    position: sticky;
    top: 80px;
}

.hoofdfoto {
    position: relative;        /* ankerpunt voor de galerij-pijltjes (op het fotokader) */
    border: 1px solid var(--kleur-rand);
    border-radius: 4px;
    overflow: hidden;
    background: var(--kleur-bg-alt);
    margin-bottom: .75rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hoofdfoto img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Vermelding onder een fotogalerij (foto_credit_html()): soort, naam, eventueel een link; schakelt mee met de foto. */
.galerij-credit { font-size: .88rem; color: var(--kleur-tekst); margin: .6rem 0 0; line-height: 1.55; }
.galerij-credit:empty { display: none; }
.galerij-credit .fotovm-soort { color: var(--kleur-tekst-zacht); }
.galerij-credit a { color: var(--kleur-groen); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--kleur-groen) 35%, transparent); text-underline-offset: 2px; }
.galerij-credit a:hover { color: var(--kleur-goud); }

.thumbnails {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 72px;
    height: 72px;
    border: 2px solid var(--kleur-rand);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s;
}

.thumbnail:hover,
.thumbnail.actief {
    border-color: var(--kleur-groen);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Kaartje "meer bij de partner" (partner_meer_kaart()): na de publieke foto's, op de plek van de grote foto. De achtergrond is
   de eerstvolgende foto, sterk vervaagd; het hele kaartje is een link naar de productpagina. Geen zoom (js/main.js). */
.galerij-kaart {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--kleur-groen);
}
.galerij-kaart[hidden],
.hoofdfoto img[hidden] { display: none; }   /* img heeft display: block, dat wint anders van hidden */
.hoofdfoto .galerij-kaart-waas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(24px) saturate(1.1);
    transform: scale(1.3);
}
.galerij-kaart::after { content: ''; position: absolute; inset: 0; background: rgba(28, 24, 18, .45); }
.galerij-kaart-tekst {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: calc(100% - 7.5rem);   /* vrij van de pijltjes */
    text-align: center;
}
.galerij-kaart-kop {
    font-family: var(--lettertype-kop);
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.3;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.galerij-kaart-knop {
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 1.5rem;
    padding: .55rem 1.25rem;
    font-size: .95rem;
    background: rgba(255, 255, 255, .12);
    transition: background .15s;
}
.galerij-kaart:hover,
.galerij-kaart:focus-visible { color: #fff; }   /* niet de goudkleur van a:hover: onleesbaar op de vage foto */
.galerij-kaart:hover .galerij-kaart-knop,
.galerij-kaart:focus-visible .galerij-kaart-knop { background: #fff; border-color: #fff; color: var(--kleur-tekst); }
.galerij-kaart:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.thumbnail-meer { position: relative; display: flex; align-items: center; justify-content: center; background: var(--kleur-groen); }
.thumbnail-meer img { position: absolute; inset: 0; filter: blur(5px); transform: scale(1.35); }
.thumbnail-meer::after { content: ''; position: absolute; inset: 0; background: rgba(28, 24, 18, .4); }
.thumbnail-meer-tekst { position: relative; z-index: 1; color: #fff; font-size: .72rem; line-height: 1.15; text-align: center; }
.thumbnail-meer-tekst b { display: block; font-size: 1.1rem; }
@media (max-width: 480px) {
    .thumbnail { width: 62px; height: 62px; }   /* vier op een rij, ook met het kaartje erbij */
    .galerij-kaart-tekst { gap: .9rem; max-width: calc(100% - 6.5rem); }
    .galerij-kaart-knop { font-size: .8rem; padding: .45rem .9rem; }
}

.object-info {
    min-width: 0;
}

/* ===== Bouwstenen detailpagina's (includes/bouwstenen.php) =====
   Terug-link + kruimelpad, titel, gegevensblok, sectiekop (h2) + kopje (klein, in kaarten), kaart, badge en beheerlinks: overal dezelfde opmaak.
   Pagina's maken deze onderdelen niet zelf na (tools/ui-controle.php waakt erover). */
.pagina-nav { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; margin-bottom: 1.75rem; }
.terug-link {
    font-size: .88rem;
    color: var(--kleur-tekst-zacht);
}
.terug-link:hover { color: var(--kleur-groen); }
.broodkruimel { list-style: none; display: flex; flex-wrap: wrap; font-size: .82rem; color: var(--kleur-tekst-zacht); line-height: 1.5; }
.broodkruimel li + li::before { content: '›'; margin: 0 .4rem; opacity: .7; }
.broodkruimel a { color: var(--kleur-tekst-zacht); }
.broodkruimel a:hover { color: var(--kleur-groen); }

.pagina-titel { margin-bottom: 1.5rem; }
.pagina-titel h1 { margin: 0; }
.pagina-boven, .object-type {
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--kleur-goud);
    margin: 0 0 .4rem;
}
.pagina-onder { color: var(--kleur-tekst-zacht); margin: .45rem 0 0; }

.sectie-kop { font-size: 1.35rem; margin: 2.5rem 0 .6rem; }
.sectie-kop small { font-family: var(--lettertype-tekst); font-size: .8rem; font-weight: 400; color: var(--kleur-tekst-zacht); }
.sectie-intro { color: var(--kleur-tekst-zacht); font-size: .95rem; line-height: 1.6; margin: 0 0 1.25rem; max-width: 46rem; }
.kaart { background: var(--kleur-wit); border: 1px solid var(--kleur-rand); border-radius: 10px; padding: 1.2rem 1.35rem; }
.kopje { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--kleur-groen); margin: 0 0 .85rem; font-weight: 700; }
/* Beheerlinks voor de ingelogde beheerder (beheer_acties()): kleine knoppen, rustiger dan .knop, onder de titel. Bezoekers zien ze niet. */
.beheer-acties { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.beheer-actie {
    font-size: .82rem;
    line-height: 1.4;
    padding: .3rem .85rem;
    border: 1px solid var(--kleur-groen);
    border-radius: 999px;
    color: var(--kleur-groen);
    background: var(--kleur-wit);
}
.beheer-actie:hover { background: var(--kleur-groen); color: #fff; }
.niveau-badge { display: inline-block; font-size: .72rem; font-weight: 600; line-height: 1.5; color: #fff; border-radius: 999px; padding: .1rem .6rem; }
.niveau-badge.licht { color: var(--kleur-tekst); }

.object-titel {
    margin-bottom: 1.75rem;
}

.gegeven-lijst {
    border-top: 1px solid var(--kleur-rand);
    margin-bottom: 1.75rem;
}

.gegeven-rij {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: .5rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--kleur-rand);
    font-size: .9rem;
}

.gegeven-label {
    color: var(--kleur-tekst-zacht);
    font-weight: 400;
    hyphens: auto;              /* lange labels (de: "Tätigkeitszeitraum") breken af in plaats van over de waarde te lopen */
    overflow-wrap: break-word;
}

.gegeven-waarde {
    font-weight: 400;
}
.gegeven-waarde a:hover { text-decoration: underline; }
.gegeven-noot { color: var(--kleur-tekst-zacht); }

.object-beschrijving {
    margin-bottom: 1.75rem;
}


.object-beschrijving p {
    font-size: .95rem;
    color: var(--kleur-tekst);
}


/* ===== Over-pagina ===== */
.pagina-kop {
    background: var(--kleur-groen);
    padding: 3rem var(--ruimte);
    color: #fff;
}

.pagina-kop h1 {
    color: #fff;
    font-style: italic;
}

.pagina-inhoud {
    padding: 3rem 0 5rem;
}

.proza {
    max-width: 720px;
}

.proza h2 {
    margin: 2rem 0 .75rem;
    font-size: 1.4rem;
}

.proza p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Bronnen en werkwijze (bronnen.php, RDH-86): opsommingen binnen de tekstkolom, met vetgedrukte labels */
.bronnen-kort { margin: 0 0 1rem; }
.bronnen-kort ul, .bronnen-lijst { padding-left: 1.2rem; margin: 0 0 1rem; }
.bronnen-kort li, .bronnen-lijst li { margin-bottom: .5rem; line-height: 1.55; }
.bronnen-kort li:last-child { margin-bottom: 0; }
.bronnen strong { font-weight: 700; color: var(--kleur-groen); }
.bronnen .bronnen-kort .kopje { font-size: .78rem; margin: 0 0 .85rem; }   /* .proza h2 zou hem groot maken */
.bronnen-citaat { margin: 0; font-size: .95rem; }

/* ===== Afbeeldingen op de Over-pagina ===== */
.over-proza h2 { clear: both; }          /* elke sectiekop start onder een vorige zwevende afbeelding */
.over-fig { margin: 1.4rem 0 1.6rem; }
.over-fig img {
    display: block; width: 100%; height: auto;
    border-radius: 4px; background: var(--kleur-bg-alt);
    border: 1px solid var(--kleur-rand);
}
.over-fig figcaption {
    font-size: .85rem; color: var(--kleur-tekst-zacht);
    line-height: 1.5; margin-top: .55rem;
}
.over-fig .over-cred { display: block; margin-top: .2rem; font-size: .78rem; opacity: .85; }
.over-fig-rechts {
    float: right; width: 46%; max-width: 340px;
    margin: .35rem 0 1rem 1.9rem;
}
.over-fig-breed { width: 100%; }
@media (max-width: 640px) {
    .over-fig-rechts { float: none; width: auto; max-width: none; margin: 1.4rem 0; }
}

/* ===== Footer ===== */
.site-footer {
    background: #1E2D24;
    color: rgba(255,255,255,.6);
    padding: 1.75rem 0;
    font-size: .85rem;
    text-align: center;
}

.site-footer a {
    color: rgba(255,255,255,.5);
}

.site-footer a:hover {
    color: rgba(255,255,255,.85);
}

.footer-admin {
    margin-top: .25rem;
}

/* ===== Meldingen ===== */
.melding {
    padding: .85rem 1.25rem;
    border-radius: 3px;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}

.melding-succes {
    background: #EAF4ED;
    color: #1A5231;
    border: 1px solid #A8D5B5;
}

.melding-fout {
    background: #FDF0F0;
    color: #7A1F1F;
    border: 1px solid #E8B4B4;
}

/* ===== Pijltjes op hoofdfoto ===== */
.gallerij-pijl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background .15s;
    line-height: 1;
}

.gallerij-pijl:hover    { background: rgba(0,0,0,.72); }
.gallerij-pijl-links    { left: .6rem; }
.gallerij-pijl-rechts   { right: .6rem; }
.gallerij-pijl[hidden]  { display: none; }

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.93);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lb-img {
    max-width:  calc(100vw - 130px);
    max-height: calc(100vh - 80px);
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 8px 48px rgba(0,0,0,.7);
    display: block;
}

.lb-sluiten {
    position: fixed;
    top: .85rem;
    right: .85rem;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    line-height: 1;
}

.lb-sluiten:hover { background: rgba(255,255,255,.3); }

.lb-pijl {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    line-height: 1;
}

.lb-pijl:hover    { background: rgba(255,255,255,.28); }
.lb-links         { left: .85rem; }
.lb-rechts        { right: .85rem; }
.lb-pijl[hidden]  { display: none; }

.lb-teller {
    position: fixed;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: .82rem;
    font-family: var(--lettertype-tekst);
    letter-spacing: .06em;
}

/* ===== Responsief ===== */
@media (max-width: 768px) {
    .hoofd-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--kleur-groen);
        padding: 1rem var(--ruimte);
        box-shadow: 0 4px 12px rgba(0,0,0,.2);
    }

    .hoofd-nav.open { display: block; }

    .hoofd-nav ul {
        flex-direction: column;
        gap: .75rem;
    }

    .nav-toggle { display: flex; }

    .site-header { position: sticky; top: 0; }

    .object-grid {
        grid-template-columns: 1fr;
    }

    .object-fotogallerij {
        position: static;
    }

    .gegeven-rij {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .filter-balk {
        position: static;
    }
}

@media (max-width: 480px) {
    .hero { padding: 3rem var(--ruimte); }
    .item-raster { grid-template-columns: 1fr; }
}

/* Rijke tekst in objectbeschrijvingen (vet/cursief + lijsten) */
.beschrijving-tekst p { margin: 0 0 .6rem; }
.beschrijving-tekst p:last-child { margin-bottom: 0; }
.beschrijving-tekst ul { list-style: disc; margin: .5rem 0 .5rem 1.5rem; }
.beschrijving-tekst ol { list-style: decimal; margin: .5rem 0 .5rem 1.5rem; }
.beschrijving-tekst ol[type="a"] { list-style: lower-alpha; }
.beschrijving-tekst ol[type="i"] { list-style: lower-roman; }
.beschrijving-tekst li { margin: .15rem 0; }

/* ---- Formulieren (contact, bijdragen) ---- */
.contact-intro { color: var(--kleur-tekst-zacht); line-height: 1.7; margin-bottom: .75rem; }
.formulier { margin-top: 1.5rem; }
.formulier .veld { margin-bottom: 1.1rem; flex: 1; min-width: 0; }
.formulier .veld-rij { display: flex; gap: 1rem; }
.formulier label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; color: var(--kleur-tekst); }
.formulier input[type="text"], .formulier input[type="email"], .formulier input[type="number"],
.formulier select, .formulier textarea {
    width: 100%; padding: .6rem .75rem; font: inherit; font-size: 1rem; color: var(--kleur-tekst);
    background: var(--kleur-wit); border: 1px solid var(--kleur-rand); border-radius: 4px;
}
.formulier textarea { min-height: 10rem; resize: vertical; line-height: 1.6; }
.formulier input:focus, .formulier select:focus, .formulier textarea:focus {
    outline: none; border-color: var(--kleur-groen); box-shadow: 0 0 0 3px var(--kleur-groen-bg);
}
.formulier small { display: block; font-size: .8rem; color: var(--kleur-tekst-zacht); margin-top: .3rem; }
.formulier-noot { font-size: .82rem; color: var(--kleur-tekst-zacht); margin: .25rem 0 1rem; }
.formulier-acties { margin-top: .5rem; }
.formulier-fout { background: #FDF0F0; border: 1px solid #E8B4B4; color: #7A1F1F; padding: .6rem 1rem; border-radius: 5px; margin: .5rem 0; }
@media (max-width: 640px) {
    .formulier .veld-rij { flex-direction: column; gap: 0; }
}

/* ===== Werk volgens de werkorderboeken: schilderspagina (includes/schilder-werkorders.php) en modelpagina (model.php) ===== */
.sdw-tegels { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:.75rem; margin-bottom:1rem; }
.sdw-tegel { background:var(--kleur-wit); border:1px solid var(--kleur-rand); border-radius:10px; padding:.85rem 1rem; }
.sdw-tegel b { display:block; font-family:var(--lettertype-kop); font-size:1.7rem; font-weight:400; line-height:1.1; color:var(--kleur-groen); }
.sdw-tegel span { font-size:.8rem; color:var(--kleur-tekst-zacht); }
.sdw-kaart { margin-bottom:1rem; }
.sdw-legenda { display:flex; flex-wrap:wrap; gap:.3rem 1rem; font-size:.8rem; color:var(--kleur-tekst-zacht); margin:0 0 .7rem; }
.sdw-legenda i { display:inline-block; width:.7rem; height:.7rem; border-radius:2px; margin-right:.3rem; vertical-align:-.05rem; }
.sdw-staven { display:flex; align-items:flex-end; gap:3px; height:150px; }
.sdw-staaf { flex:1; height:100%; display:flex; flex-direction:column-reverse; gap:1px; text-decoration:none; border-radius:3px 3px 0 0; position:relative; }
.sdw-staaf span { display:block; min-height:1px; }
.sdw-staaf span:last-child { border-radius:3px 3px 0 0; }
.sdw-staaf:hover span { filter:brightness(1.12); }
.sdw-staaf.gekozen::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:3px; border-radius:2px; background:var(--kleur-tekst); }
.sdw-as { display:flex; gap:3px; margin-top:9px; font-size:.7rem; color:var(--kleur-tekst-zacht); }
.sdw-as span { flex:1; text-align:center; white-space:nowrap; overflow:visible; }
.sdw-twee { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:1rem; margin-bottom:1rem; }
.sdw-twee .sdw-kaart { margin-bottom:0; }
.sdw-top { list-style:none; margin:0; padding:0; font-size:.9rem; }
.sdw-top li { display:grid; grid-template-columns:1fr auto; gap:.15rem .75rem; padding:.3rem 0; }
.sdw-top li + li { border-top:1px dashed var(--kleur-rand); }
.sdw-top small { color:var(--kleur-tekst-zacht); white-space:nowrap; }
.sdw-top .balk { grid-column:1 / -1; height:4px; border-radius:2px; background:var(--kleur-bg-alt); overflow:hidden; }
.sdw-top .balk i { display:block; height:100%; background:#C9B58F; border-radius:2px; }
.sdw-top a { color:var(--kleur-groen); }
.sdw-jaren { display:flex; flex-wrap:wrap; gap:.3rem; margin:0 0 .9rem; }
.sdw-jaren a { font-size:.78rem; padding:.15rem .55rem; border:1px solid var(--kleur-rand); border-radius:999px; color:var(--kleur-tekst); text-decoration:none; background:var(--kleur-wit); }
.sdw-jaren a small { color:var(--kleur-tekst-zacht); }
.sdw-jaren a.actief { background:var(--kleur-groen); border-color:var(--kleur-groen); color:#fff; }
.sdw-jaren a.actief small { color:#e4efe7; }
.sdw-rij { display:grid; grid-template-columns:4.6rem 5.4rem minmax(0, 1fr) 4.2rem minmax(0, .9fr) 5rem; gap:.25rem .8rem; align-items:baseline;
           padding:.45rem 0; border-top:1px solid var(--kleur-rand); font-size:.88rem; }
.sdw-rij.kop { border-top:0; font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--kleur-tekst-zacht); padding-top:0; }
.sdw-rij .datum, .sdw-rij .aantal, .sdw-rij .prijs { color:var(--kleur-tekst-zacht); white-space:nowrap; }
.sdw-rij .aantal, .sdw-rij .prijs { text-align:right; }
.sdw-rij .wo a { color:var(--kleur-groen); font-weight:600; }
.sdw-rij .wat i { display:inline-block; width:.55rem; height:.55rem; border-radius:50%; margin-right:.35rem; }
.sdw-rij .samen { color:var(--kleur-tekst-zacht); font-size:.82rem; }
.sdw-rij .samen a { color:inherit; }
.sdw-noot { font-size:.8rem; color:var(--kleur-tekst-zacht); margin:.7rem 0 0; }
@media (max-width:700px) {
  .sdw-rij.kop { display:none; }
  .sdw-rij { grid-template-columns:auto 1fr auto; grid-template-areas:"datum wo prijs" "wat wat aantal" "samen samen samen"; }
  .sdw-rij .datum { grid-area:datum; } .sdw-rij .wo { grid-area:wo; } .sdw-rij .prijs { grid-area:prijs; }
  .sdw-rij .wat { grid-area:wat; } .sdw-rij .aantal { grid-area:aantal; } .sdw-rij .samen { grid-area:samen; }
  .sdw-staven { height:110px; gap:2px; }
  .sdw-as { gap:2px; }
}

/* ===== Werkorderoverzicht (werkorders-all.php, proef): alle werkorders per jaar; rijen en staven zijn .sdw-* ===== */
.sdw-rij[hidden], .woall-groep[hidden] { display:none; }
.woall-maand { margin:1.1rem 0 .15rem; }
.woall-filters { margin-bottom:.9rem; }
.woall-telling { font-size:.85rem; color:var(--kleur-tekst-zacht); }
.woall-nr-link { font-size:.88rem; }
.woall-terug { margin:0 0 .8rem; font-size:.9rem; }
.woall-onzeker { display:inline-block; padding:0 .3rem; border-radius:6px; background:#f6e7c8; color:#7a5212; font-size:.7rem; cursor:help; }
.woall-jm-jaren { margin:0 0 .8rem; font-size:.9rem; color:var(--kleur-tekst-zacht); }   /* de jaren van een jaarmerk (RDH-83; waren de jaarknoppen) */

/* /werkorders/{jaar} en /werkorders/alle/jaarmerk/{id} hebben links de jaarmerklijst naast de lijstkaart (.wo-layout, css/werkorders.css; 250 px
   plus 2 rem tussenruimte, vanaf 861 px naast de lijst): de kaart is dan 282 px smaller dan het venster. Binnen de kaart (padding en rand 45 px)
   hebben de zes kolommen van een rij ±605 px nodig (dus vanaf 980 px); daaronder dezelfde gestapelde rij als op een telefoon. Ter vergelijking:
   zonder zijbalk is de kaart bij 900 px 807 px breed. (Tot RDH-83 stonden hier ook de 22 jaarknoppen.) */
@media (min-width:861px) and (max-width:979px) {
  .wo-layout .sdw-rij.kop { display:none; }
  .wo-layout .sdw-rij { grid-template-columns:auto 1fr auto; grid-template-areas:"datum wo prijs" "wat wat aantal" "samen samen samen"; }
  .wo-layout .sdw-rij .datum { grid-area:datum; } .wo-layout .sdw-rij .wo { grid-area:wo; } .wo-layout .sdw-rij .prijs { grid-area:prijs; }
  .wo-layout .sdw-rij .wat { grid-area:wat; } .wo-layout .sdw-rij .aantal { grid-area:aantal; } .wo-layout .sdw-rij .samen { grid-area:samen; }
}

/* ===== Modellen: overzicht (modellen.php) en modelpagina (model.php) ===== */
.segment-knoppen { display:flex; flex-wrap:wrap; gap:.4rem; margin:0 0 1.25rem; }
.segment-knoppen a { padding:.35rem .85rem; border:1px solid var(--kleur-rand); border-radius:999px; font-size:.88rem;
    color:var(--kleur-tekst); text-decoration:none; background:var(--kleur-wit); }
.segment-knoppen a small { color:var(--kleur-tekst-zacht); }
.segment-knoppen a:hover { background:var(--kleur-groen-bg); }
.segment-knoppen a.actief { background:var(--kleur-groen); border-color:var(--kleur-groen); color:#fff; }
.segment-knoppen a.actief small { color:#e4efe7; }
.modellen-filters { display:flex; flex-wrap:wrap; gap:.6rem 1.25rem; align-items:center; margin:0 0 1.25rem; font-size:.9rem; }
.modellen-zoek { padding:.45rem .7rem; border:1px solid var(--kleur-rand); border-radius:6px; font-size:.9rem; min-width:220px; flex:0 1 320px; }
.modellen-filters select { margin-left:.4rem; padding:.35rem .5rem; border:1px solid var(--kleur-rand); border-radius:6px; font:inherit; }
.modellen-check { display:flex; align-items:center; gap:.35rem; }
.modellen-raster { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:.75rem; }
.model-kaart { display:flex; gap:.75rem; align-items:center; background:var(--kleur-wit); border:1px solid var(--kleur-rand); border-radius:8px;
    padding:.55rem; color:inherit; text-decoration:none; min-width:0; }
a.model-kaart:hover { border-color:var(--kleur-groen); box-shadow:0 4px 14px rgba(42,32,24,.08); color:inherit; }
.model-kaart.zonder-pagina { background:transparent; border-style:dashed; }
.model-kaart[hidden] { display:none; }
.model-kaart-beeld { flex:0 0 64px; width:64px; height:64px; border-radius:6px; overflow:hidden; background:var(--kleur-bg-alt);
    display:flex; align-items:center; justify-content:center; }
.model-kaart-beeld img { width:100%; height:100%; object-fit:cover; }
.model-kaart-nr { font-family:var(--lettertype-kop); font-size:1.15rem; color:var(--kleur-groen); }
.zonder-pagina .model-kaart-nr { color:var(--kleur-tekst-zacht); }
.model-kaart-tekst { display:flex; flex-direction:column; min-width:0; line-height:1.3; }
.model-kaart-tekst strong { font-family:var(--lettertype-kop); font-weight:400; font-size:1rem; color:var(--kleur-groen); }
.zonder-pagina .model-kaart-tekst strong { color:var(--kleur-tekst); }
.model-kaart-tekst span { font-size:.88rem; overflow:hidden; text-overflow:ellipsis; }
.model-kaart-tekst small { font-size:.76rem; color:var(--kleur-tekst-zacht); margin-top:.1rem; }
.modellen-geen { color:var(--kleur-tekst-zacht); padding:2rem 0; }
.model-bron { font-size:.8rem; color:var(--kleur-tekst-zacht); margin:1.25rem 0 0; max-width:62rem; }
.model-verwant { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.4rem .9rem; font-size:.92rem; }

/* ===== Taalkiezer en taalhint in de kop (includes/header.php; tot RDH-49 inline) ===== */
.taal-kies { position:relative; list-style:none; }
.taal-knop { display:inline-flex; align-items:center; gap:.35rem; background:rgba(255,255,255,.14);
    color:#fff; border:1px solid rgba(255,255,255,.30); border-radius:6px; padding:.22rem .55rem;
    font-size:.8rem; font-weight:600; letter-spacing:.04em; cursor:pointer; font-family:inherit; }
.taal-knop:hover, .taal-kies.open .taal-knop { background:rgba(255,255,255,.26); }
.taal-knop svg { width:14px; height:14px; opacity:.9; }
.taal-knop .pijl { font-size:.6rem; opacity:.85; transition:transform .15s ease; }
.taal-kies.open .taal-knop .pijl { transform:rotate(180deg); }
/* Hoge specificiteit (.hoofd-nav ul.taal-menu) zodat de globale .hoofd-nav ul{display:flex} niet wint. */
.hoofd-nav ul.taal-menu { position:absolute; right:0; top:calc(100% + .45rem); min-width:158px; margin:0; padding:.3rem;
    list-style:none; background:#fff; border:1px solid var(--kleur-rand); border-radius:8px; flex-direction:column;
    box-shadow:0 10px 26px rgba(42,32,24,.22); display:none; z-index:200; }
.hoofd-nav .taal-kies.open ul.taal-menu { display:block; }
.hoofd-nav ul.taal-menu li { margin:0; }
.hoofd-nav ul.taal-menu a { display:flex; align-items:center; gap:.5rem; padding:.42rem .6rem; border-radius:5px;
    color:var(--kleur-tekst); text-decoration:none; font-size:.9rem; border:0; }
.hoofd-nav ul.taal-menu a:hover { background:var(--kleur-groen-bg); color:var(--kleur-groen); }
.hoofd-nav ul.taal-menu a.actief { color:var(--kleur-groen); font-weight:700; }
.hoofd-nav ul.taal-menu a .vink { margin-left:auto; color:var(--kleur-groen); }
@media (max-width:860px){ .hoofd-nav ul.taal-menu { right:auto; left:0; } }

/* Taalhint-balk (browsertaal en/de op een NL-pagina) */
.taalhint { background:var(--kleur-groen-bg); border-bottom:1px solid var(--kleur-rand); font-size:.9rem; }
.taalhint-inner { display:flex; align-items:center; gap:.75rem; padding:.5rem var(--ruimte); }
.taalhint-tekst { color:var(--kleur-tekst); }
.taalhint-link { color:var(--kleur-groen); font-weight:600; text-decoration:none; white-space:nowrap; }
.taalhint-link:hover { text-decoration:underline; }
.taalhint-sluit { margin-left:auto; background:none; border:none; color:var(--kleur-tekst-zacht);
    font-size:1.25rem; line-height:1; cursor:pointer; padding:.1rem .4rem; border-radius:5px; }
.taalhint-sluit:hover { background:rgba(0,0,0,.06); color:var(--kleur-tekst); }
