:root {
  --ink: #191612;
  --paper: #f5efe3;
  --paper-2: #fffaf0;
  --red: #d8362a;
  --yellow: #f0c23d;
  --blue: #1b7ea1;
  --green: #7f9b38;
  --muted: #6c6258;
  --line: rgba(25, 22, 18, 0.22);
  --shadow: 0 18px 45px rgba(25, 22, 18, 0.16);
  --featured-transition-bg: #191612;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(rgba(25, 22, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 22, 18, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(25, 22, 18, 0.08) 0.7px, transparent 0.7px);
  background-size: 6px 6px;
  mix-blend-mode: multiply;
  opacity: 0.35;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 54px);
  border-bottom: 2px solid var(--ink);
  background: rgba(245, 239, 227, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: white;
  object-fit: contain;
  padding: 4px;
}

.brand strong,
.brand small { display: block; }

.brand strong {
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-width: 90px;
  padding: 10px 12px;
  border: 2px solid transparent;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.site-nav a:hover {
  border-color: var(--ink);
  background: var(--yellow);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

main { overflow: hidden; }
.section, .hero { scroll-margin-top: 88px; }

.hero {
  min-height: calc(100svh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  align-items: stretch;
  position: relative;
  background: var(--ink);
  color: var(--paper-2);
}

.hero::after,
.agenda-section::after,
.koerrock-section::after,
.board-section::after,
.contact-section::after,
.history-section::after,
.sponsor-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 0;
  height: clamp(38px, 5vw, 72px);
  pointer-events: none;
}

.hero > *,
.section > * {
  position: relative;
  z-index: 1;
}

.hero::after {
  z-index: 2;
  height: clamp(54px, 6.5vw, 96px);
  background:
    linear-gradient(176deg, transparent 0 38%, var(--paper) 39% 100%),
    linear-gradient(180deg, rgba(245, 239, 227, 0), rgba(245, 239, 227, 0.72) 68%, var(--paper));
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(44px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.label {
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 0.98; letter-spacing: 0; }

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 5.45vw, 5.35rem);
  text-transform: uppercase;
  text-wrap: balance;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  max-width: 980px;
  font-size: clamp(2.15rem, 5.2vw, 5rem);
  text-transform: uppercase;
}

h3 { font-size: clamp(1.35rem, 2.2vw, 2.1rem); }

.section-head p:not(.label),
.about-copy p,
.koerrock-copy p,
.contact-section p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions, .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.primary { background: var(--red); color: white; }
.ghost { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--paper-2); box-shadow: 4px 4px 0 var(--red); }

.hero-copy .label {
  color: var(--yellow);
}

.hero-copy p:not(.label) {
  color: #e5dac9;
}

.hero-copy h1 {
  color: var(--paper-2);
}

.hero-copy .button {
  border-color: var(--paper-2);
  box-shadow: 4px 4px 0 var(--paper-2);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 480px;
  place-items: center;
  border-left: 2px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(216, 54, 42, 0.92), rgba(216, 54, 42, 0.92)),
    repeating-linear-gradient(-8deg, transparent 0 16px, rgba(25, 22, 18, 0.18) 16px 18px);
  perspective: 900px;
}

.hero-logo-button {
  position: relative;
  display: grid;
  width: min(68%, 390px);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
}

.hero-logo-button::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 3px solid var(--paper-2);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.hero-logo-button img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: white;
  object-fit: contain;
  padding: 18px;
  box-shadow: 12px 12px 0 rgba(25, 22, 18, 0.22);
  transform-origin: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.hero-logo-button:hover img {
  box-shadow: 16px 16px 0 rgba(25, 22, 18, 0.24);
  transform: translateY(-4px) rotate(-2deg);
}

.hero-logo-button:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 10px;
}

.hero-logo-button.is-spinning img {
  animation: logoFullSpin 860ms cubic-bezier(0.16, 0.84, 0.24, 1.08) both;
}

.hero-logo-button.is-spinning::after {
  animation: logoPulse 760ms ease-out both;
}

