/* ==========================================================================
   SG WBO Website - Optimierte Styles mit WCAG AA & Fluid Sizing
   Version: 2.2
   Datum: November 2025
   
   Inhaltsverzeichnis:
   1. CSS Custom Properties (Design Tokens)
   2. Reset & Base Styles
   3. Typography
   4. Layout & Container
   5. Navigation
   6. Components (Cards, Buttons, Forms)
   7. Page-Specific Styles
   8. Utilities
   9. Responsive Media Queries
   10. Cookie Banner
   
   WCAG AA Kontrast-Ratios:
   - Normaler Text: Mindestens 4.5:1
   - Großer Text (18pt+/14pt+ bold): Mindestens 3:1
   - UI Komponenten: Mindestens 3:1
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
  /* === FARBEN === */
  --primary: #009647;
  --primary-dark: #007a3b;
  --primary-light: #0eb55f;
  --primary-bg-light: #e8f5e9;

  --accent: #ff5a5f;
  --accent-dark: #e5454a;

  /* Graustufen - Optimiert für WCAG AA Kontraste */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantische Farben */
  --success: #10b981;
  --success-bg: #d1e7dd;
  --warning: #f59e0b;
  --error: #ef4444;
  --error-bg: #f8d7da;
  --info: #3b82f6;

  /* Surface Colors */
  --surface: #ffffff;
  --surface-alt: #fafbfc;
  --background: #f4f6f8;

  /* Text Colors - WCAG AA compliant */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --text-inverse: #ffffff;

  /* Link Colors */
  --link-color: #007a3b;
  --link-hover: #005a2b;

  /* === FLUID SPACING - Responsiv mit clamp === */
  --space-1: clamp(0.25rem, 0.2rem + 0.25vw, 0.3rem);
  /* ~4-5px */
  --space-2: clamp(0.5rem, 0.4rem + 0.5vw, 0.625rem);
  /* ~8-10px */
  --space-3: clamp(0.75rem, 0.6rem + 0.75vw, 0.9375rem);
  /* ~12-15px */
  --space-4: clamp(1rem, 0.85rem + 0.75vw, 1.25rem);
  /* ~16-20px */
  --space-5: clamp(1.25rem, 1rem + 1.25vw, 1.5625rem);
  /* ~20-25px */
  --space-6: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  /* ~24-32px */
  --space-8: clamp(2rem, 1.6rem + 2vw, 2.5rem);
  /* ~32-40px */
  --space-10: clamp(2.5rem, 2rem + 2.5vw, 3.125rem);
  /* ~40-50px */
  --space-12: clamp(3rem, 2.4rem + 3vw, 3.75rem);
  /* ~48-60px */
  --space-16: clamp(4rem, 3.2rem + 4vw, 5rem);
  /* ~64-80px */
  --space-20: clamp(5rem, 4rem + 5vw, 6.25rem);
  /* ~80-100px */

  /* === TYPOGRAFIE === */
  --font-base: 'Rubik', 'Nunito', system-ui, -apple-system, sans-serif;
  --font-display: 'Rubik', var(--font-base);

  /* Fluid Typography Scale */
  --text-xs: clamp(0.8125rem, 0.75rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.125vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --text-2xl: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --text-3xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights - Optimiert für Lesbarkeit */
  --line-height-tight: 1;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;
  --line-height-loose: 2;

  /* === FLUID BORDER RADIUS === */
  --radius-sm: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
  --radius-md: clamp(0.375rem, 0.3rem + 0.375vw, 0.5rem);
  --radius-lg: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --radius-xl: clamp(0.75rem, 0.6rem + 0.75vw, 1rem);
  --radius-2xl: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --radius-full: 9999px;

  /* === SCHATTEN === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* === TRANSITIONS === */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  --glass-bg: rgba(255, 255, 255, 0.19);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --glass-blur: clamp(16px, 1.5rem + 1vw, 28px);
  --glass-saturate: 180%;
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

  /* === FLUID LAYOUT === */
  --container-xs: clamp(320px, 90vw, 640px);
  --container-sm: clamp(320px, 90vw, 768px);
  --container-md: clamp(320px, 92vw, 1024px);
  --container-lg: clamp(320px, 94vw, 1280px);
  --container-xl: clamp(320px, 96vw, 1440px);

  --gutter: clamp(1rem, 2vw, 1.5rem);

  /* === MAX WIDTHS - für optimale Lesbarkeit === */
  --max-width-prose: clamp(45ch, 60ch, 75ch);
  --max-width-narrow: clamp(35ch, 45ch, 55ch);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === FONTS === */
@font-face {
  font-family: 'Rubik';
  src: url('/assets/fonts/Rubik-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-display: swap;
}

/* === BODY === */
body {
  position: relative;
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Optimierter Hintergrund-Effekt */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 150, 71, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255, 90, 95, 0.06) 0%, transparent 50%);
  pointer-events: none;
}


/* Mehrere subtil bewegte WBO-Logos im Hintergrund */
@media (min-width: 769px) {
  body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
      url('/assets/bilder/WBO_logo_grau.webp') 10% 20% / clamp(250px, 20vw, 400px) no-repeat,
      url('/assets/bilder/WBO_logo_grau.webp') 80% 30% / clamp(350px, 25vw, 500px) no-repeat,
      url('/assets/bilder/WBO_logo_grau.webp') 40% 70% / clamp(300px, 22vw, 450px) no-repeat;
    opacity: 0.25;
    pointer-events: none;
    animation: wboFloat 30s ease-in-out infinite alternate;
    will-change: transform;
  }
}

@keyframes wboFloat {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }

  25% {
    transform: translateY(15px) translateX(-10px) scale(1.02);
  }

  50% {
    transform: translateY(-15px) translateX(10px) scale(1.03);
  }

  75% {
    transform: translateY(10px) translateX(-5px) scale(1.01);
  }

  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
}

