/* keller.css · ZWÖLF METER, Weingut Hohlrain (Beispiel). Kalkweiß oben, Kellerbraun unten, Kerzenlicht als Akzent. */
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --kalk: #f4efe6; --kalk-2: #e8dfcf; --keller: #17100b; --erde: #2c2017; --erde-2: #3d2d20;
  --kerze: #e9a03f; --kerze-hell: #f6be63; --tinte: #221811; --leise: #6c5d4d; --hell-leise: #cdbfa9;
  --schrift: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  /* Schrift-Ordnung: fünf Größen */
  --s-riese: clamp(2.5rem, 5vw, 4.8rem);
  --s-gross: clamp(1.9rem, 3.3vw, 3.1rem);
  --s-mittel: clamp(1.15rem, 1.6vw, 1.4rem);
  --s-text: 1.0625rem;
  --s-klein: .9rem;
  --rand: clamp(20px, 5vw, 76px);
  --luft: clamp(72px, 12vh, 150px);
  --weich: cubic-bezier(.2, .7, .2, 1);
  /* Welt der Bühne: Seitenverhältnis der Ebenen (masse.json), Fluchtpunkt = Fuß der Flasche */
  --eb-format: 3400 / 1898; --eb-faktor: 1.7914; --ursprung: 62.21% 49%;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--keller); color: var(--tinte); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--s-text)/1.6 var(--schrift); overflow-x: clip; background: var(--kalk); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
h1, h2 { font-weight: 760; letter-spacing: -.02em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--s-riese); }
h2 { font-size: var(--s-gross); margin-bottom: .45em; }
h3 { font-size: var(--s-mittel); font-weight: 700; line-height: 1.25; }
p { max-width: 38em; }
.rand { max-width: 1600px; margin-inline: auto; padding-inline: var(--rand); }
.abschnitt { padding-block: var(--luft); }

:focus-visible { outline: 3px solid var(--kerze); outline-offset: 3px; border-radius: 6px; }
.sprung { position: fixed; left: 12px; top: -90px; z-index: 100; background: var(--keller); color: var(--kalk); padding: 12px 18px; font-weight: 700; border-radius: 8px; }
.sprung:focus { top: 12px; }

.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; background: var(--keller); color: var(--kalk); font: 700 1.05rem/1 var(--schrift); text-decoration: none; border: 0; border-radius: 999px; cursor: pointer; transition: transform .2s var(--weich), background-color .25s, color .25s; }
.knopf:hover { transform: translateY(-2px); background: var(--erde-2); }
.knopf:active { transform: translateY(0) scale(.98); }
.knopf:disabled { opacity: .5; cursor: progress; }
.knopf-klein { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.knopf-satz { font-size: var(--s-klein); color: var(--leise); margin-top: 10px; }

/* ───── Kopfzeile: hell auf der Wand, dunkel im Keller ───── */
.leiste { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 34px); padding-inline: var(--rand); color: var(--tinte); transition: background-color .3s, color .3s, box-shadow .3s; }
.marke { display: inline-flex; align-items: center; gap: 10px; font: 800 1.1rem/1 var(--schrift); letter-spacing: .08em; text-decoration: none; min-height: 44px; margin-right: auto; }
.marke small { font: 500 .85rem/1 var(--schrift); letter-spacing: 0; opacity: .7; }
.marke-tor { width: 16px; height: 22px; border-radius: 8px 8px 1px 1px; background: currentColor; box-shadow: inset 0 -7px 0 -3px var(--kerze); }
.leiste-nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.leiste-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .98rem; text-decoration: none; background: linear-gradient(var(--kerze), var(--kerze)) 0 78% / 0 2px no-repeat; transition: background-size .35s var(--weich); }
.leiste-nav a:hover { background-size: 100% 2px; }
html[data-licht="nacht"] .leiste { color: var(--kalk); }
html[data-licht="nacht"] .leiste .knopf { background: var(--kerze); color: var(--keller); }
.leiste.fest { background: var(--kalk); color: var(--tinte); box-shadow: 0 1px 0 rgba(34, 24, 17, .12); }
html[data-licht="nacht"] .leiste.fest { background: var(--keller); color: var(--kalk); box-shadow: 0 1px 0 rgba(244, 239, 230, .1); }

