/* ==========================================================================
   Feldschützen Alchenstorf - Offizielles Webdesign (Gegründet 1905)
   Modernes, authentisches Schweizer Vereinsdesign: Light & Dark Mode
   ========================================================================== */

:root {
  /* Schweizer Farbpalette */
  --swiss-red: #d52b1e;
  --swiss-red-dark: #b32015;
  --swiss-red-light: #fef2f2;
  --swiss-red-border: rgba(213, 43, 30, 0.25);
  
  --color-gold: #b45309;
  --color-gold-bg: #fffbeb;
  --color-gold-border: #fde68a;
  
  --color-silver: #475569;
  --color-silver-bg: #f8fafc;
  --color-silver-border: #cbd5e1;
  
  --color-bronze: #9a3412;
  --color-bronze-bg: #fff7ed;
  --color-bronze-border: #fed7aa;

  --accent-blue: #0284c7;
  --accent-green: #16a34a;

  /* Neutrale Töne & Hintergründe (Default Light Mode) */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --bg-input: #ffffff;
  
  --header-bg: #ffffff;
  --footer-bg: #0f172a;
  
  /* Typografie */
  --text-main: #334155;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-link: #d52b1e;
  --text-link-hover: #b32015;
  
  /* Rahmen & Schatten */
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-dark: #cbd5e1;
  --border-focus: #d52b1e;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  
  /* Radien */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Dark Mode Variablen (Gleiches Design, dunkle Farbgebung)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-page: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-alt: #1e293b;
  --bg-input: #1e293b;
  
  --header-bg: #0f172a;
  --footer-bg: #070a12;
  
  --text-main: #cbd5e1;
  --text-heading: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-link: #f87171;
  --text-link-hover: #fca5a5;
  
  --border: #1e293b;
  --border-subtle: #182234;
  --border-dark: #334155;
  --border-focus: #ef4444;

  --swiss-red-light: rgba(213, 43, 30, 0.2);
  --swiss-red-border: rgba(213, 43, 30, 0.4);

  --color-gold: #fbbf24;
  --color-gold-bg: rgba(245, 158, 11, 0.12);
  --color-gold-border: rgba(245, 158, 11, 0.35);

  --color-silver: #e2e8f0;
  --color-silver-bg: rgba(148, 163, 184, 0.12);
  --color-silver-border: rgba(148, 163, 184, 0.3);

  --color-bronze: #fb923c;
  --color-bronze-bg: rgba(249, 115, 22, 0.12);
  --color-bronze-border: rgba(249, 115, 22, 0.35);

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg-page: #0b0f19;
    --bg-card: #131b2e;
    --bg-card-alt: #1e293b;
    --bg-input: #1e293b;
    
    --header-bg: #0f172a;
    --footer-bg: #070a12;
    
    --text-main: #cbd5e1;
    --text-heading: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --text-link: #f87171;
    --text-link-hover: #fca5a5;
    
    --border: #1e293b;
    --border-subtle: #182234;
    --border-dark: #334155;
    --border-focus: #ef4444;

    --swiss-red-light: rgba(213, 43, 30, 0.2);
    --swiss-red-border: rgba(213, 43, 30, 0.4);

    --color-gold: #fbbf24;
    --color-gold-bg: rgba(245, 158, 11, 0.12);
    --color-gold-border: rgba(245, 158, 11, 0.35);

    --color-silver: #e2e8f0;
    --color-silver-bg: rgba(148, 163, 184, 0.12);
    --color-silver-border: rgba(148, 163, 184, 0.3);

    --color-bronze: #fb923c;
    --color-bronze-bg: rgba(249, 115, 22, 0.12);
    --color-bronze-border: rgba(249, 115, 22, 0.35);

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
  }
}