@keyframes logoFullSpin {
  0% { transform: translateY(-4px) rotate(-2deg) scale(1); }
  45% { transform: translateY(-10px) rotate(190deg) scale(1.07); }
  100% { transform: translateY(0) rotate(360deg) scale(1); }
}

@keyframes logoPulse {
  0% { opacity: 0; transform: scale(0.88); }
  28% { opacity: 0.7; }
  100% { opacity: 0; transform: scale(1.24); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-button:hover img {
    transform: none;
  }

  .hero-logo-button.is-spinning img {
    animation: logoReducedPop 220ms ease both;
  }

  .hero-logo-button.is-spinning::after {
    animation: none;
  }
}

@keyframes logoReducedPop {
  50% { transform: scale(1.04); }
}

.section {
  position: relative;
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.agenda-section::after {
  background:
    linear-gradient(176deg, transparent 0 42%, var(--featured-transition-bg) 43% 100%),
    linear-gradient(180deg, rgba(25, 22, 18, 0), var(--featured-transition-bg));
  transition: background 260ms ease;
}

.koerrock-section::after {
  background:
    linear-gradient(176deg, transparent 0 42%, var(--paper) 43% 100%),
    linear-gradient(180deg, rgba(245, 239, 227, 0), var(--paper));
}

.board-section::after {
  background:
    linear-gradient(176deg, transparent 0 42%, var(--ink) 43% 100%),
    linear-gradient(180deg, rgba(25, 22, 18, 0), var(--ink));
}

.sponsor-section::after {
  background:
    linear-gradient(176deg, transparent 0 42%, var(--paper) 43% 100%),
    linear-gradient(180deg, rgba(245, 239, 227, 0), var(--paper));
}

.contact-section::after {
  height: clamp(72px, 8vw, 124px);
  background:
    linear-gradient(176deg, transparent 0 42%, var(--ink) 43% 100%),
    linear-gradient(180deg, rgba(25, 22, 18, 0), rgba(25, 22, 18, 0.84) 72%, var(--ink));
}

.history-section::after {
  background:
    linear-gradient(176deg, transparent 0 42%, var(--ink) 43% 100%),
    linear-gradient(180deg, rgba(25, 22, 18, 0), var(--ink));
}

.section-head { margin-bottom: clamp(24px, 4vw, 46px); }

.agenda-section {
  padding-top: clamp(42px, 6vw, 78px);
  padding-bottom: clamp(50px, 7vw, 90px);
}

.agenda-section .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px clamp(18px, 3vw, 34px);
  margin-bottom: clamp(18px, 3vw, 30px);
}

.agenda-section .section-head .label,
.agenda-section .section-head h2 {
  margin-bottom: 0;
}

.agenda-section .section-head h2 {
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 0.95;
}

.section-head code,
.asset-note code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.agenda-layout,
.about-section,
.koerrock-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(24px, 5vw, 72px);
}

.agenda-layout {
  grid-template-columns: minmax(280px, 0.46fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3vw, 42px);
}

.agenda-side { display: grid; gap: 16px; }

.event-list { display: grid; gap: 14px; }

.event-card,
.calendar-panel,
.member-card,
.sponsor-card,
.contact-card,
.contact-form,
.quick-info article,
.group-photo {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 6px 6px 0 rgba(25, 22, 18, 0.14);
}

.event-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px;
}

.event-date {
  display: flex;
  min-height: 64px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  background: var(--blue);
  color: white;
  font-weight: 900;
  text-transform: uppercase;
}

.event-date strong { font-size: 1.45rem; line-height: 1; }
.event-card h3 {
  margin-bottom: 6px;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}
.event-card p { margin-bottom: 8px; }
.event-meta { color: var(--muted); font-weight: 800; }

.event-tag {
  display: inline-flex;
  margin-top: 10px;
  padding: 3px 8px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-panel { padding: clamp(14px, 2.4vw, 24px); }

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.calendar-head h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  text-transform: uppercase;
}

