/**
 * Hero & Page Header v1.0.0
 * Autor: Heiko Müller (https://mueller-webhosting.de)
 */

.mwh-hero-banner {
    position: relative;
    width: 100%;
    min-height: var(--hb-min-h, 520px);
    margin-top: var(--hb-pull-up, 0px);
    margin-bottom: 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    box-sizing: border-box;
    font-family: var(--hb-font-body, inherit);
    background-color: #13261f;
}

/* Erzwingt 100% Bildschirmbreite selbst in begrenzten Template-Containern */
.mwh-hero-banner.is-fullbleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.mwh-hero-banner *,
.mwh-hero-banner *::before,
.mwh-hero-banner *::after {
    box-sizing: border-box;
}

/* =========================================================
   HINTERGRUND-BILDER & ÜBERBLENDUNGEN
   ========================================================= */
.mwh-hb-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.mwh-hb-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--hb-trans-ms, 1500ms) ease-in-out,
                transform var(--hb-trans-ms, 1500ms) ease-in-out,
                visibility var(--hb-trans-ms, 1500ms);
    will-change: opacity, transform;
}

.mwh-hb-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.mwh-hb-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
}

.mwh-hb-fallback-gradient {
    background: linear-gradient(135deg, #13261f 0%, #24332d 60%, #3a4f46 100%);
}

/* Effekt 1: Ken-Burns-Kamerafahrt */
.mwh-hero-banner.has-kenburns .mwh-hb-slide img {
    transition: transform var(--hb-kb-ms, 7500ms) ease-out;
}
.mwh-hero-banner.has-kenburns .mwh-hb-slide.is-active img {
    transform: scale(1.09);
}

/* Effekt 3: Dynamischer Zoom-Wechsel */
.mwh-hero-banner.fx-zoom_fade .mwh-hb-slide {
    transform: scale(1.08);
}
.mwh-hero-banner.fx-zoom_fade .mwh-hb-slide.is-active {
    transform: scale(1);
}

/* Effekt 4: Horizontales Gleiten (Slide) */
.mwh-hero-banner.fx-slide .mwh-hb-slide {
    transform: translateX(6%);
}
.mwh-hero-banner.fx-slide .mwh-hb-slide.is-active {
    transform: translateX(0);
}

/* Effekt 5: Direkter Schnitt */
.mwh-hero-banner.fx-none .mwh-hb-slide {
    transition: none;
}

/* Grund-Abdunklung */
.mwh-hb-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(10, 16, 14, var(--hb-overlay-alpha, 0.15));
    pointer-events: none;
}

/* =========================================================
   INHALTS-CONTAINER & PLATZIERUNG (Rechts / Mitte / Links)
   ========================================================= */
.mwh-hb-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--hb-container-w, 1320px);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
}

.mwh-hero-banner.pos-right .mwh-hb-container {
    justify-content: flex-end;
}

.mwh-hero-banner.pos-center .mwh-hb-container {
    justify-content: center;
}

.mwh-hero-banner.pos-left .mwh-hb-container {
    justify-content: flex-start;
}

/* =========================================================
   TEXTBOX-STILE (6 Varianten)
   ========================================================= */
