/* ===== SUPER FULLWIDTH FIX (Block Themes / Twenty Twenty-Five / WooCommerce templates) =====
   Ziel: Der Slider soll IMMER bis an den Browser-Rand gehen – unabhängig von "Global Padding",
   constrained layouts oder Content-Wrappern.
*/
body .wp-site-blocks .msahero-tt5-wrapper.alignfull,
body .wp-site-blocks .wp-block-post-content .msahero-tt5-wrapper.alignfull,
body .wp-site-blocks .wp-block-template-part .msahero-tt5-wrapper.alignfull,
body .wp-site-blocks .wp-block-shortcode .msahero-tt5-wrapper.alignfull,
body .entry-content .msahero-tt5-wrapper.alignfull{
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;

  /* Breakout: echte Viewport-Breite */
  width: 100vw !important;
  max-width: 100vw !important;

  /* Center + translate ist in der Praxis robuster als margin-calc (insb. mit Root Padding) */
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow-x: clip !important;
  overflow-y: visible !important;
}

/* Fallback für Browser ohne overflow-x: clip */
@supports not (overflow-x: clip){
  body .wp-site-blocks .msahero-tt5-wrapper.alignfull,
  body .wp-site-blocks .wp-block-post-content .msahero-tt5-wrapper.alignfull,
  body .wp-site-blocks .wp-block-template-part .msahero-tt5-wrapper.alignfull,
  body .wp-site-blocks .wp-block-shortcode .msahero-tt5-wrapper.alignfull,
  body .entry-content .msahero-tt5-wrapper.alignfull{
    overflow-x: hidden !important;
  }
}

/* iOS/Safari: dynamische Viewport-Units (verhindert "safe area" / UI-Bars Effekte) */
@supports (width: 100dvw){
  body .wp-site-blocks .msahero-tt5-wrapper.alignfull,
  body .wp-site-blocks .wp-block-post-content .msahero-tt5-wrapper.alignfull,
  body .wp-site-blocks .wp-block-template-part .msahero-tt5-wrapper.alignfull,
  body .wp-site-blocks .wp-block-shortcode .msahero-tt5-wrapper.alignfull,
  body .entry-content .msahero-tt5-wrapper.alignfull{
    width: 100dvw !important;
    max-width: 100dvw !important;
  }
}

.msahero-breakout{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* ===== Slider ===== */
.msahero-slider{
  position: relative;
  width: 100%;
  overflow: hidden;
  --msahero-transition-duration: 950ms;
  --msahero-transition-ease: cubic-bezier(.22,1,.36,1);
}

.msahero-slides{
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 420px;
}

.msahero-slide{
  position: absolute;
  inset: 0;

  /* Background (v1.5 – responsive via CSS vars)
     Standard war "cover" (= Bild wird beschnitten).
     Wunsch: komplettes Bild sichtbar, aber ohne "schwarze Ränder".
     Lösung:
       - Blur/Cover-Background als Füllfläche (Pseudo-Element)
       - Darüber ein echtes <img> mit object-fit: contain (komplett sichtbar)
     Video-Slides bleiben unverändert (Video nutzt object-fit: cover).
  */
  background: none;

  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity var(--msahero-transition-duration, 950ms) ease,
    transform var(--msahero-transition-duration, 950ms) var(--msahero-transition-ease, ease);

  /* Unsichtbare Slides dürfen keine Klicks abfangen */
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}


/* ===== Bildmodus: Full-Bleed (volle Breite/Fläche, ggf. Zuschnitt) ===== */
.msahero-slider.msahero-mode-immersive .msahero-slide{
  background-image: var(--msahero-bg-desktop);
  background-size: cover;
  background-position: var(--msahero-bg-pos-desktop, center);
  background-repeat: no-repeat;
}
.msahero-slider.msahero-mode-immersive .msahero-slide.has-video{
  background-image: none;
}
/* In Full-Bleed Modus wird kein zusätzliches <img> Layer benötigt */
.msahero-slider.msahero-mode-immersive .msahero-img-fit{ display:none !important; }


/* ===== Adaptive Auto (mischt Full-Bleed & Logo-Safe je nach Bildformat) ===== */
.msahero-slider.msahero-mode-adaptive .msahero-slide{
  /* nutze die gleiche BG-Quelle wie immersive */
  background-image: var(--msahero-bg-desktop);
  background-size: cover;
  background-position: var(--msahero-bg-pos-mobile, center);
  background-repeat: no-repeat;
}
.msahero-slider.msahero-mode-adaptive .msahero-slide.has-video{
  background-image: none;
}
/* Smart-Fill Layer (aktiv, wenn JS auf contain schaltet) */
.msahero-slider.msahero-mode-adaptive .msahero-slide:not(.has-video)::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--msahero-bg-desktop);
  background-size: cover;
  background-position: var(--msahero-bg-pos-desktop, center);
  filter: blur(18px);
  transform: scale(1.08);
  z-index: 0;
  opacity: 0; /* wird bei contain sichtbar */
  transition: opacity 220ms ease;
}
.msahero-slider.msahero-mode-adaptive .msahero-slide.is-contain::before{
  opacity: 1;
}
.msahero-slider.msahero-mode-adaptive .msahero-img-fit{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: var(--msahero-focal-pos-desktop, 50% 50%);
  z-index: 0;
  backface-visibility: hidden;
}
.msahero-slider.msahero-mode-adaptive .msahero-img-fit.is-cover{
  object-fit: cover;
}
.msahero-slider.msahero-mode-adaptive .msahero-img-fit.is-contain{
  object-fit: contain;
}

