/* Ofen-Scrollanimation (nur Galerieseite, nur dieser Bereich). Ohne Klasse html.ofen-3d gilt der statische Ersatz. */
.ofen { position: relative; background: var(--bg); --ofen-len: 7; }
.ofen-n0 { --ofen-len: 3; } .ofen-n1 { --ofen-len: 3.8; } .ofen-n2 { --ofen-len: 4.6; }
.ofen-n3 { --ofen-len: 5.4; } .ofen-n4 { --ofen-len: 6.2; } .ofen-n5 { --ofen-len: 7; }

/* ---------- Scrollstrecke + fixierte Bühne (nur mit 3D) ---------- */
.ofen-track { display: none; }
.ofen-3d .ofen-track { display: block; position: relative;
  height: calc((100vh - var(--header-h)) * var(--ofen-len)); height: calc((100svh - var(--header-h)) * var(--ofen-len)); }
.ofen-3d .ofen-static { display: none; }
.ofen-stage { position: sticky; top: var(--header-h); overflow: hidden; contain: layout paint;
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); }
.ofen-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ofen-layer { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; pointer-events: none; }
.ofen-panel { width: min(410px, 36%); pointer-events: auto; }
.ofen-kicker { margin-bottom: 1.4rem; }
.ofen-steps { display: grid; }
.ofen-step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s linear .45s; }
.ofen-step.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
.ofen-count { margin: 0 0 .7rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--accent); font-variant-numeric: tabular-nums; }
.ofen-title { margin: 0 0 .7rem; font-size: clamp(1.55rem, 2.5vw, 2.35rem); font-weight: 750; line-height: 1.1; letter-spacing: -.02em; color: var(--fg); }
.ofen-text { margin: 0; max-width: 34ch; font-size: 1.05rem; line-height: 1.6; color: var(--muted); }
.ofen-notice { display: flex; gap: .55em; align-items: flex-start; margin: 1.1rem 0 0; padding: .65em .85em; max-width: 36ch;
  font-size: .88rem; font-weight: 650; line-height: 1.4; color: var(--fg); background: var(--surface); border-left: 3px solid var(--accent);
  border-radius: 8px; box-shadow: 0 1px 2px rgba(12,13,15,.06), 0 10px 24px -14px rgba(12,13,15,.35); }
.ofen-notice svg { flex-shrink: 0; margin-top: .1em; color: var(--accent); }
.ofen-foot { position: absolute; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 14px 6px; border-radius: 14px; background: rgba(255,255,255,.86); pointer-events: none; }
.ofen-progress { width: 150px; height: 3px; border-radius: 3px; background: rgba(20,22,25,.12); overflow: hidden; }
.ofen-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.ofen-skip { white-space: nowrap; pointer-events: auto; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.ofen-skip:hover { color: var(--accent); }
.ofen-skip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ofen-tag { position: absolute; right: 16px; top: 16px; z-index: 1; margin: 0; max-width: 46%; font-size: .66rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.82); padding: .4em .8em; border-radius: 999px; text-align: right; }
.ofen-loading { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .92rem; font-weight: 600; color: var(--muted); pointer-events: none; transition: opacity .4s; }
.ofen-ready .ofen-loading { opacity: 0; visibility: hidden; }
.ofen-spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(20,22,25,.14); border-top-color: var(--accent); animation: ofen-spin .9s linear infinite; }
@keyframes ofen-spin { to { transform: rotate(360deg); } }
.ofen-canvas { opacity: 0; transition: opacity .5s; }
.ofen-ready .ofen-canvas { opacity: 1; }

/* Hochformat (Handy, Tablet hochkant): Text unten, Ofen darüber */
@media (max-aspect-ratio: 1/1) {
  .ofen-layer { align-items: flex-end; padding-bottom: 66px; }
  .ofen-panel { width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 18px 18px; background: rgba(255,255,255,.93); border-radius: 16px;
    box-shadow: 0 1px 2px rgba(12,13,15,.06), 0 16px 34px -18px rgba(12,13,15,.4); }
  .ofen-kicker { margin-bottom: .7rem; font-size: .7rem; }
  .ofen-count { margin-bottom: .35rem; font-size: .7rem; }
  .ofen-title { font-size: 1.28rem; margin-bottom: .4rem; }
  .ofen-text { font-size: .95rem; line-height: 1.5; max-width: none; }
  .ofen-notice { margin-top: .7rem; font-size: .8rem; max-width: none; padding: .5em .7em; }
  .ofen-tag { top: 10px; right: auto; left: 12px; max-width: calc(100% - 24px); font-size: .58rem; text-align: left; }
  .ofen-foot { left: 16px; transform: none; align-items: flex-start; bottom: max(12px, env(safe-area-inset-bottom)); padding: 4px 10px 3px; margin-left: -10px; background: rgba(255,255,255,.86); border-radius: 12px; }
}
/* Querformat mit wenig Höhe (Handy quer): Text schmal links, kompakt */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .ofen-kicker, .ofen-count { display: none; }
  .ofen-panel { width: min(340px, 42%); }
  .ofen-title { font-size: 1.2rem; margin-bottom: .35rem; }
  .ofen-text { font-size: .86rem; line-height: 1.45; }
  .ofen-notice { margin-top: .5rem; font-size: .74rem; padding: .4em .6em; }
  .ofen-tag { top: 8px; right: 8px; font-size: .56rem; max-width: 50%; }
  .ofen-foot { bottom: 8px; padding: 4px 10px 3px; }
  .ofen-skip { font-size: .78rem; padding: 2px 6px; }
}

/* ---------- Statischer Ersatz (kein WebGL, Ladefehler, ohne JavaScript, „Bewegung reduzieren“) ---------- */
.ofen-static { padding: clamp(40px, 5vw, 72px) 0; }
.ofen-static-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 800px) { .ofen-static-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.ofen-static-pic { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #ebe9e2; max-width: 460px; width: 100%; justify-self: center; }
.ofen-static-pic img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 750; object-fit: contain; }
.ofen-static-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 28px; counter-reset: ofen; }
@media (min-width: 1080px) { .ofen-static-list { grid-template-columns: 1fr 1fr; } }
.ofen-static-list li { counter-increment: ofen; position: relative; padding-left: 2.4em; }
.ofen-static-list li::before { content: counter(ofen, decimal-leading-zero); position: absolute; left: 0; top: .15em; font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.ofen-static-list .ofen-title { font-size: 1.12rem; margin-bottom: .3rem; }
.ofen-static-list p { margin: 0; color: var(--muted); line-height: 1.55; }
.ofen-static-list .ofen-notice { margin-top: .6rem; color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .ofen-step { transition: none; } .ofen-spinner { animation: none; } }
