/* ============================================================
   Pizzeria Mustermann — Handgeschriebenes Stylesheet
   Kein Framework, keine externen Anfragen. Schriften in /fonts.
   ============================================================ */

/* ---------- 0. Lokal gehostete Schriften ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #16110e;
  --ink-soft: #2a211b;
  --ink-mute: #6d6058;
  --cream: #faf5ec;
  --paper: #fffdf9;
  --amber: #d89a3c;
  --amber-deep: #a9701d;
  --tomato: #b8402c;
  --basil: #4a6b4f;
  --basil-deep: #35502f;
  --basil-light: #9fc3a0;
  --line: #e6dccc;
  --line-strong: #d3c5ae;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.11vw, 0.875rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.16vw, 1.05rem);
  --step-1: clamp(1.1rem, 1.03rem + 0.34vw, 1.35rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.72vw, 1.85rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.55rem + 2.6vw, 3.8rem);
  --step-5: clamp(2.6rem, 1.7rem + 4.4vw, 5.4rem);

  --wrap: 78rem;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --pad-y: clamp(3.5rem, 8vw, 7.5rem);
  --radius: 4px;
  --radius-lg: 10px;
  --head-h: 5.25rem;
  --shadow: 0 1px 2px rgba(22, 17, 14, 0.05), 0 12px 32px -18px rgba(22, 17, 14, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* --head-total setzt main.js per ResizeObserver auf die echte Kopfoehe */
  scroll-padding-top: calc(var(--head-total, 7.75rem) + 1.25rem);
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img,
svg,
video { display: block; max-width: 100%; height: auto; }

input,
button,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; padding: 0; }

ul[class], ol[class] { list-style: none; padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--amber-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 3. Schriften-Helfer ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 46ch;
}

.muted { color: var(--ink-mute); }

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. Layout ---------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: var(--pad-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Der erste Abschnitt nach dem Hero braucht oben weniger Luft,
   sonst wirkt der Einstieg leer. Unten bleibt der große Rhythmus. */
.hero + .section { padding-top: clamp(2.25rem, 4vw, 3.5rem); }

.section--cream { background: var(--cream); }
.section--ink {
  background: var(--ink);
  color: var(--cream);
}
.section--ink a:hover { color: var(--amber); }
.section--ink .lede,
.section--ink .muted { color: #b9aa9d; }
.section--ink .eyebrow { color: var(--amber); }

.head-block { max-width: 52ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.head-block--center { margin-inline: auto; text-align: center; }

.head-block h2 {
  font-size: var(--step-3);
  margin-bottom: 0.6rem;
}

/* Kopfzeile mit einem Link rechts daneben */
.head-block--aside {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

/* In engen Spalten reicht die volle Überschriftengröße nicht */
.head-block--sm h2 { font-size: var(--step-2); }

.rule {
  width: 3.5rem;
  height: 2px;
  background: var(--amber);
  border: 0;
  margin-block: 1.1rem 1.35rem;
}
.head-block--center .rule { margin-inline: auto; }

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.82rem 1.5rem;
  border: 1px solid var(--basil);
  border-radius: var(--radius);
  background: var(--basil);
  color: var(--cream);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--tomato); border-color: var(--tomato); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--basil); color: var(--basil); }
.btn--ghost:hover { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.section--ink .btn--ghost { color: var(--basil-light); border-color: var(--basil-light); }
.section--ink .btn--ghost:hover { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* Knopf und Textlink nebeneinander unter einem Abschnitt */
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.action-row + .form-note { margin-top: 0.9rem; }

/* Textlink mit Pfeil */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--amber-deep);
}
.tlink svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }

/* ---------- 6. Header ---------- */
.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 0; color: var(--cream); }

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar { background: var(--ink); color: #cfc2b6; }
.topbar__in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2rem;
  justify-content: space-between;
  padding-block: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.topbar p { display: flex; align-items: center; gap: 0.5rem; }
.topbar svg { width: 0.95rem; height: 0.95rem; color: var(--amber); flex: none; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--amber); }

.bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--head-h);
  transition: min-height 0.3s var(--ease);
}
.site-head.is-scrolled .bar__in { min-height: 4.1rem; }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img {
  width: clamp(9.5rem, 15vw, 13rem);
  height: auto;
  transition: width 0.3s var(--ease);
}

