/* Case pages — hero + intro (overrides Webflow flex collapse & contain) */



body.machbar-case #section_header.section-header {

  position: relative;

  display: block !important;

  width: 100%;

  max-width: 100%;

  height: 80vh;

  min-height: 320px;

  margin-left: 0;

  margin-right: 0;

  padding: 0 !important;

  overflow: hidden;

  isolation: isolate;

  flex: none !important;

  flex-direction: unset !important;

  align-items: unset !important;

  justify-content: unset !important;

  background-position: 50% 50%;

  background-size: cover;

  background-repeat: no-repeat;

}



/* Theme overrides that shrink or offset the hero */

body.machbar-case #section_header.section-header.micromata,

body.machbar-case #section_header.section-header.nordschritt,

body.machbar-case #section_header.section-header.sonor,

body.machbar-case #section_header.section-header.zwocar,

body.machbar-case #section_header.section-header.plenty,

body.machbar-case #section_header.section-header.diemausapp,

body.machbar-case #section_header.section-header.klaerschilf {

  width: 100% !important;

  max-width: 100% !important;

  margin-left: 0 !important;

  margin-right: 0 !important;

  margin-bottom: 40px;

}



body.machbar-case #section_header.section-header.klaerschilf {

  width: 100% !important;

  max-width: 100% !important;

}



body.machbar-case #section_header .header_video_embed .video_with_posterimage {

  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;

  height: 100% !important;

  display: block !important;

  overflow: hidden !important;

  clip-path: inset(0 1px 1px 1px);

  z-index: 2 !important;

  opacity: 1 !important;

}



body.machbar-case #section_header .header_video_embed {

  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;

  height: 100% !important;

  min-width: 100% !important;

  min-height: 100% !important;

  max-width: none !important;

  max-height: none !important;

  margin: 0 !important;

  padding: 0 !important;

  display: block !important;

  overflow: hidden !important;

  object-fit: unset !important;

  flex: none !important;

  /* Webflow sets ifgroup primary here — blocks hero poster + video underneath */
  background: transparent !important;

  background-color: transparent !important;

}



/* Hero stack (same wrapper): poster underneath, video on top while playing */

body.machbar-case #section_header .header_video_embed .hero-poster-image {

  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;

  height: 100% !important;

  margin: 0 !important;

  object-fit: cover !important;

  object-position: center center !important;

  z-index: 1 !important;

  display: block;

  opacity: 1 !important;

  transition: none !important;

}



body.machbar-case #section_header .video_with_posterimage:has(.machbar-bg-video.is-playing.is-ready) .hero-poster-image,
body.machbar-case #section_header .video_with_posterimage:has(.case-video.is-playing.is-ready) .hero-poster-image {

  opacity: 0 !important;

  visibility: hidden;

  pointer-events: none;

}



body.machbar-case #section_header .header_video_embed .case-video,

body.machbar-case #section_header .header_video_embed .machbar-bg-video,

body.machbar-case #section_header .header_video_embed video {

  position: absolute !important;

  inset: 0 !important;

  top: 0 !important;

  left: 0 !important;

  transform: none !important;

  width: 100% !important;

  height: 100% !important;

  min-width: 100% !important;

  min-height: 100% !important;

  max-width: none !important;

  max-height: none !important;

  margin: 0 !important;

  object-fit: cover !important;

  object-position: center center !important;

  clip-path: inset(0 1px 1px 1px);

  z-index: 2 !important;

  opacity: 0 !important;

  transition: none !important;

}



body.machbar-case #section_header .header_video_embed .case-video.is-playing.is-ready,

body.machbar-case #section_header .header_video_embed .machbar-bg-video.is-playing.is-ready,

body.machbar-case #section_header .header_video_embed video.is-playing.is-ready {

  opacity: 1 !important;

  z-index: 3 !important;

}



/* Intro — Webflow two-column flex in .container.intro */

body.machbar-case .section-intro {

  position: relative;

  z-index: 2;

  width: 100%;

}



body.machbar-case .section-intro .container.intro {

  display: flex;

  flex-direction: row;

  align-items: flex-start;

  justify-content: space-between;

  width: 100%;

}



