/* Sporting West – stijl */

:root {
  --red: #dc1c1c; --red-dark: #a51111; --red-deep: #7c0e0e;
  --ink: #111; --text: #222; --muted: #6b6b6b; --line: #e6e6e6; --bg-soft: #f5f5f5;
  --radius: 10px; --shadow: 0 6px 24px rgba(0,0,0,.07); --wrap: 1240px;
  --font: "Titillium Web", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.section { padding: 64px 24px; }
.wrap.section { padding-left: 24px; padding-right: 24px; }
.band-light { background: var(--bg-soft); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.2rem; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0 0 .4em; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; background: var(--red); color: #fff; border: 2px solid var(--red);
  font: 700 1rem var(--font); padding: .7em 1.6em; border-radius: 4px; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-sm { padding: .4em .9em; font-size: .9rem; }
.btn-ghost { background: transparent; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost-dark { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-disabled { background: #ddd; border-color: #ddd; color: #777; cursor: default; }
.btn-disabled:hover { background: #ddd; border-color: #ddd; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.danger { color: var(--red) !important; }
form.inline { display: inline; }

/* topbalk + header */
.topbar { background: var(--red); color: #fff; font-size: .88rem; font-weight: 600; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 46px; gap: 16px; }
.topbar-links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-admin { background: rgba(0,0,0,.25); padding: 2px 10px; border-radius: 3px; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { position: relative; display: flex; align-items: center; min-height: 72px; }
.mainnav { display: flex; justify-content: space-between; width: 100%; }
.mainnav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.mainnav > ul > li > a, .mainnav .linklike { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.02rem; padding: 24px 0; display: block; }
.mainnav > ul > li > a:hover, .mainnav .linklike:hover { color: var(--red); }
.nav-right { margin-left: auto; }
.crest { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); width: 112px; z-index: 5; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); transition: transform .2s; }
.crest:hover { transform: translateX(-50%) scale(1.04); }
.crest img { width: 100%; }
.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 3px solid var(--red); box-shadow: 0 18px 40px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-in { max-width: var(--wrap); margin: 0 auto; padding: 28px 24px 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.mega-col strong { display: block; margin-bottom: 8px; color: var(--ink); }
.mega-col a { display: block; color: var(--text); text-decoration: none; padding: 3px 0; font-size: .95rem; }
.mega-col a:hover { color: var(--red); }
.menu-toggle { display: none; }

/* hero */
.hero { --hero: none; position: relative; color: #fff; background: linear-gradient(135deg, #2a2a2a, #0c0c0c); padding: 140px 0 160px;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero) center / cover no-repeat; filter: grayscale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.45)); }
.hero-small { padding: 110px 0 120px; }
.hero h1 { color: #fff; max-width: 900px; }
.hero .kicker { color: rgba(255,255,255,.8); }
.hero-intro { font-size: 1.2rem; max-width: 880px; opacity: .95; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* flash */
.flashes { padding-top: 18px; }
.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 8px; font-weight: 600; background: #e9f7ee; color: #145c2c; border-left: 4px solid #22a052; }
.flash-error { background: #fdecec; color: #8a1414; border-color: var(--red); }
.flash-info { background: #eef4fd; color: #1b3f78; border-color: #3b74d1; }
.notice { background: var(--bg-soft); border-left: 4px solid var(--ink); padding: 12px 16px; border-radius: 4px; }
.notice-admin { border-color: #e0a100; background: #fff7e0; }

/* secties & grids */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.more { font-weight: 700; text-decoration: none; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }

/* kaarten */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid #f0f0f0; }
.card.pad, .pad { padding: 24px; }
.card-media { position: relative; display: block; aspect-ratio: 16/9; background: #222; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--red); }
.card-body .btn { margin-top: auto; }
.card-body > .muted { margin-bottom: .8em; }
.badge { position: absolute; top: 10px; background: #fff; color: var(--ink); font-weight: 700; font-size: .82rem; padding: 3px 9px; border-radius: 3px; }
.badge-date, .badge-price { left: 10px; background: var(--red); color: #fff; }
.badge-aud { right: 10px; }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); text-transform: uppercase; letter-spacing: .1em; }
.ph-event span { font-size: 3.2rem; line-height: 1; letter-spacing: 0; }
.ph-news { background: linear-gradient(135deg, #2b2b2b, #0d0d0d); }
.ph-ruil { font-size: 3rem; background: linear-gradient(135deg, #3a3a3a, #161616); }
.ph-person { font-size: 2.6rem; background: linear-gradient(135deg, #3a3a3a, #111); }
.ph-team { font-size: 2.4rem; }
.meta { list-style: none; padding: 0; margin: 0 0 18px; }
.meta li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.meta li:last-child { border-bottom: 0; }
.meta .ic { width: 20px; text-align: center; flex: none; }
.meta-lg li { font-size: 1rem; }
.is-past .card-media { filter: grayscale(.85); }
.is-reserved { opacity: .7; }
.person .card-media { aspect-ratio: 1/1; }
.person .mail { font-size: .92rem; text-decoration: none; display: block; word-break: break-all; }
.people-title { margin-top: 48px; }
.team-card { text-decoration: none; }
.team-card h3 { color: var(--ink); }

/* stats, tabs, chips */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.stats div { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px 24px; }
.stats strong { display: block; font-size: 2.4rem; line-height: 1; color: #fff; }
.stats span { opacity: .8; }
.stats div:first-child { background: var(--red); }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.tabs a { padding: 10px 18px; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.active, .tabs a:hover { color: var(--ink); border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; }
.chip.active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager { display: flex; gap: 6px; margin-top: 32px; }
.pager a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--text); }
.pager a.active { background: var(--red); color: #fff; border-color: var(--red); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; background: #eee; color: #444; margin-left: 6px; }
.tag-published { background: #e3f5e9; color: #146b34; } .tag-pending { background: #fff1cc; color: #8a5a00; }
.tag-draft, .tag-gone { background: #eee; color: #666; } .tag-reserved { background: #e7eefc; color: #234d9b; }

/* detailpagina's */
.event-detail { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.sticky { position: sticky; top: 100px; }
.feature-img { border-radius: var(--radius); margin-bottom: 28px; width: 100%; }
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.4em; } .prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.price { font-size: 2rem; font-weight: 700; color: var(--red); margin: 0 0 10px; }
.edit-link { margin-top: 24px; font-size: .9rem; font-weight: 600; }
.edit-link a { text-decoration: none; }

/* formulieren */
.form label, .adm-form label { display: block; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form select, .form textarea, .filters input, .search-big input,
.adm-filter input, .adm-filter select, .row-actions select {
  display: block; width: 100%; margin-top: 6px; font: 400 1rem var(--font); padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: 2px solid rgba(220,28,28,.2); }
.form .check, label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.opt { font-weight: 400; color: var(--muted); font-size: .88em; }
.help { font-size: .85rem; color: var(--muted); margin: -8px 0 14px; }
.form-msg { min-height: 1.2em; font-weight: 600; color: var(--red); }
.form-msg.ok { color: #146b34; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.radio-row label { display: inline-flex; gap: 6px; font-weight: 400; margin-right: 14px; }
.price-input { max-width: 120px; display: inline-block !important; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0; font-size: .9rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
details summary { cursor: pointer; font-weight: 600; margin: 8px 0 14px; }

/* inloggen */
.auth { max-width: 560px; padding-top: 80px; }
.auth h1 { font-size: 3rem; }
.help-box { background: var(--bg-soft); padding: 20px 24px; border-radius: 8px; margin-top: 28px; color: var(--muted); }
.help-box strong { color: var(--ink); }
.account { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.account #gegevens { grid-column: 1 / -1; }
.list-rows { list-style: none; padding: 0; margin: 0; }
.list-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-rows li > div { display: flex; flex-direction: column; }
.list-rows li > div .tag { align-self: flex-start; margin: 4px 0 0; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.row-actions select { margin: 0; padding: 6px 8px; width: auto; }

/* ruilhoek */
.with-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.filters fieldset { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 20px; }
.filters legend { font-size: 1.15rem; padding-top: 12px; }
.filters label { display: flex; align-items: center; gap: 10px; padding: 3px 0; color: var(--text); cursor: pointer; }
.filters input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--red); }
.search-input input { margin: 0 0 18px !important; }
.empty { text-align: center; padding: 48px; background: var(--bg-soft); border-radius: var(--radius); }

/* competitie */
.matches { list-style: none; padding: 0; margin: 0 0 32px; }
.match { display: grid; grid-template-columns: 80px 1fr auto; gap: 18px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.match-date { display: flex; flex-direction: column; line-height: 1.2; text-align: center; }
.match-date strong { color: var(--red); }
.match-teams { display: flex; flex-direction: column; font-weight: 600; }
.match-score { font-weight: 700; font-size: 1.2rem; text-align: right; }
.match-score small { font-weight: 400; font-size: .85rem; color: var(--muted); }
.table-wrap { overflow-x: auto; margin-bottom: 32px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { font-size: .85rem; text-transform: uppercase; color: var(--muted); }
.table tr.is-us { background: #fff0f0; font-weight: 700; }

.list-links { list-style: none; padding: 0; margin: 0; }
.list-links a { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.list-links a:hover strong { color: var(--red); }
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 24px; }
.sponsors a { display: flex; align-items: center; justify-content: center; height: 100px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.sponsors img { max-height: 68px; width: auto; filter: grayscale(1); opacity: .8; transition: .2s; }
.sponsors a:hover img { filter: none; opacity: 1; }
.search-big { display: flex; gap: 10px; margin-bottom: 24px; }
.search-big input { margin: 0 !important; }
.results { list-style: none; padding: 0; }
.results a { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.results .kicker { color: var(--red); }

/* modal */
.modal { border: 0; padding: 0; border-radius: 14px; width: min(560px, calc(100vw - 24px)); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.modal-box { padding: 32px; position: relative; }
.modal-box h2 { margin-bottom: 4px; }
.modal-close { position: absolute; right: 14px; top: 10px; background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal .grid-2 { margin-top: 18px; }

/* footer */
.footer { background: #000; color: #cfcfcf; margin-top: 40px; }
.footer-band { height: 46px; background: linear-gradient(176deg, #fff 0 34%, var(--red-deep) 34.5% 52%, var(--red) 52.5% 100%); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 70px; padding-bottom: 50px; }
.footer h3 { color: #fff; text-transform: uppercase; font-size: 1.55rem; margin: 0 0 14px; }
.footer h3:not(:first-child) { margin-top: 26px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin: 18px 0 8px; }
.footer ul { list-style: none; padding: 0 0 0 8px; margin: 0; }
.footer li a { color: #e5e5e5; text-decoration: none; font-size: .95rem; line-height: 1.85; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 40px; font-size: .9rem; }
.footer-bottom span:last-child { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: #cfcfcf; text-decoration: none; }

/* mobiel */
@media (max-width: 1100px) {
  .mainnav { position: fixed; inset: 0 0 0 auto; width: min(380px, 90vw); background: #fff; flex-direction: column; justify-content: flex-start; padding: 80px 24px 40px;
    overflow-y: auto; transform: translateX(100%); transition: transform .25s; box-shadow: -10px 0 40px rgba(0,0,0,.2); z-index: 60; }
  .mainnav.open { transform: none; }
  .mainnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .mainnav > ul > li > a, .mainnav .linklike { padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
  .nav-right { margin: 16px 0 0; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; }
  .has-mega.open .mega { display: block; }
  .mega-in { padding: 8px 0 16px 12px; grid-template-columns: 1fr; gap: 12px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; z-index: 70; margin-left: auto; }
  .menu-toggle span:not(.sr) { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .menu-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .crest { left: 24px; transform: none; top: -20px; width: 84px; }
  .crest:hover { transform: none; }
  .header-in { min-height: 64px; }
  .topbar-links { display: none; }
  .event-detail, .split, .with-sidebar, .account { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 90px 0 110px; } .hero-small { padding: 70px 0 90px; }
  .section { padding: 44px 16px; } .wrap { padding: 0 16px; }
  .grid-2, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .match { grid-template-columns: 60px 1fr; } .match-score { grid-column: 2; text-align: left; }
  .modal-box { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
