/* ============================================================
   DeetosSnel-QLS — COMPONENT LIBRARY
   Every component is authored once, reads from tokens.css, and
   is sharp, dark-editorial per the brand. Rebuilt clean from the
   prototype (which had 4 conflicting :root blocks + 432 inline
   styles). This file is the design; workbench.css is only chrome.

   → WordPress: each block below becomes either a template part
     (header, footer) or a block pattern (hero, cards, cta…).
     The class names are kept stable so the same CSS ships in the
     theme stylesheet unchanged.
   ============================================================ */

/* ---- RESET / BASE --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: var(--lh-body);
  color: var(--c-black);
  background: var(--c-dark);
  -webkit-font-smoothing: antialiased;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
a   { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul  { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ---- LAYOUT --------------------------------------------- */
.container      { max-width: var(--container);      margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--s-7); }

/* Two shared surface modifiers so any section can flip theme */
.surface-dark  { background: var(--c-dark); color: var(--c-on-dark-1); }
.surface-light { background: var(--c-bg) !important;   color: var(--c-black) !important; }
.section-pad   { padding: var(--s-9) 0; background: var(--c-dark); color: var(--c-on-dark-1); }

/* ============================================================
   EYEBROW + SECTION HEADING   → block pattern: "section header"
   The red bar + uppercase label is a core brand signature.
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-body);
  font-size: var(--step-eyebrow); font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-red); margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--c-red); }

.h-display {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-display); line-height: var(--lh-tight);
  letter-spacing: 0.01em; text-transform: uppercase;
}
.h-section {
  font-family: var(--font-heading); font-weight: 700;
  font-size: var(--step-h2); line-height: var(--lh-snug);
  letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--c-black);
}
.accent { color: var(--c-red); }          /* red word / dots inside a heading */
.dim    { color: var(--c-on-dark-3); }    /* faded tail of a CTA headline     */

/* ============================================================
   BUTTONS   → reused across every pattern
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 14px 28px;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700;
  letter-spacing: var(--track-cap); text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn--primary       { background: var(--c-red); color: #fff; }
.btn--primary:hover { background: var(--c-red-dark); transform: translateY(-1px); }

.btn--ghost         { background: transparent; color: var(--c-on-dark-2);
                      border: 1px solid rgba(255,255,255,0.25); }
.btn--ghost:hover   { color: #fff; border-color: #fff; }

.btn--dark          { background: var(--c-black); color: #fff; }
.btn--dark:hover    { background: #000; }

/* small header variants */
.btn-sm { padding: 8px 18px; font-size: 0.82rem; font-weight: 600; }

/* ============================================================
   HEADER + NAV   → template part: header.php
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 var(--s-7);
  background: rgba(13,13,13,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-hairline);
  transition: all 0.3s var(--ease);
}
/* compenseer WordPress admin-bar als ingelogd */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.brand {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.02em; color: #fff; text-transform: uppercase;
}
.brand .accent { color: var(--c-red); }
.nav      { display: flex; align-items: center; }
.nav-link {
  display: flex; align-items: center; height: var(--header-h); padding: 0 var(--s-4);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--c-on-dark-2); transition: color var(--dur);
  position: relative;
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: var(--s-4); right: var(--s-4); bottom: 0;
  height: 2px; background: var(--c-red);
}
.header-actions { display: flex; align-items: center; gap: var(--s-3); }

/* ============================================================
   HERO   → block pattern: "hero" (dark, split)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: 82vh; display: grid; grid-template-rows: 1fr auto;
  background: var(--c-black);
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: end;
  gap: var(--s-7); max-width: var(--container-wide); margin: 0 auto; width: 100%;
  padding: var(--s-9) var(--s-7) var(--s-8);
}
.hero-eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-5);
  font-size: var(--step-eyebrow); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-red);
}
.hero-eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--c-red); }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-display); line-height: var(--lh-tight);
  letter-spacing: 0.01em; text-transform: uppercase;
  color: #fff; margin-bottom: var(--s-6);
}
.hero h1 .accent { color: var(--c-red); }
.hero-sub {
  max-width: 420px; margin-bottom: var(--s-6);
  color: var(--c-on-dark-2); line-height: var(--lh-body);
}
.hero-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* glass match card (hero-right / anywhere) → block pattern: "match card" */
.match-card {
  background: var(--c-glass); border: 1px solid var(--c-hairline);
  backdrop-filter: blur(8px); padding: var(--s-6) var(--s-6);
}
.match-card .label {
  font-family: var(--font-heading); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-red);
  margin-bottom: var(--s-5);
}
.match-teams { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.match-team  { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.match-logo  {
  width: 96px; height: 96px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--c-hairline);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.7rem;
  color: var(--c-on-dark-2); text-align: center; text-transform: uppercase;
}
.match-name  { font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem;
               text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-on-dark-1); }
