@charset "utf-8";
/* ============================================================================
   Carrer de Morei — Designwelt der Gruppe

   Der Gegenstand ist das gerahmte Schild an der Wand: das emaillierte
   Strassenschild, die gravierte Hausnummer, das Siegel neben der Tuer. Alle
   drei Marken sind bereits genau das, zwei Rundsiegel und eine Oval-Kartusche.
   Der Stein traegt, das Emailschild spricht.

   Reihenfolge: Marken · Grundlage · Schilder · Kopf · Fuss · Seiten · Karte
   ========================================================================= */

/* ------------------------------------------------------------------ Schrift */

@font-face {
  font-family: "Marcellus SC";
  src: url("/assets/fonts/marcellus-sc.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------- Marken */

:root {
  /* mares — der Sandstein, aus dem Palma gebaut ist */
  --stone-0: #f7f2e7;
  --stone-1: #efe6d4;
  --stone-2: #e3d7bd;
  --stone-3: #cdbb96;
  --ink: #211d18;
  --ink-2: #4d443a;
  --ink-3: #6f6354;
  --gold: #b08a4a;

  /* Grundton der Gruppe; jedes Haus ueberschreibt ihn auf seinen Seiten */
  --accent: #2e5a52;
  --accent-deep: #22453f;
  --accent-soft: #e4e9e2;
  --on-accent: #f7f2e7;
  --on-accent-2: rgba(247, 242, 231, 0.78);

  --purple: #5b2fd1;

  --rule: rgba(33, 29, 24, 0.14);
  --rule-strong: rgba(33, 29, 24, 0.28);

  --strip-h: 34px;
  --head-h: 66px;

  --shell: 1180px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --plate: "Marcellus SC", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);

  /* Groessenleiter: acht Stufen, dazu drei fluide fuer Schilder und Titel */
  --fs-3xs: 0.6875rem;
  --fs-2xs: 0.75rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-ms: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.0625rem;
  --fs-xl: 1.125rem;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);

  /* Radienleiter */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
}

/* Haus-Akzente werden von build-site.py als data-Attribut gesetzt, damit die
   Farbe schon vor dem ersten Anstrich steht und nichts nachspringt. */
body[data-house="solivera"] {
  --accent: #2e5a52;
  --accent-deep: #22453f;
  --accent-soft: #e4e9e2;
}
body[data-house="la-martina"] {
  --accent: #0f6d5f;
  --accent-deep: #0b5449;
  --accent-soft: #deeae6;
}
body[data-house="fior-di-palma"] {
  --accent: #c0110f;
  --accent-deep: #8e0c0b;
  --accent-soft: #f6e7d9;
}

/* --------------------------------------------------------------- Grundlage */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--strip-h) + var(--head-h) + 1rem);
}

body {
  margin: 0;
  padding-top: var(--strip-h);
  background: var(--stone-0);
  color: var(--ink);
  font: 400 var(--fs-body) / 1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.shell {
  width: min(100% - 2 * var(--gap), var(--shell));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--stone-0);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus {
  left: 0;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Feine Steintextur, echtes Raster mit Alphamaske. Nur auf hellen Flaechen —
   dunkle Flaechen bleiben glatt, sonst wird das Email zur Tapete. */
.grain {
  position: relative;
}
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/mares.webp");
  background-size: 256px 256px;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.grain > * {
  position: relative;
}

/* Tabellenziffern gehoeren an Preise, Uhrzeiten und Zaehler, nicht in den
   Fliesstext: in Schibsted Grotesk zieht tnum auch Punkt, Komma und
   Doppelpunkt auf Ziffernbreite. */
.item__price,
.dish__price,
.hours,
.cat__n,
.walk b,
.number {
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------- Schilder */

/* Das Emailschild.

   Ein echtes Emailschild ist kein farbiges Rechteck: es hat einen gerollten
   Rand, der oben Licht faengt und unten abschattet, eine dunkle Kante dort wo
   die Emaille auf den Wulst trifft, eine eingebrannte Goldrippe als
   Innenkante — und es haengt an einer Wand, wirft also einen gerichteten
   Schatten nach unten rechts, keinen allseitigen Kartenschatten.

   Die Flaeche selbst bleibt glatt: kein Verlauf, kein Glanz, keine Textur.
   Das Material sitzt in der Kante, nicht im Feld. */
.plate {
  position: relative;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-sm);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    inset 0 0 0 9px var(--accent),
    inset 0 0 0 10px var(--gold),
    inset 0 0 0 11px var(--accent),
    0 2px 1px -1px rgba(33, 29, 24, 0.3),
    14px 20px 38px -26px rgba(33, 29, 24, 0.85);
}

/* Die Emaille springt an den Ecken ab — zwei Fehlstellen, immer dieselben,
   damit das Schild ein Gegenstand bleibt und kein Effekt wird. */
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 10px 9px, var(--stone-2) 0 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 13px) calc(100% - 8px),
      var(--stone-2) 0 2px, transparent 2.5px);
}