.burger {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.burger:hover { border-color: var(--ink); }
.burger__lines { display: grid; gap: 4px; width: 20px; }
.burger__lines span {
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] .burger__lines span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav__list { display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.65rem); }
.nav__list a {
  position: relative;
  display: block;
  padding-block: 0.4rem;
  font-size: 0.795rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--basil);
  white-space: nowrap;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--tomato);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav__list a:hover { color: var(--basil-deep); }
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__list a[aria-current="page"] { color: var(--basil-deep); }

.nav__scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(22, 17, 14, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.nav__scrim.is-on { opacity: 1; visibility: visible; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  display: grid;
  background: var(--ink);
  color: var(--cream);
  overflow: clip;
}
/* Folie, Text und Schleier liegen bewusst im gleichen Rasterfeld übereinander */
.hero__slides,
.hero__body,
.hero::after { grid-area: 1 / 1; }

.hero__slides { position: relative; min-height: clamp(30rem, 74vh, 42rem); }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}
.hero__slide.is-on { opacity: 1; pointer-events: auto; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 17, 14, 0.86) 0%, rgba(22, 17, 14, 0.55) 45%, rgba(22, 17, 14, 0.18) 100%),
    linear-gradient(0deg, rgba(22, 17, 14, 0.6), transparent 42%);
  pointer-events: none;
}
.hero__body {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  align-content: center;
  padding-block: clamp(3.5rem, 9vw, 6rem);
}
.hero__body > * { max-width: 40rem; }
.hero h1 {
  font-size: var(--step-5);
  font-weight: 400;
  line-height: 0.98;
  margin-bottom: 1rem;
}
.hero h1 em {
  display: block;
  font-style: italic;
  color: var(--amber);
}
.hero__lede {
  font-size: var(--step-1);
  color: #ddd0c4;
  max-width: 34ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero .btn { border-color: var(--cream); background: transparent; color: var(--cream); }
.hero .btn:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero .btn--solid { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.hero .btn--solid:hover { background: var(--cream); border-color: var(--cream); }

.hero__ctl {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hero__dots { display: flex; gap: 0.5rem; }
.hero__dot {
  width: 2rem;
  height: 3px;
  background: rgba(250, 245, 236, 0.32);
  border-radius: 2px;
  transition: background 0.3s var(--ease);
}
.hero__dot[aria-selected="true"] { background: var(--amber); }
.hero__arrow {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(250, 245, 236, 0.4);
  border-radius: 50%;
  color: var(--cream);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hero__arrow:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero__arrow svg { width: 1rem; height: 1rem; }

/* ---------- 8. Seitenkopf (Unterseiten) ---------- */
.page-head {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: clip;
}
.page-head img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 17, 14, 0.1), rgba(22, 17, 14, 0.58));
}
.page-head .wrap {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.5rem, 11vw, 6.5rem);
}
.page-head h1 {
  font-size: var(--step-4);
  font-weight: 400;
  margin-block: 0.5rem 0.75rem;
}
.page-head p { color: #cfc2b6; max-width: 48ch; }

/* ---------- 9. Karten ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.section--cream .card { background: var(--paper); }
.section--ink .card { background: var(--ink-soft); border-color: #3a2f28; }
.section--ink .card:hover { border-color: #55453a; }

.card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--amber-deep);
}
.card__icon svg { width: 1.3rem; height: 1.3rem; }
.section--ink .card__icon { border-color: #55453a; color: var(--amber); }
.card h3 { font-size: var(--step-1); }
.card p { font-size: var(--step--1); color: var(--ink-mute); line-height: 1.6; }
.section--ink .card p { color: #b9aa9d; }

/* Bildkarte */
.pic-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.pic-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.pic-card img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; transition: transform 0.7s var(--ease); }
.pic-card:hover img { transform: scale(1.05); }
.pic-card__body { padding: 1.15rem 1.25rem 1.35rem; }
.pic-card__body h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.pic-card__body p { font-size: var(--step--1); color: var(--ink-mute); }

