/* =============================================================
   bo-hero — Brand Offer Hero Section
   Alle Klassen mit bo-hero- praefixiert (kollisionsfrei)
   ============================================================= */

.bo-hero-wrapper {
  background-color: var(--bo-hero-bg, #ffffff);
  padding: var(--bo-hero-pad-top, 40px) 16px var(--bo-hero-pad-bottom, 40px);
  box-sizing: border-box;
  width: 100%;
  display: block;
  position: relative;
}

.bo-hero-wrapper *,
.bo-hero-wrapper *::before,
.bo-hero-wrapper *::after {
  box-sizing: border-box;
}

.bo-hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "left content";
  column-gap: 40px;
  row-gap: 0;
  align-items: start;
}

/* Wenn Headline vorhanden: Headline-Spalte rechts oben, Content drunter, Carousel spannt links beide Reihen */
.bo-hero-container:has(.bo-hero-headline) {
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "left headline"
    "left content";
  row-gap: 18px;
}

.bo-hero-headline {
  grid-area: headline;
}

.bo-hero-left {
  grid-area: left;
  min-width: 0;
}

.bo-hero-right {
  grid-area: content;
  min-width: 0;
}

/* ===== Carousel ===== */
.bo-hero-carousel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bo-hero-main-stage {
  position: relative;
  border: 1px dashed #d4d4d4;
  border-radius: 8px;
  background-color: #f5f5f5;
  overflow: hidden;
  aspect-ratio: var(--bo-hero-carousel-ratio, 1 / 1);
}

.bo-hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.bo-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bo-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.bo-hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.bo-hero-slide-placeholder {
  color: #999;
  font-size: 14px;
  text-align: center;
  padding: 16px;
  line-height: 1.5;
}

