:root {
  --color-primary: #0a4f2b;
  --color-secondary: #ff7f11;
  --color-accent: #f9b122;
  --color-bg-light: #f4f6f3;
  --color-bg-white: #ffffff;
  --color-text-dark: #1a261f;
  --color-text-muted: #556b5d;
  --shadow-sm: 0 4px 10px rgba(10, 79, 43, 0.05);
  --shadow-lg: 0 20px 40px rgba(10, 79, 43, 0.1);
  --shadow-hover: 0 25px 50px rgba(255, 127, 17, 0.15);
  --transition-bouncy: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "PlusJakartaSans",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

@font-face {
  font-family: "PlusJakartaSans";
  src: url("/assets/fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 300 800;
  font-style: normal;
}

@font-face {
  font-family: "RubikDirt";
  src: url("/assets/fonts/RubikDirt-Regular.ttf") format("truetype");
  font-weight: normal;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "RubikDirt";
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 15px;
}

.txt-center {
  text-align: center;
}
.txt-italic {
  font-style: italic;
}
.txt-bold {
  font-weight: bold;
}
.bg-blue {
  background-color: var(--color-primary);
}
.bg-yellow {
  background-color: var(--color-accent);
}
.bg-beige {
  background-color: var(--color-bg-light);
}
.white {
  color: var(--color-bg-white);
}
.blue {
  color: var(--color-primary);
}
.yellow {
  color: var(--color-accent);
}
.orange {
  color: var(--color-secondary);
}
.black {
  color: var(--color-text-dark);
}
.rounded {
  border-radius: 20px;
}
.p-10 {
  padding: 8% 5%;
}
.mb-60 {
  margin-bottom: 60px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.responsive-logo {
  height: 50px;
  width: auto;
  transition: transform var(--transition-bouncy);
}

.logo-link:hover .responsive-logo {
  transform: scale(1.05);
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
}

.hamburger-btn .bar {
  width: 35px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 5px;
  transition: var(--transition-smooth);
}

.hamburger-btn:hover .bar {
  background: var(--color-secondary);
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100vh;
  background: rgba(10, 79, 43, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  overflow-x: hidden;
  transition: width 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay.open {
  width: 100%;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 5%;
  font-size: 3rem;
  color: var(--color-bg-white);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-bouncy);
}

.close-btn:hover {
  transform: rotate(90deg);
  color: var(--color-accent);
}

.overlay-content {
  text-align: center;
  width: 100%;
}

.site-nav,
.footer-nav {
  list-style: none;
}

.site-nav li {
  margin: 15px 0;
}

.site-nav a {
  font-family: "RubikDirt", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-bg-white);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-accent);
  letter-spacing: 2px;
}

.menu-divider {
  width: 50px;
  border: 2px solid var(--color-secondary);
  margin: 40px auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1rem;
}

.footer-nav a:hover {
  color: var(--color-bg-white);
  text-decoration: underline;
}

.hero-image {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(10, 79, 43, 0.4), rgba(10, 79, 43, 0.8)),
    url("/img/Bild_18.jpg") center/cover no-repeat fixed;
  padding: 120px 20px 0 20px;
}

.subpage-hero {
  height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 0 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.hero-content {
  animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: "RubikDirt", sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: var(--color-bg-white);
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--color-bg-light);
  margin-bottom: 40px;
  font-weight: 500;
}

.btn-primary {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-bg-white);
  padding: 16px 45px;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(255, 127, 17, 0.3);
  transition: all var(--transition-bouncy);
}

.btn-primary:hover {
  background: var(--color-bg-white);
  color: var(--color-secondary);
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(255, 127, 17, 0.4);
}

