* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #e9e9e9;
  color: #000000;
}

.container {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
}

a {
  text-decoration: none;
}

.site-header,
.site-footer {
  padding: 8px 0;
}

.main-nav,
.footer-nav {
  background: #000000;
  border-radius: 14px;
  padding: 22px 20px;
}

.main-nav ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 34px;
}

.main-nav a,
.footer-nav a {
  color: #ffffff;
  font-size: 1.1rem;
}

.main-nav a:hover,
.footer-nav a:hover,
.main-nav a:focus,
.footer-nav a:focus {
  text-decoration: underline;
}

.main-nav a.active {
  text-decoration: underline;
}

.hero {
  margin: 20px auto;
}

.hero .container {
  padding: 0;
}

.hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.content-section {
  margin: 25px auto;
}

.text-block {
  background: #ffffff;
  padding: 50px 20px;
  text-align: center;
}

.text-block h1,
.text-block h2,
.page-title,
.sponsor-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: #8ebf2e;
  line-height: 1.2;
}

.text-block h2 {
  font-size: 2.4rem;
}

.text-block p {
  max-width: 900px;
  margin: 20px auto 0;
  font-size: 1.1rem;
  color: #000000;
  line-height: 1.7;
}

.triathlon-page {
  padding: 18px 0 40px;
}

.page-title {
  font-size: 3.4rem;
  text-align: center;
  margin-bottom: 26px;
}

/* Ticker mit Laufschrift und seitlichem Rand */
.ticker-wrap {
  margin: 0 18px 34px;
}

.ticker {
  background: #fff200;
  border-radius: 12px;
  height: 74px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 18px;
}

.ticker-track {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  font-size: 1.25rem;
  color: #000000;
  animation: ticker-scroll 14s linear infinite;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Spezieller Textblock für Ammersee-Seite */
.triathlon-textblock p {
  font-size: 1.05rem;
  color: #000000;
  line-height: 1.6;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 36px auto 42px;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  background: #4cd058;
  color: #000000;
  border-radius: 18px;
  font-size: 1.05rem;
  text-align: center;
  padding: 14px 18px;
}

.action-button:hover,
.action-button:focus {
  filter: brightness(0.96);
  text-decoration: underline;
}

.sponsor-title {
  text-align: center;
  font-size: 2.3rem;
  margin: 10px 0 34px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 30px;
}

.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #d7d7d7;
  border-radius: 18px;
  min-height: 150px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sponsor-card:hover,
.sponsor-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #8ebf2e;
}

.sponsor-card img {
  width: 100%;
  max-width: 180px;
  max-height: 90px;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .button-grid,
  .sponsor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 620px) {
  .main-nav,
  .footer-nav {
    padding: 18px 14px;
  }

  .main-nav ul,
  .footer-nav ul {
    gap: 14px 18px;
  }

  .button-grid,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .text-block h2,
  .sponsor-title {
    font-size: 1.9rem;
  }

  .hero img {
    height: 220px;
  }

  .sponsor-card {
    min-height: 130px;
  }

  .ticker-wrap {
    margin: 0 10px 26px;
  }

  .ticker {
    height: 64px;
  }

  .ticker-text {
    font-size: 1.05rem;
  }
}
