/* ============================================
   Sven's Spendentour — Stylesheet
   Mobile-First Design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1B2A4A;
  --color-primary-light: #2a3f6e;
  --color-accent: #4A90D9;
  --color-accent-light: #6ba8e8;
  --color-cta: #E8722A;
  --color-cta-hover: #d4601a;
  --color-white: #FFFFFF;
  --color-light: #F5F5F5;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-success: #27ae60;
  --color-danger: #e74c3c;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(27, 42, 74, 0.10);
  --shadow-lg: 0 8px 32px rgba(27, 42, 74, 0.15);
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section Base --- */
section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.section-alt {
  background: var(--color-light);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-primary);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav-logo::before {
  content: '';
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: url('../images/bike-icon.png') center/contain no-repeat;
  flex-shrink: 0;
  order: 1;
}

.nav-logo img {
  display: none;
}

.nav-logo .nav-logo-text span {
  color: var(--color-cta);
}

.nav-links {
  list-style: none;
  display: none;
  flex-direction: column;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  padding: 2rem 1.5rem;
  gap: 0;
  overflow-y: auto;
}

.nav-links.active {
  display: flex;
}

.nav-links li a {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-cta);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 120px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d1b2e 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/rennrad-hero.jpeg') center 55%/cover no-repeat;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  transform: translateY(2rem);
}

.hero h1 {
  color: var(--color-white);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero h1 span {
  color: var(--color-cta);
}

.hero-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: min(100%, 420px);
  margin: 0 auto;
}

.hero-buttons .btn {
  width: 100%;
  white-space: nowrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 50px;
  min-width: 44px;
  text-align: center;
}

.btn-primary {
  background: var(--color-cta);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(232, 114, 42, 0.35);
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 114, 42, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(74, 144, 217, 0.35);
}

.btn-accent:hover {
  background: var(--color-accent-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 217, 0.45);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s ease-in-out infinite;
  transition: color var(--transition);
  z-index: 1;
}

.scroll-indicator:hover {
  color: rgba(255, 255, 255, 0.9);
}

.scroll-indicator svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* --- Stats Banner --- */
.stats {
  background: var(--color-primary);
  padding: 40px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 20px 10px;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--color-cta);
  line-height: 1.2;
}

.stat-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* --- About Section --- */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-media {
  display: flex;
  flex-direction: column;
}

.about-media .btn {
  width: 100%;
}

.about-media .mt-4 {
  margin-top: 4.8rem;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.about-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 4rem;
  border-radius: var(--radius);
}

.about-text h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.fun-fact {
  background: var(--color-light);
  border-left: 4px solid var(--color-cta);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1.5rem;
  font-style: italic;
}

/* --- Mission Section --- */
.mission-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mission-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

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

.mission-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.mission-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.mission-quote {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.mission-quote blockquote {
  color: var(--color-white);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.mission-quote cite {
  color: var(--color-cta);
  font-style: normal;
  font-weight: 600;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-top: 2rem;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

a.partner-badge:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: var(--color-primary);
}

.partner-badge img {
  border-radius: 6px;
}

/* --- Challenge Section --- */
.challenge-section {
  position: relative;
  padding: 80px 0;
  background: var(--color-primary);
  overflow: hidden;
}

.challenge-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/stadion-del.jpeg') center/cover no-repeat;
  opacity: 0.2;
}

.challenge-section .container {
  position: relative;
  z-index: 1;
}

.challenge-section .section-title {
  color: var(--color-white);
}

.challenge-section .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.challenge-section .challenge-list li {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.challenge-section .challenge-list .text strong {
  color: var(--color-white);
}

.challenge-section .challenge-list .text span {
  color: rgba(255, 255, 255, 0.7);
}

.challenge-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.challenge-highlight {
  background: linear-gradient(135deg, var(--color-cta) 0%, #c45a1a 100%);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  color: var(--color-white);
  text-align: center;
}

.challenge-highlight h3 {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.challenge-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

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

.challenge-stat .number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  display: block;
}

.challenge-stat .label {
  font-size: 0.85rem;
  opacity: 0.85;
}

.challenge-list {
  list-style: none;
}

.challenge-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.challenge-list li:last-child {
  border-bottom: none;
}

.challenge-list .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.challenge-list .text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.challenge-list .text span {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* --- Spielplan Preview Section --- */
.spielplan-preview {
  text-align: center;
}

.spielplan-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}

.spielplan-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: left;
}

.spielplan-card-date {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
}

.spielplan-card-date .day {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
}

.spielplan-card-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.spielplan-card-info {
  flex: 1;
  min-width: 0;
}

.spielplan-card-info .team {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spielplan-card-info .route {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.spielplan-card-km {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-cta);
  font-size: 1rem;
  white-space: nowrap;
}

.spielplan-card .status-badge {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
  white-space: nowrap;
}

.status-geplant {
  background: #eee;
  color: #888;
}

.status-naechste {
  background: rgba(74, 144, 217, 0.15);
  color: var(--color-accent);
}

.status-gefahren {
  background: rgba(39, 174, 96, 0.15);
  color: var(--color-success);
}

.status-abgesagt {
  background: rgba(231, 76, 60, 0.15);
  color: var(--color-danger);
}

/* --- Support Section --- */
.support-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.support-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--color-accent);
  display: flex;
  flex-direction: column;
}

.support-card:nth-child(2) {
  border-top-color: var(--color-cta);
}

.support-card:nth-child(3) {
  border-top-color: var(--color-success);
}

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

.support-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.support-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.support-card .btn {
  width: 100%;
  margin-top: auto;
}

/* --- Donate Section --- */
.donate {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d1b2e 100%);
  text-align: center;
  color: var(--color-white);
}

