/* ══════════════════════════════════════════════════════════════
   CASE-STUDIES / TESTIMONIAL-SEITE
   Ergänzt style.css + embed.css. Nutzt deren Variablen & Klassen.
   ══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.cs-hero {
  padding: 120px 20px 0;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--light) 100%);
}
.cs-hero__inner { max-width: 820px; margin: 0 auto; }
.cs-hero__eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 18px;
}
.cs-hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 20px;
}
.cs-hero__title span { color: var(--blue); }
.cs-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted);
  line-height: 1.6; max-width: 640px; margin: 0 auto 32px;
}
.cs-hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Feature-Video (Michael Pelster, Landscape) — überlappt in die dunkle Sektion */
.cs-hero__video {
  max-width: 880px;
  margin: 44px auto -150px;   /* negativer Bottom-Margin schiebt das Video in die navy-Sektion */
  position: relative;
  z-index: 3;
  padding: 0 20px;
}
.cs-hero__video .ntx-sa__video-wrap { aspect-ratio: 16/9; }
@media (max-width: 600px) { .cs-hero__video { margin-bottom: -90px; } }

/* ── Social Proof: Avatare + Zähler ── */
.cs-proof {
  background: var(--light);
  padding: 0 20px 64px;
}
.cs-proof__inner {
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap;
}
.cs-hero .cs-proof__inner { margin-top: 40px; }
.cs-proof__avatars { display: flex; }
.cs-proof__avatars img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(27,45,92,0.14);
  margin-left: -16px;
}
.cs-proof__avatars img:first-child { margin-left: 0; }
.cs-proof__text { text-align: left; }
.cs-proof__count { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.cs-proof__count span { color: var(--blue); }
.cs-proof__label { font-size: 14px; color: var(--text-muted); }

/* ── Logo-Leiste (Partnerschaften) — optional ── */
.cs-logos { background: #fff; padding: 48px 20px; text-align: center; }
.cs-logos__label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-sub); margin-bottom: 28px;
}
.cs-logos__row {
  display: flex; align-items: center; justify-content: center;
  gap: 44px; flex-wrap: wrap; max-width: 1000px; margin: 0 auto;
}
.cs-logos__row img { height: 34px; width: auto; opacity: 0.65; filter: grayscale(1); }

/* ── Case-Block: Portrait-Video links + Inhalt rechts ── */
.cs-cases { background: var(--navy); padding: 210px 20px 80px; }  /* großes Top-Padding = Platz für überlappendes Feature-Video */
.cs-cases__head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.cs-cases__title {
  font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em; line-height: 1.4;
}
.cs-cases__title span { color: rgba(255,255,255,0.85); font-weight: 700; }

.cs-case {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: stretch;
  padding: 40px 0;
}
.cs-case + .cs-case { border-top: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 900px) {
  .cs-case { grid-template-columns: 320px 1fr; gap: 64px; }
  .cs-case--flip { grid-template-columns: 1fr 320px; }
  .cs-case--flip .cs-vid,
  .cs-case--flip .cs-photo { order: 2; }
}

/* Portrait-Foto (statt Video) — gleicher Rahmen wie das Video */
.cs-photo {
  position: relative; width: 100%; max-width: 320px; margin: 0 auto;
  aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden;
  background: #0d1531; box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.cs-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Portrait-Video (9:16, Handy-Format, direkt eingebettet) */
.cs-vid {
  position: relative; width: 100%; max-width: 320px; margin: 0 auto;
  aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden;
  background: #0d1531; box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.cs-vid__el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-vid__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; transition: transform 0.4s ease;
}
.cs-vid:hover .cs-vid__poster { transform: scale(1.05); }
.cs-vid__overlay {
  position: absolute; inset: 0; z-index: 2; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,21,49,0.15); border: 0;
}
.cs-vid__overlay:hover { background: rgba(13,21,49,0.05); }
.cs-vid__play-btn {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35); transition: transform 0.2s;
}
.cs-vid__overlay:hover .cs-vid__play-btn { transform: scale(1.1); }
.cs-vid__play-btn svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--navy); }
.cs-vid.is-playing .cs-vid__overlay,
.cs-vid.is-playing .cs-vid__poster { display: none; }

