/* Fonts */
/* bebas-neue-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/bebas-neue-v14-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/montserrat-v29-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/montserrat-v29-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Farbvariablen */
:root {
    --rot: #ad1c1c;
    --schwarz: #000000;
    --weiß: #ffffff;
}

/* Basis-Layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

p {
  font-family: 'Montserrat';
}

h1, h2, h3 {
  font-family: 'Bebas Neue';
}

body {
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  background-color: var(--rot);
  color: var(--weiß);
  font-family: 'Montserrat', 'Bebas Neue';
  background: linear-gradient(-45deg, #ad1c1c, #cc4444, #ad232c, #921515, #a71818, #ad1c1c);
  background-size: 400% 400%;
  animation: gradient 20s ease infinite;
}

@keyframes gradient {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

/* Hauptinhalt */
main {
  flex: 1;
  margin-left: 4.5rem;
  margin-right: 4.5rem;
  padding-top: 80px;
}

/* Logo */
#site-logo {
  position: fixed;
  top: 20px; /* Abstand vom oberen Rand */
  left: 2rem; /* Abstand vom linken Rand */
  z-index: 2000; /* Stellt sicher, dass das Logo immer oben bleibt */
}

#site-logo a {
  display: block; /* Macht das gesamte a-Tag klickbar */
  width: auto; /* Bild wird automatisch skaliert */
  height: auto;
}

#site-logo img {
  width: 100px; /* Begrenzung der maximalen Breite des Logos */
  height: 100px; /* Begrenzung der maximalen Höhe des Logos */
  object-fit: cover; /* Bild wird innerhalb des Rahmens skaliert */
  transition: transform 0.3s ease; /* Sanfter Übergang für Transformationen */
}

#site-logo img:hover {
  transform: scale(1.1); /* Vergrößert das Logo beim Hover */
}


/* ===================== */
/* Allgemeine Navigation */
/* ===================== */

nav {
  background-color: var(--schwarz);
  color: var(--weiß);
  position: fixed;
  top: 0;
  right: 0;
  padding: 1rem 3rem;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.6;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  width: 50%; /* Standard Breite */
  transition: width 0.3s ease; /* Übergang für die Breitenänderung */
}

nav:hover {
  opacity: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav li a {
  display: block;
  color: var(--weiß);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 0.5rem 0.5rem;
  border-radius: 5px;
  transition: color 0.3s, transform 0.3s;
  z-index: 1001;
}

nav li a:hover {
  background-color: var(--rot);
  color: var(--weiß);
  transform: scale(1.1);
}

nav li a.active {
  background-color: var(--rot);
  color: var(--weiß);
  font-weight: 700;
  transform: scale(1.1);
  height: auto;
  width: fit-content;
}

nav li a.active:hover {
  background-color: var(--rot);
  color: var(--weiß);
  transform: scale(1.1);
}

/* ===================== */
/* Dropdown Styles       */
/* ===================== */

nav .dropdown {
  position: relative;
}

nav .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--schwarz);
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
  min-width: 220px;
  z-index: 999;
}

nav .dropdown-content li a {
  padding: 0.5rem 1rem;
  display: block;
  font-size: 1rem;
  color: var(--weiß);
  white-space: nowrap;
  transition: background-color 0.3s, transform 0.3s;
}

nav .dropdown-content li a:hover {
  background-color: var(--rot);
  transform: scale(1.05);
}

/* Desktop Hover Dropdown */
@media (min-width: 1290px) {
  nav .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* ===================== */
/* Mobile Navigation     */
/* ===================== */

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--weiß);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Zentriert den Button relativ zum nav */
  z-index: 1100;
  cursor: pointer;
}

@media (max-width: 1600px) {
  .menu-toggle {
    display: block;
    top: 1rem; /* Verschiebe den Button nach oben, um Überlappungen zu vermeiden */
    left: 50%; /* Bleibt in der Mitte */
    margin-top: 1rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    width: 1%; /* Startbreite */
    min-height: 10vh; /* Mindestens so hoch wie der Bildschirm */
  }

  nav.open {
    width: 20%; /* Breite beim Öffnen */
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--schwarz);
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 2rem;
  }

  nav.open ul {
    display: flex;
  }

  /* Dropdown im mobilen Menü */
  nav .dropdown-content {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
  }

  nav .dropdown.open .dropdown-content {
    display: block;
  }

  /* Alles verstecken, wenn nicht offen */
  nav:not(.open) ul,
  nav:not(.open) .dropdown-content {
    display: none;
  }
}

