:root {
  --m-ma-stage-max-width: 1600px;
  --m-ma-stage-max-height: 700px;
  --m-ma-stage-textbox-width: 600px;
  --m-ma-stage-spacing-desktop: 2.5rem;
  --m-ma-stage-spacing-desktop-box: 85px;
  --m-ma-stage-spacing-mobile: 1rem;
  --m-ma-stage-content-max-width: 1212px;
  --m-ma-stage-grey-bg: #2E3033;
  --m-ma-stage-theme-color: var(--bosch-blue-50, #007bff);
  --m-ma-stage-navigation-size: 2rem;
  --m-ma-stage-navigation-color: var(--bosch-black, #000);
  --m-ma-stage-pagination-bullet-horizontal-gap: 7px;
  --m-ma-stage-pagination-bullet-inactive-color: var(--bosch-gray-60, #ccc);
  --m-ma-stage-pagination-bullet-inactive-opacity: 1;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #fff;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.m-ma-stage-button-prev:focus-visible,
.m-ma-stage-button-next:focus-visible,
.m-ma-stage-pagination-bullet:focus-visible {
  outline: 2px solid var(--bosch-blue-50, #007bff);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--bosch-blue-50, #007bff);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

.m-ma-stage-container {
  max-width: var(--m-ma-stage-max-width);
  margin: 0 auto;
  position: relative;
  padding-top: var(--m-ma-stage-spacing-desktop);
}

.m-ma-stage-slider {
  position: relative;
  width: 100%;
  max-width: var(--m-ma-stage-max-width);
  height: var(--m-ma-stage-max-height);
  overflow: hidden;
  background: #000;
}

.m-ma-stage-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.m-ma-stage-slide.active {
  opacity: 1 !important;
  z-index: 2;
}

.m-ma-stage-slide .A-Image__figure,
.m-ma-stage-slide .A-Image__picture,
.m-ma-stage-slide .A-Image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.m-ma-stage-slide .A-Image__preloadWrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.m-ma-stage-slide .A-Image__preloadWrapper:after {
  display: none;
}

.m-ma-stage-textbox {
  position: absolute;
  width: var(--m-ma-stage-textbox-width);
  padding: 2.5rem;
  box-sizing: border-box;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.top-left    { 
   top: var(--m-ma-stage-spacing-desktop-box); 
   left: calc(50% - (var(--m-ma-stage-content-max-width) / 2));
}
.top-right   { 
   top: var(--m-ma-stage-spacing-desktop-box); 
   right: calc(50% - (var(--m-ma-stage-content-max-width) / 2));
}
.bottom-left { 
   bottom: var(--m-ma-stage-spacing-desktop-box); 
   left: calc(50% - (var(--m-ma-stage-content-max-width) / 2));
}
.bottom-right{ 
   bottom: var(--m-ma-stage-spacing-desktop-box); 
   right: calc(50% - (var(--m-ma-stage-content-max-width) / 2));
}
.white { background: #fff; color: #000; }
.grey { background: var(--m-ma-stage-grey-bg); color: #fff; }

.m-ma-stage-textbox .h1 {
  margin: 0 0 6px 0;
  font-size: 3rem;
  line-height: 1.25;
}

.m-ma-stage-textbox p {
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.4;
}

.m-ma-stage-textbox .a-button {
  width: fit-content;
}

.m-ma-stage-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  margin-top: 1rem;
  text-align: right;
  z-index: 5;
  pointer-events: auto;
  padding: 20px 0;
  background: #fff;
}

.m-ma-stage-pagination {
  display: flex;
  gap: var(--m-ma-stage-pagination-bullet-horizontal-gap);
  pointer-events: auto;
  position: absolute;
  left: 0;
}

@media only screen and (min-width: 992px) {
  .m-ma-stage-pagination {
    left: 50%;
    transform: translateX(-50%);
  }
}

.m-ma-stage-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--m-ma-stage-pagination-bullet-inactive-color);
  cursor: pointer;
  transition: all 250ms;
  border: none;
  outline: none;
  padding: 0;
  opacity: var(--m-ma-stage-pagination-bullet-inactive-opacity);
}

.m-ma-stage-pagination-bullet:hover {
  background-color: var(--m-ma-stage-theme-color);
}

.m-ma-stage-pagination-bullet.active {
  background: var(--m-ma-stage-theme-color);
  transform: scale(1.5);
}

.m-ma-stage-button-prev,
.m-ma-stage-button-next {
  position: static;
  display: inline-flex;
  width: var(--m-ma-stage-navigation-size);
  height: var(--m-ma-stage-navigation-size);
  margin-top: 0;
  margin-left: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  align-items: center;
  justify-content: center;
  transition: all 250ms;
  color: var(--m-ma-stage-navigation-color);
}

.m-ma-stage-button-prev:hover,
.m-ma-stage-button-next:hover {
  color: var(--bosch-blue-40, #0056b3);
}

/* Tablet Layout: 801px - 1280px */
@media (max-width: 1280px) and (min-width: 801px) {
  .m-ma-stage-slider {
    height: auto;
    min-height: 200px;
    max-height: none;
  }

  .m-ma-stage-slide {
    position: static;
    opacity: 1 !important;
    z-index: 1;
    height: auto;
    display: none;
    flex-direction: column;
  }

  .m-ma-stage-slide.active {
    display: flex !important;
  }

  .m-ma-stage-slide .A-Image__figure {
    order: 1;
  }

  .m-ma-stage-slide .A-Image__preloadWrapper:after {
    content: "";
    display: block;
    height: 0;
    width: 100%;
    padding-bottom: 43.75%; /* 16:7 aspect ratio für bessere Proportionen */
  }

  .m-ma-stage-textbox {
    position: static !important;
    width: 100% !important;
    max-width: var(--m-ma-stage-max-width);
    margin: 0 auto;
    order: 2;
    background: #fff !important;
    color: #000 !important;
  }

  .m-ma-stage-textbox h1 {
    font-size: 2.5rem;
    margin: 0 0 16px 0;
    font-weight: bold;
    line-height: 1.2;
  }

  .m-ma-stage-textbox p {
    font-size: 1.25rem;
    margin: 0 0 24px 0;
    line-height: 1.4;
  }

  .m-ma-stage-mobile-text {
    display: none !important;
  }

  .m-ma-stage-controls {
    margin-top: 1rem;
  }

  .m-ma-stage-pagination {
    left: 50%;
    transform: translateX(-50%);
  }

  .m-ma-stage-counter {
    display: none !important;
  }
}

/* Mobile Layout: ≤800px */
@media (max-width: 800px) {
  .m-ma-stage-slider {
    height: auto;
    min-height: 200px;
    max-height: none;
  }

  .m-ma-stage-slide {
    position: static;
    opacity: 1 !important;
    z-index: 1;
    height: auto;
    display: none;
  }

  .m-ma-stage-slide.active {
    display: block !important;
  }

  .m-ma-stage-slide .A-Image__preloadWrapper:after {
    content: "";
    display: block;
    height: 0;
    width: 100%;
    padding-bottom: 56.25%;
  }

  .m-ma-stage-textbox {
    display: none !important;
  }

  .m-ma-stage-mobile-text {
    display: block !important;
    background: #fff;
    padding: 40px 32px 32px 32px;
    max-width: var(--m-ma-stage-max-width);
    margin: 0 auto;
  }

  .m-ma-stage-mobile-text h1 {
    font-size: 1.5rem;
    margin: 0 0 12px 0;
    font-weight: bold;
    line-height: 1.2;
  }

  .m-ma-stage-mobile-text p {
    font-size: 1rem;
    margin: 0 0 16px 0;
    line-height: 1.4;
  }

  .m-ma-stage-controls {
    justify-content: space-between;
    margin-top: 8px;
    padding: 16px 0;
  }

  .m-ma-stage-navigation-buttons {
    display: flex;
    gap: 8px;
  }

  .m-ma-stage-button-prev,
  .m-ma-stage-button-next {
    margin-left: 0;
    width: 36px;
    height: 36px;
  }

  .m-ma-stage-pagination {
    display: none !important;
  }

  .m-ma-stage-counter {
    display: block !important;
    font-size: 14px;
    padding-left: 8px;
  }

  .m-ma-stage-mobile-text {
    padding: 34px 24px 32px 24px;
  }

  .m-ma-stage-container {
    padding-top: var(--m-ma-stage-spacing-mobile);
  }
}
