
/*
Theme Name:  CTO'70 Volleybal
Theme URI:   https://cto70volleybal.nl
Author:      CTO'70
Description: Officieel WordPress-thema voor CTO'70 Volleybal Duivendrecht. Warm off-white, Fraunces + Inter, oranje accent.
Version:     2.6.0
License:     GNU General Public License v2 or later
Text Domain: cto70
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Tags:        sports, one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ─── Reset & tokens ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; }

:root {
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --orange:      #EA580C;
  --orange-soft: #FFEDD5;
  --ink:         #171410;
  --paper:       #FBF8F4;
  --card:        #FFFFFF;
  --line:        #E8E2D8;
  --muted:       #7A7268;
}

html { font-size: 15px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Type helpers ──────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1;
}
.serif {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* ─── Pill badge ────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── Photo placeholder (vervang met <img> bij echte foto's) ── */
.photo {
  position: relative;
  border-radius: 16px;
  background: repeating-linear-gradient(135deg, #ECE5DA 0 14px, #E4DCCE 14px 28px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ─── Post thumbnail als foto ───────────────────────────────── */
.photo-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  display: block;
  background: var(--line);
}
.photo-img img,
.photo-img picture {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  display: block;
  margin: 0;
}

.page-top { height: 16px; }

/* ═══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 20;
  padding: 0 24px;
}
.nav-inner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 24px rgba(23,20,16,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--orange);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: 16px;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-logo-mark img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}
.nav-logo-name {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* WordPress menu */
.nav-links {
  display: flex;
  gap: 2px;
  font-size: 14px;
  list-style: none;
}
.nav-links li a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.12s;
}
.nav-links li a:hover { background: var(--paper); }
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a,
.nav-links li.current-menu-ancestor > a {
  background: var(--ink);
  color: var(--paper);
}

.nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-lang { font-size: 13px; color: var(--muted); }
a.btn, .btn { display:inline-flex; align-items:center; gap:6px; text-decoration:none; line-height:1.2; }
.btn-word-lid {
  background: var(--orange);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.15s;
}
.btn-word-lid:hover { opacity: 0.9; }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero { padding: 32px 24px 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero-editorial {
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(234,88,12,0.2);
  color: #FDBA74;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 560px;
}
.hero-headline em { color: var(--orange); font-style: italic; }
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: var(--orange);
  color: white;
  border: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s;
}
.btn-hero-primary:hover { opacity: 0.9; }
.btn-hero-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(251,248,244,0.3);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s;
}
.btn-hero-ghost:hover { border-color: rgba(251,248,244,0.6); }

.hero-left { display: flex; flex-direction: column; gap: 16px; }
.hero-left .hero-editorial { flex: 1; }
.hero-right { display: flex; flex-direction: column; }

.hero-match {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  flex: 1;
}
.hero-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-match-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.hero-photo-match { margin-top: 16px; height: 140px; }

.hero-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.hero-team { text-align: center; }
.hero-team-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: 16px;
  letter-spacing: 0.01em;
  overflow: hidden;
}
.hero-team-badge img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}
.hero-team-name { font-weight: 600; font-size: 14px; }
.hero-vs { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-size: 24px; color: var(--muted); }

.hero-match-info {
  margin-top: 20px;
  padding: 16px;
  background: var(--paper);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-match-date { font-size: 13px; color: var(--muted); }
.hero-match-location { font-weight: 600; margin-top: 2px; }
.btn-agenda {
  background: var(--orange);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.hero-result {
  background: var(--orange);
  color: white;
  border-radius: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.hero-result-score {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: 56px;
  line-height: 1;
}
.hero-result-label { margin-top: 8px; font-size: 14px; font-weight: 500; opacity: 0.9; }
.hero-result-link { position: absolute; top: 24px; right: 24px; font-size: 20px; color: white; }

/* ═══════════════════════════════════════════════════════════
   SECTION HEADER (gedeeld)
═══════════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.section-eyebrow { display: inline-flex; margin-bottom: 16px; }
.section-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.section-title em { color: var(--orange); font-style: italic; }
.section-all-link { font-weight: 500; color: var(--ink); white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════
   VERS VAN HET VELD
═══════════════════════════════════════════════════════════ */
.news-section { padding: 40px 24px 80px; }

.news-layout { display: block; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-featured {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.article-featured-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}
.article-featured-photo { border-radius: 0; min-height: 280px; height: 100%; display:block; }
.article-featured-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.article-meta-date { font-size: 12px; color: var(--muted); }
.article-featured-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.article-excerpt { color: var(--muted); font-size: 14px; }
.article-read-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--orange);
  font-weight: 600;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
}
.article-card .photo,
.article-card .photo-img { height: auto; aspect-ratio: 16 / 9; }
.article-card-photo { display:block; }
.article-card-meta { margin: 16px 0 0; }
.article-card-title a:hover { color: var(--orange); }
.article-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
}
.article-card-date { font-size: 12px; color: var(--muted); }

/* ─── Komende wedstrijden ───────────────────────────────── */
.upcoming-aside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}
.hero-right .match-rows { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; }
.hero-right .match-row { flex: 1; }
.hero-right .upcoming-footer-link { margin-top: 16px; padding-bottom: 0; }
.upcoming-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.upcoming-status { font-size: 11px; color: var(--muted); }

