/*
 * Design des 1. PBC Neuwerk e.V.
 * Vereinsfarbe Dunkelgrün (#043c04), ergänzt um Billardtuch-Grün und Weiß
 * als Akzent. Bewusst ohne externe Webfonts
 * (DSGVO) — es wird der System-Font-Stack genutzt.
 */

:root {
  --green-950: #021f02;
  --green-900: #032d03;
  --green-800: #043c04;
  --green-700: #0b5410;
  --green-600: #17702a;
  --felt: #1d7a3c;
  --green-50: #eef5ee;

  --accent: #fff;
  --accent-muted: rgb(255 255 255 / 0.72);
  --ball-red: #c8102e;

  --text: #1d261d;
  --text-muted: #5a665a;
  --bg: #f5f6f1;
  --surface: #fff;
  --border: #dfe4dc;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgb(4 60 4 / 0.06), 0 2px 6px rgb(4 60 4 / 0.05);
  --shadow: 0 4px 12px rgb(4 60 4 / 0.08), 0 12px 32px rgb(4 60 4 / 0.08);
  --container: 1140px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Basis ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-700);
  text-decoration-color: rgb(11 84 16 / 0.35);
  text-underline-offset: 0.2em;
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  color: var(--green-600);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #fff;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--green-800);
  letter-spacing: -0.015em;
  margin: 1.6em 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 800;
  margin-top: 0;
}

h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
  font-weight: 750;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--green-800);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header & Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-800);
  background: linear-gradient(180deg, var(--green-800), var(--green-900));
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 16px rgb(0 0 0 / 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand__logo {
  width: 48px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.35));
  transition: transform 0.2s;
}

.brand:hover .brand__logo {
  transform: rotate(-4deg) scale(1.04);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand__tagline {
  font-size: 0.8rem;
  color: var(--accent-muted);
  letter-spacing: 0.04em;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: rgb(255 255 255 / 0.88);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.main-nav a[aria-current="page"] {
  background: #fff;
  color: var(--green-800);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s, background 0.2s;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* Ohne JS bleibt das Menü sichtbar (umgebrochen) — erst mit JS einklappbar. */
  .js .main-nav {
    display: none;
  }

  .js .main-nav.is-open {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-900);
    border-bottom: 3px solid var(--accent);
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
  }

  .brand__tagline {
    display: none;
  }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 85% 0%, rgb(255 255 255 / 0.1), transparent 55%),
    radial-gradient(ellipse at 10% 120%, var(--felt), transparent 60%),
    var(--green-800);
  padding: 3rem 0 3.25rem;
}

.page-hero::after {
  /* dezente Billardkugel als Deko */
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.03) 60%, transparent 70%);
  border: 1px solid rgb(255 255 255 / 0.06);
  pointer-events: none;
}

.page-hero h1 {
  color: #fff;
  margin: 0;
}

.page-hero__kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-muted);
}

.page-hero__intro {
  max-width: 46rem;
  margin-top: 0.9rem;
  font-size: 1.12rem;
  color: rgb(255 255 255 / 0.85);
}

.page-hero__intro p {
  margin: 0;
}

/* ---------- Startseite: Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 40%, rgb(29 122 60 / 0.9), transparent 70%),
    linear-gradient(160deg, var(--green-800), var(--green-950));
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.hero--image {
  background-size: cover;
  background-position: center;
}

.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgb(2 31 2 / 0.92) 30%, rgb(4 60 4 / 0.55));
}

.hero::after {
  /* Tuch-Textur: feine Diagonalen */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgb(255 255 255 / 0.018) 0 2px, transparent 2px 6px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
  margin-bottom: 1rem;
}

.hero__intro {
  max-width: 38rem;
  font-size: 1.2rem;
  color: rgb(255 255 255 / 0.88);
}

.hero__logo {
  width: clamp(160px, 22vw, 260px);
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.45));
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 760px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .hero__logo {
    order: -1;
    margin: 0 auto;
    width: 140px;
  }

  .hero__intro {
    margin: 0 auto;
  }

  .hero__actions {
    justify-content: center;
  }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: #fff;
  color: var(--green-800);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.25);
}

.button--primary:hover {
  background: var(--green-50);
  color: var(--green-800);
}

.button--ghost {
  border-color: rgb(255 255 255 / 0.45);
  color: #fff;
}

.button--ghost:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: #fff;
  color: #fff;
}

.button--green {
  background: var(--green-800);
  color: #fff;
}

.button--green:hover {
  background: var(--green-700);
  color: #fff;
}

/* ---------- Hauptbereich ---------- */

