/* Agent C: Fassung ohne Flug als gezeichnete Bildergeschichte. Alles unter .textfassung, die Flugfassung bleibt unberührt.
   Raster 8 px, Radien: 2 px (Rahmen) und rund (Knöpfe). Übergänge 200 ms, Auftritt der Rahmen 420 ms (der eine grosse Moment pro Bild). */

.textfassung { background: #e9edf4; --of-linie: 3px; --of-luft: clamp(16px, 2.2vw, 32px); --of-breite: 1280px; }
.textfassung body { background: var(--grund); transition: background-color 600ms var(--ease), color 600ms var(--ease); }
.textfassung[data-of-ton="abend"] body { --grund: #e9edf4; }
.textfassung[data-of-ton="morgen"] body { --grund: var(--nebel); }
.textfassung[data-of-ton="tag"] body { --grund: var(--papier); }
.textfassung[data-of-ton="epilog"] body { --grund: var(--nebel); }
.textfassung[data-of-ton="abend2"] body { --grund: #dcd9e6; }
.textfassung[data-of-ton="nacht"] body, .textfassung[data-of-ton="schreibtisch"] body { --grund: var(--tinte); }

.textfassung main.of { max-width: none; margin: 0; padding: 0 0 var(--s-8); overflow-x: clip; }
.textfassung .of .nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.textfassung .kopf { position: sticky; top: 0; }

/* ---------- Rahmen und Bild ---------- */
.of-rahmen { position: relative; overflow: hidden; border: var(--of-linie) solid var(--tinte); border-radius: 2px; background: color-mix(in oklch, var(--grund) 70%, var(--tinte) 8%); aspect-ratio: 16 / 9; isolation: isolate; }
.ist-nacht .of-rahmen { border-color: var(--papier); }
.of-rahmen picture, .of-rahmen > img { position: absolute; inset: 0; }
/* Bild 110 % hoch: schiebt beim Scrollen im Rahmen (Rahmen breiter als 16:10, darum nur oben und unten beschnitten) */
.of-rahmen img { width: 100%; height: 110%; object-fit: cover; display: block; translate: 0 calc(-4.5% + var(--p, 0) * 4.5%); }
.of-bild { margin: 0; position: relative; }

/* Ortsangabe wie im Film: klein, oben links im Bild (dort ist Himmel, nie die Figur) */
.of-ort { position: absolute; left: 0; top: 0; z-index: 2; margin: 0; background: var(--tinte); color: var(--papier); font-family: var(--display); font-weight: 750; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; padding: 8px 12px 7px; border-bottom-right-radius: 2px; }
.ist-nacht .of-ort { background: var(--papier); color: var(--tinte); }

/* Satz in zwei Grössen, wie in der Flugfassung */
.of-satz { display: flex; flex-direction: column; gap: 0.18em; margin: 0; font-size: inherit; line-height: 1; text-transform: none; }
.of-k { display: block; font-family: var(--text-font); font-stretch: 88%; font-weight: 560; font-size: clamp(1.15rem, 0.6vw + 0.95rem, 1.55rem); line-height: 1.2; text-wrap: balance; }
.of-k.of-k-lang { font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.3rem); line-height: 1.3; }
.of-g { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.8rem, 4.6vw, 5.4rem); line-height: 0.88; text-transform: uppercase; letter-spacing: -0.005em; overflow-wrap: normal; hyphens: manual; text-wrap: balance; }
.of-g.lang { font-size: clamp(2.3rem, 3.4vw, 4rem); }
.of-g.sehrlang { font-size: clamp(1.9rem, 2.5vw, 3rem); line-height: 0.92; }
.of-z { margin: var(--s-3) 0 0; font-size: 1rem; max-width: 46ch; }
.of-knoepfe { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 0; max-width: none; }

/* Knöpfe: Drückgefühl, 200 ms */
.textfassung .knopf { transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease); border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.textfassung .knopf:active { transform: scale(0.97); }
.ist-nacht .knopf:hover { background: var(--papier); color: var(--tinte); }
.ist-nacht .knopf-zwei { color: var(--papier); }

/* Erzählkasten: Papier, Tintenrand, wie die Textkästen im Comic */
.of-text { position: relative; z-index: 3; background: var(--papier); color: var(--tinte); border: var(--of-linie) solid var(--tinte); border-radius: 2px; padding: var(--s-5) var(--s-5) var(--s-5); box-shadow: 8px 8px 0 var(--tinte); }
.ist-nacht .of-text, .ist-nacht .of-epilog-text { box-shadow: 8px 8px 0 color-mix(in oklch, var(--papier) 30%, transparent); }
.of-text .knopf-zwei { color: var(--tinte); }
.of-text .knopf-zwei:hover { background: var(--tinte); color: var(--papier); }
.of-text .knopf:hover { background: var(--tinte); color: var(--papier); }
.of-text a:not(.knopf) { color: var(--kobalt); }

/* ---------- Panel-Arten (Desktop) ---------- */
.of-panel { width: min(var(--of-breite), calc(100% - 2 * var(--rand))); margin: 0 auto; padding: clamp(32px, 6vh, 72px) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--of-luft); align-items: center; scroll-margin-top: calc(var(--kopf-h) + 8px); }
/* standard: Kasten links, ragt 64 px über den linken Bildrand (dort ist Himmel oder Boden, die Figur steht rechts) */
.of-standard .of-bild { grid-column: 4 / -1; grid-row: 1; }
.of-standard .of-text { grid-column: 1 / 6; grid-row: 1; align-self: end; margin-bottom: 8%; }
/* gegen: Bild links, Kasten rechts daneben, ohne Überlappung (Figur steht rechts im Bild) */
.of-gegen .of-bild { grid-column: 1 / 9; grid-row: 1; }
.of-gegen .of-text { grid-column: 9 / -1; grid-row: 1; align-self: center; }
/* breit: Bild über die ganze Breite, Kasten unten links halb im Bild */
.of-breit .of-bild { grid-column: 1 / -1; grid-row: 1; }
.of-breit .of-rahmen { aspect-ratio: 16 / 8.2; }
.of-breit .of-text { grid-column: 1 / 7; grid-row: 2; margin-top: -96px; margin-left: var(--s-6); }
/* stumm: nur Bild, etwas kleiner, aus der Mitte gerückt */
.of-stumm .of-bild { grid-column: 3 / 12; }
.of-stumm .of-rahmen { aspect-ratio: 16 / 9; }
/* reihe: zwei oder drei Bilder nebeneinander wie Panels einer Seite */
.of-reihe .of-bild { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--of-luft); }
.of-reihe .of-rahmen { aspect-ratio: 4 / 4.2; }
.of-reihe .of-rahmen img { object-position: 64% 50%; }
.of-reihe .of-text { grid-column: 2 / 9; margin-top: -72px; }
/* reise (Volkshaus): Zug klein links, Bühne gross, echtes Pitch-Foto fällt dazu */
.of-reise .of-bild { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--of-luft); align-items: stretch; }
.of-reise .of-zug { aspect-ratio: auto; }
.of-reise .of-zug img { object-position: 50% 30%; }
.of-reise .of-text { grid-column: 1 / 7; grid-row: 2; margin-top: -40px; }
.of-reise .of-foto-zeile { position: relative; grid-column: 8 / -1; grid-row: 2; align-self: start; left: auto; right: auto; bottom: auto; width: auto; margin-top: 16px; rotate: 2deg; }
/* echtes Foto, leicht gedreht, wie auf den Tisch gelegt */
.of-foto { position: absolute; z-index: 4; margin: 0; background: #fff; padding: 8px 8px 28px; box-shadow: 0 18px 40px rgb(13 22 38 / 0.35); rotate: 3deg; translate: 0 calc(var(--p, 0) * 0px); }
.of-foto img { display: block; width: 100%; height: auto; }
.of-breit .of-foto { right: 3%; bottom: -16%; width: 34%; rotate: -3deg; }

/* Zeile: zwei Panels nebeneinander (Hochbilder), versetzt wie auf einer Comicseite */
.of-zeile { width: min(var(--of-breite), calc(100% - 2 * var(--rand))); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding: clamp(24px, 4vh, 48px) 0; }
.of-zeile .of-panel { width: auto; display: block; padding: 0; }
.of-zeile .of-panel:nth-child(2) { margin-top: clamp(48px, 14vh, 160px); }
.of-halb .of-rahmen, .of-zeile .of-stumm .of-rahmen { aspect-ratio: 4 / 5; }
.of-halb .of-rahmen img, .of-zeile .of-stumm .of-rahmen img { object-position: 50% 62%; }
.of-halb .of-text { margin: -64px 0 0 var(--s-6); max-width: 92%; }
.of-halb .of-g.lang { font-size: clamp(2.1rem, 2.8vw, 3.4rem); }
.of-halb .of-g.sehrlang { font-size: clamp(1.8rem, 2.2vw, 2.6rem); }

/* Bildknopf für Pop-ups (Bildschirm, Handy, Tablet im Bild) */
.of-bild-knopf { position: absolute; inset: 0; z-index: 2; border: 0; background: none; cursor: zoom-in; display: flex; align-items: flex-end; justify-content: flex-end; padding: var(--s-4); }
.of-bild-knopf span { font: inherit; font-weight: 650; font-size: 0.95rem; background: var(--tinte); color: var(--papier); padding: 10px 16px; border-radius: var(--r-rund); transition: background-color 200ms var(--ease), transform 200ms var(--ease); }
.of-bild-knopf:hover span, .of-bild-knopf:focus-visible span { background: var(--kobalt); }
.of-bild-knopf:active span { transform: scale(0.97); }

/* Logo Bombelli Analytics (offiziell, nicht umgefärbt) */
.of-logo { display: inline-flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2); background: #fff; border: 2px solid var(--tinte); border-radius: 2px; color: var(--tinte) !important; font-weight: 650; text-decoration: none; transition: transform 200ms var(--ease); }
.of-logo img { height: 40px; width: auto; }
.of-logo-gross img { height: 72px; }
.of-logo:hover { transform: translateY(-2px); }
.of-logo:active { transform: scale(0.98); }

/* Übergangssätze zwischen Kapiteln: gesprochen, ohne Kasten */
.of-uebergang { position: relative; z-index: 2; width: fit-content; max-width: min(36ch, calc(100% - 2 * var(--rand))); margin: var(--s-4) auto clamp(-120px, -12vh, -64px) max(var(--rand), calc((100% - var(--of-breite)) / 2)); padding: var(--s-3) var(--s-4); background: var(--tinte); color: var(--papier); border-radius: 2px; font-family: var(--display); font-weight: 750; font-size: clamp(1.3rem, 0.8vw + 1rem, 1.9rem); line-height: 1.02; text-transform: uppercase; text-wrap: balance; }
.ist-nacht .of-uebergang { background: var(--papier); color: var(--tinte); }

/* ---------- Titel ---------- */
.of-titel { position: relative; min-height: calc(100svh - var(--kopf-h)); display: grid; align-items: end; overflow: hidden; border-bottom: var(--of-linie) solid var(--tinte); }
.of-titel-bild { position: absolute; inset: 0; }
.of-titel-bild picture { position: absolute; inset: 0; }
.of-titel-bild img { width: 100%; height: 110%; object-fit: cover; object-position: 50% 40%; translate: 0 calc(var(--p, 0) * -4%); display: block; }
.of-titel-text { position: relative; padding: 0 var(--rand) clamp(48px, 10vh, 120px); }
.of-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(4.4rem, 15vw, 15rem); line-height: 0.82; color: var(--tinte); margin: 0; text-shadow: 0 0 40px rgb(243 247 252 / 0.6); }
.of-einsteigen { background: var(--tinte) !important; color: var(--papier) !important; padding: 0 var(--s-7); font-size: 1.1rem; }
.of-einsteigen:hover { background: var(--kobalt) !important; }

