/**
 * MARK HAACKE — HERO BLOCK
 *
 * Styles für den haacke/hero ACF Block.
 *
 * @package Haacke
 */

.mh-hero {
    /* Full-bleed aus Kadence Content-Container */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background: var(--mh-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vh, 5rem);
    position: relative;
    overflow: hidden;
}

.mh-hero--viewport { min-height: 100vh; }
.mh-hero--large    { min-height: 80vh; }
.mh-hero--compact  { min-height: 50vh; }

.mh-hero__inner {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    animation: mh-hero-fade 1s var(--ease-signature) both;
}

@keyframes mh-hero-fade {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .mh-hero__inner { animation: none; }
}

/* ============================================
   BADGE
   ============================================ */
.mh-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: var(--mh-card);
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mh-text-light);
    box-shadow: var(--shadow-sm);
}

.mh-hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mh-accent);
    position: relative;
    animation: mh-hero-pulse 2s ease-in-out infinite;
}

@keyframes mh-hero-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--mh-accent-glow); }
    50%      { box-shadow: 0 0 0 8px transparent; }
}

/* ============================================
   HEADLINE
   ============================================ */
.mh-hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 1.8rem + 4vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 600;
    color: var(--mh-text);
    margin: 0;
    text-wrap: balance;
}

.mh-hero__headline em,
.mh-hero__headline i {
    font-style: italic;
    color: var(--mh-accent);
    font-weight: 400;
}

/* ============================================
   SUBTITLE
   ============================================ */
.mh-hero__subtitle {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    line-height: 1.55;
    color: var(--mh-text-light);
    max-width: 60ch;
    margin: 0;
    text-wrap: pretty;
}

/* ============================================
   BUTTONS
   ============================================ */
.mh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* Höhere Specificity via .mh-hero — gewinnt gegen Kadence/Content-Styles */
.mh-hero .mh-hero__btn,
a.mh-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.35s var(--ease-signature), box-shadow 0.35s var(--ease-signature), background 0.25s var(--ease-signature), border-color 0.25s var(--ease-signature), color 0.25s var(--ease-signature);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

.mh-hero .mh-hero__btn--primary,
a.mh-hero__btn--primary {
    background: var(--mh-accent);
    color: #fff;
    border-color: var(--mh-accent);
}

.mh-hero .mh-hero__btn--primary:hover,
a.mh-hero__btn--primary:hover {
    background: var(--mh-accent-hover);
    color: #fff;
    border-color: var(--mh-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.mh-hero__btn--primary svg {
    transition: transform 0.35s var(--ease-signature);
}

.mh-hero__btn--primary:hover svg {
    transform: translateX(4px);
}

.mh-hero .mh-hero__btn--outline,
a.mh-hero__btn--outline {
    background: transparent;
    color: var(--mh-text);
    border-color: rgba(45, 45, 45, 0.25);
}

.mh-hero .mh-hero__btn--outline:hover,
a.mh-hero__btn--outline:hover {
    border-color: var(--mh-accent);
    color: var(--mh-accent);
    background: transparent;
    transform: translateY(-1px);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.mh-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--mh-text-muted);
    pointer-events: none;
}

.mh-hero__scroll-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.mh-hero__scroll-line {
    width: 1px;
    height: 40px;
    background: var(--mh-text-muted);
    position: relative;
    overflow: hidden;
}

.mh-hero__scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--mh-accent);
    animation: mh-hero-scroll-line 2s ease-in-out infinite;
}

@keyframes mh-hero-scroll-line {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(250%); }
}

/* Editor preview — nicht 100vh nehmen */
.acf-block-preview .mh-hero--viewport { min-height: 400px; }
.acf-block-preview .mh-hero { width: auto; margin: 0; }