.match-vs    { font-family: var(--font-display); font-size: 2.6rem; color: var(--c-on-dark-1); }
.match-meta  { text-align: center; color: var(--c-on-dark-3); font-size: 0.8rem; margin-bottom: var(--s-5); }
.match-btns  { display: flex; gap: var(--s-2); }
.match-btns .btn { flex: 1; justify-content: center; padding: 10px; font-size: 0.75rem; }

/* ============================================================
   TICKER   → block pattern: "results ticker"
   ============================================================ */
.ticker { display: flex; overflow: hidden; background: var(--c-red); }
.ticker-label {
  flex-shrink: 0; background: var(--c-black); color: var(--c-red);
  padding: 11px 20px; font-family: var(--font-heading); font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.ticker-scroll { flex: 1; overflow: hidden; }
.ticker-track  { display: flex; white-space: nowrap; animation: tick 28s linear infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: 11px 28px; border-right: 1px solid rgba(255,255,255,0.2);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; color: #fff;
}
.score-w { color: #AFFFAF; }
.score-l { color: var(--c-on-dark-2); }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ============================================================
   STATS STRIP   → block pattern: "stats"
   ============================================================ */
.stats { background: #181818; padding: 28px 0 28px; border: none; margin: 0 !important; display: block; line-height: 1; }

/* Stats wrapper — verwijder alle WordPress-blok ruimte rondom */
.wp-block-html { margin: 0 !important; padding: 0 !important; line-height: 0; }
.wp-block-html > * { line-height: normal; }

/* WordPress-blok wrappers: geen eigen margins — secties bepalen zelf de ruimte */
.wp-block-html { margin-top: 0 !important; margin-bottom: 0 !important; }
.stats-inner { display: flex; align-items: center; justify-content: space-around; }
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 10%; height: 80%; width: 1px; background: var(--c-border);
}
.stat-num {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 3.2rem; font-weight: 800; color: #fff; line-height: 1;
  display: flex; align-items: flex-start; justify-content: center; gap: 2px;
}
.stat-num sup { font-size: 1rem; margin-top: 8px; color: var(--c-red); vertical-align: unset; }
.stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; color: var(--c-gray); margin-top: 6px; }

/* ============================================================
   NEWS CARD   → block pattern: "news grid" (repeatable card)
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.card { display: flex; flex-direction: column; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #e8e8e8; margin-bottom: var(--s-4); }
.card-media img,
.card-media .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.card-media .placeholder {
  display: grid; place-items: center; background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  color: rgba(255,255,255,0.18); font-family: var(--font-heading); font-size: 0.8rem; text-transform: uppercase;
}
.card:hover .card-media img,
.card:hover .card-media .placeholder { transform: scale(1.04); }
.card-tag   { font-family: var(--font-heading); font-weight: 700; font-size: 0.65rem;
              letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-red); margin-bottom: var(--s-2); }
.card-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
              line-height: 1.15; text-transform: uppercase; margin-bottom: var(--s-2); flex: 1; }
.card-date  { font-size: 0.78rem; color: var(--c-gray); }
.link-underline {
  align-self: flex-start; margin-top: var(--s-3);
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: var(--track-cap); text-transform: uppercase; color: var(--c-black);
  border-bottom: 2px solid var(--c-black); padding-bottom: 2px;
  transition: color var(--dur), border-color var(--dur);
}
.link-underline:hover { color: var(--c-red); border-color: var(--c-red); }

/* ============================================================
   TEAM CARD   → block pattern: "team grid"
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.team-card { background: var(--c-panel); color: #fff; padding: var(--s-5); border: 1px solid var(--c-border); }
.team-card .num  { font-family: var(--font-display); font-size: 2.4rem; color: var(--c-red); line-height: 1; }
.team-card .name { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; margin-top: var(--s-2); }
.team-card .role { font-size: 0.78rem; color: var(--c-on-dark-2); margin-top: var(--s-1); }

/* ============================================================
   SCHEDULE / WEEK GRID   → block pattern: "week schedule"
   ============================================================ */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s-2); }