/* ---------- 10. Split-Abschnitt (Bild + Text) ---------- */
.split {
  display: grid;
  gap: clamp(1.75rem, 4.5vw, 4.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
}
.split--rev .split__media { order: -1; }
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__body h2 { font-size: var(--step-3); margin-bottom: 0.35rem; }
.split__body p + p { margin-top: 1rem; }
.split__body .lede { margin-bottom: 1.25rem; }

.pull {
  padding: 1.15rem 0 1.15rem 1.35rem;
  border-left: 2px solid var(--amber);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-soft);
}
.section--ink .pull { color: #e6dbd1; }
/* Ein Zitat unter einem Absatz braucht Abstand, eines am Blockende nicht. */
p + .pull { margin-top: 1.75rem; }
.pull .pull__note { font-family: var(--font-body); font-size: 0.82rem; font-style: normal; }

.tick-list { display: grid; gap: 0.6rem; margin-block: 1.5rem; }
.tick-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--step--1); }
.tick-list svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.32rem; color: var(--basil); }
.section--ink .tick-list svg { color: var(--amber); }

/* ---------- 11. Zahlenkolonnen / Speisekarte ---------- */
.menu-cat { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.menu-cat > h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--step-2);
  margin-bottom: 0.35rem;
}
.menu-cat > h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.menu-cat > p { font-size: var(--step--1); color: var(--ink-mute); margin-bottom: 1.4rem; }
/* Der letzte Kapitelblock braucht keinen Absatz mehr. */
.menu-cat:last-child { margin-bottom: 0; }

.menu { display: grid; }
.menu-cols {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
}
.dish--sub .dish__name { font-size: var(--step-0); font-family: var(--font-body); font-weight: 600; }
.dish--sub .dish__price { font-size: var(--step-0); font-family: var(--font-body); }

.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 0.75rem;
  padding-block: 0.85rem;
  border-bottom: 1px dashed var(--line);
}
.dish:last-child { border-bottom: 0; }
.dish__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.25;
}
.dish__desc {
  grid-column: 1 / -1;
  font-size: var(--step--1);
  color: var(--ink-mute);
  line-height: 1.55;
  margin-top: 0.2rem;
  max-width: 62ch;
}
.dish__price {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--tomato);
  white-space: nowrap;
}
.dish__flag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--basil);
  vertical-align: 0.15em;
}

/* Preistabelle Pizza */
.price-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.price-table caption { text-align: left; color: var(--ink-mute); padding-bottom: 1rem; }
.price-table th,
.price-table td { padding: 0.9rem 0.75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 2px solid var(--line-strong);
}
.price-table th[scope="row"], .price-table td:first-child {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--ink);
}
.price-table td.num, .price-table th.num { text-align: right; white-space: nowrap; font-weight: 600; color: var(--tomato); }
.price-table tbody tr:hover { background: var(--cream); }
.price-table .col-note { color: var(--ink-mute); font-size: 0.85em; }