@keyframes subtleFloat {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(8px, -5px);
  }

  66% {
    transform: translate(-5px, 8px);
  }
}

.mt-20 {
  margin-top: var(--space-20) !important;
}

/* Mobile: Einfacher Hintergrund */
@media (max-width: 768px) {
  body::after {
    display: none;
  }
}

/* === BILDER === */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
}

/* === LINKS === */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-base);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* === LISTEN === */
ul,
ol {
  list-style: none;
}

/* === FORMULARE === */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
  line-height: 1.2;
}

h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

h5 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-normal);
}

h6 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-normal);
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  max-width: var(--max-width-prose);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Lange Wörter und URLs */
.break-words {
  word-break: break-word;
  overflow-wrap: break-word;
}

.break-all {
  word-break: break-all;
}

/* Text mit optimalem Kontrast */
.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-tertiary {
  color: var(--text-tertiary);
  font-size: var(--text-lg);
}

strong,
b {
  font-weight: var(--font-bold);
}

small {
  font-size: var(--text-sm);
  line-height: var(--line-height-normal);
}

/* Optimierte Lesbarkeit für Fließtext */
.prose {
  max-width: var(--max-width-prose);
  line-height: var(--line-height-relaxed);
}

/* ==========================================================================
   4. LAYOUT & CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-sm {
  max-width: var(--container-sm);
}

.container-md {
  max-width: var(--container-md);
}

.container-lg {
  max-width: var(--container-lg);
}

/* Main Content Area */
.page-content {
  padding: var(--space-8) 0;
  animation: fadeInUp 0.6s ease-out both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glass Morphism Effect */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  padding: var(--space-8);
  transition: transform var(--transition-base);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  overflow: hidden;
  border: 1px solid rgba(0, 150, 71, 0.15);
  /* leicht grünlicher Rahmen */
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.1));
  border-radius: inherit;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.glass:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Section Styling */
section {
  margin: var(--space-12) 0;
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

.main-header {
  max-height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 150, 71, 0.1);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--gutter);
  max-width: var(--container-xl);
  margin: 0 auto;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 1001;
}

.logo {
  height: clamp(60px, 5vw, 50px);
  width: auto;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: var(--text-lg);
  font-weight: var(--font-extrabold);
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop Navigation */
.main-nav {
  display: none;
}

.navbar-collapse {
  background-color: var(--background);
  padding: 0 12% 0 12%;
}

@media (min-width: 993px) {
  .main-nav {
    display: block;
  }

  .main-nav-list {
    display: flex;
    gap: var(--space-2);
    list-style: none;
  }

  .main-nav-list a {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    white-space: nowrap;
  }

  .main-nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width var(--transition-base);
  }

  .main-nav-list a:hover,
  .main-nav-list a.active {
    color: var(--link-color);
    background: rgba(0, 150, 71, 0.05);
  }

  .main-nav-list a:hover::after,
  .main-nav-list a.active::after {
    width: 70%;
  }

  /* Dropdown */
  .dropdown {
    position: relative;
  }

  .dropdown-content {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    min-width: clamp(180px, 15vw, 220px);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1001;
  }

  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-content a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    border-radius: 0;
    white-space: normal;
    word-wrap: break-word;
  }

  .dropdown-content a:hover {
    background: var(--gray-50);
  }
}

/* Mobile Menu */
.mobile-menu-icon {
  display: block;
  width: clamp(24px, 4vw, 28px);
  height: clamp(18px, 3vw, 20px);
  position: relative;
  cursor: pointer;
  z-index: 1002;
}

.mobile-menu-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  opacity: 1;
  left: 0;
  transition: all var(--transition-base);
}

.mobile-menu-icon span:nth-child(1) {
  top: 0;
}

.mobile-menu-icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-icon span:nth-child(3) {
  bottom: 0;
}

.mobile-menu-icon.open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-icon.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-icon.open span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

@media (max-width: 992px) {
  .main-nav {
    display: block;
  }

  .main-nav-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
  }

  .main-nav-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav-list a {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-inverse);
    padding: var(--space-3) var(--space-6);
    text-align: center;
    word-wrap: break-word;
  }

  .main-nav-list a:hover {
    color: var(--primary-light);
  }

  .main-header {
    z-index: 1500;
  }

  body.mobile-menu-active {
    overflow: hidden;
  }
}

@media (min-width: 993px) {
  .mobile-menu-icon {
    display: none;
  }
}

/* ==========================================================================
   6. COMPONENTS
   ========================================================================== */

/* === CARDS === */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-content {
  padding: var(--space-6);
  overflow: hidden;
}

.card-content h3 {
  margin-bottom: var(--space-2);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.card-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* News Card Spezifisch */
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card .image-container,
.news-card .fallback-image {
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: clamp(150px, 20vw, 200px);
  object-fit: contain;
  border-radius: 0;
}

.news-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card .meta-date {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.news-card .read-more {
  margin-top: auto;
  align-self: flex-start;
}

/* Fixierte, aber responsive Höhe für die Galerie */
.vfl-gallery-swiper {
  height: clamp(160px, 22vw, 260px);
}

.vfl-gallery-swiper .swiper-slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Team Card */
.team-card {
  text-align: center;
}

.team-logo-wrap {
  width: clamp(100px, 20vw, 150px);
  height: clamp(100px, 20vw, 150px);
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.team-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Spieler Card */
.spieler-card {
  cursor: pointer;
  text-align: center;
}

.spieler-foto {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: var(--line-height-normal);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  border: none;
  min-height: clamp(40px, 6vw, 44px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px rgba(0, 150, 71, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 150, 71, 0.4);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-outline {
  background: transparent;
  color: var(--link-color);
  border: 2px solid var(--link-color);
}

.btn-outline:hover {
  background: var(--link-color);
  color: var(--text-inverse);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--link-color);
  font-weight: var(--font-semibold);
  transition: gap var(--transition-base);
}

.read-more::after {
  content: '→';
}

.read-more:hover {
  gap: var(--space-3);
  color: var(--link-hover);
}

/* === FORMS === */
.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
  line-height: var(--line-height-normal);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 150, 71, 0.1);
}

.form-group textarea {
  min-height: clamp(100px, 15vh, 140px);
  resize: vertical;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.form-group-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.form-group-checkbox label {
  margin-bottom: 0;
  font-weight: var(--font-normal);
  font-size: var(--text-sm);
  word-wrap: break-word;
}

/* === ALERTS === */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  border-left: 4px solid;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--text-primary);
}

.alert-error {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--text-primary);
}