/* ===== Vollbild sichtbar (ohne schwarze Balken) – nur für Bild-Slides ===== */
.msahero-slider.msahero-mode-logo_safe .msahero-slide:not(.has-video)::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--msahero-bg-desktop);
  background-size: cover;
  background-position: var(--msahero-bg-pos-desktop, center);
  filter: blur(18px);
  transform: scale(1.08);
  z-index: 0;
}

.msahero-slider.msahero-mode-logo_safe .msahero-img-fit{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 0;
  /* leichte Glättung gegen "Flicker" beim Fade */
  backface-visibility: hidden;
}

.msahero-slide.is-active{
  opacity: 1;
  transform: scale(1);

  /* Nur der aktive Slide ist klickbar */
  pointer-events: auto;
  z-index: 2;
}

/* ===== Video-Kompatibilität =====
   Einige Browser (v.a. Safari/iOS) haben Rendering-Probleme mit <video> in transformierten Containern.
   Für Slides mit Video deaktivieren wir daher das Zoom-Transform, damit Videos zuverlässig sichtbar/abspielbar sind.
*/
.msahero-slide.has-video{
  transform: none;
  transition: opacity var(--msahero-transition-duration, 950ms) ease;
  background-color: #000;
}

.msahero-slide.has-video.is-active{
  transform: none;
}

/* ===== Video Background (optional pro Slide) ===== */
.msahero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Video soll keine Klicks abfangen (Buttons/Links darüber bleiben nutzbar) */
  pointer-events: none;
}

/* Fallback-Playbutton, falls Autoplay vom Browser geblockt wird */
.msahero-video-playgate{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.85);
  background: rgba(0,0,0,.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  z-index: 9;
  cursor: pointer;
}

.msahero-video-playgate:hover{
  background: rgba(0,0,0,.50);
}

/* ===== Overlay & Content ===== */
.msahero-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;

  /* über Video / Background */
  z-index: 1;
  /* Overlay soll Video-Controls nicht blockieren */
  pointer-events: none;

  /* Default Overlay – wird vom JS nur gesetzt, wenn kein per-Slide Style vorhanden ist */
  background: linear-gradient(
    to right,
    var(--msahero-overlay-color-1, rgba(0,0,0,.65)),
    var(--msahero-overlay-color-2, rgba(0,0,0,0))
  );
}

/* Overlay deaktiviert (pro Slide) */
.msahero-overlay-disabled{
  background: none !important;
}