/* ───── Bühne (Ebenen aus einem Bild) ───── */
.eb-bahn { position: relative; background: var(--keller); }
.eb-buehne { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--kalk-2); }
.eb-welt { position: absolute; left: 50%; top: 50%; width: max(100%, calc(100svh * var(--eb-faktor))); aspect-ratio: var(--eb-format); transform: translate(var(--eb-fx, -50%), -50%) scale(1.08); transition: opacity .6s ease-out; }
.eb-ebene { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: var(--ursprung); }
/* Flasche: Fuß genau auf dem Fass im Fluchtpunkt, wächst von dort aus */
.flasche { position: absolute; left: calc(62.21% - .3375%); top: calc(49% - 4.7%); width: .675%; aspect-ratio: 640 / 2489; transform-origin: 50% 100%; }
.flasche img { width: 100%; height: 100%; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .4)); }
.dunkel { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--ka, 0);
  background: radial-gradient(circle at var(--kx, 62%) var(--ky, 48%), rgba(255, 176, 90, .14) 0, rgba(14, 9, 6, 0) var(--kr0, 7vmax), rgba(14, 9, 6, .55) calc(var(--kr1, 30vmax) * .7), rgba(10, 7, 5, .96) var(--kr1, 30vmax)); }
.eb-buehne::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 30%; z-index: 1; background: linear-gradient(to bottom, rgba(23, 16, 11, var(--oben, 0)), rgba(23, 16, 11, 0)); pointer-events: none; }
.texte { position: absolute; z-index: 2; left: var(--rand); top: clamp(108px, 18vh, 180px); width: min(560px, 40vw); }
.kapitel-grund { display: none; }
.eb-kapitel h2 { margin-bottom: .35em; }
.eb-kapitel p { font-weight: 500; }
.vorspann { font-size: clamp(1.05rem, 1.3vw, 1.2rem); margin-top: 18px; max-width: 30em; }
.knopf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.knopf-zeile .knopf-satz { margin: 0; max-width: 16em; }
.eb-kapitel .knopf { margin-top: 24px; }
/* k1 läuft, während das Tor am Text vorbeizieht (hell und dunkel gemischt): eigene Fläche */
html.bewegt .k1 { left: -22px; top: -18px; padding: 18px 22px 22px; border-radius: 18px; background: rgba(244, 239, 230, .93); max-width: 520px; }
.k2, .k3, .k4 { color: var(--kalk); }
.k2 p, .k3 p, .k4 p { color: var(--hell-leise); }
.k4 .knopf { background: var(--kerze); color: var(--keller); }
.k4 .knopf:hover { background: var(--kerze-hell); }
.nur-finger { display: none; }
html.finger .nur-finger { display: inline; } html.finger .nur-maus { display: none; }
.messer { position: absolute; z-index: 2; right: var(--rand); bottom: clamp(24px, 6vh, 60px); display: flex; gap: 26px; padding: 10px 18px; border-radius: 14px; background: rgba(23, 16, 11, .72); color: var(--kalk); text-align: right; }
.messer p { display: grid; }
.messer-zahl { font: 500 clamp(1.4rem, 2.2vw, 2rem)/1.1 var(--mono); font-variant-numeric: tabular-nums; color: var(--kerze-hell); }
.messer-name { font-size: var(--s-klein); color: var(--hell-leise); }

