/* ---------------------------------------------------
   DESIGN-SYSTEM (Farben, Abstände, Typografie)
--------------------------------------------------- */

:root {
  --color-bg: #f4f1ea;
  --color-text: #2e3a2c;
  --color-text-light: #555;

  --color-primary: #2e3a2c;
  --color-primary-light: #445a40;
  --color-accent: #d9c7a3;

  --color-border: #b8b3a5;
  --color-border-focus: #6b8e23;

  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 6px 18px rgba(0, 0, 0, 0.12);

  --radius-s: 5px;
  --radius-m: 8px;
  --radius-l: 10px;

  --space-xs: 6px;
  --space-s: 12px;
  --space-m: 20px;
  --space-l: 40px;
  --space-xl: 80px;

  --font-base: "Georgia", serif;
  --font-size-base: 1rem;
  --font-size-h1: clamp(2rem, 4vw, 3rem);
  --font-size-h2: clamp(1.6rem, 3vw, 2.2rem);
  --font-size-h3: clamp(1.3rem, 2.5vw, 1.6rem);
}

/* ---------------------------------------------------
   RESET
--------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

p {
  margin-bottom: var(--space-m);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------------------------------------------------
   GRUNDLAYOUT
--------------------------------------------------- */

.blog-preview-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .blog-preview-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------------------------
   HEADER & NAVIGATION
--------------------------------------------------- */

.overlay-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-m) var(--space-l);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    background 0.3s ease,
    padding 0.3s ease;
  background: rgba(0, 0, 0, 0);
}

body.scrolled .overlay-header {
  background: rgba(0, 0, 0, 0.65);
  padding: var(--space-s) var(--space-l);
}

.logo {
  height: 120px;
  transition: height 0.3s ease;
}

body.scrolled .logo {
  height: 50px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-l);
}

.main-nav a {
  color: var(--color-bg);
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.7;
}

/* Burger Menü */

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  width: 28px;
  height: 3px;
  background: var(--color-bg);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    padding-top: 120px;
    transition: right 0.3s ease;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: var(--space-m);
    text-align: center;
  }

  .main-nav a {
    font-size: var(--font-size-h3);
  }
}

/* ---------------------------------------------------
   ABSCHNITTSBREITE & TRENNLINIEN
--------------------------------------------------- */

section:not(.hero-slideshow) {
  max-width: 1100px;
  margin: 0 auto var(--space-xl) auto;
  padding: 0 var(--space-m) var(--space-xl) var(--space-m);
  border-bottom: 1px solid rgba(46, 58, 44, 0.15);
}

section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */

.site-footer {
  background: var(--color-primary);
  color: var(--color-bg);
  text-align: center;
  padding: var(--space-l) var(--space-m);
  margin-top: var(--space-xl);
}

.site-footer p {
  margin-bottom: var(--space-s);
  font-size: var(--font-size-base);
}

.site-footer a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

.site-footer a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .site-footer {
    padding: var(--space-m);
  }
}

/* ---------------------------------------------------
   HERO SLIDESHOW
--------------------------------------------------- */

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}

/* Overlay Text */
.hero-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-bg);
  z-index: 10;
}

.hero-overlay-text h1 {
  font-size: var(--font-size-h1);
}

.hero-overlay-text p {
  font-size: var(--font-size-h3);
}

/* Dots */
/* Dots */
.slideshow-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 50; /* WICHTIG */
}

.slideshow-dots .dot {
  height: 12px;
  width: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  margin: 0 4px;
  cursor: pointer;
}

.slideshow-dots .dot.active {
  background-color: rgba(255, 255, 255, 1);
}

/* ---------------------------------------------------
   FORMULARE
--------------------------------------------------- */

.kontakt-form {
  max-width: 700px;
  margin: var(--space-l) auto 0 auto;
  text-align: left;
}

.form-row {
  display: flex;
  gap: var(--space-m);
  flex-wrap: wrap;
}

.form-group {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-m);
}

.form-group label {
  margin-bottom: var(--space-xs);
  font-weight: bold;
  color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-s);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  background: #fff;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 4px rgba(107, 142, 35, 0.4);
  outline: none;
}

.form-group-checkbox {
  flex: 1 1 100%;
}

.form-group-checkbox label {
  font-weight: normal;
  display: flex;
  align-items: flex-start;
  gap: var(--space-s);
  line-height: 1.4;
}

.form-group-checkbox a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Formular-Button */
.btn-submit {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-s) var(--space-m);
  border: none;
  border-radius: var(--radius-s);
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: bold;
  transition:
    background 0.3s ease,
    transform 0.15s ease;
}

.btn-submit:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.form-feedback {
  margin-top: var(--space-s);
  font-weight: bold;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group {
    margin-bottom: var(--space-s);
  }
}

/* ---------------------------------------------------
   ÜBER UNS – GALERIE
--------------------------------------------------- */

.ueberuns-gallery {
  display: flex;
  justify-content: space-between;
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.ueberuns-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  flex: 1;
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
}

.ueberuns-img.fade-out {
  opacity: 0;
}

.ueberuns-img.fade-in {
  opacity: 1;
}

@media (max-width: 768px) {
  .ueberuns-gallery {
    flex-direction: column;
  }

  .ueberuns-img {
    height: 220px;
  }
}

/* ---------------------------------------------------
   NACH OBEN LINK
--------------------------------------------------- */

.nach-oben {
  text-align: right;
  margin-top: var(--space-m);
}

.nach-oben a {
  font-size: var(--font-size-base);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nach-oben a:hover {
  opacity: 1;
}
/* ---------------------------------------------------
   Aktuelles – Grundlayout
--------------------------------------------------- */

.aktuelles-section {
  max-width: 900px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-m);
  text-align: center;
}

