:root{
  --gold:#d2a700;
  --gold-light: #f3d77b;
  --blue-dark:#064b6a;
  --blue:#0080cb;
  --grey-blue:#bcd6f1;
  --hero-max-h: 92vh;
  --pad: clamp(16px, 3vw, 40px);
  --brand: #064b6a;        /* Blau Weiss */
  --brand-2: #0080cb;      /* Lake splash */
  --ink: #0b1220;
  --glass: rgba(255,255,255,0.75);
  --glass-border: rgba(255,255,255,0.55);
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
  --radius: 22px;
  --bottom-nav-height: 60px;   /* your navbar's fixed height */
  --bottom-nav-gap: 14px;      /* distance from screen edge */
  --bottom-safe: env(safe-area-inset-bottom, 0px);
  --bottom-offset: calc(var(--bottom-nav-height) + var(--bottom-nav-gap) + var(--bottom-safe));
}
/* Keep content clear of the floating nav on mobile */
@media (max-width: 768px){
  main,
  .filter,
  .filters {
    padding-bottom: var(--bottom-offset);
  }
}

*{box-sizing:border-box}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji','Segoe UI Emoji';
  color:#fff;
  background: url('/images/bluebackground.png') center / cover no-repeat fixed;
  min-height: 100dvh;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body {
    background: url('/images/mobile_background.png') center / cover no-repeat fixed;
     /* 100% of viewport width, height auto */
    max-width: 100%;
     background-color: #000005;
  }
}
/* Transparent overlay header */
/* ===========================
   SITE HEADER BASE
   =========================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;          /* top:0; left/right stretch */
  background-color: transparent;
  z-index: 1000;
  transition:
    background-color .35s ease,
    border-bottom-color .35s ease,
    box-shadow .35s ease;
}



/* On scroll: solid background & smaller height */
.site-header.scrolled {
  background-color: rgba(6, 75, 106, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold, #facc15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ===========================
   TOP BLUE BAR
   =========================== */

.top-bar {
  background: #032738;
  color: #fff;
  font-size: 0.9rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0;
}

.top-nav-left,
.top-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-nav-link,
.top-nav-contact {
  position: relative;
  padding: 4px 0;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

/* gold underline on hover */
.top-nav-link::after,
.top-nav-contact::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold, #facc15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease-out;
}

.top-nav-link:hover::after,
.top-nav-link:focus-visible::after,
.top-nav-contact:hover::after,
.top-nav-contact:focus-visible::after {
  transform: scaleX(1);
}

/* language dropdown */
.lang-switcher select {
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}

.lang-switcher select option {
  color: #000;
}

.lang-switcher select:focus-visible {
  outline: 2px solid var(--gold, #facc15);
  outline-offset: 2px;
}

/* screen-reader-only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   MENU TOGGLE (SANDWICH)
   =========================== */

.menu-toggle {
  position: relative;
  width: 40px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.6);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f9fafb;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.menu-toggle:hover {
  background: rgba(15, 23, 42, 0.4);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

.menu-toggle:active {
  transform: scale(0.97);
}

/* (optional) if you toggle a class like .is-open on button, you can animate lines */

/* ===========================
   MAIN HEADER BAR
   =========================== */

.subheader {
  position: relative;
}

.header-bar {
  height: 10vh;
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left cluster, logo, right cluster */
  align-items: center;
  gap: 12px;
  transition: height .35s ease;
}

/* shrink on scroll */
.site-header.scrolled .header-bar {
  height: 8vh;
}

/* Left and right clusters */
.header-left,
.header-right {
  display: flex;
  align-items: center;      /* vertical center */
  gap: 10px;
}

/* make right side right-justified */
.header-right {
  justify-content: flex-end; /* horizontal alignment */
    justify-self: end;  /* for the grid cell itself */

}

/* Right-side icons with labels */

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition:
    background 0.15s ease,
    transform 0.08s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}

.icon-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
  border-color: var(--gold, #facc15);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8);
}

.icon-btn-media {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* reuse label style */
.icon-btn .nav-modal-text {
  font-size: 0.7rem;
}

/* ===========================
   CENTERED LOGO
   =========================== */

.logo {
  justify-self: center;
  text-decoration: none;
  position: relative;
  z-index: 2;
  transition: transform .35s ease;
}

/* make sure logo is perfectly centered in grid */
.header-bar > .logo {
  margin: 0 auto;
}

.logo img {
  display: block;
  height: 12vh;
  max-height: 96px;
  width: auto;
  transition: height .35s ease;
}

/* logo overlaps both bars when at top */
.site-header:not(.scrolled) .logo {
  transform: translateY(-35%);
}

/* on scroll, bring logo down and shrink */
.site-header.scrolled .logo {
  transform: translateY(0);
}

.site-header.scrolled .logo img {
  height: 7vh;
  max-height: 64px;
}
.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 999;
}

/* visible when JS adds .backdrop-visible */
.offcanvas-backdrop.backdrop-visible {
  opacity: 0.9;
  visibility: visible;
  z-index: 9995;
}

.offcanvas-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  max-width: 80vw;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 60%),
    #020617;
  border-left: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.8);
  transform: translateX(100%);
  transition: transform 0.24s ease-out;
  z-index: 9999;
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
}

