/* Work: gleichmaessiges 3er-Raster, beim Hover waechst das Fenster nur ganz leicht */
.wc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Abstand waechst mit dem Browserfenster: ca. 40px bei 1024px, ca. 68px bei 1440px, max. 98px (ab ca. 1900px), mind. 24px */
  --wc-gap: clamp(24px, calc(6.7vw - 29px), 98px);
  column-gap: var(--wc-gap);
  row-gap: var(--wc-gap);
  align-items: start;
  margin-top: -2px;
  margin-right: 64px; /* Luft am rechten Rand */
}
.wc-cell { min-width: 0; }
.wc-card {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: transform .9s cubic-bezier(.22, .72, .2, 1);
}
.wc-fr {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background: var(--wc-bg, #1b1240); /* Fensterfarbe statt Weiss (sonst weisse Blitzer am Rand) */
  transform: translateZ(0);
}
.wc-img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; display: block; will-change: transform; }
.wc-img.wc-img--eos { top: 2%; height: 96%; } /* Logo im Fenster kleiner, Fenster bleibt gleich gross */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wc-card:hover, .wc-card:focus-visible { transform: scale(1.03); }
}
@media (max-width: 767px) {
  .wc-grid { grid-template-columns: 1fr; --wc-gap: 40px; row-gap: 40px; margin-right: 0; margin-top: 10px; }
  .wc-fr { border-radius: 14px; }
}

/* Projektseiten */
.wp-film { position: relative; }
.wp-shield { position: absolute; left: 0; top: 0; right: 0; bottom: 76px; z-index: 2; cursor: none; }
.wp-shield.is-off { pointer-events: none; }
.wp-wide { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; }
.wp-g4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.wp-g4 .wp-film:not(.wp-span2) { margin-top: -120px; margin-left: -80px; margin-right: 12px; }
.wp-g4 .wp-span2 { grid-column: span 2; margin-right: 0; } /* rechte Kante buendig mit dem Hauptfilm und "Next Project" (vorher -80px) */
.wp-g4 img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }
.wp-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; column-gap: 24px; }
.wp-nav a { margin: 0; white-space: nowrap; width: max-content; }
.wp-nav a:nth-child(1) { justify-self: start; }
.wp-nav a:nth-child(2) { justify-self: center; }
.wp-nav a:nth-child(3) { justify-self: end; }
.wp-nav svg { display: inline-block; width: 45px; height: 15px; vertical-align: baseline; }
.wp-nav a:nth-child(3) svg { margin-left: -5px; }
.wp-nav a:nth-child(1) svg { margin-right: -5px; transform: scaleX(-1); }
@media (max-width: 767px) {
  .wp-wide { border-radius: 14px; aspect-ratio: 16 / 9; }
  /* Mobil: alle Filme volle Breite untereinander, Abstand wie bei den Projektfenstern der Startseite */
  .wp-g4 { grid-template-columns: 1fr; gap: 40px; }
  .wp-g4 .wp-span2 { grid-column: auto; margin-right: 0; }
  .wp-g4 .wp-film:not(.wp-span2) { margin-top: 0; margin-left: 0; margin-right: 0; }
  .wp-g4 img { border-radius: 12px; }
  .wp-w { display: none; }
  .wp-nav svg { width: 32px; height: 11px; }
}