.aktuelles-section h2 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--space-m);
  color: var(--color-primary);
}

.aktuelles-section p {
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-m);
}

/* ---------------------------------------------------
   News-Grid (Übersicht)
--------------------------------------------------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-item {
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
  padding-bottom: 1rem;
}

.news-item h3 {
  margin-top: var(--space-s);
  font-size: 1.4rem; /*var(--font-size-h4);*/
  color: var(--color-primary);
}

.news-item p {
  font-size: var(--font-size-base);
  color: var(--color-text);
}

/* Vorschau-Bilder */
.news-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-s);
  display: block;
  background-color: var(--color-bg-light);
}

/* ---------------------------------------------------
   Overlay (Beitragsansicht)
--------------------------------------------------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-xl) var(--space-m);
  overflow-y: auto;
  z-index: 9999;
}

.overlay.hidden {
  display: none;
}

.overlay-content {
  background: #fff;
  width: 66vw;
  max-width: none;
  padding: 2rem;
  border-radius: 10px;
  position: relative;
}

.overlay-close {
  position: absolute;
  top: var(--space-s);
  right: var(--space-s);
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-primary);
}

#overlay-inner h2 {
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

#overlay-inner .date {
  font-size: var(--font-size-small);
  color: var(--color-gray);
  margin-bottom: var(--space-m);
}

/* Overlay-Bilder */
#overlay-inner img {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: var(--space-l) auto;
  display: block;
  border-radius: var(--radius-s);
  object-fit: contain;
}

.news-item:hover {
  transform: translateY(-4px);
}

.overlay-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.overlay-images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

/* ---------------------------------------------------
   Mobile Optimierung
--------------------------------------------------- */

@media (max-width: 768px) {
  .news-item img {
    height: 160px;
  }

  #overlay-inner img {
    margin: var(--space-m) auto;
    max-width: 100%;
  }

  .overlay-content {
    padding: var(--space-m);
  }
}

@media (max-width: 480px) {
  .news-item img {
    height: 130px;
  }

  .overlay-content {
    padding: var(--space-s);
  }
}

/* ---------------------------------------------------
   Utility-Klassen (optional, wiederverwendbar)
--------------------------------------------------- */

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-contain {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.img-rounded {
  border-radius: var(--radius-s);
}

.img-shadow {
  box-shadow: var(--shadow-m);
}

/* ---------------------------------------------------
   ÜBER UNS
--------------------------------------------------- */

.ueberuns-section {
  max-width: 900px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-m);
  text-align: center;
}

.ueberuns-section h2 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--space-m);
  color: var(--color-primary);
}

.ueberuns-section p {
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-m);
}

/* ---------------------------------------------------
   BERATUNG
--------------------------------------------------- */

.beratung-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-l);
  max-width: 1100px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-m);
  flex-wrap: wrap;
  text-align: left;
}

.beratung-bild {
  flex: 1 1 350px;
  max-width: 350px;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}

.beratung-textblock {
  flex: 1 1 500px;
}

.beratung-textblock h2 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--space-m);
  color: var(--color-primary);
}

.beratung-textblock p {
  margin-bottom: var(--space-s);
  line-height: 1.75;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .beratung-section {
    flex-direction: column;
    text-align: center;
  }

  .beratung-bild {
    margin: 0 auto var(--space-m) auto;
  }

  .beratung-textblock {
    text-align: center;
  }
}

/* ---------------------------------------------------
   ZIELGRUPPE
--------------------------------------------------- */

.zielgruppe-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-l);
  max-width: 1100px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-m);
  flex-wrap: wrap;
}

.zielgruppe-text {
  flex: 1 1 450px;
}

.zielgruppe-text h2 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--space-m);
  color: var(--color-primary);
}

.zielgruppe-text p,
.zielgruppe-text ul {
  margin-bottom: var(--space-m);
  line-height: 1.75;
}

.zielgruppe-text ul {
  margin-left: var(--space-m);
}

.zielgruppe-bilder {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}

.ziel-img {
  width: 100%;
  max-width: 350px;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .zielgruppe-section {
    flex-direction: column;
    text-align: center;
  }

  .zielgruppe-text {
    text-align: center;
  }

  .zielgruppe-bilder {
    margin-top: var(--space-m);
  }

  .ziel-img {
    max-width: 300px;
  }
}

/* ---------------------------------------------------
   ANFAHRT
--------------------------------------------------- */

.anfahrt-section {
  max-width: 900px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-m);
  text-align: center;
}

.anfahrt-section h2 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--space-m);
  color: var(--color-primary);
}

.anfahrt-section p {
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-m);
}

.anfahrt-section ul {
  margin: var(--space-m) 0;
  padding-left: var(--space-m);
  text-align: left;
  line-height: 1.75;
}

.anfahrt-section li {
  margin-bottom: var(--space-s);
}

.anfahrt-section h3 {
  font-size: var(--font-size-h3);
  margin-top: var(--space-l);
  margin-bottom: var(--space-s);
  color: var(--color-primary);
}

.map-container {
  margin-top: var(--space-m);
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

@media (max-width: 768px) {
  .anfahrt-section ul {
    padding-left: var(--space-s);
  }
}

/* ---------------------------------------------------
   KONTAKT
--------------------------------------------------- */

.kontakt-section {
  max-width: 900px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-m);
  text-align: center;
}

.kontakt-section h2 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--space-m);
  color: var(--color-primary);
}

.kontakt-section p {
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-m);
}