.icon-button {
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.weekday-row {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: clamp(56px, 7vw, 92px);
  padding: 8px;
  border: 1px solid var(--line);
  background: #fffdf7;
  font-weight: 900;
  overflow: hidden;
}

.calendar-day.is-muted { opacity: 0.34; }
.calendar-day.has-event { border: 2px solid var(--ink); background: #fff3bd; }
.calendar-day.has-event { cursor: pointer; }
.calendar-day.has-event:focus {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.calendar-day.is-public {
  background: #d7efc0;
}

.calendar-day.is-private {
  background: #f2c0b8;
}

.calendar-day.is-closed {
  background: #f2c0b8;
}

.calendar-day.is-other {
  background: #ffe591;
}

.calendar-day.is-featured {
  background: #c8e7f0;
}

.day-number {
  display: block;
}

.calendar-event-label {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 3px 5px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: clamp(0.58rem, 0.9vw, 0.78rem);
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.calendar-day.is-public .calendar-event-label {
  background: var(--green);
  color: white;
}

.calendar-day.is-private .calendar-event-label {
  background: var(--red);
  color: white;
}

.calendar-day.is-closed .calendar-event-label {
  background: var(--red);
  color: white;
}

.calendar-day.is-featured .calendar-event-label {
  background: var(--blue);
  color: white;
}

.calendar-detail {
  margin-top: 0;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 6px 6px 0 rgba(25, 22, 18, 0.14);
}

.calendar-detail h4,
.calendar-detail .calendar-detail-title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.calendar-detail p:last-child {
  margin-bottom: 0;
}

.about-section { background: var(--green); }
.quick-info { display: grid; gap: 12px; margin-top: 24px; }
.quick-info article { display: grid; gap: 6px; padding: 16px; }
.quick-info strong { text-transform: uppercase; }
.quick-info span { color: var(--muted); }

.koerrock-section {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  background: var(--ink);
  color: var(--paper-2);
}

.koerrock-copy p,
.event-tabs-copy p { color: #e5dac9; }

.facts span {
  padding: 8px 12px;
  border: 2px solid var(--paper-2);
  color: var(--paper-2);
  font-weight: 900;
  text-transform: uppercase;
}

.koerrock-media {
  display: grid;
  gap: 18px;
  align-content: start;
}

.event-tabs-section {
  --event-bg: var(--ink);
  --event-card: #111;
  --event-accent: var(--red);
  --event-accent-2: var(--yellow);
  --event-text: var(--paper-2);
  --event-soft: #e5dac9;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-top: clamp(44px, 6vw, 82px);
  padding-bottom: clamp(68px, 7vw, 96px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.02), transparent 46%),
    var(--event-bg);
  transition: background-color 360ms ease, color 360ms ease;
}

.event-tabs-section.theme-koerrock {
  --event-bg: #191612;
  --event-card: #0e0d0b;
  --event-accent: #d8362a;
  --event-accent-2: #f0c23d;
}

.event-tabs-section.theme-stoemp {
  --event-bg: #2d2016;
  --event-card: #1c130d;
  --event-accent: #d08b36;
  --event-accent-2: #ece38f;
}

.event-tabs-section.theme-open {
  --event-bg: #143545;
  --event-card: #0d2632;
  --event-accent: #7f9b38;
  --event-accent-2: #f0c23d;
}

.event-tabs-section.theme-event {
  --event-bg: #143545;
  --event-card: #0d2632;
  --event-accent: #7f9b38;
  --event-accent-2: #f0c23d;
}

.event-tabs-section.theme-care {
  --event-bg: #241138;
  --event-card: #170925;
  --event-accent: #8f5cff;
  --event-accent-2: #f0c23d;
}

.event-tabs-section.theme-gratis_vat {
  --event-bg: #2a2308;
  --event-card: #171204;
  --event-accent: #f0c23d;
  --event-accent-2: #ffe591;
}

.event-tabs-section.theme-voetbaltoernooi {
  --event-bg: #12351f;
  --event-card: #0b2414;
  --event-accent: #45a857;
  --event-accent-2: #d7efc0;
}

.event-tabs-copy {
  display: grid;
  align-content: start;
  gap: 20px;
}

.event-tabs-head {
  display: grid;
  gap: 14px;
}

.event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-tab {
  padding: 9px 12px;
  border: 2px solid var(--event-text);
  border-radius: 999px;
  background: transparent;
  color: var(--event-text);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.event-tab:hover,
.event-tab.is-active {
  background: var(--event-accent-2);
  color: var(--ink);
  transform: translateY(-1px);
}

.event-tab-panel {
  max-width: 720px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.event-tab-panel h2 {
  max-width: 660px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1;
}

.event-tab-panel > p:not(.event-kicker):not(.event-status) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--event-soft);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.38;
}

.event-tab-panel.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

.event-kicker,
.event-status {
  font-weight: 900;
  text-transform: uppercase;
}

.event-tab-panel .facts {
  margin-top: 16px;
}

.event-kicker {
  margin: 0 0 10px;
  color: var(--event-accent-2);
}

.event-status {
  display: inline-block;
  width: fit-content;
  margin-top: 16px;
  padding: 9px 12px;
  border: 2px solid var(--event-text);
  background: var(--event-accent);
  color: var(--event-text);
}

.event-tabs-media {
  display: grid;
  align-content: start;
}

.event-poster {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 760px);
  margin: 0;
  border: 2px solid var(--event-text);
  border-radius: 8px;
  background: var(--event-card);
  box-shadow: 12px 12px 0 var(--event-accent);
  transform: rotate(2deg);
  overflow: hidden;
  transition: box-shadow 280ms ease, transform 280ms ease;
}

.event-poster.is-horizontal {
  aspect-ratio: 16 / 9;
}

.event-poster.is-vertical {
  width: min(100%, 560px);
  aspect-ratio: 4 / 5;
  justify-self: center;
}

.theme-stoemp .event-poster {
  transform: rotate(-1.5deg);
}

.event-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 220ms ease, transform 500ms ease;
}

.event-poster.is-switching img {
  opacity: 0;
}

.official-logo-tile {
  display: grid;
  min-height: 190px;
  place-items: center;
  border: 2px solid var(--paper-2);
  border-radius: 8px;
  background: #111;
  padding: 22px;
}

.official-logo-tile img {
  width: min(86%, 460px);
  max-height: 150px;
  object-fit: contain;
}

.real-poster {
  position: relative;
  display: block;
  margin: 0;
  border: 2px solid var(--paper-2);
  background: #050505;
  box-shadow: 12px 12px 0 var(--red);
  transform: rotate(2deg);
  overflow: hidden;
}

.real-poster img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.real-poster figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 2px solid var(--paper-2);
  background: var(--ink);
  color: var(--paper-2);
  font-weight: 900;
  text-transform: uppercase;
}

.real-poster.is-missing {
  display: grid;
  min-height: 440px;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.real-poster.is-missing img,
.real-poster.is-missing figcaption {
  display: none;
}

.real-poster.is-missing::before {
  content: "zet de echte affiche hier: assets/koerrock-affiche.jpg";
  max-width: 310px;
  color: var(--paper-2);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.2;
}

.lineup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.lineup li {
  border-top: 2px solid var(--paper-2);
  padding-top: 14px;
}

.lineup time,
.lineup strong,
.lineup span { display: block; }
.lineup time { color: var(--yellow); font-weight: 900; }
.lineup strong { text-transform: uppercase; }
.lineup span {
  margin-top: 8px;
  color: #e5dac9;
  font-size: 0.95rem;
  line-height: 1.35;
}

.group-photo {
  position: relative;
  overflow: hidden;
  width: min(100%, 1080px);
  margin: 0 auto 28px;
  background:
    linear-gradient(135deg, rgba(216, 54, 42, 0.14), rgba(27, 126, 161, 0.16)),
    var(--paper-2);
}

.group-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.group-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.group-photo.is-missing {
  display: grid;
  place-items: center;
}

.group-photo.is-missing img { display: none; }
.group-photo.is-missing figcaption { display: none; }
.group-photo.is-missing::before {
  content: "zet groepsfoto hier: assets/bestuur/groepsfoto.jpg";
  max-width: 420px;
  padding: 18px;
  border: 2px dashed var(--line);
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.member-card {
  min-height: 340px;
  padding: 18px;
}

.member-photo,
.member-photo-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 54, 42, 0.14), rgba(27, 126, 161, 0.16)),
    var(--paper);
  color: var(--ink);
  font-weight: 900;
  object-fit: cover;
}