/* Wochenplan Mittagstisch */
.week { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.week caption { text-align: left; padding-bottom: 1.1rem; color: var(--ink-mute); }
.week th, .week td { padding: 1rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.week thead th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 2px solid var(--line-strong);
  background: var(--cream);
}
.week tbody th {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  white-space: nowrap;
}
.week tbody tr:hover { background: var(--cream); }
.week .tag { color: var(--basil); font-weight: 600; }

/* ---------- 11b. Tabellen-Überlauf ---------- */
/* Breite Karten auf schmalen Screens waagerecht schieben statt das Layout zu sprengen */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap > table { min-width: 34rem; }
/* Wisch-Hinweis: greift ab der Breite, ab der die breitere der beiden Tabellen
   (Mittagstisch, 564 px) nicht mehr passt. main.js verbirgt ihn sofort wieder,
   wenn real nichts übersteht. */
.table-hint { display: none; margin-bottom: 0.5rem; font-size: 0.78rem; color: var(--ink-mute); }
.table-hint.is-hidden { display: none; }
@media (max-width: 38.5rem) {
  .table-hint { display: block; }
}
/* Karten direkt unter einer Tabelle brauchen eigene Luft. */
.table-wrap + .grid { margin-top: clamp(2rem, 4vw, 3rem); }
.week td[colspan] { color: var(--ink-mute); font-style: italic; }

/* ---------- 12. Galerie ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.chip {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mute);
  transition: all 0.22s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.6rem, 1.4vw, 1rem);
}
/* Bildnachweis unter der Galerie */
.gal + .form-note { margin-top: 2rem; }
.gal__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  cursor: zoom-in;
}
.gal__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.gal__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(22, 17, 14, 0.72) 0%, rgba(22, 17, 14, 0) 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.gal__item:hover img { transform: scale(1.06); }
.gal__item:hover::after,
.gal__item:focus-visible::after { opacity: 1; }
.gal__cap {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.gal__item:hover .gal__cap,
.gal__item:focus-visible .gal__cap { opacity: 1; transform: none; }
.gal__item.is-hidden { display: none; }
.gal__item--tall img { aspect-ratio: 3 / 4; }
.gal__item--wide { grid-column: span 2; }
.gal__item--wide img { aspect-ratio: 8 / 3; }

@media (max-width: 40rem) {
  .gal__item--wide { grid-column: auto; }
  .gal__item--wide img { aspect-ratio: 4 / 3; }
}

/* ---------- 13. Lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(15, 11, 9, 0.96);
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  /* Sichtbarkeit wechselt beim Öffnen sofort (Fokus muss greifbar sein),
     beim Schließen erst nach dem Ausblenden. */
  transition: opacity 0.28s var(--ease), visibility 0s 0.28s;
}
.lb.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s var(--ease), visibility 0s 0s;
}
.lb__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid rgba(250, 245, 236, 0.12);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9aa9d;
}
.lb__close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(250, 245, 236, 0.3);
  border-radius: 50%;
  color: var(--cream);
  transition: background 0.2s var(--ease);
}
.lb__close:hover { background: rgba(250, 245, 236, 0.14); }
.lb__close svg { width: 1.1rem; height: 1.1rem; }
.lb__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem) var(--gutter);
  min-height: 0;
}
.lb__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}
.lb__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(250, 245, 236, 0.3);
  border-radius: 50%;
  background: rgba(22, 17, 14, 0.55);
  color: var(--cream);
  transition: background 0.2s var(--ease);
}
.lb__nav:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.lb__nav svg { width: 1.1rem; height: 1.1rem; }
.lb__prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lb__next { right: clamp(0.5rem, 2vw, 1.5rem); }
.lb__foot {
  padding: 1rem var(--gutter) 1.6rem;
  text-align: center;
}
.lb__cap { font-family: var(--font-display); font-size: var(--step-1); }
.lb__meta { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9c8f84; margin-top: 0.3rem; }

/* ---------- 14. Info-Leiste ---------- */
.info-strip {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.info-strip > div { background: var(--paper); padding: clamp(1.4rem, 3vw, 2rem); }
.section--cream .info-strip > div { background: var(--cream); }
.info-strip dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.55rem;
}
.info-strip dd { margin: 0; font-size: var(--step--1); line-height: 1.7; }
.info-strip dd + dd { margin-top: 0.15rem; }

.hours { display: grid; gap: 0.3rem; font-size: var(--step--1); }
.hours > div { display: flex; justify-content: space-between; gap: 1.5rem; }
.hours span:last-child { font-variant-numeric: tabular-nums; }
.hours .is-closed { color: var(--ink-mute); }

