/*
 * TrainWerk hero word wrapping, 0.3.14-alpha.
 * Copyright (C) 2026 Hans-Josef Pesch / TrainWerk.
 * TrainWerk Open Use License 1.0; backlink or coffee welcome (voluntary).
 * Do not break German compound words in the headline; line breaks at spaces remain.
 * A dedicated plugin avoids overwriting user-edited theme files.
 */
section.tw-hero[data-a11y-hero="true"] h1,
section.tw-home-master-hero[data-a11y-hero="true"] h1,
.tw036-faq-hero h1,
.tw037-federal-copy h1 {
    -webkit-hyphens: none !important;
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    white-space: normal !important;
    text-wrap: balance;
}

/* At phone sizes, ensure most long German compounds fit without inserted breaks. */
@media (max-width: 640px) {
    section.tw-hero[data-a11y-hero="true"] h1,
    section.tw-home-master-hero[data-a11y-hero="true"] h1,
    .tw036-faq-hero h1,
    .tw037-federal-copy h1 {
        font-size: clamp(1.45rem, 6.4vw, 2.25rem) !important;
        line-height: 1.16;
    }
}
@media (max-width: 360px) {
    section.tw-hero[data-a11y-hero="true"] h1,
    section.tw-home-master-hero[data-a11y-hero="true"] h1,
    .tw036-faq-hero h1,
    .tw037-federal-copy h1 {
        font-size: clamp(1.2rem, 6vw, 1.5rem) !important;
    }
}
