/* KOI Hameln, Musterentwurf 2: Tusche auf Washi-Papier.
   Farben: Papier, Tusche, das Gold aus dem Logo, Petrol aus dem Gastraum. Rot nur im Logo selbst. */
:root {
  --papier: #F2EDE3; --papier-2: #E9E2D4; --papier-3: #DCD3C1;
  --tusche: #161412; --tusche-2: #3A3530; --tusche-3: #675F55;
  --logo-navy: #252934; --logo-gold: #F8DB8F;   /* Farben des neuen Logos */
  --gold: #D2AE6D; --gold-hell: #E0C38E; --gold-text: #7E6026;
  --teich: #0E2A31; --teich-2: #16404A; --teich-text: #E7EFEC;
  --rand: clamp(20px, 5vw, 72px);
  --kopf-h: 84px;
  --schrift-titel: 'Shippori Mincho B1', 'Koi Kanji', 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', Georgia, serif;
  --schrift-text: 'Zen Kaku Gothic New', 'Koi Kanji', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --viet: 'Koi Viet', 'Noto Serif', Georgia, serif;
  --kanji: 'Koi Kanji', 'Shippori Mincho B1', 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px;
  background: var(--papier) url(bilder/papier.webp) repeat;
  color: var(--tusche);
  font: 400 1.0625rem/1.65 var(--schrift-text);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 800; line-height: 1.08; letter-spacing: -.005em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.1rem + 3.1vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 1.05rem + 2.5vw, 3.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.rahmen { max-width: 1240px; margin: 0 auto; padding: 0 var(--rand); }
.viet { font-family: var(--viet); font-weight: 600; font-style: normal; }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tusche); color: var(--papier); padding: 10px 16px; border-radius: 8px; }
.sprung:focus { top: 12px; }