.member-photo-placeholder span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 1.2rem;
}

.member-age {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 900;
}

.history-section {
  background: var(--ink);
  color: var(--paper-2);
}

.history-section .section-head p:not(.label) {
  color: #e5dac9;
}

.history-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--history-columns, 4), minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  transition: max-height 520ms ease;
}

.history-grid.is-truncated {
  max-height: var(--history-window-height, 760px);
  overflow: hidden;
}

.history-grid.is-truncated::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: clamp(150px, 18vw, 270px);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(25, 22, 18, 0), rgba(25, 22, 18, 0.78) 62%, var(--ink));
}

.history-column {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.history-photo {
  display: block;
  width: 100%;
  margin: 0;
  border: 2px solid var(--paper-2);
  border-radius: 8px;
  background: transparent;
  box-shadow: 6px 6px 0 rgba(216, 54, 42, 0.58);
  overflow: hidden;
}

.history-photo.is-new {
  animation: historyReveal 420ms ease both;
}

.history-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #050505;
}

.history-photo-button {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.history-photo-button:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: -6px;
}

.history-photo.tone-yellow {
  box-shadow: 6px 6px 0 rgba(240, 194, 61, 0.62);
}

.history-photo.tone-blue {
  box-shadow: 6px 6px 0 rgba(27, 126, 161, 0.58);
}

