/* =========================================================
   SPOZ – nieuwe layout (okt 2026)
   Gebaseerd op bestaande class-namen van het CMS.
   Nieuwe classes (in CMS toe te voegen aan het blok):
     .hero    – grote headerfoto met afgeronde hoeken + overlay (img/hero-overlay.svg)
     .intro   – gecentreerde introtekst (automatisch: eerste tekstblok onder de hero)
     .values  – de vier gekleurde kernwaarden-blokken (textcol4)
     .footer  – blauwe footerbalk met logo (textcol4, eerste kolom leeg)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* CSS-reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, sub, sup, tt, var, u, i, center, dl, dt, dd, aul, ali, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { border: 0; font-size: 100%; font: inherit; vertical-align: baseline; margin: 0; padding: 0; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; margin: 0; padding: 0; }
table { border-collapse: collapse; border-spacing: 0; }

/* Kleuren */
:root {
    --paars: #581d53;   /* tekst, titels, menu */
    --magenta: #e4006d;
    --oranje: #f49b00;
    --blauw: #40bfef;
    --groen: #39a935;
    --radius: 44px;
}

/* Global */
body { font-family: 'Poppins', sans-serif; font-size: 15px; line-height: 24px; font-weight: 400; max-width: 1000px; margin: 0 auto; color: var(--paars); -webkit-text-size-adjust: 100%; }
.wrapper { display: block; margin: 15px; position: relative; width: auto; padding: 0; clear: both; }
    .wrapper.nomargin { margin: 0 15px }
    .wrapper.notopmargin { margin-top: 0 }
    .wrapper.extrabottommargin { margin-bottom: 40px }
    .wrapper.nopadding { padding: 0 }
    .wrapper.nomargin > .subwrapper { padding: 0 }
.subwrapper { width: 100%; margin: 0 auto; overflow: hidden; padding: 0 0 20px 0 }
h1 { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 34px; text-align: center; margin: 40px 0 0; }
h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--paars) }
h2 { font-size: 26px; margin-bottom: 10px; line-height: 32px; text-align: center; width: 100% }
    h2 strong { font-weight: 700 }
h3 { font-size: 20px; margin-bottom: 12px; line-height: 26px }
.bigtitle h3 { font-size: 20px; margin-bottom: 12px; line-height: 26px }
img { width: 100%; display: block; }
.textcol.textcol1.smallpadding > div > div, .textcol.textcol2.smallpadding > div > div { padding-top: 0; padding-bottom: 0 }
@media only screen and (max-width: 600px) {
    .wrapper.nomargin, .wrapper.textphoto { margin: 0 }
}

a { text-decoration: none; color: var(--paars); font-weight: 500; }
    a:hover { color: var(--magenta); }

/* Oude schoolkleuren / randen: in nieuw ontwerp niet meer gebruikt */
.borderSpoz img, .borderWegwijzer img, .borderZonnebloem img,
.borderAnna img, .borderAntonius img, .borderJozef img { border-bottom: 0 }

