* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #000b20;
  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: #d33d33;
  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;
}

.logo {
  height: 100px;
  font-size: xxx-large;
}

.event-grid {
  display: grid;
  gap: 40px;
  padding: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.event-box {
  background-color: #00963f99;
  border: 1px solid #00963f99;
  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;
}

.event-box:hover {
  transform: scale(1.05);
}

.event-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-box a {
  text-decoration: none;
  color: inherit;
}

.event-box a:hover {
  text-decoration: none;
  color: inherit;
}

.event-cancelled {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  background-color: transparent;
  color: #d33d33;
  padding: 5px 60px;
  font-weight: bold;
  font-size: 20px;
  border-radius: 8px;
  border: 3px solid #d33d33;
}

.event-info {
  padding-bottom: 10px;
  text-align: center;
}

.event-info b {
  font-size: 12px;
}

.event-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #d33d33;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.event-date .day {
  font-size: 2rem;
}

.event-date .month {
  font-size: 1rem;
}

.event-tags {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-tags span {
  background-color: #d33d33;
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}

.results-button {
  display: block;
  background-color: #d33d33;
  color: white;
  text-align: center;
  padding: 3px;
  border-radius: 5px;
  margin: 0px auto 10px;
  width: 80%;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.results-button:hover {
  background-color: #a52a2a;
}

@media screen and (min-width: 1200px) {
  .event-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

#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, .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: 200px;
}

.banner-vereine img {
  max-width: 200px;
}

.footer-sponsoren img {
  max-width: 150px;
}

footer {
  background: #000000;
  color: #fff;
  text-align: center;
  padding: 10px 0;
}

footer a {
  color: #d33d33;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.social-media{
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  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;
  }
}