/* ==========================================================================
   Coldpress Juice & Eatery Bar
   Palette taken from the cups themselves: forest green lid, cream pulp,
   vermilion carrot base, warm plaster wall, saffron thread.
   ========================================================================== */

:root {
  --forest:   #0F4A3C;
  --forest-d: #08312A;
  --cream:    #F3EADA;
  --cream-2:  #FBF6EE;
  --vermil:   #E4572E;
  --saffron:  #E9A93C;
  --leaf:     #7FB069;
  --ink:      #14201C;

  --ff-display: 'Fredoka', 'Fredoka One', system-ui, sans-serif;
  --ff-script:  'Pacifico', cursive;
  --ff-head:    'Comfortaa', system-ui, sans-serif;
  --ff-body:    'Quicksand', system-ui, sans-serif;
  --ff-read:    'Poppins', system-ui, sans-serif;
  --ff-ui:      'Montserrat', system-ui, sans-serif;

  --rail: 8px;
  --gut: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1320px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--ff-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  padding-left: var(--rail);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--forest); color: var(--cream);
  padding: .75rem 1.25rem; font-family: var(--ff-ui);
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 3px solid var(--vermil);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------- SIGNATURE rail --
   A fixed strip down the left edge that fills like the cup fills:
   vermilion base, cream pulp, forest green on top. Scroll = pouring.
   ------------------------------------------------------------------------ */
.rail {
  position: fixed;
  inset-block: 0;
  left: 0;
  width: var(--rail);
  background: rgba(15, 74, 60, .1);
  z-index: 60;
}
.rail__fill {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(
    to top,
    var(--vermil)  0%,
    var(--saffron) 18%,
    var(--cream-2) 42%,
    var(--leaf)    68%,
    var(--forest)  100%
  );
  transform-origin: bottom;
}
.rail__bead {
  position: absolute;
  left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--cream-2);
  border: 2px solid var(--forest);
  transition: transform .3s var(--ease);
}

/* ------------------------------------------------------------------ nav -- */
.nav {
  position: fixed;
  top: 0; left: var(--rail); right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem var(--gut);
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  mix-blend-mode: normal;
  transition: background .4s var(--ease), color .4s var(--ease), padding .4s var(--ease);
}
.nav--solid {
  background: rgba(243, 234, 218, .92);
  padding-block: .625rem;
  box-shadow: 0 1px 0 rgba(15, 74, 60, .12);
}
/* The blur sits on a layer behind the bar, not on the bar itself.
   backdrop-filter on .nav turns it into the containing block for its
   position:fixed children, and the mobile menu panel then shrank to the
   height of the bar once the page was scrolled. */
.nav--solid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: none;
}
.nav__brand {
  font-family: var(--ff-script);
  font-size: 1.375rem;
  letter-spacing: 0;
  text-transform: none;
  margin-right: auto;
  line-height: 1;
  padding-block: .25rem;
}
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a { position: relative; padding-block: .25rem; }
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.lang {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
}
.lang a { opacity: .45; transition: opacity .3s; }
.lang a:hover { opacity: 1; }
.lang [aria-current='true'] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang__sep { opacity: .3; }

.nav__toggle { display: none; }

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--forest-d);
  color: var(--cream);
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero__media img,
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(8, 49, 42, .92) 0%, rgba(8, 49, 42, .35) 45%, rgba(8, 49, 42, .55) 100%);
}
.hero__inner { padding-block: clamp(3rem, 12vh, 8rem); }

.eyebrow {
  font-family: var(--ff-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 11vw, 8.5rem);
  line-height: .92;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero__title span { display: block; overflow: hidden; }
.hero__title span > i { display: block; font-style: normal; }
.hero__title span:nth-child(2) { color: var(--saffron); }

.hero__sub {
  font-family: var(--ff-read);
  font-weight: 300;
  max-width: 46ch;
  font-size: clamp(1rem, .9rem + .4vw, 1.25rem);
  opacity: .9;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem; right: var(--gut);
  font-family: var(--ff-ui);
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: .7;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px; height: 48px;
  margin: .75rem auto 0;
  background: currentColor;
  transform-origin: top;
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --------------------------------------------------------------- events --
   Continuous band between hero and craft.

   Direction: items enter at the left edge and leave at the right, so the
   track slides forwards (positive X). The list is printed twice and the
   track travels exactly -50% -> 0, which is one full list width — the
   moment the loop restarts, the second copy sits where the first one was.
   Nothing jumps, nothing pauses, not even on hover: a ticker that stops
   under the cursor reads as broken on a page this smooth.
   ------------------------------------------------------------------------ */
.evt {
  background: var(--forest);
  color: var(--cream);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  overflow: hidden;   /* the track is wider than the page, by design */
}

.evt__head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }

.evt__eyebrow {
  font-family: var(--ff-ui);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: .5rem;
}

.evt__h {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem);
  line-height: 1.15;
}

/* Viewport. The mask makes items dissolve at both edges instead of being
   sliced by a hard border — that is what sells "coming in / going out". */
.evt__vp {
  -webkit-mask-image: linear-gradient(90deg,
      transparent 0,
      #000 clamp(2rem, 8vw, 7rem),
      #000 calc(100% - clamp(2rem, 8vw, 7rem)),
      transparent 100%);
          mask-image: linear-gradient(90deg,
      transparent 0,
      #000 clamp(2rem, 8vw, 7rem),
      #000 calc(100% - clamp(2rem, 8vw, 7rem)),
      transparent 100%);
}

.evt__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: evt-slide var(--evt-dur, 40s) linear infinite;
}

@keyframes evt-slide {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

.evt__set {
  display: flex;
  align-items: stretch;
  gap: clamp(.75rem, 2vw, 1.25rem);
  padding-right: clamp(.75rem, 2vw, 1.25rem);   /* keeps the seam even */
}

.evt__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .125rem;
  flex: 0 0 auto;
  padding: 1rem 1.75rem;
  border: 1.5px solid rgba(243, 234, 218, .28);
  border-radius: 100px;
  background: rgba(251, 246, 238, .05);
}

