@font-face {
  font-family: 'Jugendstil';
  src: url('../fonts/Jugendstil-Pro.ttf') format('truetype');
}
.hero h1 {
  font-size: 3.5rem; /* oder z. B. 56px */
  font-family: 'Jugendstil', serif;
}

.hero p {
  font-size: 1.75rem; /* z. B. 28px */
  font-family: 'Jugendstil', serif;
}



/* Grundlayout */
body {
  font-family: 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  background: #568238;
  position: relative; /* wichtig, damit z-index greift */
  z-index: 10;
}

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

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

header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}


/* Hero Section */

.hero {
  position: relative;
  background-image: url('../img/WaldhausBild.jpg'); /* ggf. Pfad anpassen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 14rem 0; /* Zurück auf ursprüngliches schönes Verhältnis */
  text-align: center;
  color: white;
  overflow: visible;
  z-index: 10;
}

/* Overlay for hover effect */
.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
  transition: background 0.5s ease;
}

.hero:hover .overlay {
  background: rgba(0,0,0,0.2);
}

/* Ranke-Logo über dem Bild */
.hero .ranken-logo {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  z-index: 1001;
  display: flex;
  justify-content: center;
  pointer-events: none; /* Verhindert Klick-Blockierung */
}

.hero .ranken-logo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero-Text */
.hero .container {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}


/* Allgemeine Sektionen */
section.weine, section.kontakt {
  padding: 3rem 0;
}

/* Kontaktformular */
.kontakt-formular {
  display: flex;
  flex-direction: column;
}

.kontakt-formular label {
  margin-top: 1rem;
}

.kontakt-formular input,
.kontakt-formular textarea {
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.kontakt-formular button {
  margin-top: 1.5rem;
  padding: 0.75rem;
  border: none;
  background: #2a2a2a;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
}


/* Footer */
footer {
  background: #2a2a2a;
  color: white;
  padding: 1rem 2rem;
  margin-top: 2rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-container a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-container a:hover {
  text-decoration: none;
  opacity: 0.8;
}

.footer-container p {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  flex: 1;
}


/* Info-Buttons */
.info-buttons {
  background: #ffffff;
  padding: 0.1rem 0;
  text-align: center;
}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.button-grid .btn {
  background-color: #568238;
  color: white;
  padding: 1rem 2rem;
  border: none;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s ease;
  min-width: 180px;
  text-align: center;
}

.button-grid .btn:hover {
  background-color: #444;
}

/* Responsive Optimierung */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .button-grid {
    flex-direction: column;
    align-items: center;
  }

  .button-grid .btn {
    width: 80%;
    max-width: 300px;
  }
}

.accordion-section {
  margin-top: 3rem;
}

.accordion-item {
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: white;
  border: none;
  outline: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.2rem;
  position: relative;
  text-align: left;
}

.accordion-toggle::before {
  content: "+";
  display: inline-block;
  font-size: 1.8rem;
  font-weight: bold;
  margin-right: 1rem; /* Abstand zwischen + und Text */
  width: 1.5rem;
  text-align: center;
}

.accordion-toggle.active::before {
  content: "−";
}

.accordion-content {
  display: none;
  padding: 1rem 1.5rem;
  background-color: #f9f9f9;
}

.accordion-content.open {
  display: block;
}


/* Wein Block */
.wein-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  align-items: flex-start;
}

.wein-block img {
  width: 600px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

.wein-text {
  flex: 1;
  padding-left: 1rem;
}

.wein-text h2 {
  margin-top: 0;
  color: #7F0B0B;
  text-align: center;
}


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

  .wein-text {
    padding-left: 0;
  }

  .wein-block img {
    width: 100%;
    max-width: 400px;
  }
}

.wein-block hr {
  border: none;
  border-top: 2px solid #000000; /* customize color if needed */
  margin: 2rem 0; /* auto for left/right = centering */
  width: 70%;
}

/* Responsive Optimierung */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .button-grid {
    flex-direction: column;
    align-items: center;
  }

  .button-grid .btn {
    width: 80%;
    max-width: 300px;
  }

  /* Das hier ist der Teil für die Ranke */
  .hero .ranken-logo {
    top: -40px; /* statt -80px bei Desktop */
  }
}

