/**
 * KW Hero Combined — Block-spezifische Styles
 *
 * WAS:   Ergaenzt die bestehenden .kw-hero__*-Styles aus css/kw-blocks.css
 *        um die im Combined-Block neuen Elemente (Eyebrow, Lead) und um
 *        Mobile-First-Tap-Target-Praezisierungen.
 * WARUM: UI-Konsistenz vor Eigenbau (feedback_ui_konsistenz.md). Wir reuse-en
 *        .kw-hero, .kw-hero__overlay, .kw-hero__content, .kw-hero__title,
 *        .kw-hero__subtitle aus kw-blocks.css. Dieser File definiert nur die
 *        eyebrow-Komponente und feinjustiert Mobile-Padding.
 * NOTE:  Mobile-First (feedback_mobile_first_gate.md): Base = 375 px,
 *        ab 880 px Aufstockung.
 */

.kw-hero--combined {
    /* Wrapper-Modifier — vorerst keine Override-Werte, dient als Hook fuer
       spaetere Slider/Variant-Differenzierung in #223/#224. */
}

.kw-hero--combined .kw-hero__content {
    padding: 32px 20px;
}

.kw-hero--combined .kw-hero__eyebrow {
    font-family: var(--kw-font-sans, 'Josefin Sans', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--kw-cream, #F4ECD8);
    margin: 0 0 12px;
    opacity: 0.92;
}

.kw-hero--combined .kw-hero__lead {
    font-family: var(--kw-font-serif, 'PT Serif', serif);
    font-size: 1.0625rem;
    line-height: 1.55;
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
}

.kw-hero--combined .kw-btn-group {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.kw-hero--combined .kw-btn {
    min-height: 48px; /* Tap-Target >= 44 px (feedback_mobile_first_gate.md) */
}

/* ===== Issue #277: Bild-Ratio 4:5 / 3:2 ============================= */
/*
 * 4:5 Hochformat: schmaler, mobile-first. Container haelt aspect-ratio
 *                 wenn min-height-Override nicht reicht.
 * 3:2 Querformat: breit, eher Desktop-/Header-tauglich. Bild bleibt cover.
 */
.kw-hero--combined.kw-hero--single {
    position: relative;
    overflow: hidden;
}

.kw-hero--combined .kw-hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.kw-hero--combined .kw-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, calc(var(--kw-hero-overlay-strength-mobile, 0.7)));
    z-index: 1;
}

.kw-hero--combined .kw-hero__content {
    position: relative;
    z-index: 2;
}

/* Ratio-Modifier (#277): nur Bild-Position-Hint, KEIN Container-Cap.
   Issue #436: alte Desktop-Regel `aspect-ratio: 4/5 + max-height: 90vh`
   machte den Container width-getrieben (3008px breit -> 3760px hoch, gecappt
   auf 90vh -> bildschirmfuellend). Container-Hoehe kommt jetzt ausschliesslich
   aus inline `min-height` (ACF-Feld `min_height`). Ratio bleibt als data-Hint. */
.kw-hero--ratio-4-5 .kw-hero__bg-img { object-position: center top; }
.kw-hero--ratio-3-2 .kw-hero__bg-img { object-position: center center; }

@media (min-width: 880px) {
    .kw-hero--combined .kw-hero__overlay {
        background: rgba(0, 0, 0, calc(var(--kw-hero-overlay-strength, 0.6)));
    }
}

/* ===== Mobile-ATF-Cap (375x667) =====================================
 * Above-the-fold muss halten: Breadcrumb (~28px aus Page-Renderer)
 *   + H1 (max 2 Zeilen ~64px)
 *   + Subline (max 2 Zeilen ~44px)
 *   + 2 Quick-Specs (~52px)
 *   + Primaer-CTA (~52px Button + 24px Margin)
 *   = ca. 264 px Content. Mit Vertical-Padding und Eyebrow ca. 360 px.
 * Bild kann unter dem CTA scrollen.
 */