/* --------------------------------------------------------------------------
   1. Reset & Grundgerüst
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--text-link-hover);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1360px;
}

.container-narrow {
  max-width: 840px;
}

.main-content {
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   2. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--header-bg);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0.5rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-heading);
  flex-shrink: 0;
}

.brand-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--swiss-red);
  background-color: var(--swiss-red-light);
}

.nav-link.active {
  color: var(--swiss-red);
  background-color: var(--swiss-red-light);
  font-weight: 700;
}

.nav-cta {
  background-color: #0f172a;
  color: #ffffff !important;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  margin-left: 0.35rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

[data-theme="dark"] .nav-cta {
  background-color: #1e293b;
  border: 1px solid var(--border-dark);
}

.nav-cta:hover {
  background-color: var(--swiss-red);
}

/* Theme Switcher Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-dark);
  color: var(--text-heading);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.65rem;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
  margin-left: 0.35rem;
}

.theme-toggle-btn:hover {
  border-color: var(--swiss-red);
  color: var(--swiss-red);
  background: var(--swiss-red-light);
}

.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
  min-height: 42px;
}

.menu-toggle:hover {
  background: var(--bg-card-alt);
}

.mobile-menu {
  display: none;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-link:hover {
  color: var(--swiss-red);
}

/* --------------------------------------------------------------------------
   3. Buttons & UI Komponenten
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--swiss-red);
  color: #ffffff !important;
  border-color: var(--swiss-red);
}

.btn-primary:hover {
  background-color: var(--swiss-red-dark);
  border-color: var(--swiss-red-dark);
}

.btn-secondary {
  background-color: #0f172a;
  color: #ffffff !important;
  border-color: #0f172a;
}

[data-theme="dark"] .btn-secondary {
  background-color: #1e293b;
  border-color: #334155;
}

.btn-secondary:hover {
  background-color: #1e293b;
  border-color: #1e293b;
}

.btn-outline {
  background-color: var(--bg-card);
  color: var(--text-heading);
  border-color: var(--border-dark);
}

.btn-outline:hover {
  background-color: var(--bg-card-alt);
  border-color: var(--text-heading);
  color: var(--text-heading);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-dark);
  transition: all 0.15s ease;
}

.pill-btn:hover {
  border-color: var(--swiss-red);
  color: var(--swiss-red);
}

.pill-btn.active {
  background-color: var(--swiss-red);
  color: #ffffff !important;
  border-color: var(--swiss-red);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  background-color: var(--bg-card-alt);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.badge-positive {
  background-color: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.3);
}

.badge-negative {
  background-color: rgba(220, 38, 38, 0.12);
  color: #ef4444;
  border-color: rgba(220, 38, 38, 0.3);
}

.streicher-val {
  color: #ef4444;
  font-weight: 700;
  text-decoration: line-through;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   4. Hero Banner (Homepage)
   -------------------------------------------------------------------------- */
.hero-banner {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 3rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--swiss-red);
  background-color: var(--swiss-red-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  border: 1px solid var(--swiss-red-border);
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--swiss-red);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-emblem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 360px;
  width: 100%;
}

.hero-logo-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
}

.hero-emblem-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.hero-emblem-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Sections, Cards & Quickfacts
   -------------------------------------------------------------------------- */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-title-wrap {
  display: flex;
  flex-direction: column;
}

.section-subtitle {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--swiss-red);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 900;
  color: var(--text-heading);
}

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

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.65rem;
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   6. Podium Top 3 (Jahresmeisterschaft)
   -------------------------------------------------------------------------- */
.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.podium-card {
  flex: 1;
  max-width: 380px;
  border-radius: var(--radius-md);
  padding: 1.6rem 1.35rem;
  border: 2px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.podium-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Stepped Podium: 1. Rang (Gold, Center, Tallest) > 2. Rang (Silber, Left, Medium) > 3. Rang (Bronze, Right, Lowest) */
.podium-silver {
  order: 1;
  min-height: 220px;
  border-color: var(--color-silver-border);
  background-color: var(--color-silver-bg);
}

.podium-gold {
  order: 2;
  min-height: 265px;
  flex: 1.06;
  border-color: var(--color-gold-border);
  background-color: var(--color-gold-bg);
  box-shadow: 0 8px 24px -4px rgba(234, 179, 8, 0.22), var(--shadow-sm);
  z-index: 2;
}

.podium-bronze {
  order: 3;
  min-height: 185px;
  border-color: var(--color-bronze-border);
  background-color: var(--color-bronze-bg);
}

.podium-rank-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.podium-gold .podium-rank-label { color: var(--color-gold); }
.podium-silver .podium-rank-label { color: var(--color-silver); }
.podium-bronze .podium-rank-label { color: var(--color-bronze); }

.podium-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.podium-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.podium-score {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-heading);
  margin-top: auto;
}

