/* Nooit Volleerd Laakdal – statische site. Clubkleuren: donkerblauw (27,31,35), rood en wit van het logo. */
:root {
  --ink: #1b1f23;
  --paper: #f6f7f4;
  --card: #ffffff;
  --line: #d9dcd3;
  --muted: #566070;
  --gold: #f2c230;
  --red: #ff0000; /* rood van het logo, voor accenten */
  --red-strong: #d10000; /* voor knoppen en tekst: voldoende contrast met wit */
  --link: #b00000;
  --blue-dark: #b00000;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main { flex: 1 0 auto; }
.site-header, .site-footer { flex: none; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }
.prose { padding-block: 2.5rem 3.5rem; }
.prose > h1, .prose > article > h1, article.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 .75rem; }
.prose h2 { font-size: 1.4rem; line-height: 1.25; margin: 2.2rem 0 .75rem; }
.prose h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
.prose p, .prose ul.dates, .prose dl.facts { max-width: 42rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.meta { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.crumb { margin: 0 0 1.25rem; font-size: .95rem; }

/* Header */
.site-header { background: var(--ink); color: #fff; border-bottom: 4px solid var(--red); }
.site-header .bar { width: min(100% - 2rem, 62rem); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .75rem; }
.brand { display: inline-flex; }
.brand img { display: block; width: auto; height: 56px; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .25rem; }
.site-header nav li { position: relative; }
.site-header nav a { color: #fff; text-decoration: none; display: block; padding: .5rem .85rem; border-radius: 6px; }
.site-header nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-header nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
.site-header nav li > ul { display: none; }
@media (min-width: 52rem) {
  .site-header nav li > ul { position: absolute; left: 0; top: 100%; z-index: 5; min-width: 15rem; flex-direction: column; flex-wrap: nowrap; background: var(--ink); border: 1px solid #3a4150; border-radius: 8px; padding: .35rem; }
  .site-header nav li:hover > ul, .site-header nav li:focus-within > ul { display: flex; }
}
@media (max-width: 51.99rem) {
  .site-header nav { width: 100%; }
  .site-header nav > ul { flex-direction: column; }
  .site-header nav li > ul { display: block; padding-left: 1rem; }
  .site-header nav li > ul a { font-size: .95rem; color: #d6dbe5; padding-block: .3rem; }
}

/* Hero */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; padding-block: 3rem 3.5rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 1rem; letter-spacing: -0.01em; }
.hero-sub { font-size: 1.25rem; color: #d6dbe5; max-width: 30rem; margin: 0 0 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.target { width: min(100%, 22rem); justify-self: end; transform: translateX(12%); filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .45)); }
@media (max-width: 44rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .target { width: 13rem; justify-self: start; transform: none; order: -1; }
}

/* Knoppen */
.button { display: inline-block; background: var(--red-strong); color: #fff; font-weight: 650; text-decoration: none; padding: .7rem 1.2rem; border-radius: 8px; border: 2px solid var(--red-strong); }
.button:hover { background: #fff; border-color: #fff; color: var(--ink); }
.button.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.button.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.prose .button { background: var(--red-strong); color: #fff; border-color: var(--red-strong); }
.prose .button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Tegels */
.trio, .duo { display: grid; gap: 1rem; margin-block: 1.25rem; }
.trio { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.duo { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.tile { display: block; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--radius); padding: 1.1rem 1.25rem; color: var(--ink); text-decoration: none; }
a.tile:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.tile h2, .tile h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.tile p { margin: 0; color: var(--muted); }
.tile.plain h2 { margin-top: 0; }

/* Nieuws */
.posts { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: .25rem; max-width: 46rem; }
.posts li { padding: 1rem 0; border-top: 1px solid var(--line); }
.posts li:first-child { border-top: 0; }
.posts h3 { font-size: 1.15rem; }
.posts h3 a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.posts h3 a:hover { color: var(--ink); }
.posts p { margin: 0 0 .25rem; }

/* Resultaten */
.results { border-collapse: collapse; width: 100%; max-width: 42rem; margin: 1.25rem 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.results th, .results td { text-align: left; padding: .55rem .9rem; border-bottom: 1px solid var(--line); }
.results thead th { background: var(--ink); color: #fff; font-weight: 600; }
.results tbody th { font-weight: 600; width: 9rem; }
.results tr:last-child th, .results tr:last-child td { border-bottom: 0; }
.results td.gold { box-shadow: inset 5px 0 var(--gold); font-weight: 650; }
.results td.silver { box-shadow: inset 5px 0 #aab1bc; font-weight: 650; }
.results td.bronze { box-shadow: inset 5px 0 #b87333; font-weight: 650; }
.teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.teams section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.teams h3 { margin-bottom: .4rem; }
.teams ul { margin: 0; padding-left: 1.1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.gallery img { width: 100%; height: 14rem; object-fit: cover; border-radius: var(--radius); display: block; }

/* Contentblokken */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin: 1rem 0 1.5rem; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .9rem; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-size: 1.25rem; font-weight: 650; }
.notice { background: #fbeaea; border-left: 6px solid var(--red); padding: .7rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.dates { padding-left: 1.2rem; }
.dates li.past { color: var(--muted); text-decoration: line-through; }
.people { margin: 0; }
.people div { padding: .45rem 0; border-top: 1px solid var(--line); }
.people div:first-child { border-top: 0; }
.people dt { font-weight: 650; }
.people dd { margin: 0; color: var(--muted); }
.map { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
iframe.map { display: block; height: 22rem; background: #e8eaee; }
.map-note { margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }
address { font-style: normal; margin-bottom: 1rem; }
.links { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.links a { display: flex; flex-direction: column; gap: .5rem; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.links a:hover { border-color: var(--ink); }
.links img { display: block; max-height: 4.5rem; width: auto; max-width: 100%; object-fit: contain; align-self: flex-start; }
.docs li { margin: .5rem 0; }

/* Footer */
.site-footer { background: var(--ink); color: #d6dbe5; border-top: 4px solid var(--red); padding-block: 1.75rem; }
.site-footer p { margin: .15rem 0; }
.site-footer a { color: #fff; }
.site-footer .small { color: #9aa3b2; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Startpagina en mededelingen */
.home section { margin-block: 0 2.25rem; }
.home section > h2:first-child { margin-top: 0; }
.facts.big { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: none; }
.facts.big dd { font-size: 1.3rem; line-height: 1.3; }
.facts.big div { border-left: 6px solid var(--red); }
.mededelingen { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--radius); padding: .25rem 1.25rem 1rem; max-width: 46rem; }
.mededelingen ul { margin: 0; padding-left: 1.1rem; }
.mededelingen .when { font-weight: 650; }
.hero .button { margin: 0; }

.facts.big .sub { display: block; font-size: 1rem; font-weight: 400; color: var(--muted); }
.facts.big dd { overflow-wrap: anywhere; }