.kw-hero--combined.kw-hero--single .kw-hero__content {
    padding: 20px 16px;
    max-width: 100%;
}

.kw-hero--combined .kw-hero__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.15;
    margin: 0 0 8px;
}

.kw-hero--combined .kw-hero__lead {
    font-size: 1rem;
    line-height: 1.45;
    margin: 0 0 12px;
}

/* ===== Quick-Specs ================================================== */
.kw-hero__quick-specs {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: center;
}

.kw-hero__qs {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--kw-font-sans, 'Josefin Sans', sans-serif);
    font-size: 0.875rem;
    line-height: 1.2;
    color: var(--kw-cream, #F4ECD8);
    background: rgba(0, 0, 0, 0.28);
    border-radius: 4px;
    padding: 6px 10px;
    backdrop-filter: blur(2px);
}

.kw-hero__qs-icon { font-size: 1em; }
.kw-hero__qs-value { font-weight: 700; }
.kw-hero__qs-label {
    font-weight: 400;
    opacity: 0.88;
    font-size: 0.8125rem;
}

/* Mobile-ATF: max 2 Quick-Specs above-the-fold. */
.kw-hero__qs--hide-mobile { display: none; }

@media (min-width: 880px) {
    .kw-hero__qs--hide-mobile { display: inline-flex; }
    .kw-hero__quick-specs { gap: 10px 16px; margin: 16px 0; }
    .kw-hero__qs { font-size: 1rem; padding: 8px 14px; }
}

/* ===== Trust-Mini ==================================================== */
.kw-hero__trust-mini {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: center;
    font-family: var(--kw-font-sans, 'Josefin Sans', sans-serif);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--kw-cream, #F4ECD8);
    opacity: 0.85;
}

.kw-hero__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kw-hero__trust-item:not(:last-child)::after {
    content: '·';
    margin-left: 12px;
    opacity: 0.6;
}

@media (min-width: 880px) {
    .kw-hero__trust-mini { font-size: 0.8125rem; margin-top: 16px; }
}

@media (min-width: 880px) {
    .kw-hero--combined .kw-hero__content {
        padding: 64px 40px;
    }

    .kw-hero--combined .kw-hero__eyebrow {
        font-size: 0.875rem;
        margin-bottom: 16px;
    }

    .kw-hero--combined .kw-hero__lead {
        font-size: 1.25rem;
    }
}

/* ===== Slider Mode (Issue #223) ===== */

.kw-hero--slider {
    position: relative;
    overflow: hidden;
}

.kw-hero__slider-track {
    position: relative;
    width: 100%;
}

/* Slides gestapelt; aktives Slide gibt dem Track seine Hoehe */
.kw-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.kw-hero__slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .kw-hero__slide { transition: none; }
}

/* Pfeile */
.kw-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.35);
    color: var(--kw-cream, #F4ECD8);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.kw-hero__arrow:hover,
.kw-hero__arrow:focus-visible {
    background: rgba(0, 0, 0, 0.6);
    outline: 2px solid var(--kw-cream, #F4ECD8);
    outline-offset: 2px;
}

.kw-hero__arrow--prev { left: 12px; }
.kw-hero__arrow--next { right: 12px; }

@media (min-width: 880px) {
    .kw-hero__arrow--prev { left: 24px; }
    .kw-hero__arrow--next { right: 24px; }
}

/* Dots */
.kw-hero__dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    z-index: 10;
}

/* Tap-Target 44×44, sichtbarer Punkt via ::after */
.kw-hero__dot {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.kw-hero__dot::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.kw-hero__dot.is-active::after {
    background: #fff;
    border-color: #fff;
}

.kw-hero__dot:focus-visible {
    outline: 2px solid var(--kw-cream, #F4ECD8);
    outline-offset: 2px;
    border-radius: 4px;
}