/* slide in when JS adds .sidebar-open */
.offcanvas-sidebar.sidebar-open {
  transform: translateX(0);
}

/* prevent page scroll while menu open */
body.no-scroll {
  overflow: hidden;
}


/* Main list */
.offcanvas-nav {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.offcanvas-nav > li > a {
  display: block;
  padding: 0.6rem 0.4rem;
  border-radius: 0.8rem;
  text-decoration: none;
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.8);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.offcanvas-nav > li > a:hover {
  background: rgba(15, 23, 42, 1);
  border-color: var(--gold, #facc15);
  transform: translateX(-2px);
}

/* Teams item with subnav */
.offcanvas-nav .has-subnav {
  padding-top: 0.35rem;
  padding-bottom: 0.2rem;
}

.offcanvas-link-main {
  display: block;
  padding: 0.6rem 0.4rem;
  border-radius: 0.8rem;
  text-decoration: none;
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(51, 65, 85, 0.9);
  margin-bottom: 0.35rem;
}

.offcanvas-link-main:hover {
  background: rgba(15, 23, 42, 1);
  border-color: var(--gold, #facc15);
}

/* Subnav: Junioren D/E/F/G */
.offcanvas-subnav {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.offcanvas-subnav a {
  display: block;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.96);
  text-decoration: none;
  padding: 0.3rem 0.4rem;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.8);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.offcanvas-subnav a:hover {
  background: rgba(15, 23, 42, 1);
  border-color: var(--gold, #facc15);
  transform: translateX(-2px);
}
/* ===========================
   MISC / RESPONSIVE
   =========================== */

/* Keep bars below overlapping logo */
.top-bar,
.header-bar {
  position: relative;
  z-index: 1;
}

/* Ensure page content isn't hidden under fixed header on non-hero pages */
body.with-fixed-header main {
  padding-top: 72px; /* adjust to taste */
}

/* Basic responsive tweaks */
@media (max-width: 768px) {
  .header-left {
    gap: 6px;
  }

  .nav-modal-text {
    font-size: 0.68rem;
  }

  .icon-btn .nav-modal-text {
    display: none; /* hide labels on tiny screens if you want */
  }

  .header-bar {
    gap: 6px;
  }
}










.container{max-width:1100px;margin:0 auto;padding:0 16px}
nav{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.brand{font-weight:800;letter-spacing:.5px}
.brand .club{color:var(--gold)}
.nav-links a{color:#fff;text-decoration:none;margin-left:16px;padding:8px 10px;border-radius:10px}
.nav-links a:hover{background:rgba(255,255,255,0.1)}
main{padding:24px 0}
.hero{
  background: linear-gradient(135deg, rgba(6,75,106,.9), rgba(0,128,203,.85)), url('/images/pattern.png');
  background-size: cover;
  color:#fff;
  padding:48px 0;
  border-bottom: 6px solid var(--gold);
}
.hero h1{font-size:clamp(28px,4vw,44px);margin:0 0 8px}
.hero p{opacity:.95;margin:0}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:24px 0}
.card{
  background:#fff;border-radius:16px;padding:16px;box-shadow:0 6px 20px rgba(0,0,0,.06);
  border:1px solid #e7eef7;
  position: relative; }            /* ensure a containing context */
#statsChart { display: block; width: 100%; height: 100%; }

.kpi{display:flex;align-items:center;gap:12px}
.kpi .num{font-size:28px;font-weight:800;color:var(--blue-dark)}
.kpi .label{color:#325a73}
.section{margin:0px 0}
.section h2{color:var(--blue-dark);margin:0 0 12px}
.btn{
  display:inline-block;border:none;background:var(--blue);color:#fff;padding:10px 14px;border-radius:12px;
  text-decoration:none;font-weight:600;cursor:pointer
}
.btn.secondary{background:var(--gold);color:#1a1a1a}

form.inline{display:flex;gap:8px;flex-wrap:wrap}
input, select, textarea{
  padding:10px;border-radius:10px;border:1px solid #d8e6f6;font:inherit
}
table{width:100%;border-collapse:collapse}
th, td{padding:10px;border-bottom:1px solid #e8f0fb}
.muted{color:#5a7a90}

.alert{padding:10px 12px;border-radius:10px;background:#fff3cd;border:1px solid #ffe69c;color:#664d03}
.success{background:#d1e7dd;border-color:#badbcc;color:#0f5132}

/* LANDING */


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

/* --- NEWS LIST PAGE --- */

.news-page .section-head h1 {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 2rem;
  color: var(--gold);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.news-tile {
  background: var(--glass);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(0,0,0,0.2);
  transition: transform .18s ease, box-shadow .18s ease;
}

.news-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(0,0,0,0.3);
}

.news-tile a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-tile-image {
  position: relative;
  padding-top: 50%;
  background: #000;
}

.news-tile-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-tile-body {
  padding: 1rem 1.25rem 1.25rem;
}

.news-tile-title {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-2);
  margin-bottom: .35rem;
}

.news-tile-meta {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(11,18,32,0.6);
  margin-bottom: .5rem;
}

.news-tile-excerpt {
  font-size: .9rem;
  color: #000 !important;
}

/* --- ARTICLE PAGE --- */

.news-detail-page {
  max-width: 960px;
  margin: 0 auto;
}

.news-hero img {
  width: 100%;
  border-radius: 1.8rem;
  box-shadow: 0 26px 60px rgba(0,0,0,.45);
  margin-bottom: 1.75rem;
}

.news-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.news-badge {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .16em;
}

.news-title-lg {
  margin: .75rem 0 .4rem;
  font-size: clamp(2rem, 3vw, 3rem);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 3px 8px rgba(0,0,0,.6);
}

.news-meta {
  font-size: .9rem;
  color: rgba(255,255,255,0.8);
}

.news-body {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: rgba(255,255,255,0.95);
  border-radius: 1.5rem;
  padding: 1.5rem 1.75rem;
  white-space: normal;
}

.news-body p {
  margin-bottom: .9rem;
}

.news-body strong {
  font-weight: 700;
}

.news-body em {
  font-style: italic;
}

.news-external-link {
  margin-top: 1rem;
}

/* ---------- Match highlight & events ---------- */
.match-hero .match-card{
  background: linear-gradient(135deg, var(--blue-dark), #0b6ba0);
  color:#fff; border-radius:18px; padding:18px; display:grid; gap:8px;
  border: 2px solid var(--gold);
}
.match-hero .actions{ display:flex; gap:10px; flex-wrap:wrap }
.events-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px }
.event{ background:#fff; border:1px solid #e7eef7; border-radius:14px; padding:12px }


/* ---------- Stats (amped) ---------- */
.chart-wrap{ position:relative; height: 360px; }
/* ensure [hidden] truly hides even if Chart.js inlines size */
[hidden]{ display:none !important; }

/* tabs look/feel */
.stats-tabs{ display:flex; gap:6px; }
.stats-tabs .tab{
  background:#fff; border:1px solid #dbe7f6; border-radius:10px;
  padding:8px 10px; cursor:pointer; font-weight:600;
}
.stats-tabs .tab.active{ background: var(--blue); color:#fff; border-color: var(--blue); }

/* chart area sizing */
.section.stats .card.chart-wrap{
  position: relative;
  height: clamp(300px, 48vh, 460px);
  margin-bottom: 24px;
  overflow: hidden;
}
.section.stats .chart-wrap canvas{
  display:block; width:100% !important; height:100% !important;
}

.kpis .kpi .num{ color: var(--blue-dark); }
.kpis .kpi:hover{ transform: translateY(-2px); transition: transform .2s }

/* AOS base (served locally) */
[data-aos]{ will-change: transform, opacity }

/* Keep content clear of bottom nav on mobile (reusing your vars) */
@media (max-width: 768px){
  main, .site-footer{ padding-bottom: var(--bottom-offset); }
}

/* Make the chart card own its space */
.section.stats .card.chart-wrap{
  position: relative;
  height: clamp(300px, 48vh, 460px);
  margin-bottom: 24px;     /* pushes Newsletter down */
  overflow: hidden;        /* keeps chart internals inside */
  z-index: 1;              /* above any backgrounds in the same section */
}

/* Ensure canvases fill the card (Chart.js respects CSS size when maintainAspectRatio:false) */
.section.stats .chart-wrap canvas{
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Create a clean stacking context for each section to prevent cross-over during AOS transforms */
.section{ position: relative; isolation: isolate; }



/* FOOTER */
.site-footer{
  background:#0f2e40cb;
  color:#cfe6fb;
  border-top:4px solid var(--gold);
  padding:24px 0;
  padding-bottom: calc(var(--bottom-nav-gap) + var(--bottom-nav-height) + 24px + env(safe-area-inset-bottom));
}
.footer-inner{
  display: flex;                 /* was grid */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.site-footer .contact{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  font-style: normal;
}

/* Social links */
.site-footer .social{
  display: flex;
  justify-content: center;
  gap: 10px;
}
.social-link{
  display:grid; place-items:center;
  width:36px; height:36px;
  border-radius:10px;
  color:#ffffff;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  text-decoration:none;
  transition: background .2s, transform .06s, color .2s, border-color .2s;
}
.social-link:hover{
  background:rgba(210,167,0,0.18);      /* gold tint */
  color:#fff;
  border-color:rgba(210,167,0,0.5);
}


.footer-divider{
  border:0;
  border-top:1px solid rgba(255,255,255,0.18);
  margin:16px 0;
  opacity:1;
}

.site-footer .credit{
  text-align: center;
  font-size: 0.9rem;
}

.text-center { text-align: center; }
.producer-link { color: gold !important; text-decoration: none !important; }
.producer-link:hover { text-decoration: none !important; }

@media (max-width: 768px){
  .site-footer{
    margin-bottom: var(--bottom-offset);
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .footer-inner{
    grid-template-columns: 1fr; /* stack columns */
  }
  .footer-col.right{ justify-self: start; }
  .footer-col.center{ justify-self: start; }
}
/* Remove text decoration (underlines) */
.site-footer a,
.site-footer a:visited,
.site-footer a:active {
  color:#cfe6fb; text-decoration:none;
}
.site-footer a:hover {
  text-decoration: underline;
}
/* Kill the accent underline/border if you used it earlier */
.link-accent,
.link-accent:hover {
  text-decoration: none;
  border-bottom: 0;
}

/* Keep accessibility: visible focus ring without underline */
.site-footer a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  text-decoration: none;
}


/* ------------------ Bottom Navigation (stadium bar) ------------------ */

/* ------------------ Bottom Navigation ------------------ */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: calc(var(--bottom-nav-gap) + var(--bottom-safe));
  max-width: 820px;
  padding: 0 12px;
  z-index: 5000;
  pointer-events: none;
}

.bottom-nav .nav-shell {
  pointer-events: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 3fr 2.2fr;
  gap: 8px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.18) 0, transparent 50%),
    linear-gradient(135deg, var(--brand) 0, var(--blue) 40%, var(--gold) 100%);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  padding: 6px 8px;
}

/* Left: nav items */

.nav-left {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
}

.nav-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  text-decoration: none;
  color: #fdfcf5;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  position: relative;
  transition:
    background .12s ease,
    transform .12s ease,
    border-color .12s ease;
}

.nav-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(11,18,32,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.nav-item-icon i {
  font-size: 18px;
}

.nav-item-label {
  white-space: nowrap;
}

/* Hover / active */

.nav-item:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}

.nav-item.is-active {
  background: rgba(255,255,255,0.24);
  border-color: var(--gold-light);
}

.nav-item.is-active .nav-item-icon {
  background: rgba(255,255,255,0.9);
  color: var(--brand);
}

.nav-item.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(243,215,123,0.7);
  box-shadow: 0 0 0 1px rgba(11,18,32,0.25);
}

/* More button pulse */

.nav-item-more .nav-item-icon {
  position: relative;
}

.nav-item-more .nav-item-icon::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(243,215,123,0.65);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity .18s ease, transform .18s ease;
}

.nav-item-more:hover .nav-item-icon::before {
  opacity: 1;
  transform: scale(1);
}

/* Right: next-match mini */

.nav-right {
  position: relative;
  background: rgba(6,75,106,0.94);
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.next-label {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(188,214,241,0.9);
  pointer-events: none;
}

.next-mini {
  width: 100%;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.next-mini-text,
.next-mini-row {
  font-size: 11px;
  line-height: 1.2;
  color: #fdfdfd;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.next-mini-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.next-mini-row + .next-mini-row {
  margin-top: 2px;
}

.nm-date {
  font-weight: 700;
  color: var(--gold-light);
}

.nm-home,
.nm-team,
.nm-opponent {
  font-weight: 600;
}

.nm-dot {
  opacity: .6;
}

/* ------------------ More modal ------------------ */
.nav-more-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.65) 0, rgba(0,0,0,0.9) 60%);
  z-index: 1100;

  /* Always in the DOM, but invisible & non-interactive by default */
  display: flex;
  align-items: center;      /* center vertically */
  justify-content: center;  /* center horizontally */

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease-out;
}

.nav-more-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-modal {
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  background: radial-gradient(circle at top left, rgba(243,215,123,0.18), transparent 50%),
              rgba(6,75,106,0.98);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(243,215,123,0.6);
  padding: 0.75rem 0.85rem 0.9rem;
  color: #fdfcf5;

  /* Start slightly “below” and faded */
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  transition:
    transform .22s ease-out,
    opacity .22s ease-out;
}

/* When backdrop is open, animate modal in */
.nav-more-backdrop.is-open .nav-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}


/* Modal header */

.nav-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-inline: .25rem;
  margin-bottom: .4rem;
}

.nav-modal-title-wrap h2 {
  margin: 0;
  font-size: 1rem;
}

.nav-modal-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(243,215,123,0.65);
  margin-bottom: 4px;
}

.nav-modal-close {
  border: none;
  background: transparent;
  color: #fdfcf5;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .1s ease, transform .1s ease;
}

.nav-modal-close i {
  font-size: 18px;
}

.nav-modal-close:hover {
  background: rgba(15,23,42,0.7);
  transform: translateY(-1px);
}

/* Modal body */

.nav-modal-body {
  padding: .3rem 0 .15rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  overflow-y: auto;
  max-height: calc(80vh - 3.4rem);
}

.nav-modal-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .5rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background .12s ease, transform .12s ease;
}

.nav-modal-item:hover {
  background: rgba(15,23,42,0.8);
  transform: translateY(-1px);
}

.nav-modal-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-modal-icon i {
  font-size: 16px;
}

.nav-modal-text {
  display: flex;
  flex-direction: column;
}

.nav-modal-text strong {
  font-size: .92rem;
}

.nav-modal-text small {
  font-size: .78rem;
  color: rgba(188,214,241,0.85);
}

/* Responsiveness */

@media (max-width: 640px) {
  .bottom-nav .nav-shell {
    grid-template-columns: 1fr;
  }

  .nav-right {
    display: none;
  }

    .nav-item-label {
    font-size: 10px;
  }

}


/* Make the "More" button look like the other nav items */
button.nav-item {
  background: transparent;
  border: 1px solid transparent;
  color: #fdfcf5;
  padding: 8px 10px;   /* same as .nav-item */
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Optional: if the white outline still appears on focus, make it match the theme */
button.nav-item:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}



/*PLAYERS*/
/* Layout helpers */

.featured{
  max-width: 1200px;           /* cap content so cards don’t stretch */
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
  padding-block: 12px;
}

.section-header{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;margin:.25rem 0 1rem;}
.pc-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));  /* 3× on large */
  gap:16px;}

