@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('fonts/oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f8fafc;
  --bg-soft: #fff5f5;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --red: #dc2626;
  --red-dark: #991b1b;
  --red-soft: #fee2e2;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%); color: var(--text); }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.header-topline {
  height: 4px;
  background: linear-gradient(90deg, var(--red-dark), var(--red), #ef4444);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; gap: 24px; padding: 16px 0; }
.brand { display:flex; align-items:center; gap: 14px; min-width: 0; }
.brand-text strong { display:block; font-size: 1.08rem; letter-spacing: -.01em; }
.brand-text small { display:block; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; margin-top: 3px; }
.brand-mark {
  display:grid;
  place-items:center;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.site-nav { display:flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  place-content: center;
  gap: 5px;
  flex: 0 0 auto;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .18s ease, opacity .18s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
  transition: .18s ease;
}
.nav-link:hover { background: #f8fafc; color: var(--text); }
.nav-link.active {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: #fff;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
}
.hero {
  position: relative;
  padding: 68px 0 34px;
  background:
    radial-gradient(circle at top left, rgba(254,226,226,.9), transparent 32%),
    linear-gradient(135deg, #fff 0%, #fff6f6 52%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}
.hero-banner {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.84) 36%, rgba(255,255,255,.73) 56%, rgba(255,255,255,.80) 100%),
    url('hero-banner.webp');
  background-size: cover;
  background-position: 18% center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid, .grid-2, .grid-3, .grid-4 { display:grid; gap: 24px; }
.hero-grid { grid-template-columns: 1.12fr .88fr; align-items:center; gap:20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.card.soft { background: linear-gradient(180deg, #fff, #fff5f5); }
.card.hero-highlight {
  position: relative;
  overflow: hidden;
}
.hero-highlight-glass {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(6px);
  border-color: rgba(255,255,255,.75);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}
.card.hero-highlight::after {
  content: '';
  position: absolute;
  inset: auto -20px -40px auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(220,38,38,.08), transparent 68%);
}
.eyebrow { color: var(--red); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; margin: 0 0 10px; }
.hero h1, .section-intro h2 { font-size: clamp(2.2rem, 3cqi, 3.7rem); line-height: 1.04; margin: 0; letter-spacing: -.03em; }
.hero h2, .card h2 { margin: 0; font-size: 1.85rem; letter-spacing: -.02em; }
.card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.intro-text, .muted { color: var(--muted); line-height: 1.68; }
.section { padding: 48px 0; }
.section-intro { margin-bottom: 24px; }
.section-intro h2 { font-size: clamp(1.75rem, 2.3cqi, 2.5rem); }
.badge {
  display:inline-block;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
}
.home-badge { display:inline-block; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.home-badge.home { background: var(--red-soft); color: #991b1b; }
.home-badge.away { background: #e2e8f0; color: #334155; }
.home-badge.open { background: #f1f5f9; color: #475569; }
.list-card { display:flex; flex-direction:column; gap:12px; }
.list-card h3 { min-height: 3rem; }
.game-meta, .small { font-size: .92rem; color: var(--muted); }

.game-lines { display: grid; gap: 4px; margin-top: 8px; }
.game-line { display: flex; align-items: center; gap: 6px; }
.game-slot-label { font-weight: 600; color: var(--text); }
.feature-list { display:grid; gap: 12px; }
.feature-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
  font-weight: 600;
}
.quick-stats { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.stat-box {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
}
.stat-box strong { display:block; font-size: 1.25rem; margin-bottom: 4px; }
.stat-box span { color: var(--muted); font-size: .9rem; }
.cta-row, .button-row { display:flex; gap:12px; flex-wrap:wrap; margin-top: 20px; }
.btn {
  display:inline-block;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15,23,42,.06); }
.btn.primary { background: linear-gradient(135deg, var(--red-dark), var(--red)); color: #fff; border-color: var(--red); }
.btn.ghost { background: #f8fafc; }
.btn.danger { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.preview-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.preview-box { aspect-ratio:1; border:1px solid var(--border); border-radius:18px; background: linear-gradient(135deg, #fee2e2, #f8fafc); }
.site-footer {
  border-top: 1px solid #b91c1c;
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 55%, #7f1d1d 100%);
  color: #fff;
  padding: 46px 0;
  margin-top: 48px;
}
.footer-grid { display:grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 24px; }
.footer-panel {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
}
.footer-brand h3, .footer-panel h3 { margin: 8px 0 10px; font-size: 1.35rem; letter-spacing: -.02em; }
.footer-brand-top { display:flex; align-items:center; gap: 16px; margin-bottom: 12px; }
.footer-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  padding: 8px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  flex: 0 0 auto;
}
.footer-label { margin: 0 0 8px; color: rgba(255,255,255,.82); text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 700; }
.site-footer p { margin: 0; line-height: 1.7; color: rgba(255,255,255,.95); }
.site-footer .footer-inline-links { margin-top: 8px; }
.site-footer a { color: #fff; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }
.table-like { display:grid; gap: 12px; }
.table-row { display:grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 16px; border:1px solid var(--border); border-radius:18px; background:#f8fafc; }
.form-grid { display:grid; gap: 12px; }
input, textarea, select { width:100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px; background: #fff; font: inherit; }
textarea { min-height: 120px; resize: vertical; }
label { display:grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.contact-request { display: grid; gap: 10px; }
.contact-request p { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.admin-layout { display:grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.admin-shortcut-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-filter-row,
.admin-danger-row {
  margin: 12px 0;
}
.admin-danger-row {
  display: flex;
  justify-content: flex-end;
}
.result-doubleheader-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.result-game-card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.result-game-card h3 {
  font-size: 1.05rem;
}
.linked-result-card {
  display: grid;
  gap: 12px;
  background: #fff7f7;
}
.linked-result-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.linked-result-card p {
  margin: 0;
}
.notice { padding: 12px 14px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--border); color: var(--muted); }
.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.actions { display:flex; gap: 8px; flex-wrap:wrap; }
.mini-card { padding: 16px; border-radius: 18px; border:1px solid var(--border); background:#f8fafc; }
.page-band {
  background: linear-gradient(180deg, #fff, #fff7f7);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.page-band .container { display:flex; align-items:center; justify-content:space-between; gap: 16px; }
.page-band .title-group h1 { font-size: clamp(1.6rem, 2.2cqi, 2.2rem); margin: 0; }
.page-band .title-group p { margin: 8px 0 0; color: var(--muted); }
.chip-row { display:flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}
@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid, .admin-layout, .quick-stats, .teams-grid { grid-template-columns: 1fr; }
  .result-doubleheader-fields { grid-template-columns: 1fr; }
  .hero-banner { background-position: 34% center; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .brand-mark { width: 54px; height: 54px; }
  .footer-brand-top { align-items: flex-start; }
  .footer-logo { width: 68px; height: 68px; }
  .site-nav { width: 100%; justify-content: flex-start; }
  .page-band .container { flex-direction: column; align-items: flex-start; }
}

.compact-grid { gap: 18px; }
.link-tile {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f8fafc;
  font-weight: 700;
}
.link-tile + .link-tile { margin-top: 12px; }
.link-tile strong { color: var(--red); font-size: .9rem; }

.gallery-card {
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
}
.gallery-media {
  aspect-ratio: 4 / 3;
  margin: -24px -24px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  background: linear-gradient(135deg, #fee2e2, #f8fafc);
}
.gallery-thumb {
  width: 112px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}
.gallery-row {
  align-items: center;
}
.gallery-row-main {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.sponsor-card .btn { margin-top: 12px; }
.sponsor-logo-box { display:grid; place-items:center; font-size: 2rem; font-weight:700; color: var(--red); }


.text-link { color: var(--red-dark); font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.empty-state {
  display: grid;
  gap: 10px;
  place-items: start;
  min-height: 220px;
  align-content: center;
  background: linear-gradient(135deg, #fff, #fff5f5);
}
.empty-state p { margin: 0; color: var(--muted); line-height: 1.6; }
.sponsor-logo-wrap {
  height: 120px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 16px;
}
.sponsor-logo-wrap img {
  max-width: 86%;
  max-height: 78px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.sponsor-logo-box {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fee2e2, #fff);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
}
.sponsor-card .small { margin-top: -2px; }
.hero-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: .95rem;
}

.section-actions { margin-bottom: 22px; }
.news-archive { display: grid; gap: 18px; }
.news-archive-item h2 { margin: 0; font-size: 1.55rem; }
.news-archive-head { display:flex; align-items:center; justify-content:space-between; gap: 12px; flex-wrap: wrap; }

.news-archive-text {
  position: relative;
  color: var(--muted);
  line-height: 1.75;
}
.news-archive-text.is-collapsed {
  max-height: 7.2em;
  overflow: hidden;
}
.news-archive-text.is-collapsed::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3.2em;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.96) 70%, rgba(255,255,255,1));
  pointer-events: none;
}
.news-toggle {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 700;
  cursor: pointer;
}
.news-toggle:hover {
  color: var(--red-dark);
  text-decoration: underline;
}
.news-toggle:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.2);
  outline-offset: 4px;
  border-radius: 8px;
}
.teams-grid { display:grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-card { padding: 0; overflow: hidden; display:flex; flex-direction:column; }
.team-media { background: linear-gradient(180deg, #fff, #f8fafc); padding: 14px 14px 0; }
.team-media img { width:100%; height:100%; max-height: 320px; display:block; object-fit:contain; object-position:center; aspect-ratio: 16 / 9; background:#fff; border:1px solid var(--border); border-radius: 20px; }
.team-content { padding: 20px 24px 24px;  padding: 24px; display:flex; flex-direction:column; gap: 14px; }
.team-content h2 { margin: 0; }
.team-meta-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: auto; }
@media (max-width: 900px) {
  .teams-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; }
  .team-meta-grid { grid-template-columns: 1fr; }
}

.section-actions { margin-bottom: 20px; }
.notice.success { background: #ecfdf5; border-color: #a7f3d0; color: #166534; }
.chip-active { background: linear-gradient(135deg, var(--red-dark), var(--red)); color: #fff; border-color: var(--red); }
.result-score { font-size: 1.35rem; font-weight: 800; margin: 0; color: var(--text); }
.team-media { background: #fff; padding: 18px; }
.team-media img { width: 100%; height: auto; max-height: none; display: block; object-fit: contain; object-position: center; aspect-ratio: auto; background: #fff; border: 1px solid var(--border); border-radius: 20px; }
.team-card { padding: 0; overflow: hidden; display:flex; flex-direction:column; }
.team-content { padding: 0 24px 24px; }


.gallery-card {
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.04);
}
.gallery-card-body {
  padding-top: 2px;
}
.gallery-open {
  display: block;
  width: calc(100% + 48px);
  margin: -24px -24px 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-open:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.35);
  outline-offset: 4px;
  border-radius: 18px;
}
.gallery-media {
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.gallery-media img {
  transition: transform .22s ease;
}
.gallery-card:hover .gallery-media img,
.gallery-open:hover .gallery-media img {
  transform: scale(1.03);
}
.no-scroll {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}
.lightbox.is-open {
  display: block;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.78);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  margin: 5vh auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}
.lightbox-dialog img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #f8fafc;
}
.lightbox-dialog p {
  margin: 0;
  padding: 16px 20px 20px;
  font-weight: 700;
  color: var(--text);
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(15, 23, 42, 0.72);
  color: white;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 700px) {
  .lightbox-dialog {
    width: min(94vw, 1100px);
    margin: 7vh auto;
    border-radius: 18px;
  }
  .lightbox-dialog p {
    padding: 14px 16px 18px;
    font-size: .95rem;
  }
}


.result-lines{display:grid;gap:8px;margin-top:10px}
.result-lines .intro-text,.result-lines .result-score{margin:0}
.result-label{display:inline-block;min-width:58px}


.feature-block { margin-top: 14px; }
.feature-block:first-of-type { margin-top: 0; }
.feature-title {
  margin: 0 0 10px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.team-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.team-media {
  padding: 18px 18px 0;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.team-media-frame {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}
.team-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  max-height: none;
  aspect-ratio: auto;
}
.team-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  flex: 1;
}
.team-content h2 { margin: 0; }
.team-content .intro-text { margin: 0; }
.team-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
}
.team-roster {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.team-roster summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.team-roster summary span {
  color: var(--muted);
  font-size: .86rem;
}
.team-roster-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 12px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.team-roster-list li {
  min-width: 0;
  line-height: 1.4;
}
.team-roster-list strong,
.team-roster-list span {
  display: block;
  overflow-wrap: anywhere;
}
.team-roster-list span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .86rem;
}
@media (max-width: 900px) {
  .teams-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .team-roster-list { grid-template-columns: 1fr; }
}

.team-roster-trigger { display: none; }
@media (min-width: 901px) {
  html.roster-dialog-ready { scrollbar-gutter: stable; }
  .roster-dialog-ready .team-roster { display: none; }
  .roster-dialog-ready .team-roster-trigger:not([hidden]) {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    min-height: 48px; width: 100%; padding: 12px 0 0;
    border: 0; border-top: 1px solid var(--border); border-radius: 0;
    background: transparent; color: var(--text); font: inherit; font-weight: 600;
    text-align: left; cursor: pointer;
  }
  .team-roster-trigger:hover { color: var(--red-dark); }
  .team-roster-trigger img { flex: 0 0 20px; }
  .team-roster-count { margin-left: auto; color: var(--muted); font-size: .875rem; font-weight: 400; }
}
html.roster-dialog-open { overflow: hidden; scroll-behavior: auto; }
.roster-dialog {
  position: fixed; inset: 0; margin: auto;
  width: min(760px, calc(100% - 32px)); max-width: none;
  max-height: min(720px, calc(100dvh - 64px)); padding: 0;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); background: #fff; overflow: hidden;
  box-shadow: 0 24px 64px rgb(0 0 0 / 22%);
}
.roster-dialog[open] { display: flex; flex-direction: column; }
.roster-dialog::backdrop { background: rgb(0 0 0 / 48%); }
.roster-dialog-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 24px; border-bottom: 1px solid var(--border); flex: 0 0 auto;
}
.roster-dialog-header > div { min-width: 0; }
.roster-dialog-header .eyebrow { margin: 0 0 6px; }
.roster-dialog-header h2 { margin: 0; font-size: 1.75rem; line-height: 1.2; overflow-wrap: anywhere; }
#roster-dialog-count { margin: 8px 0 0; color: var(--muted); font-size: .875rem; }
.roster-dialog-close {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
  padding: 0; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; cursor: pointer;
}
.roster-dialog-close:hover { background: var(--bg-soft); border-color: var(--red); }
.roster-dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 16px; }
.roster-dialog-body .team-roster-list { margin: 0; padding: 0; border: 0; gap: 0 28px; }
.roster-dialog-body .team-roster-list li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.team-roster-trigger:focus-visible, .roster-dialog-close:focus-visible, .roster-dialog-body:focus-visible {
  outline: 3px solid var(--red); outline-offset: 3px;
}
.roster-dialog-body:focus-visible { outline-offset: -3px; }

/* Feinschliff: gleichmäßigere Kartenhöhen und ruhigere Startseitenraster */
.grid-2,
.grid-3,
.grid-4,
.teams-grid,
.compact-grid {
  align-items: stretch;
}

.grid-2 > .card,
.grid-3 > .card,
.grid-4 > .card,
.compact-grid > .card,
.news-archive > .card,
.teams-grid > .team-card {
  height: 100%;
}

.list-card {
  height: 100%;
}

.list-card h3 {
  min-height: 3.2rem;
}

.list-card .intro-text,
.list-card .result-lines,
.list-card .game-meta,
.list-card .small {
  margin: 0;
}

.list-card .btn,
.list-card .text-link,
.list-card .actions,
.list-card .button-row {
  margin-top: auto;
}

#news .grid-3 > .card,
#ergebnisse .compact-grid > .card,
#spiele .grid-3 > .card {
  border-radius: 24px;
}

#news .grid-3 > .card,
#ergebnisse .compact-grid > .card,
#spiele .grid-3 > .card,
.section .grid-3 > .card {
  display: flex;
  flex-direction: column;
}

.feature-list {
  grid-auto-rows: 1fr;
}

.feature-item {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-card {
  height: 100%;
  border-radius: 28px;
}

.team-media {
  padding: 18px 18px 0;
}

.team-media-frame {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}
.team-media-frame--photo { position: relative; aspect-ratio: 3 / 2; padding: 0; }
.team-media-frame--photo img {
  position: absolute; top: var(--team-photo-top); left: var(--team-photo-left);
  width: var(--team-photo-width); height: auto; max-width: none; object-fit: contain;
}

.team-content {
  padding: 20px 20px 22px;
}

.team-content h2 {
  min-height: 3.1rem;
  display: flex;
  align-items: flex-start;
}

.team-content .intro-text {
  min-height: 4.9rem;
}

.team-meta-grid {
  align-items: stretch;
}

.team-meta-grid .mini-card {
  height: 100%;
}

.link-tile {
  min-height: 64px;
}

@media (max-width: 900px) {
  .list-card h3,
  .team-content h2,
  .team-content .intro-text {
    min-height: 0;
  }
}


/* Final visual polish */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.site-header {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.brand {
  transition: transform .18s ease;
}
.brand:hover {
  transform: translateY(-1px);
}
.nav-link {
  position: relative;
}
.nav-link:not(.active):hover {
  background: #fff1f2;
  color: var(--red-dark);
}
.btn,
.link-tile,
.card,
.table-row,
.mini-card,
.feature-item,
.sponsor-logo-wrap,
.team-card,
.gallery-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.btn:focus-visible,
.nav-link:focus-visible,
.text-link:focus-visible,
.link-tile:focus-visible,
.gallery-open:focus-visible,
.lightbox-close:focus-visible,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(220, 38, 38, 0.18);
  outline-offset: 2px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #fca5a5;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}
.card:hover,
.table-row:hover,
.mini-card:hover,
.feature-item:hover,
.link-tile:hover {
  border-color: #cbd5e1;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}
.hero {
  padding: 72px 0 38px;
}
.hero-grid {
  gap: 28px;
}
.hero h1 {
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.hero-highlight-glass {
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
}
.section {
  padding: 52px 0;
}
.section-intro {
  margin-bottom: 28px;
}
.card {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.team-card,
.gallery-card,
.sponsor-card {
  height: 100%;
}
.team-card:hover,
.sponsor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}
.team-content {
  gap: 16px;
}
.team-content p,
.card p,
.page-band .title-group p {
  max-width: 68ch;
}
.team-meta-grid .mini-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-archive-item,
.list-card {
  height: 100%;
}
.preview-box {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
.site-footer {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.footer-panel {
  backdrop-filter: blur(4px);
}
.footer-panel a {
  opacity: .96;
}
.footer-panel a:hover {
  opacity: 1;
}
@media (max-width: 900px) {
  .container {
    width: min(1120px, calc(100% - 24px));
  }
  .header-inner {
    gap: 16px;
    padding: 12px 0;
  }
  .site-nav {
    gap: 6px;
  }
  .nav-link {
    padding: 9px 13px;
    font-size: .92rem;
  }
  .hero {
    padding: 44px 0 20px;
  }
  .hero-grid {
    gap: 16px;
  }
  .section {
    padding: 40px 0;
  }
  .card {
    padding: 20px;
    border-radius: 22px;
  }
  .quick-stats {
    gap: 10px;
  }
  .stat-box {
    padding: 14px;
  }
  .page-band {
    padding: 18px 0;
  }
  .footer-grid {
    gap: 16px;
  }
  .footer-panel {
    padding: 18px;
    border-radius: 20px;
  }
}
@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 20px));
  }
  .brand-mark {
    width: 48px;
    height: 48px;
  }
  .brand-text strong {
    font-size: 1rem;
  }
  .brand-text small {
    font-size: .62rem;
  }
  .hero h1, .section-intro h2 {
    letter-spacing: -.025em;
  }
  .cta-row, .button-row {
    gap: 10px;
    margin-top: 16px;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .table-row,
  .news-archive-head,
  .gallery-row-main,
  .footer-brand-top {
    gap: 10px;
  }
  .table-row {
    grid-template-columns: 1fr;
  }
  .table-row > *:last-child {
    justify-self: start;
  }
  .gallery-thumb {
    width: 92px;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}


.hero-highlight-compact {
  padding: 18px 20px;
  border-radius: 22px;
}
.hero-highlight-compact h2 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}
.hero-highlight-compact .feature-block + .feature-block {
  margin-top: 14px;
}
.hero-highlight-compact .feature-title {
  margin: 0 0 8px;
  font-size: .9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-highlight-compact .feature-list {
  gap: 8px;
}
.hero-highlight-compact .feature-item {
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.45;
}
.hero-highlight-compact .cta-row {
  margin-top: 14px;
}
.hero-highlight-compact .btn {
  padding: 10px 14px;
}
.site-footer {
  margin-top: 0;
}
.section:last-of-type {
  padding-bottom: 32px;
}
.page-band + .section {
  background: transparent;
}


#instagram-form, #news-form, #games-form, #results-form, #gallery-form, #sponsors-form, #teams-form,
#news-list, #games-list, #results-list, #gallery-list, #sponsors-list, #teams-list { scroll-margin-top: 110px; }

.result-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  border: 1px solid transparent;
  margin-left: 8px;
  vertical-align: middle;
}
.result-state.win { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.result-state.loss { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.result-state.draw { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.result-state.split { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.result-state.neutral { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }


/* latest polish fixes */
.hero { padding: 58px 0 26px; }
.hero-grid { gap: 18px; align-items: start; }
.hero-highlight-compact { padding: 14px 16px; border-radius: 20px; }
.hero-highlight-compact h2 { font-size: 1.2rem; margin-bottom: 2px; }
.hero-highlight-compact .eyebrow { margin-bottom: 4px; }
.hero-highlight-compact .feature-block + .feature-block { margin-top: 10px; }
.hero-highlight-compact .feature-title { margin: 0 0 6px; font-size: .76rem; letter-spacing: .1em; }
.hero-highlight-compact .feature-list { gap: 6px; }
.hero-highlight-compact .feature-item { min-height: 0; padding: 8px 10px; border-radius: 12px; line-height: 1.32; font-weight: 500; }
.hero-highlight-compact .feature-item strong { display: inline-block; font-size: .95rem; font-weight: 700; margin-bottom: 1px; }
.hero-highlight-compact .small { font-size: .82rem; }
.hero-highlight-compact .cta-row { margin-top: 10px; gap: 8px; }
.hero-highlight-compact .btn { padding: 9px 12px; font-size: .88rem; }
.result-label { min-width: 0; margin-right: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.result-score { font-size: .98rem; line-height: 1.45; }
@media (max-width: 900px) {
  .hero { padding: 50px 0 22px; }
  .hero-highlight-compact { padding: 12px 14px; }
  .hero-highlight-compact .feature-item { padding: 8px 9px; }
}


/* schedule page footer overlap fix */
.schedule-columns {
  align-items: start;
}
.schedule-columns .list-card,
.schedule-columns .news-archive > .card {
  height: auto;
}
.schedule-columns > div {
  min-width: 0;
}


/* gallery lightbox navigation */
.gallery-card {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}
.gallery-card:hover {
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}
.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.lightbox-dialog {
  padding-left: 72px;
  padding-right: 72px;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(15,23,42,.55);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .18s ease;
}
.lightbox-nav:hover {
  background: rgba(15,23,42,.74);
}
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }
.lightbox-nav:focus-visible {
  outline: 3px solid rgba(254, 226, 226, .95);
  outline-offset: 2px;
}

/* page headings */
.page-band {
  padding: 18px 0 16px;
  background: linear-gradient(180deg, #fff, #fffafb);
}
.page-band .title-group h1,
.section-intro h2 {
  font-size: clamp(1.45rem, 2cqi, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.page-band .title-group h1 {
  color: #111827;
}
.page-band .title-group p,
.intro-text {
  font-size: .98rem;
  line-height: 1.6;
}
.eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
}

@media (max-width: 760px) {
  .lightbox-dialog {
    padding-left: 56px;
    padding-right: 56px;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .page-band .title-group h1,
  .section-intro h2 {
    font-size: 1.55rem;
  }
}


.news-archive-media {
  width: min(100%, 520px);
  margin: 0 0 18px;
  border-radius: 20px;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}
.news-card-media {
  margin: -28px -28px 16px;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  background: #eef2f7;
}
.news-archive-media img,
.news-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.news-archive-media img {
  max-height: 292px;
}
.news-archive-media.is-default,
.news-card-media.is-default {
  background: linear-gradient(135deg, #f5f7fb, #eef2f7);
}
.news-archive-media.is-default img,
.news-card-media.is-default img {
  object-fit: contain;
  padding: 22px;
  background: transparent;
}
.admin-preview {
  display: inline-flex;
  align-items: center;
  max-width: 260px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.admin-preview img {
  display: block;
  width: 100%;
  height: auto;
}
.instagram-admin-preview {
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
}
.instagram-admin-preview img {
  height: 100%;
  object-fit: cover;
}
.instagram-upload-status {
  min-height: 1.2em;
}

.form-privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.legal-content {
  max-width: 900px;
}

.legal-content h2 {
  margin: 30px 0 10px;
  font-size: 1.2rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 14px;
  line-height: 1.7;
}
.admin-list-thumb {
  width: 72px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: #edf2f7;
}
.admin-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-band.compact + .section { padding-top: 28px; }
.page-band.compact { padding: 32px 0 28px; }
.page-band.compact .title-group h1 { font-size: clamp(1.85rem, 2.4cqi, 2.5rem); }
.page-band.compact .title-group p { margin-top: 0; }
@media (max-width: 720px) {
  .news-archive-media,
  .news-card-media {
    margin-left: -22px;
    margin-right: -22px;
    margin-top: -22px;
  }
}

.source-note { margin: -4px 0 18px; color: var(--muted); }


.hero-highlight-compact { padding: 20px; }
.hero-highlight-compact h2 { font-size: 1.55rem; margin-bottom: 4px; }
.pagination { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.pagination-link { display:inline-flex; min-width:42px; height:42px; align-items:center; justify-content:center; border-radius:14px; border:1px solid var(--border); background:#fff; font-weight:700; }
.pagination-link.active { background: linear-gradient(135deg, var(--red-dark), var(--red)); color:#fff; border-color: var(--red); }
.schedule-columns { align-items: start; }
.schedule-columns > div { min-width: 0; }
.source-note { display:none; }
.date-overview-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
.date-overview-card { border:1px solid var(--border); border-radius:18px; background:#f8fafc; padding:14px 16px; }
.date-overview-card strong { display:block; margin-bottom:8px; }
.date-overview-badges { display:flex; gap:8px; flex-wrap:wrap; }
.mini-status { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; font-size:.78rem; font-weight:700; }
.mini-status.neutral { background:#e2e8f0; color:#334155; }
.mini-status.win { background:#dcfce7; color:#166534; }


.nav-link-external {
  border: 1px solid rgba(255,255,255,.18);
}

@media (max-width: 900px) {
  .nav-link-external {
    width: 100%;
    text-align: center;
  }
}

.insta-grid{grid-template-columns:repeat(3,1fr);}
.insta-box{display:block;overflow:hidden;border-radius:18px;background:#f3f4f6;box-shadow:0 14px 32px rgba(15,23,42,.10);}
.insta-box img{display:block;width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;}
@media (max-width: 680px){.insta-grid{grid-template-columns:repeat(3,1fr);gap:10px;}}


.official-links-card {
  padding: 20px 22px;
}
.official-links-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
}
.official-links-list {
  display: grid;
  gap: 10px;
}
.official-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
  font-size: .96rem;
  font-weight: 600;
}
.official-link strong {
  color: var(--red);
  font-size: .84rem;
  font-weight: 700;
}
.official-link:hover {
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
@media (max-width: 700px) {
  .official-link {
    flex-direction: column;
    align-items: flex-start;
  }
}


.admin-scroll{max-height:520px;overflow:auto;padding-right:6px;align-content:start;}
.admin-scroll::-webkit-scrollbar{width:10px;}
.admin-scroll::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px;border:2px solid #f8fafc;}
.admin-scroll-games .table-row,.admin-scroll-results .table-row{padding:12px 14px;}
.admin-scroll-games .small,.admin-scroll-results .small{font-size:.84rem;}
.hero-highlight-compact .feature-title{font-size:.74rem;}
.hero-highlight-compact .feature-item{padding:7px 10px;}
.hero-highlight-compact .cta-row{margin-top:8px;}
@media (max-width: 900px){.admin-scroll{max-height:none;overflow:visible;padding-right:0;}}

@media (max-width: 1100px) {
  .header-inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .brand { flex: 1 1 auto; }
  .menu-toggle { display: grid; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    padding: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(15,23,42,.16);
  }
  .site-nav.is-open { display: grid; }
  .nav-link,
  .nav-link-external {
    width: auto;
    padding: 11px 12px;
    border-radius: 6px;
    text-align: left;
  }
  .nav-link-external { border-color: var(--border); }
}

.latest-results-grid { margin-top: 10px; }
.latest-result-card h3 { min-height: 0; font-size: 1.05rem; }
.latest-result-card .badge { margin-bottom: 8px; }
.latest-result-card .game-meta { margin-bottom: 8px; }
.latest-result-card .result-lines { gap: 6px; }
.latest-result-card .intro-text { font-size: .96rem; }
@media (max-width: 1200px) {
  .latest-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .latest-results-grid { grid-template-columns: 1fr; }
}

.latest-schedule-grid { margin-top: 10px; }
.latest-schedule-card h3 { min-height: 0; font-size: 1.05rem; }
.latest-schedule-card .badge { margin-bottom: 8px; }
.latest-schedule-card .game-meta { margin-bottom: 8px; }
.latest-schedule-card .schedule-lines { gap: 6px; margin-top: 0; }
.latest-schedule-card .intro-text { font-size: .96rem; margin: 0; }
.latest-schedule-card .small { margin-top: 2px; }
@media (max-width: 1200px) {
  .latest-schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .latest-schedule-grid { grid-template-columns: 1fr; }
}

.admin-page-actions {
  margin: 0 0 24px;
}

.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-hub-card {
  container-type: inline-size;
  display: flex;
  min-width: 0;
  min-height: 190px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.admin-hub-card:hover,
.admin-hub-card:focus-visible {
  border-color: #fca5a5;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .1);
  transform: translateY(-2px);
}

.admin-hub-card:focus-visible {
  outline: 3px solid rgba(220, 38, 38, .18);
  outline-offset: 2px;
}

.admin-hub-card h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.35rem, calc(1.2rem + 1cqi), 1.65rem);
  line-height: 1.15;
}

.admin-hub-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.admin-hub-card strong {
  margin-top: auto;
  color: var(--red-dark);
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 600;
}

.admin-hub-kicker {
  color: var(--red);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-overview-section {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.admin-overview-section h2 {
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .admin-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .admin-hub-grid {
    grid-template-columns: 1fr;
  }

  .admin-hub-card {
    min-height: 160px;
  }
}

/* Responsive typography */
.hero-grid > div:first-child,
.section-intro,
.page-band .container,
.card {
  container-type: inline-size;
}

body,
button,
input,
select,
textarea {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: 'Oswald', Impact, sans-serif;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1,
h2 {
  font-weight: 700;
}

h3 {
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem, calc(1.7rem + 3cqi), 4.5rem);
  line-height: 1.02;
}

.page-band .title-group h1,
.section-intro h2,
.page-band.compact .title-group h1 {
  font-size: clamp(1.8rem, calc(1.45rem + 1.8cqi), 2.8rem);
  line-height: 1.08;
}

.section-intro h2 {
  text-transform: uppercase;
}

.hero h2,
.card h2,
.hero-highlight-compact h2 {
  font-size: clamp(1.4rem, calc(1.2rem + 1.2cqi), 1.95rem);
  line-height: 1.14;
}

.card h3,
.news-archive-item h2,
.team-content h2 {
  font-size: clamp(1.15rem, calc(1.02rem + .8cqi), 1.65rem);
  line-height: 1.2;
}

.news-archive-item h2,
.team-content h2,
.latest-result-card h3,
.latest-schedule-card h3 {
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.latest-result-card,
.latest-schedule-card {
  min-width: 0;
}

.latest-result-card h3,
.latest-schedule-card h3 {
  min-height: 0;
  font-size: clamp(1rem, calc(.94rem + .55cqi), 1.3rem);
}

.result-score,
.result-lines strong {
  font-family: 'Oswald', Impact, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav,
.nav-link,
.btn,
button,
.pagination-link {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 600;
}

.intro-text,
.muted,
.site-footer p {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.game-meta,
.small,
.news-archive-head,
.form-privacy-note {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.badge,
.home-badge,
.game-slot-label {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 500;
}

.brand-text strong,
.brand-text small,
.eyebrow,
.feature-title,
.hero-highlight-compact .feature-title,
.footer-label,
.result-label {
  letter-spacing: 0;
}

/* Public-page refinements; admin layouts retain their existing spacing. */
.home-section { padding-block: 32px; }
.linked-card { position: relative; isolation: isolate; }
.linked-card .card-link { position: static; }
.linked-card .card-link::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  border-radius: 24px; cursor: pointer;
}
/* Keep secondary actions, such as directions, above the card-wide link. */
.linked-card a:not(.card-link) { position: relative; z-index: 2; }
.linked-card:hover, .card-direct-link:hover { border-color: var(--red); }
.linked-card:has(.card-link:focus-visible) { border-color: var(--red); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after, .card-direct-link:focus-visible {
  outline: 3px solid var(--red); outline-offset: -3px;
}
.card.hero-highlight::after { pointer-events: none; }
.home-section .section-intro { margin-bottom: 16px; }
.home-section .section-actions { margin-bottom: 18px; }
.hero-highlight-compact .feature-list { grid-auto-rows: auto; }
.hero-highlight-compact .feature-item { gap: 6px; justify-content: start; }
.hero-highlight-compact .feature-item br { display: none; }
.home-fixture { display: flex; flex-direction: column; }
.home-fixture-location {
  margin-top: auto;
  padding-top: 20px;
}
.home-fixture-location .small { margin: 0 0 8px; }
h2.opponent-name,
h3.opponent-name {
  text-wrap: wrap;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.news-archive > .news-story {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
  height: auto;
}
.news-story .news-archive-media { width: 100%; margin: 0; border-radius: 8px; box-shadow: none; }
.news-story-content { min-width: 0; }
.news-story-content h2 { margin: 8px 0 12px; }
.news-story-content .news-archive-text { max-width: 65ch; }
.news-story { scroll-margin-top: 110px; }

.gallery-grid, .results-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery-grid .gallery-card { padding: 0; border-radius: 8px; height: auto; }
.gallery-grid .gallery-open { margin: 0; width: 100%; cursor: zoom-in; }
.gallery-grid .gallery-media { margin: 0; }
.gallery-grid .gallery-media img { object-fit: contain; transform: none; }
.gallery-grid .gallery-card-body { padding: 12px; }
.gallery-grid .gallery-card-body h3 { margin: 8px 0 0; }
.results-grid .result-archive-card { padding: 20px; min-width: 0; border-radius: 8px; }
.result-archive-card .news-archive-head { gap: 12px; flex-wrap: wrap; }
.result-archive-card h2 { margin: 12px 0; }
.result-archive-card p:last-child { margin-bottom: 0; }
.results-sources { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; }
.results-sources summary { cursor: pointer; font-weight: 600; padding-block: 8px; }
.pagination { align-items: center; gap: 8px; }
.pagination-link { min-width: 44px; height: 44px; border-radius: 8px; padding-inline: 8px; }
.pagination-link:focus-visible, .results-sources summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.sponsor-invitation { max-width: 680px; padding-block: 12px 24px; }
.sponsor-invitation h2 { font-size: 1.8rem; }
.sponsor-invitation p { line-height: 1.7; color: var(--muted); }
.sponsor-invitation .btn { margin-top: 12px; }
#kontaktformular { scroll-margin-top: 110px; }

@media (min-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .news-archive > .news-story, .results-grid { grid-template-columns: minmax(0, 1fr); }
  .news-archive > .news-story { gap: 18px; }
  .home-section { padding-block: 24px; }
  .gallery-grid { gap: 12px; }
}
@media (max-width: 359px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Club information stays separate from editorial cards and admin layouts. */
.audit-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.audit-filter label { display: grid; gap: 6px; min-width: 0; max-width: 100%; }
.audit-filter select { min-height: 44px; max-width: 100%; }
.audit-entry { padding-block: 20px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.audit-entry header { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.audit-entry time { font-weight: 600; }
.audit-entry ul { padding-left: 20px; margin-bottom: 0; }
.audit-entry li + li { margin-top: 8px; }
.audit-fields { display: block; }
.mail-settings { max-width: 880px; }
.mail-settings .notice { margin-bottom: 20px; }
.mail-settings-form { margin-block: 24px; }
.mail-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mail-settings-form fieldset { min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: grid; gap: 16px; }
.mail-settings-form legend { padding-inline: 6px; font-weight: 600; }
.mail-settings-form label { min-width: 0; }
.mail-settings-check { display: flex; align-items: center; gap: 10px; }
.mail-settings-check input { width: 18px; height: 18px; }
.mail-settings-test { border-top: 1px solid var(--border); padding-block: 24px; }
.mail-settings-test h2 { font-size: 1.5rem; }
.mail-settings p { overflow-wrap: anywhere; }
@media (max-width: 600px) { .mail-settings-grid { grid-template-columns: minmax(0, 1fr); } }

.about-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-block: 16px; }
.about-nav a { padding-block: 10px; font-weight: 600; color: var(--muted); }
.about-nav a:hover, .about-links a:hover { color: var(--red); text-decoration: underline; }
.about-section { padding-block: 32px; border-top: 1px solid var(--border); scroll-margin-top: 110px; }
.about-section h2 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 20px; }
.about-section h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; }
.about-section p { line-height: 1.7; }
.about-section p a:not(.btn), .about-links a, .contact-details a { text-decoration: underline; text-underline-offset: 3px; }
.about-section a:focus-visible, .about-nav a:focus-visible, .brand:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 48px; align-items: center; }
.about-intro p { max-width: 70ch; }
.about-logo { width: 200px; height: 200px; object-fit: contain; }
.trainer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trainer-card { display: flex; align-items: center; min-width: 0; gap: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.trainer-card img { width: 96px; height: 128px; flex: 0 0 96px; object-fit: contain; border-radius: 4px; background: #f3f4f5; }
.trainer-card img[src$="/fabrizio-cagliani-20260923.jpg"] { object-fit: cover; object-position: 43% center; }
.trainer-card > div { min-width: 0; }
.trainer-card h3 { overflow-wrap: anywhere; }
.trainer-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.about-note { margin: 16px 0 0; }
.about-leadership { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: center; }
.leadership-card img { height: 96px; }
.about-links { padding-left: 20px; line-height: 1.8; }
.about-history { margin: 0; max-width: 80ch; }
.about-history > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding-block: 12px; }
.about-history dt { font-weight: 700; color: var(--red); }
.about-history dd { margin: 0; line-height: 1.7; }
.about-contact > div { min-width: 0; }
.about-contact p:first-child { margin-top: 0; }
.about-contact h3 { margin-bottom: 16px; }
.contact-details > div { padding-block: 12px; border-bottom: 1px solid var(--border); }
.contact-details dt { font-weight: 600; margin-bottom: 4px; }
.contact-details dd { margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
.about-message { margin-bottom: 20px; scroll-margin-top: 110px; }
@media (max-width: 1000px) {
  .trainer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-leadership { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .leadership-card { max-width: 360px; }
}
@media (max-width: 600px) {
  .about-intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .about-logo { display: none; }
  .trainer-grid { grid-template-columns: minmax(0, 1fr); }
  .about-section { padding-block: 24px; }
  .about-section h2 { font-size: 1.6rem; }
  .about-nav { gap: 0 20px; }
}
