/* Betana Hero-Bild-Austausch – Frontend Styles */

.bhs-hero-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch !important;
}

.bhs-hero-col,
.bhs-hero-col-text {
    display: flex;
}

.bhs-hero-col > .elementor-widget-wrap,
.bhs-hero-col-text > .elementor-widget-wrap {
    width: 100%;
}

/* Das Bild bestimmt die Höhe der Zeile über sein festes 1:1-Format
   (aspect-ratio) statt sich selbst an die (variable) Textspalte zu
   strecken. Die Textspalte/Box passt sich per flex-stretch daran an. */
.bhs-hero-image-widget {
    align-self: flex-start;
    width: 100% !important;
}

.bhs-hero-image-widget .elementor-widget-container {
    width: 100%;
}

/* max-width !important nötig: einige der ursprünglichen Bild-Widgets hatten
   von früher eine eigene, seitenspezifische Custom-Width (z.B. 93%) über
   Elementors --width-Variable eingestellt - das hätte das neue Hero-Bild
   trotz width:100% unnötig schmaler dargestellt als die volle Spaltenbreite. */
.bhs-hero-image-widget {
    max-width: 100% !important;
}

/* Ein evtl. unter dem Hero-Bild stehender alter PDF-Button (globales
   Elementor-Widget "betana-pdf-button") soll optisch bündig mit dem Bild
   abschließen statt schmaler zu wirken. */
.bhs-hero-col .betana-pdf-wrap {
    width: 100% !important;
}

.bhs-hero-col .betana-pdf-button {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* !important nötig: die ursprünglichen Elementor-Bild-Widgets bringen pro
   Seite eine eigene, spezifischere Regel (.elementor-element-XXXXX img)
   mit fester Breite/Radius aus den alten Widget-Einstellungen mit - die
   würde unsere neuen Bild-Styles sonst überschreiben. */
.bhs-hero-link {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.bhs-hero-img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    transition: transform 0.35s ease;
}

.bhs-hero-link:hover .bhs-hero-img {
    transform: scale(1.02);
}

/* Gemeinsamer Box-Stil für Einleitungstext- und Highlight-Box */
.bhs-content-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 27, 66, 0.12);
    border: 1px solid rgba(0, 27, 66, 0.08);
}

.bhs-intro-box {
    margin-top: 0;
}

.bhs-content-box__accent {
    height: 8px;
    width: 100%;
    background: #001B42;
    flex-shrink: 0;
}

.bhs-content-box__body {
    padding: 20px 24px;
    flex: 1;
    overflow-wrap: break-word;
}

.bhs-content-box__body p:last-child {
    margin-bottom: 0;
}

/* Ursprünglicher Text kommt teils mit Blocksatz (text-align: justify) aus
   dem Seiteninhalt - das erzeugt unschöne, ungleichmäßige Wortabstände.
   In der Box immer linksbündig darstellen. */
.bhs-content-box__body p {
    text-align: left !important;
}

.bhs-content-box__title {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 1.05em;
    color: #001B42;
    overflow-wrap: break-word;
}

.bhs-highlight-box__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bhs-highlight-box__list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.bhs-highlight-box__list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #001B42;
    font-weight: 700;
}

@media (max-width: 767px) {
    .bhs-hero-row {
        align-items: normal !important;
    }
    .bhs-content-box {
        margin-top: 16px;
    }
    .bhs-intro-box {
        margin-top: 16px;
    }
}