/* === TABLES === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-8) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

table th {
  background: var(--gray-50);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

table tbody tr:hover {
  background: var(--gray-50);
}

/* ==========================================================================
   7. PAGE-SPECIFIC STYLES
   ========================================================================== */

/* === HERO SECTION === */
.hero-section-video {
  position: relative;
  height: clamp(300px, 50vh, 600px);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin: clamp(calc(60px + 1rem), calc(70px + 2vw), calc(70px + 2rem)) 0 var(--space-12);
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: var(--space-8);
  color: var(--text-inverse);
}

.hero-content h1 {
  color: var(--text-inverse);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  margin-bottom: var(--space-4);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-content p {
  font-size: var(--text-lg);
  color: var(--text-inverse);
  max-width: clamp(280px, 80%, 600px);
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.vfl-hero-content h1,
.vfl-hero-content p {
  color: var(--text-inverse);
  text-shadow: none;
  align-items: center;
  vertical-align: middle;
}


/* ===== HERO SECTION ===== */
.vfl-hero {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
}

/* Hintergrundvideo */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* Overlay */
.hero-overlay {
  background: rgba(0, 0, 0, 0.45); /* Transparenz anpassbar */
  z-index: 2;
}

/* Content */
.vfl-hero-content {
  z-index: 3;
}

.vfl-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.vfl-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== META DATE BADGE ===== */
.vfl-meta-date {
  display: inline-block;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  color: white;
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

/* ===== CARD ICON ===== */
.vfl-card-icon {
  font-size: 1.8rem;
  line-height: 1;
}

/* ===== TIMELINE ===== */
.vfl-timeline {
  border-left: 3px solid #2d2d2d;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.vfl-timeline-item {
  margin-bottom: 1.5rem;
  position: relative;
}

.vfl-timeline-item:last-child {
  margin-bottom: 0;
}

.vfl-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.68rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  background: #2d2d2d;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #2d2d2d;
}

.vfl-timeline-year {
  font-weight: 700;
  color: #2d2d2d;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  display: block;
}

/* ===== INFO BOX ===== */
.vfl-info-box {
  padding: 1.25rem;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
  border-left: 4px solid #4a90e2;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.vfl-info-box strong {
  color: #2d5a8d;
}

/* ===== QUOTE ===== */
.vfl-quote {
  border-left: 4px solid #e0e0e0;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #666;
  line-height: 1.6;
}

/* ===== TABLE ===== */
.vfl-table {
  width: 100%;
  font-size: 0.95rem;
}

.vfl-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.vfl-table tr:last-child {
  border-bottom: none;
}

.vfl-table td {
  padding: 0.75rem 0;
  vertical-align: top;
}

.vfl-table td:first-child {
  font-weight: 600;
  color: #2d2d2d;
  width: 40%;
  padding-right: 1rem;
}

/* ===== SPORT ITEMS ===== */
.vfl-sport-item {
  padding: 1.25rem;
  background: #f9f9f9;
  border-radius: 10px;
  border-left: 4px solid #2d2d2d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
}

.vfl-sport-item:last-child {
  margin-bottom: 0;
}

.vfl-sport-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vfl-sport-item strong {
  display: block;
  color: #1a1a1a;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* ===== LINKS ===== */
.vfl-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #f9f9f9;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  margin-bottom: 1rem;
}

.vfl-link-card:last-child {
  margin-bottom: 0;
}

.vfl-link-card:hover {
  background: white;
  border-color: #2d2d2d;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #333;
}

.vfl-link-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.vfl-link-content strong {
  display: block;
  color: #1a1a1a;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.vfl-link-content small {
  color: #666;
  font-size: 0.85rem;
}

/* ===== CONTACT CARDS ===== */
.vfl-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
  border-radius: 12px;
  border-left: 4px solid #2d2d2d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.vfl-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.vfl-contact-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.vfl-contact-avatar-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.vfl-contact-info {
  flex: 1;
  min-width: 0;
}

.vfl-contact-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.vfl-contact-position {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
  display: block;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.vfl-contact-details {
  font-size: 0.85rem;
  color: #555;
}

.vfl-contact-details div {
  margin-bottom: 0.25rem;
}

.vfl-contact-details div:last-child {
  margin-bottom: 0;
}

.vfl-contact-details a {
  color: #4a90e2;
  text-decoration: none;
  word-break: break-word;
}

.vfl-contact-details a:hover {
  text-decoration: underline;
}

/* ===== EMPTY STATE ===== */
.vfl-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #f9f9f9;
  border-radius: 12px;
}

.vfl-empty-icon {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 1rem;
}

/* ===== BUTTON ===== */
.btn-vfl {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-vfl:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  color: white;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  .vfl-hero {
    min-height: 50vh;
  }

  .vfl-timeline {
    padding-left: 1rem;
    border-left-width: 2px;
  }

  .vfl-timeline-item::before {
    left: -1.4rem;
    width: 10px;
    height: 10px;
  }

  .vfl-contact-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .vfl-table td:first-child {
    width: 35%;
    font-size: 0.9rem;
  }
}

/* === STATS BAR === */
.stats-bar {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding: var(--space-8);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.stat-icon {
  font-size: var(--text-3xl);
}

.stat-item strong {
  display: block;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.stat-item small {
  display: block;
  color: var(--text-secondary);
}

/* === GALLERY === */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  background: var(--gray-100);
  color: var(--text-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-weight: var(--font-medium);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn:hover {
  background: var(--gray-200);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 30vw, 300px), 1fr));
  gap: var(--space-6);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* === CONTACT === */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 40vw, 340px), 1fr));
  gap: var(--space-12);
}

