/* =========================================================
   Vestegnen FK — design tokens
   ========================================================= */
:root {
  --blue: #1D4ED8;          /* royal blå (trøjen) */
  --blue-bright: #3B6BFF;
  --blue-soft: #E7EDFF;
  --navy-950: #050914;
  --navy-900: #0A1230;
  --navy-800: #111C44;
  --navy-700: #1B2A5E;      /* klubmærkets navy */
  --cream: #F1E4C3;         /* klubmærkets creme */
  --ink: #0B1020;
  --paper: #F4F6FB;
  --white: #FFFFFF;
  --muted: #545E74;
  --muted-dark: #AEB7CF;
  --line: #DDE2EE;
  --line-dark: rgba(255, 255, 255, .12);
  --win: #15803D;
  --draw: #6B7280;
  --loss: #B91C1C;

  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 11vw, 140px);

  color-scheme: light;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
.section--navy :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--cream); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); font-weight: 400; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* =========================================================
   Type
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--cream { color: var(--cream); }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5.25rem); letter-spacing: .01em; line-height: .92;
  margin-top: 12px;
}
.section-head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head--center .eyebrow::before { display: none; }
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-sub { color: var(--muted); max-width: 46ch; margin-top: 14px; }
.section-head--center .section-sub { margin-inline: auto; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--ink); }
.lead--light { color: #DDE3F3; max-width: 52ch; }

/* =========================================================
   Buttons, tags, chips
   ========================================================= */
.btn {
  --bg: var(--blue); --fg: var(--white); --bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-weight: 700; font-size: 1rem; letter-spacing: .02em; text-decoration: none;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bd); border-radius: 999px;
  transition: transform .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--hover, var(--navy-900)); transform: translateY(101%);
  transition: transform .35s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: .9375rem; }
.btn--blue { --hover: var(--navy-900); }
.btn--white { --bg: var(--white); --fg: var(--navy-900); --hover: var(--cream); }
.btn--ghost { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.55); --hover: rgba(255,255,255,.14); }
.btn--ghost:hover { border-color: var(--white); }
.btn--outline { --bg: transparent; --fg: var(--navy-900); --bd: var(--navy-900); --hover: var(--navy-900); }
.btn--outline:hover { color: var(--white); }

.tag {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: #E6E9F1; color: var(--muted);
}
.tag--home { background: var(--blue-soft); color: var(--blue); }
.tag--blue { background: var(--blue); color: var(--white); }

.res {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
  font-size: .75rem; font-weight: 700; color: var(--white);
}
.res--w { background: var(--win); }
.res--d { background: var(--draw); }
.res--l { background: var(--loss); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--line-dark); background: transparent; color: var(--muted-dark);
  font-weight: 600; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { color: var(--white); border-color: rgba(255,255,255,.4); }
.chip[aria-pressed="true"] { background: var(--white); color: var(--navy-900); border-color: var(--white); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--white);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .45s var(--ease);
}
.site-header.is-solid {
  background: rgba(10, 18, 48, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand__text { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .04em; line-height: 1; }
.brand__text b { font-weight: 400; color: var(--white); }

.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  position: relative; display: block; padding: 10px 12px; text-decoration: none;
  font-weight: 600; font-size: .9375rem; color: rgba(255,255,255,.82); transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--cream); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--white); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: none; }

.menu-toggle {
  width: 48px; height: 48px; border: 0; background: transparent; position: relative; border-radius: 12px;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .35s var(--ease);
}
.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 27px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--navy-900);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a:not(.btn) {
  display: block; padding: 6px 0; text-decoration: none; color: var(--white);
  font-family: var(--font-display); font-size: clamp(2.5rem, 11vw, 3.5rem); line-height: 1.05; letter-spacing: .02em;
}
.mobile-menu .btn { align-self: flex-start; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--navy-900); transform: none; }

