* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  color: #fff;
  background: #000;
  overflow-x: hidden;
  padding-bottom: 4rem;
}

#slider-background,
#slider-background::after {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 1.1s cubic-bezier(.4,.21,.29,.96);
}
#slider-background::after {
  content: '';
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.38) 0%,
    rgba(0,0,0,0.65) 78%
  );
}
#slider-background {
  /* ...dein bestehendes... */
  filter: brightness(0.9); /* macht alle Bilder 10% dunkler */
}
#slider-background.slider-black {
  opacity: 0 !important; /* unsichtbar = schwarz */
  transition: opacity 1s cubic-bezier(.4,.21,.29,.96);
}

/* Remove all Bulletpoints */
ul, li { list-style: none !important; margin: 0; padding: 0; }

.main-nav {
  width: 100%;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  margin-right: auto;
  z-index: 1001;
}

.nav-menu {
  display: none;
  flex-direction: column;
  width: 100vw;
  background: rgba(12, 43, 52, 0.98);
  position: absolute;
  left: 0; top: 100%;
  z-index: 1000;
  margin: 0; padding: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  transition: max-height 0.4s cubic-bezier(.45,0,.47,1), opacity 0.3s;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
.nav-menu.open {
  display: flex;
  max-height: 500px;
  opacity: 1;
  overflow: visible;
}

.nav-menu > li { width: 100%; position: relative; }

.nav-menu a {
  display: block;
  padding: 1rem 1.2rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.14rem;
  border-bottom: none;
  border-radius: 0;
  background: none;
  transition: background 0.19s;
}
.nav-menu a:hover, .nav-menu .current-menu-item > a {
  background: rgba(255,255,255,0.13);
}

/* Dropdowns Mobile */
.menu-item-has-children .sub-menu {
  display: none;
  background: rgba(12, 43, 52, 0.97);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  margin: 0;
  padding: 0;
  position: static;
}
.menu-item-has-children.open > .sub-menu {
  display: block;
  animation: submenu-fadein 0.3s;
}
@keyframes submenu-fadein { from { opacity:0; } to { opacity:1; } }

.sub-menu li a {
  padding-left: 2.3rem;
  background: none;
  color: #fff;
}
.sub-menu a:hover {
  background: rgba(255,255,255,0.10);
}

footer {
  background: rgba(0,0,0,0.87);
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  text-align: center;
  padding: 0.65rem 0.5rem 0.7rem 0.5rem;
  font-size: 1rem;
  z-index: 1050;
}
footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 0.8rem;
  display: inline-block;
}

/* Begrüßung, News etc. */
.welcome-center {
  text-align: center;
  margin-top: 2.2rem;
  margin-bottom: 1.5rem;
}
.welcome-center h1 { font-size: 2rem; margin-bottom: 1.2rem; }
.welcome-center p { font-size: 1.1rem; color: #eee; }

/* News-Boxen (Mobile First) */
.news-list {
  list-style: none;
  padding: 0;
  max-width: 96vw;
  margin: 1.3rem auto 1.3rem auto;
}
.news-list-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgb(12 43 52 / 88%);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  padding: 1.2rem 1.0rem 1.3rem 1.0rem;
  margin-bottom: 1.3rem;
}
.news-list-item img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 0.7rem;
  display: block;
}
.news-list-item h2, .news-list-item small, .news-list-item p {
  color: #fff;
}
.news-list-item h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: bold;
}
.news-list-item small {
  color: #ddd;
  font-size: 0.98rem;
}
.news-list-item a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.19s;
}
.news-list-item a:hover {
  opacity: 0.7;
}

/* Einzelansicht News */
.news-single {
  background: rgb(12 43 52 / 88%);
  border-radius: 16px;
  margin: 1.5rem 0.5rem 3.5rem 0.5rem;
  padding: 1.4rem 1.2rem 1.2rem 1.2rem;
  max-width: 700px;
  color: #fff;
  box-shadow: 0 6px 32px rgba(0,0,0,0.14);
}
.news-single h1 {
  margin-bottom: 1.1rem;
  font-size: 1.6rem;
  color: #fff;
}
.news-single-content {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.65;
}
.news-single small {
  color: #ddd;
  font-size: 0.98rem;
  margin-bottom: 1rem;
  display: block;
}

/* Große Bildschirme */
@media (min-width: 900px) {
  /* Menü/Dropdown UX: Submenu bleibt "am Menü kleben" */
  .nav-toggle { display: none !important; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    background: transparent;
    width: auto;
    position: static;
    box-shadow: none;
    max-height: none;
    opacity: 1;
    overflow: visible;
    border-radius: 0;
  }
  .nav-menu > li { width: auto; margin-right: 0.1rem; }
  .nav-menu a {
    font-size: 1.11rem;
    padding: 1.09rem 1.5rem 1.05rem 1.5rem;
    border-radius: 9px 9px 0 0;
    border-bottom: none;
    background: none;
  }
  .menu-item-has-children {
    position: relative;
  }
  .menu-item-has-children .sub-menu {
    position: absolute;
    top: calc(100% - 5px); /* Kleiner Übergang, damit Submenu nicht verschwindet */
    left: 0;
    min-width: 195px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.13);
    border-radius: 0 0 14px 14px;
    display: none;
    background: rgba(12, 43, 52, 0.97);
    margin-top: 0;
    z-index: 1100;
  }
  .menu-item-has-children:hover > .sub-menu,
  .menu-item-has-children:focus-within > .sub-menu {
    display: block;
    animation: submenu-fadein 0.3s;
  }
  .sub-menu li a {
    padding: 1.0rem 1.2rem 1.0rem 2.1rem;
    font-size: 1.03rem;
    background: none;
    border-radius: 0;
  }

  /* News-Box: Bild links, Text rechts */
  .news-list-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 2.8rem;
  }
  .news-list-item a {
    display: block;
    width: 210px;
    min-width: 210px;
    margin: 0;
  }
  .news-list-item img {
    width: 210px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.09);
    margin-bottom: 0;
    display: block;
  }
  .news-list-item > div {
    flex: 1 1 0%;
    min-width: 0;
  }
  .news-list { max-width: 1050px; }
  .news-single { max-width: 900px; padding: 3rem 3.5rem 3.5rem 3.5rem; font-size: 1.17rem; margin: 3.5rem auto 5rem auto; }
  .welcome-center h1 { font-size: 2.8rem; }
  .welcome-center p { font-size: 1.37rem; }
}

@media (min-width: 1200px) {
  .news-list { max-width: 1150px; }
}

@media (min-width: 1600px) {
  .news-list { max-width: 1300px; }
  .news-single { max-width: 1100px; font-size: 1.22rem; }
  .welcome-center h1 { font-size: 3.1rem; }
  .welcome-center p { font-size: 1.48rem; }
}
.page-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

article.page-content {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  padding: 2.2rem 1.2rem 2.2rem 1.2rem;
  background: rgb(12 43 52 / 88%);
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.16);
}

@media (min-width: 900px) {
  article.page-content {
    max-width: 900px;
    padding: 3.5rem 2.5rem 3.5rem 2.5rem;
  }
}
