/* Glutstein. Seitenstil. Die Engine-Klassen (.sc-*, [data-sc-*]) bleiben
   unangetastet; hier stehen Marke, Raum, Ofen, Luftschieber und Anfrage. */
:root {
  --waerme: 0;                     /* setzt seite.js: 0 vor dem Höhepunkt, 1 danach */
  --anthrazit: #18181A;
  --warmgrund: #2A1C15;
  --sc-canvas: color-mix(in oklab, var(--anthrazit), var(--warmgrund) calc(var(--waerme) * 100%));
  --sc-surface: color-mix(in oklab, #232124, #36261D calc(var(--waerme) * 100%));
  --sc-ink: #F3ECE3;
  --sc-ink-soft: #C2B6A9;
  --sc-accent: #F07A2A;
  --sc-accent-ink: #1C0F07;
  --sc-font-display: "Zilla Slab", Georgia, serif;
  --sc-font-text: "Mulish", system-ui, sans-serif;
  --sc-font-mono: "Mulish", system-ui, sans-serif;
  --sc-shadow-color: 20 25% 3%;
  --guss: #2B2A2C;
  color-scheme: dark;
}
html { background: var(--sc-canvas); scrollbar-color: #4a3d34 var(--sc-canvas); }
body { font-family: var(--sc-font-text); background: var(--sc-canvas); color: var(--sc-ink); }
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 3px; }
input { caret-color: var(--sc-accent); }

/* Gegossene Schrift: Slab, kräftig, eng. Heller Text auf dunkel bekommt etwas
   mehr Laufweite und Zeilenabstand. */
.sc-display {
  font-family: var(--sc-font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.02;
  text-wrap: balance;
}
.sc-display--xl { font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5.6rem); }
.sc-display--lg { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.7rem); line-height: 1.05; }
.sc-display--md { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); }
.sc-body { color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.62; letter-spacing: .006em; }
@media (max-width: 700px) {
  .sc-display--xl { font-size: clamp(2.1rem, 1.2rem + 5vw, 2.9rem); }
  .sc-display--lg { font-size: clamp(1.7rem, 1.1rem + 3.2vw, 2.3rem); }
  .sc-body { font-size: 1.02rem; line-height: 1.55; }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 6px; cursor: pointer;
  font: 700 1rem/1 var(--sc-font-text); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  color: var(--sc-ink); border: 1.5px solid color-mix(in oklab, var(--sc-ink) 50%, transparent);
  background: color-mix(in oklab, var(--sc-canvas) 50%, transparent);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out);
}
.knopf:active { transform: translateY(1px) scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { border-color: var(--sc-accent); background: color-mix(in oklab, var(--sc-accent) 14%, transparent); }
}
.knopf--voll {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--sc-accent-ink); background: var(--sc-accent); border-color: var(--sc-accent);
}
.knopf--voll::before {   /* feines Gussraster, über das ein Lichtstreif läuft */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, transparent 35%, rgb(255 236 210 / .42) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat,
    radial-gradient(rgb(0 0 0 / .1) 1px, transparent 1.3px) 0 0 / 5px 5px;
  animation: streif 4.8s var(--sc-ease-in-out) infinite;
}
@keyframes streif { 0%, 55% { background-position: -200% 0, 0 0; } 100% { background-position: 200% 0, 0 0; } }
@media (hover: hover) and (pointer: fine) { .knopf--voll:hover { background: #F58A40; } }
@media (prefers-reduced-motion: reduce) { .knopf--voll::before { animation: none; } }

/* ---------- Raum mit Ofen ---------- */
.buehne { background: var(--sc-canvas); }
.szene {
  position: absolute; left: var(--sz-x); top: var(--sz-y);
  width: var(--sz-b); aspect-ratio: 2400 / 1357;
  translate: -50% -50%;
  --of-b: 14%;
}
.szene__raum { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.szene__dunkel { position: absolute; inset: 0; background: #0E0B0A; opacity: var(--dunkel, .4); }
.szene__schein {   /* Feuerschein aus dem Ofenfenster auf Wand und Boden */
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(18% 30% at 50% 47%, rgb(255 150 70 / .55), transparent 70%),
    radial-gradient(34% 24% at 50% 80%, rgb(240 122 42 / .42), transparent 72%),
    radial-gradient(55% 60% at 50% 50%, rgb(240 110 40 / .22), transparent 75%);
  opacity: calc(var(--schein, .8) * .9);
  mix-blend-mode: screen;
}
.szene--held { --sz-b: max(132vw, 182svh); --sz-x: 64%; --sz-y: 50%; scale: calc(1 + var(--sc-p, 0) * .1); transform-origin: 50% 46%; }
.szene--nah, .szene--auf { --sz-b: max(170vw, 235svh); --sz-x: 66%; --sz-y: 60%; --of-b: 13%; }
.szene--schluss { --sz-b: max(132vw, 182svh); --sz-x: 72%; --sz-y: 50%; }

.ofen {
  position: absolute; left: 50%; bottom: 25.5%;
  width: var(--of-b); aspect-ratio: 731 / 1856;
  translate: -50% 0;
  container-type: inline-size;
  --luft: .62;
}
.ofen::after {   /* Schatten auf der Bodenplatte */
  content: ""; position: absolute; left: -12%; right: -12%; bottom: -3%; height: 6%;
  background: radial-gradient(closest-side, rgb(0 0 0 / .7), transparent); z-index: -1;
}
.ofen__feuer {
  position: absolute; left: 14.91%; top: 23.55%; width: 69.49%; height: 45.53%;
  display: block; background: #120806;
}
.ofen__bild { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.ofen__knopf {
  position: absolute; top: 78.5%; left: calc(18.33% + var(--luft) * 62.65%);
  width: 4.8%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8a8580, #3a3734 55%, #1b1a19);
  box-shadow: 0 1px 2px rgb(0 0 0 / .6);
}
.ofen__marke {   /* gegossene Schrift im Sockel */
  position: absolute; left: 0; right: 0; top: 88%; text-align: center;
  font: 600 7.6cqi/1 var(--sc-font-display); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase;
  color: #2c2a2b; text-shadow: 0 -1px 0 rgb(0 0 0 / .7), 0 1px 0 rgb(255 255 255 / .09);
}

/* ---------- Hero ---------- */
.held-scrim { --sc-scrim-angle: 100deg; }
.held {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); top: clamp(2rem, 11vh, 7rem);
  width: min(36rem, 46vw);
}
.held__marke {
  font: 600 1.05rem/1 var(--sc-font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--sc-ink);
  margin: 0 0 var(--sc-6);
}
.held__marke span { display: block; margin-top: .55rem; font: 500 .9rem/1 var(--sc-font-text); letter-spacing: .04em; text-transform: none; color: var(--sc-accent); }
.held h1 { max-width: 11ch; }
.held__sub { margin-top: var(--sc-5); max-width: 34ch; }
.held .knopf { margin-top: var(--sc-6); }

/* ---------- Bühnentext (zu wenig, Höhepunkt) ---------- */
.buehne-scrim { --sc-scrim-angle: 90deg; }
.buehne__text {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); top: clamp(3rem, 18vh, 10rem);
  width: min(34rem, 44vw); display: grid;
}
.buehne__text > * { grid-area: 1 / 1; }
.buehne__text .sc-body { margin-top: var(--sc-4); max-width: 36ch; }

/* ---------- Drei Wege ---------- */
.wege { padding-top: clamp(4rem, 8vw, 8rem); }
.wege__raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.wege__bild { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.wege__bild img, .wege__schnitt, .wege__schnitt svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wege__bild img { object-fit: cover; }
.wege__text h2 { max-width: 15ch; }
.wege__liste { margin: var(--sc-6) 0; display: grid; gap: var(--sc-4); }
.wege__liste div { display: grid; grid-template-columns: 10rem 1fr; gap: var(--sc-4); padding-top: var(--sc-4); border-top: 1px solid var(--sc-hairline); }
.wege__liste dt { font: 600 1.15rem/1.3 var(--sc-font-display); color: var(--sc-ink); display: flex; align-items: center; gap: .6rem; }
.wege__liste dd { margin: 0; color: var(--sc-ink-soft); line-height: 1.6; }
.farbe { width: 18px; height: 3px; border-radius: 2px; flex: none; }
.farbe--blau { background: #8FB3C9; } .farbe--hell { background: #FFD9A8; } .farbe--orange { background: var(--sc-accent); }

/* ---------- Stille ---------- */
.reflex { padding-block: clamp(3rem, 8vw, 7rem) clamp(5rem, 12vw, 11rem); position: relative; overflow: hidden; }
.reflex::before {   /* ein letzter Glutschimmer am unteren Rand */
  content: ""; position: absolute; left: 50%; bottom: -30%; width: 70vw; height: 60%; translate: -50% 0;
  background: radial-gradient(closest-side, rgb(240 122 42 / .14), transparent); pointer-events: none;
}
.reflex__wrap { min-height: 46svh; display: flex; flex-direction: column; justify-content: center; }
.reflex__satz { max-width: 16ch; }
.reflex__nach { margin-top: var(--sc-5); }

/* ---------- Der Abend ---------- */
.abend { display: flex; align-items: center; }
.abend__schiene { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-inline: var(--sc-gutter); padding-bottom: 5rem; }
.station { flex: none; width: clamp(17rem, 27vw, 24rem); }
.station img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 52svh; object-fit: cover; border-radius: 6px; display: block; box-shadow: 0 24px 50px -28px rgb(0 0 0 / .9); }
.station__text { margin-top: var(--sc-5); }
.station h3 { font: 600 1.45rem/1.3 var(--sc-font-display); margin: var(--sc-3) 0 var(--sc-2); }
.station p { margin: 0; color: var(--sc-ink-soft); line-height: 1.6; max-width: 32ch; }
.mini { width: 120px; height: 20px; display: block; }
.mini rect { fill: none; stroke: color-mix(in oklab, var(--sc-ink) 40%, transparent); stroke-width: 1.5; }
.mini circle { fill: var(--sc-accent); }
.station--kopf { width: clamp(18rem, 30vw, 28rem); }
.station--kopf .sc-body { margin-top: var(--sc-4); }
.station--ende { width: clamp(15rem, 22vw, 20rem); }
.station__notiz {
  font: italic 500 1.3rem/1.45 var(--sc-font-display); color: var(--sc-ink);
  padding-left: var(--sc-5); border-left: 1px solid var(--sc-accent);
}
@media (prefers-reduced-motion: no-preference) {
  .station:not(:first-child) { opacity: clamp(.55, calc(var(--sc-p, 0) * 6 - var(--i, 0) * 1.1 + 1.2), 1); }
  .station:nth-child(2) { --i: 1; } .station:nth-child(3) { --i: 2; } .station:nth-child(4) { --i: 3; } .station:nth-child(5) { --i: 4; }
}

/* ---------- Maße ---------- */
.masse { padding-block: clamp(4rem, 9vw, 9rem); }
.masse__raster { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.masse__bild { margin: 0; display: grid; place-items: center; padding: 2rem 3rem 4rem; }
.masse__ofen { position: relative; width: min(15rem, 40vw); }
.ofen--klein { position: relative; left: auto; bottom: auto; translate: none; width: 100%; --of-b: 100%; }
.masslinien { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.masslinien path { fill: none; stroke: color-mix(in oklab, var(--sc-ink) 45%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mass { position: absolute; font: 600 .85rem/1 var(--sc-font-text); color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mass--h { right: calc(100% + 1.4rem); top: 55%; }
.mass--b { left: 50%; top: calc(100% + 1.2rem); translate: -50% 0; }
.daten { margin: var(--sc-5) 0 0; }
.daten div { display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--sc-4); padding: .8rem 0; border-top: 1px solid var(--sc-hairline); }
.daten dt { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); padding-top: .15rem; }
.daten dd { margin: 0; font-variant-numeric: tabular-nums; }
.ehrlich { margin-top: var(--sc-6); max-width: 46ch; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.6; padding: var(--sc-4) var(--sc-5); border-radius: 6px; background: color-mix(in oklab, var(--sc-ink) 5%, transparent); }

/* ---------- Schluss ---------- */
.schluss {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); top: clamp(2rem, 9vh, 6rem); width: min(32rem, 44vw);
}
.schluss__sub { margin-top: var(--sc-4); max-width: 36ch; }
.schluss .knopf { margin-top: var(--sc-5); }
/* Die Anfrage liegt auf einer Schieferplatte wie die Bodenplatte vorm Ofen. */
.platte {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); bottom: 4.4rem; width: min(54rem, 54vw);
  display: grid; grid-template-columns: 1fr 1.3fr .8fr auto; gap: var(--sc-3) var(--sc-4); align-items: end;
  padding: var(--sc-5) var(--sc-5) var(--sc-4);
  border-radius: 6px;
  background:
    radial-gradient(rgb(243 236 227 / .045) 1px, transparent 1.3px) 0 0 / 7px 7px,
    linear-gradient(170deg, #34302E, #232021 60%, #1D1A1A);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 30px 50px -24px rgb(0 0 0 / .85);
}
.platte__titel { grid-column: 1 / -1; margin: 0; font: 600 1.15rem/1.2 var(--sc-font-display); color: var(--sc-ink); }
.feld { display: grid; gap: .35rem; min-width: 0; }
.feld label { font-size: .85rem; font-weight: 600; color: #DCD1C4; }
.feld input {
  min-height: 48px; padding: 0 .8rem; border-radius: 6px; min-width: 0;
  font: 500 1rem var(--sc-font-text); color: var(--sc-ink);
  background: rgb(10 9 9 / .55); border: 1px solid rgb(243 236 227 / .22);
  transition: border-color 160ms var(--sc-ease-out);
}
.feld input:focus { border-color: var(--sc-accent); outline: none; box-shadow: 0 0 0 3px rgb(240 122 42 / .28); }
.feld__fehler { color: #FFB089; font-size: .8rem; }
.platte .knopf--voll { min-height: 48px; }
.platte__hinweis { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: #D6CBBE; }
.platte.ist-gesendet .platte__hinweis { color: var(--sc-ink); }
.fuss {
  position: absolute; left: var(--sc-gutter); right: var(--sc-gutter); bottom: 1.2rem; z-index: var(--sc-z-copy);
  display: flex; gap: var(--sc-5); align-items: baseline; font-size: .8rem; color: var(--sc-ink-soft);
}
.fuss__marke { font: 600 .95rem/1 var(--sc-font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--sc-ink); }

/* ---------- Der Luftschieber ---------- */
.schieber {
  position: fixed; z-index: var(--sc-z-chrome); left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
  width: min(34rem, calc(100vw - 32px)); translate: -50% 0;
  transition: opacity 300ms var(--sc-ease-out), translate 300ms var(--sc-ease-out);
}
.schieber.ist-geparkt { opacity: 0; translate: -50% 120%; pointer-events: none; }
.schieber__stand { margin: 0 0 6px; text-align: center; font: 600 .8rem/1 var(--sc-font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--sc-ink-soft); }
.schieber.ist-kerbe .schieber__stand { color: var(--sc-accent); }
.schieber__leiste {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 10px;
  border-radius: 8px;
  background:
    radial-gradient(rgb(255 255 255 / .05) 1px, transparent 1.3px) 0 0 / 4px 4px,
    linear-gradient(#3a383a, #232224 55%, #1a191b);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 10px 26px -8px rgb(0 0 0 / .8);
}
.schieber__ende { flex: none; color: var(--sc-ink-soft); font: 600 .78rem/1 var(--sc-font-text); text-decoration: none; padding: 8px 4px; transition: color 160ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .schieber__ende:hover { color: var(--sc-ink); } }
.schieber__bahn { position: relative; flex: 1; height: 12px; border-radius: 6px; background: #0c0b0c; box-shadow: inset 0 2px 3px rgb(0 0 0 / .8), 0 1px 0 rgb(255 255 255 / .08); }
.kerbe {
  position: absolute; left: calc(var(--k) * 100%); top: 50%; translate: -50% -50%;
  width: 28px; height: 36px; display: grid; place-items: center; text-decoration: none;
}
.kerbe::before { content: ""; width: 2px; height: 22px; border-radius: 1px; background: rgb(243 236 227 / .3); }
.kerbe--richtig::before { background: var(--sc-accent); width: 3px; }
.kerbe span { position: absolute; top: calc(100% + 2px); white-space: nowrap; font-size: .78rem; font-weight: 600; color: transparent; pointer-events: none; transition: color 160ms; }
@media (hover: hover) and (pointer: fine) { .kerbe:hover span, .kerbe:focus-visible span { color: var(--sc-ink); } }
.schieber__knopf {
  position: absolute; top: 50%; left: calc(var(--luft, .62) * 100%); translate: -50% -50%;
  width: 30px; height: 30px; border-radius: 50%; cursor: grab; touch-action: none;
  background: radial-gradient(circle at 35% 30%, #a8a29b, #4b4744 52%, #1d1c1b);
  box-shadow: 0 3px 6px rgb(0 0 0 / .6), inset 0 -2px 3px rgb(0 0 0 / .4);
}
.schieber.ist-gezogen .schieber__knopf { cursor: grabbing; }
.schieber.ist-kerbe .schieber__knopf { box-shadow: 0 0 0 3px rgb(240 122 42 / .4), 0 3px 6px rgb(0 0 0 / .6); }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .held { top: 1.5rem; right: var(--sc-gutter); width: auto; }
  .held__marke { margin-bottom: var(--sc-4); }
  .held__sub { margin-top: var(--sc-3); font-size: .98rem; }
  .held .knopf { margin-top: var(--sc-4); }
  .held-scrim { --sc-scrim-angle: 180deg; }
  .szene--held { --sz-x: 50%; --sz-y: 64%; --of-b: 10%; }
  .szene--nah, .szene--auf { --sz-x: 52%; --sz-y: 63%; --of-b: 9%; }
  .szene--schluss { --sz-x: 80%; --sz-y: 36%; --of-b: 8%; }
  .buehne__text { top: 1.5rem; width: auto; right: var(--sc-gutter); }
  .buehne-scrim { --sc-scrim-angle: 180deg; }
  .wege__raster, .masse__raster { grid-template-columns: 1fr; }
  .wege__liste div { grid-template-columns: 1fr; gap: .3rem; }
  .masse__bild { padding: 1rem 3rem 3.5rem; }
  .station { width: 76vw; }
  .station--kopf { width: 80vw; }
  .station--ende { width: 70vw; }
  .station img { max-height: 44svh; }
  .schluss { top: 1.2rem; right: var(--sc-gutter); width: auto; }
  .schluss h2 { max-width: 9ch; }
  .schluss__sub { font-size: .95rem; max-width: 30ch; }
  .platte { left: 12px; right: 12px; width: auto; bottom: 3.6rem; grid-template-columns: 1fr 7rem; padding: var(--sc-4); gap: var(--sc-3);
    grid-template-areas: "titel titel" "name plz" "mail mail" "knopf knopf" "hinweis hinweis"; }
  .platte__titel { grid-area: titel; }
  .platte .feld:nth-of-type(1) { grid-area: name; }
  .platte .feld:nth-of-type(2) { grid-area: mail; }
  .platte .feld:nth-of-type(3) { grid-area: plz; }
  .platte .knopf--voll { grid-area: knopf; }
  .platte__hinweis { grid-area: hinweis; }
  .fuss { flex-direction: column; gap: .3rem; bottom: .7rem; font-size: .76rem; line-height: 1.4; }
  .fuss__marke { display: none; }
  .schieber__ende span { font-size: .72rem; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .held__sub { display: none; }
  .schluss__sub { display: none; }
  .platte__titel { display: none; }
  .platte .feld input { min-height: 44px; }
  .platte__hinweis { font-size: .78rem; }
  .buehne__text .sc-body { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .szene--held { scale: none; }
  .schieber { transition: none; }
}