body.machbar-case .section-intro .project-block {

  width: 50%;

  flex: 0 0 50%;

  max-width: 50%;

  padding-right: 10px;

  box-sizing: border-box;

}



body.machbar-case .section-intro .text-block {

  width: 50%;

  flex: 0 0 50%;

  max-width: 50%;

  padding-left: 20px;

  box-sizing: border-box;

}



body.machbar-case .section-intro .project-block .headline {

  -webkit-text-stroke-width: 0;

  -webkit-text-stroke-color: transparent;

}



@media screen and (max-width: 991px) {

  body.machbar-case #section_header.section-header {

    height: 60vh;

    min-height: 280px;

  }



  body.machbar-case .section-intro .container.intro {

    flex-direction: column;

  }



  body.machbar-case .section-intro .project-block,

  body.machbar-case .section-intro .text-block {

    width: 100%;

    flex: 0 0 100%;

    max-width: 100%;

    padding-left: 0;

    padding-right: 0;

  }



  body.machbar-case .section-intro .project-block {

    margin-bottom: 40px;

  }

}



@media screen and (max-width: 767px) {

  body.machbar-case #section_header.section-header {

    height: 500px;

  }

}



@media screen and (max-width: 479px) {

  body.machbar-case #section_header.section-header {

    height: 320px;

    min-height: 240px;

  }

}



@media (prefers-reduced-motion: reduce) {

  body.machbar-case #section_header .header_video_embed .case-video.is-playing,

  body.machbar-case #section_header .header_video_embed video.is-playing {

    opacity: 1 !important;

    transition: none;

  }

}



/* Case body — Webflow grid: section padding + .container max-width (no extra inner pad) */

body.machbar-case .section-intro .container.intro,

body.machbar-case .machbar-case-body .container.w-container:not(.widescreen) {

  max-width: var(--machbar-content-max);

}

/* 2/3-column rows keep Webflow .container max-width (1600 / 1440@1920+).
   Section padding stays on .section-2-images / .section-3-images; do not
   uncap the inner grid — that stretched columns edge-to-edge on wide viewports. */

/* Full-width video/image stripe (Webflow: .container.widescreen) */

body.machbar-case .machbar-case-body .container.widescreen.w-container {

  max-width: none;

  width: 100%;

  padding-left: 0;

  padding-right: 0;

}

/* Widescreen videos sit outside section-1-video — need height before poster/video metadata loads */

body.machbar-case .machbar-case-body .container.widescreen .video_w_pi_div:not([style*='aspect-ratio']) {

  aspect-ratio: 16 / 9;

  min-height: 12rem;

}



/* Three-column rows — same horizontal padding as two-column sections */

body.machbar-case .section-3-images {

  padding-left: 60px;

  padding-right: 60px;

}



body.machbar-case .section-3-images.micromata {

  padding-left: 60px;

  padding-right: 60px;

}



/* Body video stack: poster + video share one wrapper (same stacking context) */

body.machbar-case .video_w_pi_div {

  position: relative;

  width: 100%;

  min-height: 0;

}

/* Aspect ratio comes from CMS (JW config or probed video dimensions), not layout type */

body.machbar-case .section-1-video .video_w_pi_div:not([style*='aspect-ratio']) {

  min-height: 12rem;

}

body.machbar-case .section-2-images .video_w_pi_div,
body.machbar-case .section-3-images .video_w_pi_div,
body.machbar-case .machbar-grid-column .video_w_pi_div {

  min-height: 0;

}



body.machbar-case .video_w_pi_div .video_with_posterimage {

  position: absolute;

  inset: 0;

  z-index: 2 !important;

  margin: 0;

  padding: 0;

  display: block;

  overflow: hidden;

  clip-path: inset(0 1px 1px 1px);

  opacity: 1 !important;

}



body.machbar-case .video_w_pi_div .video_with_posterimage .posterimage_of_video {

  position: absolute;

  inset: 0;

  z-index: 1 !important;

  width: 100%;

  height: 100%;

  margin: 0;

  object-fit: cover;

  object-position: center center;

  display: block;

  opacity: 1 !important;

  transition: none !important;

}