@media (min-width: 1080px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); background: var(--navy-900); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 40%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,18,48,.65) 0%, rgba(10,18,48,0) 22%),
    linear-gradient(0deg, rgba(5,9,20,.96) 8%, rgba(10,18,48,.72) 42%, rgba(10,18,48,0) 70%);
}
.hero__content {
  position: relative; z-index: 1; display: grid; gap: 32px; align-items: end;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(56px, 9vh, 96px);
}
.hero__eyebrow { display: flex; width: fit-content; margin-bottom: 18px; font-family: var(--font-body); line-height: 1.6; color: var(--cream); }
.hero__eyebrow::before { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4rem, 15vw, 10.5rem); line-height: .86; letter-spacing: .005em;
  margin: 16px 0 20px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--blue-bright); }
.hero__lead { max-width: 44ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #DDE3F3; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.next-card {
  background: rgba(17, 28, 68, .62); border: 1px solid rgba(255,255,255,.16); border-radius: 20px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 22px; width: 100%; max-width: 420px;
}
.next-card__label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); }
.next-card__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0; text-align: center; }
.team { display: grid; justify-items: center; gap: 8px; font-weight: 700; font-size: .9375rem; line-height: 1.2; }
.team img { width: 60px; height: 60px; }
.vs { font-family: var(--font-display); font-size: 1.75rem; color: var(--muted-dark); }
.next-card__meta { display: flex; align-items: center; gap: 8px; color: #DDE3F3; font-size: .9375rem; }
.next-card__meta + .next-card__meta { margin-top: 4px; }
.next-card__meta svg { width: 16px; height: 16px; color: var(--cream); flex: none; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.countdown div { background: rgba(255,255,255,.07); border-radius: 12px; padding: 10px 4px; text-align: center; }
.countdown b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }

.oppcrest {
  --c: #334155;
  display: inline-grid; place-items: center; width: 44px; height: 50px;
  background: var(--c); color: var(--white); font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  clip-path: polygon(50% 0, 100% 12%, 100% 58%, 50% 100%, 0 58%, 0 12%);
}
.oppcrest--lg { width: 56px; height: 64px; font-size: 1.1rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; display: none;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

.next-card__label { margin-bottom: 10px; }

/* Season summary variant of the hero card */
.season-rank { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.season-rank img { width: 56px; height: 56px; }
.season-rank p { display: flex; align-items: baseline; gap: 8px; }
.season-rank b { font-family: var(--font-display); font-weight: 400; font-size: 4rem; line-height: .9; }
.season-rank span { font-weight: 700; color: var(--muted-dark); text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; }
.season-stats { margin-bottom: 0; }
.season-stats dt { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); order: 2; }
.season-stats div { display: flex; flex-direction: column; }
.season-stats dd { margin: 0; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }

/* Phones & tablets: photo on top, copy below so no faces are covered */
@media (max-width: 999px) {
  .hero { min-height: auto; display: block; }
  .hero__media { position: relative; height: min(68vw, 560px); min-height: 300px; }
  .hero__shade { bottom: auto; height: min(68vw, 560px); min-height: 300px;
    background: linear-gradient(180deg, rgba(10,18,48,.6) 0%, rgba(10,18,48,0) 26%, rgba(10,18,48,0) 70%, var(--navy-900) 100%); }
  .hero__content { padding-top: 8px; padding-bottom: 48px; }
  .hero__title { margin-top: 12px; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .hero__content { grid-template-columns: 1.2fr 1fr; align-items: end; }
}

/* Desktop: copy on navy, photo clipped on a diagonal, match strip along the bottom */
@media (min-width: 1000px) {
  .hero { min-height: max(100svh, 760px); align-items: stretch; }
  .hero__media { left: 38%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
  .hero__img { object-position: 50% 35%; }
  .hero__shade {
    background:
      linear-gradient(90deg, var(--navy-900) 36%, rgba(10,18,48,0) 54%),
      linear-gradient(0deg, rgba(5,9,20,.9) 0%, rgba(5,9,20,0) 30%),
      linear-gradient(180deg, rgba(10,18,48,.55) 0%, rgba(10,18,48,0) 18%);
  }
  /* Royal blue accent along the photo's diagonal edge (media starts at 38%, top edge at 38% + 14% of 62%) */
  .hero::before {
    content: ""; position: absolute; z-index: 1; inset: 0; background: var(--blue-bright);
    clip-path: polygon(46.68% 0, calc(46.68% + 6px) 0, calc(38% + 6px) 100%, 38% 100%);
  }
  .hero__content { align-content: center; padding-bottom: 190px; }
  .hero__copy { max-width: 600px; }
  .hero__title { font-size: clamp(5rem, 8.4vw, 9rem); }
  .next-card {
    position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; max-width: none;
    display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; padding: 18px 24px;
  }
  .next-card__teams { margin: 0; gap: 20px; }
  .next-card__teams .team { grid-auto-flow: column; align-items: center; gap: 12px; }
  .next-card__teams .team:first-child span { order: -1; }
  .team img { width: 52px; height: 52px; }
  .oppcrest--lg { width: 46px; height: 52px; }
  .countdown { margin: 0; min-width: 320px; }
  .season-rank { margin: 0; }
  .scroll-cue { display: none; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee { background: var(--blue); color: var(--white); overflow: hidden; padding: 14px 0; border-block: 1px solid rgba(255,255,255,.15); }
.marquee__track { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: .04em; white-space: nowrap; line-height: 1; }
.marquee i { font-style: normal; color: var(--cream); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy .section-sub { color: var(--muted-dark); }

/* ---------- Kampe ---------- */
.matches { display: grid; gap: 24px; }
@media (min-width: 960px) { .matches { grid-template-columns: 5fr 6fr; gap: 32px; align-items: start; } }

.fixtures, .standings { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.5vw, 28px); }
.tabs { position: relative; display: flex; gap: 4px; padding: 4px; background: var(--paper); border-radius: 999px; margin-bottom: 16px; }
.tab { position: relative; z-index: 1; flex: 1; min-height: 44px; border: 0; background: transparent; border-radius: 999px; font-weight: 700; color: var(--muted); transition: color .3s var(--ease); }
.tab[aria-selected="true"] { color: var(--white); }
.tabs__ink { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 999px; background: var(--navy-900); transition: transform .45s var(--ease); }
.tabs[data-active="1"] .tabs__ink { transform: translateX(calc(100% + 4px)); }

.fixture { display: flex; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.fixture:last-child { border-bottom: 0; }
.fixture__date { flex: none; width: 56px; height: 60px; border-radius: 12px; background: var(--paper); display: grid; place-content: center; text-align: center; }
.fixture__date b { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: .9; color: var(--blue); }
.fixture__date span { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fixture__teams { font-weight: 600; line-height: 1.3; }
.fixture__teams strong { color: var(--navy-900); }
.fixture__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: .875rem; color: var(--muted); }
.score { display: inline-block; padding: 0 8px; margin: 0 4px; border-radius: 6px; background: var(--navy-900); color: var(--white); font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; letter-spacing: .04em; }

.standings__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.standings__head h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; letter-spacing: .02em; }
.form { display: flex; gap: 4px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.table th, .table td { padding: 11px 6px; text-align: center; white-space: nowrap; }
.table thead th { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.table tbody tr { border-bottom: 1px solid var(--line); }
.table tbody tr:last-child { border-bottom: 0; }
.table .t-team { text-align: left; font-weight: 600; width: 100%; }
.table tbody td:first-child { color: var(--muted); font-weight: 600; }
.table tr.is-us { position: relative; background: var(--blue); color: var(--white); }
.table tr.is-us td, .table tr.is-us th { color: var(--white); }
.table tr.is-us td:first-child { border-radius: 10px 0 0 10px; }
.table tr.is-us td:last-child { border-radius: 0 10px 10px 0; }
.table tr.zone-up td:first-child { box-shadow: inset 3px 0 0 var(--win); }
.table tr.zone-down td:first-child { box-shadow: inset 3px 0 0 var(--loss); }
.table-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: .8125rem; color: var(--muted); }
.table-legend span { display: inline-flex; align-items: center; gap: 6px; }
.table-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--win); }
.table-legend i.down { background: var(--loss); }
.table-legend a, .fixtures__note a { color: var(--blue); font-weight: 600; }
.fixtures__note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
@media (max-width: 479px) { .t-hide { display: none; } .table th, .table td { padding-inline: 4px; } }

/* ---------- Stats ---------- */
.stats { background: var(--blue); color: var(--white); padding-block: clamp(48px, 7vw, 80px); overflow: hidden; position: relative; }
.stats::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 3px, transparent 3px 6px);
}
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 800px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(3.5rem, 8vw, 6rem); line-height: .9; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: #DCE5FF; font-weight: 600; }

/* ---------- Truppen ---------- */
.squad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .squad { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .squad { grid-template-columns: repeat(4, 1fr); } }
.player.is-out { display: none; }
.player button {
  position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: clamp(14px, 2vw, 22px); border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(59,107,255,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
  transition: transform .45s var(--ease), border-color .3s var(--ease), box-shadow .45s var(--ease);
}
.player button::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/vfk-crest.png") no-repeat 115% 110% / 70%;
  opacity: .06; transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.player button::after {
  content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--blue-bright);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.player button:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.3); box-shadow: 0 24px 48px -20px rgba(0,0,0,.6); }
.player button:hover::before { opacity: .12; transform: scale(1.05); }
.player button:hover::after { transform: scaleX(1); }
.player__no {
  position: absolute; top: 6px; left: clamp(12px, 2vw, 18px);
  font-family: var(--font-display); font-size: clamp(5rem, 12vw, 8.5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.35);
  transition: color .45s var(--ease), -webkit-text-stroke-color .45s var(--ease), transform .45s var(--ease);
}
.player button:hover .player__no { color: var(--blue-bright); -webkit-text-stroke-color: var(--blue-bright); transform: translateY(-4px); }
.player__badge {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); color: var(--navy-900); font-weight: 700; font-size: .875rem;
}
.player__pos { position: relative; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.player__name { position: relative; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: .95; letter-spacing: .02em; color: var(--white); overflow-wrap: anywhere; }
.player__name span { display: block; font-family: var(--font-body); font-size: .9375rem; font-weight: 500; letter-spacing: 0; color: var(--muted-dark); margin-bottom: 2px; }

/* Player dialog */
.player-dialog {
  width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 24px;
  background: var(--navy-900); color: var(--white); overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.7);
}
.player-dialog::backdrop { background: rgba(5,9,20,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player-dialog[open] { animation: dialog-in .45s var(--ease); }
.player-dialog[open]::backdrop { animation: fade-in .3s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }
.pd__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .2s; }
.pd__close:hover { background: rgba(255,255,255,.2); }
.pd__close svg { width: 20px; height: 20px; }
.pd__hero {
  position: relative; padding: 40px 28px 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(59,107,255,.55), transparent 60%), linear-gradient(160deg, var(--blue), var(--navy-800));
}
.pd__no { position: absolute; right: 24px; bottom: -26px; font-family: var(--font-display); font-size: 11rem; line-height: 1; color: rgba(255,255,255,.12); }
.pd__crest { width: 56px; height: 56px; margin-bottom: 28px; }
.pd__pos { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.pd__name { margin-top: 6px; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 9vw, 3.5rem); line-height: .92; letter-spacing: .02em; }
.pd__name span { display: block; font-size: .55em; color: #DCE5FF; }
.pd__name b { font-weight: 400; }
.pd__stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-bottom: 1px solid var(--line-dark); }
.pd__stats div { padding: 18px 8px; text-align: center; border-right: 1px solid var(--line-dark); }
.pd__stats div:last-child { border-right: 0; }
.pd__stats dt { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.pd__stats dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 2.25rem; line-height: 1; }
.pd__foot { padding: 16px 28px 24px; color: var(--muted-dark); font-size: .9375rem; }
.pd__foot b { color: var(--white); }

/* ---------- Nyheder ---------- */
.news { display: grid; gap: 20px; }
@media (min-width: 720px) { .news { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .news { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; }
  .news-card--feature { grid-row: span 2; }
}
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 28px 48px -28px rgba(11,16,32,.35); }
.news-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.news-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__media--art { display: grid; place-items: center; }
.news-card__media--art svg { width: 38%; height: auto; transition: transform .7s var(--ease); }
.news-card:hover .news-card__media--art svg { transform: rotate(-6deg) scale(1.08); }
.art--kit { background: radial-gradient(80% 80% at 50% 30%, #2A5BEA, var(--navy-900)); }
.art--volunteer { background: linear-gradient(135deg, var(--navy-700), var(--navy-950)); color: var(--cream); }
.art--volunteer svg, .art--training svg { width: 28%; }
.art--training { background: linear-gradient(135deg, var(--blue), var(--navy-800)); color: var(--white); }
.news-card__body { display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2.4vw, 26px); flex: 1; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); }
.news-card h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; color: var(--navy-900); }
.news-card--feature h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: .98; letter-spacing: .01em; }
.news-card--feature .news-card__media { aspect-ratio: 16 / 11; }
.news-card__body > p:not(.news-card__meta) { color: var(--muted); }
.more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); }
.more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.news-card:hover .more svg { transform: translateX(5px); }