.wp-credits { display: grid; row-gap: 14px; }
.wp-credit { display: grid; grid-template-columns: 11rem 1fr; column-gap: 24px; }
.wp-credit span:first-child { color: #8e88a5; }
@media (max-width: 767px) { .wp-credit { grid-template-columns: 8rem 1fr; } }
.wp-label { text-align: right; padding-right: 40px; }
@media (max-width: 767px) { .wp-label { text-align: left; padding-right: 0; } }

/* Preloader im Film, solange der Player laedt */
.wp-loader { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 14px; transition: opacity .5s ease; }
.wp-loader span { width: 14px; height: 14px; border-radius: 50%; background: #BFABFF; animation: wpDot 1.1s ease-in-out infinite; }
.wp-loader span:nth-child(2) { animation-delay: .15s; }
.wp-loader span:nth-child(3) { animation-delay: .3s; }
.wp-loader.is-done { opacity: 0; pointer-events: none; }
@keyframes wpDot { 0%, 80%, 100% { transform: scale(.55); opacity: .45; } 40% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wp-loader span { animation: none; opacity: .8; } }
@media (max-width: 767px) { .wp-g4 .wp-film { border-radius: 12px !important; } }

/* Textabsatz rechts neben einem Film (EOS: Lower thirds) */
/* oben buendig mit dem Film, knapp unter der Abrundung (border-radius 20px); halb so breit wie die Spalte */
.wp-side-text { padding-left: 60px; padding-top: 40px; align-self: flex-start; }
.wp-side-text .text-h5 { max-width: 50%; }
@media (max-width: 767px) { .wp-side-text { padding-left: 15px; padding-top: 0; margin-top: 24px; } .wp-side-text .text-h5 { max-width: none; } }

/* Treppe: 4 quadratische Fenster, links oben -> rechts unten (FBD: Logo-Zustaende) */
.wp-stairs { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, calc(6.8vw - 35px), 96px); align-items: start; margin-right: 64px; /* rechte Kante wie das Projektraster auf der Startseite */ }
.wp-stair-1 { margin-top: 0; }
.wp-stair-2 { margin-top: 80px; }
.wp-stair-3 { margin-top: 160px; }
.wp-stair-4 { margin-top: 240px; }
@media (max-width: 767px) {
  .wp-stairs { gap: 12px; margin-right: 0; }
  .wp-stair-2 { margin-top: 16px; }
  .wp-stair-3 { margin-top: 32px; }
  .wp-stair-4 { margin-top: 48px; }
  .wp-stairs .wp-film { border-radius: 12px !important; }
}

/* Treppe: Fenster greifbar (js/stairs-magnet.js) */
.wp-stair-item.is-grabbable { cursor: none; /* eigener Seiten-Cursor */ touch-action: pan-y; user-select: none; -webkit-user-select: none; position: relative; }
.wp-stair-item.is-grabbing { cursor: none; z-index: 5; }

/* Treppen-Fenster: Cursor wird beim Hover zum grossen lila Kreis mit "Grab" (wie "Play" auf der Startseite),
   beim Greifen drueckt sich der Kreis leicht zusammen (js/stairs-magnet.js) */
div#mouseCursor.stair-big, div#mouseCursor.dot.stair-big { width: 140px; height: 140px; overflow: visible; opacity: 1 !important; }
div#mouseCursor.stair-big.stair-grab, div#mouseCursor.dot.stair-big.stair-grab { width: 124px; height: 124px; }
div#mouseCursor.stair-big .main-circle { stroke: none; stroke-width: 0; fill: #BFABFF; }
div#mouseCursor.stair-big > svg ~ svg,
div#mouseCursor.stair-big > .mouse-cursor-icon ~ .mouse-cursor-icon,
div#mouseCursor.stair-big > .mouse-cursor-text ~ .mouse-cursor-text { display: none; }
div#mouseCursor .stair-hand { position: absolute; top: 50%; left: 50%; pointer-events: none; white-space: nowrap;
  font-family: 'Host Grotesk', sans-serif; font-size: 28px; font-weight: 400; letter-spacing: 0.005em; line-height: 1; color: #1B1240;
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .35s ease; -webkit-user-select: none; user-select: none; }
div#mouseCursor.stair-big .stair-hand { opacity: 1; }
div#mouseCursor .stair-hand i { display: inline-block; font-style: normal; will-change: transform; }
div#mouseCursor.stair-out { overflow: visible; }
div#mouseCursor.stair-out > svg ~ svg,
div#mouseCursor.stair-out > .mouse-cursor-icon ~ .mouse-cursor-icon,
div#mouseCursor.stair-out > .mouse-cursor-text ~ .mouse-cursor-text { display: none; }

