/* ==========================================================================
   Flo's Pizza – Styles
   ========================================================================== */

/* Mona Sans (SIL Open Font License) – lokal für Überschriften, variabel in Breite und Stärke */
@font-face {
  font-family: "Mona Sans"; font-style: normal; font-display: swap;
  font-weight: 200 900; font-stretch: 75% 125%;
  src: url("../fonts/mona-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mona Sans"; font-style: normal; font-display: swap;
  font-weight: 200 900; font-stretch: 75% 125%;
  src: url("../fonts/mona-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Switzer (Fontshare, ITF Free Font License) – lokal für Fließtexte */
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #f7f3ec;
  --bg-alt: #e8e0d2;
  --ink: #17130f;
  --ink-soft: #4a423a;
  --line: rgba(23, 19, 15, .16);
  --white: #fff;

  /* Überschriften: Mona Sans · Texte, Navigation, Formular: Switzer */
  --font-display: "Mona Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Switzer", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: clamp(14px, 1.6vw, 24px);
  /* Abstand zwischen Bildern im Bildband = Rand um den Hero */
  --tile-gap: clamp(12px, 1.4vw, 20px);
  --section-space: clamp(88px, 13vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Typografie
   ========================================================================== */

.section-intro { margin-top: clamp(20px, 2.2vw, 32px); }

.display,
.hero-photo-title,
.ingredients-list h3,
.faq-list summary,
.contact-links a,
.footer-wordmark { font-family: var(--font-display); }

.display {
  font-size: clamp(2.4rem, 6.2vw, 6.25rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: .98;
  letter-spacing: -.035em;
  max-width: 16ch;
  text-wrap: balance;
}

/* Hervorgehobener Satz (z. B. Begrüßung, Einleitung): Fließtextgröße, aber fett */
.text-strong {
  font-size: clamp(1rem, 1.05vw, 1.0625rem);
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
  max-width: 36rem;
  text-wrap: pretty;
}

/* Fließtext */
.copy {
  font-size: clamp(1rem, 1.05vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36rem;
  text-wrap: pretty;
}

/* Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  transition: background-color .3s, box-shadow .3s;
}

.site-header.is-scrolled {
  background: rgba(247, 243, 236, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
}

/* Logo ist weiß – auf hellem Grund schwarz einfärben */
.brand img { width: 100%; height: 100%; filter: brightness(0); }


.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}

.nav a:not(.nav-cta) {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .3s var(--ease);
}
.nav a:not(.nav-cta):hover { background-size: 100% 1.5px; }

.nav-cta,
.button {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  padding: .7em 1.4em;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s var(--ease), opacity .25s;
}
.nav-cta:hover, .button:hover { transform: translateY(-2px); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav-toggle-bar:nth-of-type(2) { top: 17px; }
.nav-toggle-bar:nth-of-type(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }

/* Hero: Vollbild-Foto mit Text, Header liegt weiß darüber
   ========================================================================== */

.hero-photo {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
}

.hero-photo-bg {
  position: absolute;
  inset: var(--tile-gap);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.hero-photo-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Beige Abdeckung über dem Hero-Foto während des Intros (intro.js blendet sie aus) */
.hero-cover {
  position: absolute;
  inset: 0;          /* liegt außerhalb des abgerundeten Rahmens und deckt auch die Ecken ab */
  z-index: 1;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}
.intro .hero-cover { opacity: 1; }

/* Bildwechsel: Bilder liegen übereinander und blenden weich über */
.slide { display: block; opacity: 0; transition: opacity 1.6s ease; }
.slide.is-active { opacity: 1; }
/* Warmer, dunkler Schleier für lesbare weiße Schrift */
.hero-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(23, 14, 8, .25), rgba(23, 14, 8, .6) 100%),
    rgba(40, 22, 10, .25);
}

.hero-photo-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
  padding: 0 var(--gutter);
  text-align: center;
  color: var(--white);
}

.hero-photo-title {
  font-size: clamp(2.4rem, 7.4vw, 7.25rem);
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 110%;
  line-height: .92;
  letter-spacing: -.04em;
}
/* Jede Zeile ist eine Maske, aus der der Text nach oben herausfährt */
.hero-photo-title .line { display: block; overflow: hidden; padding: .04em .02em .16em; margin-bottom: -.12em; } /* Platz unten für g, p … */
.hero-photo-title .line > span { display: block; }

/* Großes Logo unter der Überschrift (weiß auf dem Foto) */
.hero-logo {
  position: relative;
  width: clamp(120px, 12vw, 180px);
  aspect-ratio: 1;
}
.hero-logo img { width: 100%; height: 100%; }

/* Ape als SVG genau an ihrer Stelle im Logo (Werte aus logo.png, 2313 px) */
.logo-ape {
  position: absolute;
  left: 35.02%;
  top: 59.84%;
  width: 29.92%;
  height: auto;
  overflow: visible;
  color: var(--white);
}
.logo-ape .ape-smoke { display: none; }

/* Radnaben drehen sich um ihre eigene Mitte (Drehung setzt intro.js) */
.wheel-hub { transform-box: fill-box; transform-origin: center; }

/* Rauch aus dem Ofen-Schornstein (fliegende Ape im Intro) */
.ape-smoke path {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: smoke 3.6s ease-out infinite;
}
.ape-smoke path:nth-child(2) { animation-delay: 1.2s; }
.ape-smoke path:nth-child(3) { animation-delay: 2.4s; }

@keyframes smoke {
  0%   { opacity: 0;  transform: translate(0, 0) scale(.6); }
  25%  { opacity: .9; }
  100% { opacity: 0;  transform: translate(-40px, -120px) scale(1.15); }
}

/* Header: weiß über dem Foto, nach dem Scrollen wie gewohnt dunkel
   ========================================================================== */

/* Seitlich immer gleich breit (Logo und Menü springen beim Scrollen nicht),
   oben über dem Foto nur um den Foto-Rand nach unten versetzt */
.page-hero-photo .site-header {
  top: var(--tile-gap);
  /* mindestens 16 px Luft zum Foto-Rand, in beiden Zuständen gleich */
  padding-inline: max(var(--gutter), calc(var(--tile-gap) + 16px));
}
.page-hero-photo .site-header.is-scrolled { top: 0; }

.page-hero-photo .site-header:not(.is-scrolled) { color: var(--white); }
.page-hero-photo .site-header:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }
.page-hero-photo .site-header:not(.is-scrolled) .nav-cta { background: var(--white); color: var(--ink); }
.page-hero-photo .site-header:not(.is-scrolled) .nav-toggle-bar { background: var(--white); }
.page-hero-photo .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: var(--ink); }
.page-hero-photo .site-header:has(.nav.is-open) { color: var(--ink); }
.page-hero-photo .site-header:has(.nav.is-open) .brand img { filter: brightness(0); }

/* Intro: nur die Ape ist zu sehen (main.js/intro.js)
   ========================================================================== */

/* Fliegende Kopie der Logo-Ape (Rauch nur hier sichtbar) */
.ape-flyer {
  position: fixed;
  z-index: 100;
  height: auto;
  overflow: visible;
  pointer-events: none;
}
/* Logo-Ape bleibt verborgen, bis die fliegende Ape gelandet ist */
.intro-ape .logo-ape { visibility: hidden; }

.intro,
.intro body,
.intro-ape,
.intro-ape body { overflow: hidden; }

.intro .site-header,
.intro .hero-logo img,
.intro main > :not(.hero-photo),
.intro .site-footer { opacity: 0; }

.intro .hero-photo-title .line > span { transform: translateY(170%); }

.page-hero-photo .site-header,
.page-hero-photo main > :not(.hero-photo),
.page-hero-photo .site-footer { transition: opacity .8s var(--ease); }


/* Bildband
   ========================================================================== */

/* Läuft automatisch (main.js) und lässt sich wischen bzw. ziehen */
.marquee {
  margin-top: clamp(20px, 3vw, 48px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-dragging { cursor: grabbing; }

.marquee-track {
  display: flex;
  align-items: flex-start;
  gap: var(--tile-gap);
  width: max-content;
}

/* Bilder behalten ihr Format (Hoch- und Querformat gemischt) */
/* Leicht versetzt nach oben/unten: --o (0–1) setzt main.js pro Bild */
.marquee-track img {
  margin-top: calc(var(--o, 0) * clamp(18px, 3.2vw, 48px));
  height: clamp(300px, 34vw, 520px);
  width: auto;
  object-fit: cover;
  border-radius: var(--radius);
  pointer-events: none;
}

/* Sektionen
   ========================================================================== */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-space) var(--gutter) 0;
}

/* Über uns */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 3.5vw, 56px);
  align-items: center;
}
/* Desktop: Text links, Bild rechts */
.about-media {
  order: 2;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 82vh;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* Fließtext wie in den anderen Abschnitten (.copy), nur die Begrüßung ist kräftiger */
.about-text { display: grid; gap: 1.1em; }
.about-text .display { margin-bottom: .2em; }
.about-text .copy { max-width: none; } /* füllt die Spalte bis zum Bild */

/* Zutaten */


.ingredients-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 96px);
}
/* Zutatenbild aus einzelnen Ebenen, bleibt beim Scrollen mittig stehen */
.ingredients-media {
  position: sticky;
  top: max(100px, calc(50vh - min(21vw, 300px)));
  aspect-ratio: 1;
}
.ingredients-media img {
  position: absolute;
  height: auto;
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
}