/* ---------- Klubben ---------- */
.club { display: grid; gap: clamp(40px, 6vw, 72px); }
@media (min-width: 960px) {
  .club { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .timeline { grid-column: 1 / -1; }
}
.club__text { display: grid; gap: 16px; max-width: 60ch; }
.club__text p:not(.lead) { color: var(--muted); }
.values { display: grid; gap: 14px; margin-top: 32px; }
.values li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--paper); }
.values svg { width: 26px; height: 26px; flex: none; color: var(--blue); margin-top: 2px; }
.values b { display: block; font-size: 1.05rem; }
.values span { color: var(--muted); }
.club__crest { margin: 0; justify-self: center; position: relative; width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.club__crest::before {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-soft) 0%, transparent 68%);
}
.club__crest::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed #C5D1F5;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.club__crest img { position: relative; width: 66%; filter: drop-shadow(0 24px 30px rgba(10,18,48,.25)); }

.timeline { position: relative; display: grid; gap: 28px; padding-left: 32px; }
.timeline__line { position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__line span { position: absolute; inset: 0; background: var(--blue); transform-origin: top; transform: scaleY(var(--p, 1)); }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--blue);
}
.timeline li.is-now::before { background: var(--blue); box-shadow: 0 0 0 6px var(--blue-soft); }
.timeline b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--blue); }
.timeline h3 { font-size: 1.1rem; font-weight: 700; margin: 4px 0; line-height: 1.3; }
.timeline p { color: var(--muted); }
@media (min-width: 960px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 24px; padding-left: 0; padding-top: 36px; }
  .timeline__line { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 2px; }
  .timeline__line span { transform-origin: left; transform: scaleX(var(--p, 1)); }
  .timeline li::before { left: 0; top: -36px; }
}