.person-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  overflow: hidden;
}

.person-card img {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.person-info {
  overflow: hidden;
}

.person-info strong {
  display: block;
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.person-info span {
  display: block;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* === TEAMS === */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 25vw, 260px), 1fr));
  gap: var(--space-8);
}

/* === SPONSOR SECTION === */
.sponsors-wrap {
  width: 100vw;
  padding: var(--space-10) 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.sponsors-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.sponsors-rail {
  overflow: hidden;
}

.sponsors-track {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.sponsor-item img {
  height: clamp(160px, 20vw, 300px);
  width: auto;
  object-fit: contain;
  transition: all var(--transition-base);
}



@keyframes sponsorMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.sponsors-rail[data-marquee="on"] .sponsors-track {
  animation: sponsorMarquee 30s linear infinite;
  will-change: transform;
}

.sponsors-track:hover {
  animation-play-state: paused;
}

/* === FOOTER === */
.main-footer {
  background: var(--gray-900);
  color: #d1d5db;
  padding: var(--space-12) 0;
  margin-top: var(--space-20);
}

.main-footer a {
  color: #e5e7eb;
  transition: color var(--transition-base);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.main-footer a:hover {
  color: var(--primary-light);
}

.footer-content {
  max-width: var(--container-lg);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.footer-content p {
  margin: 0;
  font-size: var(--text-sm);
  text-align: center;
  color: var(--text-inverse);
}

/* ==========================================================================
   8. UTILITIES
   ========================================================================== */

/* Text Alignment */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Display */
.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

/* Flex Utilities */
.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Margins */
.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

/* Paddings */
.p-4 {
  padding: var(--space-4);
}

.p-6 {
  padding: var(--space-6);
}

.p-8 {
  padding: var(--space-8);
}

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

/* Overflow Handling */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {

  .teams-grid,
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 35vw, 280px), 1fr));
  }
}

/* Mobile */
@media (max-width: 768px) {
  .stats-bar {
    flex-direction: column;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  table {
    font-size: var(--text-sm);
  }

  table th,
  table td {
    padding: var(--space-2);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .teams-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Print Styles */
@media print {

  .main-header,
  .main-footer,
  .btn,
  .mobile-menu-icon,
  .social-fixed {
    display: none !important;
  }

  .glass {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }

  a {
    text-decoration: underline;
    color: #000;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  * {
    color: #000 !important;
    background: #fff !important;
  }
}

/* ==========================================================================
   10. COOKIE BANNER
   ========================================================================== */

/* Cookie Banner Container */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  border-top: 3px solid var(--primary);
  color: var(--text-primary);
  z-index: 9999;
  box-shadow: var(--shadow-xl);
  padding: var(--space-8) var(--gutter);
  font-family: var(--font-base);
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-banner.show {
  display: block;
  animation: slideUp var(--transition-slow);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-content {
  max-width: var(--container-lg);
  margin: 0 auto;
}

/* Kopfzeile */
.cookie-banner-text h3 {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.cookie-banner-text p {
  margin: 0 0 var(--space-6) 0;
  font-size: var(--text-sm);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.cookie-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: var(--font-semibold);
  border-bottom: 2px solid var(--link-color);
  transition: all var(--transition-fast);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.cookie-link:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* Cookie Kategorien */
.cookie-banner-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 30vw, 270px), 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
  padding: var(--space-6);
  background: var(--primary-bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary);
}

.cookie-category {
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.cookie-label {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  width: 100%;
  user-select: none;
  overflow: hidden;
}

.cookie-checkbox {
  width: 18px;
  height: 18px;
  margin-right: var(--space-3);
  margin-top: var(--space-1);
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-300);
  transition: all var(--transition-fast);
}

.cookie-checkbox:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.cookie-checkbox:hover:not([disabled]) {
  border-color: var(--primary);
}

.cookie-checkbox:disabled {
  background-color: var(--gray-200);
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-name {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.cookie-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-left: calc(18px + var(--space-3));
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: var(--line-height-normal);
}

/* Buttons */
.cookie-banner-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin: var(--space-6) 0;
  justify-content: flex-end;
}

/* Cookie-Banner spezifische Button-Styles */
.cookie-banner .btn-secondary {
  background-color: transparent;
  color: var(--link-color);
  border: 2px solid var(--link-color);
}

.cookie-banner .btn-secondary:hover {
  background-color: var(--primary-bg-light);
  border-color: var(--link-hover);
  color: var(--link-hover);
  transform: translateY(-2px);
}

.cookie-banner .btn-tertiary {
  background-color: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--gray-300);
}

.cookie-banner .btn-tertiary:hover {
  background-color: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Footer Links */
.cookie-banner-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.cookie-settings-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-xs);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-base);
  transition: color var(--transition-fast);
}

.cookie-settings-link:hover {
  color: var(--link-color);
  text-decoration: underline;
}

.cookie-divider {
  color: var(--gray-300);
}

/* Media Placeholder */
.media-placeholder {
  background-color: var(--background);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  margin: var(--space-6) 0;
  color: var(--text-secondary);
}

.media-placeholder p {
  margin: 0 0 var(--space-4) 0;
  font-size: var(--text-sm);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.media-placeholder button {
  background-color: var(--primary);
  color: var(--text-inverse);
  border: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: var(--font-semibold);
  transition: all var(--transition-base);
  font-family: var(--font-base);
  font-size: var(--text-sm);
}

.media-placeholder button:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Cookie Banner Responsive */
@media (max-width: 768px) {
  .cookie-banner-options {
    grid-template-columns: 1fr;
  }

  .cookie-banner-buttons {
    flex-direction: column-reverse;
    justify-content: stretch;
  }

  .cookie-banner .btn {
    width: 100%;
    text-align: center;
  }
}

.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.gallery-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 85%;
  max-width: 1000px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.gallery-modal-close {
  color: #555;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.gallery-modal-close:hover {
  color: #000;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.gallery-grid img:hover {
  border-color: #007bff;
  transform: scale(1.05);
}

.gallery-loader {
  text-align: center;
  padding: 2rem;
}

.main-container {
  max-width: 1500px;
  margin: 2rem auto;
  padding: 0 1rem;
}



.page-intro {
  text-align: center;
  color: #65676b;
  font-size: clamp(1rem, 1.5vw + .5rem, 1.1rem);
  margin: 0 auto 2.2rem;
  max-width: 65ch;
}

section>h2 {
  text-align: center;
  margin-bottom: 1.4rem;
  font-size: clamp(1.8rem, 3vw + 1rem, 2.4rem)
}

.timeline {
  --line: var(--green);
  --bg: #fff;
  --shadow: 0 8px 24px rgba(0, 0, 0, .07);
  max-width: 950px;
  margin: 1rem auto 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--line);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2rem;
  align-items: start;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: .9rem;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(10, 138, 83, .12);
}

.timeline-item.left {
  grid-column: 1;
  padding-right: 1.8rem;
}

.timeline-item.left::before {
  right: -.95rem;
}

.timeline-item.right {
  grid-column: 2;
  padding-left: 1.8rem;
}

.timeline-item.right::before {
  left: -.95rem;
}

.timeline-card {
  background: var(--bg);
  border-left: 6px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.timeline-year {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  letter-spacing: .2px;
}

.timeline-text {
  margin: 0;
  line-height: 1.45;
}

@media (max-width:768px) {
  .timeline::before {
    left: 12px;
    transform: none
  }

  .timeline-grid {
    grid-template-columns: 1fr
  }

  .timeline-item {
    grid-column: 1 !important;
    padding: 0 0 1rem 1.75rem
  }

  .timeline-item::before {
    left: 12px
  }

  .timeline-card {
    border-left-width: 4px
  }
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px
}

.gallery-item {
  display: block
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block
}

.gallery-empty {
  text-align: center;
  color: #6c757d
}

.gallery-actions {
  text-align: center;
  margin-top: 1.2rem
}

#load-more-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: .8rem 2rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer
}

#load-more-btn.hidden {
  display: none
}