.day  { background: #fff; border: 1px solid var(--c-border-l); padding: var(--s-3); }
.day.is-active { border-color: var(--c-red); }
.day-name { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; margin-bottom: var(--s-3); }
.day-event { border-top: 1px solid var(--c-border-l); padding-top: var(--s-2); margin-top: var(--s-2); }
.day-event .time { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-red); }
.day-event .name { font-weight: 600; font-size: 0.9rem; }
.day-event .sub  { font-size: 0.78rem; color: var(--c-gray); }
.day .rest { display: grid; place-items: center; min-height: 72px; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #ccc; }

/* ============================================================
   CTA   → block pattern: "cta band"
   ============================================================ */
.cta {
  background: var(--c-black); color: #fff; padding: var(--s-9) var(--s-7);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-7); flex-wrap: wrap;
}
.cta-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem);
             line-height: var(--lh-tight); text-transform: uppercase; }
.cta-sub   { max-width: 460px; color: var(--c-on-dark-2); }
.cta-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ============================================================
   FOOTER   → template part: footer.php
   ============================================================ */
.site-footer { background: var(--c-header); color: var(--c-on-dark-2); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-7); padding: var(--s-8) 0; }
.footer-brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; color: #fff; text-transform: uppercase; }
.footer-brand-name .accent { color: var(--c-red); }
.footer-col-title { font-family: var(--font-heading); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-red); margin-bottom: var(--s-4); }
.footer-col a { display: block; padding: var(--s-1) 0; color: var(--c-on-dark-2); transition: color var(--dur); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--c-border); }
.footer-bottom .container { display: flex; justify-content: space-between; padding: var(--s-4) var(--gutter); font-size: 0.78rem; color: var(--c-on-dark-3); }
.footer-rule { height: 4px; background: var(--c-red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid   { grid-template-columns: 1fr; }
  .card-grid   { grid-template-columns: 1fr 1fr; }
  .team-grid   { grid-template-columns: 1fr 1fr; }
  .week        { grid-template-columns: repeat(2, 1fr); }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .nav         { display: none; }
}
@media (max-width: 560px) {
  .card-grid, .team-grid, .week, .footer-inner { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; gap: var(--s-5); }
}

/* ============================================================
   DEMO COMPONENT — a worked example built from the template.
   Shown live in the workbench's "Add a component" panel.
   Safe to delete once you've got the hang of it.
   ============================================================ */
.demo-card {
  background: var(--c-white);
  color: var(--c-black);
  padding: var(--s-6);
  border: 1px solid var(--c-border-l);
  border-left: 4px solid var(--c-red);   /* one small brand touch */
}
.demo-card-title {
  font-family: var(--font-heading);
  font-size: var(--step-h3);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.demo-card-text {
  font-family: var(--font-body);
  color: var(--c-body);
  line-height: var(--lh-body);
}

/* ============================================================
   SPONSOR STRIP — a real component, built from the prototype's
   sponsors page using the template in _component-template.css.
   Logos row + tiered sponsor list. → pattern: deetos/sponsors
   ============================================================ */
.sponsor-strip {
  background: var(--c-dark);
  color: var(--c-on-dark-1);
  padding: var(--s-8) 0;
}
.sponsor-tier {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: var(--s-4);
}
.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
.sponsor-logo {
  display: grid;
  place-items: center;
  min-width: 140px;
  height: 84px;
  padding: 0 var(--s-5);
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-on-dark-2);
  transition: opacity var(--dur);
}
.sponsor-logo:hover { opacity: 0.8; }
.sponsor-logo.is-lead {
  color: #fff;
  min-width: 200px;
}

/* ---- Logo in header ---- */
.brand-logo { height: 42px; width: auto; display: block; }

/* ---- Sponsor tiles that hold a real logo image ---- */
.sponsor-logo--img { background: transparent; padding: var(--s-4); }
.sponsor-logo--kader { background: #fff !important; border-radius: 3px; }
.sponsor-logo--img img { max-height: 52px; width: auto; object-fit: contain; }
.sponsor-logo--img.is-lead img { max-height: 64px; }

/* ---- News card: media as a block-level link ---- */
.card-media { display: block; }

/* ---- Sponsor Query Loop-variant: laat de herhaalde blokken als tegels ogen ---- */
.sponsor-strip .wp-block-post-template {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s-4);
}
.sponsor-strip .wp-block-post-template > li { margin: 0; }
.sponsor-strip .wp-block-post-featured-image { margin: 0; }
.sponsor-strip .sponsor-logo--img a { display: grid; place-items: center; width: 100%; height: 100%; }
.sponsor-strip .sponsor-logo--img img { max-height: 52px; width: auto; object-fit: contain; }
.sponsor-strip .sponsor-logo--img.is-lead img { max-height: 64px; }

/* ---- Query Loop sponsorbalk: minder ruimte tussen niveau-tekst en logo's ---- */
.sponsor-strip .sponsor-tier { margin-bottom: var(--s-3) !important; }
.sponsor-strip .wp-block-query { margin-top: 0 !important; }

/* ---- Nieuwsgrid Query Loop ---- */

/* de query zelf: volle breedte, geen constrained-beperking */
.news-loop-section { width: 100%; }
.news-loop-section .wp-block-query { width: 100%; max-width: none; }

/* de herhaalde lijst als 3-koloms grid */
.news-loop-section .wp-block-post-template,
.card-grid.wp-block-query .wp-block-post-template {
  list-style: none !important; margin: 0 !important; padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: var(--s-6) !important;
  width: 100% !important;
}
.news-loop-section .wp-block-post-template > li,
.card-grid.wp-block-query .wp-block-post-template > li {
  margin: 0 !important; padding: 0 !important; width: 100% !important;
}

/* featured image: 16:10, vult de volle kaartbreedte */
.news-loop-section .wp-block-post-featured-image,
.news-loop-section .wp-block-post-featured-image figure,
.card-grid .wp-block-post-featured-image,
.card-grid .wp-block-post-featured-image figure {
  display: block; width: 100% !important; margin: 0 0 var(--s-4) !important;
  overflow: hidden; aspect-ratio: 16 / 10;
}
.news-loop-section .wp-block-post-featured-image a,
.news-loop-section .wp-block-post-featured-image figure a,
.card-grid .wp-block-post-featured-image a,
.card-grid .wp-block-post-featured-image figure a {
  display: block; width: 100%; height: 100%;
}
.news-loop-section .wp-block-post-featured-image img,
.news-loop-section .wp-block-post-featured-image figure img,
.card-grid .wp-block-post-featured-image img,
.card-grid .wp-block-post-featured-image figure img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; display: block;
  transition: transform 0.4s var(--ease);
}
.news-loop-section li:hover .wp-block-post-featured-image img,
.card-grid li:hover .wp-block-post-featured-image img { transform: scale(1.04); }

