*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.5 var(--font); color: var(--text); background: var(--bg);
}
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-kop); font-weight: 700; letter-spacing: .01em; line-height: 1.15; }
h1 { font-size: 1.9rem; margin: 0 0 .75rem; }
h2 { font-size: 1.35rem; margin: 1.5rem 0 .6rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.zacht { color: var(--text-zacht); }
.klein { font-size: .875rem; }

/* kopbalk */
.kop { background: var(--mhc-groen); color: #fff; }
.kop-binnen { max-width: 1100px; margin: 0 auto; padding: .6rem 16px; display: flex; align-items: center; gap: .75rem; }
.merk { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.merk img { height: 38px; width: auto; }
.merk span { font-family: var(--font-kop); font-weight: 700; font-size: 1.3rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.merk small { display: block; font-size: .7rem; letter-spacing: .12em; opacity: .85; }
.nav { margin-left: auto; display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav button { color: #fff; text-decoration: none; padding: .4rem .65rem; border-radius: 6px; font-size: .95rem; background: none; border: 0; font: inherit; cursor: pointer; }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); }
.nav form { margin: 0; }
.mock-balk { background: #FFF4D6; color: #6B4E00; text-align: center; font-size: .8rem; padding: .25rem 16px; }

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 1.25rem 16px 2rem; }
main.smal { max-width: 640px; }

/* voet met Heltech-vermelding: subtiel */
.voet { text-align: center; padding: 1rem 16px 1.25rem; font-size: .75rem; color: var(--text-zacht); opacity: .75; }
.voet a { color: inherit; text-decoration: none; }
.voet a:hover { text-decoration: underline; }

/* kaarten en lijsten */
.kaart { background: var(--surface); border: 1px solid var(--rand); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--schaduw); }
.kaart + .kaart { margin-top: .75rem; }
.raster { display: grid; gap: .75rem; }
@media (min-width: 720px) { .raster-2 { grid-template-columns: 1fr 1fr; } .raster-3 { grid-template-columns: repeat(3, 1fr); } }
.lijst { list-style: none; margin: 0; padding: 0; }
.lijst > li { border-top: 1px solid var(--rand); }
.lijst > li:first-child { border-top: 0; }
.rij-link { display: flex; gap: .75rem; align-items: center; padding: .75rem .25rem; color: inherit; text-decoration: none; }
.rij-link:hover { background: var(--surface-2); }
.rij-link .groei { flex: 1; min-width: 0; }
.rij-link .titel { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leeg { padding: 1.25rem; text-align: center; color: var(--text-zacht); }

/* knoppen */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.1rem;
  border-radius: 8px; border: 1px solid var(--primary); background: var(--primary); color: var(--primary-tekst);
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer; }
.knop:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.knop.secundair { background: var(--surface); color: var(--primary); }
.knop.secundair:hover { background: var(--surface-2); }
.knop.klein { min-height: 34px; padding: .3rem .7rem; font-size: .875rem; }
.knop.gevaar { background: var(--surface); color: var(--hoog); border-color: var(--hoog); }
.knop.breed { width: 100%; }
.knoppen { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* snelle links */
.snelle-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.snelle-links a { flex: 1 1 140px; max-width: 260px; display: flex; flex-direction: column; justify-content: center; min-height: 56px;
  padding: .6rem .9rem; border-radius: 8px; background: var(--primary); color: #fff; text-decoration: none; }
.snelle-links a:hover { background: var(--primary-hover); }
.snelle-links strong { font-family: var(--font-kop); font-size: 1.2rem; letter-spacing: .03em; }
.snelle-links small { opacity: .85; font-size: .78rem; }

/* grote keuzetegels */
.tegel { display: block; padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 2px solid var(--rand); background: var(--surface);
  color: inherit; text-decoration: none; box-shadow: var(--schaduw); }
.tegel:hover { border-color: var(--primary); }
.tegel h3 { color: var(--primary); font-size: 1.35rem; }
.tegel p { margin: 0; color: var(--text-zacht); }

/* formulieren */
label { display: block; font-weight: 600; margin: 0 0 .3rem; }
.veld { margin-bottom: 1rem; }
.hint { font-weight: 400; color: var(--text-zacht); font-size: .85rem; }
input[type=text], input[type=email], input[type=url], input[type=search], input[type=date], select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--rand); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: 2px solid var(--mhc-groen-zacht); outline-offset: 0; }
.keuzes { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; padding: 0; margin: 0 0 1rem; }
.keuzes legend { font-weight: 600; margin-bottom: .3rem; padding: 0; }
.keuzes label { margin: 0; font-weight: 500; }
.keuzes input { position: absolute; opacity: 0; pointer-events: none; }
.keuzes span { display: inline-block; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--rand); background: var(--surface); cursor: pointer; }
.keuzes input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.keuzes input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.vinkje { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
.vinkje input { width: 20px; height: 20px; }

/* wedstrijdkaart */
.wedstrijd { border-left: 4px solid var(--primary); background: var(--surface-2); border-radius: 8px; padding: .7rem .9rem; }
.wedstrijd .teams { font-weight: 700; }
.wedstrijd .meta { color: var(--text-zacht); font-size: .9rem; }

/* labels */
.label { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.st-nieuw { color: var(--st-nieuw); background: var(--st-nieuw-bg); }
.st-in_behandeling { color: var(--st-bezig); background: var(--st-bezig-bg); }
.st-wacht_op_reactie { color: var(--st-wacht); background: var(--st-wacht-bg); }
.st-afgehandeld { color: var(--st-klaar); background: var(--st-klaar-bg); }
.st-niet_ontvankelijk { color: var(--st-afgewezen); background: var(--st-afgewezen-bg); }
.label.hoog { color: var(--hoog); background: var(--hoog-bg); }
.label.soort { color: var(--primary); background: var(--surface-2); }

/* tijdlijn */
.tijdlijn { list-style: none; margin: 0; padding: 0; }
.tijdlijn li { position: relative; padding: 0 0 1rem 1.25rem; border-left: 2px solid var(--rand); margin-left: .4rem; }
.tijdlijn li::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }
.tijdlijn li.intern::before { background: var(--st-bezig); }
.tijdlijn .wie { font-size: .85rem; color: var(--text-zacht); }
.tijdlijn .tekst { white-space: pre-wrap; overflow-wrap: anywhere; }
.tijdlijn li.intern .tekst { background: var(--st-bezig-bg); padding: .4rem .6rem; border-radius: 6px; }
.omschrijving { white-space: pre-wrap; overflow-wrap: anywhere; }

/* tabellen */
.tabel-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-zacht); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.klik { cursor: pointer; }
tr.klik:hover td { background: var(--surface-2); }

.filters { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: end; margin-bottom: 1rem; }
.filters label { font-size: .8rem; margin-bottom: .15rem; }
.tellers { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.teller { display: inline-block; background: var(--surface); border: 1px solid var(--rand); border-radius: 8px; padding: .5rem .8rem; text-decoration: none; color: inherit; }
.teller strong { display: block; font-family: var(--font-kop); font-size: 1.6rem; line-height: 1; color: var(--primary); }

.melding-ok { background: var(--st-klaar-bg); color: var(--st-klaar); border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.balk { height: 8px; border-radius: 4px; background: var(--primary); }
details summary { cursor: pointer; font-weight: 600; }
.bewerk-rij { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bewerk-rij { grid-template-columns: 120px 1fr 1fr 140px auto; align-items: center; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  .merk small { display: none; }
  .nav a, .nav button { padding: .35rem .45rem; font-size: .9rem; }
  .verberg-mobiel { display: none; }
  h1 { font-size: 1.6rem; }
}