html.js:not(.bereit) .eb-motiv { visibility: hidden; }
html.js:not(.bilder) .eb-welt { opacity: 0; }
html.bewegt .eb-bahn { height: 560vh; height: 560svh; }
html.bewegt .eb-buehne { position: sticky; top: 0; }
html.bewegt .eb-kapitel { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .35s, transform .5s var(--weich), visibility 0s .35s; }
html.bewegt .eb-kapitel.ist-da { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .14s, transform .6s var(--weich) .14s, visibility 0s; }
/* ruhige Fassung und ohne JavaScript: Bild oben, alle Kapitel darunter */
html:not(.bewegt) .eb-buehne { height: auto; min-height: 0; padding-top: max(380px, min(78vh, 56vw)); }
html:not(.bewegt) .eb-welt { top: calc(max(380px, min(78vh, 56vw)) / 2); width: max(100%, calc(max(380px, min(78vh, 56vw)) * var(--eb-faktor))); }
html:not(.bewegt) .eb-motiv { visibility: visible; }
html:not(.bewegt) .texte { position: relative; left: 0; top: 0; width: auto; max-width: 1600px; margin-inline: auto; padding: 48px var(--rand) 40px; display: grid; gap: 40px; background: var(--keller); color: var(--kalk); }
html:not(.bewegt) .k0 p, html:not(.bewegt) .k1 p { color: var(--hell-leise); }
html:not(.bewegt) .k0 .knopf { background: var(--kerze); color: var(--keller); }
html:not(.bewegt) .knopf-satz { color: var(--hell-leise); }
html:not(.bewegt) .messer, html:not(.bewegt) .dunkel { display: none; }
html:not(.bewegt) .nur-maus { display: none; }

/* ───── Im Keller: Kerzenlicht wandert zu drei Stellen ───── */
.unten { position: relative; background: var(--keller); color: var(--kalk); }
.unten-buehne { position: relative; overflow: hidden; }
.unten-bild { width: 100%; height: auto; }
.unten-dunkel { display: none; }
.unten-kopf { padding-block: 40px 10px; }
.unten-kopf h2 { margin: 0; }
.stellen { display: grid; gap: 26px; padding-block: 20px var(--luft); }
.stelle { display: grid; gap: 6px; max-width: 34em; }
.stelle-zahl { font: 700 1.05rem/1.2 var(--schrift); color: var(--kerze); }
.stelle p { color: var(--hell-leise); }
html.bewegt .unten { height: 330vh; height: 330svh; }
html.bewegt .unten-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; }
html.bewegt .unten-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--us, 1.06)); transform-origin: var(--ux, 50%) var(--uy, 50%); }
html.bewegt .unten-dunkel { display: block; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 40%), rgba(255, 176, 90, .16) 0, rgba(14, 9, 6, 0) 11vmax, rgba(14, 9, 6, .45) 24vmax, rgba(10, 7, 5, .82) 42vmax); }
html.bewegt .unten-kopf { position: absolute; z-index: 2; left: 0; right: 0; top: 96px; padding-block: 0; }
html.bewegt .unten-kopf h2 { max-width: 14em; }
html.bewegt .stellen { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(28px, 8vh, 80px); padding-block: 0; display: block; }
html.bewegt .stelle { position: absolute; left: var(--rand); bottom: 0; width: min(440px, calc(100% - 2 * var(--rand))); padding: 18px 22px; border-radius: 16px; background: rgba(23, 16, 11, .78); opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--weich); }
html.bewegt .stelle.an { opacity: 1; transform: none; transition: opacity .5s .1s, transform .6s var(--weich) .1s; }
.stelle-punkt { position: absolute; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--kerze-hell); box-shadow: 0 0 0 6px rgba(233, 160, 63, .25), 0 0 24px 6px rgba(246, 190, 99, .55); opacity: 0; transition: opacity .4s; pointer-events: none; }
.stelle-punkt.an { opacity: 1; }