/* Knöpfe */
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem/1.2 var(--schrift-text); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.knopf:active { transform: translateY(1px); }
.knopf--gold { background: var(--gold); color: var(--tusche); }
.knopf--gold:hover { background: var(--gold-hell); }
.knopf--linie { border-color: currentColor; color: var(--tusche); background: transparent; }
.knopf--linie:hover { background: rgba(22, 20, 18, .06); }
.knopf--tusche { background: var(--tusche); color: var(--papier); }
.knopf--tusche:hover { background: #2E2924; }
.knopf--hell { border-color: rgba(255, 255, 255, .85); color: #fff; }
.knopf--hell:hover { background: rgba(255, 255, 255, .12); }
.knopf--klein { min-height: 40px; padding: .45em 1.1em; font-size: .92rem; }

/* Kopf */
.kopf { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(242, 237, 227, .84); -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1); border-bottom: 1px solid rgba(22, 20, 18, .08); }
.kopf__entwurf { margin: 0; padding: 3px var(--rand); font-size: .72rem; line-height: 1.45; color: var(--tusche-3); background: rgba(22, 20, 18, .045); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kurz { display: none; }
@media (max-width: 520px) { .lang { display: none; } .kurz { display: inline; } .kopf__entwurf { font-size: .68rem; } }
.kopf__leiste { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); height: 62px; padding: 0 var(--rand); }
.marke { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.marke img { width: 40px; height: 40px; }
.marke__name { font-family: var(--schrift-titel); font-weight: 800; font-size: 1.4rem; letter-spacing: .1em; }
.navi { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.navi a { text-decoration: none; font-weight: 500; font-size: .96rem; padding: 6px 0; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.navi a:hover, .navi a[aria-current] { background-size: 100% 2px; }
@media (max-width: 760px) {
  .navi a:not(:first-child) { display: none; }
  .kopf__leiste { height: 56px; }
  :root { --kopf-h: 78px; }
}
@media (max-width: 380px) { .marke__name { display: none; } }

/* 1. Bühne */
.buehne { position: relative; height: 260vh; height: 260svh; }
.buehne__buehne {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr) 27vh; grid-template-rows: minmax(0, 1fr) 27svh;
  grid-template-areas: "text logo" "wasser wasser"; padding-top: var(--kopf-h);
}
.buehne__logo { grid-area: logo; margin: 4vh var(--rand) 6vh 0; margin: 4svh var(--rand) 6svh 0; }
.buehne__wasser { grid-area: wasser; position: relative; z-index: 1; background: linear-gradient(#E3E0D6, #C9CFCA); }
.buehne__teich { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.buehne__svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.buehne__tropfen { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.koi-tusche { fill: var(--logo-navy); opacity: .16; }
.logo-tusche { fill: var(--logo-navy); }
.logo-kreis { fill: var(--logo-gold); }
.logo-punkt { fill: #E32F2A; }
.buehne__text { grid-area: text; align-self: end; position: relative; z-index: 4; padding: 0 2vw 5vh var(--rand); padding: 0 2vw 5svh var(--rand); max-width: 40rem; }
.buehne__text h1 { margin-bottom: .35em; font-size: clamp(2rem, min(1.1rem + 3.1vw, 7.2vh), 4.4rem); }
@media (min-width: 821px) and (max-height: 760px) { .buehne__text .einleitung { display: none; } .buehne__text { padding-bottom: 3vh; padding-bottom: 3svh; } }
.titel__zweit { display: block; color: var(--gold-text); }
.einleitung { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--tusche-2); max-width: 30rem; }
.status { margin: 1.1em 0 0; font-size: .95rem; color: var(--tusche-2); display: flex; align-items: center; gap: .55em; flex-wrap: wrap; }
.status__punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--tusche-3); box-shadow: 0 0 0 4px rgba(22, 20, 18, .08); }
.status--offen .status__punkt { background: #2F7D6B; box-shadow: 0 0 0 4px rgba(47, 125, 107, .18); }
.buehne__hinweis { position: absolute; right: var(--rand); bottom: 12px; margin: 0; font-size: .82rem; color: var(--tusche-2); pointer-events: none; display: flex; align-items: center; gap: .5em; z-index: 2; }
.buehne__hinweis::after { content: ""; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); animation: hinweis 2.4s ease-in-out infinite; }
@keyframes hinweis { 50% { transform: rotate(45deg) translate(3px, 0); } }
.buehne__ankunft {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 0 var(--rand) clamp(36px, 8vh, 90px); padding: 0 var(--rand) clamp(36px, 8svh, 90px);
  color: #fff; opacity: 0; visibility: hidden; text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.buehne__ankunft::before { content: ""; position: absolute; inset: -40vh 0 0; inset: -40svh 0 0; z-index: -1; background: linear-gradient(rgba(8, 10, 12, 0), rgba(8, 10, 12, .72) 70%); }
.buehne__ankunft h2 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5.6rem); margin-bottom: .25em; }
.buehne__ankunft p { max-width: 34rem; font-size: 1.12rem; }
/* Ruhiger Ersatz, solange buehne.js nicht übernommen hat: ohne JavaScript, bei zu alten Browsern und beim Laden im
   langsamen Netz. Das Logo steht still in seinem Feld, mit denselben Abständen wie später die Animation (kein Springen). */
.buehne:not(.buehne--an) { height: auto; }
.buehne:not(.buehne--an) .buehne__buehne { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }
/* absolut im Logo-Feld, damit das Logo die Zeilenhöhe nicht mitbestimmt (sonst wäre die Bühne höher als später) */
.buehne:not(.buehne--an) .buehne__svg { position: absolute; inset: auto; grid-area: logo; top: 4vh; top: 4svh; left: 0; margin: 0; width: calc(100% - var(--rand)); height: calc(100% - 10vh); height: calc(100% - 10svh); }
.buehne:not(.buehne--an) .buehne__hinweis, .buehne:not(.buehne--an) .buehne__ankunft, .buehne:not(.buehne--an) .buehne__tropfen { display: none; }
@media (max-width: 820px) {
  .buehne:not(.buehne--an) .buehne__svg { top: 2vh; top: 2svh; left: 3vw; width: calc(100% - 6vw); height: calc(100% - 5vh); height: calc(100% - 5svh); }
}
@media (max-width: 820px) {
  .buehne { height: 230vh; height: 230svh; }
  .buehne__buehne { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 16vh auto; grid-template-rows: minmax(0, 1fr) 16svh auto; grid-template-areas: "logo" "wasser" "text"; }
  .buehne__logo { margin: 2vh 3vw 3vh; margin: 2svh 3vw 3svh; }
  .buehne__text { align-self: start; padding: 2.4vh var(--rand) 3vh; padding: 2.4svh var(--rand) 3svh; }
  .buehne__text h1 { font-size: clamp(2rem, 1.2rem + 4.6vw, 3rem); }
  .einleitung { font-size: 1rem; margin-bottom: 0; }
  .knopfreihe { margin-top: 1em; }
  .buehne__hinweis { display: none; }
  .status { margin-top: .8em; font-size: .9rem; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .einleitung { display: none; }
}

/* 2. Teich */
.teich { position: relative; min-height: max(100vh, 700px); min-height: max(100svh, 700px); background: var(--teich); color: var(--teich-text); overflow: hidden; isolation: isolate; }
.teich__wasser { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; }
.teich__kopf { position: relative; z-index: 2; padding: clamp(48px, 10vh, 120px) var(--rand) 0; max-width: 40rem; pointer-events: none; }
.teich__kopf h2 { color: #F6F1E7; }
.teich__kopf p { color: rgba(231, 239, 236, .82); max-width: 28rem; }
.teich__teller { list-style: none; margin: 0; padding: 24px var(--rand) 80px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: center; position: relative; z-index: 1; }
.teller { width: min(300px, 80vw); position: relative; }
.teller__knopf { all: unset; display: block; width: 100%; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.teller__knopf:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.teller__knopf img { width: 100%; height: auto; filter: drop-shadow(0 22px 26px rgba(0, 10, 14, .55)); transition: transform .5s cubic-bezier(.2, .8, .2, 1.2); }
.teller__knopf:hover img, .teller__knopf[aria-expanded="true"] img { transform: scale(1.04); }
.teller__name { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 10px); white-space: nowrap; font: 800 1.15rem/1.2 var(--schrift-titel); color: #F6F1E7; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); display: flex; gap: .6em; align-items: baseline; }
.teller__preis { font: 500 .9rem/1 var(--schrift-text); color: var(--gold-hell); }
.teller__mehr { position: absolute; left: 50%; top: calc(100% + 48px); width: min(320px, 84vw); transform: translateX(calc(-50% + var(--schub, 0px))); z-index: 5; background: var(--papier); color: var(--tusche); border-radius: 18px; padding: 18px 20px 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); font-size: .97rem; }
.teller__mehr::before { content: ""; position: absolute; left: calc(50% - var(--schub, 0px)); top: -7px; width: 14px; height: 14px; background: var(--papier); transform: translateX(-50%) rotate(45deg); }
.teller__mehr.oben { top: auto; bottom: calc(100% + 14px); }
.teller__mehr.oben::before { top: auto; bottom: -7px; }
.teller__mehr p { margin-bottom: .7em; }
.teller__mehr a { font-weight: 700; color: var(--tusche); }
.teller__mehr a::after { content: " →"; }
.teich__koi-bild, .teich__koi-bild2 { display: none; }
@media (max-width: 760px) { .teich { min-height: 1080px; } .teller__name { font-size: 1rem; } }
/* mit Skript: Teller schwimmen frei auf dem Wasser */
.js-teich .teich__teller { position: absolute; inset: 0; padding: 0; display: block; pointer-events: none; }
.js-teich .teller { position: absolute; left: 0; top: 0; width: var(--d, 260px); pointer-events: auto; will-change: transform; }

/* 3. Orakel */
.orakel { padding: clamp(80px, 13vh, 150px) 0; overflow: hidden; }
.orakel__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.orakel__text p { color: var(--tusche-2); max-width: 30rem; font-size: 1.08rem; }
.orakel__raster { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.orakel__buehne { position: relative; height: 470px; display: flex; align-items: flex-end; justify-content: center; gap: 28px; }
.knopf[aria-disabled="true"] { opacity: .55; cursor: progress; }
/* die Losdose: sechseckiges Holz, gezeichnet von orakel.js */
.los { --dw: 92px; position: relative; flex: none; width: calc(var(--dw) * 2.6); height: calc(var(--dw) * 2.5 + 12px); }
.los::after { content: ""; position: absolute; left: -16px; right: -16px; bottom: 5px; height: 1px; background: linear-gradient(90deg, rgba(22, 20, 18, 0), rgba(22, 20, 18, .16) 20%, rgba(22, 20, 18, .16) 80%, rgba(22, 20, 18, 0)); }
.los__dose { position: absolute; left: calc(var(--dw) * .5); bottom: 6px; width: var(--dw); height: calc(var(--dw) * 2.5); transform-origin: 50% 50%; z-index: 2; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.los__bild { position: absolute; inset: 0; width: 100%; height: 100%; }
.los__fenster { position: absolute; left: 0; width: 100%; overflow: hidden; z-index: 3; pointer-events: none; }
.los__stab { position: absolute; }
.los__stab svg, .los__frei svg { display: block; width: 100%; height: 100%; }
.los__frei { position: absolute; left: 0; top: 0; transform-origin: 50% 0; z-index: 4; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 1.5px rgba(50, 30, 10, .35)); }
.los__schatten { position: absolute; left: calc(var(--dw) * .2); width: calc(var(--dw) * 1.6); bottom: 0; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 40, 15, .34), rgba(60, 40, 15, 0)); }
.zettel { width: 280px; height: 440px; perspective: 1200px; flex: none; }
.zettel__innen { height: 100%; background: #FBF8F1 url(bilder/papier.webp); border-radius: 4px; box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 24px 40px -18px rgba(40, 30, 10, .45); padding: 26px 24px 22px; display: flex; flex-direction: column; transform-origin: 50% 0; transform: rotateX(-82deg) scaleY(.2); opacity: 0; transition: transform .9s cubic-bezier(.2, .9, .25, 1.05), opacity .3s; border-top: 6px solid var(--gold); }
.zettel.offen .zettel__innen { transform: none; opacity: 1; }
.zettel__glueck { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-weight: 700; color: var(--gold-text); border-bottom: 1px solid var(--papier-3); padding-bottom: 14px; margin-bottom: 18px; }
.zettel__stufe { font: 700 1.7rem/1.15 var(--viet); color: var(--tusche); }
.zettel__gericht { font: 800 1.75rem/1.12 var(--schrift-titel); margin-bottom: .5em; text-wrap: balance; }
.zettel__nr { display: block; font: 700 .85rem/1.3 var(--schrift-text); color: var(--gold-text); margin-bottom: .35em; }
.zettel__info { color: var(--tusche-2); font-size: .98rem; flex: 1; }
.zettel__fuss { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding-top: 12px; border-top: 1px solid var(--papier-3); font-weight: 700; }
.zettel__fuss a { font-weight: 500; font-size: .92rem; }
@media (max-width: 860px) {
  .orakel { padding: 56px 0 64px; }
  .orakel__raster { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .orakel__buehne { height: auto; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 18px; }
  .los { --dw: 80px; margin-top: 44px; }
  .los__dose { left: calc(var(--dw) * .65); }
  .los__schatten { left: calc(var(--dw) * .35); }
  .orakel__buehne:not(.gezogen) .zettel { display: none; }
  .zettel { width: 100%; max-width: 360px; height: auto; }
  .zettel__innen { min-height: 300px; }
}
@media (max-width: 480px) {
  .zettel__innen { padding: 22px 18px 18px; }
  .zettel__gericht { font-size: 1.45rem; }
}

/* 4. Gezeiten */
.gezeiten { padding: clamp(80px, 12vh, 140px) 0; background: var(--papier-2) url(bilder/papier.webp); border-top: 1px solid rgba(22, 20, 18, .06); }
.gezeiten__jetzt { font: 800 clamp(1.4rem, 1rem + 1.4vw, 2.2rem)/1.25 var(--schrift-titel); margin: 0 0 1.4em; display: flex; align-items: center; gap: .55em; flex-wrap: wrap; }
.gezeiten__jetzt .status__punkt { width: 13px; height: 13px; }
.gezeiten__skala { display: none; }
.gezeiten__tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.gezeiten__tabelle th, .gezeiten__tabelle td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(22, 20, 18, .1); }
.gezeiten__tabelle th { font-weight: 700; }
.gezeiten__tabelle tr[aria-current] th, .gezeiten__tabelle tr[aria-current] td { font-weight: 700; color: var(--tusche); }
/* mit Skript: jede Zeile bekommt eine Spur von 11 bis 24 Uhr, geöffnet ist Wasser */
.mit-spur .gezeiten__skala { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 15rem; font-size: .78rem; color: var(--tusche-3); margin-bottom: 2px; }
.skala__innen { position: relative; height: 1.3em; }
.skala__innen span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.mit-spur .gezeiten__tabelle tr { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 7.5rem 7.5rem; align-items: center; border-bottom: 1px solid rgba(22, 20, 18, .1); }
.mit-spur .gezeiten__tabelle th, .mit-spur .gezeiten__tabelle td { border: 0; padding: 14px 0; }
.mit-spur .gezeiten__tabelle td:not(.spur) { text-align: right; color: var(--tusche-2); }
.spur { position: relative; height: 34px; padding: 0 !important; }
.spur::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(22, 20, 18, .16); }
.flut { position: absolute; top: 6px; bottom: 6px; left: calc(var(--von) * 100%); width: calc((var(--bis) - var(--von)) * 100%); border-radius: 999px; background: linear-gradient(180deg, #2B6C72, #174A52); overflow: hidden; }
.flut::after { content: ""; position: absolute; inset: 0; background: radial-gradient(14px 5px at 20% 35%, rgba(255, 255, 255, .3), transparent 70%), radial-gradient(22px 5px at 70% 65%, rgba(255, 255, 255, .18), transparent 70%); background-size: 64px 100%; animation: flut 5s linear infinite; }
@keyframes flut { to { background-position: 64px 0, 64px 0; } }
tr[aria-current] .flut { background: linear-gradient(180deg, #E0C38E, #C49A50); }
.jetzt-strich { position: absolute; top: -4px; bottom: -4px; left: calc(var(--t) * 100%); width: 2px; margin-left: -1px; background: var(--tusche); border-radius: 2px; }
.jetzt-strich::after { content: ""; position: absolute; top: -5px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--tusche); }
@media (max-width: 720px) {
  .mit-spur .gezeiten__skala { grid-template-columns: 6.2rem minmax(0, 1fr); font-size: .7rem; }
  .mit-spur .gezeiten__skala .skala__innen span:nth-child(even) { display: none; }
  .mit-spur .gezeiten__tabelle tr { grid-template-columns: 6.2rem minmax(0, 1fr) minmax(0, 1fr); padding: 6px 0; }
  .mit-spur .gezeiten__tabelle th { grid-row: 1 / 3; padding: 8px 0; }
  .mit-spur .gezeiten__tabelle td.spur { grid-column: 2 / 4; grid-row: 1; }
  .mit-spur .gezeiten__tabelle td:not(.spur) { grid-row: 2; text-align: left; padding: 0 0 6px; font-size: .9rem; }
}

/* 5. Legende */
.legende { position: relative; height: 340vh; height: 340svh; background: #0E181A; color: #EDE6D8; }
.legende__buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.legende__fall { position: absolute; inset: 0; width: 100%; height: 100%; }
.legende__spruch { position: absolute; right: clamp(16px, 5vw, 96px); top: 50%; margin: 0; transform: translateY(-50%); text-align: right; font: 700 clamp(2.6rem, 1.2rem + 4.2vw, 6rem)/1.04 var(--viet); color: var(--gold); opacity: 0; text-shadow: 0 0 50px rgba(210, 174, 109, .35), 0 2px 18px rgba(0, 0, 0, .6); pointer-events: none; }
.legende__texte { position: relative; z-index: 2; height: 100%; padding: calc(var(--kopf-h) + 7vh) var(--rand) 9vh; max-width: 38rem; display: flex; flex-direction: column; justify-content: space-between; }
.legende__texte h2 { color: #F6F1E7; margin: 0; }
.legende__schritte { display: grid; }
.legende__schritt { grid-area: 1 / 1; align-self: end; opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; font: 600 clamp(1.25rem, 1rem + 1vw, 1.85rem)/1.45 var(--schrift-titel); text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.legende__schritt p { margin: 0; }
.legende__schritt.an { opacity: 1; transform: none; }
.legende:not(.mit-skript) { height: auto; }
.legende:not(.mit-skript) .legende__buehne { position: static; height: auto; }
.legende:not(.mit-skript) .legende__texte { display: block; height: auto; padding: 100px var(--rand); }
.legende:not(.mit-skript) .legende__schritt { opacity: 1; transform: none; margin-top: 1em; }
.legende:not(.mit-skript) .legende__schritte { display: block; }
/* ohne JavaScript gibt es kein Los zu ziehen: Abschnitt weglassen */
html:not(.js) .orakel { display: none; }
html:not(.js) .teich__kopf p { display: none; }
@media (max-width: 760px) {
  .legende__texte { max-width: none; }
  .legende__texte::before { content: ""; position: absolute; inset: 40% 0 0; z-index: -1; background: linear-gradient(rgba(14, 24, 26, 0), rgba(14, 24, 26, .85) 45%); }
  .legende__spruch { right: 16px; top: 30%; font-size: clamp(2.2rem, 1.4rem + 4vw, 3rem); }
}

/* 6. Kontakt */
.kontakt { padding: clamp(80px, 12vh, 150px) 0; }
.kontakt__raster { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.kontakt h2 { font-size: clamp(2.4rem, 1.2rem + 4.2vw, 5.4rem); margin-bottom: .1em; }
.kontakt__ort { font: 600 clamp(1.3rem, 1rem + 1vw, 1.9rem)/1.2 var(--schrift-titel); color: var(--gold-text); margin-bottom: 1.2em; }
.kontakt__wege { font-size: 1.15rem; line-height: 1.9; }
.kontakt__sozial { margin-top: 1.6em; display: flex; gap: 22px; font-weight: 500; }
.kontakt__logo { margin: 0; justify-self: center; width: min(420px, 80vw); }
.kontakt__logo img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(60, 45, 20, .25)); animation: schweben 7s ease-in-out infinite; }
@keyframes schweben { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (max-width: 820px) { .kontakt__raster { grid-template-columns: minmax(0, 1fr); } .kontakt__logo { order: -1; width: min(260px, 64vw); } }

/* Fuß */
.fuss { background: var(--tusche); color: rgba(242, 237, 227, .8); padding: 36px 0 44px; font-size: .92rem; }
.fuss__innen { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
.fuss p { margin: 0; }
.fuss nav { display: flex; gap: 22px; flex-wrap: wrap; }
.fuss a { color: #F2EDE3; }
.fuss__entwurf { color: rgba(242, 237, 227, .55); width: 100%; font-size: .8rem; }

/* Textseiten (Impressum, Datenschutz, 404) */
.text-seite { padding: calc(var(--kopf-h) + 70px) 0 100px; }
.text-seite .rahmen { max-width: 760px; }
.text-seite h2 { font-size: 1.35rem; margin-top: 1.6em; }
.hinweis { background: var(--papier-2); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 6px; margin-bottom: 1.6em; }
.hinweis p { margin: 0; }

/* Speisekarte */
.karte-kopf { padding: calc(var(--kopf-h) + clamp(40px, 8vh, 90px)) 0 clamp(28px, 5vh, 48px); }
.karte-kopf__raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.karte-kopf h1 { font-size: clamp(2.8rem, 1.4rem + 5vw, 6rem); margin-bottom: .2em; }
.karte-kopf .einleitung { max-width: 34rem; }
.karte-suche label { display: block; font-weight: 700; margin-bottom: 8px; }
.karte-suche input { width: 100%; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--tusche); background: #FBF8F2; font: 400 1.05rem var(--schrift-text); color: var(--tusche); }
.karte-suche input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.filter__knopf { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(22, 20, 18, .25); background: transparent; color: var(--tusche); font: 500 .93rem var(--schrift-text); cursor: pointer; }
.filter__knopf:hover { border-color: var(--tusche); }
.filter__knopf[aria-pressed="true"] { background: var(--tusche); border-color: var(--tusche); color: var(--papier); }
.karte-suche__ergebnis { margin: 10px 0 0; font-size: .9rem; color: var(--tusche-3); min-height: 1.4em; }
.kartennavi { position: sticky; top: var(--kopf-h); z-index: 40; background: rgba(242, 237, 227, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(22, 20, 18, .08); }
.kartennavi__innen { position: relative; max-width: 1240px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.kartennavi__innen::-webkit-scrollbar { display: none; }
.kartennavi ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 10px var(--rand) 16px; width: max-content; }
.kartennavi a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; color: var(--tusche-2); }
.kartennavi a:hover { background: rgba(22, 20, 18, .06); }
.kartennavi a[aria-current] { color: var(--tusche); font-weight: 700; }
.kartennavi__koi { position: absolute; left: 0; bottom: 3px; width: 34px; height: 14px; fill: var(--tusche); transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); opacity: 0; }
.kartennavi__koi.da { opacity: 1; }
.kartenteil { padding: clamp(48px, 8vh, 80px) 0 12px; scroll-margin-top: calc(var(--kopf-h) + 70px); }
.kartenteil h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.2rem); display: flex; align-items: baseline; gap: .5em; }
.kartenteil h2::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(210, 174, 109, 0)); transform: translateY(-.25em); }
.untergruppe { margin-top: 30px; scroll-margin-top: calc(var(--kopf-h) + 70px); }
.untergruppe h3 { font-size: 1.45rem; margin-bottom: .3em; }
.menge { font: 500 .9rem var(--schrift-text); color: var(--tusche-3); margin-left: .4em; }
.kartenteil__hinweis { color: var(--tusche-3); font-size: .95rem; max-width: 52rem; }
.gerichte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 56px; }
.gerichte--zweispaltig { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gericht { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed rgba(22, 20, 18, .18); }
.gericht__nr { font: 800 1rem var(--schrift-titel); color: var(--gold-text); }
.gericht__inhalt { min-width: 0; }
.gericht__name { font-weight: 700; margin: 0; font-size: 1.05rem; }
.gericht__info { margin: 2px 0 0; color: var(--tusche-2); font-size: .95rem; line-height: 1.5; }
.gericht__preis { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.varianten { list-style: none; margin: 6px 0 0; padding: 0; }
.varianten li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--tusche-2); font-size: .95rem; }
.varianten .gericht__preis { color: var(--tusche); }
.merkmal { display: inline-block; font: 500 .74rem/1 var(--schrift-text); padding: 4px 8px; border-radius: 999px; vertical-align: .15em; margin-left: 4px; white-space: nowrap; }
.merkmal--gruen { background: #DCE7DD; color: #24553A; }
.merkmal--gold { background: #F0E1C2; color: #6E5220; }
.merkmal--scharf { border: 1px solid rgba(22, 20, 18, .35); color: var(--tusche-2); }
.schritte { list-style: none; counter-reset: schritt; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.schritte > li { counter-increment: schritt; }
.schritte h3::before { content: counter(schritt) ". "; color: var(--gold-text); }
.karte-schluss { margin-top: 80px; padding: 80px 0; background: var(--tusche); color: var(--papier); }
.karte-schluss h2 { color: #F6F1E7; }
.karte-leer { text-align: center; padding: 40px var(--rand) 80px; font-size: 1.1rem; color: var(--tusche-2); }
.weg { display: none !important; }
@media (max-width: 860px) {
  .karte-kopf__raster, .gerichte--zweispaltig, .schritte { grid-template-columns: minmax(0, 1fr); }
  .gericht { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
}