@media (max-width: 1065px) {
  nav.open {
  width: 30%;
  font-size: 15px ;
}

  nav li a.active {
 width: 90% ;
}

}

@media (max-width: 725px) {
  nav.open {
  width: 56%;
  font-size: 15px ;
}
}

/* Mobile Navitgation */

@media (min-width: 1920px) {
  nav {
    display: block;
    max-width: 40%;
  }
}

@media (min-width: 1270px) {
  nav {
    max-width: 65%;
  }

  nav li a.active {
    height: 94%;
  }
}

/* Hero Title & CTA */
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 7rem;
  text-align: center;
}

.hero-subtitle {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: block;
  width: fit-content;
  margin: 0 auto 3rem auto;
  background-color: var(--schwarz);
  color: var(--weiß);
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.3s;
}

.hero-cta:hover {
  background-color: var(--weiß);
  transform: translateY(-4px);
  color: #000000;
}

/* Startseite */

/* Info-Bereich */
.info-section {
  margin: 4rem auto;
  max-width: 900px;
  text-align: center;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--weiß);
}

.info-section p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--weiß);
}

/* Newsletter Bereich */
/* Newsletter Bereich */
.newsletter {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 4rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Container für den Newsletter */
.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  font-size: 2rem;
  color: var(--weiß);
  margin-bottom: 15px;
  font-weight: bold;
}

.newsletter p {
  font-size: 1rem;
  color: var(--weiß);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter-form label {
  font-size: 1rem;
  color: var(--weiß);
  margin-bottom: 8px;
}

.newsletter-form input {
  margin-bottom: 10px;
  margin-top: 10px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
  border-color: var(--schwarz);
}

.newsletter-form button {
  padding: 12px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin: 0.5rem;

}

.newsletter-form button:hover {
  background-color: var(--schwarz);
  color: var(--weiß);
}

@media (max-width: 768px) {
  .newsletter-container {
    padding: 0 20px;
  }

  .newsletter h2 {
    font-size: 1.5rem;
  }

  .newsletter p {
    font-size: 0.9rem;
  }
}

/* Erlebnis- Verlinkung */

.gift-experience {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 48px;
  margin: 64px 0px;
  border-radius: 10px;
}

.gift-experience h2 {
  text-align: center;
}

.gift-experience p {
  text-align: center;
}

.gift-experience a {
  margin-top: 3rem;
  margin-bottom: 0;
}


/* Galerie */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  position: relative;
  padding-inline: 1.5rem;
}

/* Card-Grundstruktur */
.car-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 10px 10px 0px 0px;
  position: relative;
  overflow: visible;
  cursor: pointer;
  transition: all 0.4s ease;
}

/* Container für Bild */
.car-img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

/* Bild an sich */
.car-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Hover oder Aktiv: Z-Index */
.car-card:hover,
.car-card.active {
  z-index: 10;
}

/* Hover oder Aktiv: Bild-Container größer + rausgezogen */
.car-card:hover .car-img-container,
.car-card.active .car-img-container {
  position: absolute;
  top: -50px;
  left: -50px;
  width: calc(100% + 100px);
  height: auto;
  max-height: 600px;
  padding: 1rem;
  z-index: 20;
}

/* Hover oder Aktiv: Bild komplett anzeigen */
.car-card:hover .car-img-container img,
.car-card.active .car-img-container img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  transform: none;
  border-radius: 5px;
}

/* Andere Karten dimmen */
.car-card.dimmed {
  opacity: 0.2;
  transform: scale(0.95);
  pointer-events: none;
}