/* categorie-label */
.news-loop-section .wp-block-post-terms,
.card-grid .wp-block-post-terms {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.65rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-red); margin: 0 0 var(--s-2) !important;
}
.news-loop-section .wp-block-post-terms a,
.card-grid .wp-block-post-terms a { color: var(--c-red); }

/* titel */
.news-loop-section .wp-block-post-title,
.card-grid .wp-block-post-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  line-height: 1.15; text-transform: uppercase;
  margin: 0 0 var(--s-2) !important;
}
.news-loop-section .wp-block-post-title a,
.card-grid .wp-block-post-title a { color: var(--c-black); }
.news-loop-section .wp-block-post-title a:hover,
.card-grid .wp-block-post-title a:hover { color: var(--c-red); }

/* datum */
.news-loop-section .wp-block-post-date,
.card-grid .wp-block-post-date {
  font-size: 0.78rem; color: var(--c-gray);
  margin: 0 0 var(--s-2) !important;
}

/* lees meer link */
.news-loop-section .wp-block-read-more,
.card-grid .wp-block-read-more {
  display: inline-block; margin-top: var(--s-3) !important;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: var(--track-cap); text-transform: uppercase;
  color: var(--c-black) !important; border-bottom: 2px solid var(--c-black);
  padding-bottom: 2px; text-decoration: none !important;
  transition: color var(--dur), border-color var(--dur);
}
.news-loop-section .wp-block-read-more:hover,
.card-grid .wp-block-read-more:hover {
  color: var(--c-red) !important; border-color: var(--c-red);
}

