/* Sint Maarten & Sint Nicolaas comité — huisstijl van de flyers 2024/2025.
   Leisteenblauw als basis, fel geel als accent, witte tekst op donker, donkere tekst op geel.
   De Pietenkleuren zijn het feestelijke accent. Alleen systeemfonts, geen externe bestanden. */

:root {
  --leisteen: #32374d;
  --leisteen-donker: #262a3b;
  --leisteen-licht: #3e4460;
  --nacht: #111217;
  --geel: #ffd500;
  --geel-donker: #e6c000;
  --wit: #ffffff;
  --zacht: #d7dae6;
  --inkt: #1c1f2b;
  --fout: #ffb4a8;
  --fout-rand: #ff7a66;
  --goed: #7fe0a8;

  --piet-blauw: #4a90ff;
  --piet-groen: #34c77b;
  --piet-paars: #a56bf5;
  --piet-roze: #ff6fb1;
  --piet-oranje: #ff9a2e;
  --piet-turkoois: #1cc7c1;

  --font-label: "Bahnschrift", "DIN Alternate", "DIN Next", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-kop: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-tekst: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --breed: 70rem;
  --leesbreed: 42rem;
  --rand: clamp(1rem, 4vw, 2rem);
  --radius: 4px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--leisteen);
  color: var(--wit);
  font-family: var(--font-tekst);
  font-size: 1.125rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--geel); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--geel);
  outline-offset: 3px;
}
.band-geel :focus-visible, .label :focus-visible { outline-color: var(--inkt); }

h1, h2, h3 {
  font-family: var(--font-kop);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: 1.35rem; font-weight: 400; }

p { margin: 0 0 1em; }

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

.overslaan {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--geel); color: var(--inkt); padding: 0.6rem 1rem; font-weight: 600;
}
.overslaan:focus { top: 1rem; }

.binnen { width: min(100% - 2 * var(--rand), var(--breed)); margin-inline: auto; }
.lees { max-width: var(--leesbreed); }

/* ---------- kop en navigatie ---------- */

.kop { background: var(--leisteen-donker); border-bottom: 4px solid var(--geel); }
.kop .binnen {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-block: 0.75rem;
}
.woordmerk {
  font-family: var(--font-label); font-size: 1.15rem; font-weight: 600;
  color: var(--wit); text-decoration: none; line-height: 1.2;
}
.woordmerk span { color: var(--geel); }

