/* =========================================================
   FYNSLUND BK HÅNDBOLD – PROFESSIONEL FORSIDE
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  --green-950: #032b17;
  --green-900: #054523;
  --green-800: #07602b;
  --green-700: #0a7a2f;
  --green-600: #119541;
  --green-500: #16a34a;
  --green-100: #dcfce7;

  --gold-500: #e2b93b;
  --gold-400: #f0cb55;
  --gold-100: #fff4c7;

  --navy-950: #030712;
  --navy-900: #07111f;
  --navy-800: #0d1b2f;
  --navy-700: #17243a;

  --white: #ffffff;
  --surface: #f7f9fc;
  --surface-2: #eef2f7;
  --text: #101828;
  --text-soft: #344054;
  --muted: #667085;
  --line: #e4e7ec;

  --shadow-sm: 0 8px 24px rgba(3, 7, 18, 0.08);
  --shadow-md: 0 18px 46px rgba(3, 7, 18, 0.14);
  --shadow-lg: 0 32px 80px rgba(3, 7, 18, 0.24);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;

  --container: 1440px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 18%, rgba(22, 163, 74, 0.08), transparent 30%),
    radial-gradient(circle at 95% 82%, rgba(226, 185, 59, 0.08), transparent 28%),
    #f4f7fb;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(3, 7, 18, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--container));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
  color: var(--white);
  text-decoration: none;
}

.brand img {
  width: 60px;
  height: 60px;
  padding: 6px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.28),
    0 0 0 2px rgba(226, 185, 59, 0.42);
  transition: transform 0.25s ease;
}

.brand:hover img {
  transform: translateY(-2px) scale(1.04);
}

.brand-text {
  display: grid;
  line-height: 1.08;
}

.brand-text small {
  color: var(--gold-400);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.brand-text strong {
  margin-top: 5px;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.main-nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  color: #d0d5dd;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.main-nav a:not(.nav-cta):hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--white);
}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 94px 20px 88px;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(3, 7, 18, 0.98), rgba(7, 17, 31, 0.96) 48%, rgba(5, 69, 35, 0.94));
}

.hero::before {
  content: "";
  position: absolute;
  width: min(820px, 70vw);
  aspect-ratio: 1;
  right: -240px;
  top: 50%;
  transform: translateY(-50%);
  z-index: -2;
  background: url("Fynslund.png") center / contain no-repeat;
  opacity: 0.055;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 185, 59, 0.7), transparent);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-glow-one {
  width: 480px;
  height: 480px;
  left: -180px;
  top: -210px;
  background: rgba(22, 163, 74, 0.18);
}

.hero-glow-two {
  width: 360px;
  height: 360px;
  right: 8%;
  bottom: -230px;
  background: rgba(226, 185, 59, 0.13);
}

.hero-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.hero-content {
  max-width: 790px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-400);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -3.2px;
  text-wrap: balance;
}

.hero-content > p {
  max-width: 690px;
  margin-top: 25px;
  color: #cbd5e1;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 550;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  min-height: 52px;
  padding: 14px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 14px 34px rgba(226, 185, 59, 0.24);
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.hero-highlights {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-highlights span {
  padding: 9px 13px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 750;
}

.hero-highlights strong {
  color: var(--white);
  font-size: 15px;
  font-weight: 950;
}

.hero-club-card {
  position: relative;
  min-height: 430px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 36px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.hero-club-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.hero-club-card-label {
  position: absolute;
  top: 24px;
  left: 25px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--gold-400);
  background: rgba(3, 7, 18, 0.34);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-logo-wrap {
  width: 152px;
  height: 152px;
  padding: 13px;
  border-radius: 50%;
  background: var(--white);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.34),
    0 0 0 5px rgba(226, 185, 59, 0.32);
}

.hero-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-club-card h2 {
  margin-top: 26px;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.8px;
  text-transform: uppercase;
}

.hero-club-card p {
  max-width: 260px;
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 650;
}

.hero-card-line {
  width: 74px;
  height: 3px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--gold-400);
}

.hero-card-season {
  margin-top: 15px;
  color: var(--gold-100);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

/* =========================================================
   GENERELLE SEKTIONSOVERSKRIFTER
========================================================= */

