
: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;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #fecaca;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.12);
  overflow: hidden;
  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; }
.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 h1 { font-size: clamp(2.2rem, 3vw, 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 h1 { font-size: clamp(1.75rem, 2.3vw, 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; }
.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 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); }
.admin-layout { display:grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.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.2vw, 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; }
  .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;
}
@media (max-width: 900px) {
  .teams-grid { grid-template-columns: 1fr; }
}

/* 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-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;
    border-radius: 15px;
  }
  .brand-text strong {
    font-size: 1rem;
  }
  .brand-text small {
    font-size: .62rem;
  }
  .hero h1, .section-intro h1 {
    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;
}


#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 h1 {
  font-size: clamp(1.45rem, 2vw, 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 h1 {
    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;
}
.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.4vw, 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: 960px) {
  .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;}}

.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; }
}