.evt__date {
  font-family: var(--ff-ui);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--saffron);
  white-space: nowrap;
}

.evt__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.375rem);
  line-height: 1.2;
  white-space: nowrap;
}

.evt__meta {
  font-family: var(--ff-read);
  font-weight: 300;
  font-size: .8125rem;
  opacity: .72;
  white-space: nowrap;
}

/* Reduced motion: the band becomes a normal, swipeable row. The loop is the
   whole point of the section, so it is kept as content rather than removed. */
@media (prefers-reduced-motion: reduce) {
  .evt__track {
    animation: none;
    transform: none;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-inline: var(--gut);
  }
  .evt__track::-webkit-scrollbar { display: none; }
  .evt__track .evt__set[aria-hidden="true"] { display: none; }
  .evt__vp { -webkit-mask-image: none; mask-image: none; }
}

/* Phones only — the wider breakpoints must stay untouched. */
@media (max-width: 40rem) {
  .evt__item { padding: .875rem 1.25rem; }
}

/* -------------------------------------------------------------- section -- */
.section { position: relative; padding-block: clamp(5rem, 14vh, 10rem); }
.section--cream  { background: var(--cream); }
.section--paper  { background: var(--cream-2); }
.section--forest { background: var(--forest); color: var(--cream); }

.section__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.section__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(1.875rem, 1.2rem + 3vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin-bottom: 1rem;
}
.section__lede {
  font-family: var(--ff-read);
  font-weight: 300;
  font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
  opacity: .78;
}
.section--forest .eyebrow { opacity: .65; }

/* ---------------------------------------------------------------- craft -- */
.craft { display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 62rem) { .craft { grid-template-columns: 1.05fr .95fr; align-items: center; } }

.craft__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--forest-d);
}
.craft__media img,
.craft__media video { width: 100%; height: 100%; object-fit: cover; }

.stats { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
@media (min-width: 34rem) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat__n {
  font-family: var(--ff-display);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  line-height: 1;
  color: var(--saffron);
  display: block;
}
.stat__l {
  font-family: var(--ff-ui);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
  margin-top: .5rem;
  display: block;
  max-width: 18ch;
}

/* ----------------------------------------------------------------- menu -- */
.cards {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream-2);
  border: 1px solid rgba(15, 74, 60, .14);
  border-radius: 6px;
  overflow: hidden;
}
.section--forest .card {
  background: rgba(251, 246, 238, .06);
  border-color: rgba(243, 234, 218, .18);
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(15, 74, 60, .08);
}
.card__media img,
.card__media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img,
.card:focus-within .card__media img { transform: scale(1.05); }

.card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__row { display: flex; align-items: baseline; gap: 1rem; }
.card__name {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  flex: 1;
}
.card__price {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  color: var(--vermil);
  white-space: nowrap;
}
.section--forest .card__price { color: var(--saffron); }
.card__desc {
  font-family: var(--ff-read);
  font-weight: 300;
  font-size: .9375rem;
  opacity: .75;
}
.card__note {
  font-family: var(--ff-script);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--forest);
  opacity: .85;
  margin-top: auto;
  padding-top: .75rem;
}
.section--forest .card__note { color: var(--leaf); opacity: 1; }

/* single-item section: one wide editorial card instead of a lonely square */
.cards--feature { grid-template-columns: 1fr !important; }

.card--feature .card__media { aspect-ratio: 16 / 10; }
.card--feature .card__name  { font-size: 1.5rem; }

@media (min-width: 56rem) {
  .card--feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }
  .card--feature .card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 26rem;
  }
  .card--feature .card__body {
    padding: clamp(2rem, 4vw, 3.5rem);
    justify-content: center;
    gap: .75rem;
  }
  .card--feature .card__name  { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
  .card--feature .card__price { font-size: 1.5rem; }
  .card--feature .card__desc  { font-size: 1.0625rem; max-width: 34ch; }
  .card--feature .card__note  { font-size: 1.125rem; margin-top: 1rem; padding-top: 0; }
}

/* -------------------------------------------------------------- reveal -- */
/* .rv is never animated by motion.js; will-change only kept a GPU layer
   per element alive for nothing. */

/* ---------------------------------------------------------------- visit -- */
.visit { display: grid; gap: clamp(2rem, 6vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 58rem) { .visit { grid-template-columns: 1fr 1fr; } }

.dl { display: grid; gap: 1.5rem; }
.dl__k {
  font-family: var(--ff-ui);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: .375rem;
}
.dl__v { font-family: var(--ff-read); font-weight: 400; }

/* ---------------------------------------------------------------- hours -- */
.hsets {
  display: grid;
  gap: 1.5rem 2.5rem;
  /* دو ستون به‌محض اینکه جا باشد؛ زیر آن خودکار تک‌ستونی می‌شود */
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  max-width: 40rem;
}

.hours { display: grid; gap: .5rem; max-width: 22rem; }
.hsets .hours { max-width: none; }   /* داخل شبکه، ستون خودش عرض را تعیین می‌کند */

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .5rem;
  border-bottom: 1px dashed rgba(243, 234, 218, .22);
  font-family: var(--ff-read);
  font-weight: 300;
}
.hsets .hours li:last-child { border-bottom: none; }
.section--cream .hours li { border-bottom-color: rgba(15, 74, 60, .18); }

/* ------------------------------------------------------------------ cta -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .9375rem 1.75rem;
  border-radius: 100px;
  background: var(--vermil);
  color: var(--cream-2);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #C8451F; }
.btn--ghost {
  /* پیش‌فرض: روی زمینهٔ تیره (section--forest) */
  --ghost-fill: var(--cream);
  --ghost-ink:  var(--forest);

  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
  transition: transform .35s var(--ease),
              background .35s var(--ease),
              border-color .35s var(--ease),
              color .35s var(--ease);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--ghost-fill);
  border-color: var(--ghost-fill);
  color: var(--ghost-ink);
}