.plate-name {
  font-family: var(--plate);
  letter-spacing: 0.1em;
  line-height: 1.06;
  text-transform: uppercase;
}

/* Gravierte Hausnummer: Ziffer in Stein, mit einer Lichtkante unten. */
.number {
  font-family: var(--plate);
  font-size: 0.95em;
  letter-spacing: 0.06em;
}

/* Knöpfe sind ebenfalls Schilder, nur kleiner. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: var(--r-sm);
  font-family: var(--plate);
  font-size: var(--fs-ms);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease),
    background-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.btn--solid {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow:
    inset 0 0 0 1px rgba(247, 242, 231, 0.3),
    0 1px 2px rgba(33, 29, 24, 0.16),
    0 8px 18px -10px rgba(33, 29, 24, 0.5);
}
.btn--solid:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(247, 242, 231, 0.3),
    0 2px 3px rgba(33, 29, 24, 0.18),
    0 14px 26px -12px rgba(33, 29, 24, 0.55);
}

.btn--stone {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--rule-strong);
}
.btn--stone:hover {
  background: rgba(33, 29, 24, 0.05);
  transform: translateY(-2px);
}

.btn--onplate {
  background: var(--on-accent);
  color: var(--accent-deep);
}
.btn--onplate:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.6);
}

.btn--ghost-onplate {
  background: transparent;
  color: var(--on-accent);
  box-shadow: inset 0 0 0 1.5px rgba(247, 242, 231, 0.5);
}
.btn--ghost-onplate:hover {
  background: rgba(247, 242, 231, 0.12);
  transform: translateY(-2px);
}

/* Aktion im Wartezustand: die Angabe fehlt, also wird nichts scharf verlinkt. */
.btn--pending,
.pending {
  background: transparent;
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1.5px var(--rule);
  cursor: not-allowed;
}

/* ---------------------------------------------------------- Vorschaustreifen */

