/* Allgemeine Stile */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Header */
header {
  background: #001500;
  color: #fff;
  padding: 1rem 0;
}

header nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  margin: 0;
  padding: 0;
}

header nav ul li {
  margin: 0 1rem;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: url('images/header.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #00B000;
}

.hero-text {
  text-align: center;
  /*background: rgba(0, 0, 0, 0.6);*/
  padding: 0 1.5rem;
  /*2rem 3rem;*/
  border-radius: 15px;
  backdrop-filter: blur(5px);
  /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);*/
  margin-top: 20%;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
  color: #00ff00;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-text h2 {
  font-size: 1.8rem;
  margin-top: 0.5rem;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}


.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite ease-in-out;
  opacity: 0.8;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.8;
  }

  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.3;
  }
}




/* Header 2 */
.header {
  background: url('images/header-m-2.jpg') no-repeat bottom center/cover;
  min-height: 115px;
  height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-text {
  font-size: 2rem;
  text-align: center;
  padding-bottom: 5px;
  line-height: 1;
}

/* News Slider */
.news-slider {
  padding: 2rem;
  background: #f4f4f4;
}

.news-slider h2 {
  text-align: center;
}

.slider {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
}

.card img {
  max-width: 100%;
  border-radius: 5px;
}

/* Navigation */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  height: 30px;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
}

.nav-links a:hover {
  color: #f69c2e;
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.logo a img {
  height: 120px;
  top: 0px;
  position: absolute;
}

.content-section {
  padding: 2rem 1rem;
}

.content-section:nth-child(even) {
  background-color: #f9f9f9;
}

.content-section:nth-child(odd) {
  background-color: #fff;
}

.content-class {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content-image {
  flex: 1;
  min-width: 250px;
}

.content-image img,
.content-image iframe {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-image iframe {
  height: 600px;
}

.content-text {
  flex: 1;
  min-width: 250px;
}

.content-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.content-text p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.content-text .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #001500;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.content-text .btn:hover {
  background-color: #013f00;
}

.topBackBtn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #013f00;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  margin: 0 10px;
  transition: background-color 0.3s ease;
}

.topBackBtn:hover {
  background-color: #024f05;
}


/* Last Content Section */
.content-section:last-of-type {
  background-image: url('images/baumreihe_endless_ohne_dark.png'), url('images/baumreihe_endless_mit_dark.png');
  background-repeat: repeat-x, no-repeat;
  background-position: right bottom, right bottom;
  background-size: auto 36px, auto 50px;
  padding-bottom: 60px;
}

/* Footer */
footer {
  background-color: #001500;
  padding: 10px;
  text-align: center;
  color: white;
}

/* Video */
video {
  max-height: 95vh;
  width: auto;
  max-width: 95vw;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

/* Social Media */
header .socialmedia {
  position: fixed;
  z-index: 9999;
  right: 0;
  padding: 0 1rem;
  background-color: #001500;
  top: 0;
  margin-top: 7rem;
  border-radius: 1rem 0 0 1rem;
  padding-top: 17px;
}

header .socialmedia li {
  padding-bottom: 1rem;
  display: block;
}

header .socialmedia img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
}

/* Image Credit */
.image-credit {
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  margin-top: 5px;
}

/* Content Class (Image/ Text Flex) */
.content-class {
  display: flex;
  align-items: center;
  gap: 20px;
}

.content-image {
  flex: 1;
}

.content-text {
  flex: 1;
}

/* Alternierende Bild/Text-Position */
.content-section:nth-of-type(odd) .content-class {
  flex-direction: row-reverse;
}

.content-section:nth-of-type(even) .content-class {
  flex-direction: row;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {

  .logo a img {
    height: 100px;
  }

  li {
    text-align: left;
  }

  .content-class {
    flex-direction: column;
    text-align: center;
  }

  .content-text {
    margin-top: 1rem;
    width: 100%;
  }

  .content-text .btn {
    width: 80%;
  }

  .topBackBtn {
    width: 80%;
    text-align: center;
    margin: 0;
  }

  header:has(.topBackBtn) {
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .burger-menu {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #001500;
    height: 50px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #001500;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 5px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .nav-links a {
    text-align: center;
  }

  .header {
    height: 160px;
  }


  .hero {
    height: calc(100vh - 300px);
    /* Bildhöhe verringern */
    background-position: center;
    margin-bottom: 300px;
  }

  .hero-text {
    position: static;
    color: black;
    /* Falls der Text sonst schlecht lesbar ist */
    font-size: 1.5rem;
    margin-top: 100vh;
    text-align: center;
    padding: 10px;
    height: 280px;
    backdrop-filter: blur(0px);
    background: #001500;
    border-radius: 0;
  }

  .hero-text h1 {
    line-height: 1.2;
    ;
  }

  /* Social Media */
  header .socialmedia {
    position: fixed;
    z-index: 9999;
    right: 0;
    padding: 0 1rem;
    background-color: #001500;
    top: 0;
    margin-top: 0;
    margin-right: 7rem;
    border-radius: 1rem;
    padding-top: 17px;
  }

  header .socialmedia li {
    padding-bottom: 1rem;
    display: inline;
  }

  header .socialmedia img {
    width: 2rem;
    height: 2rem;
    margin: 0 0.5rem;
    object-fit: cover;
  }

  /* News Slider */
  .news-slider {
    padding: 10px;
  }

  .slider {
    padding: 0;
  }

}



.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.news-date {
  font-size: 0.85rem;
  opacity: 0.65;
  margin: 0.25rem 0;
}


.card-body {
  padding: 1rem;
}

.news-teaser {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0.4rem 0 0;
  /* Teaser nach 3 Zeilen abschneiden */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-body p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1rem;
  width: 380px;
  max-width: 70vw;
  flex-shrink: 0;
}