/* ---------- Wahl ---------- */
.of-wahl { width: min(var(--of-breite), calc(100% - 2 * var(--rand))); margin: 0 auto; padding: clamp(40px, 7vh, 88px) 0; display: grid; gap: var(--of-luft); grid-template-columns: repeat(12, minmax(0, 1fr)); scroll-margin-top: calc(var(--kopf-h) + 8px); }
.of-wahl-bild { grid-column: 1 / -1; aspect-ratio: 16 / 7.4; }
.of-wahl-bild img { object-position: 60% 40%; }
.of-wahl .of-satz { grid-column: 1 / -1; margin-top: -2px; }
.of-wahl .of-g { font-size: clamp(2.8rem, 6vw, 6.6rem); }
.of-wahl-knoepfe { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--of-luft); }
.of-wahl-knopf { position: relative; display: grid; justify-items: start; gap: 4px; padding: var(--s-4); background: var(--papier); color: var(--tinte); border: var(--of-linie) solid var(--tinte); border-radius: 2px; text-decoration: none; transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease); }
.of-wahl-knopf:hover, .of-wahl-knopf:focus-visible { background: var(--tinte); color: var(--papier); }
.of-wahl-knopf:active { transform: scale(0.98); }
.wk-wort { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.7rem, 2.2vw, 2.6rem); line-height: 0.9; }
.wk-titel { font-size: 0.9rem; font-weight: 560; }
.wk-gesehen { position: absolute; right: 12px; top: 10px; width: 26px; height: 20px; }
.of-wahl-knopf.gesehen .wk-gesehen::before { content: ""; position: absolute; left: 2px; top: 0; width: 18px; height: 9px; border-left: 3px solid var(--kobalt); border-bottom: 3px solid var(--kobalt); rotate: -45deg; transform-origin: 0 100%; translate: 4px 8px; }
.of-wahl-knopf:hover .wk-gesehen::before { border-color: var(--kobalt-hell); }