@media (max-width: 540px){ .pc-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:12px;} }



/* keep cards from overgrowing even in wide columns */
.pc-grid > .player-card{
  width: 100%;
  max-width: 350px;            /* cap actual card width */
  justify-self: center;        /* center inside its grid cell */
}


/* Player card */
.player-card {
  --rx:0deg; --ry:0deg; --gx:50%; --gy:50%;
  position: relative; display:block; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 25px rgba(210,167,0,.25);
  background: #0000001f;
  text-decoration: none; color: #fff;
  will-change: transform;
  contain: paint;
  --flip-dur: .95s;
}

.player-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,.35); }

/* Flip engine */
.pc-inner{ position:relative; width:100%; height:100%; transform-style:preserve-3d; transition: transform var(--flip-dur) cubic-bezier(.2,.7,.2,1); }
html.has-hover .player-card:hover .pc-inner,
.player-card.is-flipped .pc-inner{ transform: rotateY(180deg); }

.pc-face {
  position:absolute; inset:0; padding:12px; backface-visibility: hidden;
  display:flex; flex-direction:column; justify-content:space-between;
}
/* Replace the pc-front background with this */
.pc-front{
  position: relative;
  isolation: isolate;       /* keep blends inside the card */
}

.pc-front::after{
  content:""; position:absolute; inset:-25%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(6,75,106,.58),
    rgba(6,75,106) 18%,
    rgba(210,167,0,.38) 36%,
    rgba(210,167,0) 54%,
    rgba(6,75,106,.58) 72%,
    rgba(6,75,106) 90%,
    rgba(6,75,106,.58)
  );
  mix-blend-mode: overlay;
  filter: blur(28px) saturate(1.2);
  animation: spin 22s linear infinite;
  pointer-events:none;
  z-index:0;
  height: 100%;
}
@keyframes spin{ to { transform: rotate(360deg); } }

