/* =========================================
   HEADLINE WIDGETS
   RULE 019: Must be on container and element
   ========================================= */

.base-headline-h1 {
    font-size: clamp(0.875rem, 3vw + 0.5rem, var(--font-size-2xl));
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    max-width: 100%;
    color: var(--color-headline);
}

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

.base-headline-h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin-bottom: 0.75rem;
    color: var(--color-headline);
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

@media (min-width: 600px) {
    .base-headline-h1 {
        font-size: var(--font-size-3xl);
    }
}

/* Hero-H1: Container + Titel (RULE 019: beide Klassen am Markup setzen) */
.base-headline-hero-h1 {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.base-headline-hero-h1-title {
    font-size: clamp(1.875rem, 4.5vw + 0.5rem, var(--font-size-4xl));
    font-weight: var(--font-weight-extrabold);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 0;
    max-width: 100%;
    color: var(--color-headline);
    text-wrap: balance;
}

@media (min-width: 600px) {
    .base-headline-hero-h1-title {
        font-size: clamp(2.25rem, 2.8vw + 1rem, var(--font-size-5xl));
        letter-spacing: -0.04em;
    }
}

@media (min-width: 1024px) {
    .base-headline-hero-h1-title {
        line-height: 1.05;
    }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .base-headline-hero-h1-title {
        background-image: var(--gradient-text);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

/* Section-H2: praesente Abschnittsueberschriften (z. B. Home Features) */
.base-headline-section-h2 {
    margin-bottom: 1.25rem;
    max-width: 100%;
}

.base-headline-section-h2-title {
    font-size: clamp(1.5rem, 3vw + 0.75rem, var(--font-size-3xl));
    font-weight: var(--font-weight-extrabold);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0;
    max-width: 100%;
    color: var(--color-headline);
    text-wrap: balance;
}

@media (min-width: 600px) {
    .base-headline-section-h2-title {
        font-size: clamp(1.875rem, 2vw + 1rem, var(--font-size-4xl));
        letter-spacing: -0.035em;
    }
}

@media (min-width: 1024px) {
    .base-headline-section-h2-title {
        line-height: 1.1;
    }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .base-headline-section-h2-title {
        background-image: var(--gradient-text);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

/* Tile-H3: hochwertige Kachel-Ueberschriften (z. B. Home Features) */
.base-headline-tile-h3 {
    margin-bottom: 0;
    max-width: 100%;
    min-width: 0;
    flex: 1;
}

.base-headline-tile-h3-title {
    font-size: clamp(1.0625rem, 1.5vw + 0.65rem, var(--font-size-xl));
    font-weight: var(--font-weight-extrabold);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0;
    max-width: 100%;
    color: var(--color-headline);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1024px) {
    .base-headline-tile-h3-title {
        letter-spacing: -0.03em;
    }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .base-headline-tile-h3-title {
        background-image: var(--gradient-text);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

/* CTA-H2: hochwertige Call-to-Action-Ueberschriften (z. B. Home CTA) */
.base-headline-cta-h2 {
    margin-bottom: 1rem;
    max-width: 100%;
}

.base-headline-cta-h2-title {
    font-size: clamp(1.375rem, 2.5vw + 0.75rem, var(--font-size-3xl));
    font-weight: var(--font-weight-extrabold);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0;
    max-width: 100%;
    color: var(--color-headline);
    text-wrap: balance;
}

@media (min-width: 600px) {
    .base-headline-cta-h2-title {
        font-size: clamp(1.625rem, 1.8vw + 1rem, var(--font-size-4xl));
        letter-spacing: -0.035em;
    }
}

@media (min-width: 1024px) {
    .base-headline-cta-h2-title {
        line-height: 1.12;
    }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .base-headline-cta-h2-title {
        background-image: var(--gradient-text);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}