/* CTA Abstand */
.gallery .hero-cta {
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Bestenliste */

/* Podium der Besten */
.podium {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    margin-top: 5rem;
  }
  
  .podium h2 {
    font-size: 2rem;
    color: var(--weiß);
    margin-bottom: 2rem;
  }
  
  /* Container für die einzelnen Ranking-Kategorien */
  .rankings {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  /* Ranking-Kategorie */
  .ranking-category {
    background-color: var(--grau);
    padding: 1rem;
    border-radius: 10px;
    width: 30%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .ranking-category h3 {
    font-size: 1.5rem;
    color: var(--rot);
    margin-bottom: 1.5rem;
  }

  .cta-text {
    margin-top: 3rem;
  }

  .cta-text h3 {
    font-size: 24px;
  }

  .podium .hero-cta {
    margin-top: 3rem;
    margin-bottom: 0;
  }

  @media (max-width: 1290px) {

    .ranking-category {
      width: 28%;
  }

  }
  
  /* Liste der Fahrer */
  .ranking-category ol {
    padding-left: 0;
    list-style: none;
  }
  
  .ranking-category li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--leicht-grau);
  }
  
  .ranking-category li:last-child {
    border-bottom: none;
  }
  
  .ranking-category .position {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--rot);
    width: 30px;
  }
  
  .ranking-category .driver {
    font-size: 1rem;
    color: var(--schwarz);
    width: 150px;
  }
  
  .ranking-category .score {
    font-size: 1rem;
    color: var(--schwarz);
    font-weight: 500;
  }
  
  /* Farben für den Rot-Effekt */
  :root {
    --weiß: #ffffff;
    --schwarz: #333333;
    --grau: #f0f0f0;
    --leicht-grau: #e0e0e0;
  }
  
  /* Responsivität */
  @media (max-width: 1823px) {
    .ranking-category {
      width: 28%;
    }
  }

  @media (max-width: 1221px) {
    .ranking-category {
      width: 25%;
    }
  }

  @media (max-width: 1024px) {
    .ranking-category {
      width: 25%;
    }
  }
  
  @media (max-width: 863px) {
    .ranking-category {
      width: 100%;
    }
  
    .rankings {
      justify-content: center;
    }
  
    .podium h2 {
      font-size: 1.8rem;
    }
    
    .ranking-category h3 {
      font-size: 1.3rem;
    }
  
    .ranking-category .position {
      font-size: 1rem;
    }
  
    .ranking-category .driver,
    .ranking-category .score {
      font-size: 0.9rem;
    }
  }

/* Newsletter Bereich */

.newsletter-section {
  background-color: rgba(255, 255, 255, 0.05); /* Ein angenehmes Blau für den Hintergrund */
  color: #fff; /* Weißer Text */
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
  margin-top: 2rem;
}

.newsletter-content h2 {
  font-size: 2rem;
  margin: 0;
}

.newsletter-content p {
  margin-top: 0.5rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.newsletter-form input {
  padding: 10px 15px;
  font-size: 1rem;
  width: 300px; /* Längliches Eingabefeld */
  border-radius: 5px;
  border: none;
  margin-right: 10px;
}

.newsletter-content .hero-cta {
  margin-top: 10px;
  margin-bottom: 0;
}

@media (max-width: 840px) {

  .newsletter-form #email {
    width: auto;
  }
}

/* Footer */
.site-footer {
  background-color: var(--schwarz);
  color: var(--weiß);
  text-align: center;
  padding: 20px 0;
  position: relative;
  width: 100%;
  bottom: 0;
  left: 0;
  margin-top: 1rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--weiß);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--rot);
}

/* Animierte Rennstrecke */
.race-track {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    color: white;
    margin-top: 3rem;
    border-radius: 10px;
}

.track-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.race-track-svg {
    width: 100%;
    height: 100%;
}

.track {
    stroke-dasharray: 1000; /* Streckenlänge für Animation */
    stroke-dashoffset: 1000; /* Anfangsposition der Linie */
    transition: stroke-dashoffset 2s ease;
}

/* Auto (Sportauto wird hier als Gruppe dargestellt) */
.car {
    position: absolute;
    top: 0;
    left: 0;
    animation: drive 5s linear infinite;
}

/* Verbesserung der Animation: Auto fährt entlang der Strecke */
@keyframes drive {
    0% {
        offset-path: path('M50,400 Q150,100 250,250 T450,100'); /* Setze den Pfad */
        offset-distance: 0%; /* Anfangspunkt */
        transform: scaleX(-1); /* Auto schaut nach rechts */
    }
    100% {
        offset-distance: 200%; /* Ende der Strecke */
    }
}

.track {
    stroke: #fff;
    stroke-width: 5;
    fill: none;
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    transition: stroke-dashoffset 2s ease;
  }
  
  .race-track:hover .track {
    stroke-dashoffset: 0;
  }

  /* Rennseite */

  /* Allgemeine Stile */