/* روی زمینه‌های روشن، برعکس می‌شود */
.section--cream .btn--ghost,
.section--paper .btn--ghost {
  --ghost-fill: var(--forest);
  --ghost-ink:  var(--cream-2);
}
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* --------------------------------------------------------------- footer -- */
.foot {
  background: var(--forest-d);
  color: var(--cream);
  padding-block: 3rem 2rem;
  font-family: var(--ff-ui);
  font-size: .8125rem;
}
.foot__grid { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; }
.foot__brand { font-family: var(--ff-script); font-size: 1.5rem; margin-right: auto; }
.foot__links { display: flex; gap: 1.5rem; opacity: .7; }
.foot__legal { width: 100%; opacity: .45; font-size: .75rem; padding-top: 1.5rem; border-top: 1px solid rgba(243, 234, 218, .12); }

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 52rem) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 var(--rail);
    background: var(--forest);
    color: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    padding: var(--gut);
    font-size: 1.5rem;
    letter-spacing: .04em;
    transform: translateY(-100%);
    transition: transform .6s var(--ease);
  }
  body.nav-open .nav__links { transform: translateY(0); }
  body.nav-open { overflow: hidden; }
  .nav__toggle { display: block; z-index: 2; margin-left: auto; }
  .lang { z-index: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------- asset placeholder ------ */
.ph {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg,
      rgba(15,74,60,.06) 0 12px,
      rgba(15,74,60,.10) 12px 24px),
    linear-gradient(to top, var(--vermil), var(--saffron) 35%, var(--cream-2) 60%, var(--leaf) 85%);
  opacity: .55;
}


/* ==========================================================================
   KARTENTAFEL — menu.php
   Nachbau der gedruckten Tafel. Farben direkt aus der Druckdatei gemessen:
     Grün   #1A4F3D
     Orange #F05527
     Creme  #F8F6C6
   Der Rest der Website behält seine eigene Palette; diese gilt nur hier.
   ========================================================================== */

.tafel {
  --bg:   #1A4F3D;
  --org:  #F05527;
  --crm:  #F8F6C6;

  /* ------------------------------------------------------------------
     STELLSCHRAUBEN FÜR DIE ILLUSTRATIONEN
     Nur diese sechs Werte anfassen, der Rest passt sich an.
     ...-w   = Breite      grösser = grösser
     ...-up  = nach oben   negativer = höher
     ------------------------------------------------------------------ */
  --illu-bowl-w:    128%;                        /* Breite in der Bowls-Spalte */
  --illu-bowl-up:   -52%;                        /* zieht die Schale nach oben */
  --illu-bowl-pull: -3.5rem;                     /* holt die Texte darunter nach */

  --illu-coffee-w:    clamp(7rem, 16vw, 14.5rem); /* Kanne und Tasse, Desktop */
  --illu-coffee-up:   -7rem;                      /* negativ = höher, neben Dragoni */
  --illu-coffee-left: 1cm;                        /* grösser = weiter Richtung MENU */

  --illu-coffee-w-m:  74%;                        /* Kanne auf dem Handy: Breite */
  --illu-coffee-up-m: -9rem;                      /* Handy: negativ = höher */

  --illu-girls-w:     clamp(15rem, 27vw, 25rem);  /* die zwei Gäste */
  --illu-girls-up:    -11rem;                    /* je negativer, desto höher */
  --illu-girls-right: 0cm;                       /* negativ = weiter nach rechts */
  --kitchen-up:       2cm;                        /* hebt Küche UND Gäste zusammen */

  background: var(--bg);
  color: var(--crm);
  padding-top: 4rem;            /* Platz für die fixierte Navigation */
}
.tafel ::selection { background: var(--org); color: var(--crm); }

/* Die Navigation liegt auf Grün — Creme statt Tinte */
/* :has() and the .is-card fallback are separate rules on purpose. In one
   selector list, a browser without :has() drops the whole rule — fallback
   included — and the nav stays dark on dark green. */
body:has(.tafel) .nav { color: #F8F6C6; }
body.is-card .nav { color: #F8F6C6; }

body:has(.tafel) .nav--solid {
  background: rgba(26, 79, 61, .94);
  box-shadow: 0 1px 0 rgba(248, 246, 198, .18);
}
body.is-card .nav--solid {
  background: rgba(26, 79, 61, .94);
  box-shadow: 0 1px 0 rgba(248, 246, 198, .18);
}

body:has(.tafel) .foot { background: #113A2C; }
body.is-card .foot { background: #113A2C; }

/* Das ausgeklappte Mobilmenü liegt sonst nur per transform ausserhalb des
   Bildes und blitzt beim Scrollen am unteren Rand auf. visibility nimmt es
   wirklich aus dem Fluss. */
@media (max-width: 52rem) {
  .nav__links {
    visibility: hidden;
    overflow: hidden;
    transition: transform .6s var(--ease), visibility 0s linear .6s;
  }
  body.nav-open .nav__links {
    visibility: visible;
    transition: transform .6s var(--ease), visibility 0s;
  }
}

/* --------------------------------------------------------------- Tafel -- */
.board { padding: clamp(.75rem, 1.6vw, 1.5rem) clamp(1rem, 2.4vw, 2.25rem); }
.board--two { padding-top: 0; }

.board__in {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  align-items: start;                /* verhindert die leere orange Fläche */
  max-width: 1500px;
  margin-inline: auto;
}
@media (min-width: 68rem) {
  .board__in      { grid-template-columns: minmax(0, 1fr) minmax(340px, 31%); }
  .board__in--two { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); }
}

.board__green { display: flex; flex-direction: column; gap: clamp(.75rem, 1.6vw, 1.25rem); }

/* Juice und Shake stehen IMMER nebeneinander, auf jeder Bildschirmbreite */
.groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.75rem, 2vw, 1.75rem);
}

/* ------------------------------------------------------ Displaytitel --- */
.dsp {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.1rem + 3.4vw, 3.75rem);
  line-height: .88;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: .3em;
}

/* Konturschrift: nur Umriss */
.dsp--out {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--crm);
  paint-order: stroke fill;
}
@supports not (-webkit-text-stroke: 1px red) {
  .dsp--out { color: var(--crm); }
}