.hof-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 900px;
  margin: .5rem auto
}

.vote-summary {
  color: #6c757d;
  font-weight: 600
}

.vote-status {
  color: #0f5132;
  background: #d1e7dd;
  padding: .4rem .75rem;
  border-radius: 8px;
  font-weight: 600
}

.voting-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  max-width: 900px;
  margin: 1rem auto;
  position: relative
}

.candidate-card {
  border: 2px solid #e9ecef;
  border-radius: 14px;
  padding: 1.2rem 1rem 1rem;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .06)
}

.candidate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .08)
}

.candidate-card.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(10, 138, 83, .12), 0 10px 22px rgba(0, 0, 0, .08)
}

.candidate-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f1f3f5
}

.candidate-card h3 {
  margin: .75rem 0 .25rem;
  font-size: 1.15rem
}

.candidate-meta {
  font-size: .9rem;
  color: #6c757d;
  margin-bottom: .5rem
}

.vote-result-bar {
  background: #eff2f4;
  border-radius: 999px;
  height: 28px;
  width: 100%;
  overflow: hidden;
  margin-top: .5rem;
  position: relative
}

.vote-progress {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green2));
  transition: width .6s
}

.vote-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #0b0f14;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .2px
}

.hof-actions {
  display: flex;
  justify-content: center
}

.submit-button {
  background: var(--green);
  color: var(--text-primary);
  border: none;
  padding: .8rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer
}

.submit-button[disabled] {
  opacity: .6;
  cursor: not-allowed
}

.suggestion-form-container {
  max-width: 700px;
  margin: 2rem auto 0
}

.form-group {
  margin-bottom: 1.1rem
}

.form-group label {
  display: block;
  margin-bottom: .45rem;
  font-weight: 700
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box
}

.alert {
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px
}

.alert-success {
  background: #d4edda;
  color: #155724
}

.alert-error {
  background: #f8d7da;
  color: #721c24
}

/* ===== Vereinsgeschichte / Timeline (neu, responsive) ===== */
.history {
  --line: #0a8a53;
  --bg: #fff;
  --muted: #6c757d;
  --ring: rgba(10, 138, 83, .14);
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.history-title {
  text-align: center;
  margin: 0 0 1.25rem;
  font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.2rem);
}

/* Mobile: 1 Spalte mit linker Linie */
.history-timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.5rem;
  /* Platz für Linie & Dots */
  list-style: none;
}

.history-timeline::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 .55rem;
  width: 3px;
  background: var(--line);
  border-radius: 2px;
}

.history-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .4rem .8rem;
  padding: .65rem 0 .65rem .4rem;
}

.history-dot {
  position: absolute;
  left: .15rem;
  top: .95rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--line);
  box-shadow: 0 0 0 5px var(--ring);
}