.preview-strip {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--strip-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.9rem;
  background: var(--purple);
  color: #fff;
  font-size: var(--fs-3xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.25;
}
.preview-strip b {
  font-weight: 700;
}

/* ------------------------------------------------------------------- Kopf */

.head {
  position: sticky;
  top: var(--strip-h);
  z-index: 80;
  height: var(--head-h);
  display: flex;
  align-items: center;
  background: rgba(247, 242, 231, 0.9);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.head__in {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  width: min(100% - 2 * var(--gap), var(--shell));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand__text {
  display: grid;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--plate);
  font-size: var(--fs-md);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand__addr {
  font-size: var(--fs-2xs);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
}
.nav a {
  position: relative;
  padding: 0.35rem 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.18s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav a:hover {
  color: var(--ink);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav a[aria-current="page"] {
  color: var(--ink);
}

.head .btn {
  min-height: 42px;
  padding: 0.55rem 1.05rem;
  font-size: var(--fs-xs);
}

/* Sprachwahl in Worten, nicht in Flaggen: eine Flagge bezeichnet einen Staat,
   keine Sprache, und ohne Text ist sie fuer Screenreader unbedienbar. */
.langs {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.langs a {
  padding: 0.3rem 0.42rem;
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-3);
  border-radius: var(--r-xs);
}
.langs a:hover {
  background: rgba(33, 29, 24, 0.07);
  color: var(--ink);
}
.langs a[aria-current="true"] {
  color: var(--on-accent);
  background: var(--accent);
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -0.4rem;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 21px;
  height: 1.5px;
  background: var(--ink);
  box-shadow:
    0 -6px 0 var(--ink),
    0 6px 0 var(--ink);
}

/* ------------------------------------------------------------------- Hero */

.hero {
  padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero__plate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.25rem, 6vw, 4.25rem) clamp(1.5rem, 5vw, 4rem)
    clamp(2.25rem, 5vw, 3.5rem);
  overflow: hidden;
}
.hero__text {
  grid-column: 1;
  grid-row: 1;
}
.hero__foot {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.hero__street {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: clamp(0.9rem, 2vw, 1.35rem);
  padding-top: clamp(0.9rem, 2vw, 1.35rem);
  border-top: 1px solid rgba(247, 242, 231, 0.28);
  font-family: var(--plate);
  font-size: clamp(0.8125rem, 1.6vw, 0.9375rem);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--on-accent-2);
}
/* Die Hausnummer ist in die Emaille geschnitten, kein Bedienelement-Chip. */
.hero__street .n {
  color: var(--on-accent);
  font-size: 1.35em;
  letter-spacing: 0.06em;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.3),
    0 -1px 0 rgba(255, 255, 255, 0.14);
}

.hero h1 {
  font-family: var(--plate);
  font-size: clamp(2.9rem, 10.5vw, 6rem);
  letter-spacing: 0.02em;
  line-height: 0.98;
  text-transform: uppercase;
}

.hero__claim {
  max-width: 34ch;
  margin-top: clamp(1rem, 2.4vw, 1.6rem);
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  line-height: 1.5;
  color: var(--on-accent-2);
}

.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Das Siegel sitzt auf dem Schild wie gestempelt: creme, in voller Deckung,
   nicht als geisterhaftes Wasserzeichen hinter dem Text. Es steht in der
   Spalte, traegt also Gewicht, statt eine Luecke zu hinterlassen. */
.hero__seal {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: clamp(110px, 17vw, 236px);
  opacity: 0.92;
  pointer-events: none;
}

/* Die Kartusche von Fior di Palma ist flach und breit; sie bleibt in der
   zweiten Spalte, sonst stuende sie unmittelbar ueber derselben Wortmarke. */
body[data-house="fior-di-palma"] .hero__seal {
  width: clamp(130px, 19vw, 224px);
}

/* Öffnungszustand. Die Auszeichnung sitzt im Markup, nicht im Skript — ohne
   JavaScript steht dort trotzdem eine Aussage. */
.state {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  padding: 0.35rem 0.8rem 0.35rem 0.7rem;
  border-radius: var(--r-pill);
  background: rgba(247, 242, 231, 0.14);
  box-shadow: inset 0 0 0 1px rgba(247, 242, 231, 0.28);
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
  color: var(--on-accent);
}
.state__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fd6a4;
}
.state[data-state="closed"] .state__dot {
  background: #e8a07a;
}
.state[data-state="unknown"] .state__dot {
  background: rgba(247, 242, 231, 0.55);
}

/* ---------------------------------------------------------------- Abschnitte */

.band {
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.band--stone {
  background: var(--stone-1);
  border-block: 1px solid var(--rule);
}
.band--accent {
  background: var(--accent);
  color: var(--on-accent);
}
.band--accent .lede,
.band--accent .muted {
  color: var(--on-accent-2);
}

.band h2 {
  font-family: var(--plate);
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.lede {
  max-width: 62ch;
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.7vw, 1.125rem);
  color: var(--ink-2);
}

.muted {
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--rule);
}

/* ------------------------------------------------------------ Empfehlungen */

/* Ein grosses Gericht traegt die Sektion, drei laufen als Zeilen daneben.
   Vier gleich grosse Karten waeren das dritte identische Raster der Seite. */
.dishes {
  display: grid;
  gap: clamp(1.1rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
}

.dish {
  display: flex;
  flex-direction: column;
  background: var(--stone-0);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(33, 29, 24, 0.08),
    0 14px 28px -20px rgba(33, 29, 24, 0.55);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.dish:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px rgba(33, 29, 24, 0.1),
    0 26px 42px -24px rgba(33, 29, 24, 0.6);
}
.dish img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--stone-2);
}
.dish__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.05rem 1.15rem 1.25rem;
}
.dish__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.9rem;
}
.dish h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.3;
}
.dish__price {
  flex: none;
  font-family: var(--plate);
  font-size: var(--fs-lg);
  color: var(--accent);
}
.dish p {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-2);
}

