/* ========================================================
   LOS VASCOS - Offizielles Sandplatz Design System
   Klassisches Tennis-Clay (#C55521) & Deep Navy (#1A365D)
   Helles, kontrastreiches Web-Layout
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=Playwrite+US+Trad&display=swap');

:root {
  /* Farbsystem */
  --bg-sand: #f8fafc;
  --bg-dark: #f8fafc;
  --bg-darker: #f1f5f9;
  --bg-surface: #ffffff;
  --surface-card: #ffffff;
  --surface-card-hover: #ffffff;

  --navy-primary: #1a365d;
  --navy-dark: #0f172a;
  --navy-muted: #2d4a77;

  --clay-primary: #c55521;
  --clay-hover: #b44415;
  --clay-dark: #9c3b12;
  --clay-glow: rgba(197, 85, 33, 0.25);

  --primary-green: #c55521;
  --neon-green: #b44415;
  --accent-gold: #d97706;
  --accent-amber: #b45309;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;

  --border-subtle: rgba(26, 54, 93, 0.12);
  --border-glow: rgba(197, 85, 33, 0.3);

  /* Typografie & Radien */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-accent: 'Playwrite US Trad', cursive, sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-sand);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(197, 85, 33, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(217, 119, 6, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  background-attachment: fixed;
}

/* Links */
a, a:visited {
  color: inherit;
  text-decoration: none;
}

/* ========================================================
   Header & Navigation
   ======================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: var(--transition-normal);
}

.navbar-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0.5rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 0 6px rgba(197, 85, 33, 0.35));
  flex-shrink: 0;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(197, 85, 33, 0.5));
}

.brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-primary);
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-tag {
  font-size: 0.65rem;
  color: var(--clay-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--navy-primary);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  text-align: center;
  line-height: 1.15;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clay-primary);
  background: rgba(197, 85, 33, 0.07);
}

.nav-sub {
  font-size: 0.62rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
  transition: color var(--transition-fast);
}

.nav-link:hover .nav-sub,
.nav-link.active .nav-sub {
  color: var(--clay-primary);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--navy-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ========================================================
   Hero Section
   ======================================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(197, 85, 33, 0.08);
  border: 1px solid rgba(197, 85, 33, 0.28);
  border-radius: 50px;
  color: var(--clay-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.1rem;
  color: var(--navy-primary);
  background: linear-gradient(135deg, #1a365d 40%, #c55521 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: 1.55rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #c55521, #d9480f);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(197, 85, 33, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(197, 85, 33, 0.5);
}

.btn-secondary {
  background: rgba(26, 54, 93, 0.05);
  color: var(--navy-primary);
  border: 1px solid rgba(26, 54, 93, 0.22);
}

.btn-secondary:hover {
  background: rgba(26, 54, 93, 0.1);
  border-color: var(--navy-primary);
  transform: translateY(-2px);
}

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

.hero-img {
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), 0 0 25px rgba(197, 85, 33, 0.15);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.hero-img:hover {
  transform: scale(1.02);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18), 0 0 35px rgba(197, 85, 33, 0.22);
}

/* ========================================================
   Globale Sections & Grids
   ======================================================== */
.section {
  padding: 5.5rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--navy-primary);
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

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

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.card:hover {
  border-color: var(--clay-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(197, 85, 33, 0.14);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1.1rem;
  display: inline-block;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--navy-primary);
}

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

/* ========================================================
   Die Gründerväter (Spieler-Karten)
   ======================================================== */
.player-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.8rem;
}

@media (max-width: 768px) {
  .player-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.player-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.player-card:hover {
  transform: translateY(-5px);
  border-color: var(--clay-primary);
  box-shadow: 0 10px 30px rgba(197, 85, 33, 0.15);
}

.player-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--clay-primary);
  box-shadow: 0 0 10px rgba(197, 85, 33, 0.3);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.player-card:hover .player-avatar {
  transform: scale(1.08);
  border-color: var(--accent-gold);
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.4);
}

.player-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-info {
  display: flex;
  flex-direction: column;
}

.player-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.15;
}