/* Video-Thumbnail ohne Foto (dunkler Rahmen + Play) */
.cs-vid--placeholder { background: linear-gradient(160deg, #223163, #0d1531); }

/* Vollbild-Video-Lightbox (Hochformat) */
.cs-vlightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8, 12, 28, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center; justify-content: center;
}
.cs-vlightbox.is-open { display: flex; }
.cs-vlightbox__inner {
  position: relative;
  height: min(88vh, 860px);
  aspect-ratio: 602 / 800;   /* Default Hochformat, per JS überschrieben */
  max-width: 94vw;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  background: #000;
}
/* Querformat-Videos (z. B. ELB 16:9): Breite begrenzt statt Höhe */
.cs-vlightbox__inner.is-landscape {
  height: auto;
  width: min(94vw, 1120px);
  max-height: 88vh;
  max-width: 94vw;
}
.cs-vlightbox__inner iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0; display: block;
}
/* Dauer-Ladespinner (wenn noch kein Video hinterlegt) */
.cs-vlightbox__spinner {
  display: none;
  position: absolute; top: 50%; left: 50%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px; z-index: 2;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: cs-spin 0.9s linear infinite;
}
@keyframes cs-spin { to { transform: rotate(360deg); } }
.cs-vlightbox__close {
  position: fixed; top: 22px; right: 26px; z-index: 10000;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.cs-vlightbox__close:hover { background: rgba(255, 255, 255, 0.32); transform: scale(1.05); }

/* Inhalt rechts */
.cs-case__content { color: #fff; }
.cs-case__tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue);
  background: rgba(59,107,248,0.12); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.cs-case__headline {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; color: #fff;
  line-height: 1.22; letter-spacing: -0.01em; margin-bottom: 22px;
}
.cs-case__headline span { color: var(--blue); }
.cs-case__stats { display: flex; gap: 36px; flex-wrap: wrap; margin-bottom: 26px; }
.cs-case__stat-num { font-size: 34px; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 6px; }
.cs-case__stat-num--white { color: #fff; }
.cs-case__stat-label { font-size: 13px; color: rgba(255,255,255,0.55); font-weight: 500; }
.cs-case__quote {
  font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.82);
  border-left: 3px solid var(--blue); padding-left: 20px; margin-bottom: 24px;
}
.cs-case__author { display: flex; align-items: center; gap: 14px; }
.cs-case__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cs-case__author-name { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; }
.cs-case__author-role { font-size: 13px; color: var(--blue); font-weight: 600; }

/* Weiße Karte rechts — Logo/Kategorie · Headline · Zitat · Person (wie Referenz) */
.cs-case__card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 44px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
}
/* Top-Zeile: Logo + Trenner + Kategorie */
.cs-card__top { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.cs-card__logo { height: 32px; width: auto; display: block; }
.cs-card__logo--text { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.cs-card__divider { width: 1px; height: 24px; background: rgba(27,45,92,0.15); }
.cs-card__cat { font-size: 15px; font-weight: 600; color: var(--text-sub); }
.cs-card__cat--pill {
  background: rgba(59,107,248,0.1); color: var(--blue);
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
/* Headline (das Ergebnis) */
.cs-card__headline {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 800; color: var(--navy);
  line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 24px;
}
.cs-card__headline span { color: var(--blue); }
.cs-card__headline--sm { font-size: clamp(1.1rem, 1.8vw, 1.35rem); margin-bottom: 18px; }
/* Zitat */
.cs-card__quote {
  font-size: 18px; font-style: italic; color: var(--text-muted); line-height: 1.55;
  border-left: 4px solid var(--blue); padding-left: 20px; margin-bottom: 30px;
}
.cs-card__quote--lg { font-size: clamp(1.25rem, 2vw, 1.6rem); font-style: normal; font-weight: 600; color: var(--navy); }
/* Person unten */
.cs-card__person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.cs-card__person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.cs-card__avatar-ph {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--light); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.cs-card__person-name { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.cs-card__person-co { font-size: 14px; color: var(--text-sub); }
/* Kennzahl-Chips (Variante) */
.cs-card__stats { display: flex; gap: 28px; margin-bottom: 24px; }
.cs-card__stat-num { font-size: 30px; font-weight: 800; color: var(--blue); line-height: 1; }
.cs-card__stat-label { font-size: 12px; color: var(--text-sub); font-weight: 600; margin-top: 4px; }
/* Akzentleiste oben (Variante) */
.cs-case__card--accent { border-top: 4px solid var(--blue); }

/* Karten-Grid OHNE Video (weitere Testimonials, gleicher Karten-Stil) */
.cs-cards-grid {
  max-width: 1080px; margin: 24px auto 0;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 820px) { .cs-cards-grid { grid-template-columns: 1fr 1fr; } }
.cs-cards-grid .cs-case__card { height: 100%; }
/* Fließtext im Karten-Body (längeres Testimonial) */
.cs-card__text {
  font-size: 15.5px; color: var(--text-muted); line-height: 1.62; margin-bottom: 26px;
}

/* ── Landscape-Feature-Video (Pelzer) nutzt die ntx-sa__ Klassen aus embed.css ── */

/* ── Abschluss-CTA ── */
.cs-final {
  background: var(--navy); padding: 88px 20px 100px; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cs-final__inner { max-width: 700px; margin: 0 auto; }
.cs-final__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff;
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 18px;
}
.cs-final__title span { color: var(--blue); }
.cs-final__sub { font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 32px; }