/* ===== Content ===== */
.msahero-content{
  max-width: var(--msahero-text-width, 520px);
  padding: 64px;

  /* über Overlay */
  position: relative;
  z-index: 2;

  /* Content bleibt klickbar, obwohl Overlay pointer-events: none hat */
  pointer-events: auto;

  /* Textfarbe */
  color: var(--msahero-text-color, #ffffff);
}

.msahero-align-left{ margin-right:auto; }
.msahero-align-center{ margin:0 auto; text-align:center; }
.msahero-align-right{ margin-left:auto; text-align:right; }

/* ===== Typography (v1.5 – per Slide via CSS vars) ===== */
.msahero-subtitle{
  font-size: var(--msahero-subtitle-size, .8rem);
  letter-spacing: .22em;
  opacity: .85;
  margin-bottom: 16px;

  /* Subtitle als Akzent */
  color: var(--msahero-accent-color, #E7791A);
}

.msahero-headline{
  font-size: var(--msahero-headline-size, 2.6rem);
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 18px;
}

.msahero-text{
  font-size: var(--msahero-text-size, .95rem);
  line-height: 1.55;
  opacity: .9;
  margin-bottom: 24px;
}

/* ===== Text Animation (v1.5) ===== */
.msahero-content.msahero-anim-fadeup{ --msahero-anim-x: 0px; --msahero-anim-y: 14px; --msahero-anim-scale: 1; }
.msahero-content.msahero-anim-fade{ --msahero-anim-x: 0px; --msahero-anim-y: 0px; --msahero-anim-scale: 1; }
.msahero-content.msahero-anim-slideleft{ --msahero-anim-x: -18px; --msahero-anim-y: 0px; --msahero-anim-scale: 1; }
.msahero-content.msahero-anim-slideright{ --msahero-anim-x: 18px; --msahero-anim-y: 0px; --msahero-anim-scale: 1; }
.msahero-content.msahero-anim-zoom{ --msahero-anim-x: 0px; --msahero-anim-y: 0px; --msahero-anim-scale: .98; }

/* Initial */
.msahero-content:not(.msahero-anim-off) .msahero-subtitle,
.msahero-content:not(.msahero-anim-off) .msahero-headline,
.msahero-content:not(.msahero-anim-off) .msahero-text,
.msahero-content:not(.msahero-anim-off) .msahero-btn{
  opacity: 0;
  transform: translate(var(--msahero-anim-x, 0px), var(--msahero-anim-y, 14px)) scale(var(--msahero-anim-scale, 1));
  will-change: transform, opacity;
}

/* Visible on active slide */
.msahero-slide.is-active .msahero-content:not(.msahero-anim-off) .msahero-subtitle,
.msahero-slide.is-active .msahero-content:not(.msahero-anim-off) .msahero-headline,
.msahero-slide.is-active .msahero-content:not(.msahero-anim-off) .msahero-text,
.msahero-slide.is-active .msahero-content:not(.msahero-anim-off) .msahero-btn{
  opacity: 1;
  transform: translate(0px, 0px) scale(1);
  transition-property: opacity, transform;
  transition-duration: var(--msahero-anim-duration, 600ms);
  transition-timing-function: ease;
}

/* Element-specific delays */
.msahero-slide.is-active .msahero-content:not(.msahero-anim-off) .msahero-subtitle{ transition-delay: var(--msahero-delay-subtitle, 100ms); }
.msahero-slide.is-active .msahero-content:not(.msahero-anim-off) .msahero-headline{ transition-delay: var(--msahero-delay-headline, 200ms); }
.msahero-slide.is-active .msahero-content:not(.msahero-anim-off) .msahero-text{ transition-delay: var(--msahero-delay-text, 350ms); }
.msahero-slide.is-active .msahero-content:not(.msahero-anim-off) .msahero-btn{ transition-delay: var(--msahero-delay-button, 500ms); }

/* Animation aus */
.msahero-content.msahero-anim-off .msahero-subtitle,
.msahero-content.msahero-anim-off .msahero-headline,
.msahero-content.msahero-anim-off .msahero-text,
.msahero-content.msahero-anim-off .msahero-btn{
  opacity: 1;
  transform: none;
  transition: none;
}

/* ===== Button ===== */
.msahero-btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--msahero-accent-color, #E7791A);
  text-decoration: none;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.msahero-btn-label{ display:inline-block; }

.msahero-btn-icon svg{
  width: 18px;
  height: 18px;
  display: block;
}

/* Varianten */
.msahero-btn--outline{
  background: transparent;
  color: var(--msahero-accent-color, #E7791A);
}

.msahero-btn--outline:hover{
  background: color-mix(in srgb, var(--msahero-accent-color) 20%, transparent);
}

.msahero-btn--solid{
  background: var(--msahero-accent-color, #E7791A);
  color: #0b1220;
}

.msahero-btn--solid:hover{
  background: color-mix(in srgb, var(--msahero-accent-color) 86%, #000);
}

/* Fallback: ohne Variant-Klasse wie outline */
.msahero-btn:not(.msahero-btn--solid):not(.msahero-btn--outline){
  background: transparent;
  color: var(--msahero-accent-color, #E7791A);
}

/* ===== Controls ===== */
.msahero-dots{
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;

  /* über Slides */
  z-index: 10;
}

.msahero-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: none;
}

.msahero-dot.is-active{
  width: 24px;
  background: #fff;
}

.msahero-arrow-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,.65);

  /* über Slides */
  z-index: 10;
}

.msahero-prev{ left: 18px; }
.msahero-next{ right: 18px; }

.msahero-no-dots .msahero-dots{ display:none; }
.msahero-no-arrows .msahero-arrow-btn{ display:none; }

/* ===== Mobile ===== */
@media (max-width:768px){
  .msahero-arrow-btn{
    top: auto;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,.34);
    border-color: rgba(255,255,255,.72);
  }

  .msahero-prev{ left: 12px; right: auto; }
  .msahero-next{ right: 12px; left: auto; }

  .msahero-slides{ height: 60vh; min-height: 340px; }

  .msahero-img-fit{ object-position: var(--msahero-focal-pos-mobile, 50% 50%); }

  /* responsive background */
  .msahero-slide{
    background: none;
  }

  .msahero-slider.msahero-mode-immersive .msahero-slide{
    background-image: var(--msahero-bg-mobile, var(--msahero-bg-desktop));
  }

  .msahero-slider.msahero-mode-logo_safe .msahero-slide:not(.has-video)::before{
    background-image: var(--msahero-bg-mobile, var(--msahero-bg-desktop));
  }

  .msahero-content{ padding: 28px 20px 44px; max-width:100%; }

  /* Typography per breakpoint */
  .msahero-subtitle{ font-size: var(--msahero-subtitle-size-mobile, var(--msahero-subtitle-size, .8rem)); }
  .msahero-headline{ font-size: var(--msahero-headline-size-mobile, var(--msahero-headline-size, 2.6rem)); }
  .msahero-text{ font-size: var(--msahero-text-size-mobile, var(--msahero-text-size, .95rem)); }

  /* Mobile Align overrides */
  .msahero-content.msahero-align-mobile-left{ margin-right:auto; margin-left:0; text-align:left; }
  .msahero-content.msahero-align-mobile-center{ margin:0 auto; text-align:center; }
  .msahero-content.msahero-align-mobile-right{ margin-left:auto; margin-right:0; text-align:right; }

  .msahero-btn{
    width: auto;
    min-width: 220px;
    max-width: 90%;
    justify-content: center;
    margin-top: 18px;
    padding: 12px 20px;
  }
}


/* Wenn Controls als Fallback aktiv sind, muss das Video klickbar sein */
.msahero-slide.msahero-video-controls .msahero-video{
  pointer-events: auto;
}


/* ===== v1.6.0 – Content Cards, Device Positions & Premium Transitions ===== */
.msahero-overlay{
  --msahero-overlay-pad-top: clamp(18px, 2vw, 34px);
  --msahero-overlay-pad-right: clamp(18px, 2vw, 34px);
  --msahero-overlay-pad-bottom: clamp(18px, 2vw, 34px);
  --msahero-overlay-pad-left: clamp(18px, 2vw, 34px);
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  grid-template-rows:minmax(0, 1fr);
  padding: var(--msahero-overlay-pad-top) var(--msahero-overlay-pad-right) var(--msahero-overlay-pad-bottom) var(--msahero-overlay-pad-left);
  box-sizing:border-box;
}
.msahero-content[class*="msahero-pos-"]{ margin:0 !important; }
.msahero-content{
  width:min(100%, var(--msahero-text-width, 520px));
  max-width:min(100%, var(--msahero-text-width, 520px));
  margin:0;
  align-self:center;
  justify-self:start;
  box-sizing:border-box;
}
.msahero-content.msahero-content-style-card{
  padding: clamp(22px, 2vw, 32px);
  background: var(--msahero-card-bg, rgba(15,23,42,.72));
  backdrop-filter: blur(var(--msahero-card-blur, 10px));
  -webkit-backdrop-filter: blur(var(--msahero-card-blur, 10px));
  border-radius: var(--msahero-card-radius, 18px);
  box-shadow: 0 22px 54px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.18);
  overflow:hidden;
}
.msahero-content.msahero-content-style-default{
  background:none;
  border:none;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.msahero-content.msahero-pos-desktop-top-left{ align-self:start; justify-self:start; text-align:left; }
.msahero-content.msahero-pos-desktop-top-center{ align-self:start; justify-self:center; text-align:center; }
.msahero-content.msahero-pos-desktop-top-right{ align-self:start; justify-self:end; text-align:right; }
.msahero-content.msahero-pos-desktop-center-left{ align-self:center; justify-self:start; text-align:left; }
.msahero-content.msahero-pos-desktop-center-center{ align-self:center; justify-self:center; text-align:center; }
.msahero-content.msahero-pos-desktop-center-right{ align-self:center; justify-self:end; text-align:right; }
.msahero-content.msahero-pos-desktop-bottom-left{ align-self:end; justify-self:start; text-align:left; }
.msahero-content.msahero-pos-desktop-bottom-center{ align-self:end; justify-self:center; text-align:center; }
.msahero-content.msahero-pos-desktop-bottom-right{ align-self:end; justify-self:end; text-align:right; }
@media (min-width:769px) and (max-width:1024px){
  .msahero-content.msahero-pos-tablet-top-left{ align-self:start; justify-self:start; text-align:left; }
  .msahero-content.msahero-pos-tablet-top-center{ align-self:start; justify-self:center; text-align:center; }
  .msahero-content.msahero-pos-tablet-top-right{ align-self:start; justify-self:end; text-align:right; }
  .msahero-content.msahero-pos-tablet-center-left{ align-self:center; justify-self:start; text-align:left; }
  .msahero-content.msahero-pos-tablet-center-center{ align-self:center; justify-self:center; text-align:center; }
  .msahero-content.msahero-pos-tablet-center-right{ align-self:center; justify-self:end; text-align:right; }
  .msahero-content.msahero-pos-tablet-bottom-left{ align-self:end; justify-self:start; text-align:left; }
  .msahero-content.msahero-pos-tablet-bottom-center{ align-self:end; justify-self:center; text-align:center; }
  .msahero-content.msahero-pos-tablet-bottom-right{ align-self:end; justify-self:end; text-align:right; }
}
@media (max-width:768px){
  .msahero-overlay{
    --msahero-overlay-pad-top: 16px;
    --msahero-overlay-pad-right: 16px;
    --msahero-overlay-pad-bottom: 86px;
    --msahero-overlay-pad-left: 16px;
    padding: var(--msahero-overlay-pad-top) var(--msahero-overlay-pad-right) var(--msahero-overlay-pad-bottom) var(--msahero-overlay-pad-left);
  }
  .msahero-content{ width:min(calc(100% - 4px), var(--msahero-text-width, 520px)); max-width:min(calc(100% - 4px), var(--msahero-text-width, 520px)); }
  .msahero-content.msahero-content-style-card{ padding:20px 18px 22px; }
  .msahero-content.msahero-content-style-default{ padding:28px 20px 44px; }
  .msahero-content.msahero-pos-mobile-top-left{ align-self:start; justify-self:start; text-align:left; }
  .msahero-content.msahero-pos-mobile-top-center{ align-self:start; justify-self:center; text-align:center; }
  .msahero-content.msahero-pos-mobile-top-right{ align-self:start; justify-self:end; text-align:right; }
  .msahero-content.msahero-pos-mobile-center-left{ align-self:center; justify-self:start; text-align:left; }
  .msahero-content.msahero-pos-mobile-center-center{ align-self:center; justify-self:center; text-align:center; }
  .msahero-content.msahero-pos-mobile-center-right{ align-self:center; justify-self:end; text-align:right; }
  .msahero-content.msahero-pos-mobile-bottom-left{ align-self:end; justify-self:start; text-align:left; }
  .msahero-content.msahero-pos-mobile-bottom-center{ align-self:end; justify-self:center; text-align:center; }
  .msahero-content.msahero-pos-mobile-bottom-right{ align-self:end; justify-self:end; text-align:right; }
}
.msahero-slider[data-transition-style="fade"] .msahero-slide{
  opacity:0;
  transform:none;
  transition: opacity var(--msahero-transition-duration, 950ms) ease;
}
.msahero-slider[data-transition-style="fade"] .msahero-slide.is-active{
  opacity:1;
  transform:none;
}

.msahero-slider[data-transition-style="wipe_left"] .msahero-slide,
.msahero-slider[data-transition-style="wipe_up"] .msahero-slide{
  opacity:0;
  transform:none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--msahero-transition-duration, 950ms) var(--msahero-transition-ease, cubic-bezier(.22,1,.36,1)), opacity calc(var(--msahero-transition-duration, 950ms) * .4) ease, filter var(--msahero-transition-duration, 950ms) ease;
  will-change: clip-path, opacity, filter;
  z-index:1;
}
.msahero-slider[data-transition-style="wipe_up"] .msahero-slide{
  clip-path: inset(100% 0 0 0);
}
.msahero-slider[data-transition-style="wipe_left"] .msahero-slide.is-prev,
.msahero-slider[data-transition-style="wipe_up"] .msahero-slide.is-prev{
  opacity:1;
  clip-path: inset(0 0 0 0 round 0px);
  transform: translate3d(0,0,0) scale(.992);
  filter: blur(1px) saturate(.98);
  z-index:2;
}
.msahero-slider[data-transition-style="wipe_left"] .msahero-slide.is-active,
.msahero-slider[data-transition-style="wipe_up"] .msahero-slide.is-active{
  opacity:1;
  clip-path: inset(0 0 0 0 round 0px);
  transform: translate3d(0,0,0) scale(1);
  filter:none;
  z-index:3;
}

.msahero-slider[data-transition-style="tiles"] .msahero-slide,
.msahero-slider[data-transition-style="tiles_elegant"] .msahero-slide,
.msahero-slider[data-transition-style="tiles_spectacular"] .msahero-slide{
  opacity:0;
  transform: translate3d(0,0,0) scale(1.018);
  filter: blur(6px) saturate(.96) brightness(.985);
  transition:
    opacity calc(var(--msahero-transition-duration, 950ms) * .4) ease,
    transform var(--msahero-transition-duration, 950ms) cubic-bezier(.16,1,.3,1),
    filter calc(var(--msahero-transition-duration, 950ms) * .7) ease;
  will-change: opacity, transform, filter;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  z-index:1;
}
.msahero-slider[data-transition-style="tiles"] .msahero-slide.is-prev,
.msahero-slider[data-transition-style="tiles_elegant"] .msahero-slide.is-prev,
.msahero-slider[data-transition-style="tiles_spectacular"] .msahero-slide.is-prev{
  opacity:1;
  transform: translate3d(0,0,0) scale(.994);
  filter: blur(1px) saturate(.985);
  z-index:2;
}
.msahero-slider[data-transition-style="tiles"] .msahero-slide.is-active,
.msahero-slider[data-transition-style="tiles_elegant"] .msahero-slide.is-active,
.msahero-slider[data-transition-style="tiles_spectacular"] .msahero-slide.is-active{
  opacity:1;
  transform: translate3d(0,0,0) scale(1);
  filter:none;
  z-index:3;
}
.msahero-tile-grid{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:repeat(var(--msahero-tile-cols, 8), 1fr);
  grid-template-rows:repeat(var(--msahero-tile-rows, 4), 1fr);
  gap:0;
  pointer-events:none;
  z-index:4;
  perspective: 1600px;
  transform-style: preserve-3d;
}
.msahero-tile-cell{
  position:relative;
  overflow:hidden;
  transform-style: preserve-3d;
}
.msahero-tile-piece{
  position:absolute;
  inset:0;
  opacity:1;
  transform-origin: var(--tile-origin, 50% 50%);
  transform: rotateX(0deg) rotateY(0deg) translateZ(0) scale(1);
  background:
    linear-gradient(135deg, rgba(255,255,255,.26), rgba(255,255,255,.10) 34%, rgba(255,255,255,.03) 100%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.10));
  backdrop-filter: blur(10px) saturate(1.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.12);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 -10px 18px rgba(0,0,0,.06);
  transition:
    transform calc(var(--msahero-transition-duration, 950ms) * .54) cubic-bezier(.22,.88,.22,1),
    opacity calc(var(--msahero-transition-duration, 950ms) * .44) ease-out,
    filter calc(var(--msahero-transition-duration, 950ms) * .46) ease-out,
    box-shadow calc(var(--msahero-transition-duration, 950ms) * .42) ease-out;
  transition-delay: var(--tile-delay, 0ms);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}
