/* K.V.Z. Glabbeek-Zuurbemde – stijl B (donkergroen en rood uit het clublogo) */
:root {
  --bg: #0D2614;
  --panel: #154C23;
  --line: #22603A;
  --field-line: #6FA584;
  --text: #FFFFFF;
  --muted: #C9DBCF;
  --red: #E51C20;
  --red-text: #FF7A7A;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--text); }
a:hover { color: #DCE8E0; }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--red); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Kop */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 60px; width: auto; display: block; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 1px; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }

/* Knoppen */
.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 8px; text-decoration: none; border: 0; cursor: pointer; line-height: 1.3; }
.btn-primary { background: var(--red); color: #FFFFFF; }
.btn-primary:hover { background: #C8102E; color: #FFFFFF; }
.btn-light { background: #FFFFFF; color: var(--bg); }
.btn-light:hover { background: #E8F0EA; color: var(--bg); }

/* Typografie */
.kicker, .label { margin: 0; color: var(--red-text); font-weight: 700; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.95; }
.lead { margin: 0; font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }
.section-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 6vw, 56px); line-height: 1; }

/* Paginakop */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(56px, 9vw, 88px); line-height: 0.95; }

/* Home */
.home-hero .wrap { padding-top: 88px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.home-hero .text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.home-hero h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(64px, 11vw, 120px); line-height: 0.9; }
.home-hero .crest { flex: 0 1 300px; width: 300px; }

.section { padding-top: 72px; padding-bottom: 0; }
main > section:last-of-type { padding-bottom: 88px; }
.callout-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 7vw, 48px); line-height: 1; overflow-wrap: anywhere; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.band { background: var(--panel); margin-top: 72px; }
.band .wrap { padding-top: 72px; padding-bottom: 72px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid-tight { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }

.card { background: var(--panel); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.band .card { background: var(--bg); border: 1px solid var(--line); }
.card-red { background: var(--red); }
.card-red .label { color: #FFFFFF; }
.match-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 4.5vw, 48px); line-height: 1; }
.match-meta { font-size: 16px; font-weight: 500; }

.list-plain { list-style: none; margin: 0; padding: 0; }
.home-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.home-list li:first-child { border-top: 0; }

.team-card { text-decoration: none; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.team-card .name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1.05; }
.team-card .sub { font-size: 15px; color: var(--muted); }
.team-chip { text-decoration: none; text-align: center; padding: 18px 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-family: var(--display); font-weight: 800; font-size: 28px; }
.team-card:hover, .team-chip:hover { border-color: var(--field-line); }

/* Groepsfoto per ploeg */
.team-photo { margin: 0; background: var(--panel); border-radius: 20px; overflow: hidden; }
.team-photo img { display: block; width: 100%; height: auto; max-height: 680px; object-fit: contain; background: #0A1F10; }
.team-photo figcaption { padding: 14px 20px; color: var(--muted); font-size: 15px; }

/* Tabellen */
.table-box { overflow-x: auto; background: var(--panel); border-radius: var(--radius); }
table.matches { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 16px; }
table.matches caption { text-align: left; padding: 20px 20px 4px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 28px; }
table.matches th { text-align: left; color: var(--muted); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; padding: 16px 20px; }
table.matches td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.pill { display: inline-block; border: 1px solid var(--field-line); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none; }
.ref { font-weight: 700; color: var(--red-text); }
.ref-none { color: var(--muted); font-style: italic; }
.assist { display: block; font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); padding: 24px 20px; margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { font: inherit; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: transparent; color: #FFFFFF; }
.filters button[aria-pressed="true"] { background: var(--red); border-color: var(--red); }

/* Club */
.facts .card { gap: 6px; }
.facts .num { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--red-text); }
.callout { background: var(--red); border-radius: 20px; padding: clamp(28px, 5vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.callout p { margin: 0; font-size: 19px; line-height: 1.6; max-width: 820px; }
.timeline li { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline .year { flex: 0 0 180px; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; color: var(--red-text); }
.timeline p { flex: 1 1 480px; margin: 0; font-size: 18px; line-height: 1.6; }

/* Sponsors */
.sponsor { background: #FFFFFF; border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 20px; min-height: 120px; text-decoration: none; color: var(--bg); font-weight: 700; text-align: center; }
.sponsor img { max-height: 90px; width: auto; }
.sponsor-main { min-height: 200px; }
.sponsor-main img { max-height: 150px; }

/* Formulier */
.form { background: var(--panel); border-radius: 20px; padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--bg); color: #FFFFFF; }
.field textarea { resize: vertical; min-height: 160px; }
.hp { position: absolute; left: -9999px; }
.notice { border-radius: 12px; padding: 16px 20px; font-weight: 500; }
.notice-ok { background: #1F6B35; }
.notice-error { background: #7A1214; }

/* Nieuws (Facebook) – foto's in hun eigen verhouding, kaarten in kolommen (zoals een prikbord) */
.fb-grid { columns: 3 300px; column-gap: 20px; }
.fb-grid-compact { columns: 3 280px; }
.fb-card { background: var(--panel); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; break-inside: avoid; margin-bottom: 20px; }
.fb-head { padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.fb-logo { height: 40px; width: auto; display: block; }
.fb-meta { display: flex; flex-direction: column; }
.fb-name { font-weight: 700; font-size: 15px; }
.fb-date { font-size: 13px; color: var(--muted); }
.fb-photo { display: block; background: #0A1F10; line-height: 0; }
.fb-image { width: 100%; height: auto; max-height: 720px; object-fit: contain; display: block; transition: opacity .2s; }
.fb-photo:hover .fb-image { opacity: .92; }
.fb-grid-compact .fb-image { max-height: 420px; }
.fb-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.fb-text { margin: 0; font-size: 16px; line-height: 1.5; white-space: pre-line; }
.fb-link { font-weight: 700; font-size: 15px; }
.fb-empty { color: var(--muted); }
#facebook-nieuws[aria-busy="true"] { min-height: 200px; }

/* Voet */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.footer-grid p { margin: 0; }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; text-transform: uppercase; color: #FFFFFF; margin-bottom: 6px !important; }
.footer-title { font-weight: 700; color: #FFFFFF; margin-bottom: 4px !important; }

@media (max-width: 720px) {
  .header-row { gap: 12px; }
  .nav { order: 3; width: 100%; gap: 4px 18px; }
  .home-hero .crest { width: 180px; }
  .brand img { height: 48px; }
  .brand span { font-size: 22px; }
  .header-row .btn { padding: 10px 14px; }
  .timeline .year { flex-basis: 100%; }
}

/* Facebook-links met icoon */
.link-fb { display: inline-flex; align-items: center; gap: 8px; }
.icon-fb { flex: none; display: block; }
.btn.link-fb { gap: 10px; }
.fb-link.link-fb { align-self: flex-start; }
