/* Kundenvideo: Vorschaubild -> Einwilligung (Cookiebot) -> YouTube (youtube-nocookie).
   Genutzt auf index, customers und den doubleSlash-Case-Studies. Script: /js/video-player.js */

.yt-frame { width: 100%; box-sizing: border-box; padding: 10px; background: #EAF3F4; box-shadow: 0 1px 3px rgba(12,38,54,.06), 0 16px 40px -16px rgba(12,38,54,.18); }
.yt-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #184865; container-type: inline-size; }

.yt-player { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; overflow: hidden; cursor: pointer; background: transparent; }
.yt-player:focus-visible { outline: 3px solid #127A90; outline-offset: -3px; }
.yt-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glas-Play, rund, unten links, proportional zur Videogröße. Hover: nur ruhiger Farbwechsel, keine Bewegung */
.yt-play {
  position: absolute; left: 3.5cqw; bottom: 3.5cqw; width: 9cqw; height: 9cqw; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.42);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(255,255,255,.12), 0 10px 30px -8px rgba(12,38,54,.45);
  transition: background .2s ease-out;
}
.yt-play svg { width: 36%; height: 36%; transform: translateX(8%); }
.yt-player:hover .yt-play, .yt-player:focus-visible .yt-play { background: rgba(255,255,255,.24); }
.yt-player:active .yt-play { background: rgba(255,255,255,.3); }

/* Einwilligungs-Hinweis */
.yt-consent {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 16px; text-align: center; color: #0C2636;
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.yt-consent[hidden] { display: none; }
.yt-consent-title { margin: 0; font-family: Roboto, system-ui, sans-serif; font-weight: 500; font-size: clamp(13px, 1.2cqw + 7px, 17px); line-height: 1.35; letter-spacing: 0; color: #184865; }
.yt-consent-text { margin: 0; max-width: 52ch; font-family: Roboto, system-ui, sans-serif; font-size: clamp(11px, 1cqw + 6px, 13px); line-height: 1.45; color: #5A7382; }
.yt-consent-text a { color: inherit; text-decoration: underline; }
.yt-consent-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; }
.yt-consent-more, .yt-consent-ext { color: inherit; font-family: Roboto, system-ui, sans-serif; font-weight: 500; font-size: 14px; text-decoration: none; }
.yt-consent-more:hover, .yt-consent-ext:hover { text-decoration: underline; }
.yt-consent-accept { background: #0C2636; color: #fff; border: 0; border-radius: 10px; padding: 11px 22px; font-family: Roboto, system-ui, sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; }
.yt-consent-accept:hover { background: #184865; }
.yt-consent button:focus-visible, .yt-consent a:focus-visible { outline: 3px solid #127A90; outline-offset: 2px; }

.yt-iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; background: #000; }

/* Block auf den Case-Study-Seiten: zentriert, Titel darüber */
.yt-block { border-top: 1px solid var(--rule); background: #fff; }
.yt-block .px-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; box-sizing: border-box; padding: 64px clamp(16px, 1rem + 3vw, 120px); }
.yt-block-title { margin: 0 0 20px; max-width: 54ch; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 600; letter-spacing: -.02em; font-size: clamp(20px, 1rem + .6vw, 26px); line-height: 1.3; color: #184865; }
.yt-block .yt-frame { max-width: 980px; }

/* Kundenübersicht: Video in der rechten Hero-Spalte */
.cs-hero-grid > .yt-hero { align-self: center; width: 100%; box-sizing: border-box; padding: clamp(20px, 2vw, 32px) clamp(16px, 1.6vw, 28px); }
.yt-hero-title { margin: 0 0 12px; text-align: center; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 600; font-size: 17px; line-height: 1.4; letter-spacing: -.01em; color: #184865; }

/* Startseite: Video links, Zitat rechts */
.sv-case { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.sv-case .sv-vid { position: relative; align-self: center; width: 100%; aspect-ratio: 16 / 9; min-height: 0; margin: 0; overflow: hidden; background: #184865; container-type: inline-size; }
.sv-case .sv-vid::after { display: none; }
.sv .sv-case { background: var(--ground); }
.sv .sv-case .px-case-body { background: transparent; }
.sv-case .sv-eyebrow { margin: 0; }
.sv-case .sv-quote { font-size: clamp(1.375rem, 1rem + .9vw, 1.875rem) !important; line-height: 1.3; color: var(--ink); max-width: 30ch; }
