/*
 * WeberHaus Seiffen - Stylesheet
 * Version: Final (mit Sticky-Navigation)
 */
/* ----------------------------------------------------- */
/*  SANDRA, NUR FUER DICH MACHE ICH DIESE UEBERSCHRIFTEN */
/* ----------------------------------------------------- */

/* ---------------------------------- */
/* 1. GRUNDLAYOUT & TYPOGRAPHIE        */
/* ---------------------------------- */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #fff8dc; /* Hintergrundfarbe: Maßeinheit */
  color: #333;
  line-height: 1.6;
}

h1 {
  text-align: center;
  margin: 2rem 0 1rem;
  font-size: 2rem;
}

h2 {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 1.8rem;
  color: #555;
}

/* Listen in Sektionen */
section ul {
  text-align: center;
  padding-left: 0;
  list-style-position: inside;
  list-style-type: none; /* Entfernt die Standardpunkte */
  margin: 1rem 0;
}

section ul li {
    padding: 0.2rem 0;
}

/* Textblöcke (Details/Geschichte) */
.textblock {
  max-width: 800px;
  margin: 1.5rem auto 1rem;
  padding: 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
}
.textblock h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  text-align: center;
  color: #444;
}

.zentriert-text {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

/* ---------------------------------- */
/* 2. HEADER & TICKER                 */
/* ---------------------------------- */
header {
  background-color: #fdf3cc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-top: 3rem; /* Platz für den Ticker */
}

.ticker {
  background-color: #ffefb0;
  color: #a00;
  font-weight: bold;
  padding: 0.5rem;
  position: absolute;
  width: 100%;
  top: 0;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  z-index: 100; /* Muss höher sein als die sticky Navigation */
}

.ticker span {
  display: inline-block;
  animation: ticker 15s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.logo-zentriert {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem 1rem; /* Padding reduziert */
}

.logo-zentriert img {
  max-height: 300px;
  width: auto;
}

/* ---------------------------------- */
/* 3. HAUPT-NAVIGATION (WICHTIG!)     */
/* ---------------------------------- */
.haupt-navigation {
  padding: 1rem 0;
  background-color: #fdf3cc;
  border-bottom: 2px solid #ffefb0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  
  /* NEU: Flexbox für korrekte Ausrichtung */
  display: flex;
  justify-content: center; /* Zentriert die Navigations-Elemente */
  align-items: center; /* Vertikale Ausrichtung */
  gap: 1.5rem; /* Abstand zwischen den Elementen */
  
  /* STICKY-EFFEKT: Wichtig, damit die Leiste stehen bleibt! */
  position: sticky; 
  top: 0;           
  z-index: 90;
}

.haupt-navigation a {
  /* Die margins werden hier auf 0 gesetzt, da wir jetzt 'gap' nutzen */
  margin: 0;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0;
  display: inline-block;
  transition: color 0.3s, border-bottom 0.3s;
  font-size: 0.95rem;
}

.haupt-navigation a:hover {
  color: #a00;
  border-bottom: 2px solid #a00;
}

/* Spezielles Styling für den Buchungs-Button */
.haupt-navigation .cta-link {
  background-color: #ffc107;
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  font-weight: bold;
  color: #000;
  border-bottom: none !important;
  margin-left: 0; /* Unnötiger margin-left entfernt */
}
.haupt-navigation .cta-link:hover {
    background-color: #ffdb58;
    color: #000;
}
/* ---------------------------------- */
/* 4. GALERIE & INHALT                */
/* ---------------------------------- */
.galerie-block {
  max-width: 800px;
  margin: 2rem auto;
  border-top: 2px solid #ddd;
  padding-top: 1rem;
}

.bilder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.bilder img {
  width: 100px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.bilder img:hover {
  border-color: #aaa;
}

.bilder img.active {
  border-color: #666;
}

/* Großbildbereich */
.bild-gross {
  text-align: center;
  margin-top: 1rem;
  display: none;
}

.bild-gross.active {
  display: block;
}

.bild-gross img {
  width: 100%;
  max-width: 600px;
  height: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

/* Textanzeige unter Großbild (wird jetzt nicht mehr befüllt, dient aber als Platzhalter) */
.bild-text {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #444;
}

/* Standortkarte */
iframe {
  width: 100%;
  height: 400px;
  border: 0;
  margin: 2rem 0;
}

/* Umgebungsblock (mit Flexbox-Layout) */
.umgebung-block {
    padding: 3rem 1rem;
    background-color: #f7f3e8; /* Leichter Kontrast-Hintergrund */
}


/* ---------------------------------- */
/* 5. BUTTONS & FOOTER                */
/* ---------------------------------- */

/* Buchungsbutton */
.button-buchung {
  display: block;
  max-width: 350px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #ffc107;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s;
}
.button-buchung:hover {
    background-color: #ffdb58;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.85rem;
  padding: 2rem 1rem;
  background-color: #f5e9bc;
}
footer a {
    color: #444;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Zurück nach oben */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #ffc107;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}
#backToTop:hover {
  background-color: #ffdb58;
}

/* Copyright-Wasserzeichen (aus der alten Datei) */
body::after {
  content: "© 2025 MannyT";
  position: fixed;
  bottom: 8px;
  right: 8px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.15); /* Auf dunkle, dezentere Farbe geändert */
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 9999;
}


/* ------------------------------------------------------- */
/* 6. RESPONSIVE DESIGN  MAN MUSS AUCH MAL ETWAS WAGEN :-) */
/* ------------------------------------------------------- */

/* Tablet-Ansicht */
@media (max-width: 768px) {
  
  /* Navigation bricht um und wird kompakter */
  .haupt-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.2rem;
    padding: 0.8rem 0.5rem;
  }
  .haupt-navigation a {
    font-size: 0.8rem;
    margin: 0 0.3rem;
  }
  .haupt-navigation .cta-link {
    margin-left: 0.5rem;
  }

  /* Allgemeine Anpassungen */
  .bilder img {
    width: 80px;
  }
  .bild-gross img {
    max-width: 90vw;
  }
  h2 {
    font-size: 1.4rem;
  }
}

/* Smartphone-Ansicht */
@media (max-width: 480px) {
  .logo-zentriert img {
    max-height: 190px;
  }
  .ticker {
    font-size: 0.9rem;
  }
  .bilder img {
    width: 70px;
  }
  .button-buchung {
    padding: 0.8rem;
    font-size: 1rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  body::after {
    font-size: 12px;               
    color: rgba(0, 0, 0, 0.25);
  }
}
/* ---------------------------------- */
/* 7. ZURÜCK-BUTTON IMPRESSUM/DATENSCHUTZ */
/* ---------------------------------- */

.back-to-home-button {
  /* Hommage an Wendt & Kühn Grün weil Ihr doch so Verrückte Sammler seid :-)*/
  background-color: #559955; 
  color: white !important;
  text-decoration: none !important;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 20px; 
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-to-home-button:hover {
  /* Etwas dunklere Version beim Hover-Effekt */
  background-color: #447a44; 
}
