:root {
  --rot: #d00000;
  --hellrot: #fff0f0;
  --weiss: #ffffff;
  --grau: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.background-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.background-slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.background-slideshow img.active {
  opacity: 1;
}

header {
  background-color: rgba(208, 0, 0, 0.85);
  color: white;
  padding: 1rem 2rem;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
}

.logo {
  max-height: 70px;
  flex-shrink: 0;
}

header h1 {
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  margin: 0;
  flex-grow: 1;
  min-width: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  display: none;
}

.main-nav {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  margin: 1rem auto;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  display: flex;
  justify-content: center;
  z-index: 2;
  width: 80%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 2%;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: var(--rot);
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  background-color: var(--rot);
  color: white;
  transform: scale(1.05);
}

.hero {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--rot);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 20px;
  margin: 1rem;
  position: relative;
  z-index: 1;
}

.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.content a {
  text-decoration: none;
  color: inherit;
}

.content div {
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--rot);
  padding: 1.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.content div:hover {
  transform: translateY(-5px);
}

.content img {
  max-width: 100%;
  border-radius: 15px;
  margin-top: 1rem;
}

footer {
  background-color: rgba(208, 0, 0, 0.9);
  color: white;
  text-align: center;
  padding: 1rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 1;
}

footer p {
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    flex-direction: column;
    border-radius: 20px;
    max-width: 90%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    width: 100%;
  }

  header h1 {
    font-size: clamp(1rem, 5vw, 1.6rem);
  }

  .hero {
    padding: 2rem 1rem;
  }

  .content {
    padding: 1rem;
  }

  .content div {
    padding: 1rem;
  }

  footer {
    font-size: 0.9em;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

/* Entfernt die Bullet-Points */
ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: center;
}

/* Zentrierung der Modal-Inhalte */
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh; /* <-- Beschränkt die Höhe */
  overflow-y: auto;  /* <-- Ermöglicht Scrollen bei viel Inhalt */
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
  text-align: center;
}


.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}



.modal-content h2 {
  margin-top: 0;
}

.close, .modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--rot);
  cursor: pointer;
}

.modal-btn {
  background: var(--rot);
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin: 0.3rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-btn:hover {
  background: #a00000;
}

