/* =========================================
   HEADLINE WIDGETS – hochwertig, dezent farbig
   RULE 019: Must be on container and element
   ========================================= */

.base-headline-h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-align: center;
}

.base-headline-h1::after {
    content: none;
}

.base-headline-h1 h1,
h1.base-headline-h1 {
    color: var(--color-teal);
    font-size: inherit;
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    display: inline-block;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(26, 121, 125, 0.12);
}

.base-headline-h1 h1::after,
h1.base-headline-h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.base-headline-h1-page {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

.base-headline-h1-page::after {
    content: none;
}

h1.base-headline-h1-page {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
    padding-bottom: 0.35rem;
}

h1.base-headline-h1-page::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.base-headline-h1-page-compact {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

.base-headline-h1-page-compact::after {
    content: none;
}

h1.base-headline-h1-page-compact {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
    padding-bottom: 0.35rem;
}

h1.base-headline-h1-page-compact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.base-headline-h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    color: var(--color-heading);
}

.base-headline-h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    margin-top: 0.35rem;
    border-radius: 2px;
    opacity: 0.85;
}

h2.base-headline-h2::after {
    content: none;
}

.base-headline-h2-section {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    color: var(--color-heading);
    padding-left: 1rem;
    border-left: 3px solid var(--color-primary);
}

.base-headline-h2-section-wrapper {
    margin-bottom: 0.5rem;
}

.base-headline-h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    color: var(--color-heading);
}

.base-headline-h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.75rem;
    color: var(--color-heading);
}

@media (min-width: 768px) {
    .base-headline-h1,
    .base-headline-h1-page {
        font-size: var(--font-size-5xl);
    }

    .base-headline-h1-page-compact {
        font-size: var(--font-size-4xl);
    }

    .base-headline-h1 h1::after,
    h1.base-headline-h1::after {
        width: 72px;
        height: 4px;
    }

    h1.base-headline-h1-page::after {
        width: 56px;
        height: 3px;
    }

    h1.base-headline-h1-page-compact::after {
        width: 48px;
        height: 2px;
    }

    .base-headline-h2::after {
        width: 48px;
        margin-top: 0.4rem;
    }
}