.history-year {
  grid-column: 1 / -1;
  background: #eef7f1;
  color: #0a6342;
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: .5rem;
  font-weight: 700;
  width: max-content;
}

.history-card {
  grid-column: 1 / -1;
  background: var(--bg);
  border-left: 4px solid var(--line);
  border-radius: 12px;
  padding: .9rem 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.history-text {
  margin: 0;
  line-height: 1.5;
  color: #1f2328;
}

/* Tablet/Desktop: 2 Spalten mit Mittelachse */
@media (min-width: 860px) {
  .history-timeline {
    padding: 0;
  }

  .history-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .history-item {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1rem 2rem;
    padding: 1rem 0;
  }

  .history-dot {
    left: 50%;
    transform: translateX(-50%);
    top: 1.2rem;
  }

  /* Abwechselnd links/rechts ausrichten */
  .history-item:nth-child(odd) .history-year,
  .history-item:nth-child(odd) .history-card {
    grid-column: 1 / 2;
    justify-self: end;
    text-align: left;
    max-width: 500px;
  }

  .history-item:nth-child(even) .history-year,
  .history-item:nth-child(even) .history-card {
    grid-column: 2 / 3;
    justify-self: start;
    text-align: left;
    max-width: 500px;
  }

  .history-item .history-card {
    border-left-width: 6px;
  }
}

/* Feinheiten */
@media (prefers-reduced-motion: no-preference) {
  .history-card {
    transition: transform .2s ease, box-shadow .2s ease;
  }

  .history-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
  }
}