/* ---------- Rauchzeichen ---------- */
.of-zeichen { overflow: visible; display: block; }
.of-zeichen path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.of-zeichen .oz-strich path { stroke: currentColor; stroke-width: 3.2; }
.of-zeichen .oz-schleier path { stroke: currentColor; stroke-width: 9; opacity: 0.16; }
.of-zeichen-klein { width: 72px; height: 60px; margin-bottom: var(--s-2); }
.of-zeichen-klein .oz-strich path { stroke-width: 4.2; }
/* gezeichnet, sobald sichtbar; beim Darüberfahren neu nachgezeichnet */
.zeichnet .of-zeichen path { animation: of-zeichnen 900ms var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + var(--q0) * 600ms); }
.of-zeichen.nach path { animation: of-zeichnen 600ms var(--ease) forwards; animation-delay: calc(var(--q0) * 360ms); stroke-dashoffset: 1; }
@keyframes of-zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.of-wahl-knopf .of-zeichen { --i: inherit; }
.of-wahl-knoepfe .of-wahl-knopf:nth-child(2) path { --i: 1; } .of-wahl-knoepfe .of-wahl-knopf:nth-child(3) path { --i: 2; }
.of-wahl-knoepfe .of-wahl-knopf:nth-child(4) path { --i: 3; } .of-wahl-knoepfe .of-wahl-knopf:nth-child(5) path { --i: 4; }