.pc-back {
  background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue) 60%);
  transform: rotateY(180deg);
}

/* Header / badge */
.pc-back-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.5rem;}
.pc-team{background:rgba(0,0,0,.35);padding:.2rem .5rem;border-radius:999px;font-size:.8rem;letter-spacing:.3px;backdrop-filter:blur(3px);}
.pc-badge{padding:.2rem .5rem;border-radius:8px;font-weight:700;font-size:.8rem;color:#111;}
.pc-badge-1{background:#b9fbc0;} .pc-badge-2{background:#ffe29a;} .pc-badge-3{background:#ffadad;}
.pc-name{margin:.25rem 0 0;font-size:1.5rem;line-height:1.2;text-shadow:0 2px 6px rgb(0, 0, 0); padding-top: 5vh !important; padding: 1vw;}

/* Jersey front */
.pc-jersey { position: relative; display:grid; place-items:center; padding:8px 0; margin-top:6px; }
.jersey-img { width: 100%; max-width: 260px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); }
.jersey-number {
  position:absolute; inset:auto 0 40%; text-align:center;
  font-size: clamp(2.8rem, 8.5vw, 3.8rem); font-weight: 900; letter-spacing:.02em;
  color: #fff7d6;
  text-shadow:
    0 0 5px #caa94c,
    0 0 10px #caa94c,
    0 0 15px #ffd76a,
    0 0 25px #ffef9a;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
.jersey-number::after {
  content: ''; position:absolute; left:50%; top:50%; transform: translate(-50%,-50%);
  width: 20%; height: 60%; border-radius: 50%;
  box-shadow: 0 0 40px 20px rgba(255, 215, 100, .18);
  pointer-events:none;
}
.jersey-number.is-empty { display:none; }

/* Back stats */

.back-title{display:flex;flex-direction:column;align-items:flex-end;gap:.2rem;}
.back-num{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,240,180,.25), rgba(255,240,180,.05));
  border:2px solid rgba(255,215,120,.7);
  box-shadow:0 0 18px rgba(255,210,120,.35), inset 0 0 14px rgba(255,210,120,.25);}