.donate .section-title {
  color: var(--color-white);
}

.donate .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.donate-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.donate-box h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.donate-info {
  text-align: left;
  margin-bottom: 1.5rem;
}

.donate-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.donate-info strong {
  color: var(--color-white);
}

.progress-bar-container {
  margin-top: 2rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  height: 12px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--color-cta), var(--color-accent));
  height: 100%;
  border-radius: 50px;
  transition: width 1s ease;
  width: 0%;
}

/* --- Footer --- */
.footer {
  background: #0a1220;
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0 100px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-white);
}

.footer-logo span {
  color: var(--color-cta);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-cta);
  color: var(--color-white);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

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

.footer-sign {
  font-style: italic;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Sticky Donate Button (Mobile) --- */
.sticky-donate {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--color-white);
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.sticky-donate.visible {
  transform: translateY(0);
}

.sticky-donate .btn {
  width: 100%;
  max-width: 400px;
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Keep Sven's head visible between the title and intro on mobile. */
@media (max-width: 767px) {
  .hero h1 {
    transform: translateY(-5rem);
  }

  .challenge-list-wrapper {
    order: 1;
  }

  .challenge-highlight {
    order: 2;
  }
}

/* ============================================
   TABLET BREAKPOINT (768px+)
   ============================================ */
@media (min-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-media {
    flex: 0 0 45%;
  }

  .about-text {
    flex: 1;
    align-self: flex-start;
  }

  .mission-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .mission-card {
    flex: 1 1 calc(50% - 0.75rem);
  }

  .challenge-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .challenge-highlight {
    flex: 0 0 40%;
  }

  .challenge-list-wrapper {
    flex: 1;
  }

  .spielplan-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .support-grid {
    flex-direction: row;
  }

  .support-card {
    flex: 1;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    width: min(100%, 980px);
    flex-wrap: wrap;
  }

  .hero-buttons .btn {
    width: auto;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================
   DESKTOP BREAKPOINT (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .container {
    max-width: 1160px;
  }

  /* Desktop Navigation */
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    gap: 0;
    overflow: visible;
  }

  .nav-links li a {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-bottom: none;
  }

  section {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-content {
    max-width: 780px;
  }

  .hero-text {
    font-size: 1.2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .mission-card {
    flex: 1 1 calc(25% - 1.5rem);
  }

  .sticky-donate {
    display: none;
  }

  .footer {
    padding-bottom: 40px;
  }
}

/* ============================================
   ROUTEN PAGE STYLES
   ============================================ */
.page-header {
  background: var(--color-cta) !important;
  border-bottom: none;
  margin-top: 60px;
  padding: 6px 20px;
  text-align: center;
}

.page-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-header h1,
.page-header h2 {
  color: var(--color-white) !important;
  font-size: 1rem;
  margin-bottom: 0;
}

.page-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  line-height: 1.4;
  display: none;
}

/* Map Container */
.map-container {
  width: 100%;
  height: calc(100vh - 93px);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.map-container #map {
  width: 100%;
  height: 100%;
}

/* Route Stats Summary */
.route-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 0;
}

.route-stat {
  text-align: center;
  padding: 16px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.route-stat .number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-cta);
}

.route-stat .label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  display: block;
  margin-top: 4px;
}

/* Spielplan Table (Desktop) */
.spielplan-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.spielplan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.spielplan-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.spielplan-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background var(--transition);
}