.section-heading {
  width: min(calc(100% - 40px), 860px);
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2 {
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -1.6px;
  text-wrap: balance;
}

.section-heading p {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 550;
}

.section-heading-dark h2 {
  color: var(--white);
}

.section-heading-dark p {
  color: #b8c2d1;
}

.section-heading-left {
  width: auto;
  margin: 0 0 32px;
  text-align: left;
}

.section-heading-left p {
  margin-left: 0;
}

/* =========================================================
   SPONSORER
========================================================= */

.sponsor-section {
  position: relative;
  z-index: 4;
  padding: 72px 0 60px;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 15%, rgba(22, 163, 74, 0.12), transparent 30%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 60%, var(--green-950));
}

.sponsor-ticker {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 0 22px;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  touch-action: pan-y;
}

.sponsor-ticker::-webkit-scrollbar {
  display: none;
}

/* Fade i siderne uden grønne blokke */
.sponsor-ticker::before,
.sponsor-ticker::after {
  display: none;
}

.sponsor-ticker {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black 70px,
    black calc(100% - 70px),
    transparent 100%
  );

  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 70px,
    black calc(100% - 70px),
    transparent 100%
  );
}

.sponsor-ticker.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: sponsor-loop 95s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 4px 8px 4px 24px;
}

.ticker-group:last-child {
  padding-right: 24px;
}

.sponsor-ticker:hover .ticker-track,
.sponsor-ticker.is-dragging .ticker-track {
  animation-play-state: paused;
}

.sponsor-logo {
  width: 178px;
  min-height: 132px;
  padding: 16px 13px 13px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 19px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.sponsor-logo:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 185, 59, 0.55);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.sponsor-logo img {
  width: auto;
  height: 62px;
  max-width: 142px;
  object-fit: contain;
  pointer-events: none;
}

.sponsor-logo span {
  min-height: 34px;
  margin-top: 10px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
}

.ticker-help {
  margin-top: 12px;
  color: #8f9bad;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.5px;
  text-align: center;
}

