/* AMCA — Auto Modelbouw Club Apeldoorn
   Ontwerp: zie AMCA-CLAUDE-SPECS.md. "Zacht maar stoer": nachtblauw + wit, rood alleen als accent. */

/* ---- Fonts (lokaal, latin + latin-ext) ---------------------------------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/playfair-display-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --amca-navy: #0B1420;
  --amca-navy-2: #121F2E;
  --amca-red: #D72632;
  --amca-red-dark: #BF1F2A;
  --amca-white: #FFFFFF;
  --amca-light: #F4F6F7;
  --amca-text: #182330;
  --amca-muted: #6B7280;
  --amca-border: #DDE2E6;
  --shade: 6, 17, 29;

  /* Eén container voor alles: max. 1320 px inhoud, gecentreerd, zelfde marge links en rechts. */
  --wrap: 1320px;
  --gutter: clamp(24px, 5vw, 96px);
  --radius: 10px;
  --bg-max: 1920px; /* foto-achtergronden nooit breder; daarbuiten effen navy */
  --bg-fade: 160px;
  --header-h: 112px;
  --ease: 200ms ease;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- Basis --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* html navy: onder de footer (korte pagina's, overscroll) is nooit iets anders zichtbaar dan effen nachtblauw */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--amca-navy); }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: var(--amca-text); background: var(--amca-white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.2; font-variant-numeric: lining-nums; }
.date-day { font-variant-numeric: lining-nums; }
ul.plain { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--amca-muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: var(--amca-navy); padding: 10px 16px; border-radius: 7px; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--amca-red); outline-offset: 3px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 14px; height: 14px; }
.icon-red { color: var(--amca-red); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 7px; padding: 14px 22px; font: 600 15px/1.2 var(--sans);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--ease), background-color var(--ease), border-color var(--ease), opacity var(--ease);
}
.btn .icon { width: 14px; height: 14px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amca-red); color: #fff; }
.btn-primary:hover { background: var(--amca-red-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .72); }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--amca-red); font-weight: 600; font-size: 15px; transition: gap var(--ease); }
.link-arrow .icon { width: 16px; height: 16px; }
a.link-arrow:hover, a:hover > .link-arrow, .news-card:hover .link-arrow { gap: 11px; }
.link-arrow.on-dark { color: #fff; }
.link-arrow.on-dark .icon { color: var(--amca-red); }

.accent-line { display: block; width: 52px; height: 2px; background: var(--amca-red); }

/* ---- Header -------------------------------------------------------------- */
.site-header { position: relative; z-index: 40; background: var(--amca-navy); color: #fff; }
.site-header--overlay { position: absolute; inset: 0 0 auto 0; background: transparent; }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { flex: none; display: block; }
.logo img { width: 184px; height: auto; }
.nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.nav-list { display: flex; gap: clamp(20px, 2.3vw, 44px); list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; position: relative; padding: 10px 0; font-size: 15.5px; font-weight: 500; white-space: nowrap; opacity: .92; transition: opacity var(--ease); }
.nav-list a:hover { opacity: 1; }
.nav-list a.active { opacity: 1; }
.nav-list a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amca-red); }
.nav-extra { display: none; }
.header-actions { flex: none; margin-left: auto; display: flex; align-items: center; gap: 18px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 7px; background: none; color: inherit; cursor: pointer; transition: background-color var(--ease); }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.btn-cal { padding: 13px 20px; }
.btn-cal .icon { width: 18px; height: 18px; }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }

/* Taalschakelaar */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 8px; border-radius: 7px; cursor: pointer; font-size: 14.5px; font-weight: 600; letter-spacing: .04em; transition: background-color var(--ease); }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { background: rgba(255, 255, 255, .08); }
.lang-switch[open] summary .icon { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--amca-text); border: 1px solid var(--amca-border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(var(--shade), .18); }
.lang-menu a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 6px; font-size: 15px; }
.lang-menu a:hover { background: var(--amca-light); }
.lang-menu a[aria-current] { font-weight: 600; }
.lang-menu a[aria-current] .lang-code { color: var(--amca-red); }
.lang-code { display: inline-block; width: 24px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--amca-muted); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 640px; background: var(--amca-navy); color: #fff; }
/* Foto en verloop max. --bg-max breed, gecentreerd (left/right 0 + margin auto) */
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; max-width: var(--bg-max); height: 100%; margin: 0 auto; object-fit: cover; }
/* Uitsnede (links/midden/rechts, instelbaar per slot). De hero ligt iets hoger (30%): bij een
   16:9-foto valt het onderste asfalt weg en blijven de auto's in beeld, zoals in de mockup. */