/* ===== Badge auf 1. Bild ===== */
.bo-hero-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background-color: var(--bo-hero-badge-bg, #ffffff);
  border: 1px solid var(--bo-hero-badge-border, #ececec);
  border-radius: var(--bo-hero-badge-radius, 0px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 3;
  max-width: calc(100% - 24px);
  pointer-events: auto;
}

.bo-hero-badge-image {
  width: var(--bo-hero-badge-img-size, 40px);
  height: var(--bo-hero-badge-img-size, 40px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bo-hero-badge-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bo-hero-badge-image-placeholder {
  font-size: 10px;
  color: #999;
  text-align: center;
}

.bo-hero-badge-content {
  min-width: 0;
}

.bo-hero-badge-line-1 {
  font-weight: 600;
  font-size: var(--bo-hero-badge-text-size, 14px);
  color: var(--bo-hero-badge-text-color, #1a1a1a);
  line-height: 1.2;
}

.bo-hero-badge-line-2 {
  margin-top: 2px;
  font-size: var(--bo-hero-badge-subtext-size, 12px);
  color: var(--bo-hero-badge-subtext-color, #666666);
  line-height: 1.2;
}

/* Arrows */
.bo-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: var(--bo-hero-arrow-bg, #ffffff);
  color: var(--bo-hero-arrow-color, #222222);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bo-hero-arrow:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.bo-hero-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.bo-hero-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

.bo-hero-arrow-prev { left: 12px; }
.bo-hero-arrow-next { right: 12px; }

/* Dots */
.bo-hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.bo-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background-color: var(--bo-hero-dot-color, #cccccc);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.bo-hero-dot:hover { transform: scale(1.15); }

.bo-hero-dot.is-active {
  background-color: var(--bo-hero-dot-active, #c87a3c);
}

/* Thumbnails */
.bo-hero-thumbnails {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  margin-top: 4px;
  scrollbar-width: none;
}

.bo-hero-thumbnails::-webkit-scrollbar {
  display: none;
}

.bo-hero-thumbnail {
  flex: 0 0 calc((100% - 24px) / 4);
  scroll-snap-align: start;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bo-hero-thumbnail.is-active {
  border-color: var(--bo-hero-dot-active, #c87a3c);
  box-shadow: 0 0 0 1px var(--bo-hero-dot-active, #c87a3c);
}

.bo-hero-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bo-hero-thumbnail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 14px;
  color: #999;
}

/* ===== Judith-Card ===== */
.bo-hero-judith-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background-color: var(--bo-hero-judith-bg, #fbf6ec);
  border: 1px solid var(--bo-hero-judith-border, #ead9b8);
  border-radius: 8px;
}

.bo-hero-judith-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #d3a36e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bo-hero-judith-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bo-hero-judith-image-placeholder {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.bo-hero-judith-text {
  color: var(--bo-hero-judith-text-color, #222222);
  font-size: var(--bo-hero-judith-text-size, 14px);
  line-height: 1.45;
  font-style: italic;
}

.bo-hero-judith-text p {
  margin: 0;
}

.bo-hero-judith-text p + p {
  margin-top: 6px;
}

.bo-hero-judith-name {
  margin-top: 6px;
  color: var(--bo-hero-judith-name-color, #666666);
  font-size: var(--bo-hero-judith-name-size, 12px);
  font-style: normal;
}

/* ===== Right Column ===== */
.bo-hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bo-hero-headline {
  margin: 0;
  color: var(--bo-hero-headline-color, #1a1a1a);
  font-size: var(--bo-hero-headline-size, 32px);
  line-height: 1.2;
  font-weight: 600;
}

.bo-hero-subline {
  color: var(--bo-hero-subline-color, #444444);
  font-size: var(--bo-hero-subline-size, 16px);
  line-height: 1.5;
}

.bo-hero-subline p { margin: 0; }
.bo-hero-subline p + p { margin-top: 8px; }

.bo-hero-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bo-hero-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--bo-hero-bullet-color, #222222);
  font-size: var(--bo-hero-bullet-size, 16px);
  line-height: 1.5;
}

.bo-hero-bullet-icon {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--bo-hero-bullet-icon-color, #888888);
  margin-top: 0.55em;
}

.bo-hero-bullet-text {
  flex: 1 1 auto;
}

.bo-hero-bullet-text p {
  margin: 0;
  display: inline;
}

.bo-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 14px 28px;
  border-radius: 6px;
  background-color: var(--bo-hero-cta-bg, #c87a3c);
  color: var(--bo-hero-cta-color, #ffffff);
  font-size: var(--bo-hero-cta-size, 16px);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.bo-hero-cta:hover { opacity: 0.92; }
.bo-hero-cta:active { transform: translateY(1px); }

.bo-hero-info-text {
  color: var(--bo-hero-info-color, #555555);
  font-size: var(--bo-hero-info-size, 13px);
  line-height: 1.45;
}

.bo-hero-info-text p { margin: 0; }
.bo-hero-info-text p + p { margin-top: 4px; }

.bo-hero-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bo-hero-trust-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--bo-hero-trust-border, #dddddd);
  border-radius: 6px;
  background-color: var(--bo-hero-trust-bg, #ffffff);
  color: var(--bo-hero-trust-color, #222222);
  font-size: var(--bo-hero-trust-size, 12px);
  line-height: 1.2;
  white-space: nowrap;
}

/* ===== Siegel / Icons ===== */
.bo-hero-seal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
}

.bo-hero-seal-list[data-align="center"] { justify-content: center; }
.bo-hero-seal-list[data-align="right"] { justify-content: flex-end; }

.bo-hero-seal-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bo-hero-seal-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Lightbox ===== */
.bo-hero-lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.bo-hero-lightbox[hidden] {
  display: none !important;
}

.bo-hero-lightbox-stage {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bo-hero-lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.bo-hero-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.bo-hero-lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.28);
}

.bo-hero-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s ease;
}

.bo-hero-lightbox-arrow:hover {
  background-color: rgba(255, 255, 255, 0.28);
}

.bo-hero-lightbox-prev { left: 16px; }
.bo-hero-lightbox-next { right: 16px; }

/* ===== Mobile ===== */
@media screen and (max-width: 749px) {
  .bo-hero-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .bo-hero-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "left"
      "content";
    column-gap: 0;
    row-gap: 20px;
  }

  .bo-hero-container:has(.bo-hero-headline) {
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "headline"
      "left"
      "content";
    row-gap: 16px;
  }

  .bo-hero-headline {
    font-size: calc(var(--bo-hero-headline-size, 32px) * 0.78);
  }

  .bo-hero-subline {
    font-size: calc(var(--bo-hero-subline-size, 16px) * 0.95);
  }

  .bo-hero-cta {
    align-self: stretch;
    width: 100%;
  }

  .bo-hero-arrow {
    width: 36px;
    height: 36px;
  }

  .bo-hero-arrow-prev { left: 8px; }
  .bo-hero-arrow-next { right: 8px; }

  .bo-hero-thumbnails {
    gap: 6px;
  }

  .bo-hero-thumbnail {
    flex: 0 0 calc((100% - 18px) / 4);
  }

  .bo-hero-judith-card {
    grid-template-columns: 56px 1fr;
    padding: 12px 14px;
  }

  .bo-hero-judith-image {
    width: 56px;
    height: 56px;
  }

  .bo-hero-lightbox {
    padding: 16px;
  }

  .bo-hero-lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .bo-hero-lightbox-prev { left: 8px; }
  .bo-hero-lightbox-next { right: 8px; }

  .bo-hero-lightbox-close {
    top: 8px;
    right: 8px;
  }

  .bo-hero-seal-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .bo-hero-seal-list::-webkit-scrollbar {
    display: none;
  }

  .bo-hero-seal-item {
    scroll-snap-align: center;
  }

  .bo-hero-badge {
    bottom: 8px;
    left: 8px;
    padding: 5px 12px 5px 5px;
    gap: 8px;
    max-width: calc(100% - 16px);
  }

  .bo-hero-badge-image {
    width: var(--bo-hero-badge-img-size-mobile, var(--bo-hero-badge-img-size, 40px));
    height: var(--bo-hero-badge-img-size-mobile, var(--bo-hero-badge-img-size, 40px));
  }

  .bo-hero-badge-line-1 {
    font-size: var(--bo-hero-badge-text-size-mobile, var(--bo-hero-badge-text-size, 14px));
  }

  .bo-hero-badge-line-2 {
    font-size: var(--bo-hero-badge-subtext-size-mobile, var(--bo-hero-badge-subtext-size, 12px));
  }
}