/* ───── Führungen und Preise ───── */
.fuehrungen { background: var(--erde); color: var(--kalk); }
.fuehrungen-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px clamp(30px, 6vw, 110px); align-items: start; }
.fuehrungen-kopf p { color: var(--hell-leise); font-size: var(--s-mittel); line-height: 1.45; }
.fass-bild { margin-top: 34px; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.fass-bild img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--fs, 1)); transform-origin: 30% 60%; }
.angebote { display: grid; border-top: 2px solid rgba(244, 239, 230, .16); }
.angebot { padding: 26px 0; border-bottom: 2px solid rgba(244, 239, 230, .16); display: grid; gap: 8px; }
.angebot-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 24px; flex-wrap: wrap; }
.angebot-preis { font: 500 clamp(1.3rem, 2vw, 1.7rem)/1.1 var(--mono); color: var(--kerze-hell); white-space: nowrap; }
.angebot-preis small { font-size: .85rem; color: var(--hell-leise); }
.angebot > p { color: var(--hell-leise); }
html.js.bewegt .angebot { opacity: .25; transform: translateX(-12px); transition: opacity .6s, transform .7s var(--weich); }
html.js.bewegt .angebot.an { opacity: 1; transform: none; }
.fragen { grid-column: 2; }
details { border-bottom: 2px solid rgba(244, 239, 230, .16); }
summary { position: relative; list-style: none; cursor: pointer; padding: 20px 50px 20px 0; font-size: var(--s-mittel); font-weight: 650; line-height: 1.3; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 3px; margin-top: -1.5px; border-radius: 3px; background: var(--kerze); transition: transform .35s var(--weich); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0deg); }
details p { padding: 0 50px 22px 0; color: var(--hell-leise); }
.fuehrungen :focus-visible { outline-color: var(--kerze-hell); }