.msahero-tile-piece::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 54%);
  opacity:.8;
}
.msahero-tile-piece::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.12) 100%);
  mix-blend-mode:multiply;
  opacity:.65;
}
.msahero-tile-grid.is-animating .msahero-tile-piece{
  opacity:0;
  transform:
    rotateX(var(--tile-rotate-x, 0deg))
    rotateY(var(--tile-rotate-y, 0deg))
    translateZ(var(--tile-depth, 54px))
    scale(var(--tile-scale-end, .9));
  filter: blur(6px) saturate(.96);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 var(--tile-shadow, 22px) calc(var(--tile-shadow, 22px) * 1.3) rgba(0,0,0,.18);
}

.msahero-tile-grid[data-tile-variant="elegant"] .msahero-tile-piece{
  background:
    linear-gradient(135deg, rgba(255,255,255,.30), rgba(255,255,255,.12) 34%, rgba(255,255,255,.04) 100%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.08));
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}
.msahero-tile-grid[data-tile-variant="elegant"].is-animating .msahero-tile-piece{
  filter: blur(4px) saturate(.98);
}
.msahero-tile-grid[data-tile-variant="spectacular"] .msahero-tile-piece{
  background:
    linear-gradient(135deg, rgba(255,255,255,.26), rgba(255,255,255,.08) 30%, rgba(255,255,255,.02) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.14));
  backdrop-filter: blur(8px) saturate(1.18);
  -webkit-backdrop-filter: blur(8px) saturate(1.18);
}
.msahero-tile-grid[data-tile-variant="spectacular"].is-animating .msahero-tile-piece{
  filter: blur(7px) saturate(.94);
}