/* Filme auf Projektseiten: Hover = grosser lila Kreis mit "Stop"/"Play", Klick = Pause/Weiter (js/film-control.js) */
.wp-shield.fc-shield { bottom: 0; }
.wp-shield.fc-shield.fc-ctrl { bottom: 76px; } /* Showreel: Streifen mit den Player-Bedienelementen frei lassen */
div#mouseCursor.fc-big, div#mouseCursor.dot.fc-big { width: 140px; height: 140px; overflow: visible; opacity: 1 !important; }
div#mouseCursor.fc-big .main-circle { stroke: none; stroke-width: 0; fill: #BFABFF; }
div#mouseCursor.fc-big, div#mouseCursor.fc-out { overflow: visible; }
div#mouseCursor.fc-big > svg ~ svg, div#mouseCursor.fc-out > svg ~ svg,
div#mouseCursor.fc-big > .mouse-cursor-icon ~ .mouse-cursor-icon, div#mouseCursor.fc-out > .mouse-cursor-icon ~ .mouse-cursor-icon,
div#mouseCursor.fc-big > .mouse-cursor-text ~ .mouse-cursor-text, div#mouseCursor.fc-out > .mouse-cursor-text ~ .mouse-cursor-text { display: none; }
div#mouseCursor .fc-label { position: absolute; top: 50%; left: 50%; pointer-events: none; white-space: nowrap;
  font-family: 'Host Grotesk', sans-serif; font-size: 28px; font-weight: 400; letter-spacing: 0.005em; line-height: 1; color: #1B1240;
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .35s ease; -webkit-user-select: none; user-select: none; }
div#mouseCursor.fc-big .fc-label { opacity: 1; }
div#mouseCursor .fc-label i { display: inline-block; font-style: normal; will-change: transform; }

/* Bilder-/Filmgruppe mit Hochformat (FBD): links 16:9 und darunter das Quadrat (rechtsbuendig, gleicher Abstand
   zum 9:16 wie das 16:9) - beide schweben gemeinsam (Parallax, js/float.js); rechts hoch das 9:16 */
.wp-g4.wp-g4-portrait { grid-template-columns: minmax(0, 1.394fr) minmax(0, 1fr); gap: 72px; margin-right: 0; align-items: start; } /* rechte Kante buendig mit dem Hauptfilm */
.wp-g4-left { display: flex; flex-direction: column; align-items: flex-end; gap: 72px; }
.wp-g4.wp-g4-portrait .wp-g4-left .wp-film { margin: 0; }
.wp-g4.wp-g4-portrait .wp-film.wp-span2 { grid-column: auto; width: 100%; margin-top: 190px; } /* ein Stueck tiefer als das 9:16 */
.wp-g4.wp-g4-portrait .wp-film.wp-sq { width: 56%; } /* Unterkante etwa auf Hoehe des 9:16 */
.wp-g4.wp-g4-portrait .wp-film.wp-portrait { margin: 0; }
@media (max-width: 767px) {
  .wp-g4.wp-g4-portrait { grid-template-columns: 1fr; gap: 40px; margin-right: 0; }
  .wp-g4-left { gap: 40px; align-items: stretch; }
  .wp-g4.wp-g4-portrait .wp-film.wp-sq { width: auto; }
  .wp-g4.wp-g4-portrait .wp-g4-left .wp-film.wp-span2 { margin-top: 0; }
  .wp-g4.wp-g4-portrait .wp-film.wp-portrait { margin: 0 auto; width: 62%; }
}
/* Film-Player erst zeigen, wenn er geladen ist (kein weisser Blitzer beim Laden, js/film-control.js) */
.fc-loading iframe { opacity: 0 !important; }
.wp-film iframe, .fc-film-box iframe { transition: opacity .5s ease; }

/* "Next Project ->" rechts, buendig mit der rechten Kante des Hauptfilms, auf Hoehe von "Back to Projects" */
.wp-nav a.wp-next { grid-column: 3; justify-self: end; }
.wp-nav a.wp-next svg { margin-left: -5px; }

/* "More projects": weitere Fenster wachsen unter den ersten drei auf (js/work-more.js).
   Das Fenster selbst waechst in der Hoehe (Rundung bleibt gleich), das Bild bleibt oben verankert - kein abgeschnittener Rand. */
