/* allesovertafeltennis.nl, huisstijl D: creme, donkerblauw, rood accent. Koppen Outfit, tekst DM Sans. */
:root {
  --cream: #f7f4ee;
  --paper: #ffffff;
  --line: #ddd6c8;
  --navy-deep: #0c2c62;
  --navy: #123f8a;
  --ink: #10233f;
  --muted: #55617a;
  --red: #e0362f;
  --red-dark: #b8241e;
  --red-soft: #ff8f88;
  --blue-soft: #d6e0f5;
  --blue-tint: #e4ebf7;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 64px);
  --head: 'Outfit', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid transparent; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-deep); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--cream); color: var(--red-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: var(--navy-deep); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; white-space: nowrap; }
.logo:hover { color: #fff; }
.logo em { font-style: normal; color: var(--red-soft); }
.logo-ball { width: 28px; height: 28px; border-radius: 50%; background: var(--red); border: 5px solid #fff; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav ul a:hover, .main-nav ul a[aria-current] { border-bottom-color: var(--red); color: #fff; }
.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; min-height: 44px; padding: 0 14px; font: 600 15px var(--body); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-deep); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; border-top: 1px solid rgba(255,255,255,.12); }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 17px; }
  .main-nav ul a[aria-current] { color: var(--red-soft); border-bottom-color: rgba(255,255,255,.12); }
  .nav-cta { margin-top: 18px; }
}
@media (max-width: 420px) { .logo { font-size: 18px; } .nav-toggle-label { display: none; } }

