/* Bistro Rosmarin — neues Erscheinungsbild (Decision D18)

   Aufbau nach Katharinas Vorlage (ROSA-Theme) als Strukturvorbild:
   Schreibschrift ueber grosser Serifenschrift, Sternchen als Trenner, Wechsel
   aus Text, versetzten Bildpaaren und Bildbaendern, Punkte-Navigation.
   Modern umgesetzt: kein Ladebildschirm, keine fixierten Hintergruende
   (funktionieren auf iOS nicht), Bewegung ueber transform/clip-path.

   Schriften: Instrument Serif (Ueberschriften), Caveat (handschriftliche
   Akzente, aus dem Projekt-Briefing), Inter (Fliesstext).                    */

:root {
  --creme: #fbf3e7;
  --papier: #fffaf1;
  --tinte: #2a1d19;
  --gedaempft: #6b584b;      /* auf Creme 6,02:1 */
  --wein: #8c2f39;
  --wein-tief: #6a2029;
  --nacht: #1a1210;
  --oliv: #5c6b45;
  --senf: #e8b55c;           /* nur auf dunklem Grund */
  --hell-gedaempft: #cdbdaf; /* Nebentext auf Nacht */
  --linie: rgba(42, 29, 25, 0.14);
  --rahmen: #8c7a6b;         /* Rahmen von Bedienelementen, auf Creme >= 3:1 */

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --hand: 'Caveat', cursive;
  --text: 'Inter', system-ui, sans-serif;

  --rand: clamp(20px, 5vw, 64px);
  --kopf-hoehe: 76px;

  /* Farben fuer das geteilte Hinweisfenster */
  --accent: var(--wein);
  --surface: var(--papier);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-hoehe) + 20px); }
/* Die klebende Kopfzeile (und auf der Speisekarte die Filterleiste) darf weder
   Sprungziele noch per Tab fokussierte Felder verdecken (WCAG 2.4.11) */
html:has(.karten-leiste) { scroll-padding-top: calc(var(--kopf-hoehe) + 90px); }
body {
  margin: 0;
  background: var(--creme);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* hidden muss immer gewinnen, auch gegen display:grid/flex einzelner Bausteine */
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1; }
p { margin: 0 0 1em; }

.handschrift { font-family: var(--hand); font-weight: 600; line-height: 1; }

.demo-flag { background: var(--wein); color: #fff; text-align: center; font-size: 0.78rem; font-weight: 600; padding: 6px; position: relative; z-index: 60; }

.abschnitt { max-width: 1240px; margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--rand); }

/* ---------- Wiederkehrende Bausteine ---------- */

/* Schreibschrift, die halb ueber der Ueberschrift liegt (aus der Vorlage) */
.ueberzeile {
  display: inline-block;
  color: var(--wein);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  transform: rotate(-4deg);
  margin: 0 0 -0.12em 0.1em;
  position: relative;
  z-index: 1;
}
/* Doppelte Klasse mit Absicht: Textspalten-Regeln wie ".geschichte__text p"
   (0,1,1) haben die Ueberzeile sonst grau gefaerbt. Dunkle Abschnitte setzen
   ihre Farbe weiter unten mit .werte .ueberzeile (gleiche Staerke, spaeter). */
.handschrift.ueberzeile { color: var(--wein); }
.titel { font-size: clamp(2.9rem, 6.2vw, 5.4rem); letter-spacing: -0.01em; }

/* Sternchen als Trenner */
.stern {
  display: block;
  width: 22px;
  height: 22px;
  margin: 22px 0 26px;
  background: var(--wein);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--wein);
  color: #fff;
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.knopf:hover { background: var(--wein-tief); transform: translateY(-2px); }
.knopf--hell { background: #fff; color: var(--wein); }
.knopf--hell:hover { background: var(--senf); color: var(--tinte); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wein);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
}
.textlink::after { content: "→"; transition: transform 0.25s ease; }
.textlink:hover::after { transform: translateX(5px); }

/* ---------- Kopfzeile ---------- */
/* Klebt oben und liegt ueber dem Held (negativer Aussenabstand). Die
   Unschaerfe sitzt bewusst auf ::before und NICHT auf der Kopfzeile selbst:
   backdrop-filter macht ein Element zum Bezugsrahmen fuer position:fixed —
   das mobile Menue waere sonst in der Kopfzeile eingesperrt. */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--kopf-hoehe);
  margin-bottom: calc(var(--kopf-hoehe) * -1);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--rand);
  color: #fff;
  transition: color 0.3s ease;
}
.kopf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 243, 231, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--linie);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.kopf.ist-fest { color: var(--tinte); }
.kopf.ist-fest::before { opacity: 1; }

.kopf__marke {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.kopf__marke em { font-style: italic; }

.kopf__nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.kopf__nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 0;
}
.kopf__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.kopf__nav a:hover::after,
.kopf__nav a[aria-current="page"]::after { transform: scaleX(1); }