.focus-left .hero-img, .focus-left .page-hero-img, .focus-left .next-img { object-position: 22% 50%; }
.focus-center .hero-img, .focus-center .page-hero-img, .focus-center .next-img { object-position: 50% 50%; }
.focus-right .hero-img, .focus-right .page-hero-img, .focus-right .next-img { object-position: 72% 50%; }
.focus-left .hero-img { object-position: 22% 30%; }
.focus-center .hero-img { object-position: 50% 30%; }
.focus-right .hero-img { object-position: 72% 30%; }
.hero-shade { position: absolute; inset: 0; z-index: -1; max-width: var(--bg-max); margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(var(--shade), .55) 0, rgba(var(--shade), 0) 190px),
    linear-gradient(90deg, rgba(var(--shade), .98) 0%, rgba(var(--shade), .90) 30%, rgba(var(--shade), .40) 58%, rgba(var(--shade), .05) 82%);
}
.hero-content { padding-top: calc(var(--header-h) + 44px); padding-bottom: 72px; }
.hero-content > * { max-width: 660px; }
.eyebrow { margin: 0 0 6px; font-size: 13.5px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; }
.hero-heading { margin: 0; font-family: var(--serif); }
.hero-title { display: block; font-size: clamp(56px, 6vw, 92px); font-weight: 700; line-height: 1; letter-spacing: .01em; }
.hero-sub { display: block; margin-top: 6px; font-size: clamp(24px, 2.35vw, 38px); font-weight: 400; line-height: 1.15; }
.hero .accent-line { margin: 22px 0 22px; }
.hero-intro { font-size: 19px; line-height: 1.55; max-width: 25em; color: rgba(255, 255, 255, .92); margin-bottom: 30px; }

/* Rechter randvervaging (1141–1920 px), afgestemd op hero-racecars.png: de blauwe auto eindigt 61 bronpx
   (47–70 css px) voor de rand. Bij --edge-fade = clamp(80px, 6vw, 120px) ligt die op ±40% van de vervaging;
   de eerste 45% is volledig transparant, dus alleen asfalt en de rood-witte curb in de buitenste strook lopen weg. */
:root { --edge-fade: clamp(80px, 6vw, 120px); }
@media (min-width: 1141px) and (max-width: 1920px) {
  .hero::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: var(--edge-fade); z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(11, 20, 32, 0) 0%, rgba(11, 20, 32, 0) 45%, rgba(11, 20, 32, .12) 60%, rgba(11, 20, 32, .55) 80%, var(--amca-navy) 100%); }
}

/* Brede schermen: zachte overgang van de foto naar het effen navy eromheen (geen harde rand) */
@media (min-width: 1921px) {
  .hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; max-width: var(--bg-max); margin: 0 auto; pointer-events: none;
    background: linear-gradient(90deg, var(--amca-navy) 0, rgba(11, 20, 32, 0) var(--bg-fade), rgba(11, 20, 32, 0) calc(100% - var(--bg-fade)), var(--amca-navy) 100%); }
}

/* ---- Snelle ingangen ------------------------------------------------------ */
.quick { background: var(--amca-light); border-bottom: 1px solid var(--amca-border); }
.quick-grid { --quick-gap: clamp(28px, 3.4vw, 48px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--quick-gap); }
.quick-item { display: flex; flex-direction: column; gap: 16px; padding: 26px 0; position: relative; }
/* scheidingslijn midden in de tussenruimte */
.quick-item + .quick-item::before { content: ""; position: absolute; left: calc(var(--quick-gap) / -2); top: 26px; bottom: 26px; width: 1px; background: var(--amca-border); }
.quick-item:hover .quick-title { color: var(--amca-red-dark); }
.quick-title { transition: color var(--ease); }
.quick-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.quick-icon { width: 30px; height: 30px; margin-bottom: 12px; }
.quick-title { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.quick-text p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: #3B4652; }
.quick-arrow { width: 18px; height: 18px; margin-top: auto; transition: transform var(--ease); }
.quick-item:hover .quick-arrow { transform: translateX(4px); }
.quick-media { order: -1; }
.quick-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 1360px) {
  .quick-item { flex-direction: row; align-items: stretch; gap: 18px; }
  .quick-text p { font-size: 14px; }
  .quick-media { order: 0; flex: 0 0 41%; }
  .quick-media { align-self: center; }
  .quick-img { aspect-ratio: 8 / 7; }
}

