/* ============================================
   LAYOUT.CSS — Grid, Sections, Structural Layout
   New Cuisine by Netti
   ============================================ */

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (max-width: 768px) {
  .container,
  .container--narrow {
    padding-inline: var(--space-5);
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base);
}

.nav.is-scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav__logo:hover { opacity: 0.75; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-mid);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-mid);
  transition: color var(--transition-fast);
}

.nav__instagram:hover { color: var(--color-primary); }

.nav__instagram svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: var(--space-4) 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-slow), opacity var(--transition-base);
    z-index: 99;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    padding: var(--space-4) var(--space-6);
    width: 100%;
    display: block;
  }

  .nav__link::after { display: none; }

  .nav__hamburger {
    display: flex;
  }

  .nav__instagram {
    margin: var(--space-2) auto var(--space-2);
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 23, 16, 0.85) 0%,
    rgba(28, 23, 16, 0.45) 40%,
    rgba(28, 23, 16, 0.15) 70%,
    transparent 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-20);
  padding-top: calc(var(--nav-height) + var(--space-16));
}

.hero__label {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-5);
}

.hero__headline {
  color: var(--color-white);
  font-size: clamp(var(--text-4xl), 10vw, 9rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(var(--text-3xl), 12vw, var(--text-5xl));
  }

  .hero__subline {
    font-size: var(--text-base);
  }

  .hero__content {
    padding-bottom: var(--space-12);
    padding-top: calc(var(--nav-height) + var(--space-10));
  }
}

.hero__headline em {
  font-style: italic;
  color: var(--color-accent);
}

.hero__subline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-10);
  max-width: none;
  line-height: 1.5;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scroll-hint svg {
  width: 20px;
  height: 20px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(6px); opacity: 1; }
}

/* ============================================
   SECTION BASE
   ============================================ */
.section {
  padding-block: var(--space-24);
}

@media (max-width: 768px) {
  .section {
    padding-block: var(--space-16);
  }
}

@media (max-width: 480px) {
  .section {
    padding-block: var(--space-12);
  }
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
}

.section__eyebrow {
  margin-bottom: var(--space-5);
}

.section__headline {
  margin-bottom: var(--space-6);
}

.section__intro {
  margin-bottom: var(--space-12);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about__image-wrapper {
  position: relative;
}

.about__image-frame {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.about__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.about__image-frame:hover img {
  transform: scale(1.04);
}

.about__image-accent {
  position: absolute;
  bottom: calc(-1 * var(--space-6));
  right: calc(-1 * var(--space-6));
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.12;
  z-index: -1;
}

.about__text-block h2 {
  margin-bottom: var(--space-6);
}

.about__text-block p {
  margin-bottom: var(--space-6);
}

.about__signature {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-style: italic;
  color: var(--color-primary);
  margin-top: var(--space-8);
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about__image-frame {
    max-width: 480px;
    margin-inline: auto;
  }
}

/* ============================================
   GALLERY SECTION – Marquee
   ============================================ */
.gallery__intro {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-12);
}

.gallery__marquee {
  overflow: hidden;
  width: 100%;
  margin-bottom: var(--space-4);
}

.gallery__marquee-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  animation: marquee-left 60s linear infinite;
}

.gallery__marquee-track--reverse {
  animation: marquee-right 28s linear infinite;
}


.gallery__marquee-item {
  flex-shrink: 0;
  width: 280px;
  height: 360px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery__marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.gallery__marquee-item:hover img {
  transform: scale(1.05);
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__marquee-track,
  .gallery__marquee-track--reverse {
    animation: none;
  }
}

@media (max-width: 768px) {
  .gallery__marquee-item {
    width: 220px;
    height: 280px;
  }
}

/* ============================================
   INSTAGRAM CTA SECTION
   ============================================ */
.instagram-cta {
  text-align: center;
}

.instagram-cta__handle {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 6vw, 7rem);
  font-style: italic;
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: block;
  margin-bottom: var(--space-6);
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 480px) {
  .instagram-cta__handle {
    font-size: clamp(var(--text-2xl), 9vw, var(--text-4xl));
  }

  .instagram-cta__text {
    font-size: var(--text-base);
  }
}

.instagram-cta__text {
  color: rgba(255, 255, 255, 0.7);
  max-width: none;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  font-size: var(--text-lg);
}

/* ============================================
   NEWSLETTER TEASER
   ============================================ */
.teaser {
  text-align: center;
}

.teaser__headline {
  margin-bottom: var(--space-4);
}

.teaser__subline {
  margin-inline: auto;
  margin-bottom: var(--space-12);
  text-align: center;
}

.teaser__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.teaser__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.teaser__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.teaser__card-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.teaser__card-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--color-primary);
  stroke-width: 1.5;
}

.teaser__card h4 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.teaser__card p {
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: none;
}

.teaser__form {
  max-width: 480px;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .teaser__cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding-block: var(--space-12);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer__logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.footer__logo img {
  height: 30px;
  width: auto;
  display: block;
}

.footer__logo:hover { opacity: 0.75; }

.footer__links {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.footer__link:hover { color: var(--color-white); }

.footer__copy {
  font-size: var(--text-xs);
  text-align: center;
  padding-top: var(--space-6);
  margin-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  max-width: none;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-page {
  padding-top: calc(var(--nav-height, 80px) + var(--space-16));
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-12);
}

.legal-page h2 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.legal-page p,
.legal-page li {
  color: var(--color-text-mid);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.legal-page ul {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-page li {
  margin-bottom: var(--space-2);
}

.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page a:hover {
  color: var(--color-primary-dark);
}