.mwh-hb-box {
    width: 100%;
    max-width: var(--hb-box-maxw, 540px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: var(--hb-align, right);
    transition: opacity 0.35s ease;
}

.mwh-hb-box-inner {
    width: 100%;
}

/* 1. Durchgehendes Glas-Banner (wie im Biedenkopf-Entwurf: läuft von oben bis unten durch) */
.mwh-hero-banner.box-panel_vertical .mwh-hb-box {
    background: var(--hb-box-bg, rgba(22, 28, 27, 0.68));
    backdrop-filter: blur(var(--hb-box-blur, 4px));
    -webkit-backdrop-filter: blur(var(--hb-box-blur, 4px));
    padding: calc(var(--hb-top-h, 0px) + 48px) 44px calc(var(--hb-bottom-h, 0px) + 56px);
    min-height: 100%;
}

/* 2. Schwebende Glas-Kachel */
.mwh-hero-banner.box-card_floating .mwh-hb-container {
    align-items: center;
    padding-top: calc(var(--hb-top-h, 0px) + 40px);
    padding-bottom: calc(var(--hb-bottom-h, 0px) + 48px);
}
.mwh-hero-banner.box-card_floating .mwh-hb-box {
    background: var(--hb-box-bg, rgba(22, 28, 27, 0.74));
    backdrop-filter: blur(var(--hb-box-blur, 6px));
    -webkit-backdrop-filter: blur(var(--hb-box-blur, 6px));
    padding: 40px 42px;
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* 3. Freistehendes Vollflächen-Overlay (ohne Kasten) */
.mwh-hero-banner.box-full_overlay .mwh-hb-container {
    align-items: center;
    padding-top: calc(var(--hb-top-h, 0px) + 40px);
    padding-bottom: calc(var(--hb-bottom-h, 0px) + 48px);
}
.mwh-hero-banner.box-full_overlay .mwh-hb-box {
    background: transparent;
    padding: 20px 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* 4. Kino-Verlauf unten */
.mwh-hero-banner.box-bottom_gradient .mwh-hb-overlay {
    background: linear-gradient(to top, rgba(14, 22, 19, 0.92) 0%, rgba(14, 22, 19, 0.55) 48%, transparent 100%);
}
.mwh-hero-banner.box-bottom_gradient .mwh-hb-container {
    align-items: flex-end;
    padding-top: calc(var(--hb-top-h, 0px) + 60px);
    padding-bottom: calc(var(--hb-bottom-h, 0px) + 38px);
}
.mwh-hero-banner.box-bottom_gradient .mwh-hb-box {
    background: transparent;
}

/* 5. Historischer Goldrahmen-Kasten */
.mwh-hero-banner.box-framed_royal .mwh-hb-container {
    align-items: center;
    padding-top: calc(var(--hb-top-h, 0px) + 40px);
    padding-bottom: calc(var(--hb-bottom-h, 0px) + 48px);
}
.mwh-hero-banner.box-framed_royal .mwh-hb-box {
    background: var(--hb-box-bg, rgba(19, 34, 28, 0.82));
    backdrop-filter: blur(var(--hb-box-blur, 6px));
    -webkit-backdrop-filter: blur(var(--hb-box-blur, 6px));
    border: 1px solid var(--hb-col-accent, #c59b47);
    outline: 1px solid rgba(197, 155, 71, 0.35);
    outline-offset: -8px;
    padding: 44px 44px;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.32);
}

/* =========================================================
   TYPOGRAFIE (Exakt abgestimmt auf deinen Biedenkopf-Entwurf)
   ========================================================= */
.mwh-hb-overline {
    color: var(--hb-col-overline, #e5dfd3);
    font-family: var(--hb-font-body, inherit);
    font-size: clamp(0.78rem, 1.1vw, 0.95rem);
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 6px;
    line-height: 1.3;
}

.mwh-hb-headline {
    color: var(--hb-col-headline, #ffffff);
    font-family: var(--hb-font-title, inherit);
    font-size: clamp(var(--hb-h1-mob, 2.5rem), 5vw, var(--hb-h1-desk, 4.2rem));
    font-weight: 600;
    line-height: 1.08;
    margin: 0 0 14px;
    letter-spacing: 0.01em;
}

.mwh-hb-subheadline {
    color: var(--hb-col-subhead, #ffffff);
    font-family: var(--hb-font-body, inherit);
    font-size: clamp(0.88rem, 1.3vw, 1.08rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 14px;
    line-height: 1.35;
}

.mwh-hb-text {
    color: var(--hb-col-text, #f0ece1);
    font-family: var(--hb-font-body, inherit);
    font-size: clamp(0.92rem, 1.15vw, 1.02rem);
    font-weight: 600;
    line-height: 1.55;
    margin: 0;
}

/* Buttons */
.mwh-hb-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.mwh-hero-banner.align-right .mwh-hb-actions {
    justify-content: flex-end;
}
.mwh-hero-banner.align-center .mwh-hb-actions {
    justify-content: center;
}
.mwh-hero-banner.align-left .mwh-hb-actions {
    justify-content: flex-start;
}

.mwh-hb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border-radius: 50px;
    font-family: var(--hb-font-body, inherit);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.22s ease;
    cursor: pointer;
}

.mwh-hb-btn.style-solid_gold {
    background: var(--hb-col-accent, #c59b47);
    color: #ffffff !important;
    border: 1.5px solid var(--hb-col-accent, #c59b47);
}
.mwh-hb-btn.style-solid_gold:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.mwh-hb-btn.style-outline_light {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
}
.mwh-hb-btn.style-outline_light:hover {
    background: var(--hb-col-accent, #c59b47);
    border-color: var(--hb-col-accent, #c59b47);
    color: #ffffff !important;
}

.mwh-hb-btn.style-solid_dark {
    background: #24332d;
    color: #ffffff !important;
    border: 1.5px solid rgba(197, 155, 71, 0.5);
}
.mwh-hb-btn.style-solid_dark:hover {
    background: #13261f;
    border-color: var(--hb-col-accent, #c59b47);
}

/* =========================================================
   SVG WELLEN & FORM-TRENNER (OBEN & UNTEN)
   Liegen auf z-index: 5, sodass sie das vertikale Glas-Panel
   unten genauso sauber abschneiden wie in deinem Entwurf!
   ========================================================= */
.mwh-hb-divider {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 5;
    line-height: 0;
    pointer-events: none;
    overflow: hidden;
}

.mwh-hb-divider svg {
    display: block;
    width: calc(100% + 2px);
    margin-left: -1px;
}

/* Unterer Trenner */
.mwh-hb-divider-bottom {
    bottom: -1px;
}
.mwh-hb-divider-bottom svg {
    height: var(--hb-bottom-h, 85px);
    fill: var(--hb-bottom-color, #fbf9f5);
}
.mwh-hb-divider-bottom.is-flipped svg {
    transform: scaleX(-1);
}

/* Oberer Trenner */
.mwh-hb-divider-top {
    top: -1px;
    transform: rotate(180deg);
}
.mwh-hb-divider-top svg {
    height: var(--hb-top-h, 65px);
    fill: var(--hb-top-color, #13261f);
}
.mwh-hb-divider-top.is-flipped svg {
    transform: scaleX(-1);
}

/* =========================================================
   PFEILE & PUNKTE (DIASHOW-STEUERUNG)
   ========================================================= */
.mwh-hb-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 6;
    pointer-events: none;
}

.mwh-hb-prev,
.mwh-hb-next {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(19, 38, 31, 0.55);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mwh-hb-prev:hover,
.mwh-hb-next:hover {
    background: var(--hb-col-accent, #c59b47);
    border-color: var(--hb-col-accent, #c59b47);
}

.mwh-hb-dots {
    position: absolute;
    left: 50%;
    bottom: calc(var(--hb-bottom-h, 0px) + 16px);
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 6;
}

.mwh-hb-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    background: rgba(255, 255, 255, 0.25);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mwh-hb-dot.is-active {
    background: var(--hb-col-accent, #c59b47);
    border-color: var(--hb-col-accent, #c59b47);
    transform: scale(1.2);
}

/* Responsive Anpassung für Smartphones */
@media (max-width: 719px) {
    .mwh-hero-banner.box-panel_vertical .mwh-hb-box,
    .mwh-hero-banner.box-card_floating .mwh-hb-box,
    .mwh-hero-banner.box-framed_royal .mwh-hb-box {
        max-width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Responsive picture fills the same slide area as the original image. */
.mwh-hb-slide picture { display: block; width: 100%; height: 100%; }
