/* lp-217 Studio LEHM · der Weg einer Tasse in Bildebenen (Skill parallax-webseite, Rechnung in ebenen.css).
   Jede Bühne aus einem Bild: Kopf (Test LEHM), Ofen, Regal (ruhig), Kurs. Vorn liegt je ein scharfer Gegenstand auf der Naht. */
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans-wdth-var.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root { --grund: #f3ece2; --text: #2a1c13; --kobalt: #2443c9; --kobalt-dunkel: #1a329f; --glut: #f6e2cc; --kopfh: 56px; --rand: clamp(16px, 4vw, 64px); }
* { box-sizing: border-box; }
html { background: var(--grund); scroll-padding-top: var(--kopfh); overflow-x: clip; }
body { margin: 0; font: 400 1.05rem/1.55 "Manrope", sans-serif; color: var(--text); background: var(--grund); overflow-x: clip; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--kobalt); outline-offset: 3px; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--text); color: var(--grund); border-radius: 8px; }
.sprung:focus { top: 10px; }

/* Kopfzeile deckend, ohne Unschärfe dahinter */
.kopfzeile { position: fixed; z-index: 30; inset: 0 0 auto; height: var(--kopfh); display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--rand); background: var(--grund); }
.marke { display: inline-flex; align-items: center; min-height: 44px; font: 800 1rem "Manrope", sans-serif; color: var(--text); text-decoration: none; }
.beispiel { font-weight: 500; opacity: .65; }
.kopf-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 700; text-underline-offset: 5px; }

.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--kobalt); color: #fbf8f3; font: 700 1rem "Manrope", sans-serif; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.knopf:hover { background: var(--kobalt-dunkel); } .knopf:active { background: #142a85; }
.text-link { display: inline-block; padding: 14px 0 6px; color: var(--kobalt); font-weight: 700; text-underline-offset: 5px; }

/* Reihenfolge der Bühnen: der Vordergrund jeder Bühne liegt über der nächsten */
.kopf { z-index: 5; } .ofen { z-index: 4; } .regal { z-index: 3; } .kurs { z-index: 2; }

/* Tafeln: Text auf deckendem Grund, nie direkt auf dem Foto */
/* Tafeln fahren leicht gegen den Ort: sie steigen schneller als die Seite, der Ort bleibt zurück (Martin 01.11.2026) */
.tafel { --y0: 9vh; --y1: -9vh; position: absolute; z-index: 3; max-width: 31rem; padding: clamp(22px, 2.8vw, 38px); background: var(--grund); border-radius: 20px; }
.tafel h2 { margin: 0 0 12px; font: 900 clamp(2rem, 4vw, 3.6rem)/.95 "Mona Sans", sans-serif; font-stretch: 112%; letter-spacing: -.02em; color: var(--kobalt); text-wrap: balance; }
.tafel p { margin: 0; }