.history-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 4vw, 42px);
}

.history-more {
  border-color: var(--paper-2);
  background: var(--yellow);
  color: var(--ink);
}

.history-more[hidden] {
  display: none;
}

@keyframes historyReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.history-empty {
  max-width: 520px;
  color: #e5dac9;
  font-weight: 900;
}

body.has-lightbox {
  overflow: hidden;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(48px, 0.12fr) minmax(0, 1fr) minmax(48px, 0.12fr);
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(14px, 3vw, 36px);
  background: rgba(10, 9, 7, 0.94);
}

.photo-lightbox[hidden] {
  display: none;
}

.lightbox-frame {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
}

.lightbox-frame img {
  max-width: 100%;
  max-height: min(82svh, 860px);
  border: 2px solid var(--paper-2);
  border-radius: 8px;
  background: #050505;
  box-shadow: 10px 10px 0 rgba(216, 54, 42, 0.42);
  object-fit: contain;
}

.lightbox-frame figcaption {
  color: var(--paper-2);
  font-weight: 900;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  border: 2px solid var(--paper-2);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.lightbox-close {
  position: absolute;
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  width: 46px;
  height: 46px;
  font-size: 2rem;
}

.lightbox-nav {
  align-items: center;
  justify-items: center;
  width: clamp(48px, 6vw, 70px);
  height: clamp(48px, 6vw, 70px);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.8;
  padding-bottom: 0.14em;
}

.lightbox-prev {
  justify-self: end;
}

.lightbox-next {
  justify-self: start;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--yellow);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sponsor-cta {
  margin-top: 10px;
}

.sponsor-card {
  display: grid;
  min-height: 210px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
}

.sponsor-card img {
  width: 100%;
  max-width: 320px;
  max-height: 155px;
  object-fit: contain;
}

.sponsor-placeholder {
  display: grid;
  width: 100%;
  max-width: 160px;
  min-height: 72px;
  place-items: center;
  border: 2px dashed var(--line);
  color: var(--muted);
  font-weight: 900;
}

.sponsor-card strong { text-transform: uppercase; }

.sponsor-note {
  color: var(--muted);
  font-weight: 800;
}

.sponsor-card.is-cta {
  background: var(--yellow);
}

.sponsor-card.is-cta .sponsor-placeholder {
  border-color: var(--ink);
  color: var(--ink);
}

.sponsor-section {
  background: var(--ink);
  color: var(--paper-2);
}

.sponsor-section .section-head p:not(.label) {
  color: #e5dac9;
}

.sponsor-section .sponsor-card {
  color: var(--ink);
}

.contact-section { align-items: start; }

.contact-card {
  display: grid;
  gap: 8px;
  max-width: 420px;
  padding: 22px;
  font-style: normal;
}

.contact-card a { font-weight: 900; }

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 3vw, 28px);
}