/* Fokus: aktive Zutat groß und scharf, der Rest tritt zurück (setzt main.js) */
.ingredients-media.is-focusing img { opacity: .16; filter: grayscale(1) blur(2px); transform: scale(.94); }
.ingredients-media.is-focusing img.is-active { opacity: 1; filter: none; transform: scale(1.08); }

.ingredients-list li > * { transition: opacity .5s var(--ease); }
.ingredients-list.is-focusing li:not(.is-active) > * { opacity: .3; }
.ingredients-list.is-focusing li:not(.is-active)::before { opacity: .3; }

/* Am Desktop jede Zutat etwas länger im Fokus halten */
@media (min-width: 901px) {
  .ingredients-list li { min-height: 34vh; align-content: center; }
  /* Platz unten, damit auch die letzte Zutat die Bildschirmmitte erreicht,
     solange das Bild noch stehen bleibt */
  .ingredients-grid .ingredients-list { padding-bottom: 22vh; }
}

.ingredients-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: zutat;
}
.ingredients-list li {
  counter-increment: zutat;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  column-gap: 1rem;
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
}
.ingredients-list li:last-child { border-bottom: 1px solid var(--line); }
.ingredients-list li::before {
  content: counter(zutat, decimal-leading-zero);
  grid-row: span 2;
  font-size: .9rem;
  font-weight: 600;
  padding-top: .6em;
  color: var(--ink-soft);
}
.ingredients-list h3 {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: .45em;
}
.ingredients-list p { max-width: 34rem; }

