/*
Copyright Elias Bentz - elias@bentz.dev
Kita Marienkäfer 2025
*/

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  height: 80vh;
  z-index: 2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
  padding: 20px;
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
  .hero h2 {
    font-size: 2.2em;
  }
  .hero p {
    font-size: 1em;
    max-width: 90%;
  }
}

.hero h2 {
  font-size: 3em;
  margin-bottom: 10px;
  z-index: 1;
}

.hero p {
  font-size: 1.2em;
  max-width: 600px;
  z-index: 1;
}

/* --- Hauptinhaltsbereich & Karten --- */
.content-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 50px;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card h3 {
  color: var(--primary-green);
  margin-bottom: 10px;
}

/* --- Info-Box --- */
.special-info {
  background-color: var(--light-bg);
  border-left: 5px solid var(--primary-green);
  padding: 30px;
  border-radius: 8px;
  margin: 40px auto;
  max-width: 900px;
}

.special-info h3 {
  color: var(--primary-green);
  margin-bottom: 15px;
}

/* --- Modal-Styling --- */

.modal-backdrop {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 700px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content h3 {
  color: var(--primary-green);
  margin-top: 0;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 20px;
  margin-left: 10px;
}

.close-button:hover,
.close-button:focus {
  color: #000;
  text-decoration: none;
}

.read-more-button {
  font-family: "Montserrat", sans-serif;
  background: none;
  border: none;
  color: var(--primary-green);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-left: 5px;
  display: block;
  margin-top: 10px;
}

/* --- Responsive Design für handys --- */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2em;
  }
}

/* --- Slideshow-Komponente --- */
.gallery-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide {
  flex-shrink: 0;
  box-sizing: border-box;
  height: 100%;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.5em;
  line-height: 1;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.dot {
  background-color: rgba(255, 255, 255, 0.5);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.dot.active {
  background-color: var(--primary-green);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .slider-btn {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    background: rgba(0, 0, 0, 0.5);
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .slider-dots {
    bottom: 10px;
  }
}