/* Gefüllt mit Creme-Kontur — die Titel auf der orangen Tafel */
.dsp--fill {
  color: var(--bg);
  -webkit-text-stroke: 7px var(--crm);
  paint-order: stroke fill;
}
.dsp--solid { color: var(--bg); font-size: clamp(1.5rem, 1rem + 2vw, 2.375rem); }
.dsp--wide  { font-size: clamp(1.875rem, 1rem + 3.4vw, 3.5rem); }
.dsp--bowls { margin-top: .3em; }

/* MENU und die Kanne.
   Das Raster ist absichtlich dasselbe wie bei .groups, damit die Kanne
   genau unter der ERSTEN Shake-Spalte sitzt (Protein Elixir / Jungle).

   Handy  : Kanne links unter der Juice-Spalte, MENU darunter über volle Breite.
   Desktop: MENU links, Kanne rechts in der ersten Shake-Spalte. */
.markrow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(.75rem, 2vw, 1.75rem);
  align-items: end;
}

/* Die Kanne bekommt dieselbe Unterteilung wie .grp__cols,
   damit sie bündig mit der ersten Shake-Spalte steht. */
.markrow__slot { display: grid; grid-template-columns: 1fr; }
@media (min-width: 60rem) {
  .markrow__slot { grid-template-columns: repeat(2, 1fr); gap: clamp(.875rem, 1.8vw, 1.5rem); }
}
.markrow__slot .vid--coffee { grid-column: 1; justify-self: start; }

/* Handy: Kanne oben links, MENU darunter über beide Spalten */
.markrow .wordmark    { order: 2; grid-column: 1 / -1; }
.markrow .markrow__slot { order: 1; grid-column: 1; }

@media (min-width: 60rem) {
  .markrow .wordmark    { order: 0; grid-column: 1; }
  .markrow .markrow__slot { order: 0; grid-column: 2; }
}

/* Das grosse Wort MENU — sitzt direkt unter den vier Spalten */
.wordmark {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(3.5rem, 1.5rem + 9.5vw, 9.5rem);
  line-height: .78;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--crm);
  margin: -.06em 0 -.1em;
}

/* ------------------------------------------------------------ Spalten -- */
.grp__cols { display: grid; grid-template-columns: 1fr; gap: clamp(.875rem, 1.8vw, 1.5rem); }
@media (min-width: 60rem) { .grp__cols { grid-template-columns: repeat(2, 1fr); } }

.grp__col { display: flex; flex-direction: column; gap: clamp(.625rem, 1.2vw, .9375rem); }

/* ---------------------------------------------------------- Eintrag ---- */
.it__n {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1rem, .95rem + .4vw, 1.3125rem);
  line-height: 1.06;
  letter-spacing: .04em;
  color: var(--crm);
  margin-bottom: .12rem;
}
.it__d {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: clamp(.78125rem, .76rem + .2vw, .875rem);
  line-height: 1.24;
  color: var(--crm);
  max-width: 24ch;
}
.it__p {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem 1.125rem;
  margin-top: .18rem;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1rem, .95rem + .45vw, 1.3125rem);
  line-height: 1.05;
  color: var(--org);
}
.it__v b { font-weight: 500; margin-right: .1em; }

/* Kleines Creme-Schildchen: „Add to: …“ */
.pill {
  display: inline-block;
  align-self: flex-start;
  margin-top: .22rem;
  background: var(--crm);
  color: var(--bg);
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: clamp(.6875rem, .66rem + .15vw, .78125rem);
  line-height: 1.25;
  padding: .14em .42em;
  border-radius: 2px;
}
.pill--wide { max-width: 26ch; }

/* -------------------------------------------------------------- Panels - */
.pane {
  position: relative;
  border-radius: 30px 36px 30px 34px / 34px 30px 36px 30px;
  overflow: hidden;
}

/* Cremetafel plus Kanne daneben — die Kanne steht auf Grün, wie im Druck */
.creamrow { display: block; }

.pane--cream {
  background: var(--crm);
  color: var(--bg);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(1rem, 1.8vw, 1.5rem) clamp(1rem, 2vw, 1.75rem);
}
@media (min-width: 34rem) { .pane--cream { grid-template-columns: repeat(2, 1fr); } }

.pane--orange {
  background: var(--org);
  color: var(--crm);
  display: flex;
  flex-direction: column;
  align-self: start;                 /* Panel wächst nur so weit wie sein Inhalt */
}
.pane__body { padding: clamp(1rem, 1.8vw, 1.5rem); flex: 1; }

.pane--orange .it__n,
.pane--orange .it__d,
.pane--orange .it__p { color: var(--crm); }

/* Cremestreifen am unteren Rand der orangen Tafel */
.strip {
  background: var(--crm);
  color: var(--bg);
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: clamp(.75rem, .72rem + .2vw, .875rem);
  line-height: 1.3;
  padding: .6em clamp(1rem, 1.8vw, 1.5rem);
}

/* ------------------------------------------------- Bowls mit Video ----- */
.bowls { display: grid; grid-template-columns: 1fr; gap: clamp(.625rem, 1.2vw, .9375rem); }
@media (min-width: 26rem) {
  .bowls { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .bowls .vid--bowl { grid-column: 2; grid-row: 1; }
  .bowls .it:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .bowls .it:nth-of-type(2) { grid-column: 1; grid-row: 2; }
  .bowls .it:nth-of-type(3) { grid-column: 2; grid-row: 2; }
}

/* ----------------------------------------------- Punktlinien-Zeilen ---- */
.rows { display: grid; gap: .28rem; }
.row__top { display: flex; align-items: baseline; gap: .5rem; }
.row__n {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(.9375rem, .9rem + .4vw, 1.25rem);
  letter-spacing: .03em;
  flex: none;
}
.row__lead {
  flex: 1 1 auto;
  min-width: 1rem;
  height: 1px;
  transform: translateY(-.18em);
  background-image: radial-gradient(circle, currentColor 1.6px, transparent 1.7px);
  background-size: 11px 4px;
  background-repeat: repeat-x;
  opacity: .9;
}
.row__p {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(.9375rem, .9rem + .4vw, 1.25rem);
  flex: none;
}
.pane--cream .row__n,
.pane--cream .row__lead { color: var(--bg); }
.pane--cream .row__p { color: var(--org); }

.rows--dish { gap: .45rem; }
.rows--dish .row__d {
  display: block;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: clamp(.78125rem, .76rem + .2vw, .875rem);
  line-height: 1.24;
  margin-top: .04rem;
}

/* --------------------------------------------------- Persian Vibes ----- */
/* Persian Vibes — immer zwei Spalten, wie Juice und Shake */
.grp__cols--persian {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.875rem, 1.8vw, 1.5rem) clamp(.75rem, 2vw, 1.75rem);
  align-content: start;
}
.grp__cols--persian .it__d { max-width: 26ch; }