.backspoz h2, .backspoz.team { background: var(--blauw); color: #fff }
.backspoz a { color: #fff }
.textcol.backspoz > div > div { background: var(--blauw); color: #fff }
.textcol.backspoz h3 { color: #fff }

/* video */
.embed-container, .vimeovideo { width: 100%; display: block; position: relative; padding-bottom: 56.25%; overflow: hidden; }
    .embed-container iframe, .vimeovideo iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100% !important; }

/* ---------- Header ---------- */
.headerbar { margin: 0 15px; background: #fff; color: var(--paars) }
.topbar { display: block; height: 70px; position: relative; width: 100%; z-index: 999; }
.toplogo { background: url('../img/SPOZ_logo.svg') no-repeat left center; background-size: contain; width: 120px; height: 48px; position: absolute; left: 20px; top: 11px; display: block; z-index: 8999 }

/* menu */
.menubar, .menubar ul { display: block; list-style: none; }
.topbar #nav { position: absolute; right: 20px; top: 24px; z-index: 999; }
    .topbar #nav .touch { display: none; }
    .topbar #nav .menubar { margin: 0; }
        .topbar #nav .menubar li { display: inline-block; }
            .topbar #nav .menubar li a { margin: 0 10px; padding-bottom: 3px; font-size: 14px; font-weight: 500; text-transform: lowercase; color: var(--paars); }
                .topbar #nav .menubar li a:hover, .topbar #nav .menubar li.active a { border-bottom: 2px solid var(--paars); }

@media only screen and (max-width: 950px) {
    .topbar #nav { right: 0; top: 22px; width: 100%; z-index: 9999; }
        .topbar #nav .menubar { position: absolute; top: 48px; display: none; width: 100%; overflow: hidden; background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.08) }
        .topbar #nav .touch { color: var(--paars); display: block; font-size: 15px; font-weight: 500; line-height: 25px; height: 25px; position: absolute; right: 20px; top: 0; width: 80px; cursor: pointer }
        .topbar #nav ul { padding: 0; }
            .topbar #nav ul li { display: block; border-top: 1px solid #eee; line-height: 50px; height: 50px; padding-left: 4%; width: 100%; }
            .topbar #nav .menubar li a:hover, .topbar #nav .menubar li.active a { border-bottom: 0; color: var(--magenta) }
}
@media only screen and (max-width: 600px) {
    .headerbar { margin: 0 }
    .toplogo { width: 100px; height: 40px; top: 15px; left: 15px }
}

/* ---------- Hero ----------
   Het eerste fotoblok direct onder de header (of een blok met class .hero).
   Foto uit het CMS, overlay img/hero-overlay.svg eroverheen (verhouding 1054:540, zoals in het ontwerp). */
.headerbar + .photobar, .photobar.hero { position: relative; margin: 10px 15px 40px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1054 / 540; }
.headerbar + .photobar img, .photobar.hero img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.headerbar + .photobar::after, .photobar.hero::after { content: ""; position: absolute; inset: 0; background: url('../img/hero-overlay.svg') no-repeat 0 0 / 100% 100%; pointer-events: none; }
@media only screen and (max-width: 600px) {
    .wrapper.photobar { margin: 0 }
    .wrapper.headerbar + .wrapper.photobar, .wrapper.photobar.hero { margin: 5px 10px 25px; border-radius: 20px }
}

/* ---------- Intro ---------- */
.intro .subwrapper, .headerbar + .photobar + .textcol .subwrapper { padding-bottom: 40px; display: block }
.intro h2, .headerbar + .photobar + .textcol h2,
h1 { font-size: 40px; line-height: 48px; font-weight: 500; margin-bottom: 15px }
.intro h2 strong, .headerbar + .photobar + .textcol h2 strong { font-weight: 500 }
@media only screen and (max-width: 600px) {
    .intro h2, .headerbar + .photobar + .textcol h2, h1 { font-size: 26px; line-height: 32px }
}
.wrapper.textcol.intro > div > div, .wrapper.headerbar + .wrapper.photobar + .wrapper.textcol > div > div { width: 100%; max-width: 780px; float: none; margin: 0 auto; padding: 0 20px; text-align: center; font-size: 15px; line-height: 24px; box-sizing: border-box }

/* ---------- Kernwaarden (4 kleurblokken) ---------- */
.wrapper.textcol.values > div > div { color: #fff; text-align: left; font-size: 15px; line-height: 24px }
.wrapper.textcol.values h3 { color: #fff; text-align: center; font-weight: 700; font-size: 24px; line-height: 29px; margin-bottom: 12px }
.wrapper.textcol.values > div > div:nth-child(4n+1) { background: var(--groen) }
.wrapper.textcol.values > div > div:nth-child(4n+2) { background: var(--blauw) }
.wrapper.textcol.values > div > div:nth-child(4n+3) { background: var(--oranje) }
.wrapper.textcol.values > div > div:nth-child(4n+4) { background: var(--magenta) }
.wrapper.textcol.values.textcol4 > div > div { padding: 30px 22px 40px; width: calc(25% - 44px) }
.wrapper.values { margin-bottom: 40px }

/* ---------- Foto + tekst (scholen) ---------- */
.textphoto { display: block; clear: both; }
    .textphoto .subwrapper { padding: 0; display: flex; align-items: stretch; }
    .textphoto.photoright .subwrapper { flex-direction: row-reverse; }
    .textphoto > div > img { width: 50%; aspect-ratio: 3 / 2; object-fit: cover; flex: 0 0 50% }
    .textphoto .coltext { width: 50%; padding: 40px 30px; box-sizing: border-box; font-size: 15px; line-height: 24px; background: #fff }
    .textphoto h2 { text-align: left; font-size: 24px; line-height: 29px; padding: 0; margin-bottom: 25px; border-bottom: 0; font-weight: 500 }
    .textphoto h2 strong { font-weight: 700 }
    .textphoto .coltext a { font-size: 15px; font-weight: 500 }
.photolow .subwrapper img { margin-top: 35px }

/* ---------- Kolommen (foto collage & team) ---------- */
.col2 > div > div { width: 50%; float: left }
.col3 > div > div { width: 33.3%; float: left }
.col4 > div > div { width: 25%; float: left }

/* ---------- Tekstkolommen ---------- */
.textcol > div { display: flex; flex-wrap: wrap; }
    .textcol > div > div { position: relative }
.textcol span.bottom { position: absolute; bottom: 5px; left: 0; width: 100%; padding-bottom: 15px }
.textcol svg { width: 50px; }
.textcol.textcol4 > div > div { width: calc(25% - 70px); float: left; padding: 35px; text-align: center }
.textcol.textcol3 > div > div { width: calc(33.3% - 70px); float: left; padding: 35px; text-align: center }
.textcol.textcol2 > div > div { width: calc(50% - 70px); float: left; padding: 35px; }
.textcol.textcol1 > div > div { width: calc(90% - 70px); float: left; padding: 35px; }

/* Title bar */
.titlebar .subwrapper { padding: 0; margin: 0 }
.titlebar h2 { margin: 0; padding: 15px 0 }

/* team */
.team > div { display: flex; flex-wrap: wrap; }
    .team > div .item { position: relative; text-align: center; margin: 20px 0 }
.team img { width: 70%; margin-bottom: 20px }

/* ---------- Footer ----------
   textcol4 + class footer: kolom 1 leeg (logo via CSS), kolom 2-4 adres/post/contact */
.wrapper.textcol.footer { background: var(--blauw); margin: 0 15px; padding: 50px 45px; }
.wrapper.textcol.footer > .subwrapper { padding: 0; align-items: center; }
.wrapper.textcol.footer > div > div { background: none; color: #fff; text-align: left; font-size: 15px; line-height: 24px; padding: 0 15px; width: 25%; box-sizing: border-box }
.wrapper.textcol.footer > div > div:first-child { background: url('../img/SPOZ_logo_wit.svg') no-repeat 15px center; background-size: 110px auto; min-height: 50px; font-size: 0 }
.wrapper.textcol.footer h3 { color: #fff; font-size: 15px; line-height: 24px; font-weight: 700; margin: 0; padding: 0 }
.wrapper.textcol.footer a { color: #fff; font-weight: 400 }

.menulink { width: 300px; display: block; list-style: none; margin-left: 25px; padding-left: 0; }
    .menulink a { color: #fff; line-height: 30px; }
    .menulink li { border-bottom: 1px solid rgba(255,255,255,.3); }
        .menulink li:before { content: ">"; margin-left: -22px; padding-right: 15px; }
.footerbot { background: #fff; color: var(--paars); margin: 0 15px; padding: 12px 0; line-height: 20px; font-size: 12px; font-weight: 500; text-align: center }
    .footerbot .actilus { display: none }

/* ---------- Responsive ---------- */
@media only screen and (max-width: 900px) {
    .textphoto .coltext { padding: 25px 20px }
}

@media only screen and (max-width: 800px) {
    .col2 > div > div { width: 100% }
    .col3 > div > div { width: 50% }
    .col4 > div > div { width: 33.3% }
    .textcol.textcol4 > div > div { width: calc(33.3% - 70px); }
    .textcol.textcol3 > div > div { width: calc(50% - 70px); }
    .textcol.textcol2 > div > div { width: 100%; padding: 30px 0; }
    .textcol.textcol1 > div > div { width: calc(100% - 70px); }
    .wrapper.textcol.values.textcol4 > div > div { width: calc(50% - 44px) }
    .wrapper.textcol.footer { padding: 35px 25px }
    .wrapper.textcol.footer > div > div { width: 50%; padding: 10px 15px }
    .wrapper.textcol.footer > div > div:first-child { width: 100%; margin-bottom: 15px }
    .backspoz { margin: 0 }
    .backspoz.textcol2 > .subwrapper > div { padding: 15px }
}

@media only screen and (max-width: 600px) {
    .col3 > div > div { width: 100% }
    .col4 > div > div { width: 50% }
    .textcol.textcol4 > div > div { width: calc(50% - 70px); }
    .textcol.textcol3 > div > div { width: calc(100% - 70px); padding: 30px 35px; }
    .textcol h3 { padding-top: 15px }
    .wrapper.textcol.values.textcol4 > div > div { width: 100%; box-sizing: border-box; padding: 20px }
    .wrapper.textcol.values h3 { padding-top: 0 }
    .wrapper.values { margin-bottom: 25px }
    .textphoto .subwrapper, .textphoto.photoright .subwrapper { flex-direction: column; }
    .textphoto > div > img { width: 100%; flex-basis: auto }
    .textphoto .coltext { width: 100%; padding: 20px 15px 30px; margin: 0 }
    .textphoto h2 { font-size: 22px; line-height: 27px; margin-bottom: 15px }
    .wrapper.textcol.footer { margin: 0; padding: 30px 20px }
    .wrapper.textcol.footer > div > div { width: 100% }
    .footerbot { margin: 0 }
}

@media only screen and (max-width: 500px) {
    .col4 > div > div { width: 100% }
    .textcol.textcol4 > div > div { width: calc(100% - 70px); padding: 30px 35px; }
}