/* Baustein «VS-Final» (Zürich Open 2026, Tour 4). Einbau: <div data-vs-final></div> plus vs.css und vs.js.
   vs.js baut darin den Kasten: VS-Folie aus design/praesentationen/strt-finale-animiert.html ohne Sprechblase,
   beim Scrollen fällt das VS, danach erscheint das Ergebnis. Der Kasten nimmt die volle Breite seines Elternteils,
   Seitenverhältnis 16:9, unter 40rem Breite 2:3. Ohne Bewegung (Systemeinstellung) steht die fertige Folie.
   Alle Klassen mit Präfix vso, keine Annahmen über die Seite. */

[data-vs-final] { display: block; container-type: inline-size; container-name: vsobox;
  font-family: "Nunito Sans", system-ui, sans-serif; color: #eef4fb; }
.vso__buehne {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md, 12px);
  container-type: size; container-name: vso; isolation: isolate;
}
@container vsobox (max-width: 40rem) { .vso__buehne { aspect-ratio: 2 / 3; } }
.vso__grund { position: absolute; inset: 0; background: var(--navy-3, #081826); }
.vso__grund::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 80% at 50% 40%, #16416a 0%, var(--navy, #0d273d) 55%, var(--navy-3, #081826) 100%); }
.vso__grund::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 50% 46%, #0000, #081826cc); }

/* Brett: Querformat 16:9 mittig, alle Masse in cqw wie auf der Folie */
.vso__brett {
  position: absolute; left: 50%; top: 50%; width: min(100cqw, 177.78cqh); aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%); container-type: inline-size;
}
.vso__team { position: absolute; bottom: 3.2cqw; width: 26cqw; z-index: 3; }
.vso__team--l { left: 4cqw; rotate: -3deg; }
.vso__team--r { right: 4cqw; rotate: 3deg; }
.vso__foto { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: .55cqw solid #fff;
  box-shadow: 0 1cqw 3cqw #000a; background: var(--navy-3, #081826); isolation: isolate; }
.vso__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.18) brightness(1.04); }
.vso__tint { position: absolute; inset: 0; mix-blend-mode: color; background: linear-gradient(180deg, var(--blue, #5ca7dc), #1d5f98); }
.vso__foto--gold .vso__tint { background: linear-gradient(180deg, var(--gold-lt, #e9c475), #b58a34); }
.vso__glanz { position: absolute; inset: 0; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 238, 190, .26) 44%, transparent 56%); }
.vso__schatten { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 38, 0) 66%, rgba(8, 24, 38, .92) 100%); }
.vso__name { position: absolute; bottom: 1.4cqw; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 900; font-size: max(.75rem, 1.35cqw); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  text-shadow: 0 .2cqw .6cqw #000c; }
.vso__name--l { left: 1.6cqw; }
.vso__name--r { right: 1.6cqw; }

.vso__kopf { position: absolute; left: 30cqw; right: 30cqw; top: 6.5cqw; z-index: 4; text-align: center; }
.vso__ober { margin: 0; font-weight: 900; font-size: max(.75rem, 1.5cqw); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-lt, #e9c475); }
.vso__titel { margin: .6cqw 0 0; font-weight: 900; font-size: 5.6cqw; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }

.vso__vs { position: absolute; left: 50%; top: 17cqw; z-index: 11; margin: 0; white-space: nowrap; will-change: transform;
  font-weight: 900; font-size: 25cqw; line-height: .82; color: var(--gold, #cda857);
  transform: translateX(-50%) rotate(-6deg); text-shadow: 0 1cqw 0 #6b5420, 0 2cqw 4cqw #000a; }

.vso__ergebnis { position: absolute; left: 31cqw; right: 31cqw; bottom: 3cqw; z-index: 5; margin: 0; text-align: center;
  font-weight: 900; font-size: 2.1cqw; line-height: 1.2; }
.vso__ergebnis b { display: block; font-size: 4.2cqw; line-height: 1.05; color: var(--gold-lt, #e9c475); }
.vso__ergebnis span { display: block; margin-top: .5cqw; font-weight: 700; font-size: max(.75rem, 1.4cqw); letter-spacing: .08em; color: #c0d3e6; }

.vso__staub { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 10; pointer-events: none; display: none; }

/* Hochformat (Handy): Titel oben, Fotos nebeneinander, VS auf der Naht, Ergebnis unten */
@container vso (max-aspect-ratio: 1 / 1) {
  .vso__brett { --vso-oben: max(9.5rem, calc(48cqh - 30cqw)); left: 0; top: 0; width: 100cqw; height: 100cqh; aspect-ratio: auto; transform: none; container-type: normal; }
  .vso__kopf { left: 4cqw; right: 4cqw; top: calc(var(--vso-oben) - 8.25rem); }
  .vso__ober { font-size: .75rem; letter-spacing: .22em; }
  .vso__titel { margin-top: .4rem; font-size: min(15cqw, 9cqh); }
  .vso__team { bottom: auto; top: var(--vso-oben); width: 45cqw; }
  .vso__team--l { left: 3cqw; }
  .vso__team--r { right: 3cqw; }
  .vso__foto { border-width: 1.6cqw; box-shadow: 0 3cqw 8cqw #000a; }
  .vso__name { bottom: 2.4cqw; font-size: .75rem; letter-spacing: .02em; text-transform: none; }
  .vso__name--l { left: 3cqw; }
  .vso__name--r { right: 3cqw; }
  .vso__vs { top: calc(var(--vso-oben) + 14cqw); font-size: 40cqw; text-shadow: 0 1.6cqw 0 #6b5420, 0 3cqw 6cqw #000a; }
  .vso__ergebnis { left: 4cqw; right: 4cqw; bottom: auto; top: calc(var(--vso-oben) + 63cqw); font-size: 1.125rem; }
  .vso__ergebnis b { font-size: min(11cqw, 6.5cqh); }
  .vso__ergebnis span { margin-top: .35rem; font-size: .875rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .vso.ist-bereit .vso__staub { display: block; }
}

