/* Thema Klassiek: de look van de oude WordPress-site (Astra + Elementor) van GemeenteBelangen Ede.
   Kleuren en letters staan als variabelen bovenaan: een ander thema begint met een kopie van dit bestand. */

@font-face { font-family: 'Rubik'; src: url(../fonts/rubik.woff2) format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Bree Serif'; src: url(../fonts/bree-serif.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --blauw: #1c51a4;        /* knoppen, menu */
  --blauw-2: #045cb4;      /* links */
  --blauw-licht: #148fd2;
  --geel: #e6c03e;
  --geel-zacht: #f0d88f;   /* kaarten op geel */
  --licht: #f0f5fa;
  --tekst: #334155;
  --kop: #1e293b;
  --rand: #d1d5db;
  --zwart: #111111;
  --wit: #ffffff;
  --font-tekst: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-kop: 'Bree Serif', Georgia, serif;
  --breed: 1200px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-tekst); font-size: 17px; line-height: 1.65; color: var(--tekst); background: var(--wit); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blauw-2); }
a:hover { color: var(--blauw); }
h1, h2, h3, h4 { font-family: var(--font-kop); font-weight: 400; color: var(--kop); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--geel); outline-offset: 2px; }

.wrap { max-width: var(--breed); margin: 0 auto; padding: 0 24px; }
.wrap.smal { max-width: 880px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--wit); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: #64748b; }
.midden { text-align: center; }

/* ---------- Knoppen ---------- */
.btn { display: inline-block; font: 500 16px/1 var(--font-tekst); padding: 15px 30px; border-radius: 999px; text-decoration: none;
       background: var(--blauw); color: var(--wit); border: 2px solid var(--blauw); cursor: pointer; }
.btn:hover { background: var(--blauw-2); border-color: var(--blauw-2); color: var(--wit); }
.btn-knop { padding: 12px 24px; font-size: 15px; }
.btn-accent, .btn-primary { background: var(--blauw); }
.btn-ghost { background: transparent; color: var(--blauw); }
.btn-ghost:hover { color: var(--wit); }
.btn-wit { background: var(--wit); color: var(--blauw); border-color: var(--wit); font-family: var(--font-kop); font-weight: 400; padding: 12px 26px; border-radius: 8px; }
.btn-wit:hover { background: var(--geel); border-color: var(--geel); color: var(--kop); }
.knoppen { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Kop en menu ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--wit); border-bottom: 1px solid #eef0f3; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 100px; }
.brand img { width: 151px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--blauw); text-decoration: none; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current] { border-bottom-color: var(--blauw); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn .streep { display: block; width: 26px; height: 3px; background: var(--blauw); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--wit); border-bottom: 1px solid var(--rand); padding: 8px 24px 20px; }
  .menu-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #eef0f3; }
  .nav .btn { margin-top: 14px; text-align: center; }
  .menu-open .menu-btn .streep:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-btn .streep:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn .streep:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-head .wrap { min-height: 80px; }
  .brand img { width: 120px; }
}

/* ---------- Paginakop ---------- */
.pagkop { padding: 56px 0 24px; text-align: center; }
.pagkop h1 { color: var(--geel); }
.pagkop .lead { font-size: 20px; max-width: 760px; margin: 0 auto; }
.kruimel { font-size: 14px; color: #64748b; margin-bottom: 12px; }
.kruimel a { color: inherit; }
.pagkop-datum { font-size: 15px; color: #64748b; margin: 0 0 8px; }
.pagkop-beeld { position: relative; color: var(--wit); }
.pagkop-beeld img { width: 100%; height: 420px; object-fit: cover; }
.pagkop-beeld::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.6)); }
.pagkop-beeld .wrap { position: absolute; left: 0; right: 0; bottom: 32px; z-index: 1; }
.pagkop-beeld h1, .pagkop-beeld .kruimel, .pagkop-beeld .lead { color: var(--wit); }