body {
    font-family: 'Montserrat', 'Bebas Neue';
    background-color: #ad1c1c;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

h1 {
    font-size: 36px;
    margin: 0;
}

h2 {
    font-size: 28px;
    margin-top: 20px;
}

/* Renn-Kalender */
.rennen-kalender {
    padding: 20px;
}

.rennen {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

#h2-rennen {
    margin-top: 4rem;
    font-size: 60px ;
    text-align: center;
}

.rennen h3 {
    font-size: 24px;
}

.button {
    display: inline-block;
    background-color: var(--schwarz);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.button:hover {
    background-color: var(--weiß);
    color: var(--schwarz);
}

/* Allgemeine Styles für die Rennstrecken */
.rennstrecken {
    text-align: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.strecken {
    display: inline-block;
    width: 45%; /* Setzt die Breite der einzelnen Boxen auf 45% */
    margin: 15px;
    border-radius: 8px;
    background-color: rgba(20, 14, 14, 0.144);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    vertical-align: top;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strecken:hover {
    transform: translateY(-5px); /* Leichte Verschiebung nach oben bei Hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Verstärkter Schatten bei Hover */
}

/* Bildanpassung */
.strecken img {
    width: 100%; /* Passt das Bild auf 100% der Containerbreite an */
    max-width: 350px; /* Begrenzung der Bildbreite */
    height: auto; /* Beibehaltung des Seitenverhältnisses */
    margin-bottom: 15px; /* Abstand zum Text */
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Texte und Überschriften */
.strecken h3 {
    font-size: 24px;
    color: var(--weiß);
    margin-bottom: 10px;
}

.strecken p {
    font-size: 1rem;
    color: var(--weiß);
}

.strecken .button {
    margin-bottom: 1rem;
}

/* Kalender */ 

.rennen-kalender-hinzufuegen {
    margin: 50px 0;
    text-align: center;
}

.rennen-termin {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.rennen-termin h3 {
  font-size: 24px;
}

.kalender-form {
    margin-top: 20px;
}

.kalender-form label {
    font-size: 1.2rem;
    margin-right: 10px;
}

.kalender-form select {
    font-size: 1rem;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-right: 10px;
}

.kalender-form button {
    padding: 12px 20px;
    background-color: var(--schwarz);
    color: white;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.kalender-form button:hover {
    background-color: var(--weiß);
    color: var(--schwarz);
}

/* Responsivität für mobile Geräte */
@media (max-width: 768px) {
    .strecken {
        width: 90%; /* Auf kleineren Bildschirmen die Breite anpassen */
    }
}

/* News Bereich */

/* News-Bereich */
.news {
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.news h2 {
    font-size: 2rem;
    color: var(--weiß);
    margin-bottom: 1.5rem;
}

.news-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
    font-size: 1.75rem;
    color: var(--weiß);
    margin-bottom: 10px;
}

.news-item p {
    font-size: 1rem;
    color: var(--weiß);
}

.news-item .button {
    margin-top: 1rem;
}

/* Schaltflächen-Stil */
.news-item .button {
    background-color: var(--schwarz);
    color: var(--weiß);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    display: inline-block;
}

.news-item .button:hover {
    background-color: var(--weiß);
    color: var(--schwarz);
}

/* FAQ-Sektion */
.faq {
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap; /* Ermöglicht das Umfließen der Elemente, wenn der Platz nicht ausreicht */
    justify-content: space-between; /* Verteilt die FAQ-Items gleichmäßig */
}

/* Stil für jedes FAQ-Item */
.faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 16%; /* Setzt die Breite jedes Items auf etwa 23%, sodass vier nebeneinander passen */
    margin-top: 1rem;
}

/* Stil für die Fragen */
.faq-question {
    font-size: 1.5rem;
    color: var(--weiß);
    background-color: transparent;
    border: none;
    text-align: left;
    width: 100%;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

/* Hover-Effekt auf den Fragen */
.faq-question:hover {
    background-color: var(--schwarz);
}

/* Stil für den Pfeil */
.faq-arrow {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: solid var(--weiß);
    border-width: 0 3px 3px 0;
    padding: 5px;
    transform: rotate(45deg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Pfeil bei Hover */
.faq-question:hover .faq-arrow {
    border-color: var(--rot);
}

/* Rotieren des Pfeils bei geöffnetem Zustand */
.faq-answer.open + .faq-question .faq-arrow {
    transform: rotate(-135deg);
    border-color: var(--rot);
}

/* Wenn die Antwort geöffnet ist, anzeigen */
.faq-answer.open {
    display: block;
}

/* Standardzustand: Antworten sind verborgen */
.faq-answer {
    display: none;
    padding-top: 10px;
}

@media (max-width: 1920px) {
  .faq-item {
      width: 90%; /* Zwei Items nebeneinander */
  }
}

/* Responsive Design: Bei kleinen Bildschirmen (max. 768px) wird das Layout angepasst */
@media (max-width: 768px) {
    .faq-item {
        width: 48%; /* Zwei Items nebeneinander */
    }
}

/* Für sehr kleine Bildschirme (max. 480px) wird es zu einer einspaltigen Ansicht */
@media (max-width: 480px) {
    .faq-item {
        width: 100%; /* Jedes Item nimmt die volle Breite ein */
    }
}

@media (max-width: 1280px) {
  .faq-arrow {
    width: 7px;
    height: 7px;
}
}

/* Anbieter- Bereich */

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--schwarz);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.cta-button:hover {
    background-color: var(--weiß);
    color: var(--schwarz);
}

/* Partner-Section */
.partner-section {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    border-radius: 5px;
    margin-top: 5rem;
}

.partner-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.partner-card {
    background-color: var(--rot);
    border-radius: 8px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--weiß);
}

.partner-card:hover {
    transform: scale(1.05);
}

.partner-card img {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.partner-card h3 {
    font-size: 24px;
    margin: 10px 0;
    color: var(--weiß);
}

.partner-card p {
    font-size: 0.9em;
    color: var(--weiß);
}

.partner-rating {
    margin: 15px 0;
}

.stars {
    color: #f39c12;
}

.partner-card a {
    text-decoration: none;
}

/* Kundenbewertungen-Section */
.reviews-section {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    margin-top: 3rem;
    border-radius: 5px;
}

.reviews {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.review {
    background-color: var(--rot);
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.review img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.review-text {
    font-size: 1em;
    color: var(--weiß);
    margin-bottom: 15px;
}

.review-author {
    font-weight: bold;
    color: var(--weiß);
}

/* Anbieter Vergleich Bereich */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
}

#h1-anbieter {
  margin-top: 5rem;
  margin-bottom: 5rem;
  text-align: center;
  font-size: 60px;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

.comparison-table {
  width: 100%;
  border-collapse: separate; /* separate Border für abgerundete Ecken */
  border-spacing: 0;
  table-layout: auto; /* Flexiblere Spaltenanpassung */
  overflow: hidden; /* Verhindert, dass der Inhalt außerhalb der abgerundeten Ecken geht */
}

/* Zellen einheitlich gestalten */
.comparison-table th,
.comparison-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: center;
}

/* CTA Button */
#reset-button {
  padding: 8px 12px; 
  background-color: #000000; 
  color: white; 
  border: none; 
  cursor: pointer; 
  border-radius: 4px;
}

/* Firefox - Track */
input[type="range"]::-moz-range-track {
  background: #ffffff;
  height: 6px;
  border-radius: 3px;
}

/* Firefox - Thumb */
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
}

/* Internet Explorer */
input[type="range"]::-ms-track {
  background: transparent;
  border-color: transparent;
  color: transparent;
  height: 6px;
}

input[type="range"]::-ms-fill-lower,
input[type="range"]::-ms-fill-upper {
  background: #000000;
  border-radius: 3px;
}

input[type="range"]::-ms-thumb {
  width: 18px;
  height: 18px;
  background: #000000;
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
}

/* Verhindert horizontales Scrollen */
.comparison-table {
  word-wrap: break-word; /* Lange Inhalte umbrechen */
  overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

/* Die einzelnen td sollen nicht zu breit werden */
.comparison-table td {
  word-break: break-word; /* Lange Worte umbrechen */
}

/* Mobile Darstellung (ab 1265px oder kleiner) */
@media screen and (max-width: 1265px) {
  .comparison-table {
    display: block;
    width: 100%;
  }

  .comparison-table thead {
    display: none; /* Kopf ausblenden */
  }

  .comparison-table tbody, 
  .comparison-table tr, 
  .comparison-table td {
    display: block;
  }

  .comparison-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
  }

  .comparison-table td {
    text-align: left;
    padding: 10px 10px;
    position: relative;
  }

  /* Hinzufügen von "data-label" für jedes td in der mobilen Ansicht */
  .comparison-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: var(--weiß);
  }
}

/* Stil für CTA-Button */
.comparison-table td a.cta-button {
  display: inline-block;
  background-color: #000;
  color: white;
  padding: 10px 16px;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 10px;
  text-decoration: none;
  transition: background 0.2s ease-in-out;
}

.comparison-table td a.cta-button:hover {
  background-color: #333;
}

/* Rennsport Galerie Bereich */ 

/* Galerie-Header */
.gallery-header {
  text-align: center;
  padding: 3rem 0;
  color: white;
  margin-top: 3rem;
}

/* Container, in dem die .upload-section zentriert wird */
.container {
  display: flex;
  justify-content: center;  /* Horizontale Zentrierung */
  align-items: center;      /* Vertikale Zentrierung */
  min-height: 50vh;         /* Sicherstellen, dass der Container die gesamte Höhe des Viewports einnimmt */
  margin: 0;                 /* Verhindert äußere Abstände */
  padding: 0;
}

.upload-section {
  text-align: center;
  margin: 4rem;
  padding: 3rem; /* Vergrößert den Innenabstand */
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  max-width: 800px; /* Setzt eine maximale Breite */
  width: auto; 
  box-sizing: border-box;
}

.upload-section h2 {
  margin-top: 2rem;
}

.upload-section input, .upload-section textarea {
  width: 80%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Montserrat';
}

#nachricht {
  font-family: 'Bebas Neue', 'Montserrat';
}

.upload-section button {
  background-color: #000000;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
  margin-top: 1.6rem;
}

.upload-section button:hover {
  background-color: #ffffff;
  color: #000000;
}

#file-upload {
  color: var(--weiß);
}

/* Benutzer-Galerie Anzeige */
.user-gallery {
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
}

.user-gallery h2 {
  text-align: center;
}

.user-gallery-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.user-gallery-item {
  position: relative;
  width: 600px;
  text-align: center;
  border: 1px solid var(--weiß);
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertikale Zentrierung */
  align-items: center; /* Horizontale Zentrierung */
}

.user-gallery-item video {
  width: 100%;
  height: 100%;
}

.user-gallery-item img {
  width: 100%;
  height: auto;
}

.user-gallery-item p {
  padding: 10px;
  background-color: var(--schwarz);
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* Allgemeine Stile für den Ratgeber-Bereich */
.page-header {
  margin-bottom: 4rem;
  margin-top: 4rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: white;
}

.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem; /* Für etwas Abstand zu den Seiten */
  animation: fadeIn 1s ease-out; /* Fade-In-Effekt für die Artikel */
}

article {
  background-color: rgba(255, 255, 255, 0.1); /* Dunkleres Hintergrund für den Artikel */
  padding: 1.5rem;
  border-radius: 12px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Stärkere Schatten für den 3D-Effekt */
  margin-top: 2rem;
  color: #fff; /* Textfarbe für den gesamten Artikel */
  overflow: hidden;
  position: relative;
}

/* Hover-Effekte */
.ratgeber-box:hover {
  transform: translateY(-5px) scale(1.03); /* Vergrößern der Karte beim Hover */
  box-shadow: 0 6px 18px rgba(0,0,0,0.15); /* Mehr Schatten im Hover */
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.2)); /* Farbverlauf im Hover */
  cursor: pointer; /* Zeigt an, dass der Artikel klickbar ist */
}

article h2 {
  font-size: 1.5rem;
  margin-top: 0;
  color: var(--weiß);
  font-weight: bold;
  position: relative;
  z-index: 1;
}

article h2 a {
  text-decoration: none;
  color: var(--weiß);
  transition: color 0.3s ease; /* Farbänderung bei Hover */
}

article h2 a:hover {
  color: #493f39; /* Akzentfarbe für Hover-Effekt */
  text-decoration: underline;
}

.ratgeber-box p {
  color: var(--weiß);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeInText 1s ease-out forwards; /* Text Fade-In */
  animation-delay: 0.5s; /* Verzögerung für das Text-Fade-In */
}

/* Tabelle für Vor- und Nachteile der Finanzierungsarten */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1rem;
  text-align: left;
}