.podium-score span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. Data Tables & Matrix
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  background-color: #0f172a;
  color: #f8fafc;
  font-weight: 700;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

[data-theme="dark"] .data-table th {
  background-color: #070a12;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:nth-child(even) td {
  background-color: var(--bg-card-alt);
}

.data-table tr:hover td {
  background-color: var(--swiss-red-light);
}

.cell-rank {
  font-weight: 800;
  color: var(--text-heading);
  width: 60px;
}

.cell-total {
  font-weight: 900;
  color: var(--swiss-red);
  font-size: 1rem;
}

.table-scroll-hint {
  display: none;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .table-scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
}

/* --------------------------------------------------------------------------
   8. News & Blog Grid
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--bg-card-alt);
}

.blog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--swiss-red);
  margin-bottom: 0.4rem;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.blog-title a {
  color: var(--text-heading);
}

.blog-title a:hover {
  color: var(--swiss-red);
}

.blog-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   9. Alerts & Search
   -------------------------------------------------------------------------- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

.alert-info {
  background-color: rgba(2, 132, 199, 0.12);
  color: var(--text-heading);
  border-color: rgba(2, 132, 199, 0.3);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--text-heading);
  border-color: rgba(245, 158, 11, 0.3);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.12);
  color: var(--text-heading);
  border-color: rgba(239, 68, 68, 0.3);
}

.alert-success {
  background-color: rgba(22, 163, 74, 0.12);
  color: var(--text-heading);
  border-color: rgba(22, 163, 74, 0.3);
}

.search-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  pointer-events: none;
  font-size: 0.9rem;
  opacity: 0.6;
}

.search-input {
  padding: 0.5rem 0.85rem 0.5rem 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  font-size: 0.88rem;
  background-color: var(--bg-input);
  color: var(--text-heading);
  outline: none;
  width: 240px;
  transition: border-color 0.15s ease;
}

.search-input:focus {
  border-color: var(--swiss-red);
}

.year-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   10. Admin Matrix Styling
   -------------------------------------------------------------------------- */
.matrix-input {
  width: 75px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
  background: var(--bg-input);
  color: var(--text-heading);
}

.matrix-input:focus {
  outline: none;
  border-color: var(--swiss-red);
  box-shadow: 0 0 0 2px var(--swiss-red-light);
}

.matrix-saving {
  background-color: rgba(245, 158, 11, 0.25) !important;
  border-color: #f59e0b !important;
}

.matrix-saved {
  background-color: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
}

.matrix-error {
  background-color: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--footer-bg);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--swiss-red);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #cbd5e1;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   12. Leaflet Map Container
   -------------------------------------------------------------------------- */
.map-container {
  height: 420px;
  width: 100%;
  border-radius: var(--radius-sm);
  z-index: 1;
}

/* --------------------------------------------------------------------------
   13. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-visual {
    justify-content: flex-start;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }

  .mobile-theme-btn {
    display: inline-flex !important;
  }

  .podium-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .podium-card {
    width: 100%;
    max-width: 100%;
    min-height: auto !important;
    padding: 1.25rem 1.25rem;
  }

  .podium-gold {
    order: 1 !important;
  }

  .podium-silver {
    order: 2 !important;
  }

  .podium-bronze {
    order: 3 !important;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2rem;
  }
}

/* --------------------------------------------------------------------------
   14. Live Analytics & Pulse Indicator
   -------------------------------------------------------------------------- */
.live-pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-green 2s infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