@media (max-width: 1024px){
  .msahero-tile-grid{
    perspective: 1300px;
  }
  .msahero-tile-piece{
    backdrop-filter: blur(8px) saturate(1.08);
    -webkit-backdrop-filter: blur(8px) saturate(1.08);
  }
}
@media (max-width: 768px){
  .msahero-tile-grid{
    perspective: 1100px;
  }
  .msahero-tile-piece{
    backdrop-filter: blur(6px) saturate(1.05);
    -webkit-backdrop-filter: blur(6px) saturate(1.05);
  }
}

.msahero-slider[data-transition-style="slide_left"] .msahero-slide,
.msahero-slider[data-transition-style="slide_right"] .msahero-slide{
  opacity:0;
  transition: transform var(--msahero-transition-duration, 950ms) var(--msahero-transition-ease, cubic-bezier(.22,1,.36,1)), opacity calc(var(--msahero-transition-duration, 950ms) * .72) ease;
  will-change: transform, opacity;
}
.msahero-slider[data-transition-style="slide_left"] .msahero-slide{
  transform: translate3d(7.5%, 0, 0) scale(1);
}
.msahero-slider[data-transition-style="slide_right"] .msahero-slide{
  transform: translate3d(-7.5%, 0, 0) scale(1);
}
.msahero-slider[data-transition-style="slide_left"] .msahero-slide.is-prev{
  opacity:0;
  transform: translate3d(-5.5%, 0, 0) scale(1);
  z-index:2;
}
.msahero-slider[data-transition-style="slide_right"] .msahero-slide.is-prev{
  opacity:0;
  transform: translate3d(5.5%, 0, 0) scale(1);
  z-index:2;
}
.msahero-slider[data-transition-style="slide_left"] .msahero-slide.is-active,
.msahero-slider[data-transition-style="slide_right"] .msahero-slide.is-active{
  opacity:1;
  transform: translate3d(0, 0, 0) scale(1);
  z-index:3;
}

