/*
 * Style sheet for the modern, animated and image‑heavy menu website.
 * The design uses large background photos with overlay text and subtle
 * animations triggered on load and scroll. Colors and typography
 * complement the natural tones of the dishes.
 */

/* Base styles */
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f8f6f3;
  scroll-behavior: smooth;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Hero section */
#hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 80vh;
  padding: 2rem;
  position: relative;
  background: linear-gradient(135deg, #e79d4a 0%, #e84963 100%);
  color: #fff;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  animation: pulse 8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

#hero .hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInDown 1.2s ease-out forwards;
}

#hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0.05em;
}

#hero p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 1rem;
  opacity: 0.9;
}

/* Dish sections */
.dish {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.dish::before {
  /* dark overlay to improve text legibility */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.5s ease;
}

.dish .overlay {
  position: relative;
  z-index: 1;
  max-width: 80%;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.dish.visible .overlay {
  transform: translateY(0);
  opacity: 1;
}

.dish:hover::before {
  background: rgba(0, 0, 0, 0.55);
}

.dish:hover .overlay {
  background: rgba(255, 255, 255, 0.15);
}

/* Individual backgrounds for each dish section using our downloaded photos */
#appetizer {
  /* Use the uploaded PNG image for the appetizer */
  background-image: url('images/appetizer.png');
}

#main {
  /* Use the uploaded PNG image for the main course */
  background-image: url('images/main.png');
}

#dessert {
  /* Use the uploaded PNG image for the dessert */
  background-image: url('images/dessert.png');
}

/* Footer styles */
footer {
  background: #f1e8df;
  color: #5b4a3c;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  #hero {
    height: 60vh;
  }
  .dish {
    height: 70vh;
  }
  .dish .overlay h2 {
    font-size: 1.8rem;
  }
  .dish .overlay p {
    font-size: 1rem;
  }
}

/* Additional tweaks for very small screens (smartphones) */
@media (max-width: 480px) {
  #hero {
    /* reduce height and padding on tiny screens */
    height: 50vh;
    padding: 1.5rem;
  }
  #hero h1 {
    font-size: 2rem;
  }
  #hero p {
    font-size: 0.95rem;
  }
  .dish {
    /* slightly shorter sections for better scroll experience */
    height: 60vh;
  }
  .dish .overlay {
    /* expand overlay width and adjust padding for narrow viewports */
    max-width: 90%;
    padding: 0.8rem 1rem;
  }
  .dish .overlay h2 {
    font-size: 1.6rem;
  }
  .dish .overlay p {
    font-size: 0.9rem;
  }
  footer {
    font-size: 0.8rem;
  }
}
/* Dezente Abschnitts-Trennung zwischen den Menüs */
.divider {
  position: relative;
  height: 64px;                 /* Desktop-Höhe */
  background: linear-gradient(to bottom,
              rgba(0,0,0,0.06), rgba(0,0,0,0.0) 55%),
              linear-gradient(to top,
              rgba(0,0,0,0.06), rgba(0,0,0,0.0) 55%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* feine Haarlinie in der Mitte */
.divider::before {
  content: "";
  width: min(80%, 780px);
  height: 1px;
  background: linear-gradient(90deg,
              rgba(0,0,0,0) 0%,
              rgba(0,0,0,0.35) 50%,
              rgba(0,0,0,0) 100%);
  filter: blur(0.1px);
  opacity: 0.65;
}

/* Mobile Feintuning */
@media (max-width: 768px) {
  .divider { height: 52px; }
  .divider::before { width: 88%; opacity: 0.6; }
}
@media (max-width: 480px) {
  .divider { height: 44px; }
  .divider::before { width: 92%; opacity: 0.55; }
}