.back-num span{font-weight:900;color:#fff7d6;text-shadow:0 1px 2px rgba(0,0,0,.4);}
.back-num.is-empty{visibility:hidden;}

/* Stats (GPU-friendly bars + stagger) */
.pc-stats-rows{display:flex;flex-direction:column;gap:.6rem;margin-top:.5rem;}
.stat-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.6rem;}
.stat-row .label{font-size:.86rem;opacity:.95;white-space:nowrap;}
.stat-row .bar{
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.15);
}

.stat-row .bar__fill{
  position: absolute;
  inset: 0;              /* top:0; right:0; bottom:0; left:0 */
  width: 100%;           /* <-- REQUIRED for scaleX to show */
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg,#ffd86b,#ffb347,#ff6b6b);
  box-shadow: 0 0 10px rgba(255,200,100,.6);
  will-change: transform;
  transition: transform var(--bar-dur,1.6s) cubic-bezier(.2,.7,.2,1) var(--bar-delay,0ms);
}
/* When we flip/enter and JS adds .animate-bars on the card */
.player-card.animate-bars .stat-row .bar__fill{
  transform: scaleX(var(--fill, 0));  /* --fill set by JS to 0→1 */
}
.stat-row .stat-num{
  font-variant-numeric: tabular-nums; font-weight:800; min-width:2.8ch; text-align:right;
  backface-visibility:hidden; transform:translateZ(0);
}