/* --------------------------------------------------------------- Kategorien */

.cats {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Kategorien sind gravierte Plaketten im Stein, keine Bildkacheln. */
.cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--stone-0);
  box-shadow:
    inset 0 0 0 1px var(--rule),
    0 1px 0 rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.cat:hover {
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(247, 242, 231, 0.3),
    0 10px 20px -14px rgba(33, 29, 24, 0.7);
}
.cat__name {
  font-family: var(--plate);
  font-size: var(--fs-sm);
  letter-spacing: 0.075em;
  text-transform: uppercase;
  line-height: 1.25;
}
.cat__n {
  flex: none;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.cat:hover .cat__n {
  color: var(--on-accent-2);
}

/* ------------------------------------------------------------------ Karte */

.carta {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  grid-template-columns: 236px minmax(0, 44rem);
  justify-content: center;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.rail {
  position: sticky;
  top: calc(var(--strip-h) + var(--head-h) + 1.25rem);
  max-height: calc(100vh - var(--strip-h) - var(--head-h) - 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rail ol {
  display: grid;
  gap: 1px;
}
.rail a {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  line-height: 1.3;
  text-decoration: none;
  color: var(--ink-2);
}
.rail a:hover {
  background: var(--stone-1);
  color: var(--ink);
}
.rail a[aria-current="true"] {
  background: var(--accent);
  color: var(--on-accent);
}
.rail a[aria-current="true"] .cat__n {
  color: var(--on-accent-2);
}

.search {
  position: relative;
  margin-bottom: 1rem;
}
.search input {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--stone-0);
  border: 0;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1.5px var(--rule);
}
.search input::placeholder {
  color: var(--ink-3);
}
.search input:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.section {
  scroll-margin-top: calc(var(--strip-h) + var(--head-h) + 1.5rem);
}
.section + .section {
  margin-top: clamp(2.4rem, 5vw, 3.75rem);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--accent);
}
.section__head h2 {
  font-family: var(--plate);
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.section__sub {
  max-width: 68ch;
  margin-top: 0.85rem;
  font-size: var(--fs-ms);
  color: var(--ink-2);
}

.items {
  margin-top: 0.4rem;
}
.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1.25rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}
.item__name {
  display: flex;
  align-items: baseline;
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.35;
}
/* Punktlinie zwischen Gerichtnamen und Preis: das klassische Mittel der
   Preisliste und die Blickfuehrung, die ueber die breite Spalte fehlt. */
.item__name::after {
  content: "";
  flex: 1 1 auto;
  min-width: 1.5rem;
  margin-left: 0.85rem;
  transform: translateY(-0.3em);
  border-bottom: 1px dotted var(--rule-strong);
}
.item__price {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--plate);
  font-size: var(--fs-lg);
  white-space: nowrap;
  color: var(--accent);
}
.item__desc {
  grid-column: 1;
  max-width: 72ch;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-2);
}
.item__desc + .item__desc {
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

.aller {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  grid-column: 1 / -1;
  margin-top: 0.25rem;
}
.aller li {
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-xs);
  background: var(--stone-1);
  color: var(--ink-2);
  font-size: var(--fs-2xs);
  letter-spacing: 0.03em;
  box-shadow: inset 0 0 0 1px var(--rule);
}