/* ====================================================== ILLUSTRATIONEN === */
/*
   Animiertes WebP mit echtem Alphakanal — die Striche sind bereits in
   Creme, der Hintergrund ist wirklich transparent. Damit sitzen die Clips
   direkt auf der Tafel, genau wie die gedruckten Zeichnungen, und duerfen
   auch auf Grün stehen. Kein invert, kein Blendmode, keine Tonspur.

   Browser ohne WebP bekommen ueber <picture> das PNG-Standbild.
*/
.vid { line-height: 0; }
.vid__el {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* Kanne und Tasse — steigt neben Dragoni auf.
   Grösse   über --illu-coffee-w
   Höhe     über --illu-coffee-up    (negativ = höher)
   Position über --illu-coffee-left  (grösser = näher an MENU) */
.vid--coffee {
  align-self: start;
  width: var(--illu-coffee-w);
  max-width: 100%;
}

/* Nur echte Handys (bis 640 px): grösser und so weit hoch, dass die Kanne
   neben Dragoni steht. Tablets und Laptops behalten die normalen Werte.
   Über --illu-coffee-w-m und --illu-coffee-up-m einstellbar. */
@media (max-width: 40rem) {
  .markrow__slot .vid--coffee {
    width: var(--illu-coffee-w-m);
    max-width: none;
    margin-top: var(--illu-coffee-up-m);
    justify-self: start;
  }
}

@media (min-width: 60rem) {
  .vid--coffee {
    margin-top: var(--illu-coffee-up);
    margin-left: calc(var(--illu-coffee-left) * -1);
  }
}

/* Schale — sitzt oben rechts in der Bowls-Spalte und ragt über
   die Überschrift hinaus, wie auf der gedruckten Tafel.
   Grösse über --illu-bowl-w, Höhe über --illu-bowl-up */
.vid--bowl {
  align-self: start;
  margin-left: auto;          /* Überhang läuft nach rechts, nicht über den Text */
  width: var(--illu-bowl-w);
  max-width: none;
  margin-top: var(--illu-bowl-up);
  margin-bottom: var(--illu-bowl-pull);   /* zieht Exo und Berry mit nach oben */
  position: relative;
  z-index: 1;
}
.vid--bowl .vid__el { transform: rotate(-2deg); }

/* Zwei Gäste — sitzen auf der Oberkante der orangen Tafel.
   Grösse über --illu-girls-w, Höhe über --illu-girls-up */
.board__right { position: relative; }
/* Handy: volle Breite, sitzt satt auf der orangen Tafel */
.vid--girls {
  width: 100%;
  max-width: none;
  margin: 0 0 -3rem;
}
@media (min-width: 68rem) {
  .board__right { padding-top: calc(var(--illu-girls-w) * .42 - var(--kitchen-up)); }
  .vid--girls {
    position: absolute;
    top: var(--illu-girls-up);
    right: var(--illu-girls-right);
    width: var(--illu-girls-w);
    margin: 0;
    z-index: 3;
  }
  .pane--kitchen { position: relative; z-index: 2; }
}

/* ---------------------------------------------------------- Druck ------ */
@media print {
  .nav, .foot { display: none !important; }
  body { padding-left: 0; }
  .tafel { padding-top: 0; }
  .board { page-break-after: always; }

}

/* ============================================================== reviews ==
   A horizontal rail, not a grid.

   Six reviews in a two-row grid make the section twice as tall while the
   second row is barely read. One row that slides sideways keeps the
   section the height of a single card and gives every review the same
   position on screen.

   Scrolling is native: scroll-snap does the alignment, the arrows only
   call scrollBy(). That means touch swipe, keyboard arrows and the
   scrollbar all work even when JavaScript never runs.
   ======================================================================== */

/* ---- tuning -----------------------------------------------------------
   --rev-per-view    cards visible at once, per breakpoint below
   --rev-gap         space between cards
   --rev-quote-room  headroom for the oversized quote glyph, which sits
                     above the card and would otherwise be clipped by the
                     scroll container
   --rev-lane        width reserved either side of the rail for the arrows
                     on laptop and up; zero on phones, where the arrows sit
                     underneath instead
   ---------------------------------------------------------------------- */
.revs-shell {
  --rev-quote-room: 2.75rem;
  --rev-lane: 0rem;

  position: relative;
  padding-inline: var(--rev-lane);

  /* The rail pads its own top to clear the quote glyph. Pulling the shell
     up by the same amount keeps the gap below the heading unchanged, and
     doing it here rather than on the rail means the shell box still lines
     up with the cards — which is what the arrows are positioned against. */
  margin-top: calc(var(--rev-quote-room) * -1);
}

.revs {
  --rev-per-view: 1;
  --rev-gap: clamp(1rem, 2.5vw, 1.75rem);

  display: flex;
  gap: var(--rev-gap);

  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;

  /* The glyph overhangs the card, and overflow-x makes this element clip
     on both axes. Pad the top, then pull the whole rail back up by the
     same amount so the spacing below the heading is unchanged. */
  padding-top: var(--rev-quote-room);
  padding-bottom: .5rem;

  /* Hidden scrollbar: the arrows and the snap points carry the affordance.
     Removing this line is the quickest way to debug a rail that will not
     move. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.revs::-webkit-scrollbar { display: none; }

/* Keyboard users focus the rail itself and scroll it with the arrow keys,
   so the focus ring has to be visible. */
.revs:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
  border-radius: 22px;
}

/* Card width is set entirely by --rev-per-view; every breakpoint lives in
   the "card width" table further down. Nothing else here needs touching. */

.rev {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--cream);
  border: 1px solid rgba(15, 74, 60, .14);
  border-radius: 22px;

  /* No shrinking and no growing: the width is arithmetic, so N cards plus
     N-1 gaps fill the rail exactly and the next card starts off-screen. */
  /* The trailing -.5px is not cosmetic. Three cards plus two gaps are
     meant to total exactly 100%, but browsers round each flex-basis up to
     the nearest device pixel, so the sum can land a fraction over the rail
     width. The rail then scrolls by one or two pixels and the third card
     arrives with a hairline shaved off its right edge. Half a pixel per
     card absorbs the rounding. */
  flex: 0 0 calc(
    (100% - (var(--rev-per-view) - 1) * var(--rev-gap)) / var(--rev-per-view)
    - .5px
  );
  scroll-snap-align: start;
}