/* Kapitelanfang: Zeichen entsteht aus Rauch (scrollgebunden), Wort darunter, dann verzieht sich beides */
.of-auftakt { height: 160svh; position: relative; margin-bottom: -70svh; z-index: 0; }
.of-kapitel > .of-panel, .of-kapitel > .of-zeile, .of-kapitel > .of-uebergang { position: relative; z-index: 1; }
.of-auftakt-buehne { position: sticky; top: var(--kopf-h); height: calc(100svh - var(--kopf-h)); display: grid; place-content: center; justify-items: center; gap: var(--s-3); text-align: center;
  opacity: calc(1 - var(--weg, 0)); translate: 0 calc(var(--weg, 0) * -22vh); }
.of-auftakt.weg .of-zeichen-gross { filter: blur(calc(var(--weg, 0) * 5px)); }
.of-zeichen-gross { width: min(52vh, 72vw); height: auto; aspect-ratio: 150 / 124; color: var(--tinte); }
.of-ton-nacht .of-zeichen-gross, .of-ton-schreibtisch .of-zeichen-gross { color: #efe9df; }
.of-kap-wort { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3.4rem, 9vw, 9rem); line-height: 0.84; margin: 0; opacity: var(--da, 0); translate: 0 calc((1 - var(--da, 0)) * 16px); }
.of-kap-titel { margin: 0; font-weight: 560; font-size: 1.1rem; opacity: var(--da, 0); }