.msahero-slider[data-transition-style="split_center"] .msahero-slide{
  opacity:0;
  transform:none;
  clip-path: inset(0 50% 0 50% round 20px);
  transition: clip-path var(--msahero-transition-duration, 950ms) var(--msahero-transition-ease, cubic-bezier(.22,1,.36,1)), opacity calc(var(--msahero-transition-duration, 950ms) * .42) ease;
  will-change: clip-path, opacity;
}
.msahero-slider[data-transition-style="split_center"] .msahero-slide.is-prev{
  opacity:0;
  clip-path: inset(0 0 0 0 round 0px);
  z-index:2;
}
.msahero-slider[data-transition-style="split_center"] .msahero-slide.is-active{
  opacity:1;
  clip-path: inset(0 0 0 0 round 0px);
  z-index:3;
}

.msahero-slider[data-transition-style="cinematic_zoom"] .msahero-slide{
  opacity:0;
  transform: scale(1.12);
  filter: blur(16px) saturate(.92);
  transition: opacity var(--msahero-transition-duration, 950ms) ease, transform var(--msahero-transition-duration, 950ms) var(--msahero-transition-ease, cubic-bezier(.22,1,.36,1)), filter var(--msahero-transition-duration, 950ms) ease;
  will-change: transform, opacity, filter;
}
.msahero-slider[data-transition-style="cinematic_zoom"] .msahero-slide.is-prev{
  opacity:0;
  transform: scale(.96);
  filter: blur(10px) saturate(.95);
  z-index:2;
}
.msahero-slider[data-transition-style="cinematic_zoom"] .msahero-slide.is-active{
  opacity:1;
  transform: scale(1);
  filter: none;
  z-index:3;
}

/* ===== v1.9.1 – Angebotskacheln / 3 Bildkacheln als sauberer Kachel-Strip ===== */
.msahero-offer-tiles{
  width:100%;
  max-width:none;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:0;
  align-self:stretch;
  justify-self:stretch;
  position:relative;
  z-index:3;
  pointer-events:auto;
  box-sizing:border-box;
  overflow:hidden;
  min-height:100%;
  height:100%;
  border-radius:0;
  border:none;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.msahero-offer-tiles--strip::before,
.msahero-offer-tiles--strip::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:1px;
  background:linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.28) 18%, rgba(255,255,255,.28) 82%, rgba(255,255,255,.05) 100%);
  pointer-events:none;
  z-index:4;
}
.msahero-offer-tiles--strip::before{ left:33.3334%; }
.msahero-offer-tiles--strip::after{ left:66.6667%; }

.msahero-overlay-has-offers{
  overflow:hidden;
}
.msahero-overlay-has-offers .msahero-offer-tiles--strip{
  position:absolute;
  top:calc(var(--msahero-overlay-pad-top, 0px) * -1);
  right:calc(var(--msahero-overlay-pad-right, 0px) * -1);
  bottom:calc(var(--msahero-overlay-pad-bottom, 0px) * -1);
  left:calc(var(--msahero-overlay-pad-left, 0px) * -1);
  width:auto;
  min-height:0;
  height:auto;
  margin:0;
  align-self:auto !important;
  justify-self:auto !important;
}
.msahero-overlay-has-offers .msahero-content{
  position:relative;
  z-index:5;
}

.msahero-offer-pos-desktop-top-left{ align-self:start; justify-self:start; }
.msahero-offer-pos-desktop-top-center{ align-self:start; justify-self:center; }
.msahero-offer-pos-desktop-top-right{ align-self:start; justify-self:end; }
.msahero-offer-pos-desktop-center-left{ align-self:center; justify-self:start; }
.msahero-offer-pos-desktop-center-center{ align-self:center; justify-self:center; }
.msahero-offer-pos-desktop-center-right{ align-self:center; justify-self:end; }
.msahero-offer-pos-desktop-bottom-left{ align-self:end; justify-self:start; }
.msahero-offer-pos-desktop-bottom-center{ align-self:end; justify-self:center; }
.msahero-offer-pos-desktop-bottom-right{ align-self:end; justify-self:end; }

