/*
 * Pro CMS — bouwblokken (website én editor)
 * Thema's passen de kleuren aan via deze variabelen.
 */
:root {
    --pc-accent: #0077ad;
    --pc-accent-dark: #005c87;
    --pc-accent-contrast: #ffffff;
    --pc-grey: #f2f4f6;
    --pc-border: #e2e6ea;
    --pc-text-muted: #6b7680;
    --pc-gap: 28px;
    --pc-radius: 6px;
}

/* Kolommen */
.pc-cols { display: grid; gap: var(--pc-gap); margin: 1.5em 0; align-items: start; }
.pc-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc-col > :first-child { margin-top: 0; }
.pc-col > :last-child { margin-bottom: 0; }

/* Secties (volle breedte achtergrond binnen de inhoud) */
.pc-section {
    margin: 2em 0;
    padding: 2.25em 2em;
    border-radius: var(--pc-radius);
}
.pc-section > :first-child { margin-top: 0; }
.pc-section > :last-child { margin-bottom: 0; }
.pc-section--grey { background: var(--pc-grey); }
.pc-section--brand { background: var(--pc-accent); color: var(--pc-accent-contrast); }
.pc-section--brand h2, .pc-section--brand h3, .pc-section--brand a { color: var(--pc-accent-contrast); }

/* Blok met titel en tekst */
.pc-box { padding: 1.5em; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); background: #fff; margin: 0 0 1em; }
.pc-box > :first-child { margin-top: 0; }
.pc-box > :last-child { margin-bottom: 0; }

/* Oproep */
.pc-cta { text-align: center; padding: 2em 1.5em; margin: 2em 0; background: var(--pc-grey); border-radius: var(--pc-radius); }
.pc-cta__text { font-size: 1.25em; margin: 0 0 1em; }
.pc-cta > :last-child { margin-bottom: 0; }

/* Knoppen */
.pc-button, a.pc-button {
    display: inline-block;
    background: var(--pc-accent);
    color: var(--pc-accent-contrast);
    padding: .7em 1.4em;
    border-radius: var(--pc-radius);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
    border: 2px solid var(--pc-accent);
}
.pc-button:hover { background: var(--pc-accent-dark); border-color: var(--pc-accent-dark); color: var(--pc-accent-contrast); text-decoration: none; }
.pc-button--light, a.pc-button--light { background: transparent; color: var(--pc-accent); }
.pc-button--light:hover { background: var(--pc-accent); color: var(--pc-accent-contrast); }

/* Galerij */
.pc-gallery { display: grid; gap: 10px; margin: 1.5em 0; }
.pc-gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc-gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc-gallery-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pc-gallery__item { display: block; overflow: hidden; border-radius: 4px; background: var(--pc-grey); aspect-ratio: 4 / 3; }
.pc-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; border-radius: 0 !important; }
.pc-gallery__item:hover img { transform: scale(1.04); }

/* Logo's */
.pc-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 40px; margin: 1.5em 0; }
.pc-logos__item, .pc-logos a { display: block; }
.pc-logos img { max-height: 70px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; border-radius: 0 !important; }
.pc-logos a:hover img, .pc-logos__item:hover img { filter: none; opacity: 1; }

/* Uitklapblok (TinyMCE accordion) */
details.mce-accordion, details.pc-toggle {
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius);
    margin: 0 0 .75em;
    background: #fff;
}
details.mce-accordion > summary, details.pc-toggle > summary {
    cursor: pointer;
    padding: .9em 1.1em;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 2.5em;
}
details.mce-accordion > summary::-webkit-details-marker { display: none; }
details.mce-accordion > summary::after, details.pc-toggle > summary::after {
    content: "+";
    position: absolute;
    right: 1em; top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    color: var(--pc-accent);
    font-weight: 400;
}
details[open].mce-accordion > summary::after, details[open].pc-toggle > summary::after { content: "–"; }
details.mce-accordion > :not(summary), details.pc-toggle > :not(summary) { padding: 0 1.1em; }
details.mce-accordion[open], details.pc-toggle[open] { padding-bottom: .5em; }

/* Kaart en video */
.pc-map { position: relative; aspect-ratio: 16 / 7; min-height: 280px; margin: 1.5em 0; border-radius: var(--pc-radius); overflow: hidden; background: var(--pc-grey); }
.pc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pc-video video, video.pc-video { width: 100%; height: auto; border-radius: var(--pc-radius); background: #000; display: block; }
.pc-embed { position: relative; aspect-ratio: 16 / 9; }
.pc-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Afbeeldingen in tekst */
img.align-wide { display: block; width: 100%; margin: 1.5em 0; }

/* Overzichten ([list]) — standaard, thema's mogen dit overschrijven */
.pc-cards { display: grid; gap: var(--pc-gap); margin: 1.5em 0; }
.pc-cards-1 { grid-template-columns: 1fr; }
.pc-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc-cards-5, .pc-cards-6 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* Lightbox (assets/js/site.js) */
.pc-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(10, 12, 16, .92);
    display: flex; align-items: center; justify-content: center;
    padding: 56px 64px;
}
.pc-lightbox[hidden] { display: none; }
.pc-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.pc-lightbox button {
    position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.pc-lightbox button:hover, .pc-lightbox button:focus-visible { background: rgba(255, 255, 255, .25); }
.pc-lightbox__close { top: 12px; right: 12px; }
.pc-lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.pc-lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.pc-lightbox__count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 14px; }

@media (max-width: 900px) {
    .pc-cols-3, .pc-cols-4, .pc-cards-3, .pc-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pc-gallery-4, .pc-gallery-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .pc-cols-2, .pc-cols-3, .pc-cols-4, .pc-cards-2, .pc-cards-3, .pc-cards-4 { grid-template-columns: 1fr; }
    .pc-gallery-3, .pc-gallery-4, .pc-gallery-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pc-section { padding: 1.5em 1.1em; }
    .pc-lightbox { padding: 56px 8px; }
}