.wc-more { margin-right: 64px; }
.wc-grid--more { margin: 0; padding-top: 0; visibility: hidden; transition: padding-top .9s cubic-bezier(.22, .72, .2, 1), visibility 0s linear .9s; }
.wc-more.is-open .wc-grid--more { padding-top: var(--wc-gap); visibility: visible; transition: padding-top .9s cubic-bezier(.22, .72, .2, 1), visibility 0s linear 0s; }
.wc-grid--more > .wc-cell { container-type: inline-size; opacity: 0; transition: opacity .4s ease; }
.wc-more.is-open .wc-grid--more > .wc-cell { opacity: 1; transition: opacity .6s ease .15s; }
.wc-grid--more .wc-fr { aspect-ratio: auto; height: 0; transition: height .9s cubic-bezier(.22, .72, .2, 1); }
.wc-more.is-open .wc-grid--more .wc-fr { height: 100cqw; }
.wc-grid--more .wc-img { top: -8cqw; height: 116cqw; }
.wc-grid--more .wc-img.wc-img--eos { top: 2cqw; height: 96cqw; }
/* Abstand ueber dem Link = Abstand zwischen dem Text ("...reusable templates.") und den Fenstern: 93px, mobil 105px */
.wc-more-row { margin-top: 66px; }
.wc-more-btn { display: inline-flex; align-items: center; gap: 14px; margin: 0; padding: 0; background: none; border: 0; font-family: inherit; cursor: none; }
.wc-more-btn[hidden] { display: none; }
.wc-more-btn:focus-visible { outline: 1px solid currentColor; outline-offset: 8px; }
.wc-plus { position: relative; width: 15px; height: 15px; flex: 0 0 15px; }
.wc-plus::before, .wc-plus::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .5s cubic-bezier(.22, .72, .2, 1); }
.wc-plus::after { transform: rotate(90deg); }
.wc-more-btn[aria-expanded="true"] .wc-plus::after { transform: rotate(0deg); }
@media (max-width: 767px) {
  .wc-more { margin-right: 0; }
  .wc-more-row { margin-top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .wc-grid--more, .wc-grid--more > .wc-cell, .wc-grid--more .wc-fr { transition: none !important; }
}

/* Slotmaschine (js/work-slot.js): drei Spalten, jede mit zwei uebereinanderliegenden Fenstern. Das aktuelle schrumpft oben verankert,
   das naechste zieht von unten auf (beide behalten die Rundung). Fuer die Hoehen sorgt das Skript waehrend der Animation. */
.wc-grid.wc-slots > .wc-cell { position: relative; aspect-ratio: 1 / 1; container-type: inline-size; }
.wc-slots .wc-card { position: absolute; left: 0; right: 0; }
.wc-slots .wc-card.is-cur { top: 0; height: 100%; }
.wc-slots .wc-card.is-nxt { bottom: 0; height: 0; visibility: hidden; }
.wc-slots .wc-cell.is-moving .wc-card.is-nxt { visibility: visible; }
.wc-slots .wc-card .wc-fr { position: absolute; left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.wc-slots .wc-img { top: -8cqw; height: 116cqw; }
.wc-slots .wc-img.wc-img--eos { top: 2cqw; height: 96cqw; }

/* Seitliches Durchlaufen (js/work-carousel.js): alle Projekte in einer Reihe, je ein Drittel der Breite, Verschiebung ueber die Eigenschaft translate */
.wc-grid.wc-track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--wc-gap)) / 3); }
.wc-grid.wc-track { transition: translate .8s cubic-bezier(.22, .8, .2, 1); } /* startet sofort, bremst weich ab */
.wc-track > .wc-cell.is-off { visibility: hidden !important; }
.wrapper-full.wc-track-wrap { overflow-x: clip; }   /* seitlich bis zum Bildschirmrand, oben/unten bleibt Platz fuer den Hover */
@media (prefers-reduced-motion: reduce) { .wc-grid.wc-track { transition: none; } }

