/* ==========================================================================
   vale-video.de — Werkschau (Swipen durch alle Videos eines Kunden) + Feed
   ========================================================================== */
.schau { --h: clamp(400px, calc(100svh - 17rem), 860px); position: relative; padding-bottom: clamp(3rem, 6vw, 5rem); overflow-x: clip; }
.schau-bahn {
  display: flex; align-items: center; gap: clamp(1.4rem, 3.4vw, 3.4rem); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 1.4rem max(1rem, 50vw - 22vh); scrollbar-width: none; cursor: grab; outline: none;
}
.schau-bahn::-webkit-scrollbar { display: none; }
.schau-bahn.ist-gezogen { scroll-snap-type: none; cursor: grabbing; }
.schau-bahn.ist-gezogen * { pointer-events: none; }
.schau-bild { flex: none; scroll-snap-align: center; margin: 0; }
.schau-rahmen { position: relative; height: var(--h); aspect-ratio: 9 / 16; background: #000; cursor: pointer; }
.schau-bild[data-quer="1"] .schau-rahmen { height: auto; width: min(86vw, calc(var(--h) * 1.5)); aspect-ratio: 16 / 9; }
.schau-rahmen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.ist-an .schau-bild .schau-rahmen { transition: transform .45s var(--ease), opacity .35s; }
.ist-an .schau-bild:not(.ist-aktiv) .schau-rahmen { transform: scale(.86); opacity: .38; }
.ist-an .schau-bild:not(.ist-aktiv) .schau-rahmen:hover { opacity: .7; }
.schau-rahmen > .sucher { inset: -.85rem; color: var(--fg); opacity: 0; transition: opacity .3s; }
.schau-bild.ist-aktiv .schau-rahmen > .sucher { opacity: 1; }
.schau-ton { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: var(--r-pill); background: rgba(0,0,0,.72); color: #fff; font-size: .84rem; font-weight: 650; white-space: nowrap; transition: opacity .25s; }
.schau-ton svg { width: 1rem; height: 1rem; }
.schau-bild:not(.ist-aktiv) .schau-ton { opacity: 0; pointer-events: none; visibility: hidden; /* leer, also auch nicht vorlesen */ }
.schau-bild.mit-ton.ist-laufend .schau-ton { opacity: 0; }
.schau-bild.mit-ton.ist-laufend .schau-rahmen:hover .schau-ton, .schau-ton:focus-visible { opacity: 1; }
.schau-zeit { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; z-index: 5; cursor: pointer; opacity: 0; }
.schau-bild.ist-aktiv .schau-zeit { opacity: 1; }
.schau-zeit::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.28); }
.schau-zeit i { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--rec); transform: scaleX(0); transform-origin: 0 50%; }
.schau-leiste { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; }
.schau-leiste button { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.schau-leiste button:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--fg); }
.schau-leiste button:disabled { opacity: .3; cursor: default; }
.schau-leiste svg { width: 1.15rem; height: 1.15rem; }
.schau-zaehler { font-family: var(--mono); font-size: .82rem; color: var(--muted); min-width: 4.6rem; font-variant-numeric: tabular-nums; }
.schau-streifen { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; flex: 1; position: relative; }
.schau-streifen::-webkit-scrollbar { display: none; }
.schau-streifen button { width: auto; height: auto; border-radius: 0; box-shadow: none; flex: none; opacity: .42; transition: opacity .2s; }
.schau-streifen button:hover { opacity: .8; box-shadow: none; }
.schau-streifen button[aria-current="true"] { opacity: 1; box-shadow: inset 0 -3px 0 var(--rec); }
.schau-streifen img { height: 3.6rem; width: auto; display: block; object-fit: cover; background: var(--line); color: transparent; }
.schau-streifen button[aria-current="true"] img { border-bottom: 3px solid var(--rec); }
.schau-tafel { margin-top: clamp(1.4rem, 3vw, 2.2rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem clamp(2rem, 5vw, 5rem); align-items: start; min-height: 9rem; }
.schau-tafel > .schau-worte:only-child { max-width: 46rem; grid-column: 1 / -1; }
.schau-meta { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.schau-worte h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin: .35rem 0 .7rem; }
.schau-worte p + p { margin-top: .7rem; }
.schau-worte p { color: var(--muted); max-width: 60ch; }
.schau-worte p.schau-meta { color: var(--muted); }
.schau-fakten { display: grid; border-top: 1px solid var(--line); margin-top: 1.1rem; }
.schau-fakten div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.schau-fakten dt { color: var(--faint); }
.schau .kapitel-liste { gap: .25rem; }
.schau .kapitel-liste button { padding: .6rem .9rem; }
.schau .kapitel-liste small { font-size: .82rem; }
.schau-credit { font-size: .78rem; color: var(--faint); margin-top: .9rem; }
.schau-credit a { text-decoration: underline; text-underline-offset: 2px; }
.schau--eins .schau-leiste { display: none; }
.schau--eins .schau-bahn { overflow: visible; cursor: default; padding-inline: var(--gutter); justify-content: center; }
.schau--eins.schau--quer .schau-rahmen { width: min(100vw - 2 * var(--gutter) - 1rem, var(--maxw)); }
@media (min-width: 861px) {
  .schau--eins.schau--hoch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2.4rem, 6vw, 6.5rem); align-items: center; width: min(100% - 2 * var(--gutter), var(--maxw)); margin: clamp(1.4rem, 3vw, 2.6rem) auto 0; }
  .schau--eins.schau--hoch .schau-bahn { padding-inline: .85rem; }
  .schau--eins.schau--hoch .wrap { width: 100%; }
  .schau--eins.schau--hoch .schau-tafel { grid-template-columns: 1fr; margin-top: 0; }
  .schau--eins.schau--hoch .kapitel-liste { grid-template-columns: 1fr 1fr; }
}
html:not(.js) .schau-info { max-width: 22rem; margin-top: .8rem; }
.case-kopf.case-kopf--solo { padding-block: clamp(1.2rem, 2.4vw, 2rem) clamp(.4rem, 1vw, .8rem); }
.case-kopf--solo .zurueck { margin-bottom: .7rem; }
.case-kopf--solo .case-zeile { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end; }
.case-kopf--solo h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); margin-top: 0; }
.case-kopf--solo .lead { margin-top: 0; }
@media (max-width: 860px) {
  .schau { --h: min(72svh, 640px); }
  .schau-bahn { padding-inline: calc(50vw - min(36vh, 40vw)); gap: 1rem; padding-block: 1.1rem; overflow-y: hidden; transition: height .45s var(--ease); }
  .schau-tafel { grid-template-columns: 1fr; }
  .schau-leiste > button { width: 2.6rem; height: 2.6rem; }
  .schau-streifen img { height: 3rem; }
  .case-kopf--solo .case-zeile { grid-template-columns: 1fr; }
  .schau-rahmen > .sucher { inset: -.5rem; }
}