@keyframes sponsor-loop {
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   KOMPAKT SPONSORSEKTION
========================================================= */

.sponsor-section {
  padding: 38px 0 30px;
}

/* Mindre afstand under overskriften */
.sponsor-section .section-heading {
  margin-bottom: 22px;
}

.sponsor-section .section-heading h2 {
  margin-top: 7px;
  font-size: clamp(28px, 3.2vw, 44px);
}

.sponsor-section .section-heading p {
  margin-top: 8px;
  font-size: 14px;
}

/* Mindre luft omkring slideren */
.sponsor-ticker {
  padding: 4px 0 10px;
}

/* Fade-effekten følger kortenes nye højde */
.sponsor-ticker::before,
.sponsor-ticker::after {
  height: 122px;
}

/* Lidt mindre mellemrum mellem sponsorerne */
.ticker-group {
  gap: 14px;
  padding-top: 2px;
  padding-bottom: 2px;
}

/* Mere kompakte sponsorkort */
.sponsor-logo {
  width: 164px;
  min-height: 116px;
  padding: 12px 11px 10px;
  border-radius: 17px;
}

.sponsor-logo img {
  height: 52px;
  max-width: 132px;
}

.sponsor-logo span {
  min-height: 28px;
  margin-top: 7px;
  font-size: 10px;
}

/* Hjælpeteksten tættere på slideren */
.ticker-help {
  margin-top: 7px;
  font-size: 10px;
}

/* =========================================================
   STØRRE SPONSORKORT
========================================================= */

/* Lidt mere afstand mellem sponsorerne */
.ticker-group,
.ticker-track {
  gap: 20px;
}

/* Større sponsorboks */
.sponsor-logo {
  width: 195px;
  min-width: 195px;
  min-height: 142px;
  flex: 0 0 195px;

  padding: 15px 14px 12px;
  border-radius: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 24, 40, 0.08);

  box-shadow:
    0 10px 25px rgba(16, 24, 40, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Større sponsorlogo */
.sponsor-logo img {
  width: auto;
  height: 68px;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Større sponsornavn */
.sponsor-logo span {
  min-height: 34px;
  margin-top: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #344054;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

/* Hover */
.sponsor-logo:hover {
  transform: translateY(-5px) scale(1.025);

  box-shadow:
    0 17px 34px rgba(16, 24, 40, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Fade-effekten tilpasses den større højde */
.sponsor-ticker::before,
.sponsor-ticker::after {
  height: 150px;
}

/* Mobil */
@media (max-width: 600px) {
  .sponsor-logo {
    width: 170px;
    min-width: 170px;
    min-height: 130px;
    flex-basis: 170px;
  }

  .sponsor-logo img {
    height: 58px;
    max-width: 140px;
  }

  .sponsor-logo span {
    font-size: 11px;
  }
}

/* =========================================================
   HOLDKORT / NAVIGATIONSKORT
========================================================= */

/* Ekstra afstand mellem holdkortene og næste sektion */
.teams-section {
  padding-bottom: 90px;
}


/* FIRE BOKSE PÅ HVER RÆKKE */
.team-grid {
  width: min(100%, 1280px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* SELVE BOKSEN */
.team-card {
  position: relative;
  width: 100%;
  min-width: 0;

  /* Giver kortet samme boksform som før */
  aspect-ratio: 3 / 2;
  min-height: 195px;

  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  color: var(--text);
  text-decoration: none;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.99),
      rgba(247, 249, 252, 0.99)
    );

  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 25px;

  box-shadow:
    0 14px 32px rgba(16, 24, 40, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

/* DE EKSTRA KLASSER ÆNDRER IKKE STØRRELSEN */
.team-card.team-card-featured,
.team-card.team-card-info {
  color: var(--text);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.99),
      rgba(247, 249, 252, 0.99)
    );
}

/* DEKORATIV CIRKEL I HJØRNET */
.team-card::before {
  content: "";
  position: absolute;
  top: -62px;
  right: -62px;

  width: 140px;
  height: 140px;
  border-radius: 50%;

  background: rgba(22, 163, 74, 0.07);

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

/* KATEGORI */
.team-card-type {
  position: relative;
  z-index: 1;

  color: var(--green-700);

  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.7px;
  text-transform: uppercase;

  transition: color 0.25s ease;
}

/* TITEL */
.team-card strong {
  position: relative;
  z-index: 1;

  margin-top: 18px;

  color: var(--text);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.6px;

  transition: color 0.25s ease;
}

/* BESKRIVELSE */
.team-card-text {
  position: relative;
  z-index: 1;

  margin-top: 9px;

  color: var(--muted);
  font-size: 12px;
  font-weight: 650;

  transition: color 0.25s ease;
}

/* GRØN CIRKEL SOM STANDARD */
.team-card-arrow {
  position: absolute;
  right: 20px;
  bottom: 18px;

  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  color: var(--white);
  background: var(--green-700);

  border-radius: 50%;

  font-size: 20px;
  font-weight: 900;

  box-shadow: 0 8px 18px rgba(10, 122, 47, 0.22);

  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

/* HELE BOKSEN BLIVER GRØN */
.team-card:hover {
  color: var(--white);

  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.15),
      transparent 38%
    ),
    linear-gradient(
      140deg,
      var(--green-900),
      var(--green-700)
    );

  border-color: rgba(255, 255, 255, 0.15);

  transform: translateY(-7px);

  box-shadow:
    0 24px 52px rgba(10, 122, 47, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.team-card:hover::before {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.25);
}

/* TEKST VED HOVER */
.team-card:hover strong {
  color: var(--white);
}

.team-card:hover .team-card-type {
  color: #d9fbe4;
}

.team-card:hover .team-card-text {
  color: rgba(255, 255, 255, 0.82);
}

/* HVID CIRKEL MED GRØN PIL VED HOVER */
.team-card:hover .team-card-arrow {
  color: var(--green-800);
  background: var(--white);

  transform: translateX(4px);

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.2),
    0 0 0 4px rgba(255, 255, 255, 0.12);
}

/* TASTATURNAVIGATION */
.team-card:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 4px;
}

/* TRE BOKSE PÅ MINDRE COMPUTERSKÆRME */
@media (max-width: 1120px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* TO BOKSE PÅ TABLET */
@media (max-width: 880px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-card {
    aspect-ratio: auto;
    min-height: 195px;
  }
}

/* ÉN BOKS PÅ MOBIL */
@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: 175px;
  }
}

/* =========================================================
   HJEMMEKAMPE
========================================================= */

.home-fixtures-section {
  position: relative;
  padding: 88px 20px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 15%, rgba(22, 163, 74, 0.15), transparent 32%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 65%, var(--green-950));
}

.home-fixtures-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.home-fixtures-list {
  display: grid;
  gap: 11px;
}

.home-fixture {
  min-height: 104px;
  display: grid;
  grid-template-columns: 82px minmax(230px, 1.2fr) minmax(130px, 0.55fr) minmax(250px, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(10px);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.home-fixture:hover {
  transform: translateX(5px);
  border-color: rgba(226, 185, 59, 0.25);
  background: rgba(255, 255, 255, 0.095);
}

.fixture-date {
  height: 100%;
  min-height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(10, 122, 47, 0.92), rgba(5, 69, 35, 0.96));
}

.fixture-date span,
.fixture-date small {
  color: var(--gold-400);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 1.3px;
}

.fixture-date strong {
  margin: 1px 0;
  font-size: 31px;
  font-weight: 950;
  line-height: 1;
}

.fixture-main,
.fixture-time,
.fixture-referee {
  padding: 18px 22px;
}

.fixture-main {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.fixture-team-label,
.fixture-time span,
.fixture-referee span {
  display: block;
  color: #8f9bad;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.fixture-opponent {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.fixture-opponent img {
  width: 38px;
  height: 38px;
  padding: 4px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  box-shadow: 0 7px 17px rgba(0, 0, 0, 0.2);
}

.fixture-opponent strong {
  font-size: 16px;
  font-weight: 900;
}

.fixture-time {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.fixture-time strong {
  display: block;
  margin-top: 5px;
  color: var(--gold-400);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.8px;
}

.fixture-referee strong {
  display: block;
  margin-top: 5px;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

/* =========================================================
   NÆSTE KAMPE
========================================================= */

.next-fixtures-section {
  padding: 94px 20px 104px;
  background:
    radial-gradient(circle at 10% 100%, rgba(226, 185, 59, 0.08), transparent 28%),
    #f4f7fb;
}

.next-matches {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.match-box {
  min-width: 0;
  min-height: 430px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 25px;
  color: var(--text);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(241, 245, 249, 0.97));
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.match-box::before {
  content: "";
  height: 4px;
  margin: -20px -20px 16px;
  background: linear-gradient(90deg, var(--green-700), var(--gold-400));
}

.match-box:hover {
  transform: translateY(-8px);
  border-color: rgba(22, 163, 74, 0.22);
  box-shadow: var(--shadow-md);
}

.match-box-top {
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.match-category {
  color: var(--green-700);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.home-pill {
  padding: 5px 8px;
  border-radius: 999px;
  color: #0fe745;
  background: #eaf2ff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.away-pill {
  padding: 5px 8px;
  border-radius: 999px;
  color: #175cd3;
  background: #eaf2ff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.na-pill {
  padding: 5px 8px;
  border-radius: 999px;
  color: #4d5158;
  background: #eaf2ff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.match-date-block {
  margin-top: 19px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "day month"
    "day detail";
  align-items: center;
  column-gap: 9px;
}

.match-date-block strong {
  grid-area: day;
  color: var(--text);
  font-size: 50px;
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -2px;
}

.match-date-block > span {
  grid-area: month;
  align-self: end;
  color: var(--gold-500);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 1.4px;
}

.match-date-block small {
  grid-area: detail;
  align-self: start;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.match-box .opponent {
  margin-top: 23px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
}

.match-box .opponent img {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  padding: 5px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  box-shadow: 0 7px 17px rgba(16, 24, 40, 0.14);
}

.match-box .opponent strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.match-meta {
  margin-top: 18px;
  display: grid;
  gap: 11px;
}

.match-meta p {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.match-meta p span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

/* =========================================================
   NYTTIGE LINKS
========================================================= */

.resources-section {
  padding: 92px 20px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(22, 163, 74, 0.12), transparent 28%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900));
}

.resources-section .section-heading h2 {
  color: var(--white);
}

.resources-section .section-heading p {
  color: #aab4c3;
}

.resource-grid {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  position: relative;
  min-height: 170px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.resource-card:hover {
  transform: translateY(-6px);
  border-color: rgba(226, 185, 59, 0.32);
  background: rgba(255, 255, 255, 0.085);
}

.resource-card > span {
  color: var(--gold-400);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.resource-card strong {
  margin-top: 13px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.18;
}

.resource-card small {
  margin-top: 7px;
  color: #9eabba;
  font-size: 11px;
  font-weight: 650;
}

.resource-card b {
  position: absolute;
  right: 17px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-950);
  background: var(--gold-400);
  font-size: 16px;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 25px 20px;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--navy-950);
}

.footer-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  padding: 5px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
}

.footer-brand div {
  display: grid;
}

.footer-brand strong {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-brand span {
  color: #8f9bad;
  font-size: 11px;
  font-weight: 650;
}

.back-to-top {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.back-to-top:hover {
  color: var(--white);
  border-color: rgba(226, 185, 59, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1240px) {
  .next-matches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .main-nav a {
    padding-inline: 9px;
    font-size: 12px;
  }

  .hero-inner {
    grid-template-columns: 1fr 320px;
    gap: 45px;
  }

  .hero-club-card {
    min-height: 390px;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-fixture {
    grid-template-columns: 76px minmax(200px, 1fr) 125px minmax(210px, 0.9fr);
  }

  .fixture-main,
  .fixture-time,
  .fixture-referee {
    padding-inline: 17px;
  }
}

@media (max-width: 880px) {
  .header-inner {
    min-height: 78px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(3, 7, 18, 0.98);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 14px;
    text-align: center;
  }

  .main-nav .nav-cta {
    margin-left: 0;
    margin-top: 4px;
  }

  .hero {
    padding-top: 74px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: none;
    text-align: center;
  }

  .hero-content .eyebrow,
  .hero-actions,
  .hero-highlights {
    justify-content: center;
  }

  .hero-content > p {
    margin-inline: auto;
  }

  .hero-club-card {
    width: min(100%, 470px);
    min-height: 360px;
    margin-inline: auto;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-fixture {
    grid-template-columns: 74px minmax(0, 1fr) 120px;
  }

  .fixture-referee {
    grid-column: 2 / -1;
    width: 100%;
    padding-top: 0;
  }

  .fixture-main {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .fixture-time {
    border-right: 0;
  }
}

@media (max-width: 700px) {
  .hero h1 {
    letter-spacing: -2px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .team-grid,
  .next-matches,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: 175px;
  }

  .home-fixture {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .fixture-date {
    grid-row: 1 / 3;
  }

  .fixture-time {
    grid-column: 2;
    padding-top: 0;
    border-right: 0;
    text-align: left;
  }

  .fixture-time strong {
    font-size: 22px;
  }

  .fixture-referee {
    grid-column: 1 / -1;
    padding: 14px 16px 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .match-box {
    min-height: auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .sponsor-ticker {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      black 30px,
      black calc(100% - 30px),
      transparent 100%
    );

    mask-image: linear-gradient(
      to right,
      transparent 0,
      black 30px,
      black calc(100% - 30px),
      transparent 100%
    );
  }
}

@media (max-width: 520px) {
  .header-inner {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand-text small {
    display: none;
  }

  .hero {
    padding: 62px 15px 68px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-content > p {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-highlights {
    gap: 7px;
  }

  .hero-club-card {
    min-height: 335px;
    padding: 30px 18px;
  }

  .hero-logo-wrap {
    width: 128px;
    height: 128px;
  }

  .teams-section,
  .home-fixtures-section,
  .next-fixtures-section,
  .resources-section {
    padding-inline: 14px;
  }

  /* Lidt mindre afstand under holdkortene på mobil */
  .teams-section {
    padding-bottom: 60px;
  }

  .section-heading {
    width: 100%;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .sponsor-logo {
    width: 158px;
    min-height: 122px;
  }

  .home-fixture {
    border-radius: 17px;
  }

  .fixture-main {
    padding-inline: 14px;
  }

  .fixture-opponent strong {
    font-size: 14px;
  }

  .match-box {
    padding: 18px;
  }

  .match-box::before {
    margin: -18px -18px 15px;
  }
}

/* =========================================================
   REDUCERET BEVÆGELSE
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}