/* ---------- Inhoud en blokken ---------- */
main section { padding: 40px 0; }
.tekst { max-width: 780px; }
.tekst.breed { max-width: none; }
.blokken > .blok + .blok { margin-top: 36px; }
.opmaak ul, .opmaak ol { padding-left: 1.3em; }
.opmaak blockquote { border-left: 4px solid var(--geel); margin: 1em 0; padding: .2em 1em; }
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.inhoud { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.zijmenu { display: flex; flex-direction: column; border-left: 3px solid var(--geel); padding-left: 16px; }
.zijmenu b { font-family: var(--font-kop); font-weight: 400; font-size: 20px; color: var(--kop); margin-bottom: 6px; }
.zijmenu a { text-decoration: none; padding: 6px 0; }
.zijmenu a[aria-current] { font-weight: 600; }
@media (max-width: 860px) { .twee, .inhoud { grid-template-columns: 1fr; } }

.infoblok { background: var(--licht); border-radius: var(--radius); padding: 24px 28px; }
.infoblok-accent { background: var(--geel); }
.infoblok h3 { margin-top: 0; }
.blok-foto img { border-radius: var(--radius); }
.blok-foto figcaption { font-size: 14px; color: #64748b; margin-top: 6px; }
figure { margin: 0; }
.inline-r { float: right; width: 45%; margin: 0 0 16px 24px; }
.inline-l { float: left; width: 45%; margin: 0 24px 16px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.omgekeerd .foto { order: -1; }
.split .foto img { border-radius: var(--radius); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split.omgekeerd .foto { order: 0; } .inline-r, .inline-l { float: none; width: auto; margin: 0 0 16px; } }
.citaat { margin: 0; padding: 24px 32px; border-left: 5px solid var(--geel); background: var(--licht); border-radius: 0 var(--radius) var(--radius) 0; }
.citaat p { font-family: var(--font-kop); font-size: 22px; color: var(--kop); }
.citaat footer { color: #64748b; }
.liedjes { columns: 3 220px; padding-left: 1.2em; }
.blok-links ul { padding-left: 1.2em; }

.blok-video .vid { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.blok-video .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(28,81,164,.9);
                    color: var(--wit); display: grid; place-items: center; font-size: 30px; }
.vid-titel { font-size: 15px; color: #64748b; margin-top: 8px; }

/* Kaarten (nieuws, albums, links naar pagina's) */
.kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.kaart { display: flex; flex-direction: column; background: var(--wit); border: 1px solid #e5e9ef; border-radius: var(--radius); overflow: hidden;
         text-decoration: none; color: var(--tekst); transition: box-shadow .2s, transform .2s; }
.kaart:hover { box-shadow: 0 10px 28px rgba(15,23,42,.12); transform: translateY(-2px); color: var(--tekst); }
.kaart .beeld { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.kaart .in { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.kaart small { color: #64748b; }
.kaart h3 { margin: 4px 0 8px; color: var(--blauw); }
.kaart .meer { margin-top: auto; color: var(--blauw-2); font-weight: 500; }
.sec-kop { margin-bottom: 20px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: #64748b; }
.sec-soft { background: var(--licht); }

/* Personen */
.personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; }
.persoon { text-align: center; }
.persoon .portret, .persoon .silhouet { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); background: var(--licht); }
.persoon .silhouet svg { width: 70%; margin: 15% auto 0; fill: #c7d2e0; display: block; }
.persoon b { display: block; font-family: var(--font-kop); font-weight: 400; font-size: 20px; color: var(--kop); margin-top: 10px; }
.persoon span { color: #64748b; }

/* Fotoalbum en lightbox */
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.album img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; }
.lightbox button { background: rgba(255,255,255,.12); color: var(--wit); border: 0; padding: 10px 16px; border-radius: 8px; font: inherit; cursor: pointer; }
.lb-sluit { position: absolute; top: 16px; right: 16px; }
.lb-bar { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 18px; color: var(--wit); }

/* Formulieren */
.formulier { background: var(--licht); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.formulier h2 { font-size: 26px; }
.formulier label { font-weight: 500; margin: 12px 0 6px; color: var(--kop); }
.formulier input, .formulier textarea, .formulier select { font: inherit; padding: 12px 14px; border: 1px solid var(--rand); border-radius: 8px; background: var(--wit); width: 100%; }
.formulier textarea { min-height: 140px; resize: vertical; }
.formulier button { margin-top: 20px; align-self: flex-start; }
.formulier .keuzes { border: 0; padding: 0; margin: 16px 0 0; }
.formulier .keuzes legend { font-weight: 500; color: var(--kop); margin-bottom: 6px; }
.formulier label.keuze { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; }
.formulier label.keuze input { width: auto; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.melding { margin: 14px 0 0; min-height: 1.5em; }
.melding.ok { color: #166534; font-weight: 500; }
.melding.fout { color: #b91c1c; font-weight: 500; }

/* ---------- Homepage-secties (bloktypen van dit thema) ---------- */
main section.hero { padding: 0; position: relative; }
.hero .hero-beeld, .hero img { width: 100%; height: min(78vh, 720px); object-fit: cover; }
.hero .wrap { position: absolute; left: 0; right: 0; bottom: 48px; }
.hero h1 { color: var(--wit); text-shadow: 0 2px 14px rgba(0,0,0,.45); margin: 0; }
.sectie { padding: 64px 0; }
.sectie-geel { background: var(--geel); }
.sectie-blauw { background: var(--blauw); color: var(--wit); }
.sectie-blauw h2, .sectie-blauw h3, .sectie-blauw a:not(.btn) { color: var(--wit); }
.sectie-licht { background: var(--licht); }
.sectie.midden { text-align: center; }
.sectie-geel h2 { color: var(--kop); }
.tekstkaarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.tekstkaart { background: var(--geel-zacht); border-radius: var(--radius); padding: 28px; }
.sectie-blauw .tekstkaart, .sectie-wit .tekstkaart { background: var(--licht); color: var(--tekst); }
.sectie-blauw .tekstkaart h3 { color: var(--kop); }
.banner { text-align: center; padding: 40px 0; }
.banner h2 { margin-bottom: 18px; }
.banner p { margin: 0; }

/* ---------- Footer ---------- */
.site-foot { background: var(--zwart); color: #e5e7eb; padding: 56px 0 24px; margin-top: 0; }
.site-foot .kol { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
.site-foot h3 { color: var(--blauw-licht); font-size: 26px; }
.site-foot a { color: var(--geel); }
.site-foot .sociaal { display: flex; gap: 10px; align-items: flex-start; }
.site-foot .sociaal a { width: 50px; height: 50px; border-radius: 50%; background: var(--geel); color: var(--wit); display: grid; place-items: center; }
.site-foot .sociaal a:hover { background: var(--blauw-licht); }
.site-foot .klein { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #2a2a2a; margin-top: 40px; padding-top: 18px; font-size: 14px; color: #9ca3af; }
@media (max-width: 760px) { .site-foot .kol { grid-template-columns: 1fr; } }

.naar-boven { position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; border: 0; border-radius: 4px; background: var(--blauw);
              color: var(--wit); display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.naar-boven.zichtbaar { opacity: 1; pointer-events: auto; }

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