/* K.V.S.W. – huisstijl: dennengroen met goud */
/* Lettertypes (zelf gehost, open licentie) */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-normal.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
    --green-900: #123324;
    --green-800: #1d4d36;
    --green-700: #256246;
    --green-100: #e3efe7;
    --gold: #c9a227;
    --gold-soft: #f6efd6;
    --bg: #f7f5ef;
    --surface: #ffffff;
    --text: #1f2722;
    --muted: #5f6b64;
    --border: #dcd8cc;
    --danger: #a63228;
    --danger-soft: #fbe9e7;
    --warn-soft: #fff3cd;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(18, 51, 36, .06), 0 4px 16px rgba(18, 51, 36, .06);
    --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 17px/1.6 var(--font);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-700); text-underline-offset: 2px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-900); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { background: var(--gold-soft); padding: .1em .35em; border-radius: 4px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 28px; padding-bottom: 56px; }
.narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--gold); margin-bottom: .4em; }
.empty { padding: 20px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.breadcrumb { margin-bottom: 12px; font-size: .9rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* ---------- Header ---------- */
.site-header { background: var(--green-800); color: #fff; position: relative; z-index: 20; }
.header-top { background: var(--green-900); }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand img { flex: none; width: 56px; height: 56px; }
.brand strong { display: block; font-family: var(--font-head); font-size: 1.6rem; letter-spacing: .02em; line-height: 1.1; }
.brand small { display: block; font-size: .92rem; opacity: .85; letter-spacing: .01em; }
.header-acties { display: flex; align-items: center; gap: 8px; flex: none; }
/* Taalkeuze NL | FR met vlaggetjes */
.taalkeuze { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; font-size: .9rem; font-weight: 700; }
.taalkeuze a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 8px; color: #fff; text-decoration: none; opacity: .75; }
.taalkeuze a:hover, .taalkeuze a:focus-visible { opacity: 1; background: rgba(255, 255, 255, .12); }
.taalkeuze a.actief { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.taalkeuze .vlag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.taal-streep { color: rgba(255, 255, 255, .5); }
.header-knop { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--gold); color: var(--green-900); font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s; }
.header-knop:hover, .header-knop.active { background: #e2bd3f; color: var(--green-900); }
.main-nav { border-bottom: 4px solid var(--gold); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 2px; }
.main-nav > .container > ul > li > a, .nav-groep summary { display: flex; align-items: center; height: 52px; padding: 0 16px; color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .01em; border-bottom: 3px solid transparent; margin-bottom: -4px; white-space: nowrap; }
.main-nav > .container > ul > li > a:hover, .nav-groep summary:hover { background: rgba(255, 255, 255, .08); }
.main-nav > .container > ul > li > a.active, .nav-groep summary.active { border-bottom-color: #fff; background: rgba(255, 255, 255, .08); }
.nav-toggle { display: none; background: rgba(255, 255, 255, .1); border: 0; border-radius: 10px; padding: 12px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

@media (max-width: 1000px) {
    .main-nav > .container > ul > li > a, .nav-groep summary { padding: 0 11px; }
}
@media (max-width: 760px) {
    .header-top-inner { min-height: 68px; }
    .brand img { width: 46px; height: 46px; }
    .brand strong { font-size: 1.35rem; }
    .brand small { display: none; }
    .nav-toggle { display: block; }
    .header-knop { padding: 9px 14px; }
    .main-nav { display: none; border-bottom-width: 3px; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; padding: 8px 0 12px; }
    .main-nav > .container > ul > li > a, .nav-groep summary { height: auto; padding: 12px 14px; border-radius: 8px; border-bottom: 0; margin: 0; }
    .main-nav > .container > ul > li > a.active, .nav-groep summary.active { background: rgba(255, 255, 255, .14); }
}
@media (max-width: 480px) {
    /* Op gsm: NL en FR klein onder het vlaggetje, zodat de naam van de site ernaast past. */
    .taalkeuze { margin-right: 0; gap: 0; font-size: .7rem; }
    .taalkeuze a { flex-direction: column; gap: 2px; padding: 4px; text-underline-offset: 2px; }
    .taal-streep { display: none; }
    .header-knop { font-size: 0; gap: 0; padding: 10px 12px; }
    .header-knop span { font-size: 1.1rem; }
}
/* Heel smalle gsm's (bv. 320 pixels breed): logo en naam iets kleiner, zodat alles naast elkaar past. */
@media (max-width: 350px) {
    .brand { gap: 8px; }
    .brand img { width: 38px; height: 38px; }
    .brand strong { font-size: 1.05rem; }
    .header-acties { gap: 4px; }
}

.userbar { background: var(--gold-soft); border-bottom: 1px solid #e8dcb0; font-size: .95rem; }
.userbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 8px; padding-bottom: 8px; }
.userbar-links { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--green-700); text-decoration: underline; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #d7e3db; padding: 48px 0 0; margin-top: 40px; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-merk { display: flex; gap: 16px; align-items: center; }
.footer-merk strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: #fff; margin-bottom: 4px; }
.footer-merk span { color: #a9bcb0; }
.site-footer h2 { font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-onder { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; padding-bottom: 20px; color: #a9bcb0; font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Layout ---------- */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.page-head, .section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 16px; }
.page-head h1, .section-head h2 { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card > :last-child { margin-bottom: 0; }
.card-accent { border-top: 4px solid var(--gold); }

.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, var(--green-800), var(--green-700)); color: #fff; border-radius: 14px; padding: clamp(24px, 5vw, 48px); margin-bottom: 36px; }
.hero h1 { color: #fff; }
.hero .lead { color: #dce9e1; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hero .button-ghost { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.hero .button-ghost:hover { background: rgba(255,255,255,.1); }
.hero-mark { flex: none; width: 160px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.25)); }
@media (max-width: 700px) { .hero-mark { display: none; } }

/* ---------- Buttons ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 8px; border: 1px solid var(--green-700);
    background: var(--green-700); color: #fff; font: inherit; font-weight: 600;
    text-decoration: none; cursor: pointer; line-height: 1.2;
}
.button:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.button-ghost { background: var(--surface); color: var(--green-700); }
.button-ghost:hover { background: var(--green-100); color: var(--green-900); }
.button-small { padding: 6px 12px; font-size: .875rem; }
.button-block { width: 100%; }
.button-danger { background: var(--danger); border-color: var(--danger); }
.button-danger:hover { background: #82241c; border-color: #82241c; }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Alerts & badges ---------- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: var(--green-100); border-color: #b7d4c1; }
.alert-info { background: #e8f1fb; border-color: #bcd3ec; }
.alert-warn { background: #fdf4e3; border-color: #ecd29b; }
.opmerking-beheerder p { margin: 4px 0 6px; white-space: pre-line; }
.opmerking-kort { margin: 4px 0 0; padding: 6px 10px; border-left: 3px solid var(--gold); background: #fdf4e3; border-radius: 6px; font-size: .9rem; white-space: pre-line; }
.seizoen-balk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
/* Plaats laten voor de knop "✎ Aanpassen" van de beheerder rechtsboven het blok */
.blok-bewerkbaar .seizoen-balk { padding-right: 112px; }
.seizoen-balk p { margin: 0; }
.seizoen-balk .seizoen-keuze a, .seizoen-balk .seizoen-keuze strong { margin-right: 10px; }
.seizoen-veld { border: 0; padding: 0; margin: 0; }
.seizoen-veld legend { font-weight: 600; margin-bottom: 4px; }
.seizoen-opties { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.seizoen-veld.heeft-fout .seizoen-opties { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 6px; }
.alert-error { background: var(--danger-soft); border-color: #efb9b3; color: #6d1f18; }
.alert-password { background: var(--gold-soft); border-color: var(--gold); display: grid; gap: 6px; }
.password { font-size: 1.4rem; letter-spacing: .06em; padding: 4px 10px; background: #fff; justify-self: start; user-select: all; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--green-100); color: var(--green-800); white-space: nowrap; vertical-align: middle; }
.badge-soft { background: #eeece6; color: var(--muted); }
.badge-warn { background: var(--warn-soft); color: #7a5b00; }
.badge-cancelled { background: var(--danger-soft); color: var(--danger); }
.badge-puntenschieting { background: #e6eefa; color: #24497a; }
.badge-verjaardagschieting, .badge-koningschieting, .badge-keizerschieting { background: var(--gold-soft); color: #7a5b00; }
.badge-vleesschieting, .badge-wildschieting { background: #f8e8df; color: #7f3b17; }
.badge-kampioenschap, .badge-pelotonschieting { background: #efe6f7; color: #57307a; }
.beschrijf-foto { margin: 0 0 20px; }
.beschrijf-foto a { display: block; cursor: zoom-in; }
.beschrijf-foto img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.beschrijf-foto figcaption { margin-top: 6px; font-size: .88rem; color: var(--muted); }
.badge-verbondschieting { background: #e0f0ee; color: #1d5f58; }

/* ---------- Schietingen ---------- */
.event-list { display: grid; gap: 10px; }
.month-heading { font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 2px; }
.month-heading:first-child { margin-top: 0; }
.month-heading[id] { scroll-margin-top: 16px; }
.event { position: relative; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.event:hover { border-color: #c4bfae; box-shadow: 0 2px 10px rgba(0, 0, 0, .07); }
/* De hele kaart is klikbaar (de link van de titel bedekt de kaart); de beheerknoppen liggen erboven. */
.event-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.event-actions { position: relative; z-index: 1; }
.event.is-cancelled .event-title a { text-decoration: line-through; color: var(--muted); }
.event-date { flex: none; width: 56px; text-align: center; border-radius: 8px; background: var(--green-800); color: #fff; padding: 6px 0; line-height: 1.1; }
.event-date .dow, .event-date .mon { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.event-date .day { display: block; font-size: 1.5rem; font-weight: 700; font-family: var(--font-head); }
.event-body { flex: 1; min-width: 0; }
.event-title { font-family: var(--font); font-size: 1.02rem; margin: 0 0 2px; }
.event-title a { color: var(--text); text-decoration: none; }
.event-title a:hover { color: var(--green-700); text-decoration: underline; }
.event-meta { margin: 0 0 6px; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 0 12px; }
.event-meta .event-club { color: var(--green-800); font-weight: 600; }
.event-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.event-actions { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 560px) {
    .event { flex-wrap: wrap; }
    .event-actions { flex-direction: row; flex-wrap: wrap; width: 100%; padding-left: 70px; box-sizing: border-box; }
}

details.past { margin-top: 24px; }
details.past summary { cursor: pointer; font-weight: 600; color: var(--green-700); margin-bottom: 12px; }
.meer-schietingen { margin: 12px 0 0; }

/* Kalender: filters en maandweergave */
.filters { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr auto; gap: 12px; align-items: end; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 18px; }
.filters label span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.filter-actions { display: flex; gap: 12px; align-items: center; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters label:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; } }

.view-toggle { display: inline-flex; border: 1px solid var(--green-700); border-radius: 8px; overflow: hidden; }
.view-toggle a { padding: 7px 16px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.view-toggle a.active { background: var(--green-700); color: #fff; }

/* Detail */
.detail-head { margin-bottom: 20px; }
.detail-head .event-tags { margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 0 0 20px; }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; }
.card .facts { grid-template-columns: 1fr; gap: 2px; }
.card .facts dd { margin-bottom: 10px; }
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1em; }

/* Maatschappijen */
.club-search { display: block; max-width: 420px; margin-bottom: 18px; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.club-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.club-card:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--text); }
.club-card h2 { font-size: 1.2rem; margin-bottom: 4px; }
.club-card p { margin-bottom: 6px; }
.club-card .club-next { margin-top: auto; padding-top: 8px; border-top: 1px solid #eeebe2; margin-bottom: 0; }

/* Nieuws */
.news-list { list-style: none; margin: 0 0 12px; padding: 0; }
.news-list li { padding: 8px 0; border-bottom: 1px solid #eeebe2; }
.news-list time { display: block; font-size: .8rem; color: var(--muted); }
.news-overview { display: grid; gap: 16px; max-width: 760px; }
.news-overview h2 a { color: inherit; text-decoration: none; }
.news-overview .prose > :last-child { margin-bottom: 0; }

/* ---------- Formulieren ---------- */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel],
input[type=date], input[type=time], input[type=month], input[type=number], select, textarea {
    width: 100%; padding: 9px 11px; font: inherit; color: var(--text);
    background: #fff; border: 1px solid #c9c4b5; border-radius: 7px;
}
input[type=file] { font: inherit; max-width: 100%; }
textarea { resize: vertical; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
[aria-invalid=true] { border-color: var(--danger); background: #fffafa; }
.form { display: grid; gap: 16px; max-width: 520px; }
.form-wide { max-width: 760px; }
.form label > span:first-child, .form .te-veld > span:first-child { display: block; font-weight: 600; margin-bottom: 4px; }
.te-veld > .te + * { margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 600px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; display: grid; gap: 14px; background: #fcfbf8; }
.form legend { font-weight: 700; color: var(--green-900); padding: 0 6px; }
.form .checkbox, .checkbox { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; }
.checkbox input { margin-top: .3em; }
.checkbox-aligned { align-self: end; padding-bottom: 10px; }
.hint { font-size: .85rem; color: var(--muted); margin: -8px 0 0; display: block; }
label .hint { margin-top: 4px; }
.field-error { display: block; color: var(--danger); font-size: .85rem; margin-top: 4px; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; max-width: none; margin-top: 16px; }
.form-inline h2, .form-inline h3, .form-inline .hint { flex-basis: 100%; margin: 0; }
.form-inline label { flex: 1 1 200px; }
.inline-label { display: inline-block; max-width: 280px; margin-right: 8px; }
.danger-zone { margin-top: 40px; padding: 20px; border: 1px solid #efb9b3; border-radius: var(--radius); background: #fffafa; max-width: 760px; }
.danger-zone h2 { color: var(--danger); font-size: 1.1rem; }
.auth-box { max-width: 440px; margin: 20px auto; background: var(--surface); padding: 28px; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.auth-box .form { max-width: none; }

/* ---------- Beheer ---------- */
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.admin-nav a { padding: 8px 14px; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.admin-nav a:hover { color: var(--green-800); }
.admin-nav a.active { color: var(--green-800); border-bottom-color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--muted); }
.stat strong { display: block; font-size: 2rem; font-family: var(--font-head); color: var(--green-800); }
.stat-warn { border-color: #e7c766; background: #fffbea; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eeebe2; vertical-align: top; }
.table th { background: #f1efe7; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table .is-inactive td { opacity: .6; }
.table .actions { white-space: nowrap; }
.table .actions form { margin-right: 4px; }

/* Knop "Terug naar boven" */
.naar-boven {
    position: fixed; z-index: 45;
    right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--green-800); color: #fff; border: 2px solid #fff;
    font-size: 1.6rem; font-weight: 700; line-height: 1; text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .15s, background .15s;
}
.naar-boven[hidden] { display: none; }
.naar-boven:hover { transform: translateY(-3px); background: var(--green-900); color: #fff; }
.naar-boven:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.naar-boven.boven-balk { bottom: calc(var(--balk, 72px) + 14px); }
@media (prefers-reduced-motion: reduce) { .naar-boven { transition: none; } .naar-boven:hover { transform: none; } }

@media print {
    .naar-boven { display: none !important; }
    .site-header, .userbar, .site-footer, .filters, .view-toggle, .event-actions, aside { display: none !important; }
    body { background: #fff; }
    .grid-2 { display: block; }
}

/* ---------- Menu met uitklapgroepen ---------- */
.nav-groep details { position: relative; height: 100%; }
.nav-groep summary { list-style: none; cursor: pointer; }
.nav-groep summary::-webkit-details-marker { display: none; }
.nav-groep summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .8; }
.nav-groep details[open] summary { background: rgba(255, 255, 255, .12); }
.nav-groep details ul { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 240px; display: block; background: var(--surface); border-radius: 0 0 12px 12px; padding: 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, .18); border-top: 3px solid var(--gold); }
.nav-groep details ul a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav-groep details ul a:hover, .nav-groep details ul a.active { background: var(--green-100); color: var(--green-900); }
@media (max-width: 760px) {
    .nav-groep details ul { position: static; box-shadow: none; border: 0; background: rgba(255, 255, 255, .06); margin: 2px 0 6px 12px; padding: 4px; border-radius: 8px; }
    .nav-groep details ul a { color: #fff; font-weight: 500; }
    .nav-groep details ul a:hover, .nav-groep details ul a.active { background: rgba(255, 255, 255, .14); color: #fff; }
}

/* ---------- Blokken ---------- */
.blokken { display: grid; gap: 32px; margin-bottom: 32px; }
.blokken > .hero { margin-bottom: 0; }
.blok-titel { margin-bottom: 12px; }
.blok .prose { max-width: 75ch; }
.blok .prose h3 { margin-top: 1.4em; }
.blok .prose ul { padding-left: 1.2em; }
.pagina > h1 { margin-bottom: 20px; }
.bewerk-link { margin: 8px 0 24px; }
.kalender-naar-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 20px; }
.kalender-naar-info p { margin: 0; font-weight: 600; }
.kalender-info { scroll-margin-top: 16px; }
.kalender-info { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--border); }

.blok-melding { padding: 16px 20px; border-radius: var(--radius); border-left: 6px solid var(--gold); background: var(--gold-soft); }
.blok-melding-groen { border-left-color: var(--green-700); background: var(--green-100); }
.blok-melding-rood { border-left-color: var(--danger); background: var(--danger-soft); }
.blok-melding .blok-titel { font-size: 1.1rem; margin-bottom: 6px; }
.blok-melding .prose p:last-child { margin-bottom: 0; }

.blok-foto { margin: 0; }
.blok-foto img { border-radius: var(--radius); display: block; }
.blok-foto-normaal { max-width: 760px; }
.blok-foto-klein { max-width: 360px; }
.blok-foto-breed img { width: 100%; }
.blok-foto figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }

.galerij { display: grid; gap: 16px; }
.galerij-personen { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.galerij-sfeer { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
/* Vast aantal foto's naast elkaar (gekozen in de editor); kleinere schermen krijgen er minder. */
.galerij-rij-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.galerij-rij-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.galerij-rij-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.galerij-rij-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.galerij-rij-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .galerij-rij-4, .galerij-rij-5, .galerij-rij-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .galerij-rij { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.galerij-item { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.galerij-item a { display: block; background: #eeece6; }
.galerij-item img { display: block; width: 100%; object-fit: cover; transition: transform .2s; }
.galerij-personen .galerij-item img { aspect-ratio: 3 / 4; object-position: top; }
.galerij-sfeer .galerij-item img { aspect-ratio: 4 / 3; }
.galerij-item a:hover img { transform: scale(1.03); }
.galerij-item figcaption { padding: 10px 12px; font-size: .88rem; line-height: 1.35; display: grid; gap: 2px; }
.galerij-item figcaption > strong { color: var(--green-900); font-size: .95rem; }
.galerij-item figcaption > span, .galerij-tekst { color: var(--muted); }
.galerij-tekst p, .galerij-tekst ul { margin: 0; }
.galerij-tekst > * + * { margin-top: 4px; }
.galerij-sfeer .galerij-item { border: 0; }

.kolommen { columns: 4 200px; column-gap: 32px; padding-left: 1.6em; margin: 0; }
.kolommen li { break-inside: avoid; padding: 2px 0; }
.blok-tabel .table td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.knoppen { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.bestanden { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.bestanden a { display: inline-block; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-decoration: none; }
.bestanden a:hover { border-color: var(--green-700); }
.blok-scheiding { border: 0; border-top: 2px solid var(--border); margin: 0; }
.kader-rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.kader-rij .card { margin: 0; }
.blok-kalender .section-head, .blok-nieuws .section-head { margin-bottom: 12px; }

/* Foto groot bekijken */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 20, 15, .92); display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lightbox .lb-sluit { top: 12px; right: 12px; }
.lightbox .lb-vorige { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-volgende { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-titel { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; }

/* ---------- Mijn account ---------- */
.account-kop { margin-bottom: 24px; }
.account-kop h1 { margin-bottom: 4px; }
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 40px; }
.tegel { position: relative; display: flex; gap: 16px; align-items: center; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .12s, border-color .12s; }
.tegel:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--text); }
.tegel-icoon { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--green-100); display: grid; place-items: center; font-size: 1.8rem; }
.tegel-tekst { display: grid; gap: 2px; }
.tegel-tekst strong { font-size: 1.15rem; color: var(--green-900); }
.tegel-tekst span { color: var(--muted); font-size: .95rem; }
.tegel-badge { position: absolute; top: -10px; right: 14px; background: var(--danger); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tegel-badge-zacht { background: var(--gold); color: var(--green-900); }
.account-sectie { margin-bottom: 40px; }
.eigen-club { padding: 20px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.eigen-club .tegels { margin-bottom: 0; }
.eigen-club-kop { margin: 22px 0 10px; font-size: 1.05rem; }
.filter-tabs { margin-bottom: 16px; flex-wrap: wrap; }

/* ---------- Website aanpassen ---------- */
.tegels-klein { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: 32px; }
.pagina-lijst { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.pagina-rij { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid #eeebe2; }
.pagina-rij:last-child { border-bottom: 0; }
.pagina-naam { font-weight: 600; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.pagina-acties { display: flex; gap: 8px; }

.editor { padding-bottom: 96px; }
.editor-kop-knoppen { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-instellingen { margin-bottom: 24px; }
.editor-instellingen h2 { font-size: 1.1rem; }
.eveld { display: grid; gap: 4px; }
.eveld-label { font-weight: 600; }
.editor-blokken { display: grid; gap: 0; max-width: 900px; }
.tussen { display: flex; justify-content: center; padding: 6px 0; }
.tussen-knop { opacity: .55; border-style: dashed; }
.tussen-knop:hover, .tussen-knop:focus-visible { opacity: 1; }
.eblok { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.eblok.open { border-color: var(--green-700); }
.eblok.verborgen { opacity: .6; }
.eblok-kop { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 4px; }
.eblok-titel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px; font: inherit; text-align: left; cursor: pointer; color: var(--text); }
.eblok-titel strong { color: var(--green-900); white-space: nowrap; }
.eblok-pijl { color: var(--muted); width: 1em; }
.eblok-samenvatting { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.eblok-knoppen { display: flex; gap: 4px; flex: none; }
.eblok-knoppen .button { padding: 6px 10px; }
.eblok-velden { display: grid; gap: 16px; padding: 4px 20px 20px; border-top: 1px solid #eeebe2; padding-top: 16px; }
.eblok-velden .hint { margin: 0; }
.efoto { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.efoto img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.efoto-leeg { width: 120px; height: 90px; display: grid; place-items: center; border: 2px dashed var(--border); border-radius: 8px; color: var(--muted); font-size: .85rem; }
.efoto-knoppen, .ebestand { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.eitems { display: grid; gap: 10px; }
.eitem { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fcfbf8; }
.eitem-velden { flex: 1; min-width: 0; display: grid; gap: 10px; }
.eitem-knoppen { display: flex; flex-direction: column; gap: 4px; }
.eitems-acties { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) {
    .eblok-kop { flex-wrap: wrap; }
    .eitem { flex-direction: column; }
    .eitem-knoppen { flex-direction: row; }
}
.editor-voorbeeld { border: 2px dashed var(--border); border-radius: var(--radius); padding: 20px; }
.editor-balk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 3px solid var(--gold); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); padding-bottom: env(safe-area-inset-bottom, 0px); }
.editor-balk-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.editor-balk-knoppen { display: flex; gap: 10px; align-items: center; }
.editor-balk .button { font-size: 1.05rem; padding: 12px 24px; }
.editor-balk .button-small { font-size: .875rem; padding: 6px 12px; }
.editor-status { color: var(--muted); font-weight: 600; }
.editor-status.vuil { color: #8a5a00; }
.editor-melding { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 120; padding: 12px 20px; border-radius: 10px; color: #fff; background: var(--green-800); font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); }
.editor-melding-error { background: var(--danger); }

.media-venster { position: fixed; inset: 0; z-index: 110; background: rgba(10, 20, 15, .6); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; }
.media-paneel { background: var(--surface); border-radius: 14px; width: 100%; max-width: 1000px; padding: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.media-kop { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.media-kop h2 { margin: 0; }
.media-acties { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.media-zoek { flex: 1; min-width: 180px; }
.media-status { font-weight: 600; color: var(--green-800); margin: 0; }
.media-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.media-item { display: grid; gap: 4px; padding: 6px; border: 2px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font: inherit; }
.media-item:hover { border-color: var(--green-700); }
.media-item.gekozen { border-color: var(--gold); background: var(--gold-soft); }
.media-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.media-doc { display: grid; place-items: center; aspect-ratio: 1; font-size: 2.5rem; background: #f1efe7; border-radius: 6px; }
.media-naam { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.type-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.type-keuze { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border: 2px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; }
.type-keuze:hover { border-color: var(--green-700); background: var(--green-100); }
.type-keuze strong { color: var(--green-900); font-size: 1.05rem; }
.type-keuze span { color: var(--muted); font-size: .9rem; }
.logo-kiezer { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-kiezer img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
input[type=color] { width: 100%; height: 44px; padding: 4px; border: 1px solid #c9c4b5; border-radius: 7px; background: #fff; }
.editor-blokken { grid-template-columns: minmax(0, 1fr); }
.editor-blokken > *, .eblok, .eblok-velden > *, .eitem-velden > * { min-width: 0; }

/* ---------- Grote kop met achtergrondfoto ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-met-foto { min-height: 420px; background: var(--green-900); }
.hero-achtergrond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; z-index: -2; }
.hero-met-foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 33, 23, .9) 0%, rgba(10, 33, 23, .62) 50%, rgba(10, 33, 23, .12) 100%); }
.hero .lead { margin-bottom: 24px; }
.hero .hero-actions .button:first-child { background: var(--gold); border-color: var(--gold); color: var(--green-900); }
.hero .hero-actions .button:first-child:hover { background: #e2bd3f; border-color: #e2bd3f; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.hero .lead p { margin: 0; }
.hero-text { position: relative; max-width: 640px; }
@media (max-width: 700px) {
    .hero-met-foto { min-height: 0; }
    .hero-met-foto::before { background: rgba(10, 33, 23, .78); }
}

/* ---------- Grote kop met diavoorstelling ---------- */
.hero-diashow { min-height: 460px; background: var(--green-900); }
.hero-diashow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 33, 23, .92) 0%, rgba(10, 33, 23, .7) 55%, rgba(10, 33, 23, .35) 100%); }
.hero-diashow .hero-text { flex: 1 1 auto; }
.dia-vervaagd { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.dia-vervaagd .dia { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(22px) saturate(1.15); opacity: 0; transition: opacity 1.2s ease; }
.dia-vervaagd .dia.actief { opacity: 1; }
.dia-raam { order: 2; position: relative; flex: none; width: min(310px, 36%); aspect-ratio: 3 / 4; margin: 0; border-radius: 14px; overflow: hidden; background: #0d2219; border: 4px solid rgba(255, 255, 255, .92); box-shadow: 0 20px 44px rgba(0, 0, 0, .45); }
.dia-raam .dia { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.dia-raam .dia.actief { opacity: 1; z-index: 1; }
.dia-raam img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.dia-raam figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 92px 12px 14px; color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.3; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0)); }
.dia-knoppen { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 6px; }
.dia-knoppen button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--green-900); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.dia-knoppen button:hover, .dia-knoppen button:focus-visible { background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .dia-vervaagd .dia, .dia-raam .dia { transition: none; } }
@media (max-width: 700px) {
    .hero-diashow { flex-direction: column; align-items: stretch; min-height: 0; }
    .hero-diashow::before { background: rgba(10, 33, 23, .72); }
    .dia-raam { width: min(100%, 320px); align-self: center; }
}

/* ---------- Tekst: rood en inhoudstafel ---------- */
.tekst-rood { color: #c4161c; font-weight: 600; }
.tekst-met-inhoud { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.inhoudstafel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding: 14px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.inhoudstafel summary { cursor: pointer; padding: 0 6px 6px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--green-800); }
.inhoudstafel ol { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; font-size: .9rem; }
.inhoudstafel a { display: block; padding: 6px 8px; border-left: 3px solid transparent; border-radius: 6px; color: var(--text); text-decoration: none; line-height: 1.3; }
.inhoudstafel a:hover { background: var(--green-100); color: var(--green-900); }
.inhoudstafel a.actief { background: var(--green-100); border-left-color: var(--gold); color: var(--green-900); font-weight: 600; }
.blok-met-inhoud .prose { max-width: 80ch; }
.blok-met-inhoud .prose h3 { scroll-margin-top: 16px; margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--border); color: var(--green-800); font-size: 1.15rem; }
.blok-met-inhoud .prose h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 900px) {
    .tekst-met-inhoud { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .inhoudstafel { position: static; max-height: none; }
}

/* ---------- Kalender: inhoud per maand ---------- */
.kalender-met-maanden { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.kalender-inhoud { min-width: 0; }
.kalender-maanden a { display: flex; justify-content: space-between; gap: 8px; }
.maand-aantal { flex: none; min-width: 1.8em; padding: 0 6px; border-radius: 999px; background: var(--green-100); color: var(--green-900); font-size: .8rem; font-weight: 700; text-align: center; }
.kalender-maanden a.actief .maand-aantal { background: var(--gold); }
@media (max-width: 900px) {
    .kalender-met-maanden { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .kalender-maanden ol { display: flex; flex-wrap: wrap; gap: 6px; }
    .kalender-maanden a { border: 1px solid var(--border); border-left-width: 1px; padding: 6px 10px; }
}

/* ---------- Kalender: grote maandkalender + lijst ---------- */
.kalender-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.kalender-filters { grid-template-columns: 2fr 1.4fr 1fr auto; }
@media (max-width: 900px) { .kalender-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .kalender-filters { grid-template-columns: 1fr; } }
.maandkalender-groot { margin-bottom: 32px; }
.maand-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.maand-nav h2 { margin: 0; min-width: 9ch; text-align: center; font-size: 1.6rem; }
.maand-vandaag { margin-left: auto; }
.maand-pijl { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; text-decoration: none; font-size: 1.7rem; line-height: 1; padding-bottom: 3px; color: var(--green-800); background: var(--green-100); }
.maand-pijl:hover { background: var(--green-700); color: #fff; }
.maand-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.maand-weekdag { padding: 9px 8px; text-align: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green-800); background: var(--green-100); }
.maand-weekdag .kort { display: none; }
.maand-cel { position: relative; min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.maand-cel:nth-child(7n + 1) { border-left: 0; }
.maand-cel.is-weekend { background: #faf8f2; }
.maand-cel.is-leeg { background: repeating-linear-gradient(135deg, #f7f5ef 0 8px, #f2f0e9 8px 16px); }
.maand-cel.is-voorbij > * { opacity: .6; }
.maand-cel.is-gekozen { background: #fbf4d9; box-shadow: inset 0 0 0 2px var(--gold); }
.maand-dag { align-self: flex-end; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 14px; font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums; }
a.maand-dag { color: var(--green-900); }
a.maand-dag:hover { background: var(--green-700); color: #fff; }
.maand-cel.is-vandaag .maand-dag { background: var(--gold); color: var(--green-900); font-weight: 700; }
.maand-item { --soort: var(--green-700); display: block; padding: 4px 6px; border-left: 4px solid var(--soort); border-radius: 5px; background: var(--green-100); color: var(--green-900); font-size: .8rem; line-height: 1.3; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maand-item:hover { background: var(--green-700); color: #fff; }
.maand-item b { font-variant-numeric: tabular-nums; }
.maand-item.is-afgelast { text-decoration: line-through; background: var(--danger-soft); color: var(--danger); border-left-color: var(--danger); }
.maand-meer { font-size: .8rem; font-weight: 600; padding: 0 6px; }
.maand-punten { display: none; gap: 3px; justify-content: center; }
.maand-punt { --soort: var(--green-700); display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--soort); vertical-align: middle; }
.maand-punt.is-afgelast { background: var(--danger); }
.soort-verjaardagschieting, .soort-koningschieting, .soort-keizerschieting { --soort: #c9a227; }
.soort-vleesschieting, .soort-wildschieting { --soort: #b5582a; }
.soort-puntenschieting { --soort: #24497a; }
.soort-kampioenschap, .soort-pelotonschieting { --soort: #57307a; }
.soort-verbondschieting { --soort: #1d7a70; }
.maand-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: .88rem; color: var(--muted); }
.maand-tip { margin-left: auto; }
@media (max-width: 760px) {
    .maand-nav h2 { font-size: 1.3rem; }
    .maand-weekdag { padding: 7px 2px; }
    .maand-weekdag .lang { display: none; }
    .maand-weekdag .kort { display: inline; }
    .maand-cel { min-height: 0; aspect-ratio: 1; padding: 3px; align-items: center; justify-content: center; gap: 3px; }
    .maand-dag { align-self: center; }
    .maand-cel .maand-item, .maand-cel .maand-meer { display: none; }
    .maand-punten { display: flex; }
    .maand-cel.heeft-schieting { background: var(--green-100); }
    .maand-cel.heeft-schieting a.maand-dag::after { content: ""; position: absolute; inset: 0; }
    .maand-tip { margin-left: 0; }
}

/* ---------- Tijdelijke code van een login ---------- */
.code-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0 0; }
.alert-error-tekst { color: var(--danger); font-weight: 600; }
textarea[readonly] { background: #f1efe9; color: var(--muted); cursor: not-allowed; }
.valstrik { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-formulier { margin-top: 24px; }
.contact-formulier h2 { margin-top: 0; }
.berichten { display: grid; gap: 12px; }
.bericht { margin: 0; }
.bericht.is-nieuw { border-left: 5px solid var(--gold); }
.bericht-kop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.bericht .prose p:last-child { margin-bottom: 0; }

/* ---------- Statistieken ---------- */
.stat-tegels { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-tegel { display: grid; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.stat-getal { font-family: var(--font-head); font-size: 2.2rem; line-height: 1.1; color: var(--green-900); font-variant-numeric: tabular-nums; }
.stat-sub { font-size: .88rem; color: var(--muted); }
.stat-kaart { margin-bottom: 20px; }
.stat-kaart h2 { margin-bottom: 2px; font-size: 1.25rem; }
.stat-grid { align-items: start; }
.grafiek { display: block; width: 100%; height: auto; margin-top: 8px; }
.grafiek-lijn { stroke: #e3dfd3; stroke-width: 1; }
.grafiek-as { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.staaf { fill: var(--green-700); }
.staaf-raak { fill: transparent; }
.staaf-groep:hover .staaf { fill: var(--green-900); }
.staaf-groep:hover .staaf-raak { fill: rgba(0, 0, 0, .04); }
.stat-tabel td { vertical-align: middle; }
.stat-tabel .stat-balk { width: 32%; }
.stat-tabel meter { width: 100%; height: 10px; }
.getal { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-details { margin-top: 10px; }
.stat-details summary { cursor: pointer; color: var(--green-800); font-weight: 600; }
.eblok-actie { margin-left: auto; padding-left: 10px; font-size: .85rem; font-weight: 600; color: var(--green-700); white-space: nowrap; }
@media (max-width: 600px) { .eblok-actie { display: none; } }
.aanw-velden { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; margin: 12px 0; }
.aanw-veld { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.aanw-veld span { font-weight: 600; }
.aanw-veld input { width: 90px; text-align: right; }
.aanw-veld.is-eigen { border-color: var(--gold); background: var(--gold-soft); }
.aanw-veld.is-buiten { grid-column: 1 / -1; max-width: 460px; }
.aanw-totaal { font-size: 1.1rem; }
.aanw-kop { margin-top: 28px; }
.seizoen-keuze { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.aanw-wrap { overflow-x: auto; }
.aanw-tabel { font-size: .9rem; min-width: 760px; }
.aanw-tabel th, .aanw-tabel td { padding: 6px 8px; }
.aanw-tabel thead th { vertical-align: bottom; line-height: 1.2; }
.aanw-tabel tbody th, .aanw-tabel tfoot th { text-align: left; font-weight: 600; white-space: nowrap; }
.aanw-tabel td.is-eigen { background: var(--gold-soft); }
.aanw-tabel tr.is-afgelast td, .aanw-tabel tr.is-afgelast th { color: var(--muted); }
.aanw-tabel tfoot td, .aanw-tabel tfoot th { border-top: 2px solid var(--border); background: #faf8f2; }
.aanw-samenvatting { margin-bottom: 6px; }
.blokken > * { min-width: 0; }
.aanw-tabel thead th { white-space: normal; min-width: 56px; max-width: 110px; }
.aanw-tabel tbody th, .aanw-tabel tfoot th { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); background: transparent; }
.aanw-tabel td:first-child { white-space: nowrap; }
.stat-tabel meter { -webkit-appearance: none; appearance: none; border: 0; border-radius: 5px; background: #eeebe2; }
.stat-tabel meter::-webkit-meter-bar { background: #eeebe2; border: 0; border-radius: 5px; height: 10px; }
.stat-tabel meter::-webkit-meter-optimum-value, .stat-tabel meter::-webkit-meter-suboptimum-value, .stat-tabel meter::-webkit-meter-even-less-good-value { background: var(--green-700); border-radius: 5px; }
.stat-tabel meter::-moz-meter-bar { background: var(--green-700); border-radius: 5px; }
.contact-formulier.form { max-width: none; }
.aanw-form.form { max-width: 900px; }

/* ---------- Knop "Aanpassen" per blok (enkel voor wie de pagina mag aanpassen) ---------- */
.blok-bewerkbaar { position: relative; min-width: 0; }
.blok-bewerkbaar > .hero { margin-bottom: 0; }
.blok-bewerk { position: absolute; top: 8px; right: 8px; z-index: 3; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); color: var(--green-800); font-size: .82rem; font-weight: 700; text-decoration: none; opacity: .9; }
.blok-bewerk:hover, .blok-bewerk:focus-visible { opacity: 1; background: var(--gold); color: var(--green-900); }
.club-adres { display: flex; flex-direction: column; gap: 1px; line-height: 1.45; }
.club-adres .club-contact { color: var(--muted); font-size: .92rem; }
.club-adres span:not(.club-contact) + .club-contact { margin-top: 6px; }
/* Het overzicht mag breder dan de tekst, zodat alle kolommen (ook "Totaal") zonder scrollen passen. */
.blok-aanwezigheden .aanw-wrap { margin-left: calc(50% - min(50vw - 16px, 700px)); margin-right: calc(50% - min(50vw - 16px, 700px)); }
.aanw-tabel { font-size: .86rem; min-width: 720px; }
.aanw-tabel th, .aanw-tabel td { padding: 6px 7px; }
.aanw-tabel .aanw-totaal-kolom { background: #f1e9c9; }
.login-vergeten { margin: 14px 0 6px; font-weight: 600; }
.badge-huldeschieting { background: var(--gold-soft); color: #7a5b00; }
.badge-walenspel, .badge-zevenhoog, .badge-pyramide { background: #e6eefa; color: #24497a; }
.soort-huldeschieting { --soort: #c9a227; }
.soort-walenspel, .soort-zevenhoog, .soort-pyramide { --soort: #24497a; }
.maand-cel.is-geblokkeerd { background: repeating-linear-gradient(135deg, #fbeceb 0 8px, #f6dedc 8px 16px); }
.maand-blok { display: block; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .8); color: var(--danger); font-size: .74rem; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .maand-blok { display: none; } .maand-cel.is-geblokkeerd .maand-dag { color: var(--danger); } }
.geblokkeerd-hint { color: var(--danger); }
.geblokkeerd-form { max-width: none; }
.verborgen-form { display: none; }
.soort-nieuw.form, .soort-lijst { max-width: none; }
.soort-lijst input[type=text] { max-width: 280px; }
.soort-lijst h2, .soort-nieuw h2 { margin-top: 0; }
/* Wachtwoordveld met knop "tonen" */
.wachtwoord-veld { position: relative; display: block; }
.wachtwoord-veld input { width: 100%; padding-right: 52px; }
.toon-wachtwoord { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 40px; height: 34px; border: 0; border-radius: 6px; background: transparent; font-size: 1.1rem; cursor: pointer; opacity: .6; }
.toon-wachtwoord:hover, .toon-wachtwoord.actief { opacity: 1; background: var(--green-100); }
.capslock-melding { display: block; color: #7a5b00; background: var(--gold-soft); border-radius: 6px; padding: 6px 10px; font-size: .9rem; font-weight: 600; }
.capslock-melding[hidden] { display: none; }
.inactief-balk { background: var(--danger-soft); border-bottom: 1px solid #efb9b3; color: #6d1f18; padding: 10px 0; font-size: .95rem; }
/* Knoppen Vet / Rood boven een tekstvak */
.opmaak-vak { display: grid; gap: 0; }
.opmaak-balk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; border: 1px solid #c9c4b5; border-bottom: 0; border-radius: 7px 7px 0 0; background: #f6f4ee; }
.opmaak-balk + textarea, .opmaak-vak textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.opmaak-knop { min-width: 40px; height: 32px; padding: 0 10px; border: 1px solid #c9c4b5; border-radius: 6px; background: #fff; font: inherit; font-size: .9rem; cursor: pointer; }
.opmaak-knop:hover { border-color: var(--green-700); }
.opmaak-b { font-weight: 800; }
.opmaak-rood { color: #c4161c; font-weight: 700; }
.opmaak-uitleg { color: var(--muted); font-size: .82rem; }
.aanw-som { display: grid; gap: 8px; margin: 14px 0; padding: 12px 14px; border-radius: 8px; background: var(--green-100); }
.aanw-som p { margin: 0; }
.aanw-veld.is-totaal { max-width: 460px; border-color: var(--green-700); }
.aanw-waarschuwing { color: var(--danger); font-weight: 600; }
.aanw-waarschuwing[hidden] { display: none; }
/* Maatschappijkaart: de naam is de link en bedekt de hele kaart; de knop Aanpassen ligt erboven */
.club-card { position: relative; }
.club-link { color: inherit; text-decoration: none; }
.club-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.club-card:hover .club-link { color: var(--green-700); }
.footer-onder a { color: inherit; }
.club-card .blok-bewerk ~ h2 { padding-right: 104px; }

/* ---------- Teksteditor met knoppen (vet, schuin, onderlijnd, kleur, …) ---------- */
.te { display: grid; border: 1px solid #c9c4b5; border-radius: 8px; background: #fff; overflow: hidden; }
.te:focus-within { border-color: var(--green-700); box-shadow: 0 0 0 3px var(--green-100); }
.te-balk { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #f6f4ee; border-bottom: 1px solid #e3ddcf; }
.te-knop { display: inline-flex; align-items: center; gap: 6px; min-width: 38px; height: 34px; padding: 0 10px; border: 1px solid #d6d0c0; border-radius: 6px; background: #fff; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.te-knop:hover { border-color: var(--green-700); }
.te-knop.aan { background: var(--green-100); border-color: var(--green-700); color: var(--green-900); }
.te-knop b, .te-knop i, .te-knop u { font-size: 1rem; }
.te-a { font-weight: 800; color: #c4161c; text-decoration: underline; text-decoration-color: #1f5fa8; text-decoration-thickness: 3px; }
.te-gewoon { margin-left: auto; }
.te-kleuren { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: #fbfaf6; border-bottom: 1px solid #e3ddcf; }
.te-kleuren[hidden] { display: none; }
.te-staal { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .15); }
.te-staal-rood { background: #c4161c; } .te-staal-blauw { background: #1f5fa8; } .te-staal-groen { background: #1f7a3d; }
.te-staal-oranje { background: #c2570c; } .te-staal-paars { background: #6b2fa0; } .te-staal-grijs { background: #6b665c; }
.te-staal-gewoon { background: #22201c; }
.te-vak { min-height: 140px; max-height: 60vh; overflow-y: auto; padding: 12px 14px; outline: none; max-width: none; line-height: 1.55; }
.te-vak.te-klein { min-height: 80px; }
/* Eén regel (titel, onderschrift, naam) */
.te-vak.te-regel { min-height: 0; max-height: none; padding: 8px 12px; white-space: nowrap; overflow-x: auto; }
.te-als-regel .te-balk { padding: 4px 6px; }
.te-als-regel .te-knop { padding: 3px 9px; font-size: .85rem; }
/* Tabel om in te typen */
.te-tabel-wrap { overflow-x: auto; padding: 8px; }
.te-tabel-raster { border-collapse: collapse; min-width: 100%; }
.te-tabel-raster td { border: 1px solid var(--border); padding: 0; min-width: 120px; background: #fff; }
.te-tabel-raster tr:nth-child(2) td { background: var(--green-100); font-weight: 600; }
.te-tabel-raster th { padding: 2px 4px; text-align: center; vertical-align: middle; font-weight: 400; }
.te-tabel-raster .te-vak.te-regel { border: 0; border-radius: 0; padding: 7px 9px; min-width: 100%; }
.te-tabel-raster .te-vak.te-regel:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.te-tabel-rijknoppen { white-space: nowrap; }
.te-tabel-rijknoppen .button, .te-tabel-weg { padding: 2px 7px; min-height: 0; font-size: .8rem; }
.te-tabel-acties { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px 10px; }
.te-vak p { margin: 0 0 .8em; }
.te-vak h3 { margin: .6em 0 .4em; }
.te-vak ul { margin: 0 0 .8em; }
/* Kleuren van tekst (op de website en in de editor) */
.tekst-blauw { color: #1f5fa8; } .tekst-groen { color: #1f7a3d; } .tekst-oranje { color: #c2570c; }
.tekst-paars { color: #6b2fa0; } .tekst-grijs { color: #6b665c; }
.prose u { text-underline-offset: 2px; }
