/* Layout: fullscreen foto met naam als opening, daaronder de agenda als ticketstroken op donkere grond.
   Kleuren uit de zaak zelf: antraciet plafond, eikenhout, bordeaux stoelen. Bewust één (donker) thema. */
:root {
  --paper: #0F0F10; --card: #19191B; --ink: #F4F1EC; --muted: #A39E97; --line: #2C2B2A;
  --accent: #B8222C; --accent-ink: #FFFFFF; --stub: #C9A67A; --stub-ink: #1A1410;
  --ok: #6FCB97; --warn: #E6A852; --bad: #F07A86;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
[hidden] { display: none !important; }
.wrap { max-width: 860px; margin: 0 auto; padding-inline: 16px; padding-block: 40px 64px; }
header.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6vw, 52px); line-height: 1.02; margin: 6px 0 10px; text-wrap: balance; letter-spacing: -.01em; }
.tagline { color: var(--muted); max-width: 56ch; margin: 0; }
h2 { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 40px 0 14px; color: var(--muted); }
.list { display: grid; gap: 16px; }

.ticket { display: grid; grid-template-columns: 118px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: relative; }
.stub { background: var(--stub); color: var(--stub-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 8px; text-align: center; border-right: 2px dashed rgba(21, 26, 46, .35); font-variant-numeric: tabular-nums; }
.stub .dow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.stub .day { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; }
.stub .mon { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.stub .yr { font-family: var(--mono); font-size: 11px; opacity: .7; margin-top: 2px; }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 111px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.ticket::before { top: -9px; }
.ticket::after { bottom: -9px; }
.info { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.info h3 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; margin: 0; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 600; }
.desc { margin: 0; max-width: 62ch; white-space: pre-line; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.pill { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1.5px solid currentColor; }
.pill.onsale { color: var(--ok); } .pill.few { color: var(--warn); } .pill.soldout { color: var(--bad); }
.pill.soon { color: var(--muted); } .pill.free { color: var(--accent); }
.price { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.past .ticket { opacity: .62; }
.past .stub { background: var(--line); color: var(--ink); }

.btn { font: inherit; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); color: var(--muted); pointer-events: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.small { font-size: 13px; padding: 6px 12px; }
.btn.danger { background: var(--bad); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.empty { border: 2px dashed var(--line); border-radius: 14px; padding: 28px; color: var(--muted); text-align: center; }
.foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.foot a { color: var(--muted); }

/* landingspagina */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding-inline: 16px; padding-block: 80px; overflow: hidden; isolation: isolate;
  background: #0F0F10 url("img/hero.jpg") center 40% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 45%, rgba(8,8,9,.55) 0%, rgba(8,8,9,0) 100%),
    linear-gradient(180deg, rgba(10,10,11,.62) 0%, rgba(10,10,11,.68) 55%, var(--paper) 100%); }
.hero-inner { display: grid; justify-items: center; gap: 18px; max-width: 900px; width: 100%; min-width: 0; }
.wordmark { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: #FFFFFF;
  font-size: clamp(38px, 10vw, 132px); overflow-wrap: anywhere; line-height: .9; letter-spacing: -.02em; margin: 0; text-wrap: balance;
}
.wordmark .plus { color: var(--accent); font-weight: 800; margin-inline: .08em; }
.hero .tagline { color: rgba(255,255,255,.86); font-size: clamp(17px, 2.2vw, 22px); max-width: 44ch; margin: 0; }
.hero .btn { margin-top: 10px; font-size: 16px; padding: 13px 24px; }
.hero-logo { width: min(640px, 86vw); max-width: 100%; height: auto; filter: drop-shadow(0 4px 24px rgba(0,0,0,.45)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot-logo { width: 180px; max-width: 60%; height: auto; justify-self: center; opacity: .9; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); color: rgba(255,255,255,.7);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  display: grid; justify-items: center; gap: 8px; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: currentColor; animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.3); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
.agenda { scroll-margin-top: 24px; padding-block: 24px 64px; }
.agenda .section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.agenda .section-head h2 { margin: 0; color: var(--ink); font-size: clamp(24px, 4vw, 34px); letter-spacing: -.01em; text-transform: none; font-weight: 800; }
.site-foot { background: #000; color: var(--muted); text-align: center; padding-inline: 16px; padding-block: 36px; font-size: 13px; display: grid; gap: 10px; }
.site-foot a { color: var(--muted); }

/* ===== agenda homepage: racing-stijl (schuine letters, geblokte vlag, strepen zoals in het logo) ===== */
:root { --be-black: #111; --be-yellow: #F5C518; --flag: repeating-conic-gradient(rgba(255,255,255,.9) 0 25%, transparent 0 50%) 0 0 / 14px 14px; }
.race { position: relative; padding-block: 40px 80px; overflow: hidden;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 2px, transparent 2px 46px),
    var(--paper); }
.race-wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.race-wrap > * { min-width: 0; }
.race-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.race-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.race-kicker::before { content: ""; width: 28px; height: 10px; background: var(--flag); opacity: .8; }
.race-title { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; color: var(--ink);
  font-size: clamp(30px, 8.5vw, 76px); line-height: .92; letter-spacing: -.02em; margin: 10px 0 0; text-wrap: balance; }
.race-title em { color: var(--accent); font-style: italic; }
.race-count { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.race-sub { display: block; color: var(--accent); font-size: .62em; letter-spacing: .04em; margin-top: 4px; }
.race-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 15px; }
.race-meta span { display: inline-flex; align-items: center; gap: 7px; }
.race-meta b { color: var(--ink); font-weight: 600; }
.race-meta svg, .race-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.race-desc { margin: 0; color: var(--muted); max-width: 60ch; white-space: pre-line; }
.race-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.race-price { font-family: var(--mono); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.race-tag { justify-self: start; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 5px 12px; transform: skewX(-12deg); }

/* schuine knop */
.race-btn { transform: skewX(-12deg); border-radius: 4px; padding: 12px 22px; box-shadow: 0 6px 20px rgba(184,34,44,.25); transition: transform .15s ease, box-shadow .15s ease; }
.race-btn > span { display: inline-flex; align-items: center; gap: 8px; transform: skewX(12deg); }
.race-btn:hover { transform: skewX(-12deg) translateY(-2px); box-shadow: 0 10px 26px rgba(184,34,44,.4); filter: none; }
.race-btn[aria-disabled="true"] { box-shadow: none; }

/* uitgelicht event */
.feature { position: relative; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #1C1B1D 0%, #141415 60%); border: 1px solid var(--line); border-radius: 18px;
  animation: race-in .6s ease both; }
.feature::before { /* strepen rood-zwart-geel zoals in het logo */
  content: ""; position: absolute; z-index: -1; top: -40px; right: -60px; width: 260px; height: 180%;
  background: linear-gradient(90deg, var(--accent) 0 34%, var(--be-black) 34% 52%, var(--be-yellow) 52% 70%, var(--accent) 70%);
  transform: rotate(28deg); opacity: .9; }
.feature::after { /* geblokte vlag die wegvaagt */
  content: ""; position: absolute; z-index: -1; right: 150px; bottom: 0; width: 240px; height: 120px; background: var(--flag);
  opacity: .07; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.feature-date { display: grid; align-content: center; justify-items: start; gap: 2px; padding: 32px 28px;
  background: var(--accent); color: #fff; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); padding-right: 22%; }
.f-dow { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.f-day { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(88px, 12vw, 148px); line-height: .82; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.f-mon { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }
.feature-body { display: grid; align-content: center; gap: 14px; padding: 32px 36px 32px 8px; min-width: 0; }
.feature-title { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; margin: 0;
  font-size: clamp(30px, 4.2vw, 50px); line-height: .95; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; max-width: 18ch; }

/* aftelklok */
.countdown { display: flex; flex-wrap: wrap; gap: 8px; }
.countdown > div { display: grid; justify-items: center; min-width: 64px; padding: 10px 8px 8px; background: rgba(0,0,0,.45);
  border: 1px solid var(--line); border-radius: 8px; transform: skewX(-8deg); }
.countdown b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 30px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; transform: skewX(8deg); }
.countdown span { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; transform: skewX(8deg); }
.countdown.live b { color: var(--ok); font-size: 22px; }

/* overige events */
.race-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.race-grid:empty { display: none; }
.race-card { position: relative; display: grid; align-content: start; gap: 12px; padding: 24px; overflow: hidden; isolation: isolate;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: transform .2s ease, border-color .2s ease;
  animation: race-in .6s ease both; animation-delay: calc(.1s + var(--i, 0) * .08s); }
.race-card::before { /* rode schuine streep links */
  content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 6px; background: var(--accent); transition: width .25s ease; }
.race-card::after { /* geblokte vlag in de hoek */
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 120px; height: 70px; background: var(--flag); opacity: .06;
  -webkit-mask-image: linear-gradient(225deg, #000, transparent 70%); mask-image: linear-gradient(225deg, #000, transparent 70%); }
.race-card:hover { transform: translateY(-4px); border-color: rgba(184,34,44,.6); }
.race-card:hover::before { width: 10px; }
.rc-top { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.rc-dow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: var(--accent); padding: 4px 8px; transform: skewX(-12deg); }
.rc-day { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 54px; line-height: .85; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rc-mon { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.rc-title { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; margin: 0;
  font-size: 26px; line-height: 1; color: var(--ink); text-wrap: balance; }

/* afgelopen */
.race-subtitle { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; color: var(--muted);
  font-size: 22px; margin: 16px 0 12px; letter-spacing: .02em; }
.past-list { display: grid; border-top: 1px solid var(--line); }
.past-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 6px 18px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.past-date { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.past-title { color: var(--ink); font-weight: 600; min-width: 0; }
.past-title .race-sub { display: inline; margin-left: 8px; font-size: .9em; color: var(--muted); }
.past-loc { font-size: 14px; }
.race-empty { padding: 40px; }

/* footer-strepen */
.foot-stripes { height: 6px; margin: -36px -16px 18px; background: linear-gradient(90deg, var(--accent) 0 70%, var(--be-black) 70% 80%, var(--be-yellow) 80% 90%, var(--accent) 90%); }

@keyframes race-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .feature { grid-template-columns: 1fr; }
  .feature-date { grid-auto-flow: column; justify-content: start; align-items: end; gap: 14px; padding: 22px 24px 20px;
    clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); padding-right: 24px; }
  .feature-date { grid-auto-flow: row; grid-template-columns: auto 1fr; column-gap: 14px; }
  .f-day { font-size: 72px; grid-column: 1; grid-row: 1 / span 2; }
  .f-dow { grid-column: 2; grid-row: 1; align-self: end; }
  .f-mon { grid-column: 2; grid-row: 2; align-self: start; font-size: 17px; }
  .feature-body { padding: 8px 22px 28px; }
  .feature::before { width: 140px; right: -70px; top: -80px; }
  .countdown > div { min-width: 58px; }
  .past-row { grid-template-columns: 1fr; }
}

/* testversie-melding (tijdelijk) */
.test-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: #FFD23F; color: #1A1410;
  text-align: center; font-size: 14px; line-height: 1.4; padding-inline: 16px; padding-block: 10px; }
.test-modal { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,9,.82); display: grid; place-items: center; padding: 16px; }
.test-dialog { background: var(--card); border: 2px solid #FFD23F; border-radius: 16px; padding: 28px; max-width: 480px; width: 100%;
  display: grid; gap: 12px; text-align: left; }
.test-dialog h2 { margin: 0; color: var(--ink); font-size: 24px; letter-spacing: -.01em; text-transform: none; font-weight: 800; }
.test-dialog p { margin: 0; color: var(--muted); }
.test-dialog .test-strong { color: var(--ink); font-weight: 600; }
.test-dialog .btn { justify-self: start; margin-top: 6px; }
.test-tag { justify-self: start; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: #FFD23F; color: #1A1410; padding: 4px 10px; border-radius: 999px; }
.test-store { border: 2px dashed #FFD23F; border-radius: 14px; padding: 24px; color: var(--ink); }
.test-store p { margin: 0; }
.test-store p + p { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* eventpagina */
.back { display: inline-block; margin-bottom: 24px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--ink); }
.store-box { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 8px; min-height: 200px; overflow: hidden; }
.store-fallback { margin-top: 12px; }
.store-fallback a, .empty a { color: var(--accent); }

/* beheer */
.sync { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 20px; }
.sync h2 { margin-bottom: 4px; }
.pill.es { color: var(--stub); }
.pill.hiddenpill { color: var(--muted); border-style: dashed; }
.admin-actions { display: flex; gap: 8px; margin-left: auto; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.panel h2 { margin-top: 0; }
.panel + .panel { margin-top: 20px; }
form.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; min-width: 0; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 15px; padding: 9px 11px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); min-width: 0; width: 100%; }
textarea { min-height: 90px; resize: vertical; }
.form-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.notice { font-size: 14px; color: var(--muted); margin: 0; }
.notice.err { color: var(--bad); }
.notice.ok { color: var(--ok); }
.confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.login { max-width: 420px; margin: 8vh auto 0; }
.login form { display: grid; gap: 14px; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }

@media (max-width: 560px) {
  .ticket { grid-template-columns: 84px 1fr; }
  .ticket::before, .ticket::after { left: 77px; }
  .stub .day { font-size: 34px; }
  form.grid { grid-template-columns: 1fr; }
  .info { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