/* An oversized quotation mark, cropped by the card. Pacifico gives it the
   handwritten curl that matches the brand's script voice. */
.rev::before {
  content: '\201C';
  position: absolute;
  top: -.35em;
  right: .5rem;
  font-family: var(--ff-script);
  font-size: 6rem;
  line-height: 1;
  color: var(--saffron);
  opacity: .28;
  pointer-events: none;
}

.rev__stars {
  font-size: 1.0625rem;
  letter-spacing: .12em;
  color: var(--vermil);
  line-height: 1;
}

.rev__q {
  margin: 0;
  flex: 1;
}
.rev__q p {
  font-family: var(--ff-read);
  font-weight: 300;
  font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem);
  line-height: 1.72;
  color: var(--ink);
}

.rev__by {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .75rem;
  padding-top: .875rem;
  border-top: 1px solid rgba(15, 74, 60, .14);
}

.rev__name {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--forest);
}

.rev__meta {
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .55;
}

/* ---------------------------------------------------------------- foot --
   Arrows on one side, the optional "read them all" button on the other.
   When the button is absent the arrows simply sit alone on the left.
   ------------------------------------------------------------------------ */
.revs__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
}
.revs__foot:empty { display: none; }

/* Hidden until motion.js confirms the rail actually overflows: with three
   reviews on a wide screen there is nothing to scroll to. */
/* Phones: a centred pair under the rail. */
.revs__nav {
  display: flex;
  justify-content: center;
  gap: .625rem;
  margin-top: 1.5rem;
}
.revs__nav[hidden] { display: none; }

.revs__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 100px;
  border: 1.5px solid var(--forest);
  color: var(--forest);
  background: transparent;
  transition: background .3s var(--ease), color .3s var(--ease),
              opacity .3s var(--ease), transform .3s var(--ease);
}
.revs__arrow svg { width: 1.125rem; height: 1.125rem; }
.revs__arrow:hover:not(:disabled) {
  background: var(--forest);
  color: var(--cream-2);
  transform: translateY(-2px);
}
.revs__arrow:focus-visible {
  outline: 2px solid var(--vermil);
  outline-offset: 3px;
}
/* Kept in the layout rather than hidden, so the pair never jumps around. */
.revs__arrow:disabled {
  opacity: .3;
  cursor: default;
}

.revs__more { margin: 0; }

/* Phones only — must not bleed into tablets. */
@media (max-width: 40rem) {
  .rev { border-radius: 18px; }
  .rev::before { font-size: 4.5rem; }

  .revs__foot { justify-content: center; }
}

/* Someone who asked the system for less movement still needs the rail, so
   only the easing is dropped, never the scrolling itself. */
@media (prefers-reduced-motion: reduce) {
  .revs__arrow { transition: none; }
  .revs__arrow:hover:not(:disabled) { transform: none; }
}

/* ============================================================== contact ==
   Append to the end of assets/css/main.css, after the reviews block.
   ======================================================================== */

/* Sub-pages have no hero, so the fixed nav needs room. */
.page { padding-top: clamp(4.5rem, 10vh, 7rem); }

.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 60rem) {
  .contact { grid-template-columns: 1.15fr .85fr; }
}

/* ------------------------------------------------------------- fields -- */
.fld { margin-bottom: 1.25rem; }

.fld label {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--forest);
}

.fld__opt {
  margin-left: .4rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: .55;
}

.fld input,
.fld select,
.fld textarea {
  width: 100%;
  padding: .8125rem 1rem;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream-2);
  border: 1px solid rgba(15, 74, 60, .22);
  border-radius: 12px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.fld textarea { resize: vertical; min-height: 9rem; line-height: 1.6; }

.fld input:focus,
.fld select:focus,
.fld textarea:focus {
  background: #fff;
  border-color: var(--forest);
}

.fld input[aria-invalid="true"],
.fld textarea[aria-invalid="true"] {
  border-color: var(--vermil);
  background: rgba(228, 87, 46, .05);
}

.fld__err {
  display: block;
  margin-top: .375rem;
  font-family: var(--ff-ui);
  font-size: .8125rem;
  color: var(--vermil);
}

.fld__row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 34rem) {
  .fld__row { grid-template-columns: 1fr 1fr; }
}

.fld__hint {
  margin: 1rem 0 1.5rem;
  font-family: var(--ff-read);
  font-weight: 300;
  font-size: .8125rem;
  line-height: 1.6;
  opacity: .6;
}

/* The honeypot must be unreachable but not display:none — some bots skip
   hidden inputs, and screen readers get aria-hidden on the wrapper. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------- notices -- */
.note {
  margin-bottom: 1.5rem;
  padding: .9375rem 1.125rem;
  font-family: var(--ff-ui);
  font-size: .9375rem;
  border-radius: 12px;
  border-left: 4px solid;
}
.note--ok  { background: rgba(127, 176, 105, .16); border-color: var(--leaf);   color: var(--forest-d); }
.note--err { background: rgba(228, 87, 46, .12);  border-color: var(--vermil); color: #8a2d12; }

/* --------------------------------------------------------------- aside -- */
.contact__side {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--cream-2);
  border: 1px solid rgba(15, 74, 60, .14);
  border-radius: 22px;
}
.contact__side .hours { margin-bottom: 1.5rem; }