.match-rows { display: flex; flex-direction: column; gap: 4px; }
.match-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: 10px;
}
.match-date { font-size: 12px; font-weight: 700; color: var(--ink); text-transform: capitalize; }
.match-time { font-size: 13px; color: var(--orange); font-weight: 700; font-variant-numeric: tabular-nums; }
.match-teams { font-size: 13px; line-height: 1.35; font-weight: 500; }
.match-skeleton { height: 56px; background: var(--paper); border-radius: 10px; }

.upcoming-footer-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

/* ═══════════════════════════════════════════════════════════
   TEAMS
═══════════════════════════════════════════════════════════ */
.teams-section { padding: 40px 24px 80px; }
.teams-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.team-card { border-radius: 24px; padding: 24px; display: block; transition: transform .15s, box-shadow .15s; }
.team-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(23,20,16,0.08); }
.team-card-photo { height: 180px; }
.team-card--dark   { background: var(--ink);    color: var(--paper); }
.team-card--light  { background: var(--card);   color: var(--ink);   border: 1px solid var(--line); }
.team-card--accent { background: var(--orange); color: white; }

.team-card-info { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 20px; }
.team-card-name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-size: 26px; line-height: 1; }
.team-card-division { font-size: 13px; margin-top: 4px; }
.team-card--light  .team-card-division { color: var(--muted); }
.team-card--dark   .team-card-division,
.team-card--accent .team-card-division { color: rgba(255,255,255,0.7); }

.team-card-arrow { font-size: 18px; }
.team-card-stats { display: flex; gap: 16px; margin-top: 16px; padding-top: 16px; font-size: 13px; }
.team-card--light  .team-card-stats { border-top: 1px solid var(--line); }
.team-card--dark   .team-card-stats,
.team-card--accent .team-card-stats { border-top: 1px solid rgba(255,255,255,0.15); }

.team-train { color: var(--muted); }
.team-card--dark   .team-train,
.team-card--accent .team-train { color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer { padding: 0 24px 24px; }
.footer-inner { background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 48px; }
.footer-grid.footer-grid--single { grid-template-columns: 1fr; }
.footer-grid--single > div { display: flex; align-items: center; gap: 24px; flex-wrap: nowrap; }
.footer-grid--single .footer-logo { margin-bottom: 0; flex-shrink: 0; }
.footer-grid--single .footer-desc { flex: 1 1 auto; max-width: none; margin: 0; }
.footer-grid--single .footer-socials { margin: 0 0 0 auto; flex-shrink: 0; }
@media (max-width: 600px) { .footer-grid--single > div { flex-wrap: wrap; } .footer-grid--single .footer-socials { margin-left: 0; } }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-mark {
  width: 56px;
  height: 56px;
  background: var(--ink);
  color: var(--orange);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: 18px;
  letter-spacing: 0.01em;
  overflow: hidden;
  flex-shrink: 0;
}
.footer-logo-mark img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.footer-logo-name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-size: 24px; line-height: 1; }
.footer-desc { color: var(--muted); max-width: 360px; font-size: 14px; line-height: 1.6; }

.footer-socials { display: flex; gap: 8px; margin-top: 20px; align-items: center; flex-wrap: wrap; }
.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  transition: background 0.12s;
}
.footer-social-icon:hover { background: var(--paper); }
.footer-contact-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.12s;
}
.footer-contact-btn:hover { background: var(--paper); }