/* Vor-/Zurueck-Links unter den Projekten (Stil wie "Here's how": .super-hover); Abstand nach oben: .wc-more-row */
.wc-arrows { display: flex; justify-content: flex-end; gap: 40px; margin-right: 64px; } /* Link rechts, buendig mit dem rechten Rand der Fenster */
.wc-arrows[hidden] { display: none; }
.wc-arrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 0; background: none; border: 0; font-family: inherit; cursor: none; }
.wc-arrow:focus-visible { outline: 1px solid currentColor; outline-offset: 8px; }
/* Aeussere Fenster laufen beim Wechsel ganz aus dem Bild (js/work-carousel.js setzt die zusaetzliche Verschiebung ueber translate) */
.wc-track .wc-card { transition: transform .9s cubic-bezier(.22, .72, .2, 1), translate .8s cubic-bezier(.22, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .wc-track .wc-card { transition: none; } }

/* Mausereignisse nur an den Fenstern selbst: leere Zellen und die ausserhalb stehenden Nachbarfenster fangen nichts ab */
.wc-track > .wc-cell { pointer-events: none; }
.wc-track .wc-card { pointer-events: auto; }
.wc-track .wc-card.is-parked { pointer-events: none; }

/* Projektseiten: Textblock endet ohne Zusatzabstand, damit der Abstand Text<->Film/Bild ueberall gleich gross ist wie Film/Bild<->Text */
section[aria-label="The project"] .text-h5:last-child, section[aria-label="The approach"] .text-h5:last-child { margin-bottom: 0; }

/* Projektseiten: runde Ecken der Filme als Deckflaechen in der Hintergrundfarbe statt overflow:hidden (der Beschnitt des laufenden Videos kostet die Grafikkarte jedes Bild) */
/* 1 px nach innen gesetzt: deckt Rand und Ecken in einem Stueck ab, damit nie eine Pixellinie des Films durchblitzt
   (frueher vier Verlaufs-Kacheln, an deren Naht bei gebrochenen Pixelbreiten Linien stehen blieben) */
.wp-film::after { content: ""; position: absolute; inset: 1px; border-radius: var(--wp-r); box-shadow: 0 0 0 48px #090020; -webkit-clip-path: inset(-4px); clip-path: inset(-4px); z-index: 1; pointer-events: none; }

/* Vorschaubild der Projektfilme: sofort da, bleibt bis zum ersten Abspielen (js/film-control.js) */
.wp-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; pointer-events: none; transition: opacity .35s ease; }
.fc-played .wp-poster { opacity: 0; }

/* House of Beats: 16:9-Stills in der Gruppe und zwei Stills nebeneinander */
.wp-still img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.wp-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 767px) { .wp-g2 { grid-template-columns: 1fr; gap: 40px; } .wp-still img { border-radius: 12px; } }


/* FBD: Credits direkt unter dem 16:9-Film der Gruppe, linksbuendig, etwas Abstand (Spaltenabstand 72 px wird verkleinert) */
.wp-g4-left .wp-film-credits { align-self: flex-start; width: 100%; margin: 58px 0 0; } /* 72 px Spaltenabstand + 58 px = 130 px zum Film; schwebt mit dem Film (Parallax) */
@media (max-width: 767px) { .wp-g4-left .wp-film-credits { margin-top: 16px; } }

/* Sehr grosse Bildschirme: Logos in den Projektfenstern etwas kleiner (Fenster bleiben gleich gross) */
@media (min-width: 2000px) { .wc-img--eos { scale: .88; } .wc-img--logo { scale: 1; } }
@media (min-width: 2600px) { .wc-img--eos { scale: .78; } .wc-img--logo { scale: .9; } }
/* Syndicate-Logo generell etwas groesser (steht vor den Grossbildschirm-Regeln oben nur per Reihenfolge, daher hier Basiswert) */
.wc-img--logo { scale: 1.12; }
@media (min-width: 2000px) { .wc-img--logo { scale: 1; } }
@media (min-width: 2600px) { .wc-img--logo { scale: .9; } }
/* EOS-Logo generell einen Tick groesser */
.wc-img--eos { scale: 1.03; }
@media (min-width: 2000px) { .wc-img--eos { scale: .9; } }
@media (min-width: 2600px) { .wc-img--eos { scale: .8; } }
/* Forum-Bildung-Logo einen Tick kleiner (Bild hat einfarbigen Hintergrund wie das Fenster) */
.wc-img--fbd { scale: .94; }