.contact__note {
  font-family: var(--ff-read);
  font-weight: 300;
  font-size: .875rem;
  line-height: 1.65;
  opacity: .7;
}

/* ----------------------------------------------------------------- map -- */
.mapwrap { line-height: 0; }
.mapwrap iframe {
  display: block;
  width: 100%;
  height: clamp(18rem, 42vh, 26rem);
  border: 0;
  filter: saturate(.85);
}

/* Phones only. */
@media (max-width: 40rem) {
  .contact__side { border-radius: 18px; }
}

/* ========================================================== responsive ==
   Appended last on purpose: everything here has to win over the blocks
   above it without raising specificity anywhere else.

   Fixes three things that were breaking on phones:
     1. the page could be dragged sideways
     2. the menu button had no styling and no touch target
     3. Lenis kept scrolling the page behind the open menu
   ======================================================================== */

/* ------------------------------------------------------ 1. no side drag --
   body already had overflow-x: hidden, but on the root element `hidden`
   turns the viewport into a scroll container, which is exactly what lets
   Android pan sideways once any child sticks out. `clip` forbids the
   scroll entirely instead of merely hiding the bar, and unlike `hidden`
   it does not break position: sticky further down the page.
   ------------------------------------------------------------------------ */
html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
  max-width: 100%;
}

/* German compounds are long and the display sizes are large. Without this
   a single word like "Kaltgepresst" is what pushes the layout sideways on
   a 360px screen. Headings may break mid-word; body copy may not. */
.hero__title,
.section__title,
.card__name,
.rev__name {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

/* Media never wider than its box, whatever the intrinsic size says. */
img, video, svg, iframe { max-width: 100%; }


/* ------------------------------------------------- 2. the menu button --
   Was an unstyled text button roughly 13px tall. Now a proper 44px target
   with a drawn icon, which is the minimum a thumb can reliably hit.
   ------------------------------------------------------------------------ */
@media (max-width: 52rem) {

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    z-index: 2;
    margin-left: auto;

    /* The target, not the ink. */
    min-height: 44px;
    min-width: 44px;
    padding: .5rem .75rem;
    margin-right: calc(var(--gut) * -.5);   /* keeps the ink optically aligned */

    font: inherit;
    color: inherit;
    border-radius: 100px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .nav__toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }

  /* Icon drawn from the button's own box so it inherits colour with the
     nav as it turns solid. */
  .nav__toggle::before {
    content: '';
    width: 20px;
    height: 14px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transition: transform .4s var(--ease), border-color .4s var(--ease);
  }

  /* Open state: the label flips to a cross-ish mark and the panel colour
     takes over, since the button now sits on the forest overlay. */
  body.nav-open .nav__toggle { color: var(--cream); }
  body.nav-open .nav__toggle::before {
    transform: rotate(90deg) scaleX(.55);
  }

  /* The panel itself. It was centred with no top padding, so on short
     landscape screens the first link slid under the brand. */
  .nav__links {
    padding-top: max(5.5rem, env(safe-area-inset-top));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Full-width rows: on a phone the tap target should be the line, not
     just the four letters on it. */
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding-block: .5rem; }

  /* DE / EN were two 12px links about 18px apart. */
  .lang a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: .25rem;
  }
  body.nav-open .lang { color: var(--cream); }
}

/* Narrow phones: the brand, the language switch and the button stop fitting
   on one line around here, so the button loses its word and keeps its icon. */
@media (max-width: 26rem) {
  .nav { gap: .75rem; }
  .nav__toggle { font-size: 0; gap: 0; }
  .nav__toggle::before { width: 22px; }
  .nav__brand { font-size: 1.25rem; }
}


/* ------------------------------------------------------- 3. the rail ----
   On a phone the card is not quite full width, so the edge of the next one
   stays visible. That sliver is what tells someone there is more to see —
   arrows alone are easy to miss under a card.
   ------------------------------------------------------------------------ */
@media (max-width: 46rem) {
  .revs { scroll-padding-inline-start: 0; }
  .revs__foot { margin-top: 1.5rem; }
  .revs__arrow { width: 2.75rem; height: 2.75rem; }
}

/* Coarse pointers get proximity snapping. Mandatory snapping fights the
   thumb on Android when a flick lands between two cards. */
@media (pointer: coarse) {
  .revs { scroll-snap-type: x proximity; }
}


/* ------------------------------------------------------- 4. wide screens --
   The layout stopped adapting above 1320px. On a 1440p or 4K monitor the
   text column became a thin ribbon in the middle of a very empty page.
   ------------------------------------------------------------------------ */
@media (min-width: 100rem) {
  :root {
    --maxw: 1560px;
    --gut: 6rem;
  }
  .section { padding-block: clamp(6rem, 9vh, 10rem); }
}


/* ------------------------------------------------- 5. short landscape ----
   Phone held sideways: 100svh of hero leaves no room for anything else,
   and the fixed nav eats a third of it.
   ------------------------------------------------------------------------ */
@media (max-height: 30rem) and (orientation: landscape) {
  .hero { min-height: 32rem; }
  .hero__inner { padding-block: 4rem 2.5rem; }
  .nav__links {
    justify-content: flex-start;
    font-size: 1.125rem;
    gap: .75rem;
  }
}

/* ================================================ reviews: arrow lane ==
   Laptop and up: the arrows sit fully outside the cards.

   Reserving the lane on the shell rather than reaching into the page
   gutter is what makes this safe at every width. The gutter is
   clamp(1.25rem, 5vw, 5rem), which is only about 57px at the 72rem
   breakpoint — narrower than the button. Padding the shell instead means
   the rail simply gives up the space, so the arrows can never be the
   thing that pushes the page sideways.
   ======================================================================== */