.start-content {
  display: flex;
  justify-content: center;
  padding: 0 20px;
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.intro-card {
  background: var(--color-bg-white);
  max-width: 900px;
  padding: 60px 50px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-top: 6px solid var(--color-accent);
}

.intro-card h2 {
  font-family: "RubikDirt", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: 25px;
}

.intro-card p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

.gallery-section {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 79, 43, 0.6), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

.wettkampf-section {
  padding: 80px 0 120px;
  background: var(--color-bg-white);
}

.section-kicker {
  font-family: "RubikDirt", sans-serif;
  text-align: center;
  font-size: 1.8rem;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.section-title {
  font-family: "RubikDirt", sans-serif;
  text-align: center;
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 60px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.info-card {
  background: var(--color-bg-light);
  border-left: 6px solid var(--color-secondary);
  padding: 40px;
  border-radius: 0 20px 20px 0;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-card h4 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.competition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.comp-card {
  background: var(--color-bg-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-bouncy);
  position: relative;
  overflow: hidden;
}

.comp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--color-primary);
  transition: background var(--transition-smooth);
}

.comp-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.comp-card:hover::before {
  background: var(--color-secondary);
}

.comp-header {
  margin-bottom: 30px;
}

.comp-header h3 {
  font-family:
    "PlusJakartaSans",
    system-ui,
    -apple-system,
    sans-serif;
  font-style: italic;
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1.3;
}

.comp-header span {
  font-family: "PlusJakartaSans", sans-serif;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: normal;
  font-style: normal;
}

.comp-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.comp-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.comp-icon {
  width: 35px;
  height: 35px;
  filter: invert(19%) sepia(43%) saturate(1455%) hue-rotate(107deg)
    brightness(94%) contrast(97%);
}

.comp-stat p {
  font-size: 1.05rem;
  font-weight: bold;
}

.comp-footer {
  padding-top: 20px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.comp-footer strong {
  color: var(--color-secondary);
  font-size: 1.3rem;
}

.discount-badge {
  text-align: center;
  margin-top: 50px;
}

.discount-badge p {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-weight: bold;
  font-size: 1.2rem;
  padding: 15px 40px;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(249, 177, 34, 0.3);
}

.site-footer {
  background: var(--color-primary);
  color: var(--color-bg-white);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-widget h5 {
  font-family: "RubikDirt", sans-serif;
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer-widget address,
.footer-widget p {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-link {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: bold;
}

.footer-link:hover {
  text-decoration: underline;
  color: var(--color-bg-white);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.subpage-hero {
  height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  margin-bottom: 50px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.hero-zeitplan {
  background-image:
    linear-gradient(to bottom, rgba(10, 79, 43, 0.5), rgba(10, 79, 43, 0.9)),
    url("/img/Bild_05.jpg");
}

.hero-ausschreibung {
  background-image:
    linear-gradient(to bottom, rgba(10, 79, 43, 0.5), rgba(10, 79, 43, 0.9)),
    url("/img/Bild_14.jpg");
}

.timeline-section {
  padding: 40px 0 100px;
  background: var(--color-bg-light);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 4px;
  background: rgba(10, 79, 43, 0.15);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 60px;
  width: 100%;
}

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--color-secondary);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px var(--color-bg-light),
    0 0 0 8px rgba(255, 127, 17, 0.2);
  transition: transform var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
}

.timeline-date {
  display: inline-block;
  font-family: "PlusJakartaSans", sans-serif;
  font-weight: 800;
  color: var(--color-bg-white);
  background: var(--color-primary);
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 1rem;
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  background: var(--color-bg-white);
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid transparent;
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
  color: var(--color-primary);
  font-family: "RubikDirt", sans-serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 1.1rem;
  color: var(--color-text-dark);
}

.text-muted {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  display: block;
  margin-top: 5px;
}

.highlight-item .timeline-content {
  border-left-color: var(--color-secondary);
  background: linear-gradient(to right, rgba(255, 127, 17, 0.05), transparent);
}

.timeline-notice {
  background: rgba(10, 79, 43, 0.05);
  border: 2px dashed rgba(10, 79, 43, 0.2);
  padding: 20px 30px;
  border-radius: 12px;
  margin: 40px 0 40px 40px;
  position: relative;
  max-width: 90%;
  text-align: center;
  clear: both;
}

.timeline-notice p {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin: 0;
}

.timeline-notice a {
  color: var(--color-secondary);
  font-weight: bold;
  text-decoration: none;
}

.timeline-notice a:hover {
  text-decoration: underline;
}

.map-section {
  padding: 60px 0 120px;
  background: var(--color-bg-white);
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.map-controls h3 {
  color: var(--color-primary);
  font-size: 2rem;
}

.control-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.btn-route {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  background: var(--color-bg-light);
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: "PlusJakartaSans", sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-text-dark);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.btn-icon {
  width: 30px;
  height: 30px;
  filter: invert(19%) sepia(43%) saturate(1455%) hue-rotate(107deg)
    brightness(94%) contrast(97%);
  transition: transform var(--transition-smooth);
}

.btn-route:hover {
  background: rgba(46, 204, 113, 0.1);
  border-color: #2ecc71;
  color: #2ecc71;
  transform: translateX(10px);
}

.btn-route:hover .btn-icon {
  transform: scale(1.2);
}

.map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1403 / 1063;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: #e8f0e1;
}

.map-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

@media (max-width: 768px) {
  .intro-card {
    padding: 40px 20px;
  }
  .hero-image {
    height: 80vh;
  }
}

@media (min-width: 992px) {
  .timeline-item {
    width: 50%;
  }
  .responsive-logo {
    height: 70px;
  }
  .competition-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .subpage-hero {
    padding-top: 180px;
  }
  .hero-strecken {
    background-attachment: fixed;
  }
  .timeline::before {
    left: 50%;
    margin-left: -2px;
  }
  .timeline-item:nth-child(odd) {
    float: left;
    padding-right: 50px;
    text-align: right;
  }
  .timeline-item:nth-child(even) {
    float: right;
    padding-left: 50px;
  }
  .timeline::after {
    content: "";
    display: table;
    clear: both;
  }
  .timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
    left: auto;
  }
  .timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
  }
  .timeline-notice {
    margin: 40px auto;
    max-width: 80%;
  }
  .timeline-item:nth-child(odd) .timeline-content {
    border-left: none;
    border-right: 5px solid transparent;
  }
  .timeline-item.highlight-item:nth-child(odd) .timeline-content {
    border-right-color: var(--color-secondary);
    background: linear-gradient(to left, rgba(255, 127, 17, 0.05), transparent);
  }
  .map-layout {
    grid-template-columns: 1fr 2fr;
  }
}

#interactive-map {
  width: 100%;
  height: auto;
  display: block;
}

.route-path {
  opacity: 0.3;
  stroke-width: 4px;
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.route-path.active {
  opacity: 1;
  stroke-width: 8px;
  filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.5));
}

.station-group {
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.station-group.show {
  opacity: 1;
  visibility: visible;
}

.info-box {
  margin-top: 30px;
  padding: 20px;
  background: var(--color-bg-white);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
  opacity: 1;
  transform: translateY(0);
  transition: all var(--transition-smooth);
}

.info-box.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
}

.info-box h4 {
  color: var(--color-primary);
  font-family: "PlusJakartaSans", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.info-box p {
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.btn-route.active {
  background: rgba(255, 127, 17, 0.1);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.hero-strecken {
  height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 0 20px;
  background-image:
    linear-gradient(to bottom, rgba(10, 79, 43, 0.5), rgba(10, 79, 43, 0.9)),
    url("/img/Bild_21.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  margin-bottom: 50px;
}
