* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #07132b;
  color: #fff;
}

.background{
  position: fixed;
  width: 100%;
  max-width: 1200px;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
  top: -150px;
  min-width: 800px;
}

nav {
  top: 0;
  position: fixed;
  z-index: 1;
  background: #000000c4;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 50px;
}

.menu {
  opacity: 1;
}

header .logo img {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0;
}

nav ul li:last-child {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a.active {
  background: #8b1514;
  color: #fff;
}

nav ul li a:hover {
  background: #555;
}

nav .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.social-link {
  font-size: 1.5rem;
}

section {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#home {
  text-align: center;
}

#home img {
  height: clamp(120px, 15vw, 200px);
}

#home h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

#home h2 {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
}

#home img {
  max-height: 200px;
}

.logo {
  height: 100px;
  font-size: xxx-large;
}

/* .container-grid {
  display: grid;
  gap: 40px;
  padding: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.container-box {
  background-color: #8b1514;
  border: 1px solid #8b1514;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 200px;
}

.container-box:hover {
  transform: scale(1.05);
}

.container-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.container-box a {
  text-decoration: none;
  color: inherit;
}

.container-box a:hover {
  text-decoration: none;
  color: inherit;
}

.container-info {
  padding-bottom: 10px;
  text-align: center;
}

.container-info b {
  font-size: 12px;
}

@media screen and (min-width: 1200px) {
  .container-grid {
    grid-template-columns: repeat(4, 1fr);
  }
} */

.container-grid {
  display: grid;
  gap: 30px;
  padding: 60px 20px;
  max-width: 1300px;
  margin: 0 auto;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 200px;
}

.container-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;

  color: white;
  font-weight: 600;
  font-size: 1.4rem;

  transition: all 0.4s ease;

  text-decoration: none;
}

.container-box.large {
  grid-row: span 2;
}

.container-box.wide {
  grid-column: span 2;
}

.container-box.red {
  background: linear-gradient(135deg, #8b1514, #c41c1a);
}

.container-box.image {
  background-size: cover;
  background-position: center;
}

.container-box.image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(139, 21, 20, 0.75); /* transparentes Rot */
  transition: 0.4s;
}

.container-box.image:hover::before {
  background: rgba(139, 21, 20, 0.55);
}

.container-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.container-box h3 {
  position: relative;
  /* z-index: 2; */
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.container-box a {
  text-decoration: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.container-box a:hover,
.container-box a:focus,
.container-box a:active,
.container-box a:visited {
  text-decoration: none;
  color: #ffffff;
}

@media (max-width: 768px) {

  .container-grid {
    grid-template-columns: 1fr;   /* nur 1 Spalte */
    grid-auto-rows: auto;
  }

  .container-box {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: 180px;
  }

}

#sponsoren {
  margin-top: 100px;
}

#sponsoren h1 {
  font-size: 2em;
  margin-bottom: 20px;
}

.sponsor-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.sponsor-card {
  background: #ffffffe5;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.sponsor-card:hover {
  transform: scale(1.05);
}

.sponsor-card img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
}

.sponsor-card h2 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 10px;
}

.sponsor-card p {
  font-size: 1em;
  color: #666;
}

.banner-sponsoren {
  background: #939393c4;
  display: flex;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.footer-sponsoren {
  background: #000000c4; 
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.banner-vereine {
  background: #939393c4;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
}

.banner-vereine div {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
}

.banner-sponsoren a, .footer-sponsoren a, .banner-vereine a {
  margin: auto 0;
}

.banner-sponsoren img, .footer-sponsoren img, .banner-vereine img {
  width: 100%;
  height: auto;
  padding: 10px;
}

.banner-sponsoren img {
  max-width: 300px;
}

.banner-vereine img {
  max-width: 200px;
}

.footer-sponsoren img {
  max-width: 200px;
}

footer {
  background: #000000;
  color: #fff;
  text-align: center;
  padding: 10px 0;
}

footer a {
  color: #8b1514;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.social-media{
  font-size: 1.2rem;
}

@media (max-width: 820px) {
  nav ul {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000000c4;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
  }

  nav ul.show {
    display: flex;
  }

  nav .menu-toggle {
    display: block;
  }

  nav ul li {
    margin: 10px 0;
  }

  nav ul li a {
    text-align: center;
    font-size: 18px;
  }

  .background{
    top: -80px;
  }

  nav ul li:last-child {
    margin-left: unset;
    display: unset;
    gap: 10px;
  }
}

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lang-switch button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  opacity: 0.5;
  padding: 0;
}

.lang-switch button.active {
  opacity: 1;
  text-decoration: underline;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sub-hero {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  margin-top: 50px;
}

.sub-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 21, 20, 0.75);
}

.sub-hero-content {
  position: relative;
  /* z-index: 2; */
}

.sub-hero h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sub-hero p {
  margin-top: 10px;
  font-size: 1.2rem;
  opacity: 0.9;
}

.content-section {
  margin: 0px auto 80px auto;
  max-width: 1000px;
  display: grid;
  gap: 40px;
  padding: 0 20px;
}

.content-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s ease;
}

.content-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.content-card h2 {
  margin-bottom: 20px;
  color: #c41c1a;
  text-transform: uppercase;
}

.content-card ul {
  list-style: none;
  padding: 0;
}

.content-card li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.content-card ul li {
    padding: 6px 0;
}

.content-card ul li strong {
    color: #d33d33;
    margin-right: 6px;
}

.content-card ul li span {
    opacity: 0.75;
    font-size: 0.9rem;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(211, 61, 51, 0.2);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
}

.faq-answer p {
    padding: 15px 0;
    color: rgba(255,255,255,0.8);
}

.split-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.split-text .lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: #d33d33;
    margin-bottom: 20px;
}

.split-text p {
    margin-bottom: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

.strecke-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.strecke-features li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.highlight {
    margin-top: 20px;
    padding: 15px;
    background: rgba(211, 61, 51, 0.1);
    border-left: 4px solid #d33d33;
    border-radius: 6px;
}

.split-image {
    flex: 1;
}

.split-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Mobile */
@media (max-width: 900px) {
    .split-section {
        flex-direction: column;
        gap: 40px;
    }

    .split-text h2 {
        font-size: 2rem;
    }
}

.feature-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.feature-card {
  background: rgba(255,255,255,0.05);
  padding: 40px 20px;
  border-radius: 14px;
  transition: 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-card i {
  font-size: 2.5rem;
  color: #c41c1a;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 10px;
  text-transform: uppercase;
}

.map-section iframe {
  width: 100%;
  height: 600px;
  border: 0;
  border-radius: 14px;
}


.race-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.race-list strong {
  color: #d33d33;
  min-width: 60px;
}

.race-list .race {
  font-weight: 600;
}

.race-list .duration {
  background: #8b1514;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
}

.race-list .info {
  opacity: 0.7;
  font-size: 0.85rem;
}

.btn {
    display: inline-block;
    background: #ffaf00;
    color: #5c1a00;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 17px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover,
.btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.35);
    color: #3e0f00; /* dunkler beim Hover */
}

.btn small {
    display: block;           /* unterhalb des Haupttextes */
    font-size: 12px;          /* kleiner Text */
    font-weight: normal;
    color: #5c1a00cc;         /* etwas transparentes Braun */
}