label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
  padding: 12px;
}

textarea { resize: vertical; }

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 4vw, 54px);
  background: var(--ink);
  color: var(--paper-2);
}

.site-footer p { margin: 0; }
.site-footer a { font-weight: 900; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: 1fr;
    padding: 12px;
    border: 2px solid var(--ink);
    background: var(--paper-2);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav { display: grid; }
  .site-nav a { text-align: left; }

  .hero,
  .agenda-layout,
  .about-section,
  .koerrock-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; }
  .hero-visual {
    min-height: 360px;
    border-left: 0;
    border-top: 2px solid var(--ink);
  }

  .member-grid,
  .sponsor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-grid { --history-columns: 2; }
}

@media (max-width: 580px) {
  .site-header { padding: 10px 14px; }
  .brand img { width: 48px; height: 48px; }
  h1 { font-size: clamp(2.45rem, 15vw, 4.2rem); }
  h1 span { white-space: normal; }
  h2 { font-size: clamp(1.9rem, 10vw, 3rem); }
  .event-card { grid-template-columns: 1fr; }
  .event-date { width: 86px; }
  .calendar-day { min-height: 54px; padding: 5px; font-size: 0.78rem; }
  .calendar-event-label { margin-top: 4px; padding: 2px 3px; }
  .lineup, .member-grid, .sponsor-grid { grid-template-columns: 1fr; }
  .history-grid { --history-columns: 1; }
  .event-tab-panel h2 { font-size: clamp(2rem, 11vw, 3.35rem); }
  .event-tabs-section { padding-top: 42px; }
  .photo-lightbox {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .lightbox-frame {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: center;
  }
  .lightbox-prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }
  .lightbox-next {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .lightbox-frame img { max-height: 74svh; }
  .real-poster { box-shadow: 8px 8px 0 var(--red); }
  .real-poster.is-missing { min-height: 360px; }
}

/* ---------- Toegankelijkheid ---------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.site-nav a[hidden] { display: none; }

/* ---------- Kalender: vandaag en voorbije dagen ---------- */

.calendar-day.is-past { opacity: 0.5; }
.calendar-day.is-past.is-muted { opacity: 0.25; }
.calendar-day.is-today {
  outline: 3px solid var(--red);
  outline-offset: -3px;
}
.calendar-day.is-today .day-number { color: var(--red); }

.calendar-detail a,
.event-card h3 a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- Line-up en acties in uitgelichte events ---------- */

.event-lineup {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.event-lineup li {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr;
  column-gap: 14px;
  padding: 10px 12px;
  border: 2px solid var(--event-text);
  background: var(--event-card, rgba(0, 0, 0, 0.2));
  color: var(--event-text);
}

.event-lineup .lineup-time {
  grid-row: span 2;
  color: var(--event-accent-2);
  font-weight: 900;
}

.event-lineup strong { text-transform: uppercase; }
.event-lineup li > span:not(.lineup-time) { color: var(--event-soft); }

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.event-actions .primary { background: var(--event-accent); }

.event-more {
  background: var(--paper-2);
  color: var(--ink);
}

/* ---------- Eventpagina ---------- */

.event-detail { min-height: calc(100svh - 84px); }
.event-detail .label a { color: inherit; text-decoration: none; }
.event-detail h1 {
  max-width: 660px;
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 1;
}
.event-contact .event-back {
  display: grid;
  align-content: center;
  justify-items: start;
}

/* ---------- Cookiebanner ---------- */

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 6px 6px 0 var(--ink);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 280px; margin: 0; }
.cookie-actions { display: flex; gap: 10px; }

@media (max-width: 580px) {
  .event-lineup li { grid-template-columns: 1fr; }
  .event-lineup .lineup-time { grid-row: auto; }
}

/* ---------- Kalender: dagen waarop we meestal gesloten zijn ---------- */

.calendar-day.is-usually-closed {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(25, 22, 18, 0.07) 0 6px,
      transparent 6px 12px
    ),
    #f3ede1;
  color: var(--muted);
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.calendar-legend-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(-45deg, rgba(25, 22, 18, 0.07) 0 6px, transparent 6px 12px),
    #f3ede1;
}