/* ---------- Stadion ---------- */
.stadium { overflow: hidden; }
.stadium__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .stadium__grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.info-list { display: grid; gap: 4px; margin: 32px 0; }
@media (min-width: 560px) { .info-list { grid-template-columns: 1fr 1fr; gap: 12px; } }
.info-list li { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); }
.info-list svg { width: 22px; height: 22px; flex: none; color: var(--cream); margin-top: 2px; }
.info-list b { display: block; }
.info-list span { color: var(--muted-dark); font-size: .9375rem; }

.pitch { position: relative; margin: 0; }
.pitch__svg { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.pitch__grass { fill: #1B5E35; }
.pitch__stripes rect { fill: #1F6A3C; }
.pitch__lines { stroke: rgba(255,255,255,.75); }
.pitch__lines > * { stroke-dasharray: var(--len, 1200); stroke-dashoffset: 0; }
.pitch__spot { fill: #fff; }
.pitch__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22%; aspect-ratio: 1; display: grid; place-items: center; }
.pitch__pin img { position: relative; width: 100%; filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)); }
.pitch__pulse { position: absolute; inset: 0; border-radius: 50%; background: rgba(241,228,195,.35); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Medlemskab ---------- */
.tiers { display: grid; gap: 20px; max-width: 1100px; margin-inline: auto; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.tier { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: var(--white); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.tier:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -32px rgba(11,16,32,.35); }
.tier ul { display: grid; gap: 10px; margin-bottom: 8px; }
.tier li { display: flex; gap: 10px; align-items: flex-start; }
.tier li svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 3px; }
.tier .btn { margin-top: auto; }
.tier__name { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8125rem; color: var(--muted); }
.tier__price b { font-family: var(--font-display); font-weight: 400; font-size: 3.25rem; line-height: 1; }
.tier__price span { color: var(--muted); margin-left: 6px; }
.tier--featured { background: linear-gradient(160deg, var(--blue), var(--navy-900)); color: var(--white); border-color: transparent; }
.tier--featured .tier__name, .tier--featured .tier__price span { color: #DCE5FF; }
.tier--featured li svg { color: var(--cream); }
.tier__flag { position: absolute; top: 20px; right: 20px; padding: 4px 12px; border-radius: 999px; background: var(--cream); color: var(--navy-900); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 900px) { .tier--featured { transform: translateY(-12px); } .tier--featured:hover { transform: translateY(-18px); } }

/* ---------- Shop ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .products { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.product { display: flex; flex-direction: column; gap: 6px; }
.product__art { aspect-ratio: 1; border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; }
.product__art svg { width: 72%; height: auto; transition: transform .7s var(--ease); filter: drop-shadow(0 18px 22px rgba(0,0,0,.28)); }
.product:hover .product__art svg { transform: translateY(-8px) rotate(-4deg) scale(1.04); }
.product__art--blue { background: radial-gradient(90% 90% at 50% 20%, #E3EAFF, #C8D5FB); }
.product__art--dark { background: radial-gradient(90% 90% at 50% 20%, var(--navy-700), var(--navy-950)); }
.product__art--light { background: radial-gradient(90% 90% at 50% 20%, #FFFFFF, #E3E7F0); }
.product h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.product__price { color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.product .btn { align-self: flex-start; }

/* ---------- Sponsorer ---------- */
.main-sponsors { display: grid; gap: 16px; }
@media (min-width: 800px) { .main-sponsors { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.main-sponsor {
  position: relative; isolation: isolate; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 24px 24px 22px; border-radius: 20px; text-decoration: none;
  background: var(--navy-900); color: var(--white);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.main-sponsor::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 50% 0%, rgba(59,107,255,.45), transparent 70%);
  opacity: .6; transition: opacity .45s var(--ease);
}
.main-sponsor:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10,18,48,.7); }
.main-sponsor:hover::before { opacity: 1; }
.main-sponsor__label { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cream); }
.main-sponsor img {
  width: auto; max-width: 82%; height: 120px; object-fit: contain; margin-block: auto;
  transition: transform .6s var(--ease);
}
.main-sponsor img.is-mono { height: 64px; filter: brightness(0) invert(1); } /* teal wordmark → white on navy */
.main-sponsor:hover img { transform: scale(1.06); }
.main-sponsor__visit { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9375rem; color: #DCE5FF; }
.main-sponsor__visit svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.main-sponsor:hover .main-sponsor__visit svg { transform: translateX(4px); }
.sponsor-cta { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: clamp(24px, 3.5vw, 36px); border-radius: 20px; background: var(--blue-soft); }
.sponsor-cta h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: .02em; color: var(--navy-900); }
.sponsor-cta p { color: var(--muted); margin-top: 6px; max-width: 52ch; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--muted-dark); padding: clamp(56px, 8vw, 88px) 0 28px; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand { display: flex; gap: 16px; align-items: center; }
.footer__brand img { width: 72px; height: 72px; flex: none; }
.footer__brand b { color: var(--white); font-size: 1.05rem; }
.footer h3 { color: var(--white); font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: .04em; margin-bottom: 10px; }
.footer a { color: var(--white); text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 4px; }
.footer a:hover { color: var(--cream); }
.footer__links { display: grid; gap: 4px; }
.footer__links a { text-decoration: none; display: inline-block; padding: 4px 0; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.socials a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); color: var(--white); }
.socials svg { width: 20px; height: 20px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .875rem; }
.to-top { text-decoration: none; }

/* =========================================================
   Animation start states (only while GSAP is running)
   ========================================================= */
.anim [data-reveal],
.anim [data-stagger] > *,
.anim [data-hero],
.anim [data-hero-card] { opacity: 0; }
.anim .hero__title .line > span { transform: translateY(105%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
}