main {
  flex: 1;
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--overlap {
  padding-top: 0;
  margin-top: -1.75rem;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

/* ---------- Fließtext / Kirby-Blöcke ---------- */

.prose {
  max-width: 48rem;
}

.prose--wide {
  max-width: none;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.1em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose li::marker {
  color: var(--green-600);
}

.prose figure {
  margin: 2rem 0;
}

.prose figure img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.prose figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.prose blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--green-600);
  background: var(--green-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.1rem;
  font-style: italic;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose blockquote footer {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--text-muted);
}

.prose hr {
  border: 0;
  height: 1px;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius-sm);
}

.prose ul[data-ratio],
.prose figure ul {
  /* Kirby-Galerie-Block */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.prose figure ul li {
  margin: 0;
}

.prose figure ul img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th,
.prose td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.cover-image {
  margin: 0 0 2rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cover-image img {
  width: 100%;
}

/* ---------- Startseite: Schnellzugriff ---------- */

.quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.quicklink {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.quicklink:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-600);
  color: var(--text);
}

.quicklink__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: inset -4px -6px 0 rgb(0 0 0 / 0.18), inset 3px 3px 0 rgb(255 255 255 / 0.12);
}

.quicklink:nth-child(2) .quicklink__icon {
  background: var(--ball-red);
}

.quicklink:nth-child(3) .quicklink__icon {
  /* Spielball */
  background: #fff;
  color: var(--green-800);
  border: 1px solid var(--border);
  box-shadow: inset -4px -6px 0 rgb(0 0 0 / 0.08);
}

.quicklink:nth-child(4) .quicklink__icon {
  background: #1d1d1d;
}

.quicklink__title {
  font-weight: 750;
  font-size: 1.1rem;
  color: var(--green-800);
}

.quicklink__text {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- News ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.news-card__image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--green-800), var(--felt));
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__image--placeholder {
  display: grid;
  place-items: center;
}

.news-card__image--placeholder img {
  width: 64px;
  height: auto;
  object-fit: contain;
  opacity: 0.35;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.4rem 1.4rem;
}

.news-card__date {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-600);
}

.news-card__title {
  margin: 0.35rem 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.news-card__title a {
  color: var(--green-800);
  text-decoration: none;
}

.news-card__title a::after {
  /* ganze Karte klickbar */
  content: "";
  position: absolute;
  inset: 0;
}

.news-card__excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.article-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Mannschaften ---------- */

.teams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.team-card {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green-800);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.team-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.team-card p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.team-card__liga {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.85rem !important;
}

.team-card__spieltag,
.team-card__kontakt {
  color: var(--text-muted);
}

.team-pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.team-pages a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--green-800);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.team-pages a::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-800);
  box-shadow: inset -2px -3px 0 rgb(0 0 0 / 0.2);
}

.team-pages a:hover {
  border-color: var(--green-600);
  background: var(--green-50);
  transform: translateX(2px);
}

/* ---------- Termine ---------- */

.events {
  width: 100%;
  margin-top: 2rem;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.events th {
  padding: 0.85rem 1.1rem;
  background: var(--green-800);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.events td {
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.events tbody tr:hover {
  background: var(--green-50);
}

.events td:first-child {
  white-space: nowrap;
  font-weight: 700;
  color: var(--green-700);
}

.events td p {
  margin: 0.25rem 0 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.empty-state {
  margin-top: 2rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

@media (max-width: 640px) {
  .events thead {
    display: none;
  }

  .events,
  .events tbody,
  .events tr,
  .events td {
    display: block;
    width: 100%;
  }

  .events tr {
    padding: 0.9rem 1.1rem;
    border-top: 1px solid var(--border);
  }

  .events tr:first-child {
    border-top: 0;
  }

  .events td {
    padding: 0.15rem 0;
    border: 0;
  }
}

/* ---------- Kontakt ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 820px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  font-style: normal;
  padding: 1.75rem;
  background: var(--green-800);
  background: linear-gradient(160deg, var(--green-800), var(--green-950));
  color: rgb(255 255 255 / 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #fff;
}

.contact-card p {
  margin: 0.4rem 0;
}

.contact-card a:not(.button) {
  color: #fff;
}

.contact-card a:not(.button):hover {
  color: #fff;
}

.contact-card .button {
  margin-top: 1rem;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  background: var(--green-950);
  color: rgb(255 255 255 / 0.72);
  font-size: 0.95rem;
  border-top: 3px solid var(--accent);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 1.25rem 2rem;
}

.site-footer h2 {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.site-footer__brand img {
  width: 56px;
  flex: none;
}

.site-footer__brand strong {
  display: block;
  color: #fff;
  font-size: 1.1rem;
}

.site-footer__brand p {
  margin: 0.3rem 0 0;
}

.site-footer__bottom {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding: 1.1rem 1.25rem;
  font-size: 0.85rem;
  color: rgb(255 255 255 / 0.5);
}

@media (max-width: 760px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.section--flush {
  padding-top: 0;
}

/* ---------- Livescore ---------- */

.livescore-status {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.livescore-status--live {
  color: var(--text);
  border-color: rgb(23 112 42 / 0.35);
  background: var(--green-50);
}

.livescore-status__dot {
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: 0.05em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ball-red);
  box-shadow: 0 0 0 0 rgb(200 16 46 / 0.6);
  animation: live-pulse 1.6s infinite;
}

@keyframes live-pulse {
  70% {
    box-shadow: 0 0 0 10px rgb(200 16 46 / 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(200 16 46 / 0);
  }
}

.livescore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.match {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.match__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: #fff;
}

.match__table {
  font-weight: 750;
}

.match__game {
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  font-size: 0.8rem;
  font-weight: 600;
}

.match__badge {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match--running .match__badge {
  background: var(--ball-red);
  color: #fff;
}

.match--finished .match__badge {
  background: rgb(255 255 255 / 0.85);
  color: var(--green-800);
}

.match__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
}

.match__row + .match__row {
  border-top: 1px solid var(--border);
}

.match__player {
  display: flex;
  flex-direction: column;
  font-weight: 650;
  line-height: 1.3;
}

.match__player small {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.match__score {
  min-width: 3.2rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.match__row--leading .match__score {
  background: var(--green-800);
  color: #fff;
}

.match__foot {
  margin-top: auto;
  padding: 0.6rem 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