/* ---------- Bühne 1 · Kopf (Werte aus dem Test LEHM) ---------- */
.kopf .rahmen { background: #e7dfd2; }
.e0 { --y1: 28vh; --s0: 1.03; --s1: 1.1; --mxf: -14px; --myf: -8px;
  position: absolute; inset: -3% -3% -8%; width: 106%; height: 111%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 40%; }
.e1 { --y1: 16vh; --mxf: -6px; --myf: -3px;
  position: absolute; left: clamp(12px, 3.2vw, 56px); top: calc(var(--kopfh) + 6vh);
  font: 900 24vw/.8 "Mona Sans", sans-serif; font-stretch: 125%; letter-spacing: -.035em; color: var(--kobalt); }
.e2 { --y1: 7vh; --mxf: 10px; --myf: 5px;
  position: absolute; bottom: 0; left: 55%; height: 88%; width: auto; transform-origin: 50% 100%; }
.kopf-text { position: absolute; z-index: 3; left: var(--rand); bottom: calc(5.6vw + 4vh); max-width: 27rem; }
.kopf-text h1 { margin: 0 0 18px; font: 650 clamp(1.1rem, 1.55vw, 1.45rem)/1.32 "Manrope", sans-serif; text-wrap: balance; }
.beruhigung { margin: 10px 0 0; font-size: .95rem; }
.beleg { margin: 4px 0 0; font-size: .95rem; font-weight: 700; }

/* ---------- Bühne 2 · Ofen: Ort bleibt zurück, die Zahl steht davor in der Tiefe, die glasierten Tassen eilen voraus ---------- */
.ofen { min-height: 100svh; background: #1d2433; }
.o-ort { --y0: -10vh; --y1: 10vh; --s0: 1.06; --s1: 1.02; --mxf: -10px; --myf: -6px;
  position: absolute; inset: -12% -3%; width: 106%; height: 124%; object-fit: cover; object-position: 50% 50%; }
.o-zahl { --y0: -5vh; --y1: 7vh; --mxf: -4px; --myf: -2px;
  position: absolute; margin: 0; left: var(--rand); top: 12vh; white-space: nowrap;
  font: 900 clamp(5rem, 15vw, 15rem)/.8 "Mona Sans", sans-serif; font-stretch: 118%; letter-spacing: -.04em; color: var(--glut); }
.o-tafel { left: var(--rand); bottom: calc(6vw + 8vh); }
.o-vorn { --y0: calc(45% + 6vh); --y1: calc(45% - 6vh); }

/* ---------- Ruhig · Regal: ein Bild, das langsam mitfährt ---------- */
.regal { min-height: 100svh; }
.r-bild { --y0: -7vh; --y1: 7vh;
  position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.r-tafel { right: var(--rand); bottom: 10vh; }

/* ---------- Bühne 3 · Kurs: Ort und Personen in derselben 16:9-Fläche (unten anliegend), dazwischen das Wort ---------- */
.kurs { min-height: 100svh; background: #1c1a1f; }
.flaeche { position: absolute; bottom: 0; width: max(100vw, 177.78svh); aspect-ratio: 16 / 9;
  left: calc(50% - max(50vw, 88.89svh)); container-type: size; }
.flaeche > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.k-ort { --y0: -8vh; --y1: 8vh; --s0: 1.06; --s1: 1.06; --mxf: -10px; --myf: -5px; transform-origin: 50% 60%; }
.k-wort { --y0: -3vh; --y1: 5vh; --mxf: -5px; --myf: -2px;
  position: absolute; margin: 0; left: auto; right: calc((100cqw - 100vw) / 2 + 3.5vw); top: 9cqh; text-align: right;
  font: 900 min(15.5cqw, 14.5vw)/.8 "Mona Sans", sans-serif; font-stretch: 125%; letter-spacing: -.035em; color: var(--grund); }
.k-leute { --y0: 2vh; --y1: -2vh; --mxf: 8px; --myf: 4px; transform-origin: 50% 100%;
  inset: auto; left: 19.389%; top: 18.245%; width: 80.611%; height: 81.755%; }   /* nur der Bereich mit den Personen: weniger leere Fläche für die Grafikkarte */
.k-tafel { left: var(--rand); top: 34vh; max-width: min(25rem, 29vw); }   /* links über dem leeren Tisch, nie vor den Gesichtern */
.k-vorn { --y0: calc(45% + 6vh); --y1: calc(45% - 6vh); }

/* ---------- Ruhig · Angebot und Anfrage ---------- */
.anfrage { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px);
  padding: clamp(96px, 16vh, 160px) var(--rand) clamp(64px, 10vh, 120px); }
.angebot h2 { margin: 0 0 28px; font: 900 clamp(2rem, 3.6vw, 3.4rem)/.98 "Mona Sans", sans-serif; font-stretch: 112%; letter-spacing: -.02em; color: var(--kobalt); text-wrap: balance; }
.preise { margin: 0; padding: 0; list-style: none; }
.preise li { display: grid; grid-template-columns: 1fr auto; gap: 2px 24px; padding: 18px 0; border-top: 1px solid #d6c6b2; }
.preise li:last-child { border-bottom: 1px solid #d6c6b2; }
.p-name { font-weight: 800; font-size: 1.15rem; }
.p-was { grid-column: 1; color: #5a4636; }
.p-preis { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 800 1.35rem "Mona Sans", sans-serif; font-stretch: 110%; color: var(--kobalt); white-space: nowrap; }
.preis-hinweis { margin: 14px 0 0; font-size: .92rem; color: #5a4636; }

.formular { display: grid; align-content: start; gap: 6px; padding: clamp(22px, 3vw, 40px); background: #fbf7f1; border-radius: 20px; }
.formular label { margin-top: 10px; font-weight: 700; }
.formular input, .formular select { min-height: 48px; padding: 10px 14px; border: 1.5px solid #8a7660; border-radius: 12px; background: #fff; color: var(--text); font: inherit; }
.formular input[aria-invalid="true"] { border-color: #b3261e; }
.formular .knopf { margin-top: 18px; justify-self: start; }
.feld-fehler { margin: 0; color: #b3261e; font-size: .92rem; }
.feld-fehler:empty { display: none; }
.nach-klick { margin: 6px 0 0; font-size: .95rem; color: #5a4636; }
.formular-meldung { margin: 8px 0 0; font-weight: 700; color: var(--kobalt); }
.formular-meldung:empty { display: none; }

.fuss { position: relative; z-index: 1; padding: 40px var(--rand) 48px; background: var(--text); color: #eadccc; font-size: .95rem; }
.fuss p { margin: 0; }
.fuss-links a { display: inline-block; padding: 12px 0; color: #eadccc; }

/* Rechtliches */
.lesetext { max-width: 46rem; padding: calc(var(--kopfh) + 8vh) var(--rand) 64px; }
.lesetext h1 { margin: 0 0 20px; font: 900 clamp(2.2rem, 5vw, 3.6rem)/1 "Mona Sans", sans-serif; font-stretch: 112%; color: var(--kobalt); }
.lesetext h2 { margin: 36px 0 12px; font-size: 1.5rem; }
.lesetext dl div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid #d6c6b2; }
.lesetext dt { font-weight: 700; } .lesetext dd { margin: 0; }
.zurueck { display: inline-block; padding: 12px 0; color: var(--kobalt); font-weight: 700; }

/* Flaches Fenster: Kopftext kleiner, Wort kleiner */
@media (max-height: 560px) and (orientation: landscape) {
  .e1 { font-size: 17vw; top: calc(var(--kopfh) + 3vh); }
  .kopf-text { bottom: calc(4vw + 2vh); }
  .kopf-text .beruhigung, .kopf-text .beleg { display: none; }
  .tafel { max-width: 26rem; padding: 18px; } .tafel h2 { font-size: 1.8rem; }
  .o-zahl { font-size: 10vw; top: 8vh; }
  .k-tafel { top: calc(var(--kopfh) + 4vh); max-width: 22rem; }
  .k-wort { display: none; }   /* zu wenig Höhe: die Tafel läge über dem Wort */
}

/* Handy hochkant: eigener Zuschnitt je Bühne, Text auf Tafeln */
@media (max-width: 700px) and (orientation: portrait) {
  :root { --kopfh: 52px; }
  .kopf-text { top: calc(var(--kopfh) + 2.5svh); bottom: auto; max-width: 92vw; }
  .kopf-text h1 { font-size: 1.05rem; margin-bottom: 14px; }
  .beruhigung, .beleg { font-size: .88rem; }
  .knopf { min-height: 44px; padding: 0 20px; }
  .e1 { top: 36svh; left: 3vw; font-size: 27vw; }
  .e2 { left: 12vw; height: 58%; }
  .vorn { left: 0; width: 100%; height: 11svh; object-fit: cover; }
  .tafel { left: 12px; right: 12px; max-width: none; padding: 20px; border-radius: 16px; }
  .tafel h2 { font-size: 1.9rem; }
  .o-ort { object-position: 72% 50%; }
  .o-zahl { top: calc(var(--kopfh) + 4svh); font-size: 22vw; }
  .o-tafel { bottom: 16svh; }
  .r-bild { object-position: 40% 50%; }
  .r-tafel { bottom: 8svh; }
  .flaeche { left: calc(-.44 * max(100vw, 177.78svh)); }
  .k-wort { display: none; }   /* am Handy trägt die Tafel oben die Zeit, ein Wortrest hinter ihr wäre abgeschnitten */
  .k-tafel { top: auto; bottom: 15svh; max-width: none; }   /* über den Scheiben, die Gesichter bleiben frei */
  .anfrage { grid-template-columns: 1fr; }
  .lesetext dl div { grid-template-columns: 1fr; gap: 2px; }
}