.team-card {
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.team-card:hover h4 {
  color: var(--primary);
}

.article-hero-swiper {
  width: 100%;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #eaeaea;
  margin-bottom: 2rem;
}

.article-hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-meta span {
  margin-right: 1rem;
  display: inline-block;
}

.article-content p {
  white-space: pre-line;
}

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

@media (max-width: 768px) {
  .hero img {
    height: 220px;
    object-fit: cover;
  }

  .btn {
    padding: 12px 16px;
    font-size: 1.1rem;
  }
}

/* Sponsor-Logos größer machen */
.sponsor-item {
  flex: 0 0 auto;
  padding: 0 2rem;
  /* Mehr Abstand zwischen den Logos */
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-item img {
  max-height: 90px;
  /* Erhöht von vermutlich 60-80px */
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Optional: Hover-Effekt für verlinkte Logos */
.sponsor-item a:hover img {
  transform: scale(1.05);
}

/* Für noch größere Logos auf Desktop */
@media (min-width: 768px) {
  .sponsor-item img {
    max-height: 150px;
    /* Noch größer auf größeren Bildschirmen */
  }
}

/* Für sehr große Bildschirme */
@media (min-width: 1200px) {
  .sponsor-item {
    padding: 0 3rem;
  }

  .sponsor-item img {
    max-height: 180px;
    /* Maximum für große Screens */
  }
}

/* Navigation kompakter auf Mobil */
@media (max-width: 992px) {
  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
  }

  .dropdown-menu {
    border: none;
    padding-left: 1.2rem;
  }

  .dropdown-menu .dropdown-item {
    padding-left: 0.5rem;
  }

  .mobile-friendly>a::after {
    float: right;
    margin-top: 5px;
  }
}

/* Desktop Hover-Dropdown */
@media (min-width: 993px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* ========================================================================== MOBILE NAVIGATION STYLES (aus mobile-nav.css) ========================================================================== */
/* ==========================================================================
   MOBILE NAVIGATION - Komplett überarbeitet
   Version: 4.0 - Slide-in Sidebar mit Akkordeon-Dropdowns
   ========================================================================== */

/* ==========================================================================
   MOBILE MENU ICON (Hamburger → X Animation)
   ========================================================================== */

.mobile-menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
}

.mobile-menu-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Hamburger → X Animation */
.mobile-menu-icon.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-icon.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-icon.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ==========================================================================
   MOBILE NAVIGATION OVERLAY (Backdrop)
   ========================================================================== */

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   MOBILE NAVIGATION SIDEBAR
   ========================================================================== */

.main-nav-list {
  /* Mobile: Slide-in von rechts */
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  /* Dynamic viewport height für iOS */
  background: linear-gradient(180deg, var(--primary-dark) 0%, #005a2b 100%);
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
}

.main-nav-list.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

/* Scroll Lock für Body, wenn Menü offen */
body.mobile-menu-open {
  overflow: hidden !important;
  /* Stellt sicher, dass kein scrollen auf dem body möglich ist */
}

/* ==========================================================================
   NAV LINKS (Style)
   ========================================================================== */

/* Standard Links */
.main-nav-list>li>a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.main-nav-list>li>a:hover,
.main-nav-list>li>a:focus,
.main-nav-list>li>a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding-left: calc(var(--space-5) + 4px);
}

/* ==========================================================================
   DROPDOWN TOGGLE (Akkordeon)
   ========================================================================== */

.main-nav-list .dropdown>.dropdown-toggle {
  position: relative;
  display: flex;
  justify-content: space-between;
}

.main-nav-list .dropdown-icon {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.main-nav-list .dropdown.open>.dropdown-toggle .dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown Content */
.main-nav-list .dropdown-content {
  background: rgba(0, 0, 0, 0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.main-nav-list .dropdown.open>.dropdown-content {
  max-height: 500px;
  /* Genug Platz für alle Links, ohne feste Höhe */
  transition: max-height 0.5s ease-in-out;
}

.main-nav-list .dropdown-content li {
  padding-left: var(--space-6);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  margin-left: var(--space-5);
}

.main-nav-list .dropdown-content a {
  padding: var(--space-3) var(--space-5);
  font-size: 0.95rem;
  font-weight: 400;
}

.main-nav-list .dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.main-nav-list .dropdown-content a.active {
  background: rgba(255, 255, 255, 0.15);
  border-left: 3px solid var(--primary-light);
  padding-left: calc(var(--space-5) + 4px);
}

/* ==========================================================================
   MOBILE MENU CLOSE BUTTON & FOOTER
   ========================================================================== */

.mobile-nav-header {
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.mobile-nav-close {
  color: white;
  font-size: var(--text-xl);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-footer {
  margin-top: auto;
  padding: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.mobile-nav-social {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.mobile-nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.125rem;
  transition: all 0.2s ease;
}

.mobile-nav-social a:hover,
.mobile-nav-social a:focus {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: scale(1.1);
}

/* ==========================================================================
   DESKTOP (Override für Desktop-Dropdowns)
   ========================================================================== */

@media (min-width: 993px) {

  /* Mobile-spezifische Stile entfernen/überschreiben, da in main.css definiert */
  .main-nav-list {
    transform: none;
    transition: none;
    overflow-y: visible;
  }

  .main-nav-list>li>a,
  .main-nav-list .dropdown>.dropdown-toggle {
    padding: var(--space-2) var(--space-4);
    color: var(--text-primary);
    background: none;
    border-radius: var(--radius-md);
  }

  .main-nav-list>li>a:hover,
  .main-nav-list>li>a:focus,
  .main-nav-list>li>a.active {
    background: var(--primary-bg);
    color: var(--primary-dark);
    padding-left: var(--space-4);
  }

  .main-nav-list .dropdown-content {
    background: var(--surface);
    border: 1px solid var(--gray-200);
    /* Akkordeon-Stile entfernen */
    max-height: none;
    overflow: visible;
    transition: none;
  }

  .main-nav-list .dropdown.open>.dropdown-content {
    max-height: none;
    transition: none;
  }

  .main-nav-list .dropdown-content li {
    padding-left: 0;
    border-left: none;
    margin-left: 0;
  }

  .main-nav-list .dropdown-content a {
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
  }

  .main-nav-list .dropdown-content a::before {
    display: none;
  }

  .main-nav-list .dropdown-content a:hover,
  .main-nav-list .dropdown-content a:focus {
    background: var(--primary);
    color: white;
    padding-left: var(--space-4);
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  .main-nav-list,
  .mobile-menu-icon span,
  .dropdown-content,
  .dropdown-toggle::after,
  .mobile-nav-backdrop {
    transition: none !important;
  }
}

/* ==========================================================================
   SAFE AREA (iPhone Notch Support)
   ========================================================================== */

@supports (padding: max(0px)) {
  .main-nav-list {
    padding-top: max(var(--space-4), env(safe-area-inset-top));
    padding-bottom: max(var(--space-4), env(safe-area-inset-bottom));
    /* Der header.php fügt bereits mobile-nav-header/footer hinzu, daher wird das padding nur für den Inhalt benötigt. */
  }
}

/* ==========================================================================
   PWA STYLES (aus pwa-styles.css)
   ========================================================================== */
/* ==========================================================================
   PWA STYLES - BOTTOM NAVIGATION, INSTALL BANNER, PULL TO REFRESH
   Diese Datei zu main.css hinzufügen oder separat einbinden
   ========================================================================== */

/* ==========================================================================
   1. PWA INSTALL BANNER
   ========================================================================== */

.pwa-install-banner {
  position: fixed;
  top: 80px;
  /* Unter dem Header */
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, #009647 0%, #00b359 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pwa-install-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.pwa-install-text {
  flex: 1;
  min-width: 0;
}

.pwa-install-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.125rem;
}

.pwa-install-text small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.9;
}

.pwa-install-banner .btn {
  flex-shrink: 0;
  background: white;
  color: #009647;
  border: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pwa-install-banner .btn:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

.pwa-install-banner .btn-link {
  color: white;
  padding: 0.5rem;
  opacity: 0.8;
}

.pwa-install-banner .btn-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

/* ==========================================================================
   2. BOTTOM NAVIGATION
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 150, 71, 0.1);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  /* iOS notch support */
  height: calc(60px + env(safe-area-inset-bottom));
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  min-width: 60px;
  text-decoration: none;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 12px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item span {
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Active state */
.bottom-nav-item.active {
  color: #009647;
}

.bottom-nav-item.active i {
  transform: scale(1.1);
  color: #009647;
}

/* Hover state (desktop) */
@media (hover: hover) {
  .bottom-nav-item:hover {
    background: rgba(0, 150, 71, 0.08);
    color: #009647;
  }
}

/* Active touch feedback */
.bottom-nav-item:active {
  transform: scale(0.95);
  background: rgba(0, 150, 71, 0.15);
}

/* Badge for notifications (optional) */
.bottom-nav-item .badge {
  position: absolute;
  top: 0.25rem;
  right: 0.5rem;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

/* Adjust main content to account for bottom nav */
.main-container {
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

/* Hide on desktop */
@media (min-width: 993px) {
  .bottom-nav {
    display: none;
  }

  .main-container {
    padding-bottom: 2rem;
  }
}

/* ==========================================================================
   3. MORE MENU OVERLAY
   ========================================================================== */

.more-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.more-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.more-menu-content {
  width: 100%;
  max-height: 85vh;
  background: white;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.more-menu-overlay.active .more-menu-content {
  transform: translateY(0);
}

.more-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.more-menu-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.more-menu-close {
  background: #f3f4f6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
}

.more-menu-close:hover {
  background: #e5e7eb;
  color: #111827;
}

.more-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem 2rem;
  -webkit-overflow-scrolling: touch;
}

.more-menu-section {
  margin-bottom: 2rem;
}

.more-menu-section:last-child {
  margin-bottom: 0;
}

.more-menu-section h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.more-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.more-menu-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: #f9fafb;
  border-radius: 12px;
  text-decoration: none;
  color: #111827;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.more-menu-links a i:first-child {
  width: 20px;
  text-align: center;
  color: #009647;
  font-size: 1.1rem;
}

.more-menu-links a .external-icon {
  margin-left: auto;
  font-size: 0.75rem;
  color: #9ca3af;
}

.more-menu-links a:active {
  transform: scale(0.98);
  background: #f3f4f6;
}

.more-menu-social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.more-menu-social a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 12px;
  text-decoration: none;
  color: #111827;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.more-menu-social a i {
  font-size: 1.5rem;
  color: #009647;
}

.more-menu-social a:active {
  transform: scale(0.95);
}

.more-menu-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  background: #f9fafb;
}

.more-menu-footer a {
  color: #6b7280;
  font-size: 0.8rem;
  text-decoration: none;
}

.more-menu-footer a:hover {
  color: #009647;
}

.more-menu-footer .text-small {
  color: #d1d5db;
}

/* ==========================================================================
   4. PULL TO REFRESH
   ========================================================================== */

.pull-to-refresh {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 1100;
  background: white;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pull-to-refresh-icon {
  font-size: 1.5rem;
  color: #009647;
  transition: transform 0.3s ease;
}

.pull-to-refresh-text {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   5. OFFLINE INDICATOR
   ========================================================================== */

.offline-indicator {
  position: fixed;
  bottom: calc(70px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  background: #374151;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.offline-indicator.visible {
  opacity: 1;
  visibility: visible;
}

.offline-indicator i {
  font-size: 1rem;
}

/* ==========================================================================
   6. LOADING SKELETON (for PWA)
   ========================================================================== */

.skeleton {
  background: linear-gradient(90deg,
      #f0f0f0 25%,
      #e0e0e0 50%,
      #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-image {
  height: 200px;
  width: 100%;
}

.skeleton-card {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   7. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

/* Small phones */
@media (max-width: 380px) {
  .bottom-nav-item {
    min-width: 50px;
    padding: 0.5rem 0.5rem;
  }

  .bottom-nav-item span {
    font-size: 0.65rem;
  }

  .bottom-nav-item i {
    font-size: 1.1rem;
  }
}

/* Tablets in portrait */
@media (min-width: 768px) and (max-width: 992px) {
  .bottom-nav {
    display: flex;
    /* Still show on tablets */
  }

  .more-menu-content {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 24px;
  }
}

/* Desktop */
@media (min-width: 993px) {
  .pwa-install-banner .pwa-install-content {
    padding: 1.5rem;
  }

  .pwa-install-icon {
    width: 48px;
    height: 48px;
    font-size: 1.75rem;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .bottom-nav {
    background: rgba(17, 24, 39, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .bottom-nav-item {
    color: #9ca3af;
  }

  .bottom-nav-item.active {
    color: #10b981;
  }

  .more-menu-content {
    background: #1f2937;
  }

  .more-menu-header {
    border-bottom-color: #374151;
  }

  .more-menu-header h3 {
    color: white;
  }

  .more-menu-close {
    background: #374151;
    color: #9ca3af;
  }

  .more-menu-section h4 {
    color: #9ca3af;
  }

  .more-menu-links a {
    background: #374151;
    color: white;
  }

  .more-menu-social a {
    background: #374151;
    color: white;
  }

  .more-menu-footer {
    background: #111827;
    border-top-color: #374151;
  }

  .pull-to-refresh {
    background: #1f2937;
  }

  .pull-to-refresh-text {
    color: #d1d5db;
  }
}

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
  .bottom-nav {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }

  .main-container {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  .bottom-nav-item,
  .more-menu-overlay,
  .more-menu-content,
  .pwa-install-banner,
  .pull-to-refresh {
    transition: none;
    animation: none;
  }
}


/* ==========================================================================
   KALENDER STYLES (aus kalender-style.css)
   ========================================================================== */
/* Dropdown Container */
.list-dropdown {
  margin-top: 2rem;
  text-align: center;
}

.list-dropdown label {
  display: block;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.5rem;
}

.list-dropdown select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.list-dropdown select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

/* Match Detail Section */
#list-match-detail {
  margin-top: 1.5rem;
}

/* Matchcard */
.match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1rem;
}

.match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.match-card img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

.match-card .score {
  font-weight: 700;
  font-size: 1.25rem;
  color: #222;
  margin: 0 0.75rem;
}

/* Ergebnisfarben */
.match-card.win {
  border-left: 6px solid #28a745;
}

.match-card.loss {
  border-left: 6px solid #dc3545;
}

.match-card.draw {
  border-left: 6px solid #6c757d;
}

/* Responsive */
@media (max-width: 992px) {
  .match-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .match-card img {
    height: 40px;
    width: 40px;
  }

  .match-card .score {
    margin: 0.5rem 0;
  }
}

@media (max-width: 576px) {
  .list-dropdown select {
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
  }

  .match-card {
    padding: 0.9rem;
  }
}



/* Grid: Smartphone 2 Spalten, Desktop 5 Spalten */
.sponsor-cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 992px) {
  .sponsor-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Flip-Card-Basis */
.sponsor-card {
  perspective: 1000px;
}

.sponsor-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  /* nach Bedarf anpassen */
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

/* Hover-Effekt (Flip) */
.sponsor-card:hover .sponsor-card-inner {
  transform: rotateY(180deg);
}

.sponsor-card-face {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vorderseite */
.sponsor-card-front {
  z-index: 2;
}

/* Rückseite */
.sponsor-card-back {
  transform: rotateY(180deg);
  text-align: left;
}


/* Logo zentriert */
.sponsor-card-logo-wrap {
  width: 100%;
  height: 100%;
}

.sponsor-logo-img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

/* Inhalt Rückseite */
.sponsor-card-back-content {
  width: 100%;
}

