/* Case studies (Bitamino, BeatMe, EFCS, STH) – shared layout, classes prefixed .cs-
   Desktop values measured on the Wix original at 1440px, mobile values at 390px. */

/* Intro: title, "Fallstudie", tags, body text */
.cs-intro { padding: calc(var(--header-h) + 92.2px) 0 57.6px; }
.cs-intro--tall { min-height: calc(var(--header-h) + 787.8px); }
.cs-inner { max-width: 1440px; margin: 0 auto; padding: 0 72px; }
.cs-intro h1 { font-size: 76.8684px; line-height: 76.8684px; letter-spacing: -2.306px; color: var(--black); }
.cs-kicker { margin: -8.2px 0 0 2.6px; font-family: var(--font-head); font-size: 28px; line-height: 33.6px; letter-spacing: -.84px; color: var(--grey); text-transform: uppercase; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 14.6px; margin: 17.7px 0 0; padding: 0; list-style: none; }
.cs-tags--efcs { gap: 8.5px; }
.cs-tags li { display: inline-flex; align-items: center; justify-content: center; width: var(--w); height: 36.5px; padding: 0; white-space: nowrap; border-radius: 12.1725px; background: var(--blue); color: var(--white); font-size: 16px; line-height: normal; }
.cs-text { --lh: 23px; max-width: 973.5px; margin-top: 45.3px; font-size: 19.4759px; line-height: var(--lh); color: var(--black); }
.cs-text--notags { margin-top: 17.7px; }
.cs-text p + p { margin-top: 0; }
.cs-text .gap1 { margin-top: var(--lh); }
.cs-text .gap2 { margin-top: calc(2 * var(--lh)); }
.cs-text .gap3 { margin-top: calc(3 * var(--lh)); }
.cs-text--bold { font-weight: 700; }
.cs-text strong { font-weight: 700; }

/* Gallery slider (Wix Pro Gallery look) */
.cs-gallery { padding: 57.6px 0 145.7px; }
.cs-gallery-wrap { position: relative; margin: 0 max(16px, calc((100% - 1324.8px) / 2)); }
.cs-track { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.cs-track::-webkit-scrollbar { display: none; }
.cs-item { position: relative; flex: 0 0 344px; height: 611px; border-radius: 16px; overflow: hidden; scroll-snap-align: center; background: #e6e6e6; }
.cs-item img, .cs-item video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-info { position: absolute; inset: 0; padding: 30px; background: rgba(0, 0, 0, .5); color: var(--white); transition: opacity .4s ease; pointer-events: none; }
.cs-item:hover .cs-info { opacity: 0; }
.cs-info h3 { font-family: var(--font-head); font-weight: 400; font-size: 18px; line-height: 22px; margin: 0 0 2px; }
.cs-info p { font-family: var(--font-body); font-size: 14px; line-height: 17px; }
.cs-play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(0, 0, 0, .5); fill: var(--white); }
.cs-next, .cs-prev { position: absolute; top: 305.5px; width: 50px; height: 50px; margin-top: -25px; padding: 0; border: 0; border-radius: 32%; background: var(--blue); opacity: .9; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity .2s, background .2s; z-index: 2; }
.cs-next { right: 22.8px; }
.cs-prev { left: 23.4px; }
.cs-next:hover, .cs-prev:hover { background: var(--blue-dark); opacity: 1; }
.cs-next svg, .cs-prev svg { width: 12.4px; height: 20.8px; }
.cs-prev svg { transform: scaleX(-1); }
.cs-next[hidden], .cs-prev[hidden] { display: none; }

/* Mobile (Wix mobile layout, measured at 390px) */
@media (max-width: 900px) {
  .cs-intro, .cs-intro--tall { min-height: 0; padding: calc(var(--header-h) + 48.3px) 0 15.6px; }
  .cs-inner { padding: 0 24.7px 0 19.5px; }
  .cs-intro h1 { font-size: 46px; line-height: 46px; letter-spacing: -1.38px; }
  .cs-kicker { margin: -2.2px 0 0 .7px; font-size: 26.0696px; line-height: 31.2836px; letter-spacing: -.782px; }
  .cs-intro--beatme h1 { margin-top: -5.8px; }
  .cs-intro--beatme .cs-kicker { margin-top: 0; }
  .cs-intro--beatme .cs-text { margin-top: 31.8px; }
  .cs-tags { gap: 6.25px; margin: 4.8px 0 0 .7px; }
  .cs-tags--efcs { gap: 2.3px; }
  .cs-tags li { width: var(--mw); height: 22.8px; border-radius: 5.214px; font-size: 12.5133px; }
  .cs-text { --lh: 15px; max-width: none; margin-top: 31.3px; font-size: 12.5133px; }
  .cs-text--notags { margin-top: 4.7px; }

  .cs-gallery { padding: 21.6px 0 99.5px; }
  .cs-gallery-wrap { max-width: none; margin: 0 15.6px; }
  .cs-track { gap: 30px; }
  .cs-item { flex-basis: 224px; height: 399px; }
  .cs-info { padding: 30px; background: rgba(0, 0, 0, .54); }
  .cs-item:hover .cs-info { opacity: 1; }
  .cs-info h3 { font-family: "Madefor", var(--font-body); font-weight: 700; text-transform: none; font-size: 16px; line-height: 20px; }
  .cs-info p { font-family: "Madefor", var(--font-body); font-size: 12px; line-height: 15px; }
  .cs-next, .cs-prev { top: 199.5px; width: 40px; height: 40px; margin-top: -20px; }
  .cs-next { right: 22.8px; }
  .cs-prev { left: 23.4px; }
  .cs-next svg, .cs-prev svg { width: 9.9px; height: 16.7px; }
}