.kopf__cta {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  color: inherit;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.kopf__cta:hover { background: #fff; color: var(--wein); border-color: #fff; }
.kopf.ist-fest .kopf__cta { background: var(--wein); border-color: var(--wein); color: #fff; }
.kopf.ist-fest .kopf__cta:hover { background: var(--wein-tief); border-color: var(--wein-tief); }

.kopf__nav-cta { display: none; }

.kopf__menue {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: inherit;
  font: 600 0.9rem var(--text);
  cursor: pointer;
  padding: 10px 0;
  position: relative;
  z-index: 3;
}
.kopf__menue-striche { display: grid; gap: 6px; width: 24px; }
.kopf__menue-striche span { display: block; height: 2px; background: currentColor; transition: transform 0.3s ease; }

/* ---------- Punkte-Navigation ---------- */
.punkte {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 16px;
  mix-blend-mode: difference;
}
.punkte a {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  transition: background 0.3s ease, transform 0.3s ease;
}
.punkte a[aria-current="true"] { background: #fff; transform: scale(1.15); }
.punkte a span {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Held ---------- */
.held {
  position: relative;
  min-height: max(100svh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.held .held__medien { position: absolute; inset: 0; z-index: -2; }
.held__bild {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  animation: heldZoom 2.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heldZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Schleier: oben dunkel fuer die Kopfzeile, unten links dicht fuer den Text.
   Werte gemessen, siehe decisions.md D18. */
.held__schleier {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 11, 9, 0.62) 0%, rgba(18, 11, 9, 0) 22%),
    linear-gradient(0deg, rgba(18, 11, 9, 0.92) 0%, rgba(18, 11, 9, 0.7) 38%, rgba(18, 11, 9, 0.18) 72%, rgba(18, 11, 9, 0) 100%),
    linear-gradient(90deg, rgba(18, 11, 9, 0.5) 0%, rgba(18, 11, 9, 0) 65%);
}

.held__inhalt {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--rand) clamp(96px, 14vh, 150px);
}
.held__notiz {
  color: var(--senf);
  font-size: clamp(2rem, 3.6vw, 3rem);
  transform: rotate(-4deg);
  transform-origin: left bottom;
  margin: 0 0 0.05em 0.1em;
  animation: heldAuf 0.9s ease 0.1s both;
}
/* Die Zeilen sind im HTML fest gesetzt (je ein .zeile-Block). Keine
   max-width in ch: die rechnet mit der Titelgroesse und hat die drei Zeilen
   in fuenf zerbrochen. Stattdessen skaliert die Schrift mit der Breite. */
.held__titel {
  font-size: clamp(2.9rem, 7.4vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}
.held__titel em { font-style: italic; color: var(--senf); }

.zeile { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.zeile > span { display: block; transform: translateY(110%); animation: zeileHoch 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.zeile:nth-child(1) > span { animation-delay: 0.2s; }
.zeile:nth-child(2) > span { animation-delay: 0.34s; }
.zeile:nth-child(3) > span { animation-delay: 0.48s; }
@keyframes zeileHoch { to { transform: translateY(0); } }

.held__leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  margin-top: 40px;
  animation: heldAuf 0.9s ease 0.8s both;
}
@keyframes heldAuf { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.held__status {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.held__punkt {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bdb3aa;
}
.held__status.ist-offen .held__punkt { background: #8fdc8f; animation: puls 2s ease-out infinite; }
@keyframes puls {
  0% { box-shadow: 0 0 0 0 rgba(143, 220, 143, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(143, 220, 143, 0); }
}
.held__ort { grid-column: 2; color: #eadfd4; }

.held__weiter {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  animation: heldAuf 0.9s ease 1.2s both;
}
.held__pfeil { width: 1.5px; height: 42px; background: rgba(255, 255, 255, 0.35); position: relative; overflow: hidden; }
.held__pfeil::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: #fff;
  animation: pfeilLauf 2s ease-in-out infinite;
}
@keyframes pfeilLauf { to { top: 100%; } }

/* ---------- Scroll-Buehne: Vom Markt auf den Teller ---------- */
.markt { position: relative; height: 420vh; background: var(--nacht); color: #fff; --p: 0; }
.markt__buehne {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.markt__bild { position: absolute; inset: 0; }
.markt__canvas { width: 100%; height: 100%; display: block; }
.markt__standbild { position: absolute; inset: 0; }
/* Sobald das Video laeuft, blendet rosmarin.js das Foto mit hidden aus; eine
   allgemeine img-Regel wuerde das sonst mit display:block ueberstimmen */
.markt__standbild img[hidden] { display: none; }
.markt__standbild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Platzhalter-Bewegung, solange das Video fehlt: langsames Heranfahren */
  transform: scale(calc(1.22 - var(--p) * 0.22));
  transform-origin: 62% 50%;
}
.markt__schleier {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 11, 9, 0.95) 0%, rgba(18, 11, 9, 0.86) 32%, rgba(18, 11, 9, 0.34) 47%, rgba(18, 11, 9, 0) 58%),
    linear-gradient(0deg, rgba(18, 11, 9, 0.5) 0%, rgba(18, 11, 9, 0) 30%);
}

.markt__texte {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--rand);
}
.markt__titel { font-size: clamp(2.6rem, 5.4vw, 4.6rem); margin-bottom: 38px; max-width: 9ch; line-height: 1; }
.markt__titel .handschrift { display: block; color: var(--senf); font-size: 0.72em; transform: rotate(-3deg); transform-origin: left; margin-bottom: 0.1em; }

.markt__schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 30ch; }
.markt__schritt {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  line-height: 1.2;
  opacity: 0.62;        /* gedimmt, ueber dem Video gemessen mind. 4.5:1 */
  transform: translateX(-8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  display: grid;
  grid-template-columns: 44px 1fr;
}
.markt__nr { font-family: var(--text); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; padding-top: 0.55em; color: var(--hell-gedaempft); }
.markt__schritt.ist-aktiv { opacity: 1; transform: none; }
.markt__schritt.ist-aktiv .markt__nr { color: var(--senf); }

.markt__fortschritt { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.14); z-index: 2; }
.markt__fortschritt span { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--senf); }

.markt .ai-bild__badge { bottom: 14px; right: 14px; }

/* ---------- Geschichte ---------- */
.geschichte {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.geschichte__text p { color: var(--gedaempft); max-width: 46ch; }
.geschichte__text .geschichte__lead { color: var(--tinte); font-size: 1.18rem; line-height: 1.6; }
.geschichte__text .textlink { margin-top: 10px; }

.bildpaar { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 26px); align-items: start; }
.bildpaar .ai-bild { border-radius: 10px; overflow: hidden; will-change: transform; }
.bildpaar img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.bildpaar__b { margin-top: 26%; }

.zahlen {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 10px 0 0;
  padding-top: 36px;
  border-top: 1px solid var(--linie);
}
.zahlen div { display: flex; flex-direction: column-reverse; }
.zahlen dd { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; color: var(--wein); }
.zahlen dt { font-size: 0.82rem; color: var(--gedaempft); margin-top: 8px; }

/* ---------- Klassiker ---------- */
.karte__kopf { text-align: center; }
.karte__kopf .stern { margin-left: auto; margin-right: auto; }

.karte__liste { list-style: none; margin: 20px 0 0; padding: 0; position: relative; border-top: 1px solid var(--linie); }
.gericht {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas: "nr name preis" "nr info preis";
  column-gap: 20px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--linie);
}
.gericht__nr { grid-area: nr; font-size: 0.8rem; font-weight: 600; color: var(--gedaempft); letter-spacing: 0.08em; }
.gericht__name {
  grid-area: name;
  font-size: clamp(2rem, 4vw, 3.3rem);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.gericht__info { grid-area: info; margin: 8px 0 0; color: var(--gedaempft); font-size: 0.95rem; }
.gericht__preis { grid-area: preis; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* Foto am Mauszeiger (nur Geraete mit echter Maus) */
@media (hover: hover) and (pointer: fine) {
  .gericht { cursor: default; }
  .gericht:hover .gericht__name { transform: translateX(14px); color: var(--wein); }
  .gericht__foto {
    position: absolute;
    left: var(--mx, 70%);
    top: var(--my, 50%);
    width: clamp(200px, 20vw, 280px);
    border-radius: 10px;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotate(-6deg);
    transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 24px 50px rgba(26, 18, 16, 0.3);
  }
  .gericht__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .gericht:hover .gericht__foto { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
}
/* Ohne Maus: Foto fest als kleines Vorschaubild vor dem Namen */
@media (hover: none), (pointer: coarse) {
  .gericht { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "foto name preis" "foto info preis"; }
  .gericht__nr { display: none; }
  .gericht__foto { grid-area: foto; align-self: center; border-radius: 8px; overflow: hidden; }
  .gericht__foto img { width: 76px; height: 76px; object-fit: cover; }
  /* Kennzeichnung bleibt Pflicht - bei 76 px nur als kleines "KI" (wie .ai-bild--mini) */
  .gericht__foto .ai-bild__badge { font-size: 0; padding: 3px 5px; right: 4px; bottom: 4px; }
  .gericht__foto .ai-bild__badge::before { content: "KI"; font-size: 8px; }
}

.karte__alle { margin-top: 40px; }

/* ---------- Bildband ---------- */
.band { padding: clamp(40px, 6vw, 80px) 0; --zu: 1; }
.band__rahmen {
  position: relative;
  height: 88vh;
  min-height: 460px;
  overflow: hidden;
  clip-path: inset(calc(var(--zu) * 10%) calc(var(--zu) * 16%) round calc(var(--zu) * 26px));
  display: grid;
  place-items: center;
  isolation: isolate;
}
.band .band__medien { position: absolute; inset: 0; z-index: -2; }
.band__medien img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + var(--zu) * 0.18)); }
/* Gemessen: 0,66 in der Mitte liess "Abends in der" (Senf) nur 2,58:1 —
   Schild und Lichterkette liegen genau dahinter. 0,78 / 0,42 ergibt 3,9:1
   bzw. 4,86:1 fuer "Altstadt", die Raender bleiben mit 0,12 hell. */
.band__schleier { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 52%, rgba(18, 11, 9, 0.78), rgba(18, 11, 9, 0.42) 70%, rgba(18, 11, 9, 0.12)); }
.band__text {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(4rem, 13vw, 11.5rem);
  line-height: 0.9;
  text-align: center;
  transform: translateY(calc(var(--zu) * 40px));
}
.band__text .handschrift { display: block; color: var(--senf); font-size: 0.32em; transform: rotate(-4deg); margin-bottom: 0.08em; }
.band .ai-bild__badge { bottom: 16px; right: 16px; }

/* ---------- Gaestebuch ---------- */
.gaestebuch__kopf { text-align: center; }
.gaestebuch__kopf .stern { margin-left: auto; margin-right: auto; }
.gaestebuch__notizen {
  list-style: none;
  margin: 30px auto 0;
  padding: 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 54px);
}
.notiz {
  position: relative;
  background:
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(140, 47, 57, 0.1) 33px 34px),
    var(--papier);
  padding: 44px 34px 26px;
  box-shadow: 0 2px 0 rgba(42, 29, 25, 0.04), 0 14px 34px rgba(42, 29, 25, 0.09);
  transform: rotate(var(--dreh, -1.5deg));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.notiz:nth-child(2) { --dreh: 1.4deg; margin-top: 34px; }
.notiz:nth-child(3) { --dreh: 1deg; }
.notiz:nth-child(4) { --dreh: -1.8deg; margin-top: 34px; }
.notiz::before {  /* Klebestreifen */
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 26px;
  background: rgba(232, 181, 92, 0.42);
  transform: translateX(-50%) rotate(-3deg);
}
@media (hover: hover) { .notiz:hover { transform: rotate(0) translateY(-4px); } }
.notiz blockquote { margin: 0; }
.notiz p { font-family: var(--hand); font-weight: 500; font-size: 1.72rem; line-height: 1.2; margin: 0 0 18px; }
.notiz footer { font-size: 0.8rem; color: var(--gedaempft); }

/* ---------- Reservierung ---------- */
.reservierung {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.reservierung__text > p { color: var(--gedaempft); max-width: 44ch; }
.zeiten { margin: 26px 0 34px; max-width: 400px; }
.zeiten div { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--linie); }
.zeiten dt { font-weight: 500; }
.zeiten dd { margin: 0 0 0 auto; font-family: var(--serif); font-size: 1.3rem; }

/* ---------- Fuss ---------- */
.fuss { background: var(--nacht); color: var(--hell-gedaempft); padding: clamp(60px, 8vw, 100px) var(--rand) 28px; }
.fuss__inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.fuss__name { font-family: var(--serif); font-size: 2.4rem; color: #fff; line-height: 1; margin-bottom: 16px; }
.fuss__name em { color: var(--senf); }
.fuss__marke p:not(.fuss__name) { max-width: 34ch; }
.fuss__kopf { color: #fff; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fuss a { color: var(--hell-gedaempft); text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss__klein { max-width: 1240px; margin: 50px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.78rem; }

/* =====================================================================
   Unterseiten (Decision D19)
   ===================================================================== */

/* ---------- Kleines KI-Zeichen fuer Vorschaubilder ----------
   Der normale Hinweis ist breiter als ein 80-px-Bild. Sichtbar steht nur
   "KI", vorgelesen wird weiterhin "KI-generiert" (Text bleibt im DOM). */
.ai-bild--mini .ai-bild__badge { font-size: 0; padding: 3px 5px; right: 4px; bottom: 4px; }
.ai-bild--mini .ai-bild__badge::before { content: "KI"; font-size: 8px; }

/* ---------- Seitenkopf ---------- */
.seitenkopf {
  position: relative;
  min-height: clamp(440px, 64vh, 700px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.seitenkopf .seitenkopf__medien { position: absolute; inset: 0; z-index: -2; }
.seitenkopf__medien img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fokus, center);
  animation: heldZoom 2.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.seitenkopf__schleier {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 11, 9, 0.66) 0%, rgba(18, 11, 9, 0) 30%),
    linear-gradient(0deg, rgba(18, 11, 9, 0.92) 0%, rgba(18, 11, 9, 0.74) 50%, rgba(18, 11, 9, 0.3) 85%),
    linear-gradient(90deg, rgba(18, 11, 9, 0.6) 0%, rgba(18, 11, 9, 0) 70%);
}
.seitenkopf__inhalt {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--kopf-hoehe) + 60px) var(--rand) clamp(56px, 9vh, 96px);
}
.seitenkopf__titel { font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: 0.95; letter-spacing: -0.015em; }
.seitenkopf__titel em { font-style: italic; color: var(--senf); }
.seitenkopf__lead { max-width: 52ch; margin: 24px 0 0; color: #efe5da; font-size: 1.08rem; animation: heldAuf 0.9s ease 0.7s both; }
.seitenkopf .ai-bild__badge { top: calc(var(--kopf-hoehe) + 12px); bottom: auto; right: 16px; }
.seitenkopf .held__notiz { margin-bottom: 0.1em; }

/* ---------- Auswahl-Chips (Filter) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--rahmen);
  background: transparent;
  color: var(--tinte);
  font: 500 0.88rem var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { border-color: var(--tinte); }
.chip[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: var(--creme); }
.chip__zeichen { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.04em; }

/* ---------- Speisekarte ---------- */
.karte-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding-bottom: clamp(40px, 6vw, 70px);
}
/* nur die Textspalte - .karte-intro p wuerde sonst auch die Kreidefarben der Tafel ueberstimmen */
.karte-intro > div p { color: var(--gedaempft); max-width: 52ch; }
.karte-intro > div .karte-intro__lead { color: var(--tinte); font-size: 1.18rem; line-height: 1.6; }

/* Kreidetafel mit der Tagesempfehlung */
.tafel {
  position: relative;
  padding: 36px 34px 30px;
  border-radius: 6px;
  color: #f4efe8;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.07), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(255, 255, 255, 0.05), transparent 40%),
    #22201c;
  box-shadow: inset 0 0 0 10px #6b4a32, inset 0 0 0 12px #4e3524, 0 22px 44px rgba(42, 29, 25, 0.22);
  transform: rotate(1.2deg);
}
.tafel__kopf { font-family: var(--hand); font-size: 1.5rem; color: var(--senf); margin: 0 0 4px; }
.tafel__gericht { font-family: var(--hand); font-weight: 600; font-size: 2.3rem; line-height: 1.05; margin: 0 0 10px; }
.tafel__text { font-family: var(--hand); font-size: 1.35rem; line-height: 1.25; margin: 0 0 14px; color: #ddd4c9; }
.tafel__preis { font-family: var(--hand); font-weight: 600; font-size: 2rem; margin: 0; }

.karten-leiste {
  position: sticky;
  top: calc(var(--kopf-hoehe) - 1px);
  z-index: 30;
  background: rgba(251, 243, 231, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--linie);
}
.karten-leiste__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px var(--rand);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}
.karten-leiste__inner > nav { min-width: 0; max-width: 100%; }  /* sonst schrumpft die Leiste nicht und scrollt nicht in sich */
.sprung { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.sprung::-webkit-scrollbar { display: none; }
.sprung a {
  display: block;
  padding: 8px 0;
  color: var(--gedaempft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.sprung a:hover { color: var(--tinte); }
.sprung a[aria-current="true"] { color: var(--tinte); border-bottom-color: var(--wein); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter__trenner { width: 1px; height: 26px; background: var(--linie); margin: 0 4px; }

.karte-voll { padding-top: clamp(40px, 6vw, 70px); }
.kategorie { scroll-margin-top: calc(var(--kopf-hoehe) + 90px); padding-bottom: clamp(40px, 6vw, 70px); }
.kategorie__kopf { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.kategorie__kopf .ueberzeile { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0; }
.kategorie__titel { font-size: clamp(2.4rem, 4.6vw, 3.8rem); flex-basis: 100%; }
.kategorie__unter { font-family: var(--serif); font-size: 1.7rem; margin: 30px 0 4px; }
.kategorie__leer { color: var(--gedaempft); font-style: italic; padding: 22px 0; margin: 0; }

.speisen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(30px, 5vw, 64px); }
.speise {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  grid-template-areas: "foto name preis" "foto info info" "foto merk merk";
  column-gap: 20px;
  row-gap: 4px;
  align-items: start;
  align-content: start;   /* sonst verteilt das Raster die Hoehe der Nachbarkarte auf die Zeilen */
  padding: 24px 0;
  border-bottom: 1px dashed var(--linie);
}
.speise[hidden] { display: none; }
.speise--ohne-foto { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name preis" "info info" "merk merk"; }
.speise__foto { grid-area: foto; border-radius: 10px; overflow: hidden; }
.speise__foto img { width: 92px; height: 92px; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) { .speise:hover .speise__foto img { transform: scale(1.08); } }
.speise__name { grid-area: name; font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.1; }
.speise__preis { grid-area: preis; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; white-space: nowrap; }
.speise__info { grid-area: info; margin: 0; color: var(--gedaempft); font-size: 0.95rem; line-height: 1.55; }
.speise__merkmale { grid-area: merk; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.merkmal {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e6e9da;
  color: #3b4629;
}
.merkmal--vegan { background: #dfe8d2; color: #2f4a1f; }
.merkmal--gf { background: #f1e3cf; color: #6a4210; }
.allergene { display: none; font-size: 0.78rem; color: var(--gedaempft); }
.zeige-allergene .allergene { display: inline; }

.allergen-liste { border-top: 1px solid var(--linie); padding-top: 34px; }
.allergen-liste h2 { font-size: 1.9rem; margin-bottom: 14px; }
.allergen-liste dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 26px; margin: 0; font-size: 0.9rem; }
.allergen-liste dl div { display: flex; gap: 10px; }
.allergen-liste dt { font-weight: 700; min-width: 1.2em; }
.allergen-liste dd { margin: 0; color: var(--gedaempft); }
.allergen-liste p { color: var(--gedaempft); font-size: 0.9rem; margin-top: 18px; }

/* ---------- Einladung (Abschluss der Unterseiten) ---------- */
.einladung { padding: 0 var(--rand) clamp(80px, 10vw, 130px); }
.einladung__inner {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--nacht);
  color: #fff;
  border-radius: 22px;
  padding: clamp(44px, 7vw, 90px) clamp(26px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.einladung__inner::after {  /* grosser Stern als Wasserzeichen */
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  background: rgba(232, 181, 92, 0.08);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.einladung .handschrift { color: var(--senf); font-size: clamp(1.7rem, 2.8vw, 2.3rem); display: inline-block; transform: rotate(-3deg); margin: 0 0 4px; }
.einladung__titel { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 16ch; }
.einladung__knoepfe { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; position: relative; z-index: 1; }
.einladung .textlink { color: #fff; }

/* ---------- Buchungsfeld ---------- */
.buchung {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 20px;
  padding: clamp(22px, 3.2vw, 38px);
  box-shadow: 0 26px 60px rgba(42, 29, 25, 0.1);
  min-width: 0;
}
.buchung__titel { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 22px; }
.buchung fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.buchung legend,
.feld__name {
  display: block;
  padding: 0;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gedaempft);
}

.personen { display: flex; align-items: center; gap: 16px; }
.personen__knopf {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--rahmen);
  background: transparent;
  color: var(--tinte);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.personen__knopf:hover:not(:disabled) { border-color: var(--tinte); background: var(--creme); }
.personen__knopf:disabled { opacity: 0.35; cursor: not-allowed; }
.personen__zahl { font-family: var(--serif); font-size: 2.1rem; min-width: 2ch; text-align: center; line-height: 1; }
.personen__wort { color: var(--gedaempft); }
.buchung__gruppe { margin: 12px 0 0; font-size: 0.9rem; color: var(--gedaempft); }
.buchung__gruppe[hidden] { display: none; }
.buchung__gruppe button { background: none; border: 0; padding: 0; font: inherit; color: var(--wein); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Echte Radio-Knoepfe, nur optisch als Karten */
.wahl { position: relative; display: block; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: inherit; }
.wahl__karte {
  display: grid;
  place-items: center;
  border: 1.5px solid var(--rahmen);
  border-radius: 12px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.wahl:hover input:not(:disabled) + .wahl__karte { border-color: var(--tinte); }
.wahl input:checked + .wahl__karte { background: var(--tinte); border-color: var(--tinte); color: var(--creme); }
.wahl input:focus-visible + .wahl__karte { outline: 3px solid var(--wein); outline-offset: 2px; }
.wahl input:disabled + .wahl__karte { border-style: dashed; color: #8a7a6d; background: rgba(42, 29, 25, 0.03); cursor: not-allowed; }
.wahl input:disabled + .wahl__karte .wahl__haupt { text-decoration: line-through; }
.wahl:has(input:disabled) { cursor: not-allowed; }

.tage { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.tage .wahl { flex: 0 0 auto; scroll-snap-align: start; }
.tage .wahl__karte { width: 66px; padding: 10px 0 9px; gap: 2px; }
.wahl__klein { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.wahl__haupt { font-family: var(--serif); font-size: 1.7rem; line-height: 1; }

.zeiten-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.zeiten-wahl .wahl__karte { padding: 11px 0; font-weight: 600; font-size: 0.95rem; }
.zeiten-wahl .wahl__haupt { font-family: var(--text); font-size: 0.95rem; }
.wahl__hinweis { font-size: 0.66rem; font-weight: 500; margin-top: 1px; }
.zeiten-leer { color: var(--gedaempft); font-style: italic; margin: 0; }

.buchung__felder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.feld { display: block; min-width: 0; }
.feld--breit { grid-column: 1 / -1; }
.feld input, .feld select, .feld textarea, .gutschein-form input, .gutschein-form textarea {
  width: 100%;
  font: 400 1rem var(--text);
  color: var(--tinte);
  background: #fff;
  border: 1.5px solid var(--rahmen);
  border-radius: 10px;
  padding: 12px 14px;
}
.feld textarea, .gutschein-form textarea { resize: vertical; min-height: 92px; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible,
.gutschein-form input:focus-visible, .gutschein-form textarea:focus-visible { outline: 3px solid var(--wein); outline-offset: 1px; border-color: var(--tinte); }
.feld__optional { text-transform: none; letter-spacing: 0; font-weight: 400; }

.buchung__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; border-top: 1px solid var(--linie); padding-top: 22px; }
.buchung__fuss .knopf { flex-shrink: 0; }
.buchung__auswahl { margin: 0; font-size: 0.95rem; color: var(--gedaempft); flex: 1 1 200px; }
.buchung__auswahl strong { color: var(--tinte); font-weight: 600; }
.buchung__hinweis { margin: 14px 0 0; font-size: 0.8rem; color: var(--gedaempft); }

/* Startseite: Kurzform neben dem Text */
.reservierung--buchung { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.reservierung--buchung .reservierung__text { position: sticky; top: calc(var(--kopf-hoehe) + 30px); }

/* ---------- Kontakt ---------- */
.kontakt-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.kontakt-info { position: sticky; top: calc(var(--kopf-hoehe) + 30px); }
.kontakt-info > p { color: var(--gedaempft); max-width: 42ch; }
.status-zeile { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 4px; padding: 8px 16px; border-radius: 999px; background: var(--papier); border: 1px solid var(--linie); font-size: 0.9rem; font-weight: 500; }
.status-zeile .held__punkt { background: #9b8f85; }
.status-zeile.ist-offen .held__punkt { background: #3f9b4f; animation: puls 2s ease-out infinite; }
.kontakt-wege { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.kontakt-wege li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; }
.kontakt-wege svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--papier); border: 1px solid var(--linie); color: var(--wein); }
.kontakt-wege strong { display: block; font-weight: 600; }
.kontakt-wege span, .kontakt-wege a { color: var(--gedaempft); }
.kontakt-wege a { text-decoration: underline; text-underline-offset: 3px; }

.anfahrt { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.skizze { border-radius: 20px; overflow: hidden; background: #efe3d1; border: 1px solid var(--linie); }
.skizze svg { display: block; width: 100%; height: auto; }
.anfahrt__text p { color: var(--gedaempft); }
.anfahrt__wege { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.anfahrt__wege li { padding-left: 28px; position: relative; color: var(--gedaempft); }
.anfahrt__wege li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--wein); }
.anfahrt__wege strong { color: var(--tinte); font-weight: 600; }

.fragen { max-width: 860px; margin: 0 auto; }
.fragen__kopf { text-align: center; margin-bottom: 20px; }
.fragen__kopf .stern { margin-left: auto; margin-right: auto; }
.frage { border-bottom: 1px solid var(--linie); }
.frage summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.2;
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after { content: "+"; font-family: var(--text); font-size: 1.6rem; color: var(--wein); transition: transform 0.3s ease; flex-shrink: 0; }
.frage[open] summary::after { transform: rotate(45deg); }
.frage p { margin: -6px 0 24px; color: var(--gedaempft); max-width: 64ch; }

/* ---------- Ueber uns ---------- */
.auftakt { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.zitat { margin: 0; }
.zitat p { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.15; margin: 0 0 26px; }
.zitat p em { color: var(--wein); }
.zitat footer { display: flex; align-items: center; gap: 16px; color: var(--gedaempft); font-size: 0.92rem; }
.zitat .unterschrift { font-family: var(--hand); font-size: 2.2rem; color: var(--tinte); line-height: 1; }
.auftakt__text p { color: var(--gedaempft); }

.zeitleiste { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); position: relative; }
.zeitleiste::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: var(--linie); }
.zeitleiste li { position: relative; padding-top: 44px; }
.zeitleiste li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--creme); border: 2px solid var(--wein); }
.zeitleiste li:last-child::before { background: var(--wein); }
.zeitleiste__jahr { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--wein); margin-bottom: 12px; }
.zeitleiste p { color: var(--gedaempft); margin: 0; }
.zeitleiste strong { display: block; color: var(--tinte); font-weight: 600; margin-bottom: 4px; }

.werte { background: var(--nacht); color: #fff; }
.werte .titel { color: #fff; }
.werte .ueberzeile { color: var(--senf); }
.werte .stern { background: var(--senf); }
.werte__liste { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 4vw, 56px); }
.werte__liste li { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 26px; }
.werte__nr { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--senf); }
.werte__liste h3 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin: 12px 0 12px; }
.werte__liste p { color: var(--hell-gedaempft); margin: 0; }
.werte :focus-visible { outline-color: var(--senf); }

.team { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.team .ai-bild { border-radius: 14px; overflow: hidden; }
.team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) { .team li:hover img { transform: scale(1.04); } }
.team h3 { font-size: 1.9rem; margin: 18px 0 4px; }
.team__rolle { color: var(--wein); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; margin: 0 0 8px; }
.team__satz { color: var(--gedaempft); font-family: var(--hand); font-size: 1.45rem; line-height: 1.2; margin: 0; }

/* ---------- Galerie ---------- */
.galerie-raster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 250px);
  grid-auto-flow: dense;
  gap: clamp(10px, 1.4vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.galerie-raster figure { margin: 0; position: relative; min-height: 0; }
.galerie-raster .galerie__knopf, .galerie-raster .ai-bild { height: 100%; border-radius: 12px; }
.galerie-raster img { width: 100%; height: 100%; object-fit: cover; }
.galerie-raster .hoch { grid-row: span 2; }
.galerie-raster .breit { grid-column: span 2; }
.galerie-raster .gross { grid-column: span 2; grid-row: span 2; }
.galerie-raster figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(26, 18, 16, 0.78);
  color: #fff;
  font-size: 0.8rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
@media (hover: hover) { .galerie-raster figure:hover figcaption { opacity: 1; transform: none; } }
.galerie-raster figure:focus-within figcaption { opacity: 1; transform: none; }
.galerie-raster .galerie__zeichen { left: auto; right: 10px; }

/* ---------- Gutscheine ---------- */
.gutschein-raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.gutschein-form fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.gutschein-form legend { display: block; padding: 0; margin-bottom: 12px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gedaempft); }
.werte-wahl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.werte-wahl .wahl__karte { padding: 14px 0; }
.werte-wahl .wahl__haupt { font-size: 1.6rem; }
.erlebnisse { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.erlebnisse .wahl__karte { place-items: start; text-align: left; padding: 16px 18px; gap: 4px; }
.erlebnisse .wahl__haupt { font-size: 1.35rem; }
.erlebnisse .wahl__text { font-size: 0.85rem; opacity: 0.85; }
.eigener-betrag { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.eigener-betrag label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.92rem; color: var(--gedaempft); }
.eigener-betrag input { width: 120px; }
.motive { display: flex; gap: 12px; flex-wrap: wrap; }
.motive .wahl__karte { width: 120px; padding: 10px; gap: 8px; }
.motiv-muster { display: block; width: 100%; height: 54px; border-radius: 7px; }
.motiv-muster--rosmarin { background: linear-gradient(135deg, #fbf3e7, #efe0c8); border: 1px solid var(--linie); }
.motiv-muster--wein { background: linear-gradient(135deg, #8c2f39, #5a1b24); }
.motiv-muster--nacht { background: linear-gradient(135deg, #2a1d19, #120b09); }
.wahl input:checked + .wahl__karte .motiv-muster { box-shadow: 0 0 0 2px var(--creme); }
.versand { display: grid; gap: 10px; }
.versand .wahl__karte { grid-template-columns: 1fr auto; place-items: center start; padding: 14px 18px; text-align: left; }
.versand .wahl__text { font-size: 0.85rem; opacity: 0.85; display: block; }
.versand__preis { font-weight: 600; justify-self: end; }
.gutschein-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gutschein-felder .feld--breit { grid-column: 1 / -1; }
.zeichen-zaehler { display: block; text-align: right; font-size: 0.78rem; color: var(--gedaempft); margin-top: 6px; }

.gutschein-vorschau { position: sticky; top: calc(var(--kopf-hoehe) + 30px); }
.gutschein-karte {
  --karte-grund: linear-gradient(135deg, #fbf3e7, #efe0c8);
  --karte-schrift: var(--tinte);
  --karte-akzent: var(--wein);
  position: relative;
  aspect-ratio: 1.6;
  border-radius: 18px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--karte-grund);
  color: var(--karte-schrift);
  box-shadow: 0 30px 60px rgba(42, 29, 25, 0.22), 0 2px 0 rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  /* Kein overflow:hidden: nur so waechst die Karte bei langen Namen ueber das
     Seitenverhaeltnis hinaus, statt Text abzuschneiden. Der Zweig sitzt
     deshalb ganz innerhalb der Karte. */
  transform: rotate(-1.5deg);
  transition: background 0.4s ease, color 0.4s ease;
}
.gutschein-karte[data-motiv="wein"] { --karte-grund: linear-gradient(135deg, #8c2f39, #5a1b24); --karte-schrift: #fff; --karte-akzent: var(--senf); }
.gutschein-karte[data-motiv="nacht"] { --karte-grund: linear-gradient(135deg, #2a1d19, #120b09); --karte-schrift: #fff; --karte-akzent: var(--senf); }
.gutschein-karte::before {  /* Rosmarinzweig */
  content: "";
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 44%;
  aspect-ratio: 1;
  background: var(--karte-akzent);
  opacity: 0.16;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M15 90 C40 65 60 40 88 12'/%3E%3Cpath d='M30 75l-10-14M30 75l14 4M42 62l-9-15M42 62l15 3M54 49l-7-15M54 49l15 2M66 36l-6-14M66 36l14 1M77 24l-4-12M77 24l12-1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M15 90 C40 65 60 40 88 12'/%3E%3Cpath d='M30 75l-10-14M30 75l14 4M42 62l-9-15M42 62l15 3M54 49l-7-15M54 49l15 2M66 36l-6-14M66 36l14 1M77 24l-4-12M77 24l12-1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gutschein-karte__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; position: relative; }
.gutschein-karte__marke { font-family: var(--serif); font-size: 1.3rem; }
.gutschein-karte__marke em { color: var(--karte-akzent); }
.gutschein-karte__art { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.gutschein-karte__mitte { align-self: center; position: relative; min-width: 0; }
.gutschein-karte__wort { font-family: var(--hand); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--karte-akzent); line-height: 1; display: block; transform: rotate(-3deg); transform-origin: left; }
.gutschein-karte__wert { font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; display: block; }
.gutschein-karte__fuer { font-family: var(--hand); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; margin: 6px 0 0; overflow-wrap: anywhere; }
.gutschein-karte__nachricht { font-size: 0.82rem; line-height: 1.35; margin: 6px 0 0; opacity: 0.85; max-width: 32ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gutschein-karte__nachricht:empty { display: none; }
.gutschein-karte.ist-erlebnis .gutschein-karte__wert { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.wahl-zeile { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.wahl-zeile input { width: 20px; height: 20px; accent-color: var(--tinte); margin: 0; }
.gutschein-karte__fuss { display: flex; justify-content: space-between; gap: 10px; font-size: 0.7rem; letter-spacing: 0.05em; opacity: 0.85; position: relative; }
.gutschein-summe { margin-top: 36px; padding: 24px; border-radius: 16px; background: var(--papier); border: 1px solid var(--linie); }
.gutschein-summe dl { margin: 0 0 18px; display: grid; gap: 8px; }
.gutschein-summe dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.95rem; }
.gutschein-summe dt { color: var(--gedaempft); }
.gutschein-summe dd { margin: 0; }
.gutschein-summe .gesamt { border-top: 1px solid var(--linie); padding-top: 10px; margin-top: 4px; font-weight: 600; }
.gutschein-summe .gesamt dd { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.gutschein-summe .knopf { width: 100%; justify-content: center; }
.gutschein-summe__klein { font-size: 0.8rem; color: var(--gedaempft); margin: 12px 0 0; text-align: center; }

.ablauf { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 50px); counter-reset: ablauf; }
.ablauf li { counter-increment: ablauf; }
.ablauf li::before { content: counter(ablauf, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 3.2rem; color: var(--wein); line-height: 1; margin-bottom: 14px; }
.ablauf h3 { font-size: 1.7rem; margin-bottom: 8px; }
.ablauf p { color: var(--gedaempft); margin: 0; }

/* ---------- Unterseiten: schmale Bildschirme ---------- */
@media (max-width: 1000px) {
  .speisen { grid-template-columns: 1fr; }
  .karte-intro, .kontakt-raster, .anfahrt, .auftakt, .gutschein-raster, .reservierung--buchung { grid-template-columns: 1fr; }
  .kontakt-info, .gutschein-vorschau, .reservierung--buchung .reservierung__text { position: static; }
  /* Handy: Vorschau oben (Live-Effekt sichtbar), Formular, dann Summe + Kasse.
     display: contents macht Ueberschrift, Karte und Summe zu eigenen Rasterzeilen. */
  .gutschein-vorschau { display: contents; }
  .gutschein-vorschau > .feld__name, .gutschein-karte { order: -1; }
  .gutschein-karte { margin-bottom: 10px; }
  .gutschein-summe { order: 1; margin-top: 0; }
  .tafel { max-width: 440px; }
  .zeitleiste { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .zeitleiste::before { display: none; }
  .werte__liste, .team, .ablauf { grid-template-columns: 1fr; }
  .team { max-width: 520px; }
  .galerie-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 36vw, 260px); }
  .galerie-raster .gross { grid-row: span 1; }
}
@media (max-width: 640px) {
  .karten-leiste__inner { padding-block: 8px; gap: 4px; }
  .kategorie { scroll-margin-top: calc(var(--kopf-hoehe) + 120px); }  /* Leiste ist hier zweizeilig */
  .filter { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 6px; scrollbar-width: none; }
  .filter::-webkit-scrollbar { display: none; }
  .speise { grid-template-columns: 72px minmax(0, 1fr) auto; column-gap: 14px; }
  .speise__foto img { width: 72px; height: 72px; }
  .buchung__felder, .gutschein-felder { grid-template-columns: 1fr; }
  .werte-wahl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .erlebnisse { grid-template-columns: 1fr; }
  .buchung__fuss .knopf { width: 100%; justify-content: center; }
  .zeitleiste { grid-template-columns: 1fr; }
  .gutschein-karte { transform: none; padding: 18px 20px; gap: 6px; }
  .gutschein-karte__wert { font-size: 2.6rem; }
  .gutschein-karte.ist-erlebnis .gutschein-karte__wert { font-size: 1.8rem; }
  .gutschein-karte__wort { font-size: 1.45rem; }
  .gutschein-karte__fuer { font-size: 1.25rem; }
  .gutschein-karte__fuss { font-size: 0.64rem; }
  .galerie-raster .breit { grid-column: span 2; }
}

/* ---------- Zugaenglichkeit ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wein);
  color: #fff;
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 6px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--wein);
  outline-offset: 3px;
}
/* Auf dunklem Grund reicht Weinrot nicht fuer einen Fokusrahmen */
.held :focus-visible, .markt :focus-visible, .fuss :focus-visible,
.seitenkopf :focus-visible, .einladung :focus-visible, .werte :focus-visible, .tafel :focus-visible,
.kopf:not(.ist-fest) :focus-visible, .menue-offen .kopf :focus-visible {
  outline-color: var(--senf);
}

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1100px) {
  .punkte { display: none; }
}

@media (max-width: 900px) {
  .kopf__menue { display: inline-flex; }
  .kopf__cta { display: none; }
  .kopf__nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    background: var(--nacht);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 110px var(--rand) 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }
  .kopf__nav { flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px; }
  .kopf__nav ul { flex-direction: column; gap: 6px; }
  /* .kopf__nav a (0,1,1) wuerde Farbe und Innenabstand des Knopfes
     ueberschreiben - weisse Schrift auf weissem Grund. Deshalb hier gezielt: */
  .kopf__nav .kopf__nav-cta { display: inline-flex; font-family: var(--text); font-size: 1rem; color: var(--wein); padding: 16px 30px; }
  .kopf__nav .kopf__nav-cta::after { display: none; }
  .kopf__nav a { font-family: var(--serif); font-size: clamp(2.4rem, 10vw, 3.4rem); font-weight: 400; }
  .menue-offen .kopf { color: #fff; }
  .menue-offen .kopf::before { opacity: 0; }
  .menue-offen .kopf__nav { opacity: 1; visibility: visible; transition: opacity 0.35s ease, visibility 0s; }
  .menue-offen .kopf__marke { position: relative; z-index: 3; }
  .menue-offen .kopf__menue-striche span:first-child { transform: translateY(4px) rotate(45deg); }
  .menue-offen .kopf__menue-striche span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menue-offen { overflow: hidden; }

  .geschichte, .reservierung { grid-template-columns: 1fr; }
  .reservierung .bildpaar { order: 2; }
  .zahlen { grid-template-columns: repeat(2, 1fr); }

  .markt__schleier {
    background: linear-gradient(0deg, rgba(18, 11, 9, 0.95) 0%, rgba(18, 11, 9, 0.82) 42%, rgba(18, 11, 9, 0.2) 70%, rgba(18, 11, 9, 0.1) 100%);
  }
  .markt__buehne { align-items: flex-end; }
  .markt__texte { padding-bottom: 60px; }
  .markt__titel { margin-bottom: 22px; }
  .markt .ai-bild__badge { top: calc(var(--kopf-hoehe) + 10px); bottom: auto; }

  .gaestebuch__notizen { grid-template-columns: 1fr; }
  .notiz:nth-child(n) { margin-top: 0; }
  .fuss__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .held__weiter { display: none; }
  .held__inhalt { padding-bottom: 64px; }
  .gericht { padding: 22px 0; }
  .notiz { padding: 40px 24px 22px; }
  .notiz p { font-size: 1.5rem; }
}

/* ---------- Weniger 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; }
  .held__bild { animation: none; }
  .held__status.ist-offen .held__punkt { animation: none; }
  /* Scroll-Buehne ohne Festhalten: Bild und alle Schritte gleichzeitig */
  .markt { height: auto; }
  .markt__buehne { position: relative; height: auto; min-height: 100svh; padding: 120px 0; }
  .markt__schritt { opacity: 1; transform: none; }
  .markt__standbild img { transform: none; }
  .markt__fortschritt { display: none; }
  .band { --zu: 0 !important; }
}

/* Nur fuer Screenreader (Ueberschriften ohne sichtbaren Platz, Live-Meldungen) */
.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Aktion, die wie ein Textlink aussieht (statt href="#") */
.linkknopf { background: none; border: 0; padding: 0; font: inherit; color: var(--gedaempft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkknopf:hover { color: var(--wein); }

/* Pflichtseiten der Betreiberin — liegen eine Ebene ueber den Demos */
.rechtliches a { color: inherit; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 3px 0; }
