/* === Bauerschmidt Sub Hero ===
   Wrapper ist full-bleed (Hintergrundfarbe / -bild läuft viewport-weit).
   Das horizontale Padding sitzt auf .bs-subhero__inner, damit der
   Text-Content exakt auf der gleichen Linie endet wie die anderen Widgets
   (Padding-Rules siehe widget-content-width.css). */
.bs-subhero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
  min-height: 400px;
  padding: 2em 0;
  overflow: hidden;
  box-sizing: border-box;
  font-family: "Funnel Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-subhero-eyebrow-color: #0077C8;
  --bs-subhero-title-color: #0077C8;
  --bs-subhero-divider-color: #E5E5E5;
  --bs-subhero-subtitle-color: #0077C8;
}

/* Variante: weißer Hintergrund */
.bs-subhero--white {
  background-color: #FFFFFF;
}

/* Variante: blauer Hintergrund mit optionalem Bild + Overlay */
.bs-subhero--blue {
  background-color: #0077C8;
  --bs-subhero-eyebrow-color: #FFFFFF;
  --bs-subhero-title-color: #FFFFFF;
  --bs-subhero-divider-color: #E5E5E5;
  --bs-subhero-subtitle-color: #FFFFFF;
}
.bs-subhero--blue .bs-subhero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  z-index: 0;
}
.bs-subhero--blue .bs-subhero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 119, 200, 0.98);
  z-index: 1;
}

/* Dekorations-Bild (z. B. Group-1.png Wave) */
.bs-subhero__decor {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 12.6%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: none;
  z-index: 2;
  opacity: 0.43;
}
.bs-subhero--blue .bs-subhero__decor {
  opacity: 1;
}

/* Inhalt-Wrapper */
.bs-subhero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

/* Eyebrow (kleiner Text oben) */
.bs-subhero__eyebrow {
  display: block;
  font-family: "Funnel Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-subhero-eyebrow-color);
  margin: 0;
}

/* Titel */
.bs-subhero__title {
  font-family: "Funnel Sans", sans-serif;
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--bs-subhero-title-color);
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Trennlinie */
.bs-subhero__divider {
  display: block;
  width: 100%;
  height: 1px;
  min-height: 1px;
  background-color: var(--bs-subhero-divider-color);
  background-image: none;
  border: 0;
  outline: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  opacity: 1;
}

/* Subtitle-Container (rechts ausgerichtet) */
.bs-subhero__subtitle {
  display: flex;
  width: 100%;
}
.bs-subhero__subtitle--align-end   { justify-content: flex-end;   text-align: left; }
.bs-subhero__subtitle--align-start { justify-content: flex-start; text-align: left; }
.bs-subhero__subtitle--align-center{ justify-content: center;     text-align: center; }

.bs-subhero__subtitle-inner {
  width: 45%;
}
.bs-subhero__subtitle-inner > * {
  margin: 0 0 0.8em 0;
  font-family: "Funnel Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: var(--bs-subhero-subtitle-color);
}
.bs-subhero__subtitle-inner > *:last-child { margin-bottom: 0; }

/* Tablet */
@media (max-width: 1024px) {
  .bs-subhero { min-height: 360px; }
  .bs-subhero__subtitle-inner { width: 65%; }
}

/* Ohne Untertitel: nur vertikales Padding setzen, nicht das horizontale —
   sonst überschreibt der Shorthand das horizontale Padding aus
   widget-content-width.css und der Inhalt wird breiter als bei den
   anderen Widgets. */
.bs-subhero--no-subtitle .bs-subhero__inner {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Mobile (Tablet) */
@media (max-width: 1024px) {
  .bs-subhero { min-height: auto !important; }
}

/* Mobile (Phone) */
@media (max-width: 767px) {
  /* Vertikales Padding hier. Horizontales Padding NICHT aus widget-content-
     width nehmen, sonst wirkt der Sub-Hero mobil mehr eingerückt als die
     restlichen Widgets — der Sub-Hero hat ja schon den vollen Hintergrund.
     Wir setzen kleinere Werte als die Standard-Widget-Paddings. */
  .bs-subhero {
    padding-top: 36px;
    padding-bottom: 36px;
    min-height: 0 !important;
  }
  .bs-subhero--has-bg {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .bs-subhero__inner {
    gap: 16px !important;
    max-width: 100%;
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
  .bs-subhero__title { font-size: clamp(24px, 6.5vw, 34px); line-height: 1.2; }

  /* Untertitel spannt volle Breite — !important schlägt Elementor-Slider-Inline */
  .bs-subhero__subtitle-inner { width: 100% !important; }
  .bs-subhero__subtitle-inner > * {
    font-size: 15px;
    line-height: 1.6;
  }
  .bs-subhero__subtitle--align-end,
  .bs-subhero__subtitle--align-center {
    justify-content: flex-start;
    text-align: left;
  }
  /* Deko-Bild bleibt mobil sichtbar — deutlich größer als auf Desktop,
     damit die Symbole gut erkennbar sind. Liegt hinter dem Inhalt. */
  .bs-subhero__decor {
    display: block;
    width: 55%;
    opacity: 0.3;
    z-index: 0;
  }
  .bs-subhero--blue .bs-subhero__decor {
    opacity: 0.65;
  }
}

@media (max-width: 480px) {
  .bs-subhero {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .bs-subhero--has-bg {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .bs-subhero__inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .bs-subhero__eyebrow { font-size: 12px; }
}