/* ---------- Auftritt der Panels (einmal, beim Hereinscrollen) ---------- */
.of-panel .of-rahmen, .of-wahl .of-rahmen, .of-epilog .of-rahmen { clip-path: inset(6% 6% 6% 6%); opacity: 0; transition: clip-path 420ms var(--ease), opacity 200ms linear; }
.of-panel.da .of-rahmen, .of-wahl.da .of-rahmen, .of-epilog.da .of-rahmen { clip-path: inset(0); opacity: 1; }
.of-reihe .of-rahmen { transition-delay: calc(var(--k, 0) * 140ms); }
.of-text, .of-foto { opacity: 0; translate: 0 16px; transition: opacity 200ms linear 160ms, translate 320ms var(--ease) 160ms; }
.of-foto { translate: 24px 40px; transition-delay: 380ms; }
.da .of-text, .da .of-foto { opacity: 1; translate: 0 0; }

/* ---------- Litfasssäule ---------- */
.of-saeule-teil { position: relative; height: 340svh; }
.of-saeule-teil[hidden] { display: none; }
.of-saeule-buehne { isolation: isolate; position: sticky; top: var(--kopf-h); height: calc(100svh - var(--kopf-h)); overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; width: min(var(--of-breite), calc(100% - 2 * var(--rand))); margin: 0 auto; }
.of-saeule-kopf { grid-column: 1; grid-row: 1; align-self: start; padding-top: clamp(24px, 8vh, 96px); color: var(--papier); position: relative; z-index: 3; }
.of-saeule-kopf .of-z { opacity: 0.85; }
.of-saeule { grid-column: 2; grid-row: 1; position: relative; justify-self: center; align-self: stretch; width: var(--sw); --sw: clamp(110px, 14vw, 200px); display: grid; grid-template-columns: var(--sw); grid-template-rows: auto auto 1fr auto; padding-top: clamp(16px, 6vh, 64px); }
.of-s-dach { width: calc(var(--saeule-b, 400px) * 1.08); justify-self: center; height: clamp(40px, 5vw, 64px); color: #26402f; position: relative; z-index: 2; margin-bottom: -6px; }
.of-s-dach svg { width: 100%; height: 100%; display: block; overflow: visible; }
.of-s-dach path { fill: currentColor; stroke: var(--tinte); stroke-width: 3; vector-effect: non-scaling-stroke; }
.of-s-dach .s-linie { fill: none; stroke: #6f8b77; stroke-width: 2; }
.of-s-dach circle { fill: currentColor; stroke: var(--tinte); stroke-width: 3; }
/* Plakatband: Flächen werden in JS auf die Säule projiziert */
.of-s-trommel { position: relative; height: calc(var(--sw) * 516 / 372); touch-action: pan-y; cursor: grab; user-select: none; }
.of-s-trommel::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: var(--saeule-b, 400px); translate: -50% 0; background: linear-gradient(90deg, #6b6862, #cfcac0 30%, #e2ddd3 48%, #bcb7ad 72%, #57544f); border-left: 3px solid var(--tinte); border-right: 3px solid var(--tinte); }
.of-s-trommel:active { cursor: grabbing; }
.of-flaeche { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--sw); margin-left: calc(var(--sw) / -2); transform-origin: 50% 50%; border: 0; margin-top: 0; padding: 0; }
.of-flaeche::after { content: ""; position: absolute; inset: 0; background: #0d1626; opacity: var(--schatten, 0); pointer-events: none; }
.of-leer { background: #d8d3c9; border-left: 2px solid var(--tinte); border-right: 2px solid var(--tinte); }
.of-leer span { position: absolute; inset: 12% 14%; background: repeating-linear-gradient(-12deg, transparent 0 9px, rgb(13 22 38 / 0.16) 9px 10px); }
/* Schaft unter dem Plakatband: gerundet schattiert, mit Tuschestrichen */
.of-s-schaft { justify-self: center; width: var(--saeule-b, 400px); min-height: 40px; background: repeating-linear-gradient(90deg, transparent 0 22px, rgb(13 22 38 / 0.22) 22px 23.5px), linear-gradient(90deg, #4d5a50, #93a596 30%, #a9baac 48%, #8a9b8d 72%, #3f4a42); border-left: 3px solid var(--tinte); border-right: 3px solid var(--tinte); }
.of-s-fuss { width: calc(var(--saeule-b, 400px) * 1.06); justify-self: center; height: 28px; background: #26402f; border: 3px solid var(--tinte); border-radius: 2px; position: relative; z-index: 2; }
.of-s-tsari { position: absolute; z-index: 300; bottom: 6px; left: calc(50% - var(--saeule-b, 400px) / 2 + 2%); height: min(40%, 360px); width: auto; pointer-events: none; filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.35)); }
.of-ort-frei { position: absolute; left: auto; right: 0; top: auto; bottom: var(--s-4); }
.of-s-dreh { position: absolute; right: 0; bottom: 64px; z-index: 5; display: flex; gap: var(--s-2); margin: 0; }
.of-s-dreh .knopf { min-width: 48px; justify-content: center; padding: 0 var(--s-4); color: var(--papier); }
.of-s-zurueck { grid-column: 1; grid-row: 1; align-self: end; margin: 0 0 var(--s-6); position: relative; z-index: 5; }

/* Plakate: gezeichnet mit malePlakat (gleich wie die Plakatwand der Flugfassung) */
.of-plakat { cursor: pointer; display: block; box-sizing: border-box; background: #efe6d2; border: 0; font: inherit; overflow: hidden; }
.of-plakat canvas { display: block; width: 100%; height: 100%; }
.of-plakat:focus-visible { outline: 3px solid var(--kobalt-hell); outline-offset: -6px; }

/* ---------- Epilog ---------- */
.of-epilog { width: min(var(--of-breite), calc(100% - 2 * var(--rand))); margin: 0 auto; padding: clamp(40px, 7vh, 88px) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--of-luft); align-items: center; scroll-margin-top: calc(var(--kopf-h) + 8px); }
.of-epilog .of-rahmen { grid-column: 5 / -1; grid-row: 1; aspect-ratio: 16 / 11; }
.of-epilog-text { grid-column: 1 / 6; grid-row: 1; position: relative; z-index: 3; background: var(--papier); color: var(--tinte); border: var(--of-linie) solid var(--tinte); border-radius: 2px; padding: var(--s-5); box-shadow: 8px 8px 0 var(--tinte); }
.of-zeichen-flieger { width: 120px; height: 100px; color: var(--tinte); margin: -8px 0 var(--s-2) -8px; }
.of-epilog .of-g { font-size: clamp(2.8rem, 5vw, 5.8rem); }
.of-fuss { width: min(var(--of-breite), calc(100% - 2 * var(--rand))); margin: var(--s-6) auto 0; }

/* ---------- Telefon und schmale Fenster ---------- */
@media (max-width: 760px) {
  .textfassung { --of-linie: 2.5px; --of-luft: 16px; }
  .of-panel, .of-wahl, .of-epilog { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 28px 0; width: calc(100% - 2 * var(--rand)); }
  .of-panel .of-rahmen, .of-epilog .of-rahmen { aspect-ratio: 4 / 5; }
  .of-panel .of-rahmen img { object-position: 50% 60%; }
  .of-text, .of-epilog-text { margin: -2px 0 0 var(--s-4) !important; padding: var(--s-4); }
  .of-stumm .of-rahmen { aspect-ratio: 4 / 4.4; }
  .of-g { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .of-g.lang { font-size: clamp(2rem, 9vw, 2.8rem); }
  .of-g.sehrlang { font-size: clamp(1.7rem, 7.2vw, 2.2rem); }
  .of-k { font-size: 1.1rem; }
  .of-zeile { display: block; width: auto; padding: 0; }
  .of-zeile .of-panel { width: calc(100% - 2 * var(--rand)); margin: 0 auto; padding: 28px 0; display: flex; }
  .of-zeile .of-panel:nth-child(2) { margin-top: 0; }
  .of-halb .of-text { max-width: none; }
  .of-uebergang { margin: var(--s-4) var(--rand) -24px; }
  /* Reihen: Bilder seitlich wischen */
  .of-reihe .of-bild { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--rand)); padding: 0 var(--rand) 4px; scrollbar-width: none; }
  .of-reihe .of-rahmen { flex: 0 0 84%; scroll-snap-align: center; aspect-ratio: 4 / 5; }
  .of-reihe .of-rahmen img { object-position: 60% 50%; }
  .of-reise .of-bild { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 10px; }
  .of-reise .of-rahmen:not(.of-zug) { aspect-ratio: 3 / 4.4; }
  .of-reise .of-zug { aspect-ratio: 3 / 4.4; }
  .of-foto { position: relative; width: 78% !important; left: auto !important; right: auto !important; bottom: auto !important; margin: 16px 0 0 auto; padding: 6px 6px 20px; }
  .of-reise .of-foto { grid-column: 1 / -1; }
  .of-breit .of-foto { margin-top: 16px; }
  .of-titel-text { padding-bottom: 72px; }
  .of-titel-bild img { object-position: 46% 50%; }
  .of-wahl-bild { aspect-ratio: 4 / 5; order: 0; }
  .of-wahl .of-satz { margin: var(--s-4) 0; }
  .of-wahl .of-g { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .of-wahl-knoepfe { grid-template-columns: 1fr 1fr; gap: 12px; }
  .of-wahl-knopf:last-child { grid-column: 1 / -1; }
  .of-zeichen-klein { width: 56px; height: 46px; }
  .of-auftakt { height: 125svh; margin-bottom: -52svh; }
  .of-zeichen-gross { width: min(78vw, 46vh); }
  /* Säule: Kopf oben, Säule darunter, Tsari davor */
  .of-saeule-teil { height: 300svh; }
  .of-saeule-buehne { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; width: 100%; }
  .of-saeule-kopf { grid-column: 1; grid-row: 1; padding: var(--s-4) var(--rand) 0; }
  .of-saeule-kopf .of-g { font-size: clamp(2.2rem, 10vw, 3rem); }
  .of-saeule { grid-column: 1; grid-row: 2; --sw: 108px; padding-top: 24px; align-self: start; }
  .of-s-schaft { height: 22svh; }
  .of-s-tsari { height: 196px; }
  .of-s-zurueck { grid-row: 3; margin: var(--s-4) var(--rand) var(--s-5); }
  .of-s-dreh { right: var(--rand); bottom: 24px; }
  .of-ort-frei { right: var(--rand); bottom: 88px; font-size: 0.85rem; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .of-standard .of-bild { grid-column: 1 / -1; }
  .of-standard .of-text { grid-column: 1 / 9; grid-row: 2; margin: -72px 0 0 var(--s-5); }
  .of-gegen .of-bild { grid-column: 1 / -1; }
  .of-gegen .of-text { grid-column: 3 / -1; grid-row: 2; margin-top: -72px; }
  .of-breit .of-text, .of-reise .of-text { grid-column: 1 / 10; }
  .of-wahl-knoepfe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .of-epilog .of-rahmen { grid-column: 1 / -1; }
  .of-epilog-text { grid-column: 1 / 9; grid-row: 2; margin: -72px 0 0 var(--s-5); }
}

/* ---------- Ohne Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .textfassung body { transition: none; }
  .of-rahmen img, .of-titel-bild img { translate: 0 -6%; }
  .of-panel .of-rahmen, .of-wahl .of-rahmen, .of-epilog .of-rahmen, .of-text, .of-foto { clip-path: none; opacity: 1; translate: none; transition: none; }
  .of-zeichen path { animation: none !important; stroke-dashoffset: 0; }
  .of-auftakt { height: auto; padding: var(--s-8) 0; margin-bottom: 0; }
  .of-auftakt-buehne { position: static; height: auto; opacity: 1; translate: none; filter: none; }
  .of-kap-wort, .of-kap-titel { opacity: 1; translate: none; }
  .of-saeule-teil { height: auto; }
  .of-saeule-buehne { position: static; height: auto; display: block; overflow: visible; }
  .of-saeule { width: auto; height: auto; display: block; padding: 0; }
  .of-saeule-kopf { padding-top: var(--s-6); }
  .of-s-dach, .of-s-fuss, .of-s-tsari, .of-s-dreh { display: none; }
  .of-s-trommel::before { display: none; }
  .of-s-schaft { display: none; }
  .of-s-trommel { height: auto; transform: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 40vw), 1fr)); gap: 16px; padding: var(--s-5) 0; }
  .of-s-zurueck { margin: 0 0 var(--s-7); }
  .of-flaeche { position: relative; left: auto; margin: 0; transform: none !important; visibility: visible !important; width: auto; aspect-ratio: 372 / 516; }
  .of-leer { display: none; }
  .of-ort-frei { position: static; display: inline-block; }
}