.item--hidden {
  display: none;
}

.legend {
  display: grid;
  gap: 0.55rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-top: 1.6rem;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.legend .k {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--stone-1);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-family: var(--plate);
  font-size: var(--fs-xs);
  color: var(--ink);
}

.empty {
  padding: 1.4rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--stone-1);
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink-2);
  font-size: var(--fs-ms);
}

/* ------------------------------------------------------------------- Plan */

.plan-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px var(--rule),
    0 20px 40px -30px rgba(33, 29, 24, 0.7);
}
.plan-wrap img {
  width: 100%;
}

.walk {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  margin-top: 1.1rem;
  font-size: var(--fs-ms);
  color: var(--ink-2);
}
.walk b {
  font-family: var(--plate);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--ink);
}

/* --------------------------------------------------------------- Haeuserzeile */

.houses {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: clamp(2rem, 5vw, 3.25rem);
}

/* Jede Karte ist ein Emailschild in der Farbe ihres Hauses. */
.house {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.7rem, 3vw, 2.4rem);
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    inset 0 0 0 8px var(--accent),
    inset 0 0 0 9px var(--gold),
    inset 0 0 0 10px var(--accent),
    0 2px 1px -1px rgba(33, 29, 24, 0.28),
    12px 16px 32px -24px rgba(33, 29, 24, 0.85);
}
.house:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    inset 0 0 0 8px var(--accent),
    inset 0 0 0 9px var(--gold),
    inset 0 0 0 10px var(--accent),
    0 3px 2px -1px rgba(33, 29, 24, 0.3),
    20px 30px 48px -26px rgba(33, 29, 24, 0.9);
}
.house img {
  width: 66px;
  height: 66px;
  margin-bottom: 0.35rem;
}
.house--fior-di-palma img {
  width: 132px;
  height: auto;
}
.house__name {
  font-family: var(--plate);
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.05;
}
.house__addr {
  font-family: var(--plate);
  font-size: var(--fs-xs);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-accent-2);
}
.house__what {
  font-size: var(--fs-ms);
  line-height: 1.55;
  color: var(--on-accent-2);
}
.house__go {
  margin-top: auto;
  padding-top: 0.3rem;
  font-family: var(--plate);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.house__go::after {
  content: " →";
}

/* ------------------------------------------------------------------ Kontakt */

.facts {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
.fact dt {
  font-family: var(--plate);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.band--accent .fact dt {
  color: var(--on-accent-2);
}
.fact dd {
  margin: 0.55rem 0 0;
  font-size: var(--fs-md);
  line-height: 1.6;
}
.fact a {
  text-underline-offset: 3px;
}

.hours {
  display: grid;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 24rem;
}
.hours div span:last-child {
  white-space: nowrap;
}
.hours [data-today="true"] {
  font-weight: 700;
}

/* -------------------------------------------------------------------- Fuss */

.foot {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  background: var(--ink);
  color: var(--stone-2);
  font-size: var(--fs-sm);
}
.foot a {
  color: var(--stone-1);
  text-underline-offset: 3px;
}
.foot__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.foot h2 {
  font-family: var(--plate);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 242, 231, 0.62);
}
.foot ul {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.foot__sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 242, 231, 0.18);
  font-size: var(--fs-xs);
  color: rgba(247, 242, 231, 0.62);
}
.foot__sign .heart {
  color: #e2705f;
}

/* -------------------------------------------------------------- Bewegung */

/* Ein Schild setzt sich beim Scrollen. Der Ausgangszustand ist sichtbar —
   nie opacity:0, sonst bleibt die Seite leer, wo der Beobachter nicht feuert. */
.rise {
  opacity: 0.999;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  /* .io setzt main.js erst, wenn ein IntersectionObserver wirklich da ist.
     Fehlt er, bleibt jede Sektion sichtbar — eine leere Seite darf kein
     moeglicher Zustand sein. */
  .io .rise {
    opacity: 0.001;
    transform: translateY(18px);
    transition:
      opacity 0.7s var(--ease),
      transform 0.7s var(--ease);
  }
  .io .rise.in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ------------------------------------------------------------------ Mobil */

@media (max-width: 960px) {
  .carta {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .rail ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .rail a {
    box-shadow: inset 0 0 0 1px var(--rule);
  }
  .rail .cat__n {
    display: none;
  }
}

@media (max-width: 800px) {
  :root {
    --strip-h: 44px;
    --head-h: 60px;
  }
  .burger {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: calc(var(--strip-h) + var(--head-h)) 0 auto;
    z-index: 70;
    display: grid;
    gap: 0;
    padding: 0.5rem var(--gap) 1.25rem;
    background: var(--stone-0);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 20px 40px -24px rgba(33, 29, 24, 0.6);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.28s var(--ease),
      opacity 0.28s var(--ease),
      visibility 0.28s;
  }
  .nav[data-open="true"] {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    padding: 0.85rem 0;
    font-size: var(--fs-md);
    border-bottom: 1px solid var(--rule);
  }
  .nav a::after {
    display: none;
  }
  .head .btn {
    display: none;
  }
  .brand__addr {
    display: none;
  }
  .hero__plate {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__seal {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 86px;
    margin-bottom: 1.25rem;
  }
  .hero__text {
    grid-row: 2;
  }
  .item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 460px) {
  .hero__acts .btn {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  .preview-strip,
  .head,
  .foot,
  .rail,
  .hero__acts {
    display: none;
  }
  body {
    padding-top: 0;
    background: #fff;
  }
}

/* Offene Angaben im Impressum: eine Liste, keine Plaketten. */
.todo {
  display: grid;
  gap: 0.55rem;
  max-width: 46ch;
  margin-top: 1.4rem;
}
.todo li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-2);
}
.todo li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

/* Gruppentitel innerhalb einer Kategorie (Weisswein, Rotwein …). Der Bestand
   fuehrt sie als preislose Position; hier stehen sie als Zwischentitel. */
.item--group {
  display: block;
  margin-top: 1.6rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--plate);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.items > .item--group:first-child {
  margin-top: 0.6rem;
}

/* --------------------------------------------------- Beruehrungsziele mobil
   Auf dem Handy muss jedes Bedienelement mindestens 44 px hoch sein — die
   Karte wird am Tisch mit dem Daumen bedient, nicht mit der Maus. */
@media (max-width: 800px) {
  .brand,
  .langs a,
  .rail a,
  .foot ul a,
  .todo a {
    min-height: 44px;
  }
  .langs a,
  .rail a,
  .foot ul a {
    display: flex;
    align-items: center;
  }
  .langs {
    gap: 0.15rem;
  }
  .langs a {
    padding-inline: 0.6rem;
  }
  .foot ul {
    gap: 0.15rem;
  }
}

/* ------------------------------------------- Sprachwahl innerhalb der Navigation
   Auf dem Handy ist im Kopf kein Platz fuer Hausnamen und vier Sprachen
   nebeneinander; die Sprachwahl wandert deshalb in das aufklappbare Menue und
   steht zusaetzlich im Fuss. */
.nav .langs {
  margin-left: 0.4rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--rule);
}

@media (max-width: 800px) {
  .nav .langs {
    margin: 0.9rem 0 0;
    padding: 0.9rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
    gap: 0.35rem;
  }
  .nav .langs a {
    flex: 1;
    justify-content: center;
    box-shadow: inset 0 0 0 1px var(--rule);
  }
}

/* ------------------------------------------ Kategorieleiste als Wischband
   Auf dem Handy stuenden zwoelf Plaketten untereinander vor dem ersten
   Gericht. Als eine wischbare Zeile bleibt der Einstieg kurz. */
@media (max-width: 960px) {
  .rail {
    position: sticky;
    top: calc(var(--strip-h) + var(--head-h));
    z-index: 40;
    margin-inline: calc(-1 * var(--gap));
    padding: 0.7rem var(--gap);
    background: rgba(247, 242, 231, 0.94);
    backdrop-filter: saturate(1.3) blur(10px);
    border-bottom: 1px solid var(--rule);
  }
  .rail ol {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rail ol::-webkit-scrollbar {
    display: none;
  }
  .rail li {
    scroll-snap-align: start;
  }
  .rail a {
    white-space: nowrap;
  }
  .search {
    margin-bottom: 0.7rem;
  }
}

/* Die Kartusche ist quer, nicht quadratisch — sonst wird sie im Kopf gestaucht. */
.brand img[width="68"] {
  width: 68px;
  height: auto;
}

/* ------------------------------------------- Empfehlungen: Setzung
   Nach .dish notiert: bei gleicher Spezifitaet gewinnt die spaetere Regel. */
.dishes__rest {
  display: grid;
  grid-auto-rows: 1fr;
  gap: clamp(0.7rem, 1.6vw, 1rem);
}
.dish--lead img {
  aspect-ratio: 16 / 11;
}
.dish--lead .dish__body {
  padding: clamp(1.15rem, 2vw, 1.6rem) clamp(1.15rem, 2vw, 1.6rem)
    clamp(1.35rem, 2.2vw, 1.75rem);
}
.dish--lead h3 {
  font-size: var(--fs-xl);
}
.dish--lead .dish__price {
  font-size: 1.3rem;
}
.dish--row {
  flex-direction: row;
  align-items: stretch;
}
.dish--row img {
  flex: none;
  align-self: stretch;
  width: 118px;
  height: auto;
  min-height: 100%;
  aspect-ratio: auto;
}
.dish--row .dish__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.85rem 1rem 0.9rem;
  justify-content: center;
  gap: 0.3rem;
}
.dish--row p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 820px) {
  .dishes {
    grid-template-columns: minmax(0, 1fr);
  }
  .dish--row img {
    width: 96px;
  }
}

/* Vorbehalt unter dem Öffnungszustand, nicht in der Pille. */
.state-note {
  max-width: 44ch;
  margin: 0.5rem 0 1.5rem;
  font-size: var(--fs-2xs);
  line-height: 1.5;
  color: var(--on-accent-2);
}

/* Der Lageplan hat auf jeder Seite dieselbe Breite; unterschiedlich gesetzt
   wirkte er auf dem Portal wie ein vergessener Rest. */
.plan-wrap {
  max-width: 880px;
}

/* -------------------------------------------- Portal: drei ungleiche Schilder
   Drei gleich grosse Kacheln wären das Kartenraster, das die Welt gerade
   verweigert. Die beiden Restaurants tragen das Feld, die Pizzeria zum
   Mitnehmen sitzt schmaler daneben — so wie sie im Viertel auch dasteht. */
@media (min-width: 900px) {
  .houses {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1.18fr) minmax(0, 0.86fr);
    align-items: stretch;
  }
  .house--solivera,
  .house--la-martina {
    padding-block: clamp(2rem, 3.4vw, 2.9rem);
  }
  .house--solivera .house__name,
  .house--la-martina .house__name {
    font-size: clamp(1.75rem, 3vw, 2.3rem);
  }
  .house--fior-di-palma {
    margin-top: 2.25rem;
  }
  .house--fior-di-palma .house__name {
    font-size: clamp(1.3rem, 2.1vw, 1.6rem);
  }
}