.player-title {
  font-size: 0.8rem;
  color: var(--clay-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.mytennis-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(26, 54, 93, 0.05);
  border: 1px solid rgba(26, 54, 93, 0.12);
  border-radius: var(--radius-sm);
  margin-top: 0.4rem;
  font-size: 0.85rem;
  width: fit-content;
}

.r-rank {
  color: var(--clay-primary);
  font-weight: 700;
}

/* Player Card Official Stats Box (Clean Light Theme) */
.player-stats-box {
  margin-top: 1.1rem;
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(26, 54, 93, 0.12);
}

.player-stats-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy-primary, #1a365d);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.player-stats-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.player-stats-row {
  background: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(26, 54, 93, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.player-stats-row.saison {
  border-left: 4px solid var(--clay-primary, #c55521);
}

.player-stats-row.interclub {
  border-left: 4px solid var(--accent-gold, #d97706);
}

.player-stats-row.turniere {
  border-left: 4px solid #0284c7;
}

.player-stats-label {
  display: block;
  font-size: 0.82rem;
  color: #0f172a;
  font-weight: 700;
}

.player-stats-meta {
  font-size: 0.76rem;
  color: #475569;
}

.player-stats-meta .wins {
  color: #16a34a;
  font-weight: 800;
}

.player-stats-meta .losses {
  color: #dc2626;
  font-weight: 800;
}

.player-stats-wr {
  font-size: 1.05rem;
  font-weight: 900;
}

.player-stats-wr.saison {
  color: var(--clay-primary, #c55521);
}

.player-stats-wr.interclub {
  color: var(--accent-gold, #d97706);
}

.player-stats-wr.turniere {
  color: #0284c7;
}

.player-stats-note {
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  margin-top: 0.55rem;
  text-align: right;
  line-height: 1.35;
  font-style: italic;
}

.player-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: #1e293b;
  margin-top: 1.1rem;
  padding: 0;
}

.player-details-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.player-details-list strong {
  color: var(--navy-primary);
}

.player-quote {
  margin-top: 1.4rem;
  padding: 0.85rem 1rem;
  background: rgba(197, 85, 33, 0.06);
  border-left: 3px solid var(--clay-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Player Card Details Accordion (Option A) */
.player-card-details {
  margin-top: 0.85rem;
}

.player-card-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  background: rgba(197, 85, 33, 0.08);
  border: 1px solid rgba(197, 85, 33, 0.22);
  border-radius: var(--radius-sm, 8px);
  color: var(--clay-primary, #c55521);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: all var(--transition-fast);
  text-align: center;
}

.player-card-summary::-webkit-details-marker {
  display: none;
}

.player-card-summary:hover {
  background: rgba(197, 85, 33, 0.14);
  border-color: var(--clay-primary);
}

.player-card-details[open] .summary-text-closed {
  display: none;
}
.player-card-details:not([open]) .summary-text-open {
  display: none;
}

.player-card-details[open] .player-card-summary {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
  margin-bottom: 0.9rem;
}

@media (min-width: 769px) {
  .player-card-summary {
    display: none !important;
  }
  .player-card-details {
    display: block !important;
    margin-top: 0;
  }
}

/* Deep link highlight pulse animation */
@keyframes cardGlowPulse {
  0% { box-shadow: 0 0 0 rgba(197, 85, 33, 0); }
  50% { box-shadow: 0 0 35px rgba(197, 85, 33, 0.65), 0 0 15px rgba(217, 119, 6, 0.5); transform: translateY(-4px) scale(1.02); }
  100% { box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05); transform: translateY(0) scale(1); }
}

.highlight-pulse {
  animation: cardGlowPulse 1.8s ease-in-out;
  border-color: var(--clay-primary) !important;
}

/* ========================================================
   La Historia (Akkordeon & Timeline)
   ======================================================== */
.story-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem;
}

.story-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.story-accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.story-accordion-item:hover {
  border-color: rgba(197, 85, 33, 0.35);
}

.story-accordion-item[open] {
  border-color: var(--clay-primary);
  box-shadow: 0 6px 20px rgba(197, 85, 33, 0.12);
}

.story-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background var(--transition-fast);
}

.story-accordion-header::-webkit-details-marker {
  display: none;
}

.story-accordion-item[open] .story-accordion-header {
  background: rgba(197, 85, 33, 0.07);
  border-bottom: 1px solid rgba(197, 85, 33, 0.15);
}

.story-accordion-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.story-accordion-item[open] .story-accordion-title {
  color: var(--clay-primary);
}

.story-accordion-icon {
  font-size: 0.95rem;
  color: var(--clay-primary);
  transition: transform var(--transition-fast);
}

.story-accordion-item[open] .story-accordion-icon {
  transform: rotate(180deg);
}

.story-accordion-content {
  padding: 1.35rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.timeline-item {
  border-left: 4px solid var(--clay-primary) !important;
}

.timeline-year {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--clay-primary);
  margin-bottom: 0.4rem;
}

/* ========================================================
   Ranglisten, Tabs & Tabellen
   ======================================================== */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(26, 54, 93, 0.05);
  border: 1px solid rgba(26, 54, 93, 0.15);
  color: var(--text-muted);
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--clay-primary);
  color: #ffffff;
  border-color: var(--clay-primary);
  box-shadow: 0 4px 16px rgba(197, 85, 33, 0.35);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
}

table thead tr {
  background: #f1f5f9;
  color: var(--navy-primary);
  font-weight: 700;
}

table tbody tr {
  background: #ffffff;
  color: var(--text-main);
  border-bottom: 1px solid #e2e8f0;
}

table tbody tr:nth-child(even) {
  background: #f8fafc;
}

table td, table th {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid #e2e8f0;
}

/* ========================================================
   Head-to-Head Direktvergleich Tool
   ======================================================== */
.h2h-widget {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  margin-top: 1rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.h2h-selectors {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.h2h-select-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 180px;
}

.h2h-select-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.h2h-select {
  background: #ffffff;
  color: var(--navy-primary);
  border: 1px solid #cbd5e1;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.h2h-select:focus {
  border-color: var(--clay-primary);
}

.h2h-vs-badge {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--clay-primary);
  background: rgba(197, 85, 33, 0.1);
  padding: 0.45rem 0.85rem;
  border-radius: 50%;
  border: 1px solid rgba(197, 85, 33, 0.25);
  margin-top: 1.2rem;
}

.h2h-bar-wrapper {
  margin: 1.2rem 0;
}

.h2h-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.h2h-bar-track {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
}

.h2h-bar-p1 {
  height: 100%;
  background: linear-gradient(90deg, #c55521, #e06028);
  transition: width 0.5s ease;
}

.h2h-bar-p2 {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  transition: width 0.5s ease;
}

.h2h-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
  text-align: center;
}

.h2h-stat-box {
  background: #f8fafc;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.h2h-stat-title {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.h2h-stat-score {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-top: 0.2rem;
}

/* Head-to-Head Year Filters */
.h2h-year-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
  justify-content: center;
}

.h2h-year-pill {
  background: rgba(26, 54, 93, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(26, 54, 93, 0.15);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.h2h-year-pill:hover {
  background: rgba(197, 85, 33, 0.1);
  color: var(--clay-primary);
  border-color: rgba(197, 85, 33, 0.3);
}

.h2h-year-pill.active {
  background: var(--clay-primary);
  color: #ffffff;
  border-color: var(--clay-primary);
  box-shadow: 0 3px 12px rgba(197, 85, 33, 0.3);
}

.h2h-match-history-card {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e2e8f0;
}

.h2h-match-history-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.h2h-match-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-right: 0.3rem;
}

.h2h-note-box {
  margin-top: 1.25rem;
  background: #fffbeb;
  border-left: 4px solid var(--accent-gold);
  border-top: 1px solid #fef3c7;
  border-right: 1px solid #fef3c7;
  border-bottom: 1px solid #fef3c7;
  padding: 0.85rem 1.15rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--navy-primary);
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.h2h-match-row {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  align-items: center;
  background: #f8fafc;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.h2h-match-row:hover {
  background: #f1f5f9;
}

.h2h-match-date {
  justify-self: start;
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.h2h-match-score {
  text-align: center;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.h2h-match-winner {
  justify-self: end;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  white-space: nowrap;
  text-align: right;
}

.h2h-match-winner.p1 {
  color: var(--clay-primary);
  background: rgba(197, 85, 33, 0.12);
}

.h2h-match-winner.p2 {
  color: var(--accent-gold);
  background: rgba(217, 119, 6, 0.12);
}

.h2h-match-winner.draw {
  color: var(--text-muted);
  background: #e2e8f0;
}

@media (max-width: 520px) {
  .h2h-match-row {
    grid-template-columns: 105px 1fr 105px;
    padding: 0.45rem 0.5rem;
    font-size: 0.78rem;
    gap: 0.25rem;
  }
  .h2h-match-score {
    font-size: 0.85rem;
  }
  .h2h-match-winner {
    font-size: 0.76rem;
    padding: 0.15rem 0.4rem;
  }
}

/* ========================================================
   Floating Back to Top
   ======================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clay-primary);
  color: #ffffff;
  border: none;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(197, 85, 33, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--clay-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(197, 85, 33, 0.55);
}

/* ========================================================
   Footer
   ======================================================== */
.footer {
  background: var(--navy-dark);
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #f8fafc;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--clay-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ========================================================
   Mobile Bottom Floating Bar:
   NUR AUF SMARTPHONES / TOUCH GERÄTEN (NICHT AUF DESKTOP)
   ======================================================== */
.mobile-bottom-nav,
#mobile-pill-bar {
  display: none !important;
}

@media (max-width: 820px) {
  .mobile-bottom-nav,
  #mobile-pill-bar {
    display: flex !important;
    position: fixed !important;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 2rem) !important;
    max-width: 380px !important;
    height: 52px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(197, 85, 33, 0.35) !important;
    border-radius: 35px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    z-index: 999999 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 0.5rem !important;
  }

  body {
    padding-bottom: 5.5rem;
  }

  .bottom-nav-item {
    font-size: 1.35rem;
    text-decoration: none;
    padding: 0.35rem 0.55rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
  }

  .bottom-nav-item:active {
    transform: scale(1.15);
  }
}

/* ========================================================
   Responsive Anpassungen (Tablet & Mobile)
   ======================================================== */
@media (max-width: 1180px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 7rem;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

/* ========================================================
   Aufnahmeformular (Governance Art. 25)
   ======================================================== */
.application-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.application-card:hover {
  border-color: rgba(197, 85, 33, 0.35);
  box-shadow: 0 8px 30px rgba(197, 85, 33, 0.08);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .application-card {
    padding: 1.4rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-label .required {
  color: var(--clay-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--clay-primary);
  box-shadow: 0 0 0 3px rgba(197, 85, 33, 0.15);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.pledge-box {
  background: rgba(197, 85, 33, 0.04);
  border: 1px solid rgba(197, 85, 33, 0.2);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pledge-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--clay-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--clay-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.btn-submit-app {
  width: 100%;
  padding: 1.15rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #c55521 0%, #b44415 50%, #9c3b12 100%) !important;
  color: #ffffff !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(197, 85, 33, 0.4);
}

.btn-submit-app * {
  color: #ffffff !important;
}

.btn-submit-app:hover {
  background: linear-gradient(135deg, #b44415 0%, #9c3b12 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 85, 33, 0.55);
}

.btn-submit-app:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status-alert {
  display: none;
  margin-top: 1.2rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

.form-status-alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #065f46;
}

.form-status-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #991b1b;
}

/* ========================================================
   Events Section (Filter Bar, Horizontal Cards & Drawer)
   ======================================================== */
.event-filter-bar {
  background: #ffffff;
  border-radius: var(--radius-md, 16px);
  padding: 1rem 1.3rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.event-filter-pill-btn {
  background: var(--navy-primary, #1a365d);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.event-filter-pill-btn:hover {
  opacity: 0.9;
}

.event-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 140px;
  flex: 1;
}

.event-filter-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
  letter-spacing: 0.6px;
}

.event-filter-select {
  background: #f8fafc;
  color: var(--navy-primary, #1a365d);
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.event-filter-select:focus {
  border-color: var(--clay-primary, #c55521);
  background: #ffffff;
}

.event-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  padding: 0 0.4rem;
}

.event-card-horizontal {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.3rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.event-card-horizontal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.09);
  border-color: #cbd5e1;
}

.event-card-top {
  padding: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  cursor: pointer;
}

.event-card-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 1;
}

.event-card-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  object-fit: cover;
  background: #f8fafc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.event-card-info {
  flex: 1;
}

.event-card-city {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--clay-primary, #c55521);
  margin-bottom: 0.2rem;
}

.event-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-primary, #1a365d);
  margin: 0 0 0.3rem 0;
  line-height: 1.25;
}

.event-card-location {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.event-card-badge {
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-primary, #1a365d);
  background: #f8fafc;
  white-space: nowrap;
}

.event-card-bottom {
  padding: 0.95rem 1.6rem;
  background: #faf8f5;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.event-card-datetime {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-primary, #1a365d);
  display: flex;
  flex-direction: column;
}

.event-card-time {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  margin-top: 0.15rem;
}

.event-card-tags {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.event-tag-edition {
  color: var(--clay-primary, #c55521);
  font-weight: 700;
  font-size: 0.85rem;
}

.event-tag-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-primary, #1a365d);
}

.event-card-price-action {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.event-card-price {
  text-align: right;
  line-height: 1.2;
}

.event-card-price-label {
  font-size: 0.74rem;
  color: var(--text-muted, #64748b);
  display: block;
}

.event-card-price-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-primary, #1a365d);
}

.btn-event-ticket {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.65rem 1.5rem;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 12px rgba(217, 119, 6, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-event-ticket:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

/* Slide-over Drawer / Modal */
.event-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.event-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.event-drawer {
  position: fixed;
  top: 0;
  right: -650px;
  width: 100%;
  max-width: 600px;
  height: 100vh;
  background: #fdfbf7;
  box-shadow: -10px 0 35px rgba(0,0,0,0.18);
  z-index: 99999;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.event-drawer.active {
  right: 0;
}

.event-drawer-header {
  position: sticky;
  top: 0;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.event-drawer-header-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
}

.btn-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--navy-primary, #1a365d);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-drawer-close:hover {
  background: #f1f5f9;
  transform: rotate(90deg);
}

.event-drawer-body {
  padding: 1.8rem 1.8rem 3rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-drawer-hero {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.4rem;
}

.event-drawer-hero-city {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--clay-primary, #c55521);
  margin-bottom: 0.3rem;
}

.event-drawer-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy-primary, #1a365d);
  margin: 0 0 0.5rem 0;
  line-height: 1.15;
}

.event-drawer-hero-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
}

.event-highlight-quote-box {
  background: #ffffff;
  border-left: 4px solid var(--clay-primary, #c55521);
  border-top: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 1.15rem 1.4rem;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.event-highlight-quote-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-primary, #1a365d);
  margin-bottom: 0.4rem;
}

.event-highlight-quote-text {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
}

.event-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.event-fact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.event-fact-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.event-fact-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-primary, #1a365d);
  line-height: 1.25;
}

.event-fact-sub {
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
  margin-top: 0.2rem;
}

.event-checklist-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.3rem;
}

.event-checklist-title {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
  margin-bottom: 0.4rem;
}

.event-checklist-heading {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy-primary, #1a365d);
  margin-bottom: 1rem;
}

.event-checklist-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.event-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--navy-primary, #1a365d);
  line-height: 1.45;
}

.event-checklist-item span {
  color: #10b981;
  font-weight: 800;
  flex-shrink: 0;
}

.event-register-card {
  background: #ffffff;
  border: 2px solid var(--accent-gold, #d97706);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.12);
}

.event-register-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-primary, #1a365d);
  margin-bottom: 0.35rem;
}

.event-register-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 1.2rem;
}

/* Mobile responsiveness */
@media (max-width: 680px) {
  .event-card-top {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem;
  }
  .event-card-header {
    width: 100%;
  }
  .event-card-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem;
    gap: 0.9rem;
  }
  .event-card-price-action {
    width: 100%;
    justify-content: space-between;
  }
  .event-facts-grid {
    grid-template-columns: 1fr;
  }
  .event-drawer {
    max-width: 100%;
  }
}

/* ========================================================
   Mobile-Optimierte Abstände & Raumgewinn (Phase 1)
   ======================================================== */
@media (max-width: 768px) {
  /* 1. Global Section & Card Padding Halved */
  .section {
    padding: 3.2rem 1.15rem;
  }
  .card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }
  .section-header {
    margin-bottom: 1.8rem;
  }
  .section-title {
    font-size: 1.95rem;
    margin-bottom: 0.4rem;
  }
  .section-desc {
    font-size: 0.92rem;
  }
  .grid-2, .grid-3 {
    gap: 1.1rem;
  }

  /* 2. Hero Section */
  .hero {
    padding: 5.2rem 1rem 2.2rem !important;
    min-height: auto;
  }
  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
  }
  .hero-description {
    font-size: 0.92rem;
    margin-bottom: 1.4rem;
    line-height: 1.6;
    padding: 0 0.25rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  .hero-img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin-top: 1.2rem;
  }

  /* 3. Player Cards (Kader) */
  .player-card {
    padding: 1.15rem 0.95rem;
  }
  .player-name {
    font-size: 1.35rem;
  }
  .player-stats-box {
    padding: 0.85rem;
  }
  .player-stats-row {
    padding: 0.55rem 0.75rem;
  }
  .player-stats-label {
    font-size: 0.78rem;
  }
  .player-stats-wr {
    font-size: 0.98rem;
  }
  .player-details-list {
    font-size: 0.88rem;
    gap: 0.45rem;
  }
  .player-quote {
    margin-top: 1rem;
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
  }

  /* 4. La Historia */
  .story-card {
    padding: 1.2rem 0.95rem;
  }
  .story-title {
    font-size: 1.35rem !important;
    line-height: 1.35;
  }
  .story-accordion-header {
    padding: 0.9rem 1rem;
  }
  .story-accordion-title {
    font-size: 1rem;
  }
  .story-accordion-content {
    padding: 1rem 0.85rem;
    font-size: 0.92rem;
    line-height: 1.6;
  }
  .story-highlight-box {
    padding: 0.95rem !important;
    margin: 1rem 0 !important;
  }
  .timeline {
    gap: 1rem;
  }
  .timeline-item.card,
  .timeline-item {
    padding: 1rem 0.85rem !important;
  }
  .timeline-year {
    font-size: 1.25rem;
  }

  /* 5. Ranglisten & Tabellen */
  .tabs-container {
    gap: 0.45rem;
    margin-bottom: 1.4rem;
  }
  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.4rem;
    border-radius: var(--radius-sm);
  }
  table th, table td {
    padding: 0.6rem 0.35rem;
    font-size: 0.8rem;
  }

  /* 6. Head-to-Head (H2H) */
  .h2h-widget {
    padding: 1rem 0.85rem;
  }
  .h2h-selectors {
    gap: 0.6rem;
    margin-bottom: 1.2rem;
  }
  .h2h-select-group {
    min-width: 130px;
    flex: 1;
  }
  .h2h-select {
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
  }
  .h2h-vs-badge {
    margin-top: 0.9rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.95rem;
  }
  .h2h-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }
  .h2h-stat-score {
    font-size: 1.05rem;
  }

  /* 7. Aufnahmegesuch Formular */
  .application-card {
    padding: 1.25rem 0.95rem !important;
  }
  .form-group {
    margin-bottom: 0.9rem;
  }
  .form-input, .form-select, .form-textarea {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }
  .pledge-box {
    padding: 0.9rem 0.85rem;
    gap: 0.65rem;
    margin: 1rem 0;
  }
  .pledge-box label {
    font-size: 0.84rem;
  }

  /* 8. Merch & Shop iFrame */
  #spreadshop-iframe {
    min-height: 680px;
  }

  /* 9. Floating Bottom Navigation Bar Safe Area */
  .mobile-bottom-nav,
  #mobile-pill-bar {
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100% - 1.5rem) !important;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.4rem 0.85rem;
  }
  .card {
    padding: 1.05rem 0.75rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }
  .player-card {
    padding: 1rem 0.8rem;
  }
  .player-header {
    gap: 0.75rem;
  }
  .player-avatar {
    width: 44px;
    height: 44px;
  }
  .player-name {
    font-size: 1.25rem;
  }
  .story-card {
    padding: 1rem 0.75rem;
  }
}