/* ───── Anfrage: wieder oben an der sonnigen Wand ───── */
.anfrage { position: relative; padding-block: calc(var(--luft) + 60px) var(--luft); background: var(--kalk); overflow: hidden; }
.anfrage-grund { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.anfrage::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, var(--erde) 0, rgba(44, 32, 23, 0) 26%), linear-gradient(100deg, rgba(244, 239, 230, .2), rgba(244, 239, 230, 0) 60%); pointer-events: none; }
.anfrage-raster { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(30px, 6vw, 110px); align-items: start; }
.anfrage-kopf p { font-size: var(--s-mittel); line-height: 1.45; color: #3d3024; }
.formular { background: rgba(255, 253, 249, .94); color: var(--tinte); padding: clamp(22px, 3vw, 38px); border-radius: 22px; box-shadow: 0 30px 60px -40px rgba(34, 24, 17, .6); }
.formular .eingabe { margin-bottom: 14px; }
.eingabe label { display: block; font-weight: 700; font-size: .98rem; margin-bottom: 6px; }
.eingabe small { font-weight: 400; color: var(--leise); }
.formular input, .formular textarea { width: 100%; min-height: 52px; padding: 13px 15px; background: #fffdf9; border: 2px solid rgba(34, 24, 17, .22); border-radius: 12px; color: var(--tinte); font: 500 1rem/1.4 var(--schrift); }
.formular textarea { resize: vertical; }
.formular input::placeholder { color: #8a7c6c; }
.formular input:focus-visible, .formular textarea:focus-visible { outline: 3px solid var(--kerze); outline-offset: 1px; border-color: var(--erde-2); }
.formular [aria-invalid="true"] { border-color: #a3261b; }
.feldpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feld-fehler { min-height: 1.3em; margin-top: 4px; font-size: var(--s-klein); color: #a3261b; }
.formular .knopf { margin-top: 6px; }
.formular-meldung { margin-top: 12px; font-weight: 700; color: var(--erde-2); }
.formular-meldung:empty { display: none; }

/* ───── Fußzeile ───── */
.fuss { background: var(--keller); color: #eae2d4; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr 1fr auto 1.2fr; gap: 30px clamp(24px, 4vw, 70px); padding-block: 48px 56px; font-size: .96rem; }
.fuss-raster a { text-underline-offset: 3px; }
.fuss-raster p { line-height: 1.9; }
.fuss-klein { color: var(--hell-leise); }
.zeichen-liste { display: flex; gap: 4px; align-items: flex-start; }
.zeichen-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color .25s, color .25s; }
.zeichen-link:hover { background: rgba(233, 160, 63, .18); color: var(--kerze-hell); }
.zeichen { width: 22px; height: 22px; }

/* ───── Rechtliches ───── */
.recht-seite .leiste { position: static; }
.recht { max-width: 780px; margin: 0 auto; padding: 40px var(--rand) 90px; }
.recht h1 { font-size: var(--s-gross); margin-bottom: .6em; }
.recht h2 { font-size: var(--s-mittel); margin: 2em 0 .5em; overflow-wrap: break-word; }
.recht p { margin-bottom: 1em; }
.recht dl { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.recht dt { font-weight: 700; } .recht dd { margin: 0; }
.hinweis-kasten { padding: 16px 20px; border-radius: 14px; background: var(--kalk-2); }
.fuss-recht .rand { padding-block: 30px; }

/* ───── Schmal ───── */
@media (max-width: 900px) {
  .leiste-nav { display: none; }
  .marke small { display: none; }
  .fuehrungen-raster, .anfrage-raster { grid-template-columns: minmax(0, 1fr); }
  .fragen { grid-column: auto; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px), (max-aspect-ratio: 9/10) {
  .eb-welt { --eb-fx: -63%; }
  .texte { top: auto; bottom: clamp(20px, 5vh, 44px); left: 12px; right: 12px; width: auto; }
  html.bewegt .eb-kapitel { top: auto; bottom: 0; padding: 18px 18px 20px; border-radius: 18px; background: rgba(23, 16, 11, .8); color: var(--kalk); }
  html.bewegt .k0 { background: rgba(244, 239, 230, .93); color: var(--tinte); }
  html.bewegt .k1 { left: 0; top: auto; max-width: none; padding: 18px 18px 20px; background: rgba(244, 239, 230, .93); color: var(--tinte); }
  html.bewegt .k0 .knopf-satz { color: var(--leise); }
  html.bewegt .eb-kapitel p { color: inherit; }
  html.bewegt h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  html.bewegt .eb-kapitel h2 { font-size: clamp(1.5rem, 6.6vw, 2rem); }
  .vorspann { font-size: 1rem; margin-top: 10px; }
  .knopf-zeile { margin-top: 16px; }
  .messer { gap: 14px; top: 74px; bottom: auto; right: 12px; padding: 6px 12px; }
  .messer-zahl { font-size: 1.05rem; }
  html.bewegt .stelle { width: auto; right: var(--rand); }
  html.bewegt .unten-kopf { top: 84px; }
}
@media (max-width: 560px) {
  .feldpaar, .fuss-raster { grid-template-columns: 1fr; }
  .leiste { gap: 8px; height: 64px; }
  .marke { font-size: 1rem; }
  .knopf-zeile .knopf-satz { max-width: none; }
}
/* klein und flach (z. B. 640 × 440) */
@media (max-height: 560px) and (min-width: 561px) {
  .eb-welt { --eb-fx: -50%; }
  .eb-buehne { min-height: 0; }
  .texte { top: 70px; bottom: auto; left: var(--rand); right: auto; width: min(380px, 52vw); }
  html.bewegt .eb-kapitel { top: 0; bottom: auto; padding: 12px 14px 14px; }
  html.bewegt .k0 { background: rgba(244, 239, 230, .9); }
  html.bewegt .k1 { left: 0; top: 0; }
  html.bewegt .k0 .vorspann { display: none; }
  html.bewegt h1 { font-size: clamp(1.7rem, 4.2vw, 2.3rem); }
  html.bewegt .eb-kapitel h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); }
  html.bewegt .vorspann, html.bewegt .eb-kapitel p { font-size: .92rem; line-height: 1.45; margin-top: 8px; }
  html.bewegt .knopf-zeile { margin-top: 12px; }
  html.bewegt .knopf-zeile .knopf-satz { display: none; }
  html.bewegt .eb-kapitel .knopf { margin-top: 10px; min-height: 46px; }
  .messer { padding: 6px 12px; top: auto; bottom: 14px; }
  .messer-zahl { font-size: 1.1rem; }
  html.bewegt .unten-kopf { top: 70px; }
  html.bewegt .stelle { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