body.machbar-case .video_w_pi_div .video_with_posterimage:has(.machbar-bg-video.is-playing.is-ready) .posterimage_of_video,
body.machbar-case .video_w_pi_div .video_with_posterimage:has(.case-video.is-playing.is-ready) .posterimage_of_video {

  opacity: 0 !important;

  visibility: hidden;

  pointer-events: none;

}



body.machbar-case .video_w_pi_div .video_with_posterimage .case-video,

body.machbar-case .video_w_pi_div .video_with_posterimage .machbar-bg-video,

body.machbar-case .video_w_pi_div .video_with_posterimage video {

  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  margin: 0;

  object-fit: cover;

  object-position: center center;

  clip-path: inset(0 1px 1px 1px);

  z-index: 2 !important;

  opacity: 0 !important;

  transition: none !important;

}



body.machbar-case .video_w_pi_div .video_with_posterimage .case-video.is-playing.is-ready,

body.machbar-case .video_w_pi_div .video_with_posterimage .machbar-bg-video.is-playing.is-ready,

body.machbar-case .video_w_pi_div .video_with_posterimage video.is-playing.is-ready {

  opacity: 1 !important;

  z-index: 3 !important;

}

/* Portrait grid videos (Nordschritt Logo Animation, …) — cover crops the top */

body.machbar-case .video_w_pi_div[data-video-orientation='portrait'] .video_with_posterimage .posterimage_of_video,

body.machbar-case .video_w_pi_div[data-video-orientation='portrait'] .video_with_posterimage .case-video,

body.machbar-case .video_w_pi_div[data-video-orientation='portrait'] .video_with_posterimage .machbar-bg-video,

body.machbar-case .video_w_pi_div[data-video-orientation='portrait'] .video_with_posterimage video {

  object-fit: contain;

  object-position: top center;

}

/* Grid column stills — full card height, no crop */

body.machbar-case .section-2-images .machbar-grid-column > img,

body.machbar-case .section-3-images .machbar-grid-column > img {

  display: block;

  width: 100%;

  height: auto;

  max-height: none;

  object-fit: unset;

  vertical-align: top;

}



/* Scroll-scrub parallax image stack — layout from CMS CSS variables */

body.machbar-case .section-scroll-scrub {
  position: relative;
  overflow: visible;
  padding-left: 100px;
  padding-right: 100px;
}

body.machbar-case .machbar-scroll-scrub {
  position: relative;
  overflow: visible;
  max-height: var(--ss-max-height, 1200px);
  height: var(--ss-height-mobile, 85vw);
  min-height: var(--ss-min-height-mobile, 280px);
}

body.machbar-case .machbar-scroll-scrub__layer {
  position: relative;
  width: 100%;
  max-width: var(--ss-frame-max, 1440px);
  margin-left: auto;
  margin-right: auto;
  will-change: transform;
  pointer-events: none;
  overflow: visible;
}

body.machbar-case .machbar-scroll-scrub__frame {
  position: relative;
  width: 100%;
  max-width: var(--ss-frame-max, 1440px);
  margin-left: auto;
  margin-right: auto;
}

body.machbar-case .machbar-scroll-scrub__img {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 0;
  padding-top: var(--ss-inset-top, 0%);
  padding-left: var(--ss-inset-left, 0%);
  padding-right: var(--ss-inset-right, 0%);
  padding-bottom: var(--ss-inset-bottom, 0%);
  opacity: 1 !important;
  overflow: visible;
}

@media screen and (max-width: 991px) {
  body.machbar-case .section-scroll-scrub {
    padding-left: 40px;
    padding-right: 40px;
  }

  body.machbar-case .machbar-scroll-scrub__img {
    padding-top: var(--ss-inset-top-t, var(--ss-inset-top, 0%));
    padding-left: var(--ss-inset-left-t, var(--ss-inset-left, 0%));
    padding-right: var(--ss-inset-right-t, var(--ss-inset-right, 0%));
    padding-bottom: var(--ss-inset-bottom-t, var(--ss-inset-bottom, 0%));
  }
}