.msahero-offer-tile{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:100%;
  height:100%;
  min-width:0;
  overflow:hidden;
  text-decoration:none;
  color:#fff;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  opacity:0;
  transform:translate3d(46px, 0, 0);
  transition:
    opacity 580ms cubic-bezier(.22,1,.36,1),
    transform 760ms cubic-bezier(.22,1,.36,1),
    filter 240ms ease,
    background-color 240ms ease;
  will-change:transform, opacity;
}
.msahero-offer-tile + .msahero-offer-tile{
  border-left:1px solid rgba(255,255,255,.14);
}
.msahero-offer-tile:hover{
  filter:brightness(1.04);
}
.msahero-offer-tiles.js-managed .msahero-offer-tile{
  opacity:0;
  transform:translate3d(46px, 0, 0);
}
.msahero-offer-tiles.js-managed .msahero-offer-tile.is-offer-visible{
  opacity:1;
  transform:translate3d(0, 0, 0);
}
.msahero-offer-tiles.js-managed .msahero-offer-tile.is-offer-focus{
  filter:brightness(1.06);
}
.msahero-slide.is-active .msahero-offer-tiles:not(.js-managed) .msahero-offer-tile{
  opacity:1;
  transform:translate3d(0, 0, 0);
}
.msahero-slide.is-active .msahero-offer-tiles:not(.js-managed) .msahero-offer-tile:nth-child(1){ transition-delay:120ms; }
.msahero-slide.is-active .msahero-offer-tiles:not(.js-managed) .msahero-offer-tile:nth-child(2){ transition-delay:260ms; }
.msahero-slide.is-active .msahero-offer-tiles:not(.js-managed) .msahero-offer-tile:nth-child(3){ transition-delay:400ms; }
.msahero-slide.is-prev .msahero-offer-tile,
.msahero-slide:not(.is-active) .msahero-offer-tile{
  opacity:0;
}
.msahero-offer-tile-media{
  position:absolute;
  inset:0;
  overflow:hidden;
  background:#0b1220;
}
.msahero-offer-tile-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(4,8,18,.04) 0%, rgba(4,8,18,.06) 34%, rgba(4,8,18,.26) 68%, rgba(4,8,18,.62) 100%);
}
.msahero-offer-tile-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform 520ms cubic-bezier(.22,1,.36,1);
}
.msahero-offer-tile:hover .msahero-offer-tile-media img,
.msahero-offer-tile.is-offer-focus .msahero-offer-tile-media img{
  transform:scale(1.035);
}
.msahero-offer-tile-body{
  position:relative;
  margin-top:auto;
  min-height:100%;
  padding:22px 22px 22px;
  z-index:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:8px;
  background:linear-gradient(180deg, rgba(7,10,18,0) 0%, rgba(7,10,18,.10) 28%, rgba(7,10,18,.32) 56%, rgba(7,10,18,.84) 100%);
}
.msahero-offer-tile-title{
  font-size:1.18rem;
  line-height:1.15;
  font-weight:800;
  letter-spacing:.01em;
  text-wrap:balance;
}
.msahero-offer-tile-text{
  font-size:.95rem;
  line-height:1.4;
  opacity:.96;
}


@media (min-width:769px) and (max-width:1024px){
  .msahero-offer-tiles{ width:100%; max-width:none; justify-self:stretch; }
  .msahero-offer-pos-tablet-top-left{ align-self:start; justify-self:start; }
  .msahero-offer-pos-tablet-top-center{ align-self:start; justify-self:center; }
  .msahero-offer-pos-tablet-top-right{ align-self:start; justify-self:end; }
  .msahero-offer-pos-tablet-center-left{ align-self:center; justify-self:start; }
  .msahero-offer-pos-tablet-center-center{ align-self:center; justify-self:center; }
  .msahero-offer-pos-tablet-center-right{ align-self:center; justify-self:end; }
  .msahero-offer-pos-tablet-bottom-left{ align-self:end; justify-self:start; }
  .msahero-offer-pos-tablet-bottom-center{ align-self:end; justify-self:center; }
  .msahero-offer-pos-tablet-bottom-right{ align-self:end; justify-self:end; }
  .msahero-offer-tile{ min-height:100%; height:100%; }
  .msahero-offer-tile-body{ padding:18px 18px 18px; }
  .msahero-offer-tile-title{ font-size:1rem; }
  .msahero-offer-tile-text{ font-size:.84rem; }
}