/* Anfrage-Block */
.cta {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(440px, 44vw, 620px);
  margin: var(--section-space) var(--tile-gap) 0; /* gleicher Rand wie beim Hero */
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
}
.cta-media { position: absolute; inset: 0; }
.cta-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* foto-30 gespiegelt, damit die Ape rechts steht und links Platz für den Text bleibt */
.cta-media .is-mirrored { transform: scaleX(-1); }
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 14, 8, .72), rgba(23, 14, 8, .15) 65%);
}
.cta-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: clamp(20px, 2.5vw, 36px);
  padding: clamp(24px, 4.5vw, 72px);
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1;
  letter-spacing: -.035em;
  max-width: 17ch;
  text-wrap: balance;
}
.button--light { background: var(--white); color: var(--ink); padding: .9em 2em; }

/* Impressum & Datenschutz */
/* Gleiche Breite und linke Kante wie die übrigen Abschnitte (.section) */
.legal { padding-top: clamp(130px, 14vw, 190px); }
.legal .display { margin-bottom: clamp(32px, 4vw, 56px); }
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 750;
  font-stretch: 108%;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 2.2em 0 .6em;
}
.legal .copy { max-width: 52rem; margin-bottom: .9em; } /* lesbare Zeilenlänge */
.legal .copy a { color: var(--ink); text-underline-offset: .2em; }
.legal-stand { font-size: .9rem; }
.legal-list { padding-left: 1.2em; }
.legal-list li { margin-bottom: .3em; }