@media screen and (max-width: 767px) {
  body.machbar-case .section-scroll-scrub {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (min-width: 768px) {
  body.machbar-case .machbar-scroll-scrub {
    height: var(--ss-height-tablet, 75vw);
    min-height: unset;
  }
}

@media screen and (min-width: 992px) {
  body.machbar-case .machbar-scroll-scrub {
    height: var(--ss-height, 70dvw);
  }
}

/* Legacy Webflow selectors — kept for cached HTML; new renders use .machbar-scroll-scrub above */

body.machbar-case .section-sonorlottie {
  position: relative;
  overflow: visible;
}

body.machbar-case .section-sonorlottie.sonor:not(.machbar-scroll-scrub) {
  height: 70dvw;
  max-height: 1200px;
}

body.machbar-case .section-sonorlottie [class*='sonor_lottie'] {
  will-change: transform;
  pointer-events: none;
  overflow: visible;
}

body.machbar-case .section-sonorlottie .sonor_lottie_1 {
  z-index: 1;
}

body.machbar-case .section-sonorlottie .sonor_lottie_2 {
  z-index: 2;
}

body.machbar-case .section-sonorlottie .sonor_lottie_3 {
  z-index: 3;
}

body.machbar-case .section-sonorlottie .sonor_lottie_3-copy {
  z-index: 4;
}

body.machbar-case .section-sonorlottie img[class*='bild-sonor-lottie'] {
  opacity: 1 !important;
  overflow: visible;
}

@media screen and (max-width: 991px) {
  body.machbar-case .section-sonorlottie.sonor:not(.machbar-scroll-scrub) {
    height: 75vw;
  }
}

@media screen and (max-width: 767px) {
  body.machbar-case .section-sonorlottie.sonor:not(.machbar-scroll-scrub) {
    height: 85vw;
    min-height: 280px;
  }
}

/* Showcase videos (click-to-play, poster + play button) */

body.machbar-case .machbar-showcase-video {
  position: relative;
}

body.machbar-case .machbar-showcase-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

body.machbar-case .machbar-showcase-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 25%);
  cursor: pointer;
  transition: background 0.2s ease;
}

body.machbar-case .machbar-showcase-play:hover,
body.machbar-case .machbar-showcase-play:focus-visible {
  background: rgb(0 0 0 / 35%);
}

body.machbar-case .machbar-showcase-play__icon {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 8px 28px rgb(0 0 0 / 28%);
  position: relative;
}

body.machbar-case .machbar-showcase-play__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #111;
}

body.machbar-case .machbar-showcase-video video[data-playback='showcase'] {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

body.machbar-case .machbar-showcase-video video[data-playback='showcase'].is-playing.is-ready {
  z-index: 4;
}


/* Spacers — Webflow heights/colors only (no auto-injected dividers in Astro) */

body.machbar-case .section-divider-big,

body.machbar-case .section-divider-small {

  display: block;

  width: 100%;

  margin: 0;

  padding: 0;

  border: none;

  box-sizing: border-box;

  flex-shrink: 0;

}

body.machbar-case .section-divider-big {

  height: var(--machbar-divider-big-h);

}

body.machbar-case .section-divider-small {

  height: var(--machbar-divider-small-h);

}



/* section-next-projects — Webflow padding 120px 100px; container max 1440px */

body.machbar-case .section-next-projects .container.centered.machbar-content-column {

  max-width: var(--machbar-content-max);

  text-align: center;

  color: #fff;

}

body.machbar-case .section-next-projects .link-block {
  color: inherit;
  text-decoration: none;
}

body.machbar-case .section-next-projects .linkbox .headline-2.link {
  color: inherit;
}



body.machbar-case .section-next-projects .headline.white.teaser {
  text-align: left;
  white-space: nowrap;
  max-width: none;
}

@media screen and (max-width: 767px) {
  body.machbar-case .section-next-projects .headline.white.teaser {
    white-space: normal;
  }
}

/* Teaser thumbnails — darken lower half for white copy (Webflow .overlay parity) */
body.machbar-case .section-next-projects .caseteaser .machbar-caseteaser-media {
  position: relative;
  z-index: 0;
}

body.machbar-case .section-next-projects .caseteaser .overlay {
  z-index: 1;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent 50%);
  mix-blend-mode: multiply;
  pointer-events: none;
}



body.machbar-case .section-next-projects .machbar-case-next-row.w-row {

  margin-left: 0;

  margin-right: 0;

  text-align: left;

}