.footer-col-title { font-size: 13px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange); }
.footer-col-link { display: block; margin-bottom: 8px; font-size: 14px; color: var(--ink); transition: color 0.12s; }
.footer-col-link:hover { color: var(--orange); }

/* WordPress menu in footer */
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav ul li a { display: block; margin-bottom: 8px; font-size: 14px; color: var(--ink); transition: color 0.12s; }
.footer-nav ul li a:hover { color: var(--orange); }

.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 13px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   ALGEMEEN (v2): containers, toegankelijkheid, kaarten
═══════════════════════════════════════════════════════════ */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; clip-path: none;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.container { padding: 40px 24px 80px; max-width: 1280px; margin: 0 auto; }
.container--narrow { max-width: 860px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.card + .card { margin-top: 20px; }

.page-header { margin-bottom: 32px; }
.page-header .section-title { font-size: clamp(40px, 6vw, 64px); }
.page-intro { color: var(--muted); font-size: 17px; max-width: 640px; margin-top: 16px; }
.page-intro p + p { margin-top: 12px; }

.articles-grid--3 { grid-template-columns: repeat(3, 1fr); }
.articles-grid--4 { grid-template-columns: repeat(4, 1fr); }
.articles-empty, .match-empty { color: var(--muted); font-size: 14px; padding: 8px 0; }

/* Nav: extra knoppen en mobiel */
.nav-icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink); transition: background .12s;
}
.nav-icon-btn:hover { background: var(--paper); }
.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.nav-toggle-bar { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Submenu's (desktop dropdown) */
.nav-links li { position: relative; }
/* Onzichtbare brug over de 8px tussen menu-item en dropdown, zodat de hover niet wegvalt */
.nav-links > li.menu-item-has-children::after, .nav-links > li.page_item_has_children::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
}
.nav-links .sub-menu, .nav-links .children {
  list-style: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px;
  box-shadow: 0 10px 30px rgba(23,20,16,0.10); display: none; z-index: 30;
}
.nav-links li:hover > .sub-menu, .nav-links li:focus-within > .sub-menu, .nav-links li.is-open > .sub-menu,
.nav-links li:hover > .children, .nav-links li:focus-within > .children, .nav-links li.is-open > .children { display: block; }
.nav-links .menu-item-has-children > a::after, .nav-links .page_item_has_children > a::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.nav-links .sub-menu li a, .nav-links .children li a { border-radius: 10px; white-space: nowrap; }
.submenu-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; }