/* ---------- 15. Timeline ---------- */
.timeline { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline__year {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1;
  color: var(--amber-deep);
}
.timeline__body h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.timeline__body p { font-size: var(--step--1); color: var(--ink-mute); }

/* ---------- 16. Formulare ---------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field > label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field .req { color: var(--tomato); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 3px rgba(216, 154, 60, 0.2);
}
.field__err { font-size: 0.78rem; color: var(--tomato); min-height: 1.1rem; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--tomato); }
.field-row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.82rem; color: var(--ink-mute); }
.check input { width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; accent-color: var(--amber-deep); flex: none; }
.check__note { margin-top: 0.3rem; padding-left: 1.75rem; }
.form-note { font-size: 0.8rem; color: var(--ink-mute); }
.form-note a { color: var(--amber-deep); }
.section--ink .form-note a { color: var(--amber); }
.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--cream);
  font-size: 0.88rem;
}
.form-status.is-bad { border-color: var(--tomato); background: rgba(184, 64, 44, 0.08); color: #8d2f1f; }
.form-status[hidden] { display: none; }

/* ---------- 17. Rechtstexte ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-block: 2.5rem 0.9rem; }
.prose h3 { font-size: var(--step-1); margin-block: 1.9rem 0.6rem; }
.prose p + p, .prose ul + p { margin-top: 1rem; }
.prose ul { display: grid; gap: 0.5rem; margin-block: 1rem; padding-left: 1.15rem; }
.prose ul li { list-style: disc; }
.prose a { color: var(--amber-deep); }
.section--ink .prose a { color: var(--amber); }
.prose dl { display: grid; gap: 0.9rem; margin-block: 1rem; }
.prose dt { font-weight: 700; font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber-deep); }
.prose dd { margin: 0; font-size: var(--step--1); line-height: 1.75; }
.legal-note {
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--cream);
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-bottom: 2.5rem;
}

/* ---------- 18. Footer ---------- */
.site-foot {
  background: var(--ink);
  color: #b9aa9d;
  font-size: var(--step--1);
}
.foot-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.foot-grid h2, .foot-grid h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.1rem;
}
.foot-brand img { width: 11rem; margin-bottom: 1.15rem; }
.foot-grid p { line-height: 1.75; }
.foot-grid a { color: #b9aa9d; text-decoration: none; }
.foot-grid a:hover { color: var(--amber); }
.foot-list { display: grid; gap: 0.55rem; }
.foot-bottom {
  border-top: 1px solid rgba(250, 245, 236, 0.12);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
}
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.15rem; }

.to-top {
  position: fixed;
  right: clamp(0.9rem, 3vw, 2rem);
  bottom: clamp(0.9rem, 3vw, 2rem);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s var(--ease);
  text-decoration: none;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--amber-deep); color: #fff; }
.to-top svg { width: 1.1rem; height: 1.1rem; }

/* ---------- 19. Scroll-Reveal ---------- */
/* Ohne aktiviertes Skript bleiben alle Inhalte sichtbar:
   die Sperre gilt nur, wenn JS tatsächlich ausgeführt werden kann. */
@media (scripting: enabled) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 62rem) {
  .nav__list { gap: 0.85rem; }
  .nav__list a { font-size: 0.72rem; letter-spacing: 0.08em; }
}

@media (max-width: 52rem) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 95;
    width: min(21rem, 88vw);
    /* Der Kopf liegt mit z-index 200 ueber dem Drawer — die Liste muss
       unter ihm anfangen. */
    padding: calc(var(--head-total, 7.75rem) + 1.25rem) var(--gutter) 2.5rem;
    background: var(--ink);
    color: var(--cream);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    /* visibility sprang beim Schließen nach, damit die Slide-Animation sichtbar bleibt */
    transition: transform 0.4s var(--ease), visibility 0s 0.4s;
    box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.6);
  }
  .nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.4s var(--ease), visibility 0s 0s;
  }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav__list li { width: 100%; border-bottom: 1px solid rgba(250, 245, 236, 0.12); }
  .nav__list a {
    padding-block: 1.05rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--cream);
  }
  /* Kurzer roter Balken unter dem aktiven Punkt — auf dunklem Grund
     bleibt die Schrift hell, Grün wäre dort zu schwach. */
  .nav__list a::after { width: 2rem; height: 3px; }
  .nav__list a[aria-current="page"] { color: var(--amber); }
  .nav__list a:hover { color: var(--amber); }
  .topbar__in { justify-content: center; text-align: center; }
}

@media (max-width: 34rem) {
  .hero__ctl { right: auto; left: var(--gutter); }
  .timeline li { grid-template-columns: 1fr; gap: 0.4rem; }
  .dish { grid-template-columns: 1fr; }
  .dish__price { order: -1; font-size: var(--step-0); }
}

/* ---------- 21. Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 22. Print (Speisekarte) ---------- */
@media print {
  .site-head, .site-foot, .to-top, .lb, .chips, .hero__ctl, .btn, .tlink, .table-hint { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.45; }
  .section, .page-head .wrap { padding-block: 0.6rem; }
  .page-head { background: #fff; color: #000; }
  .page-head img, .page-head::after { display: none; }
  .page-head p { color: #000; }
  .dish, .price-table tr, .timeline li { break-inside: avoid; }
  .dish__price, .price-table td.num { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; }
}
