/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f2eb;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background: #3a2a1c;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

.logo {
  font-size: 1.5rem;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

header h4 {
  font-family: 'Satisfy', cursive;
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 1px;
  margin-left: 1rem;
}
header .logo h4 {
  font-family: 'Satisfy', cursive;
  font-size: 1.8rem;
  margin-left: 0.5rem;
}

nav a {
  color: white;
  margin: 0 0.7rem;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* Main Content */
main {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem; /* etwas weniger Rand */
}

.section {
  margin-bottom: 6rem;  /* mehr Abstand */
  padding-bottom: 4rem;
  border-bottom: 1px solid #ccc;  /* dezente Linie */
}


.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #3a2a1c;
}

.section h3 {
  font-size: 1.2rem;
  color: #3a2a1c;
  margin-bottom: 0.5rem;
}

/* Info Blocks (abwechselnd Bild-Text Layout) */
.info-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  max-width: 1200px; /* zentriert und begrenzt */
  padding: 0 1rem; /* etwas Innenabstand links/rechts */
}

/* Text-Container */
.info-block .text {
  flex: 1;
  min-width: 300px;
  padding: 0; /* Kein zusätzlicher Abstand */
}

/* Bild-Container */
.info-block .image {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}

.info-block .image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.info-block .text h3 {
  margin-bottom: 0.5rem;
  color: #3a2a1c;
  font-size: 1.3rem;
}

/* Abwechselnd Bild links, Text rechts */
.info-block.reverse {
  flex-direction: row-reverse;
}


.hide {
  display: none !important;
}



/* Termine komplett verstecken kommentar Funktion entfernen zum aktiviern
#termine {
  display: none;
}
*/

/* === Aktuelle Termine === */
.termine-section {
  padding: 4rem 2rem;
  text-align: center;
}

.termine-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.termine-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.termin-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 300px; /* passt sich an, mindestens 300px */
  max-width: 500px; /* Texte laufen nicht zu breit */
  background: none;
}

.termin-box img {
  width: 100%;           /* nimmt immer die verfügbare Breite */
  max-width: 350px;      /* Begrenzung, damit sie nicht zu groß werden */
  height: 550px;          /* Höhe passt sich proportional an */
  border-radius: 8px;
  display: block;
  margin-bottom: 1rem;
  
}

.termin-details {
  text-align: left;
  font-size: 1.1rem;
  color: #333;
  max-width: 400px;
}

.termin-details p {
  margin: 0.3rem 0;
}

/* Responsive: untereinander */
@media (max-width: 768px) {
  .termine-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .termin-box {
    max-width: 90%;
  }

  .termin-details {
    text-align: center;
  }
}

.preisliste {
  max-width: 1000px;   /* gleiche optische Breite wie Textbereich */
  margin: 2rem auto 0 auto;
}

.preisliste img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Camping */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.grid img {
  max-width: 48%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.grid > div {
  flex: 1 1 48%;
}

.camping-bilder {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.camping-bilder img {
  flex: 1 1 48%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Catering */
.catering-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
}

/* Flyer-Bild (hochkant) */
.flyer img {
  width: 100%;
  height: auto;
  max-height: 600px; /* <- kleiner als vorher */
  object-fit: contain;
  border-radius: 12px;
  align-self: center;
}

.flyer, .catering-text {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* Text rechts daneben, zentriert */
.catering-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* Kontaktformular */
.kontakt-section form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt-section input,
.kontakt-section textarea,
.kontakt-section select {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.kontakt-section button {
  padding: 0.75rem;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.kontakt-section button:hover {
  background: #45a049;
}

/* Footer */
footer {
  background: #2d2d2d;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

.footer-links {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links div {
  margin: 1rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsives Verhalten */
@media (max-width: 768px) {
  header, nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-block {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
  }

  .info-block .image img {
    height: 250px;
  }

  .catering-container {
    flex-direction: column !important;
  }


  .info-block .text,
  .info-block .image {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .grid > div {
    flex: 1 1 100%;
     max-width: 100%;
  }

  .grid img {
    max-width: 100%;
  }

  .catering-container {
    flex-direction: column;
    align-items: center;
  }

  .flyer img {
    width: 80%;
    height: auto;
  }

  .catering-text {
    max-width: 90%;
    padding: 1rem 0;
  }

  .camping-bilder img {
    flex: 1 1 100%;
    height: 250px;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
  }
}

 /* === Styling für danke.html === */
/* HTML und Body auf volle Höhe */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Flexbox-Layout für Seite */
body {
  display: flex;
  flex-direction: column;
}

/* Main-Container mit relativem Positionieren */
main.danke-inhalt {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: visible;  /* <- wichtig: NICHT abschneiden */
}

/* Hintergrundgrafik */
main.danke-inhalt::before {
  content: "";
  position: absolute;
  top: -15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh; /* Testweise volle Höhe des Viewports */
  background: url('images/vektor_vom_hof.svg') no-repeat center center;
  background-size: contain;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

/* Zentrale Box mit Text */
.danke-box {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 2rem 3rem;
  border-radius: 10px;
  max-width: 650px;
  max-height: 600px;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Typografie */
.danke-box h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.danke-box p {
  margin-bottom: 1.5rem;
  color: #333;
}

.danke-box a {
  color: #a3784f;
  text-decoration: underline;
}

/* Footer fixieren am Ende */
footer {
  flex-shrink: 0;
  position: relative;
  z-index: 1; /* über der Grafik */
}

/* Responsive Anpassung */
@media (max-width: 768px) {
  .danke-box {
    padding: 1.5rem 1rem;
    max-width: 90%;
  }

  .danke-box h1 {
    font-size: 1.5rem;
  }
  main.danke-inhalt::before {
    transform: translateX(-50%) scale(1.1);
    top: 8vh;
  }
}