/* Case quotes — same typography as zwocar; half width on large screens */

body.machbar-case .section-quote .quote-block {

  max-width: 100%;

  padding-right: 0;

}



@media screen and (min-width: 992px) {

  body.machbar-case .section-quote .quote-block {

    max-width: 50%;

    padding-right: 10px;

  }

}



body.machbar-case .section-quote .quote-author,

body.machbar-case .section-quote .quote-author strong,

body.machbar-case .section-quote .quote-author .bold-text-4 {

  font-family: Inter-Lokal, sans-serif;

  font-size: 28px;

  font-style: normal;

  font-weight: 600;

  line-height: 34px;

}



@media screen and (max-width: 991px) {

  body.machbar-case .section-quote .quote-author,

  body.machbar-case .section-quote .quote-author strong,

  body.machbar-case .section-quote .quote-author .bold-text-4 {

    font-size: 24px;

    line-height: 30px;

  }

}



body.machbar-case .section-next-projects .machbar-case-next-row .w-col {

  float: left;

  width: 50%;

  box-sizing: border-box;

}



body.machbar-case .section-next-projects .machbar-case-next-row .column-1 {

  padding-right: 20px;

}



body.machbar-case .section-next-projects .machbar-case-next-row .column-2 {

  padding-left: 20px;

}



/* Thumbnail hover zoom: machbar-caseteaser.css */



@media screen and (max-width: 991px) {

  body.machbar-case .section-next-projects .machbar-case-next-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  body.machbar-case .section-next-projects .machbar-case-next-row.w-row::before,
  body.machbar-case .section-next-projects .machbar-case-next-row.w-row::after {
    content: none;
    display: none;
  }

  body.machbar-case .section-next-projects .machbar-case-next-row .w-col,
  body.machbar-case .section-next-projects .machbar-case-next-row .w-col-6 {

    float: none;

    width: 100%;

    max-width: 100%;

    padding-left: 0;

    padding-right: 0;

  }



  body.machbar-case .section-next-projects .machbar-case-next-row .column-1 {

    padding-right: 0;

    padding-bottom: 0;

  }

  body.machbar-case .section-next-projects .machbar-case-next-row .column-2 {
    padding-left: 0;
  }

}

/* ── Mobile case meta: title as small label; Client + Services below body ── */

body.machbar-case .machbar-case-title--mobile {
  display: none;
  margin: 0 0 0.35em;
}

body.machbar-case .machbar-case-meta-footer {
  display: none;
}

@media screen and (min-width: 992px) {
  body.machbar-case .machbar-case-title--mobile {
    display: none !important;
  }

  body.machbar-case .machbar-case-meta-footer {
    display: none !important;
  }
}

@media screen and (max-width: 991px) {
  body.machbar-case .machbar-case-title--desktop,
  body.machbar-case .machbar-case-meta--desktop {
    display: none !important;
  }

  /* Intro left column only held title + meta — hide empty shell on mobile */
  body.machbar-case .section-intro .project-block {
    display: none;
    margin-bottom: 0;
  }

  body.machbar-case .machbar-case-title--mobile {
    display: block;
  }

  /*
   * Client/Services sit on the same content grid as case sections.
   * Previous section already has bottom padding — collapse it to one
   * small-divider step so the gap above “Kunde” matches the raster.
   */
  body.machbar-case .machbar-case-body:has(+ .machbar-case-meta-footer) > :last-child {
    padding-bottom: var(--machbar-divider-small-h) !important;
  }

  body.machbar-case .machbar-case-meta-footer {
    display: block;
    width: 100%;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    padding: 0 var(--machbar-content-pad-x) var(--machbar-divider-big-h);
  }

  body.machbar-case .machbar-case-meta-footer__inner {
    max-width: var(--machbar-content-max);
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  body.machbar-case .machbar-case-meta-footer .kunde {
    margin-bottom: var(--machbar-divider-small-h);
  }

  body.machbar-case .machbar-case-meta-footer .leistungen {
    margin-bottom: 0;
  }

  body.machbar-case .machbar-case-meta-footer .leistungen .projectbox---text,
  body.machbar-case .machbar-case-meta-footer .leistungen a.projectbox---text {
    display: block;
  }
}