.spielplan-table tbody tr:hover {
  background: var(--color-light);
}

.spielplan-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

/* Spielplan Cards (Mobile) */
.spielplan-mobile-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spielplan-mobile-card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.spielplan-mobile-card .date-col {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
  min-width: 55px;
}

.spielplan-mobile-card .date-col .day {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.2;
}

.spielplan-mobile-card .date-col .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.8;
}

.spielplan-mobile-card .info-col .team {
  font-weight: 700;
}

.spielplan-mobile-card .info-col .route {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.spielplan-mobile-card .km-col {
  text-align: right;
}

.spielplan-mobile-card .km-col .km {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-cta);
  font-size: 1.1rem;
}

/* Map Legend */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.map-legend-overlay {
  position: absolute;
  left: 84px;
  right: 12px;
  bottom: 28px;
  z-index: 2;
  gap: 10px 14px;
  max-width: 520px;
  margin-bottom: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.map-sim-control {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 68px;
  padding: 14px 4px 14px 2px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 2px 0 12px rgba(27, 42, 74, 0.10);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
}

.map-sim-label {
  display: none;
}

.map-sim-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.map-sim-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
  text-align: center;
}

.map-sim-meta strong {
  color: var(--color-primary);
  font-size: 0.73rem;
  white-space: nowrap;
  text-align: center;
}

.map-sim-play {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--color-cta);
  color: var(--color-white);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), background var(--transition);
}

.map-sim-play:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
}

.map-sim-slider-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-left: 8px;
  padding-right: 10px;
}

.map-sim-day-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 20px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.sim-day-marker {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(27, 42, 74, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%);
}

.map-sim-logo-track {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 22px;
  pointer-events: none;
}

.sim-day-logo {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: #ffffff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  transition: transform var(--transition), box-shadow var(--transition);
}

.sim-day-logo:hover {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.sim-day-logo img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.map-sim-control input[type="range"] {
  appearance: slider-vertical;
  -webkit-appearance: slider-vertical;
  writing-mode: vertical-lr;
  height: 100%;
  width: 20px;
  accent-color: var(--color-cta);
  cursor: pointer;
  margin: 0;
  position: relative;
  z-index: 2;
}

.map-sim-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.map-sim-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.bike-marker {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  background: var(--color-cta);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  font-size: 1rem;
  line-height: 1;
}

.bike-marker.is-paused {
  background: var(--color-accent);
}

.map-container + section {
  padding-top: 16px;
}

.map-container .maplibregl-ctrl-bottom-left {
  left: 84px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.heimat { background: #ed1c25; }
.legend-dot.geplant { background: #aaa; }
.legend-dot.naechste { background: var(--color-accent); }
.legend-dot.gefahren { background: var(--color-success); }

/* Hide mobile cards on desktop, hide table on mobile */
.spielplan-table-wrapper {
  display: none;
}

@media (min-width: 768px) {
  .map-container {
    height: calc(100vh - 111px);
    min-height: 420px;
  }

  .page-header h1,
  .page-header h2 {
    font-size: 1.35rem;
  }

  .page-header p {
    display: block;
  }

  .map-legend-overlay {
    left: auto;
    right: 20px;
    bottom: 20px;
  }

  .map-sim-control {
    font-size: 0.78rem;
  }

  .sim-day-logo {
    width: 22px;
    height: 22px;
  }

  .sim-day-marker {
    width: 14px;
  }

  .sim-day-logo img {
    width: 16px;
    height: 16px;
  }

  .map-container .maplibregl-ctrl-bottom-left {
    left: 92px;
  }

  .legend-item {
    font-size: 0.85rem;
  }

  .spielplan-table-wrapper {
    display: block;
  }

  .spielplan-mobile-cards {
    display: none;
  }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
  padding-top: 100px;
  padding-bottom: 60px;
  min-height: 70vh;
}

.legal-content h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}
