/* =============================================================
   bo-richtext — Brand Offer Richtext / CTA Section
   Alle Klassen mit bo-richtext- praefixiert
   ============================================================= */

.bo-richtext-wrapper {
  width: 100%;
  display: block;
  box-sizing: border-box;
  padding: 0 16px;
}

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

.bo-richtext-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ===== Background-Modi ===== */
/* Default: bg + Padding + Radius auf dem Container (boxed look) */
.bo-richtext-wrapper:not(.bo-richtext-wrapper-full-width) .bo-richtext-container {
  background-color: var(--brt-bg, #ffffff);
  border: 1px solid var(--brt-border, #ececec);
  border-radius: 12px;
  padding: var(--brt-pad-top, 40px) 32px var(--brt-pad-bottom, 40px);
}

/* Full-Width: bg + Padding auf dem Wrapper (edge-to-edge) */
.bo-richtext-wrapper-full-width {
  padding: 0;
  background-color: var(--brt-bg, #ffffff);
}

.bo-richtext-wrapper-full-width .bo-richtext-container {
  padding: var(--brt-pad-top, 40px) 16px var(--brt-pad-bottom, 40px);
}

/* ===== Content-Stack ===== */
.bo-richtext-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== Headline ===== */
.bo-richtext-headline {
  margin: 0;
  color: var(--brt-headline-color, #1a1a1a);
  font-size: var(--brt-headline-size, 28px);
  line-height: 1.25;
  text-align: var(--brt-headline-align, center);
  font-weight: 600;
}
.bo-richtext-headline p { margin: 0; }
.bo-richtext-headline p + p { margin-top: 8px; }

/* ===== Text ===== */
.bo-richtext-text {
  margin: 0;
  color: var(--brt-text-color, #444444);
  font-size: var(--brt-text-size, 15px);
  line-height: 1.55;
  text-align: var(--brt-text-align, center);
}
.bo-richtext-text p { margin: 0; }
.bo-richtext-text p + p { margin-top: 8px; }

/* ===== Countdown ===== */
.bo-richtext-countdown {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--brt-cd-color, #1a1a1a);
  justify-content: center;
}

.bo-richtext-countdown[data-align="left"] { justify-content: flex-start; }
.bo-richtext-countdown[data-align="right"] { justify-content: flex-end; }

.bo-richtext-countdown[hidden] { display: none !important; }

.bo-richtext-countdown-prefix {
  align-self: center;
  margin-right: 6px;
  color: inherit;
  font-size: var(--brt-text-size, 15px);
  font-weight: 500;
  line-height: 1.3;
}

/* Vortext über den Zahlen */
.bo-richtext-countdown[data-prefix-position="above"] {
  flex-wrap: wrap;
}

.bo-richtext-countdown[data-prefix-position="above"] .bo-richtext-countdown-prefix {
  flex-basis: 100%;
  margin-right: 0;
  margin-bottom: 8px;
  align-self: auto;
  text-align: center;
}

.bo-richtext-countdown[data-prefix-position="above"][data-align="left"] .bo-richtext-countdown-prefix {
  text-align: left;
}

.bo-richtext-countdown[data-prefix-position="above"][data-align="right"] .bo-richtext-countdown-prefix {
  text-align: right;
}

.bo-richtext-countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.bo-richtext-countdown-value {
  font-size: var(--brt-cd-size, 24px);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.bo-richtext-countdown-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888888;
  margin-top: 4px;
}

/* ===== CTA ===== */
.bo-richtext-cta-wrap {
  text-align: var(--brt-cta-align, center);
}

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

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

/* ===== Info-Text ===== */
.bo-richtext-info {
  margin: 0;
  color: var(--brt-info-color, #888888);
  font-size: var(--brt-info-size, 13px);
  line-height: 1.45;
  text-align: var(--brt-info-align, center);
}
.bo-richtext-info p { margin: 0; }
.bo-richtext-info p + p { margin-top: 4px; }

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

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

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

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

/* ===== Trust-Items ===== */
.bo-richtext-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.bo-richtext-trust-list[data-align="left"] { justify-content: flex-start; }
.bo-richtext-trust-list[data-align="right"] { justify-content: flex-end; }

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

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

  .bo-richtext-wrapper:not(.bo-richtext-wrapper-full-width) .bo-richtext-container {
    padding: 24px 18px;
  }

  .bo-richtext-wrapper-full-width .bo-richtext-container {
    padding: var(--brt-pad-top, 32px) 12px var(--brt-pad-bottom, 32px);
  }

  .bo-richtext-headline {
    font-size: calc(var(--brt-headline-size, 28px) * 0.78);
  }

  .bo-richtext-cta {
    padding: 12px 22px;
  }

  .bo-richtext-countdown {
    gap: 10px;
  }

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

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

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

  .bo-richtext-countdown-item {
    min-width: 48px;
  }

  .bo-richtext-countdown-value {
    font-size: calc(var(--brt-cd-size, 24px) * 0.85);
  }
}
