/* Palet op één plek. Nachtblauw en oranje; later te wijzigen. Geen groen, geen warm beige. */
:root {
  --nachtblauw: #0f1f3d;
  --nachtblauw-zacht: #1a315c;
  --oranje: #f28c28;
  --oranje-diep: #c86a10;
  --papier: #f5f7fb;
  --kaart: #ffffff;
  --inkt: #152033;
  --muted: #5c6b82;
  --lijn: #d5dce8;
  --leeg: #e6ebf3;
  --leeg-inkt: #4d5d74;
  --wit: #ffffff;
  --schaduw: 0 10px 28px color-mix(in srgb, var(--nachtblauw) 14%, transparent);
  --font: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  --font-titel: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
}

a { color: inherit; }

.overslaan {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--oranje);
  color: var(--nachtblauw);
  padding: 0.4rem 0.7rem;
  z-index: 2;
}

.overslaan:focus { top: 0.5rem; }

.top {
  background: var(--nachtblauw);
  color: var(--wit);
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: var(--schaduw);
}

.top-boven {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.85rem 1rem 0.4rem;
}

.merk {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-width: 9rem;
}

.merk-naam {
  font-family: var(--font-titel);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.merk-sub {
  color: color-mix(in srgb, var(--wit) 72%, var(--oranje));
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.zoek {
  display: flex;
  flex: 1 1 16rem;
  gap: 0.4rem;
}

.zoek input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font: inherit;
  background: var(--kaart);
  color: var(--inkt);
}

.zoek button,
.fase a,
.blok,
.leeftijden a {
  font: inherit;
}

.zoek button {
  border: 0;
  border-radius: 999px;
  background: var(--oranje);
  color: var(--nachtblauw);
  font-weight: 700;
  padding: 0.65rem 1rem;
  cursor: pointer;
}

.zoek button:hover { background: color-mix(in srgb, var(--oranje) 82%, var(--wit)); }

.leeftijden {
  display: flex;
  gap: 0.25rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.35rem 0.75rem 0.7rem;
  overflow-x: auto;
}

.leeftijden a {
  text-decoration: none;
  color: var(--wit);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.leeftijden a[aria-current="page"] {
  background: var(--oranje);
  color: var(--nachtblauw);
}

.leeftijden a:hover:not([aria-current="page"]) {
  background: var(--nachtblauw-zacht);
}

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
}

.voet {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.5rem 1rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--lijn);
}

.voet p { margin: 0.2rem 0; }

.kop h1 {
  font-family: var(--font-titel);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

.kop p,
.bron,
.legenda,
.leeg-tekst,
.terug {
  color: var(--muted);
}

.kop p { margin: 0.35rem 0 0; max-width: 40rem; }

.fase {
  display: flex;
  gap: 0.35rem;
  margin: 1rem 0 0.6rem;
}

.fase a {
  text-decoration: none;
  border: 1px solid var(--lijn);
  background: var(--kaart);
  color: var(--inkt);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.fase a[aria-current="page"] {
  background: var(--nachtblauw);
  color: var(--wit);
  border-color: var(--nachtblauw);
}

.legenda {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  margin: 0 0 1.1rem;
}

.stip {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.2rem;
  background: var(--leeg);
  display: inline-block;
}

.piramide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.laag {
  width: min(100%, 18rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.laag:nth-child(2) { width: min(100%, 26rem); }
.laag:nth-child(3) { width: min(100%, 38rem); }
.laag:nth-child(4) { width: min(100%, 50rem); }
.laag:nth-child(n + 5) { width: 100%; }

.laag h2 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.laag-regionaal h2 { color: var(--oranje-diep); }

.rij {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}

.blok {
  text-decoration: none;
  background: var(--nachtblauw);
  color: var(--wit);
  min-width: 4.4rem;
  min-height: 3.1rem;
  padding: 0.45rem 0.55rem 0.4rem;
  border-radius: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--nachtblauw) 35%, transparent);
}

.blok-label {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.blok-type {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--oranje);
}

.blok.leeg {
  background: var(--leeg);
  color: var(--leeg-inkt);
  box-shadow: none;
}

.blok.leeg .blok-type { color: var(--muted); }

.blok:hover {
  background: var(--oranje);
  color: var(--nachtblauw);
}

.blok:hover .blok-type { color: var(--nachtblauw); }

.blok:focus-visible,
.leeftijden a:focus-visible,
.fase a:focus-visible,
.zoek button:focus-visible,
.zoek input:focus-visible,
.teamlijst a:focus-visible,
.terug a:focus-visible {
  outline: 2px solid var(--oranje);
  outline-offset: 2px;
}

section { margin-top: 1.5rem; }

section h2,
.team-poule h2 {
  font-family: var(--font-titel);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.team-poule h3 {
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.bron { font-size: 0.85rem; margin: 0.4rem 0 0; }

.terug { margin: 0 0 0.4rem; }
.terug a { color: var(--oranje-diep); }

.tabel-wrap { overflow-x: auto; }

table.stand {
  width: 100%;
  border-collapse: collapse;
  background: var(--kaart);
  font-variant-numeric: tabular-nums;
  min-width: 36rem;
}

table.stand th,
table.stand td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--lijn);
}

table.stand th {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}

table.stand td.num,
table.stand th:not(:nth-child(2)) { text-align: right; }

table.stand tbody tr:first-child td:first-child { box-shadow: inset 3px 0 0 var(--oranje); }

table.stand .punten { font-weight: 700; }

.wedstrijden,
.teamlijst {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wedstrijden li,
.teamlijst li {
  background: var(--kaart);
  border: 1px solid var(--lijn);
  border-radius: 0.6rem;
  padding: 0.65rem 0.8rem;
}

.wedstrijden time {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.paar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  align-items: center;
}

.paar span:last-child { text-align: right; }

.score {
  font-weight: 700;
  background: var(--nachtblauw);
  color: var(--wit);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.eigen { color: var(--oranje-diep); font-weight: 700; }

.teamlijst h2 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.poule-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.poule-links a,
.team-poule h2 a {
  color: var(--oranje-diep);
}

.poule-links a {
  text-decoration: none;
  background: color-mix(in srgb, var(--oranje) 16%, var(--kaart));
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

@media (max-width: 40rem) {
  .top-boven { padding-inline: 0.75rem; }
  .merk-naam { font-size: 1.25rem; }
  .zoek { flex-basis: 100%; }
  .leeftijden { gap: 0; padding-inline: 0.35rem; }
  .leeftijden a { padding-inline: 0.48rem; letter-spacing: 0; }
  main { padding-inline: 0.75rem; }
  .voet { padding-inline: 0.75rem; }
  .paar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
  .paar span:last-child { text-align: left; }
  table.stand { min-width: 0; font-size: 0.82rem; }
  table.stand th:nth-child(3),
  table.stand td:nth-child(3),
  table.stand th:nth-child(7),
  table.stand td:nth-child(7) { display: none; }
}
