:root {
    --prim: #c0392b;
    --prim-donker: #94291e;
    --accent: #e8a12b;
    --ink: #2a2320;
    --muted: #6b605a;
    --bg: #f7f3ec;
    --kaart: #ffffff;
    --rand: #e7ddd0;
    --ok: #1f4d2c;
    --ok-bg: #e3f4e8;
    --fout: #b3261e;
    --fout-bg: #fbe3e1;
    --radius: 12px;
    --schaduw: 0 4px 20px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--prim); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.small { font-size: .86rem; color: var(--muted); }
.datum { display: block; font-size: .82rem; color: var(--muted); text-transform: capitalize; }

/* ---------- Header ---------- */
.top { background: var(--kaart); border-bottom: 3px solid var(--prim); position: sticky; top: 0; z-index: 50; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.logo:hover { text-decoration: none; }
.logo-ico { font-size: 1.7rem; }
.logo-img { height: 46px; width: auto; display: block; }
.logo small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }

.menu { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.menu a { padding: 7px 11px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .94rem; }
.menu a:hover { background: #f1e8dc; text-decoration: none; }
.menu a.actief { background: var(--prim); color: #fff; }
.menu a.user { color: var(--prim); }
.menu-knop { display: none; font-size: 1.6rem; cursor: pointer; padding: 4px 10px; }

/* ---------- Flash ---------- */
.flash { max-width: 1080px; margin: 14px auto 0; padding: 12px 18px; border-radius: 10px; }
.flash-fout { background: var(--fout-bg); color: var(--fout); }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-info { background: #e7eefb; color: #1c3f8f; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--prim) 0%, var(--prim-donker) 60%, #6e1d15 100%);
    color: #fff;
    padding: 54px 0 60px;
}
.hero-editie { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; opacity: .85; margin: 0 0 6px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0 0 8px; }
.hero-datum { font-size: 1.15rem; font-weight: 600; margin: 0 0 12px; }
.hero-tekst { max-width: 620px; opacity: .95; }
.hero .btn { background: #fff; color: var(--prim); }
.hero .btn:hover { background: #f3e8e6; }
.hero .btn.sec { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.hero .btn.sec:hover { background: rgba(255,255,255,.12); }

/* ---------- Knoppen ---------- */
.btn {
    display: inline-block; background: var(--prim); color: #fff; padding: 11px 20px;
    border-radius: 9px; font-weight: 700; border: none; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--prim-donker); text-decoration: none; }
.btn.sec { background: transparent; color: var(--prim); border: 2px solid var(--prim); }
.btn.sec:hover { background: #f6e9e7; }
.btn.klein { padding: 7px 13px; font-size: .86rem; }
.btn-lijn { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }

/* ---------- Content ---------- */
main.wrap { padding-top: 8px; padding-bottom: 40px; }
section { margin: 34px 0; }
h1 { line-height: 1.2; }
h2 { margin-top: 0; }
.kop { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.blok-tekst { max-width: 760px; }
.pagina h1 { margin-bottom: 6px; }

/* ---------- Kaarten / raster ---------- */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.kaart { background: var(--kaart); border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schaduw); color: var(--ink); display: block; }
.kaart:hover { transform: translateY(-2px); transition: .15s; text-decoration: none; }
.kaart .foto { display: block; height: 150px; background-size: cover; background-position: center; background-color: #efe6d8; }
.kaart .foto.leeg { display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.kaart .inhoud { padding: 14px 16px; }
.kaart h3 { margin: 4px 0 6px; font-size: 1.05rem; }

/* ---------- Lijst (nieuws) ---------- */
.lijst { display: flex; flex-direction: column; gap: 12px; }
.lijst-item { display: flex; gap: 14px; background: var(--kaart); border: 1px solid var(--rand); border-radius: var(--radius); padding: 12px; color: var(--ink); box-shadow: var(--schaduw); }
.lijst-item:hover { background: #fdfaf6; text-decoration: none; }
.lijst-item .thumb { flex: 0 0 110px; height: 78px; border-radius: 9px; background-size: cover; background-position: center; background-color: #efe6d8; }
.lijst-item .thumb.leeg { display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.lijst-item .tekst { display: flex; flex-direction: column; gap: 2px; }
.lijst-item strong { font-size: 1.05rem; }

.nieuws-foto { max-width: 100%; border-radius: var(--radius); }
.vorige-volgende { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0; font-weight: 600; }

/* ---------- Formulieren ---------- */
.form { max-width: 720px; }
.rij { display: flex; gap: 16px; flex-wrap: wrap; }
.rij > .veld { flex: 1 1 220px; }
.veld { margin: 12px 0; }
.veld > label { display: block; font-weight: 600; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--rand); border-radius: 9px;
    font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--prim); box-shadow: 0 0 0 3px rgba(192,57,43,.16);
}
textarea { min-height: 120px; resize: vertical; }
input:disabled { background: #f1ece4; color: var(--muted); }
.veld.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.veld.checkbox input { width: auto; margin-top: 5px; }
.veld.checkbox label { margin: 0; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Meldingen ---------- */
.melding { padding: 16px 20px; border-radius: var(--radius); margin: 20px 0; }
.melding h2 { margin-top: 0; }
.melding-ok { background: var(--ok-bg); border: 1px solid #b6dcbf; color: var(--ok); }
.melding-fout { background: var(--fout-bg); border: 1px solid #efb8b2; color: var(--fout); }
.melding-info { background: #e7eefb; border: 1px solid #c2d2f4; color: #1c3f8f; }

/* ---------- Login ---------- */
.login-kaart { max-width: 420px; margin: 40px auto; background: var(--kaart); border: 1px solid var(--rand); border-radius: var(--radius); padding: 28px; box-shadow: var(--schaduw); }
.login-kaart h1 { margin-top: 0; }

/* ---------- Galerij ---------- */
.galerij { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.galerij-item { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #efe6d8; }
.galerij-item img { display: block; width: 100%; height: 180px; object-fit: cover; transition: .2s; }
.galerij-item:hover img { transform: scale(1.04); }
.galerij-item .bijschrift { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; padding: 6px 10px; font-size: .8rem; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; z-index: 100; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lb-sluit { position: absolute; top: 18px; right: 26px; background: none; border: none; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ---------- Sponsoren ---------- */
.sponsor-strip { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.sponsor-strip img { max-height: 64px; max-width: 160px; filter: grayscale(.15); }
.sponsor-strip a:hover img { filter: none; }
.sponsor-naam { font-weight: 700; color: var(--muted); }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sponsor-kaart { background: var(--kaart); border: 1px solid var(--rand); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--schaduw); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.sponsor-kaart img { max-height: 70px; max-width: 100%; }

/* ---------- Overig ---------- */
.kaal { text-align: center; padding: 60px 0; }
.kaal .ico { font-size: 3rem; }
.voet { background: #2a2320; color: #d9d0c6; padding: 26px 0; margin-top: 30px; }
.voet a { color: var(--accent); }
.voet .small { color: #a99f94; }

/* ---------- Responsief ---------- */
@media (max-width: 760px) {
    .menu-knop { display: block; }
    .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--kaart); flex-direction: column; align-items: stretch; padding: 10px 18px 18px; border-bottom: 1px solid var(--rand); box-shadow: var(--schaduw); }
    .menu-toggle:checked ~ .menu { display: flex; }
    .menu a { padding: 11px 12px; }
    .top .wrap { position: relative; }
    .lijst-item .thumb { flex-basis: 84px; }
}