/* responsief */
@media (max-width: 900px) {
  .news-loop-section .wp-block-post-template,
  .card-grid.wp-block-query .wp-block-post-template {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 560px) {
  .news-loop-section .wp-block-post-template,
  .card-grid.wp-block-query .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Nieuwsgrid foto: override WordPress inline width/height attributen ---- */
/* WordPress zet width/height als HTML-attribuut; dit wint van !important in CSS.
   De oplossing: de figure als aspect-ratio container, img absoluut erin. */
.news-loop-section .wp-block-post-featured-image figure,
.card-grid .wp-block-post-featured-image figure {
  position: relative !important;
  aspect-ratio: 16 / 10 !important;
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
}
.news-loop-section .wp-block-post-featured-image figure img,
.card-grid .wp-block-post-featured-image figure img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}

/* ============================================================
   HERO MET ACHTERGROND-FOTO — exact naar het origineel
   De .hero-bg div staat absoluut achter de content, met een
   foto als background-image (instelbaar via de shortcode) en
   een gradient overlay zodat tekst altijd leesbaar blijft.
   ============================================================ */
.hero { position: relative; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(13,13,13,0.45) 0%,
      rgba(13,13,13,0.25) 40%,
      rgba(13,13,13,0.88) 100%);
}
.hero .hero-grid { position: relative; z-index: 2; }

/* ============================================================
   NIEUWS BENTO — exact naar het origineel
   12-koloms grid: grote featured kaart links, 4 kleinere rechts.
   Foto als achtergrond, tekst als overlay met gradient.
   ============================================================ */
.news-bento-section { padding: 24px 0 32px; background: #f9f9f8; color: var(--c-black); }

/* Nieuws sectie header — exact naar origineel */
.news-section-meta {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 14px; gap: 12px; flex-wrap: wrap;
}
.news-section-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #C4262E; margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.news-section-eyebrow::before { content: ''; width: 28px; height: 2px; background: #C4262E; }
.news-section-h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 800;
  letter-spacing: -0.5px; color: #1e1e1e; line-height: 1;
}
.news-section-right {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.news-subscribe { display: flex; gap: 8px; align-items: center; }
.ns-input {
  padding: 10px 16px; border: 1px solid #e8e8e8;
  font-family: 'Barlow', sans-serif; font-size: 0.85rem;
  outline: none; width: 220px; transition: border-color 0.2s;
}
.ns-input:focus { border-color: #C4262E; }
.news-alle-link {
  font-family: 'Barlow', sans-serif; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: #1e1e1e;
  border-bottom: 2px solid #1e1e1e; padding-bottom: 2px;
  white-space: nowrap; transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.news-alle-link:hover { color: #C4262E; border-color: #C4262E; }
.news-bento-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; flex-wrap: wrap;
  gap: var(--s-3); margin-bottom: var(--s-4);
}
/* nieuws sectie-kop op 60% van origineel */
.news-bento-section .eyebrow { font-size: calc(var(--step-eyebrow) * 0.85); margin-bottom: var(--s-1); }
.news-bento-section .h-section { font-size: clamp(1.2rem, 2vw, 1.7rem); margin-bottom: 0; }
.news-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 210px 210px;
  gap: 2px;
}
.nb-item {
  position: relative; overflow: hidden;
  background: var(--c-black); cursor: pointer;
  text-decoration: none;
  /* Geen display:block — grid bepaalt de afmetingen */
  min-width: 0; min-height: 0;
}
.nb-featured { grid-column: 1 / 7; grid-row: 1 / 3; }
.nb-card-a   { grid-column: 7 / 10; grid-row: 1; }
.nb-card-b   { grid-column: 10 / 13; grid-row: 1; }
.nb-card-c   { grid-column: 7 / 10; grid-row: 2; }
.nb-card-d   { grid-column: 10 / 13; grid-row: 2; }

/* Foto absoluut binnen het grid-cell — cell bepaalt de ruimte.
   WordPress wikkelt de uitgelichte afbeelding in een <figure>,
   dus die ook absoluut positioneren. */
.nb-item figure,
.nb-item .wp-post-image,
.nb-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover;
  display: block;
}
.nb-item figure img,
.nb-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transition: transform 0.5s var(--ease);
  display: block;
}
.nb-item:hover figure img,
.nb-item:hover .nb-img { transform: scale(1.04); }