.contact-card .contact-hours { margin-top: 6px; }

/* ---------- Hero: achtergrondvideo over de volle breedte ---------- */

.hero.has-video {
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - 84px), 820px);
  overflow: hidden;
  background: var(--ink) url("../video/hero-poster.jpg") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Donker links (leesbare tekst), naar rechts toe steeds meer video */
.hero.has-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(25, 22, 18, 0.94) 0%, rgba(25, 22, 18, 0.82) 38%, rgba(25, 22, 18, 0.45) 72%, rgba(25, 22, 18, 0.3) 100%),
    linear-gradient(0deg, rgba(25, 22, 18, 0.55), rgba(25, 22, 18, 0) 45%);
  pointer-events: none;
}

.hero.has-video .hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 820px);
  padding-bottom: clamp(88px, 11vw, 150px);
}

.hero.has-video h1 {
  font-size: clamp(2.8rem, 6.2vw, 6.2rem);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero.has-video .hero-copy > p:not(.label) {
  max-width: 560px;
  color: #efe6d6;
}

.hero.has-video::after { z-index: 3; }

@media (max-width: 900px) {
  .hero.has-video { min-height: 78svh; }
  .hero.has-video::before {
    background: linear-gradient(180deg, rgba(25, 22, 18, 0.55), rgba(25, 22, 18, 0.88) 70%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ---------- Privéfeesten ---------- */

.party-section {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: 0;
}

.party-card {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 80px) clamp(24px, 5vw, 72px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink) url("../img/privefeest-bg.jpg") center / cover no-repeat;
  box-shadow: 8px 8px 0 var(--ink);
  color: var(--paper-2);
}

/* Donker links voor de tekst, rechts de kleurrijke lichtstralen */
.party-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(25, 22, 18, 0.92) 0%, rgba(25, 22, 18, 0.72) 42%, rgba(25, 22, 18, 0.12) 75%, rgba(25, 22, 18, 0) 100%);
}

.party-copy {
  position: relative;
  max-width: 620px;
}

.party-section .label { color: var(--paper-2); }

.party-section h2 {
  margin-bottom: 18px;
  color: var(--yellow);
  font-size: clamp(2rem, 4.2vw, 3.8rem);
}

.party-copy > p:not(.label) {
  color: #efe6d6;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.party-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.party-instagram {
  background: var(--paper-2);
  color: var(--ink);
}

.party-mail {
  margin: 16px 0 0;
  font-size: 0.95rem;
}

.party-mail a { color: var(--yellow); }

@media (max-width: 900px) {
  .party-card::before { background: rgba(25, 22, 18, 0.78); }
}

/* ---------- Contactformulier: meldingen en spamval ---------- */

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note.is-success,
.form-note.is-error {
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.form-note.is-success { background: #d7efc0; }
.form-note.is-error { background: #f2c0b8; }

.form-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
