/* ========================================================
   WALDTAVERNE FUCHSBAU - Stylesheet
   Farbschema: Tannengrün, Waldbraun und warmes Kerzenlicht-Gold
   ======================================================== */

/* ---- Grundeinstellungen ---- */
:root {
  --color-forest-dark: #23301f;
  --color-forest: #3b4d31;
  --color-wood: #6b4423;
  --color-wood-dark: #4a2f18;
  --color-cream: #f4ecd8;
  --color-cream-light: #faf6ec;
  --color-gold: #c9972c;
  --color-gold-light: #e0b559;
  --color-text: #2c2416;

  --font-heading: 'Fredericka the Great', cursive;
  --font-body: 'Merriweather', serif;
}

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

html {
  scroll-behavior: smooth; /* sorgt für sanftes Scrollen bei Klick auf Nav-Links */
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-cream-light);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-forest-dark);
  font-weight: normal;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.6rem;
  color: var(--color-wood-dark);
}

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

a {
  color: var(--color-wood-dark);
  text-decoration: none;
}

/* Wiederverwendbarer Button-Stil */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-forest-dark);
}

.btn-primary:hover {
  background-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* ========================================================
   HEADER / NAVIGATION
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-forest-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-cream);
  white-space: nowrap; /* verhindert Zeilenumbruch im Logo-Schriftzug */
  flex-shrink: 0; /* Logo soll nicht schrumpfen, wenn die Nav wenig Platz lässt */
}

.logo span {
  color: var(--color-gold-light);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav a {
  display: inline-block;
  color: var(--color-cream);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  white-space: nowrap; /* verhindert Zeilenumbruch bei längeren Nav-Texten */
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-gold-light);
  border-bottom-color: var(--color-gold-light);
}

/* Hamburger-Icon, standardmäßig auf großen Bildschirmen versteckt */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-cream);
  border-radius: 2px;
}

/* ========================================================
   HERO-BEREICH
   ======================================================== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--color-cream);
  /* Dunkler Verlauf über dem Foto, damit der helle Text lesbar bleibt */
  background:
    linear-gradient(rgba(20, 26, 16, 0.72), rgba(20, 26, 16, 0.82)),
    url("images/hero-wirtshaus.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 4rem;
  color: var(--color-cream);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--color-gold-light);
  margin: 0.5rem 0 1.2rem;
  font-weight: 700;
}

.hero-text {
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ========================================================
   INTRO / WILLKOMMENSTEXT
   ======================================================== */
.intro {
  max-width: 750px;
  text-align: center;
  padding: 4rem 1.5rem;
}

.intro h2 {
  margin-bottom: 1.2rem;
}

/* ========================================================
   SPEISEKARTE
   ======================================================== */
.menu-section {
  background-color: var(--color-cream);
  padding: 4rem 0;
  border-top: 4px solid var(--color-gold);
  border-bottom: 4px solid var(--color-gold);
}

.menu-section h2,
.info-card h2,
.contact-info h2,
.contact-form h2 {
  text-align: left;
}

.menu-section .container > h2 {
  text-align: center;
}

.section-intro {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-wood-dark);
  font-style: italic;
}

.menu-category {
  margin-bottom: 2.5rem;
}

.menu-category h3 {
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.menu-list {
  list-style: none;
}

.menu-item {
  padding: 0.9rem 0;
  border-bottom: 1px dashed rgba(107, 68, 35, 0.3);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-weight: 700;
}

.menu-item-name {
  font-size: 1.1rem;
  color: var(--color-wood-dark);
}

.menu-item-price {
  color: var(--color-gold);
  white-space: nowrap;
}

.menu-item-desc {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

/* ========================================================
   BILDERGALERIE (Beispielgerichte)
   ======================================================== */
.dish-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.dish-card {
  background-color: var(--color-cream-light);
  border: 1px solid rgba(107, 68, 35, 0.2);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.dish-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover; /* schneidet Fotos passend auf das Seitenverhältnis zu, statt sie zu verzerren */
  background-color: var(--color-cream);
}

.dish-card figcaption {
  padding: 0.7rem 0.5rem;
  font-weight: 700;
  color: var(--color-wood-dark);
  font-size: 0.95rem;
}

/* ========================================================
   RESERVIERUNG
   ======================================================== */
.reservation-section {
  padding: 4rem 0;
  background-color: var(--color-forest);
}

.reservation-section h2,
.reservation-section .section-intro {
  text-align: center;
  color: var(--color-cream);
}

.reservation-form {
  max-width: 650px;
  margin: 2rem auto 0;
}

/* ========================================================
   GOOGLE-MAPS-EINBETTUNG
   ======================================================== */
.map-embed {
  margin-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden; /* rundet auch die eckigen Ecken des iframes ab */
  border: 1px solid rgba(244, 236, 216, 0.2);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 280px;
}

/* ========================================================
   BEWERTUNGEN
   ======================================================== */
.reviews-section {
  padding: 4rem 0;
  background-color: var(--color-cream);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.review-card {
  background-color: var(--color-cream-light);
  border-left: 4px solid var(--color-gold);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.review-stars {
  color: var(--color-gold);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}

.review-text {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.review-author {
  font-weight: 700;
  color: var(--color-wood-dark);
}

/* ========================================================
   ÖFFNUNGSZEITEN & STANDORT
   ======================================================== */
.info-section {
  padding: 4rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.info-card {
  background-color: var(--color-forest-dark);
  color: var(--color-cream);
  padding: 2rem;
  border-radius: 10px;
  border-left: 5px solid var(--color-gold);
}

.info-card h2 {
  color: var(--color-cream);
}

.opening-hours {
  width: 100%;
  border-collapse: collapse;
}

.opening-hours td {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(244, 236, 216, 0.15);
}

.opening-hours td:last-child {
  text-align: right;
  color: var(--color-gold-light);
}

address {
  font-style: normal;
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ========================================================
   KONTAKT
   ======================================================== */
.contact-section {
  background-color: var(--color-cream);
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-details {
  list-style: none;
  margin-top: 1.5rem;
}

.contact-details li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.form-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-cream-light);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.form-card label {
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

.form-card input,
.form-card textarea {
  font-family: var(--font-body);
  padding: 0.7rem;
  border: 1px solid rgba(107, 68, 35, 0.4);
  border-radius: 6px;
  background-color: #fff;
  font-size: 0.95rem;
  width: 100%;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: 2px solid var(--color-gold);
}

.form-card button {
  margin-top: 1.5rem;
  align-self: flex-start;
}

/* Zwei Felder nebeneinander, z. B. Name + E-Mail im Reservierungsformular */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

.form-feedback {
  margin-top: 1rem;
  font-weight: 700;
  min-height: 1.2rem;
}

.form-feedback.success {
  color: #2f6b2f;
}

.form-feedback.error {
  color: #a33;
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background-color: var(--color-forest-dark);
  color: var(--color-cream);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.image-credits {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(244, 236, 216, 0.6);
}

/* ========================================================
   SCROLL-TO-TOP BUTTON
   ======================================================== */
.scroll-top {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-gold);
  color: var(--color-forest-dark);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ========================================================
   RESPONSIVE / MOBILE
   ======================================================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-forest-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: 300px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }

  .main-nav li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(244, 236, 216, 0.1);
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .info-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .dish-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