th, td {
  padding: 10px;
  border: 1px solid #ddd;
}

th {
  background-color: rgba(44, 22, 22, 0.05);
  font-weight: bold;
}

td {
  background-color: rgba(44, 22, 22, 0.05);
}

tr:nth-child(even) td {
  background-color: rgba(44, 22, 22, 0.05);
}

tr:hover td {
  background-color: rgba(44, 22, 22, 0.05);
}

/* Animations-Effekte */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInText {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Responsives Design */
@media (max-width: 600px) {
  .articles {
    grid-template-columns: 1fr;
    padding: 0 1rem; /* Weniger Abstand bei mobilen Geräten */
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  article {
    margin-top: 2rem;
  }
}



/* Kontakt- Bereich */

.kontakt-container {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  margin: 7rem auto 0;
  border-radius: 12px;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
}

.kontakt-container h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.kontakt-container p {
  text-align: center;
  margin-bottom: 2rem;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
}

.kontakt-form label {
  margin-bottom: 5px;
  font-weight: bold;
}

.kontakt-form input,
.kontakt-form textarea {
  background-color: var(--weiß);
  color: var(--schwarz);
  padding: 10px;
  margin-bottom: 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-family:'Montserrat', 'Bebas Neue';
}

.kontakt-form textarea {
  resize: vertical;
}

.kontakt-form button {
  background-color: var(--schwarz);
  color: var(--weiß);
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.kontakt-form button:hover {
  background-color: var(--weiß);
  color: var(--schwarz);
}

/* Impressum */ 

#h1-impressum {
  margin-top: 6rem;
  margin-bottom: 6rem;
  text-align: center;
  font-size: 350%;
}

.span-bold {
  font-weight: bold;
}

.links {
  color: white;
}

/* Empfehlungen */
.angebote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
}

.angebot-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.angebot-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.angebot-card:hover img {
  transform: scale(1.05);
}

.angebot-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.angebot-card h3 {
  margin: 1rem;
  font-size: 1.4rem;
  color: #ffffff;
}

.angebot-card p {
  margin: 0 1rem 1rem;
  color: #ffffff;
  font-size: 1rem;
}

.angebot-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem 1rem;
}