@media (max-width:768px){
  .msahero-offer-tiles{
    width:100%;
    grid-template-columns:1fr;
  }
  .msahero-offer-tiles--strip::before,
  .msahero-offer-tiles--strip::after{ display:none; }
  .msahero-offer-pos-mobile-top-left{ align-self:start; justify-self:start; }
  .msahero-offer-pos-mobile-top-center{ align-self:start; justify-self:center; }
  .msahero-offer-pos-mobile-top-right{ align-self:start; justify-self:end; }
  .msahero-offer-pos-mobile-center-left{ align-self:center; justify-self:start; }
  .msahero-offer-pos-mobile-center-center{ align-self:center; justify-self:center; }
  .msahero-offer-pos-mobile-center-right{ align-self:center; justify-self:end; }
  .msahero-offer-pos-mobile-bottom-left{ align-self:end; justify-self:start; }
  .msahero-offer-pos-mobile-bottom-center{ align-self:end; justify-self:center; }
  .msahero-offer-pos-mobile-bottom-right{ align-self:end; justify-self:end; }
  .msahero-offer-tile{
    min-height:0;
    height:auto;
    transform:translate3d(0, 30px, 0);
  }
  .msahero-offer-tile + .msahero-offer-tile{
    border-left:none;
    border-top:1px solid rgba(255,255,255,.14);
  }
  .msahero-offer-tile-media{ inset:0; }
  .msahero-offer-tile-body{ padding:14px 14px 15px; }
  .msahero-offer-tile-title{ font-size:.96rem; }
  .msahero-offer-tile-text{ font-size:.8rem; }
}



/* ===== v1.9.7 – Mobile Angebotskacheln wieder untereinander ===== */
@media (min-width:769px) and (max-width:1024px){
  .msahero-offer-tiles{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    grid-template-rows:repeat(2, minmax(0, 1fr));
  }
  .msahero-offer-tile:nth-child(3){
    grid-column:1 / -1;
  }
  .msahero-offer-tiles--strip::before{
    left:50%;
  }
  .msahero-offer-tiles--strip::after{
    display:none;
  }
}

@media (max-width:768px){
  .msahero-overlay-has-offers .msahero-content{
    padding-bottom:calc(clamp(228px, 34vh, 320px) + 24px);
  }

  .msahero-overlay-has-offers .msahero-offer-tiles--strip{
    top:auto;
    right:0;
    bottom:0;
    left:0;
    height:clamp(228px, 34vh, 320px);
    min-height:clamp(228px, 34vh, 320px);
  }

  .msahero-offer-tiles{
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:repeat(3, minmax(0, 1fr));
    min-height:clamp(228px, 34vh, 320px);
    height:clamp(228px, 34vh, 320px);
  }

  .msahero-offer-tiles--strip::before,
  .msahero-offer-tiles--strip::after{
    display:none;
  }

  .msahero-offer-tile{
    position:relative;
    inset:auto;
    min-height:0;
    height:100%;
    opacity:1;
    transform:translate3d(0, 0, 0);
  }

  .msahero-offer-tiles.js-managed .msahero-offer-tile{
    opacity:1;
    transform:none;
  }

  .msahero-offer-tile + .msahero-offer-tile{
    border-left:none;
    border-top:1px solid rgba(255,255,255,.12);
  }

  .msahero-offer-tile-media::after{
    background:linear-gradient(180deg, rgba(4,8,18,.04) 0%, rgba(4,8,18,.10) 30%, rgba(4,8,18,.26) 62%, rgba(4,8,18,.74) 100%);
  }

  .msahero-offer-tile-body{
    padding:10px 12px 11px;
    gap:4px;
  }

  .msahero-offer-tile-title{
    font-size:.84rem;
    line-height:1.08;
  }

  .msahero-offer-tile-text{
    font-size:.69rem;
    line-height:1.22;
  }
}

@media (max-width:520px){
  .msahero-overlay-has-offers .msahero-content{
    padding-bottom:calc(clamp(210px, 32vh, 286px) + 22px);
  }

  .msahero-overlay-has-offers .msahero-offer-tiles--strip,
  .msahero-offer-tiles{
    height:clamp(210px, 32vh, 286px);
    min-height:clamp(210px, 32vh, 286px);
  }

  .msahero-offer-tile-title{
    font-size:.78rem;
  }

  .msahero-offer-tile-text{
    font-size:.65rem;
  }
}

/* ============================================================
 * MASTER HEADER OVERLAY OFFSET
 * ============================================================ */
body.mh-has-master-header #master-header.mh-over-hero {
  --mh-hero-header-offset: 110px;
}

body.mh-has-master-header .msahero-slider .msahero-content {
  padding-top: calc(64px + var(--mh-hero-header-offset, 110px));
}

@media (max-width: 1024px) {
  body.mh-has-master-header .msahero-slider .msahero-content {
    padding-top: calc(40px + var(--mh-hero-header-offset, 92px));
  }
}

@media (max-width: 768px) {
  body.mh-has-master-header .msahero-slider .msahero-content {
    padding-top: calc(24px + var(--mh-hero-header-offset, 78px));
  }
}


/* ===== v1.9.8 – Mobile Angebotskacheln über gesamte Bannerhöhe ===== */
@media (max-width:768px){
  .msahero-overlay-has-offers{
    overflow:hidden;
  }

  .msahero-overlay-has-offers .msahero-content{
    padding-top:0 !important;
    padding-right:0 !important;
    padding-bottom:0 !important;
    padding-left:0 !important;
    min-height:100%;
    height:100%;
  }

  .msahero-overlay-has-offers .msahero-offer-tiles--strip{
    top:0;
    right:0;
    bottom:0;
    left:0;
    width:100%;
    height:100%;
    min-height:100%;
    max-height:none;
  }

  .msahero-offer-tiles{
    width:100%;
    height:100%;
    min-height:100%;
    max-height:none;
    grid-template-columns:1fr;
    grid-template-rows:repeat(3, minmax(0, 1fr));
  }

  .msahero-offer-tile{
    min-height:0;
    height:100%;
  }

  .msahero-offer-tile-media,
  .msahero-offer-tile-media img{
    height:100%;
  }

  .msahero-offer-tile-body{
    min-height:100%;
    justify-content:flex-end;
  }
}