/* Platzhalter fuer Filme und Stills auf Projektseiten, bis die echten Dateien da sind */
.wp-ph { display: flex; align-items: center; justify-content: center; width: 100%; background: #1b1240; border-radius: 16px; color: #8e88a5; font-size: 16px; letter-spacing: 0.01em; text-align: center; }
.wp-ph.wp-wide { border-radius: 20px; }
.wp-g4 .wp-ph:not(.wp-span2) { margin-top: -120px; margin-left: -80px; margin-right: 12px; }
@media (max-width: 767px) { .wp-ph, .wp-ph.wp-wide { border-radius: 12px; } .wp-g4 .wp-ph:not(.wp-span2) { margin-top: 0; margin-left: 0; margin-right: 0; } }
/* Rueckmeldung nach Klick auf Play: Vorschaubild gedimmt, Ladepunkte darueber, bis der Film laeuft */
.fc-spin { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 14px; background: rgba(27, 18, 64, .45); border-radius: inherit; animation: fcSpinIn .2s ease both; }
.fc-spin span { width: 14px; height: 14px; border-radius: 50%; background: #BFABFF; animation: wpDot 1.1s ease-in-out infinite; }
.fc-spin span:nth-child(2) { animation-delay: .15s; }
.fc-spin span:nth-child(3) { animation-delay: .3s; }
@keyframes fcSpinIn { from { opacity: 0; } to { opacity: 1; } }

/* Play-Kreis nur auf Geraeten ohne Hover (Touch): zeigt, dass das ein Film ist und kein Still.
   Gerade; Play mittig auf Filmen, View rechts oben auf Projektfenstern. */
.wp-badge { display: none; }
@media (hover: none) {
  .wp-badge { --bs: 96px; position: absolute; left: clamp(calc(var(--bs) / 2 + 6px), var(--bx, 50%), calc(100% - var(--bs) / 2 - 6px)); top: clamp(calc(var(--bs) / 2 + 6px), var(--by, 50%), calc(100% - var(--bs) / 2 - 6px)); width: var(--bs); height: var(--bs); transform: translate(-50%, -50%) rotate(var(--br, 0deg)); z-index: 2; pointer-events: none; transition: opacity .25s ease; border-radius: 50%; background: #BFABFF; color: #1B1240; display: flex; align-items: center; justify-content: center; font-family: 'Host Grotesk', sans-serif; font-size: 24px; font-weight: 400; letter-spacing: 0.015em; line-height: 1; }
  .fc-played .wp-badge, .fc-starting .wp-badge { opacity: 0; }
  /* Projektfenster: "View" rechts oben, damit das Logo in der Mitte frei bleibt */
  .wc-fr .wp-badge { left: calc(100% - var(--bs) / 2 - 14px); top: calc(var(--bs) / 2 + 14px); }
}
@media (hover: none) and (max-width: 767px) { .wp-badge { --bs: 76px; font-size: 19px; } }

/* Mobil: Ecken weniger rund (Filme, Stills, Platzhalter, Projektfenster) */
@media (max-width: 767px) {
  .wp-film, .wp-g4 .wp-film, .wp-stairs .wp-film { border-radius: 8px !important; --wp-r: 8px !important; }
  .wp-still img, .wp-wide, .wp-g4 img, .wp-ph, .wp-ph.wp-wide { border-radius: 8px !important; }
  .wc-fr { border-radius: 8px; }
}

/* Mobil: Projekt-Navigation nur "Last" / "Next" mit Pfeil (ohne "Back to Projects", ohne "Project") */
@media (max-width: 767px) {
  .wp-nav { display: flex; justify-content: space-between; align-items: baseline; }
  .wp-nav a.wp-next { grid-column: auto; }
  .wp-nav-back, .wp-nav-proj { display: none; }
}
/* Mobil, Startseite: "Next project" unter den ersten drei Projekten; das aufgeklappte Projekt blendet weich ein */
@media (max-width: 767px) {
  .wc-arrows--m { justify-content: flex-start; margin-right: 0; }
  .wc-cell.wc-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .72, .2, 1); }
  .wc-cell.wc-reveal.is-in { opacity: 1; transform: none; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) { .wc-cell.wc-reveal { transition: none; } }
.fc-snap .wp-poster { transition: none !important; } /* Startbild am Filmende ohne Ueberblendung */

/* Syndicate: quadratische Logoanimation mit einem Satz daneben */
.wp-logo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.wp-logo .wp-logo-text { margin: 0; color: #8e88a5; }
@media (max-width: 767px) { .wp-logo { grid-template-columns: 1fr; gap: 24px; } }

/* Alle Fenster gleich rund, Referenz ist das Showreel (index.html): 15px, mobil 8px */
:root { --win-r: 15px; }
@media (max-width: 450px) { :root { --win-r: 8px; } }
.wc-fr, .wp-film, .wp-film.wp-film, .wp-still img, .wp-wide, .wp-g4 img, .wp-ph, .wp-ph.wp-wide { border-radius: var(--win-r) !important; }
.wp-film { --wp-r: var(--win-r) !important; }

/* Logo-Satz etwas ueber der Mitte */
@media (min-width: 768px) { .wp-logo .wp-logo-text { align-self: start; margin-top: 16%; } }

/* Syndicate: Weihnachtsfilme, zwei 9:16 nebeneinander rechtsbuendig, der quadratische tiefer linksbuendig,
   der Text rechts daneben, die Credits linksbuendig unter dem quadratischen Film */
.wp-xmas { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 38%)); column-gap: 6%; row-gap: 72px; align-items: start; }
.wp-xmas-col1 { grid-column: 2; grid-row: 1; }
.wp-xmas-col3 { grid-column: 3; grid-row: 1; }
.wp-xmas-col2 { grid-column: 1 / -1; grid-row: 2; justify-self: start; width: 46%; margin-top: 120px; } /* 1:1, etwas breiter als die Hochformate */
.wp-xmas-side { grid-column: 1 / -1; grid-row: 2; justify-self: end; width: 48%; margin-top: calc(120px + 64px); }
.wp-xmas-credits { grid-column: 1 / -1; grid-row: 3; margin-top: 63px; }
.wp-xmas-text .text-h5:last-child, .wp-xmas-credits .text-h5 { margin-bottom: 0; }
@media (max-width: 767px) {
  .wp-xmas { grid-template-columns: 1fr; row-gap: 48px; }
  .wp-xmas .wp-xmas-col { grid-column: auto; grid-row: auto; justify-self: auto; width: 78%; margin: 0 auto; }
  .wp-xmas .wp-xmas-side { display: contents; }
  .wp-xmas .wp-xmas-text { order: -1; }
  .wp-xmas .wp-xmas-credits { grid-column: auto; grid-row: auto; order: 1; margin-top: 7px; }
}
/* Abstaende ueber und unter den Credits wie bei House of Beats: Desktop 135 / 138 px, mobil 54 / 86 px */
.wp-xmas { padding-bottom: 4px; }
@media (max-width: 767px) { .wp-xmas { padding-bottom: 32px; } }

/* Steuerleiste der eigenen Videos (js/eigene-filme.js): erscheint erst nach dem Start, blendet beim Abspielen aus */
.wp-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(9, 0, 32, .82); color: #fff; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.fc-played .wp-bar.an, .fc-played .wp-bar:focus-within { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.wp-bar button { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 6px; background: none; color: #fff; cursor: pointer; line-height: 1; }
.wp-bar button:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.wp-bar button svg { width: 20px; height: 20px; display: block; }
.wp-bar button:focus-visible, .wp-bar .wp-bar-seek:focus-visible { outline: 2px solid #f0ff96; outline-offset: 2px; }
.wp-bar-time { flex: 0 0 auto; font: 400 13px/1 'Host Grotesk', sans-serif; letter-spacing: .02em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "pnum" 0; color: #fff; white-space: nowrap; }
.wp-bar input.wp-bar-seek { -webkit-appearance: none; appearance: none; flex: 1 1 auto; min-width: 0; width: auto; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; cursor: pointer; }
.wp-bar-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #fff var(--p, 0%), rgba(255, 255, 255, .48) var(--p, 0%), rgba(255, 255, 255, .48) var(--b, 0%), rgba(255, 255, 255, .18) var(--b, 0%)); }
.wp-bar-seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: #fff; }
.wp-bar-seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.wp-bar-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: #fff; }
.wp-bar-seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
@media (max-width: 767px) { .wp-bar { left: 6px; right: 6px; bottom: 6px; gap: 6px; padding: 4px 6px; } .wp-bar-time { display: none; } }
.wp-bar input.wp-bar-vol { -webkit-appearance: none; appearance: none; flex: 0 0 56px; width: 56px; min-width: 0; height: 20px; margin: 0 0 0 -4px; padding: 0; border: 0; background: transparent; box-shadow: none; cursor: pointer; }
.wp-bar-vol::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #fff var(--p, 100%), rgba(255, 255, 255, .18) var(--p, 100%)); }
.wp-bar-vol::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 10px; height: 10px; margin-top: -3px; border: 0; border-radius: 50%; background: #fff; }
.wp-bar-vol::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.wp-bar-vol::-moz-range-progress { height: 4px; border-radius: 2px; background: #fff; }
.wp-bar-vol::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; }
.wp-bar input.wp-bar-vol:focus-visible { outline: 2px solid #f0ff96; outline-offset: 2px; }
@media (max-width: 767px) { .wp-bar input.wp-bar-vol { display: none; } }
.wp-film:fullscreen { border-radius: 0 !important; background: #000 !important; }
.wp-film:fullscreen::after { display: none; }
.wp-film:fullscreen video { object-fit: contain !important; }

/* Bedienelemente einen Tick groesser (weiter einzeilig) */
.wp-bar { gap: 8px; }
.wp-bar button { width: 32px; height: 32px; }
.wp-bar button svg { width: 23px; height: 23px; }
.wp-bar-time { font-size: 14px; }
.wp-bar-seek::-webkit-slider-runnable-track, .wp-bar-vol::-webkit-slider-runnable-track { height: 5px; }
.wp-bar-seek::-webkit-slider-thumb { width: 14px; height: 14px; }
.wp-bar-vol::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -3.5px; }
.wp-bar-seek::-moz-range-track, .wp-bar-seek::-moz-range-progress, .wp-bar-vol::-moz-range-track, .wp-bar-vol::-moz-range-progress { height: 5px; }
@media (max-width: 767px) { .wp-bar { gap: 6px; } .wp-bar button { width: 30px; height: 30px; } .wp-bar button svg { width: 22px; height: 22px; } .wp-bar .wp-bar-full { margin-left: 0; } }

/* leichte Hover-Effekte im Player: nur transform (kostet praktisch nichts) */
@media (hover: hover) {
  .wp-bar button svg { transition: transform .35s cubic-bezier(.25, .8, .35, 1); }
  .wp-bar button:hover svg, .wp-bar button:focus-visible svg { transform: scale(1.38); }
  .wp-bar button:active svg { transform: scale(.92); }
  .wp-bar-seek::-webkit-slider-thumb, .wp-bar-vol::-webkit-slider-thumb { transition: transform .35s cubic-bezier(.25, .8, .35, 1); }
  .wp-bar-seek:hover::-webkit-slider-thumb, .wp-bar-vol:hover::-webkit-slider-thumb { transform: scale(1.38); }
  .wp-bar-seek::-moz-range-thumb, .wp-bar-vol::-moz-range-thumb { transition: transform .35s ease; }
  .wp-bar-seek:hover::-moz-range-thumb, .wp-bar-vol:hover::-moz-range-thumb { transform: scale(1.38); }
}
@media (prefers-reduced-motion: reduce) { .wp-bar button svg, .wp-bar input::-webkit-slider-thumb { transition: none; } }
/* kein Kasten hinter den Symbolen */
.wp-bar button, .wp-bar button:hover, .wp-bar button:focus, .wp-bar button:active { background: none !important; box-shadow: none; }
/* Filme ohne Tonspur */
.wp-bar--stumm .wp-bar-sound, .wp-bar.wp-bar--stumm input.wp-bar-vol { display: none; }

/* Handy: die Projektfenster ruecken an den Text darueber; sichtbarer Abstand etwas groesser als zwischen Headline "Projects" und Text */
@media (max-width: 450px) { .wrapper-full .wc-grid { margin-top: -31px; } }

/* Handy, Projektseiten: Filme untereinander im gleichen Abstand wie die Abschnitte */
@media (max-width: 450px) {
  .wp-g4, .wp-g4.wp-g4-portrait, .wp-g4-left, .wp-g2, .wp-logo { row-gap: 56px; }
  .wp-g4-left .wp-film-credits { margin-top: 0; }
  .wp-xmas { row-gap: 56px; padding-bottom: 20px; }
  .wp-xmas .wp-xmas-credits { margin-top: 0; }
}

/* Handy: Hochformate (9:16) und Quadrate (1:1) so breit wie die 16:9-Filme */
@media (max-width: 767px) {
  .wp-xmas .wp-xmas-col { width: 100%; margin: 0; }
  .wp-g4.wp-g4-portrait .wp-film.wp-sq { width: 100%; }
  .wp-g4.wp-g4-portrait .wp-film.wp-portrait { width: 100%; margin: 0; }
}