/* Hero met foto-achtergrond */
.hero-editorial--photo { background-size: cover; background-position: center; }
.hero-editorial--photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,20,16,0.15) 0%, rgba(23,20,16,0.85) 70%);
}
.hero-editorial > * { position: relative; }
.hero-headline { font-size: clamp(40px, 5.5vw, 76px); }
.hero-headline.display { font-size: clamp(48px, 7vw, 96px); }
.hero-team-badge--us { background: var(--ink); color: var(--orange); }
.hero-team-badge--them { background: #E8E2D8; color: var(--ink); }
.hero-team-logo img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.hero-match-empty { margin-top: 20px; color: var(--muted); font-size: 14px; }
.hero-result--cta { display: block; transition: opacity .15s; }
.hero-result--cta:hover { opacity: .92; }
.hero-result--cta .hero-result-score { font-size: 40px; }
.hero-result--cta .hero-result-label { font-size: 16px; }

/* Wedstrijdrijen (uitgebreid) */
.match-row--result { grid-template-columns: 72px 1fr auto; }
.match-score { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-size: 20px; color: var(--orange); letter-spacing: .02em; white-space: nowrap; }
.match-location { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.match-teams .is-us { font-weight: 700; color: var(--orange); }
.match-sep { color: var(--muted); margin: 0 6px; font-weight: 400; }
.upcoming-aside--static { position: static; }

/* Filterpills */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pill--btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: background .12s, color .12s; }
.pill--btn:hover { background: var(--paper); }
.pill--btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Programma-pagina */
.programma-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.programma-title { font-size: 32px; margin-bottom: 16px; font-weight: 400; }
.programma-day + .programma-day { margin-top: 16px; }
.programma-day-title { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin-bottom: 14px; text-transform: capitalize; }

/* Teampagina */
.team-hero { min-height: 360px; margin-bottom: 24px; }
.team-hero-division { margin-top: 12px; font-size: 18px; color: rgba(251,248,244,0.75); }
.team-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.team-aside { position: sticky; top: 92px; }
.team-facts dl { margin: 16px 0 20px; }
.team-fact { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.team-fact dt { color: var(--muted); }
.team-fact dd { font-weight: 600; text-align: right; }
.team-fact a { color: var(--orange); }
.btn-block { width: 100%; justify-content: center; }

/* Zoeken */
.search-form { display: flex; gap: 8px; max-width: 480px; }
.search-form label { flex: 1; }
.search-field {
  width: 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font: inherit; font-size: 15px; color: var(--ink);
}
.search-submit { background: var(--ink); color: var(--paper); border: 0; padding: 0 20px; border-radius: 999px; font-weight: 600; }
.search-again { margin-bottom: 32px; }
.search-results { display: flex; flex-direction: column; gap: 16px; }
.content-none p { color: var(--muted); margin: 8px 0 20px; }
.content-none h2 { font-size: 28px; font-weight: 400; }

/* 404 */
.error-404 { min-height: 420px; margin-bottom: 32px; }
.error-404-text { margin-top: 20px; color: rgba(251,248,244,0.75); max-width: 480px; font-size: 16px; }

/* Paginering & berichtnavigatie */
.pagination { margin-top: 40px; }
.pagination .nav-links { justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500;
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .page-numbers.dots { border: 0; background: none; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; font-weight: 500; }
.post-nav a { color: var(--ink); }
.post-nav a:hover { color: var(--orange); }
.post-nav-next { margin-left: auto; text-align: right; }

/* ═══════════════════════════════════════════════════════════
   ENTRY CONTENT (pagina's & berichten uit de editor)
═══════════════════════════════════════════════════════════ */
.entry-thumb { margin-bottom: 32px; aspect-ratio: 16 / 8; }
/* Uitgelichte afbeelding op bericht/pagina: volledig tonen, eigen verhouding */
.entry-figure { margin: 0 0 32px; border-radius: 16px; overflow: hidden; background: var(--line); display: flex; justify-content: center; align-items: center; }
.entry-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 0; }
.entry-figure:not(.is-portrait) img { width: 100%; }
/* Staande afbeeldingen in kaarten: bovenkant tonen in plaats van midden */
.photo-img.is-portrait img { object-position: center top; }
.entry-title { font-size: clamp(36px, 5vw, 56px); }
.entry-content { font-size: 17px; line-height: 1.7; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin-top: 2em; }
.entry-content h2 { font-size: 34px; }
.entry-content h3 { font-size: 26px; }
.entry-content h4 { font-size: 20px; }
.entry-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { border-left: 3px solid var(--orange); padding: 4px 0 4px 20px; font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.entry-content blockquote cite { display: block; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--muted); margin-top: 8px; font-style: normal; }
.entry-content img { border-radius: 16px; height: auto; }
.entry-content figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content h1 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; font-size: 34px; margin-top: 2em; }

/* Tabellen (ook het tabel-blok van de editor) */
.entry-content .wp-block-table { margin-left: 0; margin-right: 0; overflow-x: auto; }
.entry-content table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.entry-content th, .entry-content td { padding: 12px 18px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content thead th, .entry-content th { font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); background: var(--paper); }
.entry-content tbody tr:nth-child(even) td { background: rgba(251,248,244,0.6); }
.entry-content tbody tr:hover td { background: var(--orange-soft); }
.entry-content tbody td:first-child:not(:only-child) { font-weight: 600; white-space: nowrap; }
.entry-content td, .entry-content th { overflow-wrap: anywhere; }
/* Tabellen en figuren in een flex-groep mogen krimpen */
.entry-content .wp-block-group.is-layout-flex > * { min-width: 0; max-width: 100%; }
.entry-content .wp-block-group.is-layout-flex > .wp-block-table { flex: 1 1 100%; }
.entry-content .wp-block-table.is-style-stripes table { border: 1px solid var(--line); }
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td { background: transparent; }
.entry-content .wp-block-table figcaption { text-align: left; }
.entry-content .has-fixed-layout { table-layout: auto; }
.entry-content pre { background: var(--ink); color: var(--paper); padding: 20px; border-radius: 16px; overflow-x: auto; font-size: 14px; }
.entry-content code { font-family: 'Courier New', monospace; font-size: .95em; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); }
.entry-content .wp-block-button__link { background: var(--orange); color: #fff; border-radius: 999px; padding: 12px 22px; text-decoration: none; font-weight: 600; }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.entry-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: none; border-radius: 0; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: 0 24px 16px 0; }
.entry-content .alignright { float: right; margin: 0 0 16px 24px; }
.entry-content .wp-block-columns { gap: 24px; }
.entry-content .has-orange-color, .entry-content .has-orange-background-color { --wp--preset--color--orange: var(--orange); }
.entry-footer { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.page-links { margin-top: 24px; font-weight: 600; }
.wp-caption { max-width: 100%; }
.sticky .article-card-meta::after { content: "★"; color: var(--orange); font-size: 12px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { margin: 0; }
.bypostauthor { }

/* Reacties */
.comments-area { display: none; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font-size: 28px; font-weight: 400; margin-bottom: 24px; }
.comment-list, .comment-list .children { list-style: none; }
.comment-list .children { margin-left: 48px; }
.comment-body { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 12px; }
.comment-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.comment-avatar { border-radius: 50%; }
.comment-date { display: block; font-size: 12px; color: var(--muted); }
.comment-content { font-size: 15px; }
.comment-actions { margin-top: 12px; font-size: 13px; font-weight: 600; }
.comment-actions a { color: var(--orange); }
.comment-awaiting { font-size: 13px; color: var(--muted); font-style: italic; margin-bottom: 8px; }
.comment-form { display: grid; gap: 16px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font: inherit; color: var(--ink);
}
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; font-size: 14px; }
.comment-form .form-submit { margin: 0; }

/* ═══ Template: Nieuwsoverzicht (lijst) ═══ */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 16px; transition: transform .15s, box-shadow .15s; }
.news-row:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(23,20,16,0.08); }
.news-row-photo { aspect-ratio: 4 / 3; height: auto; display: block; }
.news-row-body { padding: 8px 8px 8px 0; }
.news-row-title { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 8px; }
.news-row-title a:hover { color: var(--orange); }