@media (min-width: 72rem) {
  /* No reserved lane any more. The rail gets the full width of .wrap and
     the buttons hang outside it, in the page gutter that was already
     empty. That hands roughly 136px back to the cards. */
  .revs-shell { --rev-lane: 0rem; }

  /* The container spans the shell and ignores the pointer; only the two
     buttons inside it are clickable, so the rail underneath still takes
     wheel and drag input across its whole width. */
  .revs__nav {
    position: absolute;
    inset: 0;
    display: block;
    margin-top: 0;
    pointer-events: none;
  }

  .revs__arrow {
    position: absolute;
    /* The shell is taller than the cards by the quote headroom, so half of
       that offset re-centres the button against the card itself. */
    top: calc(50% + var(--rev-quote-room) / 2);
    transform: translateY(-50%);
    pointer-events: auto;

    /* Sized to fit the gutter, which is clamp(1.25rem, 5vw, 5rem) — about
       57px right at this breakpoint. 44px of button plus the 8px offset
       below leaves a few pixels of slack and still clears the 44px minimum
       touch target. It grows again at 90rem, where the gutter does. */
    width: 2.75rem;
    height: 2.75rem;
  }

  /* right: 100% puts the button's right edge exactly on the rail's left
     edge; the margin then pushes it clear. Nothing overlaps the cards. */
  .revs__arrow[data-rev-prev] { right: 100%; margin-right: .5rem; }
  .revs__arrow[data-rev-next] { left:  100%; margin-left:  .5rem; }

  /* translateY has to be repeated or the hover lift would drop the button
     back to the top of the shell. */
  .revs__arrow:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.06);
  }
}

/* The gutter reaches 72px here and is capped at 80px, so the buttons can
   go back to full size without ever touching the cards. */
@media (min-width: 90rem) {
  .revs__arrow { width: 3.25rem; height: 3.25rem; }
  .revs__arrow svg { width: 1.25rem; height: 1.25rem; }
  .revs__arrow[data-rev-prev] { margin-right: .75rem; }
  .revs__arrow[data-rev-next] { margin-left:  .75rem; }
}


/* ==================================================== overflow repairs ==
   Flex and grid items default to min-width: auto, which means they refuse
   to shrink below their content. Two places where that pushed content off
   a phone screen, both only in German, where the words are longer.
   ======================================================================== */

/* ---- the opening hours table ------------------------------------------
   Each row is a flex pair: the day on the left, the times on the right.
   "Donnerstag" plus "07:30 – 02:30 Uhr" is wider than a 360px column and
   neither half was allowed to give way, so the table ran off the edge.
   ------------------------------------------------------------------------ */
.visit > *,
.dl > *,
.hsets > * { min-width: 0; }

.hours { width: 100%; }

.hours li {
  flex-wrap: wrap;          /* times drop under the day rather than overflow */
  gap: .125rem 1rem;
  min-width: 0;
}
.hours li > * { min-width: 0; }

/* Long addresses, emails and phone numbers in the same block. */
.dl__v { overflow-wrap: break-word; }

/* ---- buttons ----------------------------------------------------------
   inline-flex plus uppercase plus .1em tracking makes a German label such
   as "Auf Google Maps finden" noticeably wider than its English
   counterpart, and the button had nothing telling it to wrap or shrink.
   ------------------------------------------------------------------------ */
.btn {
  max-width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}

.btn-row { width: 100%; }
.btn-row .btn { flex: 0 1 auto; }

/* Narrow phones: tighten the tracking and the side padding before the
   label is forced onto a second line. */
@media (max-width: 26rem) {
  .btn {
    letter-spacing: .06em;
    padding-inline: 1.25rem;
  }
  .btn-row { flex-direction: column; align-items: stretch; }
}

/* ============================================== reviews: card width ==
   One number controls it: --rev-per-view is how many cards fill the rail,
   and the card width is derived from it. Lower it and the cards get wider.

   Whole numbers from tablet up, so the visible cards are always complete.
   A fractional value leaves the next card sliced down the middle, which is
   a useful "there is more to the right" hint on a short card but reads as
   a rendering fault on a tall one — and these cards are tall, because the
   reviews run long. The arrows carry that hint instead.

   The phone keeps 1.08 for exactly the opposite reason: with one card at a
   time and the arrows below the fold of the card, the peeking edge is the
   only thing on screen saying the row moves.

   Since the arrows now sit out in the page gutter rather than in a
   reserved lane, three cards here are wider than three were before —
   the 136px the lane used to take is back in the cards.
   ======================================================================== */

@media (min-width: 46rem)  { .revs { --rev-per-view: 2; } }
@media (min-width: 72rem)  { .revs { --rev-per-view: 3; } }
@media (max-width: 46rem)  { .revs { --rev-per-view: 1.08; } }

/* The cards were made taller by a larger quote size and fatter padding,
   both added back when the plan was two wide cards per view. At three per
   view that only costs height: fewer characters fit on a line, so the card
   grows downwards. Back to the base sizes, with a slightly tighter leading
   than the 1.72 used elsewhere — a card is not a paragraph of body copy. */
@media (min-width: 72rem) {
  .rev { padding: clamp(1.75rem, 2vw, 2.25rem); }
  .rev__q p { line-height: 1.62; }
}

/* ========================================== reviews: long review clamp ==
   Long reviews are cut after a fixed number of lines and end in an
   ellipsis. Two reasons, one visual and one editorial.

   Visual: cards in a row are forced to the height of the tallest one, so a
   single 330-character review stretches all three and leaves the short
   ones half empty. Capping the lines caps the whole row.

   Editorial: a card is a taster. The full text lives on the Google
   listing, which the button under the rail links to.

   --rev-lines is the only number to change. Set it high enough that most
   reviews are untouched — a clamp that fires on every card reads as a
   layout that does not fit its content.
   ======================================================================== */

.rev__q p {
  --rev-lines: 10;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--rev-lines);
          line-clamp: var(--rev-lines);
  overflow: hidden;
}

@media (min-width: 46rem) { .rev__q p { --rev-lines: 9; } }
@media (min-width: 72rem) { .rev__q p { --rev-lines: 7; } }

/* Anchor targets get tabindex="-1" from motion.js so keyboard focus follows
   the smooth scroll. They are sections, not controls: no focus ring. */
[tabindex="-1"]:focus { outline: none; }