/* Keep tilt sheen */
.player-card::before {
  content:''; position:absolute; inset:-100%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(255,255,255,.15), transparent 30%, rgba(255,255,255,.15) 60%, transparent 85%);
  transform: translateX(-20%) rotate(10deg);
  animation: shine 6s linear infinite; pointer-events:none; mix-blend-mode: overlay;
}

@keyframes shine{ to{ transform: translateX(20%) rotate(10deg);} }

/* Chips */
.chip-row{display:flex;gap:.5rem;flex-wrap:wrap;}
.chip{border:1px solid #ddd;background:#f8f8f8;border-radius:999px;padding:.35rem .75rem;cursor:pointer;}
.chip.is-active{background:#111;color:#fff;border-color:#111;}
.muted{color:#777;font-size:.9rem;}

/* Motion-safe: reduce motion users get static cards */
/* ===== Mobile (≤540px): 1 per row, smaller & centered, safer effects ===== */
@media (max-width: 540px) {
  .pc-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .player-card {
    max-width: 280px;   /* smaller card */
    margin: 0 auto;
     --flip-dur: 1.15s;
    border-radius: var(--radius);
  }

  .pc-face { padding: 10px; }


  /* stat rows: bar below label/value for readability */
  .pc-stats-rows { gap: .5rem; }
  .stat-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 6px;
    grid-template-areas:
      "label value"
      "bar   bar";
    gap: .35rem .5rem;
  }
  .stat-row .label   { grid-area: label; font-size: .9rem; }
  .stat-row .stat-num{ grid-area: value; font-size: .95rem; }
  .stat-row .bar     { grid-area: bar; height: 6px; }
  .stat-row .bar__fill {
    width: 100%;
    transform-origin: left center;
    transition-duration: var(--bar-dur, 1.3s);
  }
}

@media (min-width: 540px){
  .pc-grid {gap: 30px;}
}




/* Global section rhythm */
.section,
.group-hero,
.featured {
  padding-inline: var(--pad);
  padding-block: clamp(2.4rem, 4vw, 3.4rem);
}

/* Keep hero slightly tighter to the top if needed */
.group-hero {
  padding-top: clamp(2rem, 3vw, 2.8rem);
}

/* Space between stacked sections */
.section + .section,
.group-hero + .section,
.section + .featured,
.featured + .section {
  margin-top: 0; /* rely on padding-block only */
}

/* Shared section heading style (on dark background) */
.section-head h2,
.section-header h2 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f9fafb !important;
  text-shadow: 0 3px 10px rgba(0,0,0,0.8);
}

/* Gold underline */
.section-head h2::after,
.section-header h2::after {
  content: "";
  display: block;
  margin-top: 0.3rem;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--gold-light), var(--gold));
}