/* ═══ Template: Trainingsrooster ═══ */
.rooster-intro { max-width: 640px; margin-bottom: 32px; }
.rooster { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.rooster-day { padding: 24px; }
.rooster-day + .rooster-day { margin-top: 0; }
.rooster-day-title { font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: -0.02em; line-height: 1; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rooster-day-title::first-letter { color: var(--orange); }
.rooster-slots { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rooster-slot { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; background: var(--paper); border-radius: 14px; padding: 12px 14px; position: relative; overflow: hidden; }
.rooster-slot::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--orange); }
.rooster-time { display: flex; flex-direction: column; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rooster-start { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--orange); letter-spacing: -0.01em; }
.rooster-end { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rooster-end::before { content: '– '; }
.rooster-group { font-weight: 600; font-size: 15px; line-height: 1.3; }
.rooster-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rooster-footer { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 14px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.btn-ghost-dark:hover { background: var(--ink); color: var(--paper); }

/* ═══ Template: grote kop, oranje subkoppen ═══ */
.entry-title--xl { font-size: clamp(44px, 7vw, 84px); }
.entry-content--koppen h2, .entry-content--koppen h3, .entry-content--koppen h4 { color: var(--orange); font-weight: 600; }
.entry-content--koppen h2 { font-size: 36px; }
.entry-content--koppen h3 { font-size: 28px; }
.entry-content--koppen h4 { font-size: 22px; }

/* Widgets */
.widget + .widget { margin-top: 20px; }
.widget-title { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.widget ul { list-style: none; }
.widget li + li { margin-top: 8px; }

/* Admin bar */
.admin-bar .nav-wrap { top: 48px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .teams-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid--3, .articles-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-headline { font-size: clamp(40px, 6vw, 64px); }
}

@media (max-width: 900px) {
  .hero-grid, .news-layout, .programma-layout, .team-layout { grid-template-columns: 1fr; }
  .hero-editorial { min-height: 360px; padding: 32px; }
  .upcoming-aside, .team-aside { position: static; }
  .article-featured-inner { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 160px 1fr; gap: 16px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-featured-photo { min-height: 220px; }
  .section-title { font-size: 40px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .entry-content .alignwide { margin-left: 0; margin-right: 0; }

  /* Mobiel menu */
  .nav-toggle { display: flex; }
  .nav-primary {
    display: none; position: absolute; left: 24px; right: 24px; top: calc(100% + 8px);
    background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 12px;
    box-shadow: 0 16px 40px rgba(23,20,16,0.12);
  }
  .nav-wrap.is-open .nav-primary { display: block; max-height: calc(100dvh - 110px); max-height: calc(100vh - 110px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  body.menu-open { overflow: hidden; }
  .nav-links { flex-direction: column; gap: 2px; font-size: 16px; }
  .nav-links li { display: flex; flex-wrap: wrap; align-items: center; }
  .nav-links li > a { flex: 1; padding: 12px 16px; border-radius: 14px; }
  .nav-links .sub-menu, .nav-links .children { position: static; display: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 0 16px; }
  .nav-links li:hover > .sub-menu, .nav-links li:focus-within > .sub-menu, .nav-links li:hover > .children, .nav-links li:focus-within > .children { display: none; }
  .nav-links li.is-open > .sub-menu, .nav-links li.is-open > .children { display: block; }
  .nav-links .menu-item-has-children > a::after, .nav-links .page_item_has_children > a::after { display: none; }
  .submenu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; }
  .nav-links li.is-open > .submenu-toggle svg { transform: rotate(180deg); }
  .nav-icon-btn { display: none; }
}

@media (max-width: 600px) {
  html { font-size: 14px; }
  /* Editor-inhoud nooit buiten het scherm: grote lettergroottes begrenzen, blokken laten meebuigen */
  .entry-content { overflow-wrap: anywhere; }
  .entry-content > *, .entry-content .wp-block-group, .entry-content .wp-block-columns, .entry-content .wp-block-column { max-width: 100%; min-width: 0; }
  .entry-content [style*="font-size"], .entry-content .has-large-font-size, .entry-content .has-x-large-font-size, .entry-content .has-xx-large-font-size, .entry-content .has-huge-font-size { font-size: clamp(16px, 4.8vw, 20px) !important; line-height: 1.4 !important; }
  .entry-content h1[style*="font-size"], .entry-content h2[style*="font-size"], .entry-content h3[style*="font-size"] { font-size: clamp(22px, 6.5vw, 30px) !important; }
  .entry-content pre, .entry-content .wp-block-verse, .entry-content .wp-block-preformatted { white-space: pre-wrap; }
  .entry-content .wp-block-group.has-background { padding-left: 16px; padding-right: 16px; }
  .entry-content .wp-block-columns, .entry-content .wp-block-group.is-layout-flex.is-nowrap { flex-wrap: wrap !important; }
  .entry-content .wp-block-group.is-layout-flex > * { flex: 1 1 100%; }
  .entry-content tbody td:first-child { white-space: normal; }
  .entry-content .wp-block-column { flex-basis: 100% !important; }
  .nav-wrap { padding: 0 12px; top: 8px; }
  .nav-inner { padding: 8px 10px 8px 14px; }
  .nav-logo-name { font-size: 18px; }
  .btn-word-lid { padding: 8px 12px; font-size: 13px; }
  .nav-primary { left: 12px; right: 12px; }
  .hero, .news-section, .teams-section, .container { padding-left: 12px; padding-right: 12px; }
  .hero-editorial { padding: 28px 24px; min-height: 360px; border-radius: 24px; }
  .hero-headline { font-size: 38px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .articles-grid, .articles-grid--3, .articles-grid--4, .teams-grid { grid-template-columns: 1fr; }
  .section-title, .page-header .section-title { font-size: 34px; }
  .footer-inner { padding: 28px 20px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .site-footer { padding: 0 12px 12px; }
  .match-row { grid-template-columns: 64px 1fr; }
  .match-row--result { grid-template-columns: 64px 1fr auto; }
  .hero-result-score { font-size: 48px; }
  .team-hero { min-height: 260px; }
  .comment-list .children { margin-left: 16px; }
  .entry-content .alignfull { margin-left: -12px; margin-right: -12px; }
  .hero-match-info { flex-direction: column; align-items: flex-start; gap: 12px; }
  .news-row { grid-template-columns: 1fr; }
  .news-row-photo { aspect-ratio: 16 / 9; }
  .rooster-footer .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .nav-wrap, .site-footer, .hero-actions, .upcoming-footer-link, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