.nav ul {
  display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.nav a {
  display: block; padding: 0.5rem 0.7rem; white-space: nowrap;
  font-family: var(--font-label); font-size: 1.05rem;
  color: var(--wit); text-decoration: none; border-radius: var(--radius);
}
.nav a:hover { background: var(--leisteen-licht); }
.nav a[aria-current="page"] { background: var(--geel); color: var(--inkt); }

@media (max-width: 40rem) {
  .kop .binnen { flex-direction: column; align-items: stretch; }
  .nav ul { margin-inline: calc(-1 * var(--rand)); padding-inline: var(--rand); }
}

/* ---------- gele labelblokken (zoals op de flyer) ---------- */

.label {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-family: var(--font-label); color: var(--inkt); line-height: 1.15;
}
.label > * {
  background: var(--geel); padding: 0.2em 0.45em; margin: 0;
  font-weight: 500;
}
.label .label-naam { font-size: clamp(1.35rem, 4.5vw, 2rem); }
.label .label-datum { font-size: clamp(1.1rem, 3.5vw, 1.5rem); }

/* ---------- hero: de diagonale tweedeling ---------- */

.hero {
  position: relative; overflow: hidden; background: var(--nacht);
  min-height: clamp(26rem, 80vh, 40rem);
}
.hero-beeld {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-labels {
  position: relative; height: 100%; min-height: inherit;
  display: grid; grid-template-rows: auto 1fr auto; padding-block: 1.5rem;
}
.hero-labels .label { text-decoration: none; }
.hero-labels .label:hover .label-naam { text-decoration: underline; }
.hero-sm { justify-self: end; }
.hero-pe { justify-self: start; align-self: end; }
/* Titel onder dezelfde hoek als de gele lijn in hero.svg (atan(516/1240) ≈ 22.6°). */
.hero h1 {
  grid-row: 2; align-self: center; justify-self: center; margin: 0;
  transform: rotate(-22.6deg); text-align: center;
  font-size: clamp(2.6rem, 11vw, 6rem); line-height: 1; white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.hero h1 span { display: block; }
.hero h1 span:first-child { margin-bottom: 0.32em; transform: translateX(-0.4em); }
.hero h1 span:last-child { transform: translateX(0.4em); }

/* ---------- blokken en kaarten ---------- */

.sectie { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.sectie-donker { background: var(--leisteen-donker); }
.sectie-nacht { background: var(--nacht); }

.activiteit {
  display: grid; gap: 1.25rem 2rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .activiteit { grid-template-columns: 3fr 2fr; }
}
.activiteit .illustratie { max-width: 22rem; width: 100%; justify-self: center; }
.activiteiten > * + * { margin-top: 3rem; }
.activiteit h3.label-naam { font-family: var(--font-label); font-weight: 500; line-height: 1.15; margin: 0; }

.feiten { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: 0.35rem; }
.feiten li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; }
.feiten .wat { color: var(--zacht); font-family: var(--font-label); }
.feiten .waarde { font-weight: 600; }

.compact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  padding: 1.25rem 1.5rem; background: var(--leisteen-licht); border-left: 6px solid var(--geel);
}
.compact h3 { margin: 0; }
.compact p { margin: 0; }
.compact .knop { margin-left: auto; }

.raster-2 { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .raster-2 { grid-template-columns: 1fr 1fr; } }

.melding {
  padding: 1rem 1.25rem; border-left: 6px solid var(--geel);
  background: var(--leisteen-licht); margin: 0 0 1.5rem;
}
.melding strong { color: var(--geel); }
.melding-fout { border-left-color: var(--fout-rand); }
.melding-fout strong { color: var(--fout); }

.placeholder { color: var(--geel); font-style: italic; }

.let-op { color: var(--geel); font-family: var(--font-label); font-weight: 600; }

/* ---------- gele band met schuine afsnijding (steunoproep) ---------- */

.band-geel {
  background: var(--geel); color: var(--inkt);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 70% 100%, 0 100%);
  padding-block: clamp(2.5rem, 7vw, 4rem) clamp(3.5rem, 9vw, 5.5rem);
}
.band-geel h2 { font-weight: 400; }
.band-geel a:not(.knop) { color: var(--inkt); }
.band-geel .knop { background: var(--leisteen); color: var(--wit); border-color: var(--leisteen); }
.band-geel .knop:hover { background: var(--inkt); }

/* ---------- knoppen ---------- */

.knop {
  display: inline-block; cursor: pointer;
  font: 600 1.1rem/1.2 var(--font-label);
  padding: 0.8rem 1.4rem; min-height: 3rem;
  background: var(--geel); color: var(--inkt);
  border: 2px solid var(--geel); border-radius: var(--radius);
  text-decoration: none; text-align: center;
}
.knop:hover { background: var(--geel-donker); border-color: var(--geel-donker); }
.knop-rand { background: transparent; color: var(--wit); border-color: var(--wit); }
.knop-rand:hover { background: var(--leisteen-licht); border-color: var(--wit); }
.knop:disabled, .knop[aria-disabled="true"] {
  cursor: not-allowed; background: #6b7090; border-color: #6b7090; color: #e8e9ef;
}
.knop-klein { font-size: 1rem; padding: 0.5rem 0.9rem; min-height: 2.5rem; }

/* ---------- formulieren ---------- */

.formulier { max-width: 40rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
legend {
  font-family: var(--font-kop); font-size: 1.35rem; font-weight: 400;
  padding: 0; margin-bottom: 0.75rem;
}
.veld { margin-bottom: 1.1rem; }
.veld label, .veld .veldlabel {
  display: block; font-weight: 600; margin-bottom: 0.3rem;
}
.veld .hint { display: block; font-weight: 400; color: var(--zacht); font-size: 0.95rem; }
.optioneel { font-weight: 400; color: var(--zacht); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="search"], select, textarea {
  width: 100%; font: inherit; color: var(--inkt); background: var(--wit);
  border: 2px solid #9aa0b8; border-radius: var(--radius);
  padding: 0.65rem 0.75rem; min-height: 3rem;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--geel); outline-offset: 1px; border-color: var(--inkt);
}
[aria-invalid="true"] { border-color: var(--fout-rand); box-shadow: 0 0 0 1px var(--fout-rand); }
.foutmelding { display: block; color: var(--fout); font-weight: 600; margin-top: 0.3rem; font-size: 1rem; }
.foutmelding:empty { display: none; }

.rij { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 30rem) {
  .rij-adres { grid-template-columns: 2fr 1fr; }
  .rij-kind  { grid-template-columns: 2fr 1fr; }
}

.kind {
  border: 2px solid var(--leisteen-licht); border-radius: var(--radius);
  padding: 1rem 1rem 0.25rem; margin-bottom: 1rem; background: var(--leisteen-donker);
}
.kind-kop { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.kind-kop h3 { margin: 0; font-size: 1.15rem; }
.knop-verwijder {
  background: transparent; color: var(--zacht); border: 1px solid var(--zacht);
  font: inherit; font-size: 0.95rem; padding: 0.3rem 0.7rem; border-radius: var(--radius); cursor: pointer;
}
.knop-verwijder:hover { color: var(--wit); border-color: var(--wit); }

.vinkje { display: flex; gap: 0.75rem; align-items: flex-start; }
.vinkje input { width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; flex: none; accent-color: var(--geel); }
.vinkje label { font-weight: 400; margin: 0; }

.honing { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.totaal {
  font-family: var(--font-label); font-size: 1.35rem;
  padding: 0.9rem 1.1rem; background: var(--leisteen-donker); border-left: 6px solid var(--geel);
  margin-bottom: 1.25rem;
}
.totaal strong { color: var(--geel); }
.verzend-status { margin-top: 0.75rem; color: var(--zacht); }

.bedragen { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.bedragen input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bedragen label {
  display: inline-block; cursor: pointer; margin: 0;
  font: 600 1.1rem/1 var(--font-label); padding: 0.85rem 1.2rem;
  border: 2px solid var(--wit); border-radius: var(--radius);
}
.bedragen input:checked + label { background: var(--geel); color: var(--inkt); border-color: var(--geel); }
.bedragen input:focus-visible + label { outline: 3px solid var(--geel); outline-offset: 3px; }

.pakketten { display: grid; gap: 0.75rem; }
.pakket {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.9rem 1rem; border: 2px solid var(--leisteen-licht); border-radius: var(--radius);
  background: var(--leisteen-donker);
}
.pakket input { width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; accent-color: var(--geel); flex: none; }
.pakket label { margin: 0; font-weight: 400; }
.pakket strong { display: block; }

/* ---------- Pieten, sponsors, voet ---------- */

.pieten { margin-inline: auto; width: min(100%, 44rem); }

.sponsors { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.sponsors li {
  background: var(--wit); border-radius: var(--radius); padding: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  width: 10rem; height: 6rem;
}
.sponsors img { max-height: 100%; width: auto; object-fit: contain; }
.sponsors a { display: contents; }

.voet {
  background: var(--nacht); color: var(--zacht); font-size: 1rem;
  padding-block: 2rem; border-top: 4px solid var(--geel);
}
.voet .binnen { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.voet p { margin: 0; }
.voet a { color: var(--wit); }

/* ---------- inhoudspagina's ---------- */

.paginakop { background: var(--leisteen-donker); padding-block: 2rem 1.5rem; }
.paginakop .label { margin-bottom: 1rem; }
.inhoud h2 { margin-top: 2.25rem; }
.inhoud h2:first-child { margin-top: 0; }
.inhoud ul { padding-left: 1.25rem; }
.inhoud li { margin-bottom: 0.35rem; }

.tijdlijn { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; }
.tijdlijn li {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: baseline;
  padding-left: 1rem; border-left: 4px solid var(--geel);
}
.tijdlijn .tijd { font-family: var(--font-label); font-size: 1.4rem; color: var(--geel); }

.route { background: var(--nacht); border-radius: var(--radius); padding: 1rem; }

.concept {
  background: var(--geel); color: var(--inkt); padding: 0.75rem 1rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
