body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f8f9fa;
  color: #222;
}

/* Kopfbereich oben */
header {
  background: linear-gradient(to right, #ff0000, #660000);
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-bottom: 30px;
}

/* Menü */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 40px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 800px;
  padding: 40px 20px;
  margin: 0 auto;
  line-height: 1.6;
}

h1 {
  margin-top: 0;
  text-align: center;
}


.back-button {
  display: inline-flex;
  margin: 20px auto;
  background-color: white;
  color: black;
  border: 2px solid #e10600;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.back-button:hover {
  background-color: #e10600;
  color: white;
}


/*Startseite */
.f1-image {
  display: block;
  margin: 0px auto 0px auto;
  width: 800px;
  max-width: 90%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.4));
  transition: transform 1s ease;
}

.f1-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(255, 50, 0, 0.5));
}

.race-link {
  text-align: center;
  font-size: 16px;
  margin-top: 14px;
}

.race-link a {
  color: #e10600;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

.race-link a:hover {
  color: #b30000;
  text-decoration: underline;
}





.index-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  color: #e10600;
  text-shadow:
    0 0 6px rgba(225, 6, 0, 0.6),
    0 0 14px rgba(255, 0, 0, 0.5),
    0 0 24px rgba(255, 60, 0, 0.3);

  margin: 20px 0 10px 0;
}



.rennen-header {
  background-image: url('../Media/Zielflagge_Bild.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 130px;

  display: flex;
  flex-direction: column;
  justify-content: center;


  text-align: center;
  color: white;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.rennen-header h1 {
  margin-top: 40px;
  position: relative;
  z-index: 1;
  font-size: 44px;
  font-weight: 800;
  text-shadow:
    4px 4px 6px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(0, 0, 0, 0.7);
}

.rennen-header .back-button {
  margin-top: -6px;
}

.teams-intro {
  max-width: 800px;
  padding: 0 24px;
  text-align: center;
  line-height: 1.5;
  font-size: 16px;
  color: #333;
}

/* ===== Teams Auflistung ===== */
.teams {
  margin: 0;
  padding: 0;
}

.team-card {
  --team: #888;
  background: #fff;
  border: 2px solid var(--team);
  border-radius: 12px;
  margin-bottom: 10px;
}

.team-summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 12px;
}

.team-summary h3 {
  margin: 0;
  font-size: 18px;
  color: var(--team);
}

.driver-list {
  list-style: none;
  margin: 0;
  padding: 8px 12px 12px;
}

.driver-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.driver-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--team);
}

.driver-list span {
  font-weight: 600;
}




/* ===== Geschichte-Seite ===== */
.history-image {
  text-align: center;
  margin: 20px auto 30px;
}

.history-hero {
  width: 70%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: block;
  margin: 0 auto;
}


.history-image-wrapper {
  position: relative;
  display: inline-block;
}



.history-overlay {
  position: absolute;
  bottom: 172px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  font: 700 26px/1.2 'Arial', sans-serif;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
}


/* ===== Tabelle ===== */

.race-results {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 16px;
}

.race-results h3 {

  margin-bottom: 8px;
  text-align: left;
  margin-left: 10px;
}

.race-table {
  margin: 0 auto;
}










.race-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}


.table-header {
  display: flex;
  background: #e10600;
  color: white;
  font-weight: bold;
}

.table-header div,
.table-row div {
  flex: 1;
  padding: 10px;
  text-align: center;
}


.table-row {
  display: flex;
  border-top: 1px solid #ddd;
}

.table-row:nth-child(even) {
  background: #f7f7f7;
}

/*  Handy - Kopfzeile ausblenden */
@media (max-width: 600px) {
  .table-header {
    display: none;
  }

  .table-row {
    flex-direction: column;
    text-align: left;
    padding: 8px 12px;
  }

  .table-row div::before {
    font-weight: bold;
    display: block;
  }

  .table-row div:nth-child(1)::before {
    content: "Jahr:";
  }

  .table-row div:nth-child(2)::before {
    content: "Strecke:";
  }

  .table-row div:nth-child(3)::before {
    content: "Sieger:";
  }
}





footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  margin-top: 60px;
}

/*  Java */

.js-demo {
  text-align: center;
  margin: 40px 0;
}

.boost-button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  border: 2px solid #e10600;
  background-color: white;
  cursor: pointer;
}

.boost-button:hover {
  background-color: #e10600;
  color: white;
}

/* Animation für das Auto */
.f1-image.boost {
  animation: f1-boost 3s ease-out;
}

@keyframes f1-boost {
  0%   { transform: translateX(0) scale(1);  }
  40%  { transform: translateX(40px) scale(1.05); }
  50%  { transform: translateX(160px) scale(1.1); }
  70%  { transform: translateX(-10px) scale(1.02); opacity: 1;}
  100% { transform: translateX(0) scale(1); opacity: 0; }
}