.price {
  font-weight: bold;
  color: #ffffff;
  font-size: 1.2rem;
}

.cta-button {
  background-color: #000000;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 2rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #ffffff;
  transform: scale(1.05);
  color: #000;
}

/* Animation beim Laden */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-card {
  animation: fadeInUp 0.8s ease both;
}

/* Lightbox-Grundstruktur */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.4s ease;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: #000;
  padding: 0.2rem 0.6rem;
  border-radius: 50%;
  line-height: 1;
}

#experience-type {
  color: var(--weiß);
  background-color: var(--schwarz);
}

#price-range {
  color: var(--weiß);
  background-color: var(--schwarz);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Verhindert, dass Bild in der Card verzerrt wird */
.angebot-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}

.hero-section h1 {

  margin-top: 12rem;
  text-align: center;
}

.hero-section p {
  text-align: center;
}

.info-section ul li {
  text-align: left;
}

.cta-section h2 {
  margin-top: 5rem;
  text-align:center;
}

.cta-section p {
  text-align: center;
}

/* Allgemeine Stile für das Quiz */
.matchmaker-section {
  background-color: rgba(255, 255, 255, 0.05); /* Transparenter Hintergrund */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  display: flex;
  width: auto;
}

.quiz-container {
  background-color: rgba(255, 255, 255, 0.1); /* Leicht durchsichtiger Hintergrund für den Quizbereich */
  padding: 20px;
  border-radius: 8px;
  width: 100%;
}

.quiz-question {
  margin-bottom: 15px;
}

.quiz-question h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.quiz-question label {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.quiz-submit {
  background-color: #000000;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.quiz-submit:hover {
  background-color: #ffffff;
  color: var(--schwarz);
}

.quiz-result-section {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px;
  color: white;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
}




/* Datenschutz */

#h1-datenschutz {
  margin-top: 6rem;
  margin-bottom: 6rem;
  text-align: center;
  font-size: 350%;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  nav ul {
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-cta {
    padding: 0.75rem 1.5rem;
  }
}

  
  
  
  
  
  
  
  
  
  
  
  