/* background-image variant — geen last van WordPress inline dimensies */
.nb-bg {
  position: absolute !important;
  inset: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
  transition: transform 0.5s var(--ease);
}
.nb-item:hover .nb-bg { transform: scale(1.04); }

.nb-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #2d0608);
  color: rgba(255,255,255,0.15);
  font-family: var(--font-heading); font-size: 0.8rem; text-align: center;
}

.nb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.20) 50%,
    transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-6);
}
/* Kleine kaarten: tekst iets lager = minder padding-bottom */
.nb-card-a .nb-overlay,
.nb-card-b .nb-overlay,
.nb-card-c .nb-overlay,
.nb-card-d .nb-overlay {
  padding-bottom: calc(var(--s-6) * 0.5);
}
.nb-tag {
  display: inline-block; background: var(--c-red); color: #fff;
  font-family: var(--font-heading); font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 3px 8px; margin-bottom: var(--s-2); width: fit-content;
}
.nb-title {
  font-family: var(--font-heading); font-weight: 800;
  color: #fff; line-height: 1.15;
}
.nb-featured .nb-title { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
.nb-item:not(.nb-featured) .nb-title { font-size: 0.92rem; }
.nb-date { font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: var(--s-1); }

/* responsief */
@media (max-width: 900px) {
  .news-bento { grid-template-columns: 1fr 1fr; }
  .nb-featured { grid-column: 1 / 3; grid-row: 1; }
  .nb-card-a   { grid-column: 1; grid-row: 2; }
  .nb-card-b   { grid-column: 2; grid-row: 2; }
  .nb-card-c   { grid-column: 1; grid-row: 3; }
  .nb-card-d   { grid-column: 2; grid-row: 3; }
}
@media (max-width: 560px) {
  .news-bento { grid-template-columns: 1fr; }
  .nb-featured,.nb-card-a,.nb-card-b,.nb-card-c,.nb-card-d {
    grid-column: 1; grid-row: auto;
  }
}

/* ============================================================
   HERO V2 — exact naar het origineel
   Helvetica Neue 900, uppercase, rode punten, wedstrijdkaart
   rechts, ticker ín de hero onderaan.
   ============================================================ */

/* Override de workbench-hero met de originele versie */
.hero-v2 {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--c-black);
  overflow: hidden; position: relative;
  padding-top: var(--header-h);
}
.hero-v2 .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-v2 .hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(13,13,13,0.45) 0%,
    rgba(13,13,13,0.25) 40%,
    rgba(13,13,13,0.88) 100%);
}
.hero-v2 .hero-content {
  flex: 1; display: flex; align-items: flex-end;
  position: relative; z-index: 2;
  padding: 80px 0 0;
}
.hero-v2 .hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: end; gap: 0; width: 100%;
}
.hero-v2 .hero-left { padding: 0 48px 80px; }

.hero-v2 .hero-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.hero-v2 .hero-eyebrow-line { width: 40px; height: 2px; background: var(--c-red); }
.hero-v2 .hero-eyebrow-text {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--c-red);
}

.hero-v2 .hero-h1 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.92; letter-spacing: -2px;
  color: #fff; margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-v2 .hero-h1 em {
  font-style: normal; color: var(--c-red);
}

.hero-v2 .hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.55);
  line-height: 1.65; max-width: 420px; margin-bottom: 36px;
}
.hero-v2 .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* wedstrijdkaart rechts */
.hero-v2 .hero-right { position: relative; overflow: visible; }
.hero-match-card {
  margin: 0 48px 80px 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  padding: 32px 28px;
}
.hmc-label {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; color: var(--c-red);
  margin-bottom: 24px;
}
.hmc-teams {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; margin-bottom: 20px;
}
.hmc-team { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hmc-logo {
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.hmc-logo img { width: 100%; height: 100%; object-fit: contain; }
.hmc-name {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; color: rgba(255,255,255,0.9); letter-spacing: 1px;
}
.hmc-vs { font-size: 3rem; font-weight: 800; color: rgba(255,255,255,0.9); }
.hmc-time {
  font-size: 2.5rem; font-weight: 800; color: #fff;
  text-align: center; margin-bottom: 4px;
}
.hmc-date { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-align: center; margin-bottom: 4px; }
.hmc-loc  { font-size: 0.78rem; color: rgba(255,255,255,0.3); text-align: center; margin-bottom: 20px; }
.hmc-btns { display: flex; gap: 8px; }
.hmc-btn-solid {
  flex: 1; text-align: center; padding: 10px;
  background: var(--c-red); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  transition: background var(--dur);
}
.hmc-btn-solid:hover { background: var(--c-red-dark); }
.hmc-btn-ghost {
  flex: 1; text-align: center; padding: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  transition: all var(--dur);
}
.hmc-btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.8); }