/* FAQ */
.faq-list { margin-top: clamp(40px, 5vw, 80px); border-top: 1px solid var(--line); }

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 32px) 0;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -.02em;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  font-weight: 400;
  font-size: 1.4em;
  line-height: 1;
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  display: grid;
  gap: .8em;
  max-width: 46rem;
  padding: 0 0 clamp(24px, 2.6vw, 36px);
  font-size: clamp(1rem, 1.05vw, 1.0625rem);
  line-height: 1.55;
  color: var(--ink-soft);
}
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--ink); text-underline-offset: .2em; }
.faq-answer ul { margin: -.4em 0 0; padding-left: 1.2em; }
.faq-answer li { margin-bottom: .2em; }
.faq-sub { font-weight: 600; color: var(--ink); }

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 96px);
}
.contact-text { display: grid; gap: 1.25em; }

.contact-links {
  list-style: none;
  margin: .75em 0 0;
  padding: 0;
  display: grid;
  gap: .4em;
}
.contact-links a {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  transition: background-size .3s var(--ease);
}
.contact-links a:hover { background-size: 0 2px; }

.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3.5vw, 48px);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: grid; gap: 6px; }
.field span { font-size: .85rem; font-weight: 600; }

.field input,
.field textarea {
  width: 100%;
  padding: .8em 1em;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 6em; }
.field input::placeholder,
.field textarea::placeholder { color: #8c8279; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--ink); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: #b3261e; }

.hp { position: absolute; left: -9999px; }

.form .button { justify-self: start; margin-top: 6px; padding: .9em 2em; }
.form .button[disabled] { opacity: .5; cursor: wait; }

/* Erfolgsmeldung nach dem Absenden */
.form[hidden],
.form-success[hidden] { display: none; }
.form-success {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(24px, 3.5vw, 48px);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.form-success:focus { outline: none; }
.form-success-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -.035em;
  line-height: 1;
}
.form-success .copy { color: var(--ink); }
.form-success .button { margin-top: 8px; }

.form-status:empty { display: none; }
.form-status { font-weight: 600; }
.form-note { font-size: .8rem; line-height: 1.5; color: var(--ink-soft); }

/* Footer
   ========================================================================== */

.site-footer {
  margin-top: var(--section-space);
  padding: 0 var(--gutter) 28px;
  overflow: hidden;
}

.footer-wordmark {
  font-size: 16.5vw;
  font-weight: 900;
  font-stretch: 115%;
  letter-spacing: -.055em;
  line-height: .8;
  white-space: nowrap;
  margin: 0 -.02em;
  padding-top: .1em;
  border-top: 1px solid var(--line);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: .9rem;
}
.footer-bar nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bar a { text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; }

/* Scroll-Einblendung (nur mit JS aktiv)
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track,
  .ape-smoke path { animation: none; }
}

/* Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .about-grid,
  .ingredients-grid,
  .contact-grid { grid-template-columns: 1fr; }

  /* Mobil: Überschrift + Begrüßung, dann Bild, dann Text */
  .about-grid { display: flex; flex-direction: column; align-items: stretch; gap: 1.1em; }
  .about-text { display: contents; }
  .about-text .display { order: 1; margin-bottom: 0; }
  .about-hello { order: 2; }
  .about-media { order: 3; max-width: 520px; max-height: none; margin: .4em 0; }
  .about-text .copy { order: 4; }
  .ingredients-media { position: relative; top: auto; max-width: 520px; }
}

@media (max-width: 720px) {

  .nav-toggle { display: block; }

  /* backdrop-filter würde das fixierte Menü im Header einsperren */
  .site-header.is-scrolled {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 0 var(--gutter);
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a, .nav a.nav-cta {
    font-family: var(--font-display);
    padding: 0;
    background: none;
    color: var(--ink);
    font-size: 2.6rem;
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -.03em;
  }

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