/* Hero homepage */
.hero { background: var(--navy-deep); color: #fff; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 560px; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 64px var(--gutter) 120px; max-width: 640px; margin-left: auto; }
.hero h1 { color: #fff; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.06; }
.hero .eyebrow { color: var(--red-soft); }
.hero p { font-size: 18px; color: var(--blue-soft); max-width: 520px; }
.hero-img { position: relative; min-height: 320px; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { order: -1; min-height: 260px; }
  .hero-text { padding: 36px var(--gutter) 100px; max-width: none; margin: 0; }
}

/* Wat zoek je */
.finder { position: relative; margin-top: -72px; }
.finder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); box-shadow: 0 24px 48px rgba(12,44,98,.18); }
.finder-grid a { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--paper); color: var(--ink); text-decoration: none; min-height: 150px; }
.finder-grid a:hover { background: var(--cream); }
.finder-grid .tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.finder-grid strong { font-family: var(--head); font-weight: 600; font-size: 20px; line-height: 1.2; }
.finder-grid span:last-child { font-size: 14px; line-height: 1.45; color: var(--muted); }
.finder-grid a.featured { background: var(--navy); color: #fff; }
.finder-grid a.featured .tag { color: var(--red-soft); }
.finder-grid a.featured span:last-child { color: var(--blue-soft); }
.finder-grid a.featured:hover { background: var(--navy-deep); }
@media (max-width: 900px) { .finder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .finder-grid { grid-template-columns: 1fr; } .finder-grid a { min-height: 0; } }

/* Secties */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-white { background: var(--paper); }
.section-navy { background: var(--navy-deep); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }

/* Categorierijen */
.cat-row { display: grid; grid-template-columns: 260px minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); }
.cat-row:last-child { border-bottom: 1px solid var(--line); }
.cat-row img { width: 100%; aspect-ratio: 26 / 17; object-fit: cover; }
.cat-row h3 { margin: 0 0 6px; font-size: 26px; }
.cat-row h3 a { color: var(--navy); text-decoration: none; }
.cat-row h3 a:hover { color: var(--red); }
.cat-row p { margin: 0; color: var(--muted); font-size: 15px; }
.link-list { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.link-list a::after { content: "\2192"; color: var(--red); }
.link-list a:hover { border-color: var(--navy); color: var(--navy); }
.link-list .soon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 15px; }
.link-list .soon::after { content: "binnenkort"; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 960px) { .cat-row { grid-template-columns: 200px minmax(0, 1fr); } .cat-row .link-list { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cat-row { grid-template-columns: 1fr; gap: 16px; } }

/* Fotoband */
.band { display: grid; grid-template-columns: minmax(0, 1fr) 440px; min-height: 380px; }
.band-img { position: relative; min-height: 260px; }
.band-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-text { background: var(--red); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.band-text .eyebrow { color: #ffd6d3; margin: 0; }
.band-text h2 { color: #fff; font-size: clamp(26px, 2.6vw, 32px); margin: 0; }
.band-text p { margin: 0; color: #fff; }
.band-text .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } .band-text { padding: 32px var(--gutter); } }

/* Spelregels kort */
.rules { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; }
.rules-card { background: var(--navy); color: #fff; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.rules-card .eyebrow { color: var(--red-soft); margin: 0; }
.rules-card h2 { color: #fff; font-size: clamp(26px, 2.6vw, 32px); margin: 0; }
.rules-card p { margin: 0; color: var(--blue-soft); font-size: 15px; }
.rules-card .btn { margin-top: 6px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card-grid a, .card-grid .card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.card-grid a:hover { border-color: var(--navy); }
.card-grid strong { font-weight: 600; font-size: 17px; }
.card-grid span { font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 960px) { .rules { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

/* Erfgoed */
.heritage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--navy-deep); color: #fff; min-height: 460px; }
.heritage-img { position: relative; min-height: 280px; }
.heritage-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.heritage-img figcaption { position: absolute; left: 0; bottom: 0; background: rgba(12,44,98,.85); color: var(--blue-soft); font-size: 12px; padding: 6px 12px; }
.heritage-text { padding: 56px var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 16px; max-width: 640px; }
.heritage-text .eyebrow { color: var(--red-soft); margin: 0; }
.heritage-text h2 { color: #fff; margin: 0; }
.heritage-text p { color: var(--blue-soft); margin: 0; }
@media (max-width: 860px) { .heritage { grid-template-columns: 1fr; } }

/* Tijdlijn */
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.timeline li { background: var(--paper); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.timeline b { font-family: var(--head); font-weight: 700; font-size: 30px; color: var(--red); line-height: 1; }
.timeline span { font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 960px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

/* Paginakop binnenpagina's */
.page-head { background: var(--navy-deep); color: #fff; padding: 56px 0 48px; }
.page-head h1 { color: #fff; margin-bottom: 14px; max-width: 900px; }
.page-head p { color: var(--blue-soft); font-size: 19px; max-width: 760px; margin: 0; }
.page-head .eyebrow { color: var(--red-soft); }
.crumbs { font-size: 14px; margin: 0 0 24px; color: var(--blue-soft); }
.crumbs a { color: var(--blue-soft); }
.crumbs a:hover { color: #fff; }
.page-head-img { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; }
.page-head-img .page-head-text { padding: 56px var(--gutter) 48px; max-width: 660px; margin-left: auto; }
.page-head-img .page-head-photo { position: relative; min-height: 280px; }
.page-head-img .page-head-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-head-img { grid-template-columns: 1fr; } .page-head-img .page-head-photo { order: -1; min-height: 220px; } .page-head-img .page-head-text { max-width: none; margin: 0; } }

/* Artikel */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 56px; padding-bottom: 80px; }
.prose { max-width: 740px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(26px, 3vw, 34px); }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.answer { background: var(--paper); border-left: 0; border-top: 4px solid var(--red); padding: 22px 24px; margin: 0 0 32px; font-size: 18px; }
.answer p:last-child { margin: 0; }
.answer-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 8px; }
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--head); font-weight: 600; color: var(--navy); background: var(--blue-tint); }
tr:last-child td { border-bottom: 0; }
.note { background: var(--blue-tint); padding: 16px 20px; font-size: 15px; margin: 0 0 1.4em; }
.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }
.sources ul { padding-left: 1.1em; }
.meta-line { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; align-self: start; }
.aside-box { background: var(--paper); border: 1px solid var(--line); padding: 22px; }
.aside-box h2 { font-size: 18px; margin: 0 0 12px; color: var(--ink); }
.aside-box ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.aside-box li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.aside-box li:last-child { border: 0; }
.aside-box a { text-decoration: none; }
.aside-cta { background: var(--navy); color: #fff; padding: 22px; }
.aside-cta p { color: var(--blue-soft); font-size: 15px; }
.aside-cta h2 { color: #fff; font-size: 18px; }
figure { margin: 0 0 1.4em; }
figure img { width: 100%; }
figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }
@media (max-width: 960px) { .article { grid-template-columns: minmax(0, 1fr); gap: 32px; } .aside { position: static; } }

/* Hub-lijsten */
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.hub-card:hover { border-color: var(--navy); }
.hub-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hub-card div { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.hub-card strong { font-family: var(--head); font-weight: 600; font-size: 20px; color: var(--navy); line-height: 1.2; }
.hub-card span { font-size: 15px; color: var(--muted); }
.hub-card .status { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); font-weight: 600; }
@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hub-grid { grid-template-columns: 1fr; } }
.topic-list { columns: 2; column-gap: 40px; list-style: none; padding: 0; margin: 0; }
.topic-list li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.topic-list .soon-tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) { .topic-list { columns: 1; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--blue-soft); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red-soft); }
.footer-about p { margin: 16px 0 0; max-width: 420px; }
.footer-about p a { text-decoration: underline; }
.footer-title { font-family: var(--head); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red-soft); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 28px; font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Du Buy-foto: tekst op de tafelrand en de speler in beeld houden */
.photo-dubuy img { object-position: 45% 60%; }
.page-head-photo.photo-dubuy img { object-position: 50% 15%; }

/* Veelgestelde vragen */
.faq { border-top: 2px solid var(--line, #d9d3c7); margin-top: 1rem; }
.faq h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.faq p { margin: 0 0 1rem; }