/* ticker ín de hero */
.hero-v2 .ticker { position: relative; z-index: 2; }

/* responsief */
@media (max-width: 900px) {
  .hero-v2 .hero-inner { grid-template-columns: 1fr; }
  .hero-v2 .hero-left { padding: 0 24px 32px; }
  .hero-match-card { margin: 0 24px 32px; }
}

/* Mobiel: voorkom horizontale overflow */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
.hero-v2 {
  max-width: 100vw;
  overflow-x: hidden;
}
.hero-v2 .hero-content,
.hero-v2 .hero-inner,
.container-wide {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 600px) {
  /* container-wide padding kleiner op mobiel */
  .container-wide { padding: 0 20px; }
  /* hero-h1 iets kleiner zodat tekst niet afgekapt wordt */
  .hero-v2 .hero-h1 { font-size: clamp(2.2rem, 10vw, 4rem); letter-spacing: -1px; }
  /* wedstrijdkaart volle breedte */
  .hero-match-card { margin: 0 20px 32px; }
  /* header knoppen kleiner */
  .header-actions .btn { padding: 7px 12px; font-size: 0.72rem; }
}

/* ============================================================
   SPONSOR NIVEAUS — Platinum / Gold / Silver / Bronze
   Titel-labels zijn niet zichtbaar; niveaus bepalen alleen
   de tegelgrootte en -stijl.
   ============================================================ */

/* Gold — iets kleiner dan Platinum */
.sponsor-logos--gold { margin-top: var(--s-4); }
.sponsor-logo--gold {
  min-width: 120px !important;
  height: 72px !important;
}
.sponsor-logo--gold img { max-height: 44px !important; }

/* Silver — compact */
.sponsor-logos--silver { margin-top: var(--s-3); }
.sponsor-logo--silver {
  min-width: 96px !important;
  height: 60px !important;
  border-color: var(--c-hairline) !important;
}
.sponsor-logo--silver img { max-height: 36px !important; }

/* Bronze ticker */
.sponsor-ticker {
  margin-top: var(--s-5);
  overflow: hidden;
  border-top: 1px solid var(--c-hairline);
  padding-top: var(--s-4);
}
.sponsor-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: sponsor-tick 30s linear infinite;
  gap: var(--s-7);
}
.sponsor-ticker-item {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-on-dark-2);
  flex-shrink: 0;
}
.sponsor-ticker-item::before {
  content: "·";
  margin-right: var(--s-7);
  color: var(--c-red);
}
@keyframes sponsor-tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .sponsor-ticker-track { animation: none; }
}

/* Nieuws-sectie: tekst op donkere achtergrond */
.news-bento-section .h-section { color: var(--c-on-dark-1); }
.news-bento-section .link-underline { color: var(--c-on-dark-2); border-color: var(--c-on-dark-2); }
.news-bento-section .link-underline:hover { color: #fff; border-color: #fff; }

/* ============================================================
   WORDPRESS BLOCK OVERRIDES
   WordPress zet standaard margin/padding op wrappers die de
   header en hero verstoren. Dit neutraliseert die.
   ============================================================ */

/* Verwijder WordPress' eigen top-padding op de site-wrapper */
.wp-site-blocks { padding-top: 0 !important; padding-bottom: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }

/* Verwijder ruimte boven het eerste blok op elke pagina */
.wp-block-group:first-child,
.wp-block-template-part:first-child,
main > .wp-block-group:first-child { margin-top: 0 !important; padding-top: 0 !important; }

/* Hero-sectie altijd direct onder de fixed header, geen gap */
.hero-v2 { margin-top: 0 !important; }

/* Header fixed met hogere specificiteit dan WordPress */
header.site-header,
.site-header {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 9999 !important;
}
.admin-bar header.site-header,
.admin-bar .site-header { top: 32px !important; }
@media screen and (max-width: 782px) {
  .admin-bar header.site-header,
  .admin-bar .site-header { top: 46px !important; }
}