.nav-modal-icon--image img {
  display: block;
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(243,215,123,0.7));
  border-radius: 50px;
}

.menu-toggle {
  display: none;
}


/* ===================== Cookie Banner ===================== */

.cookie-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.2rem 0.75rem;
  background:
    radial-gradient(circle at top, rgba(15,23,42,0.82), rgba(15,23,42,0.94));
  backdrop-filter: blur(8px);
  z-index: 9999; /* above bottom-nav (2100) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
}

.cookie-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  width: min(640px, 100%);
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(15,23,42,0.95));
  box-shadow: 0 22px 48px rgba(0,0,0,0.85);
  border: 1px solid rgba(148,163,184,0.7);
  color: #e5e7eb;
  padding: 1.4rem 1.5rem 1.25rem;
}

/* Desktop – center the modal on screen */
@media (min-width: 768px) {
  .cookie-backdrop {
    align-items: center;
    padding: 0;
  }

  .cookie-modal {
    width: min(560px, 100% - 3rem);
  }
}

/* Header */

.cookie-header h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f9fafb;
}

.cookie-lead {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(226,232,240,0.95);
}

/* Body */

.cookie-body {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.9rem;
}

.cookie-text-block p {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: rgba(209,213,219,0.95);
}

.cookie-text-block p:last-child {
  margin-bottom: 0;
}

