*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #000;
  overflow-x: hidden;
  scrollbar-width: none;
}

.hero-text h1 {
  font-weight: 200;
  font-size: clamp(3rem, 30vw + 1rem, 40rem);
}

.top-menu {
  position: absolute;
  display: flex;
  top: 30px;
  right: 100px;
  z-index: 1;
  font-family: mersad;
  color: #fff;
  font-size: 15px;
  align-items: center;
  justify-content: center;
}

.food-menu {
  color: #fff;
  letter-spacing: 3px;
  margin-left: 30px;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.logo {
  position: absolute;
  z-index: 555;
  width: 120px;
  height: 100px;
  left: 20px;
  top: 1rem;
}

.cords {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.cords a {
  font-size: 0.9rem;
  font-family: mersad;
  color: #fff;
  text-decoration: none;
}

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100svh;
  width: 100%;
  background-image: url("../images/hero-wide-new-blur.png");
  background-size: cover;
}

.hero-img picture {
  display: inline-block;
  display: flex;
  justify-content: center;
}

.hero-img img {
  width: 60%;
  border-radius: 32px;
  display: block;
}

.hero-text {
  position: absolute;
  color: #fff;
  font-size: 600px;
}

.hero-text img {
  width: 1200px;
  display: block;
}

.nav {
  position: absolute;
  z-index: 1;
  font-family: mersad;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav-links {
  display: flex;
  flex-direction: row;
  padding: 0;
}

.nav-links li {
  color: #fff;
  list-style: none;
  padding-right: 3rem;
  font-size: clamp(1rem, 1vw + 1rem, 10rem);
}

.nav-links > :last-child {
  padding-right: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
}

.nav-links li:not(:first-child)::before {
  content: "•";
  font-size: 0.8rem;
  margin-right: 3rem;
  vertical-align: middle;
}

/* default (vorher) – kannst du lassen/ändern wie du willst */
.section2,
.section3 {
  background: transparent;
}

/* sobald section1 komplett raus ist */
body.after-section1 .section2 {
  background: #fff8ea;
  transition: background-color 400ms ease;
}

/* section3 soll (wieder) weiß sein */
body.after-section1 .section3 {
  background: #fff;
  transition: background-color 400ms ease;
}

/* ===== Popup Overlay (finite-main style) ===== */
.info-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.info-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0s;
}

.info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Modal Box */
.info-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(900px, 92vw);
  max-height: 86dvh;
  transform: translate(-50%, -50%) scale(0.96);
  padding: 2.2rem 2rem;
  border-radius: 24px;
  background: rgba(20, 20, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.info-overlay.is-open .info-modal {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Title */
.info-title {
  margin: 0 0 1rem 0;
  color: #fff;
  font-family: mersad, sans-serif;
  font-weight: 200;
  letter-spacing: 3px;
  font-size: clamp(1.2rem, 1vw + 1rem, 2.2rem);
  text-align: center;
}

/* Scrollbarer Body */
.info-body {
  max-height: calc(86dvh - 6.2rem); /* Platz für Padding + Titel */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 10px;
  color: #fff;
  font-family: mersad, sans-serif;
  font-size: clamp(0.95rem, 0.25vw + 0.95rem, 1.15rem);
  line-height: 1.6;
}

/* Deine Inhalte (h3/p) */
.info-body h3 {
  margin: 22px 0 10px;
  font-weight: 200;
  letter-spacing: 2px;
  font-size: 0.95em;
  opacity: 0.95;
  text-align: left;
}

.info-body p {
  margin: 0 0 14px;
  opacity: 0.95;
  text-align: left;
}

/* Close */
.info-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.info-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Background lock wenn Popup offen */
body.info-open {
  overflow: hidden;
}

/* Optional nicer scrollbar (webkit) */
.info-body::-webkit-scrollbar {
  width: 8px;
}
.info-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
}
.info-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}