/* ---- Eerstvolgende wedstrijd --------------------------------------------- */
.next-race { position: relative; isolation: isolate; overflow: hidden; background: var(--amca-navy); color: #fff; min-height: 360px; display: flex; align-items: center; }
.next-media { position: absolute; top: 0; bottom: 0; z-index: -2;
  left: calc(max(0px, (100% - var(--bg-max)) / 2) + min(100%, var(--bg-max)) * .32);
  right: max(0px, (100% - var(--bg-max)) / 2); }
.next-img { width: 100%; height: 100%; object-fit: cover; }
.next-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--amca-navy) 0%, rgba(11, 20, 32, .82) 16%, rgba(11, 20, 32, .25) 50%, rgba(11, 20, 32, .05) 100%); }
@media (min-width: 1141px) and (max-width: 1920px) {
  .next-media::after { background:
    linear-gradient(270deg, var(--amca-navy) 0, rgba(11, 20, 32, .55) calc(var(--edge-fade) * .2), rgba(11, 20, 32, .12) calc(var(--edge-fade) * .4), rgba(11, 20, 32, 0) calc(var(--edge-fade) * .55)),
    linear-gradient(90deg, var(--amca-navy) 0%, rgba(11, 20, 32, .82) 16%, rgba(11, 20, 32, .25) 50%, rgba(11, 20, 32, .05) 100%); }
}
@media (min-width: 1921px) {
  .next-media::after { background:
    linear-gradient(270deg, var(--amca-navy) 0, rgba(11, 20, 32, 0) var(--bg-fade)),
    linear-gradient(90deg, var(--amca-navy) 0%, rgba(11, 20, 32, .82) 16%, rgba(11, 20, 32, .25) 50%, rgba(11, 20, 32, .05) 100%); }
}
.next-inner { padding-top: 56px; padding-bottom: 64px; }
.section-title { margin: 0 0 36px; font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.2; }
.section-title::after { content: ""; display: block; width: 52px; height: 2px; margin-top: 14px; background: var(--amca-red); }
.next-race .section-title { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 26px; }
.next-body { display: flex; align-items: center; gap: 32px; max-width: 760px; }
.date-block { flex: none; display: flex; flex-direction: column; align-items: center; width: 92px; padding: 12px 8px 10px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 6px; text-transform: uppercase; line-height: 1.1; }
.date-wd, .date-mon { font-size: 13.5px; font-weight: 600; letter-spacing: .1em; }
.date-day { margin: 4px 0; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; }
.next-info { min-width: 0; }
.next-name { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(21px, 1.9vw, 25px); font-weight: 600; }
.meta-list { list-style: none; margin: 0; padding: 0; font-size: 15px; color: rgba(255, 255, 255, .88); }
.meta-list li { display: flex; align-items: center; gap: 9px; margin-top: 6px; }
.meta-list .icon { width: 16px; height: 16px; color: rgba(255, 255, 255, .9); }
.next-actions { flex: none; margin-left: 16px; }
.next-body--empty { gap: 40px; }
.next-empty-text { margin: 0; max-width: 30em; color: rgba(255, 255, 255, .85); font-size: 16px; }
.badge { display: inline-block; margin-bottom: 8px; padding: 3px 9px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.badge-geannuleerd { background: var(--amca-red); border-color: var(--amca-red); }

/* ---- Secties ------------------------------------------------------------- */
.section { padding: 88px 0; }
.section--light { background: var(--amca-light); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head .section-title { margin: 0; }
.section-head--small { align-items: center; margin-bottom: 24px; }
.label-title { margin: 0; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--amca-muted); }

/* Nieuws */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.news-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--amca-border); border-radius: var(--radius); overflow: hidden; transition: transform var(--ease), border-color var(--ease); }
.news-card:hover { transform: translateY(-2px); border-color: #C5CDD4; }
.news-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 26px 28px 28px; }
.news-body time { font-size: 13px; font-weight: 500; letter-spacing: .03em; color: var(--amca-muted); }
.card-title { margin: 8px 0 10px; font-family: var(--serif); font-size: clamp(21px, 1.8vw, 24px); font-weight: 600; line-height: 1.25; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.news-body p { color: #3B4652; font-size: 16px; margin-bottom: 18px; }
.news-body .link-arrow { margin-top: auto; }

/* Sponsorstrip */
.sponsor-strip { padding: 64px 0 72px; }
/* Horizontale scrollstrip: er passen altijd hele tegels in beeld (--n per rij), met fade + pijlen aan de kant waar meer staat */
.sponsor-scroller { --n: 7; --gap: 16px; position: relative; }
.sponsor-row { list-style: none; margin: 0; padding: 2px 0 14px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--amca-border) transparent; }
.sponsor-scroller.fade-right .sponsor-row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 96px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 96px), transparent); }
.sponsor-scroller.fade-left .sponsor-row { -webkit-mask-image: linear-gradient(90deg, transparent, #000 96px); mask-image: linear-gradient(90deg, transparent, #000 96px); }
.sponsor-scroller.fade-left.fade-right .sponsor-row { -webkit-mask-image: linear-gradient(90deg, transparent, #000 96px, #000 calc(100% - 96px), transparent); mask-image: linear-gradient(90deg, transparent, #000 96px, #000 calc(100% - 96px), transparent); }
.sponsor-nav { display: inline-flex; gap: 8px; }
.sponsor-nav .icon-btn { border: 1px solid var(--amca-border); color: var(--amca-text); background: #fff; }
.sponsor-nav .icon-btn:hover { background: var(--amca-light); }
.sponsor-nav .icon-btn[disabled] { opacity: .35; cursor: default; }
.sponsor-nav .icon-btn .icon { width: 18px; height: 18px; }
.sponsor-prev .icon { transform: scaleX(-1); }
.section-head-actions { display: inline-flex; align-items: center; gap: 22px; }
.sponsor-row::-webkit-scrollbar { height: 6px; }
.sponsor-row::-webkit-scrollbar-thumb { background: var(--amca-border); border-radius: 3px; }
.sponsor-tile { display: flex; align-items: center; justify-content: center; height: 100px; padding: 14px 16px; min-width: 0; background: #fff; border: 1px solid var(--amca-border); border-radius: var(--radius); scroll-snap-align: start; transition: border-color var(--ease), transform var(--ease); }
a.sponsor-tile:hover { border-color: #C5CDD4; transform: translateY(-1px); }
.sponsor-tile img { width: auto; height: auto; max-width: 100%; max-height: 68px; object-fit: contain; }
.sponsor-name { font-weight: 600; font-size: 15px; text-align: center; line-height: 1.3; }

/* ---- Subpagina's ---------------------------------------------------------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 320px; background: var(--amca-navy); color: #fff; }
.page-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; max-width: var(--bg-max); height: 100%; margin: 0 auto; object-fit: cover; }
.page-hero-shade { position: absolute; inset: 0; z-index: -1; max-width: var(--bg-max); margin: 0 auto; background: linear-gradient(90deg, rgba(var(--shade), .97) 0%, rgba(var(--shade), .88) 35%, rgba(var(--shade), .45) 65%, rgba(var(--shade), .2) 100%); }
.page-hero-content { padding-top: 72px; padding-bottom: 56px; }
.page-title { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; }
.page-hero .accent-line { margin-top: 18px; }
.page-intro { margin: 18px 0 0; max-width: 34em; font-size: 18px; color: rgba(255, 255, 255, .9); }
.prose { max-width: 780px; }
.prose p { font-size: 17.5px; }
.prose-figure { margin: 0 0 28px; }
.prose-figure img { border-radius: var(--radius); }

/* ---- Inhoudspagina's: bouwstenen ----------------------------------------- */
.section--tight { padding: 64px 0; }
.section--tabs { padding-top: 56px; }
.small { font-size: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--media { align-items: center; }
.sub-title { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); font-weight: 600; }
.empty-note { padding: 22px 24px; background: var(--amca-light); border-radius: var(--radius); color: #3B4652; }
.section--light .empty-note { background: #fff; border: 1px solid var(--amca-border); }
.note-leading { margin: 28px 0 0; padding-left: 14px; border-left: 2px solid var(--amca-red); font-size: 14px; color: var(--amca-muted); }
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { margin-top: 10px; font-size: 14px; color: var(--amca-muted); }

/* Kerncijfers */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.stats li { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--amca-light); border-radius: var(--radius); }
.stat-n { font-family: var(--serif); font-size: clamp(32px, 3.2vw, 42px); font-weight: 600; line-height: 1; color: var(--amca-navy); font-variant-numeric: lining-nums; }
.stat-n .icon { width: 36px; height: 36px; color: var(--amca-red); }
.stat-l { font-size: 14.5px; color: #3B4652; }

/* Tabs (ankers; met JS tabbladen) */
.tab-nav { border-bottom: 1px solid var(--amca-border); margin-bottom: 44px; }
.tab-list { display: flex; flex-wrap: wrap; column-gap: clamp(20px, 3vw, 40px); list-style: none; margin: 0 0 -1px; padding: 0; }
.tab-link { display: block; position: relative; padding: 14px 0 16px; font-size: 15.5px; font-weight: 600; color: var(--amca-muted); white-space: nowrap; transition: color var(--ease); }
.tab-link:hover { color: var(--amca-text); }
.tab-link[aria-selected="true"] { color: var(--amca-text); }
.tab-link[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--amca-red); }
.tab-panel { scroll-margin-top: 24px; }
.tab-panel + .tab-panel { margin-top: 72px; }
.tabs--js .tab-panel + .tab-panel { margin-top: 0; }
.tabs--js .tab-panel[hidden] { display: none; }
.tabs--js .tab-panel > .section-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab-panel:focus { outline: none; }

/* Kaarten */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 28px; background: #fff; border: 1px solid var(--amca-border); border-radius: var(--radius); }
.card > p { margin: 0 0 16px; color: #3B4652; }
.card-icon { width: 28px; height: 28px; margin-bottom: 10px; }
.card .card-title { margin: 0 0 12px; }
.card-sub { margin: 14px 0 6px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amca-muted); }
.card-address { margin: 0 0 20px; line-height: 1.6; }
.card .btn { margin-top: auto; }
.card .doc-link { align-self: stretch; margin-top: 12px; }
.hours { margin: 0; width: 100%; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--amca-border); }
.hours div:last-child { border-bottom: 0; }
.hours dt { text-transform: capitalize; }
.hours dd { margin: 0; font-weight: 600; white-space: nowrap; }

/* Bestuur */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; list-style: none; margin: 0 0 24px; padding: 0; }
.person { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: #fff; border: 1px solid var(--amca-border); border-radius: var(--radius); }
.person-role { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amca-red); }
.person-name { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.person a { font-size: 15px; color: var(--amca-muted); }

/* Sponsoren-raster */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 16px; list-style: none; margin: 32px 0 0; padding: 0; }
.sponsor-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--amca-border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--ease), transform var(--ease); }
a.sponsor-card:hover { border-color: #C5CDD4; transform: translateY(-1px); }
.sponsor-logo { display: flex; align-items: center; justify-content: center; height: 112px; padding: 16px 20px; }
.sponsor-logo img { width: auto; height: auto; max-width: 100%; max-height: 76px; object-fit: contain; }
.sponsor-caption { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 14px; border-top: 1px solid var(--amca-border); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.sponsor-domain { font-weight: 400; font-size: 13px; color: var(--amca-muted); overflow-wrap: anywhere; }
.sponsor-grid li { scroll-margin-top: 24px; }
.sponsor-grid li:target .sponsor-card { border-color: var(--amca-red); }

/* Documenten (PDF) */
.doc-list { display: grid; gap: 12px; max-width: 760px; }
.doc-list--single { margin-top: 28px; }
.doc-link { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--amca-border); border-radius: var(--radius); transition: border-color var(--ease); }
.doc-link:hover { border-color: #C5CDD4; }
.doc-label { flex: 1 1 auto; font-weight: 600; line-height: 1.4; }
.doc-lang { font-weight: 500; color: var(--amca-muted); }
.doc-meta { flex: none; font-size: 13px; color: var(--amca-muted); white-space: nowrap; }

/* Kalender */
.event-list { display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 24px; background: #fff; border: 1px solid var(--amca-border); border-radius: var(--radius); scroll-margin-top: 24px; }
.event:target { border-color: var(--amca-red); }
.date-block--light { border-color: var(--amca-border); color: var(--amca-text); }
.date-block--light .date-wd, .date-block--light .date-mon { color: var(--amca-red); }
.event-type { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amca-muted); }
.event-name { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 23px); font-weight: 600; }
.meta-list--light { color: #3B4652; }
.meta-list--light .icon { color: var(--amca-red); }
.meta-list--light li { margin-top: 3px; }
.event-remark { margin: 10px 0 0; font-size: 15px; color: #3B4652; }
.event-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.event--cancelled .event-name, .event--cancelled .meta-list { text-decoration: line-through; text-decoration-color: rgba(24, 35, 48, .45); }
.badge-light { margin: 0 0 0 6px; vertical-align: 1px; border-color: var(--amca-text); color: var(--amca-text); letter-spacing: .06em; }
.badge-light.badge-geannuleerd { color: #fff; }
.btn-sm { padding: 11px 16px; font-size: 14.5px; }
.past { margin-top: 40px; }
.past summary { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-weight: 600; cursor: pointer; color: var(--amca-text); }
.past summary::marker { color: var(--amca-red); }
.past .event { opacity: .82; }

/* Klassen */
.class-group + .class-group { margin-top: 56px; }
.class-group { scroll-margin-top: 24px; }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; margin-top: 24px; }
.class-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid var(--amca-border); border-radius: var(--radius); scroll-margin-top: 24px; }
.class-card:target { border-color: var(--amca-red); }
.class-name { margin: 12px 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.class-card p { margin: 0 0 18px; font-size: 15.5px; color: #3B4652; }
.class-foot { margin-top: auto; align-self: stretch; }
.class-foot .doc-link { padding: 12px 14px; background: var(--amca-light); border-color: transparent; }
.rules-soon { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--amca-light); font-size: 13px; font-weight: 600; color: var(--amca-text); }
a.chip:hover { background: var(--amca-border); }
.chip--scale { background: var(--amca-navy); color: #fff; letter-spacing: .04em; }

/* Foto's */
.album + .album { margin-top: 72px; }
.album { scroll-margin-top: 24px; }
.section-head--album { margin-bottom: 24px; }
.section-head--album p { margin: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.photo { display: block; overflow: hidden; border-radius: 8px; background: var(--amca-light); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 300ms ease, opacity var(--ease); }
.photo:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 56px 72px; background: rgba(var(--shade), .95); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; }
.lightbox .icon-btn { position: absolute; color: #fff; width: 48px; height: 48px; }
.lightbox .icon-btn .icon { width: 26px; height: 26px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-prev .icon { transform: scaleX(-1); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .75); font-size: 14px; }

/* Lid worden */
.steps { counter-reset: step; list-style: none; margin: 8px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 48px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--amca-red); border-radius: 50%; color: var(--amca-red); font-weight: 700; font-size: 15px; }
.steps a, .prose a:not(.btn):not(.link-arrow), .card p a, .muted a, .note-leading a { color: var(--amca-red); text-decoration: underline; text-underline-offset: 3px; }
.fee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; }
.fee-card { padding: 30px 32px; background: #fff; border: 1px solid var(--amca-border); border-radius: var(--radius); }
.fee-title { display: flex; flex-direction: column; gap: 4px; margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.fee-title span { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--amca-muted); }
.fee-price { margin: 18px 0 20px; color: var(--amca-muted); }
.fee-price strong { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; color: var(--amca-navy); font-variant-numeric: lining-nums; }
.fee-rows { margin: 0; }
.fee-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--amca-border); }
.fee-rows dd { margin: 0; font-weight: 600; white-space: nowrap; }
.fee-notes { max-width: 980px; margin: 24px 0 0; padding: 0 0 0 18px; color: #3B4652; font-size: 15px; }
.fee-notes li + li { margin-top: 6px; }
.rules { list-style: none; margin: 24px 0 0; padding: 0; }
.rules li { position: relative; padding: 0 0 14px 26px; }
.rules li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 2px; background: var(--amca-red); }

/* Formulieren */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-intro p { color: #3B4652; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-card { gap: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--amca-border); }
.contact-list li:first-child { border-top: 0; padding-top: 4px; }
.contact-list li > div { flex: 1; min-width: 0; }
.contact-list .label { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amca-muted); }
.contact-list address { margin-bottom: 6px; }
.contact-list .hours div { padding: 3px 0; border: 0; }
.form { display: block; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; }
.req { margin-left: 3px; color: var(--amca-red); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: 400 16px/1.4 var(--sans); color: var(--amca-text); background: #fff; border: 1px solid #C9D0D6; border-radius: 7px; transition: border-color var(--ease), box-shadow var(--ease); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23182330' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amca-navy); box-shadow: 0 0 0 3px rgba(11, 20, 32, .12); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--amca-red); }
.field-error { font-size: 13.5px; font-weight: 500; color: var(--amca-red-dark); }
.field--check { padding-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400 !important; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--amca-red); }
.check a { color: var(--amca-red); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 18px 0 22px; font-size: 13.5px; color: var(--amca-muted); }
.form-alert { margin-bottom: 22px; padding: 14px 18px; border-left: 3px solid var(--amca-red); background: #FBEAEB; border-radius: 0 7px 7px 0; color: #7A1219; font-weight: 500; }
.form-done { padding: 28px 30px; background: #fff; border: 1px solid var(--amca-border); border-left: 3px solid var(--amca-red); border-radius: var(--radius); }
.form-done h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-family: var(--serif); font-size: 24px; }
.form-done p { margin: 0; color: #3B4652; }
.section--light .form-done { border-color: var(--amca-border); border-left-color: var(--amca-red); }

/* Zoeken */
.search-page { max-width: calc(860px + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.search-form--page { margin-bottom: 26px; padding: 8px 8px 8px 18px; border: 1px solid #C9D0D6; border-radius: var(--radius); }
.search-form--page input { font-size: 18px; height: 48px; }
.results { list-style: none; margin: 8px 0 0; padding: 0; }
.results li { border-top: 1px solid var(--amca-border); }
.results a, .search-suggest a { display: flex; flex-direction: column; gap: 3px; padding: 18px 4px; }
.results a:hover .s-title, .search-suggest a:hover .s-title, .search-suggest a:focus .s-title { color: var(--amca-red-dark); }
.s-type { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amca-red); }
.s-title { font-family: var(--serif); font-size: 20px; font-weight: 600; transition: color var(--ease); }
.s-snippet { font-size: 15px; color: #3B4652; }
.search-suggest li { border-top: 1px solid var(--amca-border); }
.search-suggest li:first-child { border-top: 0; }
.search-suggest a { padding: 14px 22px; }
.search-suggest .s-title { font-size: 18px; }
.search-suggest .s-snippet { font-size: 14px; }
.search-suggest .s-more a, .search-suggest .s-empty { padding: 14px 22px; font-weight: 600; color: var(--amca-red); }
.search-suggest .s-empty { color: var(--amca-muted); font-weight: 400; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--amca-navy); color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.65; }
/* Kolommen zo breed als hun inhoud, gelijke ruimte ertussen: de eerste begint en de laatste eindigt op de containerlijn */
.footer-grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand .logo img { width: 180px; margin-bottom: 18px; }
.footer-brand p { max-width: 22em; }
.footer-title { margin: 0 0 14px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-title--spaced { margin-top: 26px; }
.site-footer address { margin-bottom: 12px; }
.site-footer a:not(.btn):not(.link-arrow):hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.footer-langs a[aria-current] { color: #fff; font-weight: 600; }
.footer-meta { display: flex; align-items: center; gap: 20px; margin-left: auto; } /* ook op een eigen regel rechts */
/* Slotje naar de beheerkant: klikvlak 40×40, het icoon zelf eindigt op de containerlijn */
.footer-admin { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; margin: -8px -11px -8px 0; border-radius: 7px; color: var(--amca-muted); transition: color 200ms ease; }
.footer-admin .icon { width: 18px; height: 18px; }
.site-footer a.footer-admin:hover, .site-footer a.footer-admin:focus-visible { color: #fff; text-decoration: none; }

/* ---- Zoek-overlay -------------------------------------------------------- */
.search-overlay { position: fixed; inset: 0; z-index: 80; padding: 12vh 16px 16px; background: rgba(var(--shade), .72); }
.search-overlay[hidden] { display: none; }
.search-panel { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 12px; box-shadow: 0 24px 60px rgba(var(--shade), .35); overflow: hidden; }
.search-form { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--amca-border); }
.search-form > .icon { color: var(--amca-red); }
.search-form input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; font: 400 19px var(--sans); color: var(--amca-text); background: transparent; }
.search-form .icon-btn:hover { background: var(--amca-light); }
.search-suggest { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow: auto; }
.search-suggest:empty { display: none; }

/* ---- Responsief ---------------------------------------------------------- */
@media (max-width: 1360px) {
  .header-inner { gap: 24px; }
  .logo img { width: 168px; }
  .nav-list { gap: clamp(16px, 1.7vw, 28px); }
  .nav-list a { font-size: 15px; }
  .header-actions { gap: 10px; }
}

@media (max-width: 1140px) {
  :root { --header-h: 96px; }
  .logo img { width: 144px; }
  .menu-toggle { display: inline-flex; }
  .header-actions .lang-switch { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 39; display: none; flex-direction: column; justify-content: flex-start; padding: 12px var(--gutter) 40px; background: var(--amca-navy); overflow-y: auto; }
  .nav-open .nav { display: flex; }
  .nav-open .site-header { background: var(--amca-navy); }
  .nav-open { overflow: hidden; }
  .nav-open .menu-toggle .icon-open { display: none; }
  .nav-open .menu-toggle .icon-close { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 15px 0; font-size: 19px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav-list a.active { color: #fff; }
  .nav-list a.active::after { left: 0; right: auto; width: 32px; bottom: -1px; }
  .nav-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; margin-top: 30px; }
  .nav-langs { display: flex; align-items: center; gap: 14px; }
  .nav-langs > .icon { color: rgba(255, 255, 255, .7); }
  .nav-langs ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
  .nav-langs a { display: inline-block; min-width: 46px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-align: center; }
  .nav-langs a[aria-current] { border-color: #fff; background: rgba(255, 255, 255, .1); }

  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-item { flex-direction: row; align-items: stretch; gap: 20px; }
  .quick-media { order: 0; flex: 0 0 42%; }
  .quick-img { height: 100%; aspect-ratio: 4 / 3; }
  .quick-item:nth-child(3)::before { display: none; }
  .quick-item:nth-child(n+3)::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--amca-border); }
  .quick-item:nth-child(4)::after { left: calc(var(--quick-gap) * -1); }

  .footer-grid { grid-template-columns: repeat(2, auto); }
  .sponsor-scroller { --n: 5; }
}

@media (max-width: 1000px) {
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .split, .form-wrap, .contact-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: auto minmax(0, 1fr); }
  .event-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .next-race { flex-direction: column; align-items: stretch; min-height: 0; }
  .next-media { position: relative; inset: auto; order: 2; height: clamp(220px, 56vw, 380px); z-index: 0; }
  .next-media::after { background: linear-gradient(180deg, var(--amca-navy) 0%, rgba(11, 20, 32, .35) 40%, rgba(11, 20, 32, 0) 100%); }
  .next-inner { padding-bottom: 8px; }
  .next-body { flex-wrap: wrap; gap: 22px 26px; }
  .next-actions { flex-basis: 100%; margin-left: 0; }
}

@media (max-width: 760px) {
  :root { --header-h: 88px; }
  body { font-size: 16.5px; }
  .logo img { width: 132px; }
  .header-actions { gap: 4px; }
  .header-actions .btn-cal { display: none; }

  /* Mobiel: tekst boven, foto als vast vlak eronder (zelfde uitsnede). De tekst eindigt rond 1/3
     van het fotovlak, zodat de auto's vrij in beeld staan. */
  .hero { --hero-img-h: clamp(260px, 80vw, 440px); display: block; min-height: 0; }
  .hero-img { inset: auto 0 0 0; height: var(--hero-img-h); }
  .hero-shade { background: linear-gradient(180deg, rgba(var(--shade), 1) 0, rgba(var(--shade), .97) calc(100% - var(--hero-img-h)), rgba(var(--shade), .55) calc(100% - var(--hero-img-h) * .78), rgba(var(--shade), .08) calc(100% - var(--hero-img-h) * .5), rgba(var(--shade), .05) 100%); }
  .hero-content { padding-top: calc(var(--header-h) + 24px); padding-bottom: calc(var(--hero-img-h) * .7); }
  .eyebrow { font-size: 12px; letter-spacing: .34em; }
  .hero-title { font-size: clamp(42px, 12vw, 48px); }
  .hero-sub { font-size: clamp(22px, 6.4vw, 26px); }
  .hero .accent-line { margin: 18px 0; }
  .hero-intro { font-size: 17px; margin-bottom: 24px; }
  .btn-row { gap: 12px; }
  .btn-row .btn { flex: 1 1 auto; }

  .quick-grid { grid-template-columns: 1fr; }
  .quick-item { padding: 22px 0; }
  .quick-item::before, .quick-item::after { display: none; }
  .quick-item + .quick-item { border-top: 1px solid var(--amca-border); }
  .quick-media { flex-basis: 40%; }
  .quick-title { font-size: 22px; }

  .next-inner { padding-top: 44px; }
  .next-body { gap: 20px; }
  .date-block { width: 80px; }
  .date-day { font-size: 34px; }
  .next-actions .btn { width: 100%; }

  .section { padding: 60px 0; }
  .sponsor-strip { padding: 48px 0 56px; }
  .sponsor-scroller { --n: 3.4; --gap: 12px; }
  .sponsor-nav { display: none; }
  .page-hero { min-height: 220px; }
  .page-hero-content { padding-top: 48px; padding-bottom: 40px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* Mobiel: slotje rechts tegenover de copyright-tekst, zodat de taallinks hun eigen regel houden */
  .footer-bottom { position: relative; }
  .footer-bottom p { padding-right: 36px; }
  .footer-meta { margin-left: 0; }
  .footer-admin { position: absolute; top: 14px; right: -11px; margin: 0; }
}

@media (max-width: 640px) {
  .cards-3, .fee-grid, .form-grid { grid-template-columns: 1fr; }
  .cards-3 > :last-child { grid-column: auto; }
  .stats li { padding: 18px; }
  .event { gap: 16px 18px; padding: 18px; }
  .event .date-block { width: 70px; }
  .event .date-day { font-size: 30px; }
  .fee-card { padding: 24px; }
  .doc-link { flex-wrap: wrap; }
  .doc-meta { width: 100%; padding-left: 34px; margin-top: -6px; }
  .lightbox { padding: 56px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 4px; transform: none; }
}

@media (max-width: 400px) {
  .btn-row .btn { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