/* --- Feed (Handy): Vollbild, Hochwischen ---------------------------------- */
.feed { position: fixed; inset: 0; z-index: 480; background: #000; color: #fff; }
.feed-bahn { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.feed-bahn::-webkit-scrollbar { display: none; }
.feed-bild { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: #000 center / cover no-repeat; }
.feed > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .16s; z-index: 1; }
.feed > video.ist-da { opacity: 1; }
.feed-text { position: absolute; left: 1.1rem; right: 4rem; bottom: calc(1.9rem + env(safe-area-inset-bottom)); display: grid; gap: .2rem; text-shadow: 0 1px 8px rgba(0,0,0,.75); }
.feed-bahn { z-index: 2; }
.feed > video { z-index: 1; }
.feed-bild { background-size: cover; }
.feed:has(video.ist-da) .feed-bild { background-image: none !important; background-color: transparent; }
.feed-text b { font-size: 1.15rem; line-height: 1.2; letter-spacing: -.01em; }
.feed-text span { font-size: .78rem; opacity: .85; }
.feed-zeit { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); z-index: 3; }
.feed-zeit i { display: block; height: 100%; background: var(--rec); transform: scaleX(0); transform-origin: 0 50%; }
.feed-zaehler { position: absolute; left: 1.1rem; top: calc(1.1rem + env(safe-area-inset-top)); z-index: 3; font-family: var(--mono); font-size: .8rem; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.feed .kino-zu { z-index: 4; top: calc(.8rem + env(safe-area-inset-top)); }

/* --- Kino-Modus (Handy): Querformat-Filme laufen nur quer ----------------- */
html.kino-offen, html.kino-offen body { overflow: hidden; }
html.kino-offen .nav { display: none; }
.fk-bindung:has(.ist-kino) { z-index: 500; overflow: visible; }
.schau:has(.ist-kino) { z-index: 500; overflow: visible; }
.schau-bahn:has(.ist-kino) { overflow: visible; }
.ist-kino, html.js:not(.bewegung-aus) .fk-schirm.ist-kino, .schau-bild[data-quer="1"] .schau-rahmen.ist-kino {
  position: fixed; inset: auto; left: calc(var(--kw, 100vw) / 2); top: calc(var(--ky, 0px) + var(--kh, 100dvh) / 2); margin: 0; z-index: 500; background: #000; aspect-ratio: auto; opacity: 1;
  width: var(--kh, 100dvh); height: var(--kw, 100vw); max-width: none;
  transform: translate(-50%, -50%) rotate(90deg) !important; transition: none;
  box-shadow: 0 0 0 200vmax #000;          /* Schwarz drumherum; ein riesiges Pseudo-Element wuerde Safari die Seite verkleinern lassen */
}
.fk-schirm.ist-kino::before { content: none; }
.ist-kino > video, .ist-kino > canvas.fest, .fk-schirm.ist-kino > video, .fk-schirm.ist-kino > canvas.fest { object-fit: contain; background: #000; }      /* ganzes Bild, oben und unten Balken */
.ist-kino > .sucher, .ist-kino .hud, .ist-kino .schau-ton { opacity: 0; pointer-events: none; }
.ist-kino:fullscreen { width: 100vw; height: 100vh; }
@media (orientation: landscape) {
  .ist-kino, html.js:not(.bewegung-aus) .fk-schirm.ist-kino, .schau-bild[data-quer="1"] .schau-rahmen.ist-kino { width: var(--kw, 100vw); height: var(--kh, 100dvh); transform: translate(-50%, -50%) !important; }
}
.kino-zu { position: absolute; z-index: 20; right: 1rem; top: 1rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; border-radius: 50%; }
.kino-zu svg { width: 1.2rem; height: 1.2rem; }
.kino-hinweis { position: absolute; z-index: 18; left: 50%; bottom: 1.2rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .7rem; border-radius: var(--r-pill); background: rgba(0, 0, 0, .7); color: #fff; font-size: .92rem; font-weight: 620; white-space: nowrap; transition: opacity .4s; pointer-events: none; }
.kino-hinweis svg { width: 1.3rem; height: 1.3rem; }
.kino-hinweis.ist-weg { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .kino-hinweis svg { animation: handy-dreh 1.2s cubic-bezier(.6, 0, .1, 1) 2; } }
@keyframes handy-dreh { 0%, 22% { transform: none; } 78%, 100% { transform: rotate(90deg); } }

/* --- Hero: direkt zur Arbeit ---------------------------------------------- */
.fs-flaeche { position: absolute; inset: 0; z-index: 3; }
.fs-ziel { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: var(--r-pill); background: #000; color: #fff; font-size: .86rem; font-weight: 650; white-space: nowrap; transition: background .2s; }
.fs-ziel:hover { background: #2a2a2a; }
.fs-ziel svg { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.fs-rahmen:hover .fs-ziel svg { transform: translateX(3px); }
.fs-rahmen .video-knopf { z-index: 5; right: .7rem; bottom: auto; top: .7rem; width: 2rem; height: 2rem; }
[data-quer="true"] .fs-rahmen .video-knopf { left: auto; right: .7rem; bottom: auto; }

/* --- Arbeiten: Filme als eigene Karten ------------------------------------- */
.film-karten { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.film-karte { position: relative; display: block; aspect-ratio: 2.4 / 1; overflow: hidden; background: #000; color: #fff; }
.film-karte video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-karte .work-card-overlay { padding: 1rem 1.2rem 1.1rem; }
.film-bereich { background: #000; color: #f3f3f3; padding-block: clamp(3rem, 6vw, 5rem); }
.film-bereich h2 { margin-bottom: 1.6rem; }
@media (max-width: 760px) { .film-karten { grid-template-columns: 1fr; } .film-karte { aspect-ratio: 16 / 9; } }
