body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: url('https://www.sv-b-n.de/images/2018/Allgemein/vorstellungderabteilungen/vereinsheim.jpg') center center/cover no-repeat fixed;
  color: #181818;
  min-height: 100vh;
  position: relative;
  transition: background 0.5s, color 0.4s;
}
body.fade-out {
  opacity: 0;
  transition: opacity 0.4s;
}
body.fade-in {
  opacity: 1;
  transition: opacity 0.4s;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(24,24,24,0.10) 0%, rgba(255,255,255,0.07) 100%);
  /* Weniger Blur, damit Text nicht verschwimmt */
  backdrop-filter: blur(0.5px);
}
header {
  background: linear-gradient(90deg, #181818 60%, #444 100%);
  color: #fff;
  padding: 2.5rem 0 1.5rem 0;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  position: relative;
  animation: fadeInDown 1s;
  transition: background 0.4s, box-shadow 0.4s, color 0.4s;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}
.logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #181818;
  position: absolute;
  left: 2.5rem;
  top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  animation: popIn 1.2s;
}
@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  80% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
.logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.2);
  transition: filter 0.3s;
}
.logo img:hover {
  filter: grayscale(0) contrast(1.2) drop-shadow(0 0 8px #fff);
}
header h1 {
  margin: 0;
  font-size: 2.7rem;
  letter-spacing: 2px;
  font-weight: 700;
  text-shadow: 1px 2px 8px #00000033;
  animation: fadeInDown 1.2s 0.2s backwards;
}
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  animation: fadeInDown 1.2s 0.3s backwards;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.4em 1.3em;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.3s;
  background: rgba(24,24,24,0.0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  letter-spacing: 1px;
}
nav a.active, nav a:hover {
  background: #fff;
  color: #181818;
  box-shadow: 0 4px 16px rgba(24,24,24,0.13);
  transform: translateY(-2px) scale(1.05);
}
nav a:active {
  background: #e9e9e9;
  color: #181818;
  box-shadow: 0 2px 8px rgba(24,24,24,0.10);
  transform: scale(0.98);
}
.container, .bereich-card, .admin-section, .preview-section, .sportstaette-card, .funktionaer-card {
  position: relative;
  background: #fff;
  /* Logo als sehr blasses Hintergrundbild */
  background-image: url('https://image.fupa.net/club/vwIAGaG8YoNS/800x800.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 340px auto;
  /* Sehr blass */
  opacity: 1;
  box-shadow: 0 8px 40px rgba(24,24,24,0.13);
  transition: background 0.4s, box-shadow 0.4s;
}
.container::before, .bereich-card::before, .admin-section::before, .preview-section::before, .sportstaette-card::before, .funktionaer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://image.fupa.net/club/vwIAGaG8YoNS/800x800.png') center center no-repeat;
  background-size: 340px auto;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
/* Text und Inhalt über dem Logo */
.container > *, .bereich-card > *, .admin-section > *, .preview-section > *, .sportstaette-card > *, .funktionaer-card > * {
  position: relative;
  z-index: 1;
}
.container {
  max-width: 1050px;
  margin: 2.5rem auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(24,24,24,0.13);
  padding: 2.7rem 2.2rem 2.2rem 2.2rem;
  animation: fadeInUp 1.2s;
  position: relative;
  z-index: 1;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
h2 {
  color: #181818;
  margin-top: 0;
  font-size: 2.2rem;
  font-weight: 800;
  border-left: 8px solid #181818;
  padding-left: 0.7em;
  background: linear-gradient(90deg, #f5f5f5 60%, #fff 100%);
  border-radius: 8px;
  letter-spacing: 1px;
  margin-bottom: 1.2em;
  animation: fadeInLeft 1.1s;
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
.section {
  margin-bottom: 2.5rem;
}
.btn {
  background: linear-gradient(90deg, #181818 60%, #444 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 0;
  font-size: 0.65em;
  font-weight: 700;
  cursor: pointer;
  margin: 0.1em 0 0.1em 0;
  box-shadow: 0 2px 8px rgba(24,24,24,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.3s, transform 0.2s;
  width: 100%;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px #00000022;
  min-width: 48px;
  max-width: 90px;
}
.btn:hover {
  background: #fff;
  color: #181818;
  box-shadow: 0 6px 24px rgba(24,24,24,0.18);
  transform: scale(1.02);
}
ul {
  padding: 0;
  margin: 0;
}
li {
  list-style: none;
}
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
  justify-content: center;
}
.team-card {
  background: #f5f5f5;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(24,24,24,0.10);
  padding: 1.5rem 1.7rem;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 270px;
  text-align: center;
  border: 2px solid #181818;
  transition: box-shadow 0.3s, transform 0.2s;
  animation: fadeInUp 1.1s;
}
.team-card:hover {
  box-shadow: 0 8px 32px rgba(24,24,24,0.18);
  transform: scale(1.04) translateY(-4px);
  background: #fff;
}
.team-card h3 {
  margin: 0.2em 0 0.5em 0;
  color: #181818;
  font-size: 1.2rem;
  font-weight: 700;
}
.team-card p {
  margin: 0.2em 0;
  color: #222;
  font-size: 1em;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
}
.news-list li {
  background: #fff;
  border-left: 7px solid #181818;
  margin: 0;
  padding: 1.3rem 1.5rem 1.1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(24,24,24,0.07);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: fadeInUp 1.1s;
}
.news-list li:hover {
  box-shadow: 0 6px 24px rgba(24,24,24,0.13);
  transform: scale(1.02) translateY(-2px);
}
.news-date {
  position: absolute;
  top: 1.1rem;
  right: 1.5rem;
  background: #181818;
  color: #fff;
  font-size: 0.98em;
  font-weight: 600;
  padding: 0.25em 0.9em;
  border-radius: 16px;
  letter-spacing: 1px;
  box-shadow: 0 1px 4px rgba(24,24,24,0.10);
}
.news-title {
  font-size: 1.18em;
  font-weight: 700;
  color: #181818;
  margin-bottom: 0.2em;
}
.news-text {
  color: #222;
  font-size: 1.04em;
  line-height: 1.6;
}
.news-list a {
  color: #181818;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}
.news-list a:hover {
  color: #444;
}
.ostfriesland {
  margin-top: 2.5rem;
  text-align: center;
  color: #181818;
  font-size: 1.1em;
  letter-spacing: 1px;
}
.ostfriesland:before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  background-image: url('https://image.fupa.net/club/vwIAGaG8YoNS/800x800.png');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 0.3em;
  /* Vereinslogo als Bild eingebunden */
}
.funktionaer-card {
  background: #f5f5f5;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(24,24,24,0.10);
  padding: 2em 1.5em;
  margin: 2em auto;
  text-align: center;
  border: 2px solid #181818;
  max-width: 400px;
  transition: box-shadow 0.3s, transform 0.2s;
  animation: fadeInUp 1.1s;
}
.funktionaer-card:hover {
  box-shadow: 0 8px 32px rgba(24,24,24,0.18);
  transform: scale(1.04) translateY(-4px);
  background: #fff;
}
.chronik-bilder {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  margin-bottom: 2em;
  justify-content: center;
}
.chronik-img-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(24,24,24,0.10);
  transition: box-shadow 0.3s, transform 0.2s;
}
.chronik-img-link:hover {
  box-shadow: 0 8px 32px rgba(24,24,24,0.18);
  transform: scale(1.06) translateY(-4px);
}
.chronik-img {
  width: 220px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s;
}
.chronik-img-link:active .chronik-img {
  transform: scale(1.12);
}
.sportstaetten-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  margin-bottom: 2em;
}
.sportstaette-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(24,24,24,0.10);
  padding: 1.5em;
  max-width: 340px;
  flex: 1 1 300px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.2s;
  border: 2px solid #181818;
}
.sportstaette-card:hover {
  box-shadow: 0 8px 32px rgba(24,24,24,0.18);
  transform: scale(1.04) translateY(-4px);
  background: #f5f5f5;
}
.sportstaette-card img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1em;
  transition: transform 0.3s;
}
.sportstaette-card img:hover {
  transform: scale(1.06);
}
/* Sponsoren-Laufband */
.sponsor-marquee {
  position: center;
  right: 0;
  bottom: 0;
  width: 100vw;
  max-width: 100vw;
  z-index: 9999;
  background: rgba(24,24,24,0.92);
  padding: 0.5em 0 0.5em 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
}
.sponsor-marquee-inner {
  display: flex;
  align-items: center;
  animation: sponsor-scroll 60s linear infinite;
  gap: 2.5em;
}
.sponsor-marquee img {
  height: 38px;
  margin: 0 1.2em;
  filter: brightness(0.98) contrast(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.13));
  background: #fff;
  border-radius: 8px;
  padding: 2px 8px;
  transition: transform 0.2s;
}
.sponsor-marquee img:hover {
  transform: scale(1.08);
}
@keyframes sponsor-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes sponsor-scroll-ltr {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
@keyframes sponsor-scroll-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .container {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .team-list, .sportstaetten-list {
    gap: 1.1rem;
  }
  .chronik-img {
    width: 150px;
  }
}
@media (max-width: 700px) {
  .container {
    padding: 0.5rem 0.2rem 0.5rem 0.2rem;
  }
  .team-list, .sportstaetten-list {
    flex-direction: column;
    align-items: center;
  }
  .chronik-bilder {
    gap: 0.7em;
  }
  .chronik-img {
    width: 100px;
  }
}
footer {
  background: #181818;
  color: #fff;
  text-align: center;
  padding: 1.5em 0 1.2em 0;
  font-size: 1.1em;
  letter-spacing: 1px;
  border-radius: 0 0 18px 18px;
  margin-top: 2.5em;
  box-shadow: 0 -2px 12px rgba(24,24,24,0.10);
  animation: fadeInUp 1.2s;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
::-webkit-scrollbar {
  width: 10px;
  background: #fff;
}
::-webkit-scrollbar-thumb {
  background: #181818;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}
@media (max-width: 500px) {
  header {
    padding-top: 6.5rem; /* deutlich mehr Platz oben im Header */
    padding-bottom: 2rem;
    text-align: center; /* damit der Titel mittig bleibt, wenn du willst */
  }

  .logo {
    width: 90px;
    height: 90px;
    left: 50%;
    transform: translateX(-50%); /* Logo zentrieren */
    top: 0.5rem; /* genug Abstand zum oberen Rand */
    position: absolute;
  }

  .logo img {
    width: 20px;
    height: 20px;
  }

  header h1 {
    font-size: 1.5rem;
    margin: 0;
    margin-top: 0.5rem; /* optional: etwas Abstand nach dem Logo */
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }


  nav a {
    font-size: 1rem;
    padding: 0.3em 1em;
  }

  .container {
    padding: 0.2rem;
    margin: 0.5rem auto;
    border-radius: 12px;
  }

  .team-card,
  .sportstaette-card,
  .funktionaer-card {
    max-width: 100%;
    padding: 1rem;
  }

  .news-list li {
    padding: 1rem;
  }

  .news-date {
    font-size: 0.8em;
    padding: 0.2em 0.6em;
  }

  .chronik-img {
    width: 80px;
  }

  footer {
    font-size: 0.5em;
    padding: 0.1em 0;
  }

  .sponsor-marquee img {
    width: 10px;
    height: 26px;
  }
}

@media (max-width: 500px) {
  footer {
    flex-direction: column;
    align-items: center; /* zentriert alle Elemente im Footer */
    padding: 0.8em;
  }

  #sponsor-left,
  #sponsor-right {
    width: auto;
    max-width: 90vw;
    min-width: auto;
    margin: 0.5em 0;
    display: flex;
    justify-content: center; /* Inhalt zentrieren */
  }

  #sponsor-slide-left,
  #sponsor-slide-right {
    width: 100%;
    max-width: 100%;
  }

  .sponsor-slide-img {
    max-width: 100%;
    height: auto;
  }

  footer span {
    display: block;
    margin: 0.5em 0;
    text-align: center;
  }
}