.cookie-small {
  font-size: 0.8rem;
  opacity: 0.9;
}

.cookie-small a {
  color: var(--gold-light, #f3d77b);
  text-decoration: underline;
}

/* Preferences */

.cookie-preferences {
  border-radius: 0.9rem;
  padding: 0.75rem 0.8rem;
  background: linear-gradient(
    135deg,
    rgba(15,23,42,0.95),
    rgba(15,23,42,0.9)
  );
  border: 1px solid rgba(51,65,85,0.9);
  display: grid;
  gap: 0.6rem;
}

.cookie-pref-row {
  padding: 0.45rem 0.2rem;
  border-bottom: 1px dashed rgba(55,65,81,0.85);
}

.cookie-pref-row:last-child {
  border-bottom: none;
}

.cookie-pref-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cookie-pref-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: rgba(248,250,252,0.98);
}

.cookie-pref-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(22,163,74,0.15);
  border: 1px solid rgba(22,163,74,0.9);
  color: #bbf7d0;
}

.cookie-pref-desc {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: rgba(156,163,175,0.95);
}

/* Toggle switch */

.cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 24px;
}

.cookie-switch input {
  opacity: 0;
  position: absolute;
  inset: 0;
  margin: 0;
}

.cookie-switch-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(31,41,55,0.95);
  border: 1px solid rgba(75,85,99,0.95);
  box-shadow: inset 0 0 5px rgba(0,0,0,0.7);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.cookie-switch-slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: radial-gradient(circle at 30% 30%, #ffffff, #e5e7eb);
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
  transition: transform 0.18s ease;
}

.cookie-switch input:checked + .cookie-switch-slider {
  background: linear-gradient(135deg, var(--blue,#0080cb), var(--gold,#f3d77b));
  border-color: rgba(251,191,36,0.95);
}

.cookie-switch input:checked + .cookie-switch-slider::before {
  transform: translate(18px, -50%);
}

/* Footer buttons */

.cookie-footer {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, var(--gold,#f3d77b), var(--gold-light,#fde68a));
  color: #1a1300;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.cookie-btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.55);
}

.cookie-btn-outline {
  background: transparent;
  border: 1px solid rgba(148,163,184,0.9);
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cookie-btn-outline:hover {
  background: rgba(15,23,42,0.9);
}

.cookie-btn-secondary {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(75,85,99,0.95);
  color: rgba(209,213,219,0.98);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cookie-btn-secondary:hover {
  background: rgba(15,23,42,1);
}

/* Mobile tweaks */

@media (max-width: 600px) {
  /* Backdrop hugs the bottom, no extra padding */
  .cookie-backdrop {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    padding-block: 10px;
  }

  /* Bottom sheet style */
  .cookie-modal {
    width: 80%;
    max-width: 80%;
    border-radius: 1.2rem 1.2rem 0 0;
    padding: 1rem 1rem 0.9rem;

    /* key: make it fit and scroll if needed */
    max-height: calc(100dvh - 30px); /* or 100vh if dvh unsupported */
    overflow-y: auto;
  }

  .cookie-body {
    margin-top: 0.7rem;
  }

  .cookie-footer {
    margin-top: 0.8rem;
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .cookie-btn-primary,
  .cookie-btn-outline,
  .cookie-btn-secondary {
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
  }
}

.cookie-modal {
  overscroll-behavior: contain;
}