/*
 * Site-wide layout safeguards for the archived public design.
 * They preserve the visual language while preventing display headings from
 * splitting into arbitrary letters at browser zoom levels and narrow widths.
 */

.site-header .brand.brand--premium {
    display: block;
    flex: 0 0 auto;
    width: 285px;
    line-height: 0;
}

.site-header .brand-logo {
    display: block;
    width: 100%;
    height: auto;
}

.topic-hero h1,
.directory-hero-copy h1,
.authority-hero h1,
.legal-hero h1,
.article-hero h1 {
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
}

.topic-hero h1,
.directory-hero-copy h1,
.authority-hero h1,
.legal-hero h1 {
    hyphens: none;
}

.topic-hero h1 {
    font-size: clamp(3rem, 5.15vw, 4rem);
}

.directory-hero-copy h1,
.authority-hero h1 {
    font-size: clamp(2.8rem, 4.8vw, 4.75rem);
}

.legal-hero h1 {
    font-size: clamp(2.75rem, 5vw, 4.25rem);
}

main h2,
main h3 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
}

.article-grid > *,
.topic-guide-grid > *,
.topic-principles > *,
.directory-grid > *,
.comparison-grid > *,
.problem-grid > *,
.section-heading--row > *,
.footer-top > * {
    min-width: 0;
}

@media (max-width: 1320px) {
    .site-header .brand.brand--premium {
        width: 250px;
    }

    .article-shell .article-hero,
    .article-shell[data-hero-variant] .article-hero {
        direction: ltr;
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .article-shell .article-hero-copy,
    .article-shell[data-hero-variant] .article-hero-copy {
        padding: 48px clamp(18px, 4vw, 52px) 30px;
    }

    .article-shell .article-hero-visual,
    .article-shell[data-hero-variant] .article-hero-visual {
        margin: 0 0 32px;
        min-height: 420px;
    }

    .article-hero h1 {
        max-width: 1000px;
        font-size: clamp(3rem, 7vw, 4.75rem);
        hyphens: auto;
    }
}

@media (max-width: 600px) {
    .site-header .brand.brand--premium {
        width: 155px;
        margin-right: auto;
    }

    .topic-hero h1,
    .directory-hero-copy h1,
    .authority-hero h1,
    .legal-hero h1 {
        font-size: clamp(2.15rem, 8.8vw, 3.15rem);
        letter-spacing: -0.045em;
    }

    .article-shell .article-hero-copy,
    .article-shell[data-hero-variant] .article-hero-copy {
        padding: 34px 18px 24px;
    }

    .article-shell .article-hero-visual,
    .article-shell[data-hero-variant] .article-hero-visual {
        min-height: 300px;
        margin-bottom: 24px;
    }

    .article-hero h1 {
        font-size: clamp(2.15rem, 9.2vw, 3rem);
        letter-spacing: -0.05em;
    }
}

/*
 * Personal security dossier used on every generated guide.
 * Its cards are light, so all inherited typography must use the light theme.
 */
.guide-dossier .dossier-stage {
    color: #102d49;
    background:
        radial-gradient(circle at 100% 0%, rgba(60, 143, 247, 0.1), transparent 34%),
        linear-gradient(145deg, #ffffff, #f7fbff);
    border-color: rgba(32, 79, 118, 0.16);
    box-shadow: 0 26px 70px rgba(30, 65, 101, 0.12), inset 0 1px 0 #fff;
}

.guide-dossier .dossier-jewel {
    color: #fff;
    background:
        radial-gradient(circle at 25% 12%, rgba(255, 255, 255, 0.2), transparent 26%),
        linear-gradient(155deg, #386ee4 0%, #2f83d5 46%, #38a89b 100%);
}

.guide-dossier .dossier-signals article {
    color: #102d49;
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(32, 79, 118, 0.12);
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.guide-dossier .dossier-signals article:hover {
    z-index: 1;
    background: #fff;
    box-shadow: 0 16px 36px rgba(31, 70, 108, 0.11);
    transform: translateY(-2px);
}

.guide-dossier .dossier-signals article > span {
    color: #2476d3;
}

.guide-dossier .dossier-signals small {
    color: #648099;
}

.guide-dossier .dossier-signals h3 {
    color: #102d49;
}

.guide-dossier .dossier-signals p {
    color: #6a8297;
}

.guide-dossier .dossier-stage > aside {
    color: #102d49;
    background: linear-gradient(155deg, #f5f9ff, #edf5ff);
    border-color: rgba(43, 105, 174, 0.14);
}

.guide-dossier .dossier-stage > aside > span {
    color: #2476d3;
}

.guide-dossier .dossier-stage > aside > strong {
    color: #173a56;
}

.guide-dossier .dossier-stage > aside > p {
    color: #5d768c;
}

.guide-dossier .dossier-stage > aside > div > span {
    color: #2b639b;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(45, 120, 246, 0.25);
}

.guide-dossier .dossier-stage > aside > a {
    color: #175fb3;
    border-top-color: rgba(32, 79, 118, 0.12);
}

.guide-dossier .dossier-stage > aside > a:hover {
    color: #0a4d9c;
}

@media (max-width: 700px) {
    .guide-dossier .dossier-stage {
        border-radius: 20px;
    }

    .guide-dossier .dossier-signals article {
        min-height: 0;
    }

    .guide-dossier .dossier-stage > aside {
        border-top: 1px solid rgba(43, 105, 174, 0.14);
    }
}

/* Consistent editorial hierarchy for long, generated guide headlines. */
.guide-content-shell .dossier-heading {
    direction: ltr;
    align-items: end;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr) !important;
    gap: clamp(34px, 4vw, 58px) !important;
    height: auto;
}

.guide-content-shell .dossier-heading > * {
    direction: ltr;
    min-width: 0;
}

.guide-content-shell .dossier-heading > div {
    grid-column: 1 !important;
    grid-row: 1;
}

.guide-content-shell .dossier-heading > p {
    grid-column: 2 !important;
    grid-row: 1;
    padding: 0 0 4px 24px;
    color: #5d768c;
    border-left: 2px solid rgba(45, 120, 246, 0.55);
}

.guide-content-shell :is(
    .dossier-heading,
    .editorial-depth-heading,
    .intent-analysis-heading,
    .compatibility-copy,
    .evidence-sources-heading,
    .faq-heading
) h2,
.guide-content-shell .article-content > section > h2,
.guide-content-shell .inline-visual-grid > div > h2 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    font-size: clamp(2.25rem, 3.1vw, 3rem) !important;
    line-height: 1.07 !important;
    letter-spacing: -0.045em;
}

.guide-content-shell :is(
    .advisor-question-heading,
    .editorial-matrix-heading,
    .guide-visual-copy,
    .survey-prompt--article
) h3 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    font-size: clamp(1.65rem, 2.35vw, 2.2rem) !important;
    line-height: 1.13 !important;
    letter-spacing: -0.035em;
}

.guide-content-shell .compatibility-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(44px, 5vw, 72px);
    padding: clamp(52px, 5vw, 72px);
}

.guide-content-shell .faq-section {
    grid-template-columns: minmax(400px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(44px, 5vw, 72px);
}

.guide-content-shell .inline-visual-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px;
}

.guide-content-shell .inline-visual-grid > * {
    width: 100%;
    min-width: 0;
}

.guide-content-shell .editorial-depth-stage {
    direction: ltr;
    grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr) !important;
}

.guide-content-shell .editorial-depth-stage > * {
    direction: ltr;
    min-width: 0;
}

.guide-content-shell .editorial-depth-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.guide-content-shell .editorial-depth-steps article {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 16px;
    min-width: 0;
    padding: 32px 28px;
}

.guide-content-shell .editorial-depth-steps article > div {
    min-width: 0;
}

.guide-content-shell .survey-prompt--article {
    grid-template-columns: 70px minmax(0, 1fr) !important;
    align-items: center;
}

.guide-content-shell .survey-prompt--article > .button {
    grid-column: 1 / -1;
    width: 100%;
}

.guide-content-shell :is(
    .compatibility-copy,
    .evidence-sources-heading,
    .faq-heading
) h2,
.guide-content-shell .article-content > section > h2,
.guide-content-shell .inline-visual-grid > div > h2 {
    font-size: clamp(2.1rem, 2.8vw, 2.65rem) !important;
}

.guide-content-shell .guide-visual-copy h3 {
    font-size: clamp(1.6rem, 2.15vw, 2rem) !important;
}

.guide-content-shell .guide-visual--inline .guide-visual-copy {
    color: #fff;
}

.guide-content-shell .guide-visual--inline .guide-visual-copy > span {
    color: #9ed7ff;
}

.guide-content-shell .guide-visual--inline .guide-visual-copy h3 {
    color: #f7fbff;
}

.guide-content-shell .guide-visual--inline .guide-visual-copy p {
    color: rgba(225, 239, 249, 0.78);
}

.guide-content-shell .guide-visual--inline .guide-visual-copy > div > span {
    color: #e2f2ff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(164, 215, 255, 0.22);
}

.guide-content-shell :is(
    .editorial-photo-story__heading,
    .editorial-integrity-heading,
    .guide-section-heading,
    .section-heading
) h2 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

@media (max-width: 900px) {
    .guide-content-shell .dossier-heading,
    .guide-content-shell .editorial-depth-heading,
    .guide-content-shell .editorial-depth-stage,
    .guide-content-shell .intent-analysis-heading,
    .guide-content-shell .compatibility-section,
    .guide-content-shell .faq-section {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px !important;
    }

    .guide-content-shell .editorial-depth-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .guide-content-shell .dossier-heading > p {
        grid-column: 1 !important;
        grid-row: auto;
        padding: 20px 0 0;
        border-top: 1px solid rgba(45, 120, 246, 0.22);
        border-left: 0;
    }

    .guide-content-shell .compatibility-section,
    .guide-content-shell .faq-section {
        padding: 42px 28px;
    }
}

@media (max-width: 600px) {
    .guide-content-shell :is(
        .dossier-heading,
        .editorial-depth-heading,
        .intent-analysis-heading,
        .compatibility-copy,
        .evidence-sources-heading,
        .faq-heading,
        .editorial-photo-story__heading,
        .editorial-integrity-heading,
        .guide-section-heading,
        .section-heading
    ) h2,
    .guide-content-shell .article-content > section > h2,
    .guide-content-shell .inline-visual-grid > div > h2 {
        font-size: clamp(1.85rem, 8vw, 2.2rem) !important;
    }

    .guide-content-shell :is(
        .advisor-question-heading,
        .editorial-matrix-heading,
        .guide-visual-copy,
        .survey-prompt--article
    ) h3 {
        font-size: clamp(1.45rem, 6.6vw, 1.9rem) !important;
    }

    .guide-content-shell .survey-prompt--article {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px;
        padding: 22px;
    }

    .guide-content-shell .survey-prompt--article > .survey-prompt-mark {
        width: 56px;
        height: 56px;
    }

    .guide-content-shell .editorial-depth-steps {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .guide-content-shell .pros-cons-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .guide-content-shell .pros-cons-grid > * {
        width: 100%;
        min-width: 0;
    }

    .guide-content-shell .planning-steps > div {
        grid-template-columns: 36px minmax(0, 1fr) !important;
        gap: 16px;
        padding: 20px 16px;
    }
}

@media (min-width: 601px) and (max-width: 1050px) {
    .site-header .brand.brand--premium {
        width: 220px;
    }
}

/* Premium desktop mega menu */
@media (min-width: 1321px) {
    .site-header .desktop-navigation .nav-mega > summary,
    .site-header--dark .desktop-navigation .nav-mega > summary {
        color: #163f73;
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid #d7e4f5;
        border-radius: 13px;
        min-width: 154px;
        min-height: 58px;
        padding: 0 18px;
        box-shadow: 0 8px 24px rgba(25, 78, 145, 0.08), inset 0 1px 0 #fff;
    }

    .site-header .desktop-navigation .nav-mega > summary:hover,
    .site-header .desktop-navigation .nav-mega[open] > summary,
    .site-header--dark .desktop-navigation .nav-mega > summary:hover,
    .site-header--dark .desktop-navigation .nav-mega[open] > summary {
        color: #0759bd;
        background: #fff;
        border-color: #2d78f6;
        box-shadow: 0 14px 34px rgba(33, 101, 201, 0.18), 0 0 0 3px rgba(45, 120, 246, 0.08), inset 0 1px 0 #fff;
    }

    .site-header .desktop-navigation .nav-mega > summary:focus-visible {
        outline: none;
        box-shadow: 0 14px 34px rgba(33, 101, 201, 0.18), 0 0 0 3px rgba(45, 120, 246, 0.08), inset 0 1px 0 #fff;
    }

    .nav-mega[open]::before {
        content: "";
        position: fixed;
        z-index: 28;
        inset: 144px 0 0;
        pointer-events: none;
        background: rgba(5, 22, 40, 0.18);
        -webkit-backdrop-filter: blur(8px) saturate(85%);
        backdrop-filter: blur(8px) saturate(85%);
    }

    .mega-menu.mega-menu--premium {
        z-index: 30;
        grid-template-columns: clamp(250px, 18.5vw, 304px) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        width: auto;
        min-height: min(654px, calc(100vh - 160px));
        max-height: calc(100vh - 160px);
        padding: 0;
        overflow: auto;
        color: #173a59;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.995), rgba(248, 252, 255, 0.99));
        border: 1px solid rgba(98, 138, 177, 0.34);
        border-radius: 18px;
        left: max(24px, 50vw - 745px);
        right: max(24px, 50vw - 745px);
        box-shadow: 0 42px 110px rgba(2, 19, 38, 0.34), 0 12px 36px rgba(7, 47, 82, 0.15), inset 0 1px 0 #fff;
    }

    .nav-mega[open] .mega-menu.mega-menu--premium,
    .nav-mega:hover .mega-menu.mega-menu--premium,
    .nav-mega:focus-within .mega-menu.mega-menu--premium {
        display: grid;
        animation: premiumMegaMenuIn 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .premium-menu-symbols {
        position: absolute;
        width: 0;
        height: 0;
        overflow: hidden;
    }

    .premium-menu-sidebar {
        grid-row: 1 / 3;
        min-width: 0;
        padding: 28px 24px 24px;
        background: linear-gradient(155deg, #fbfdff 0%, #f5f9fe 100%);
        border-right: 1px solid #dfe9f3;
    }

    .premium-menu-intro {
        padding: 0 7px 20px;
    }

    .premium-menu-intro > span,
    .premium-menu-column > h3 {
        display: block;
        color: #075db8;
        letter-spacing: 0.105em;
        text-transform: uppercase;
        font-size: 0.8125rem;
        font-weight: 880;
    }

    .premium-menu-intro h2 {
        max-width: 225px;
        margin: 8px 0 11px;
        color: #102f4c;
        font-family: var(--sans);
        font-size: 1.16rem;
        font-weight: 840;
        letter-spacing: -0.035em;
        line-height: 1.28;
    }

    .premium-menu-intro p {
        margin: 0;
        color: #657d93;
        font-size: 0.8125rem;
        line-height: 1.55;
    }

    .premium-category-list {
        display: grid;
        gap: 5px;
    }

    .premium-category-list > a {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr) 14px;
        align-items: center;
        gap: 10px;
        min-height: 43px;
        padding: 4px 10px 4px 7px;
        color: #294963;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 9px;
        transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    }

    .premium-category-list > a:hover {
        color: #075bb4;
        background: #edf5ff;
        border-color: #d8e8fa;
        transform: translateX(2px);
    }

    .premium-category-list > a.is-active {
        color: #fff;
        background: linear-gradient(135deg, #1974d9 0%, #0858b7 100%);
        border-color: #1264c3;
        box-shadow: 0 10px 24px rgba(18, 98, 195, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    }

    .premium-category-list strong {
        min-width: 0;
        font-size: 0.8125rem;
        font-weight: 780;
    }

    .premium-category-list i {
        font-size: 1.05rem;
        font-style: normal;
        transition: transform 160ms ease;
    }

    .premium-category-list > a:hover i {
        transform: translateX(2px);
    }

    .premium-menu-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        color: #176cca;
        background: #f7fbff;
        border: 1px solid #dce9f6;
        border-radius: 9px;
        box-shadow: inset 0 1px 0 #fff;
    }

    .premium-menu-icon svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

    .premium-category-list > a.is-active .premium-menu-icon {
        color: #fff;
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.24);
        box-shadow: none;
    }

    .premium-independence-card {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 7px 11px;
        margin-top: 20px;
        padding: 15px 14px;
        color: #155da8;
        background: radial-gradient(circle at 90% 10%, rgba(53, 125, 233, 0.12), transparent 38%), linear-gradient(145deg, #eff6ff, #f8fbff);
        border: 1px solid #bcd5ef;
        border-radius: 11px;
        box-shadow: inset 0 1px 0 #fff;
    }

    .premium-independence-card .premium-menu-icon {
        grid-row: 1 / 3;
        width: 38px;
        height: 38px;
        color: #176cc8;
        background: transparent;
        border: 0;
    }

    .premium-independence-card .premium-menu-icon svg {
        width: 29px;
        height: 29px;
    }

    .premium-independence-card strong {
        align-self: end;
        font-size: 0.8125rem;
        font-weight: 840;
    }

    .premium-independence-card small {
        grid-column: 1 / -1;
        color: #688097;
        font-size: 0.8125rem;
        line-height: 1.48;
    }

    .premium-menu-columns {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        min-width: 0;
    }

    .premium-menu-column {
        min-width: 0;
        padding: 26px 17px 20px;
        border-left: 1px solid #e2eaf2;
    }

    .premium-menu-column:first-child {
        border-left: 0;
    }

    .premium-menu-column > h3 {
        min-height: 17px;
        margin: 0 5px 14px;
        white-space: nowrap;
        font-family: var(--sans);
    }

    .premium-menu-image {
        display: block;
        height: 108px;
        margin: 0 5px 12px;
        overflow: hidden;
        background: #eaf1f7;
        border: 1px solid rgba(92, 127, 158, 0.2);
        border-radius: 10px;
        box-shadow: 0 9px 22px rgba(16, 51, 82, 0.12);
    }

    .premium-menu-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
    }

    .premium-menu-image:hover img {
        filter: saturate(1.06) contrast(1.02);
        transform: scale(1.035);
    }

    .premium-menu-links {
        display: grid;
        gap: 2px;
    }

    .premium-menu-links > a {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) 28px;
        align-items: center;
        gap: 8px;
        min-height: 38px;
        padding: 3px 4px;
        color: #294a65;
        border: 1px solid transparent;
        border-radius: 8px;
        transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
    }

    .premium-menu-links > a:hover {
        color: #075fae;
        background: #eff6fc;
        border-color: #e0ebf5;
        transform: translateX(2px);
    }

    .premium-menu-links strong {
        min-width: 0;
        font-size: 0.8125rem;
        font-weight: 710;
        line-height: 1.23;
    }

    .premium-menu-links i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 24px;
        color: #1669bc;
        background: #edf4fc;
        border-radius: 7px;
        font-size: 0.8125rem;
        font-style: normal;
        font-weight: 790;
    }

    .premium-menu-trust {
        display: grid;
        grid-column: 2;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        min-width: 0;
        padding: 15px 17px;
        background: linear-gradient(180deg, #f7fbff 0%, #f1f7fc 100%);
        border-top: 1px solid #dce8f2;
    }

    .premium-menu-trust > div {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        min-width: 0;
        padding: 0 13px;
    }

    .premium-menu-trust > div + div {
        border-left: 1px solid #dde7f0;
    }

    .premium-menu-trust .premium-menu-icon {
        width: 36px;
        height: 36px;
        background: #e7f1fd;
    }

    .premium-menu-trust p,
    .premium-menu-trust strong,
    .premium-menu-trust small {
        display: block;
        min-width: 0;
        margin: 0;
    }

    .premium-menu-trust strong {
        overflow: hidden;
        color: #175a9d;
        font-size: 0.8125rem;
        font-weight: 820;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .premium-menu-trust small {
        overflow: hidden;
        margin-top: 3px;
        color: #6b8195;
        font-size: 0.8125rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@keyframes premiumMegaMenuIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.992);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* The decorative SJ/check tile was removed from conversion checkpoints. */
.conversion-checkpoint {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.68fr);
}

@media (max-width: 1040px) {
    .conversion-checkpoint {
        grid-template-columns: minmax(0, 1fr);
    }

    .conversion-checkpoint__action {
        grid-column: auto;
    }
}

/*
 * Unified public-page frame.
 * Every page uses the same full-width navigation shell as the homepage.
 */
.site-header-frame {
    width: 100%;
    max-width: none;
    padding-inline: 0;
}

.site-header,
.site-header.site-header--dark {
    width: 100%;
    max-width: none;
}

/* Ratgeber directory: replace the dark overlapping slab with the homepage-style fact row. */
.directory-hero {
    height: auto;
    min-height: 0;
}

.directory-hero .directory-hero-inner {
    height: auto;
    min-height: 0;
    padding: 76px clamp(28px, 3.25vw, 52px) 112px;
}

.directory-hero .directory-hero-facts {
    position: relative !important;
    inset: auto !important;
    z-index: 4;
    width: calc(100% - 64px) !important;
    max-width: 1344px !important;
    height: auto !important;
    min-height: 116px !important;
    margin: -88px auto 34px !important;
    padding: 0 !important;
    transform: none !important;
    overflow: hidden;
    color: #173a56;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(31, 79, 119, 0.12);
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(27, 61, 96, 0.13), inset 0 1px 0 #fff;
    backdrop-filter: blur(18px) saturate(1.15);
}

.directory-hero .directory-hero-facts > div {
    min-width: 0;
    min-height: 116px !important;
    padding: 24px 26px !important;
}

.directory-hero .directory-hero-facts > div + div {
    border-left-color: rgba(31, 79, 119, 0.11);
}

.directory-hero .directory-hero-facts strong {
    color: #173a56;
}

.directory-hero .directory-hero-facts p {
    color: #60798e;
}

/*
 * All generated guide pages share this hero. The previous dark glass panel
 * used dark typography and produced the unreadable block shown in the audit.
 */
.article-shell .article-hero,
.article-shell[data-hero-variant] .article-hero {
    align-items: center;
    direction: ltr;
    grid-template-columns: minmax(0, 1.22fr) minmax(430px, 0.78fr);
    gap: clamp(28px, 3vw, 48px);
    width: 100%;
    max-width: 1480px;
    min-height: 0;
    padding: 30px clamp(28px, 3.25vw, 52px) 52px;
}

.article-shell .article-hero-copy,
.article-shell[data-hero-variant] .article-hero-copy {
    align-self: center;
    direction: ltr;
    padding: clamp(34px, 3.2vw, 46px);
    color: #102d49;
    background:
        radial-gradient(circle at 100% 0%, rgba(74, 151, 255, 0.1), transparent 34%),
        rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(32, 79, 118, 0.14);
    border-radius: 28px;
    box-shadow: 0 28px 74px rgba(35, 67, 102, 0.16), inset 0 1px 0 #fff;
    backdrop-filter: blur(18px) saturate(1.08);
}

.article-shell .article-kicker,
.article-shell[data-hero-variant] .article-kicker {
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 8px 12px;
    font-size: 0.8125rem;
    line-height: 1.45;
    letter-spacing: 0.085em;
}

/* Sitewide readability floor: all visibly rendered helper text stays at 13px+. */
small,
sub,
sup,
.privacy-consent__copy > span {
    font-size: 13px !important;
}

.article-shell .article-hero h1,
.article-shell[data-hero-variant] .article-hero h1 {
    max-width: 920px;
    margin-bottom: 21px;
    font-size: clamp(2.75rem, 3.4vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    color: #102d49;
}

.article-shell .article-hero-copy > p,
.article-shell[data-hero-variant] .article-hero-copy > p {
    color: #536d84;
}

.article-shell .article-trust span,
.article-shell[data-hero-variant] .article-trust span {
    color: #587389;
}

.article-shell .article-byline strong,
.article-shell[data-hero-variant] .article-byline strong {
    color: #173a56;
}

.article-shell .article-byline small,
.article-shell[data-hero-variant] .article-byline small {
    color: #71869a;
}

.article-shell .article-hero-visual,
.article-shell[data-hero-variant] .article-hero-visual {
    align-self: center;
    direction: ltr;
    width: 100%;
    min-height: 560px;
    margin: 0;
}

@media (max-width: 1180px) {
    .article-shell .article-hero,
    .article-shell[data-hero-variant] .article-hero {
        grid-template-columns: minmax(0, 1fr);
        max-width: 1040px;
        padding-top: 26px;
    }

    .article-shell .article-hero-copy,
    .article-shell[data-hero-variant] .article-hero-copy {
        padding: clamp(32px, 4.6vw, 46px);
    }

    .article-shell .article-hero-visual,
    .article-shell[data-hero-variant] .article-hero-visual {
        min-height: 440px;
    }
}

@media (max-width: 820px) {
    .directory-hero .directory-hero-inner {
        padding: 58px 24px 104px;
    }

    .directory-hero .directory-hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 36px) !important;
        margin-top: -74px !important;
    }

    .directory-hero .directory-hero-facts > div:nth-child(odd) {
        border-left: 0;
    }

    .directory-hero .directory-hero-facts > div:nth-child(n + 3) {
        border-top: 1px solid rgba(31, 79, 119, 0.11);
    }
}

@media (max-width: 600px) {
    .article-shell .article-hero,
    .article-shell[data-hero-variant] .article-hero {
        gap: 20px;
        padding: 18px 14px 30px;
    }

    .article-shell .article-hero-copy,
    .article-shell[data-hero-variant] .article-hero-copy {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .article-shell .article-hero h1,
    .article-shell[data-hero-variant] .article-hero h1 {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
        font-size: clamp(2rem, 8vw, 2.45rem);
    }

    .article-shell .article-hero-visual,
    .article-shell[data-hero-variant] .article-hero-visual {
        min-height: 320px;
        border-radius: 20px;
    }

    .directory-hero .directory-hero-facts {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 28px) !important;
        margin-top: -64px !important;
    }

    .directory-hero .directory-hero-facts > div {
        min-height: 92px !important;
        padding: 20px !important;
    }

    .directory-hero .directory-hero-facts > div + div {
        border-left: 0;
        border-top: 1px solid rgba(31, 79, 119, 0.11);
    }
}

/*
 * Shared headline guardrails.
 * Large headings must never be squeezed into narrow desktop columns where
 * German words are split into a stack of short syllables.
 */
@media (min-width: 641px) {
    main h1,
    main h2,
    main h3 {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
        text-wrap: balance;
    }
}

.topic-sources,
.evidence-sources {
    align-items: start;
    grid-template-columns: minmax(380px, 0.92fr) minmax(0, 1.3fr);
    gap: clamp(48px, 5.5vw, 84px);
    padding-inline: clamp(40px, 6vw, 92px);
}

.faq-section,
.compatibility-section {
    align-items: start;
    grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.25fr);
}

.topic-sources > *,
.evidence-sources > *,
.faq-section > *,
.compatibility-section > * {
    min-width: 0;
}

.topic-sources h2,
.evidence-sources h2,
.faq-section h2,
.compatibility-section h2 {
    max-width: 680px;
    font-size: clamp(2.25rem, 3.2vw, 3.55rem) !important;
    line-height: 1.08;
    letter-spacing: -0.035em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

@media (max-width: 1120px) {
    .topic-sources,
    .evidence-sources,
    .faq-section,
    .compatibility-section,
    .topic-overview .section-heading--row,
    .decision-section,
    .method-section,
    .editorial-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .topic-sources,
    .evidence-sources {
        gap: 42px;
        padding-inline: clamp(28px, 5vw, 56px);
    }

    .topic-sources h2,
    .evidence-sources h2,
    .faq-section h2,
    .compatibility-section h2 {
        max-width: 820px;
    }

    .topic-overview .section-heading--row > p {
        border-left: 0;
        border-top: 1px solid rgba(15, 43, 70, 0.13);
        padding: 26px 0 0;
    }
}

@media (max-width: 640px) {
    main h1,
    main h2,
    main h3,
    .topic-sources h2,
    .evidence-sources h2,
    .faq-section h2,
    .compatibility-section h2 {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: auto;
        text-wrap: balance;
    }

    .topic-sources h2,
    .evidence-sources h2,
    .faq-section h2,
    .compatibility-section h2 {
        font-size: clamp(2rem, 8.5vw, 2.75rem) !important;
    }
}

/* Clean, image-free imprint inspired by Eloquin's restrained legal layout. */
.legal-shell--impressum-clean {
    background: #f6f9fc;
}

.legal-shell--impressum-clean .legal-header {
    overflow: visible;
    color: #102d49;
    background: #ffffff;
    border-bottom: 1px solid rgba(31, 79, 119, 0.12);
}

.legal-shell--impressum-clean .legal-hero {
    max-width: 1040px;
    padding: 44px 28px 76px;
}

.legal-shell--impressum-clean .legal-breadcrumb {
    margin-bottom: 44px;
    color: #6b8295;
}

.legal-shell--impressum-clean .legal-hero-grid {
    display: block;
    max-width: 780px;
}

.legal-shell--impressum-clean .legal-kicker {
    margin-bottom: 20px;
    color: #1768c8;
}

.legal-shell--impressum-clean .legal-hero h1 {
    margin-bottom: 20px;
    max-width: none;
    color: #102d49;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.legal-shell--impressum-clean .legal-hero-grid > div > p {
    max-width: 720px;
    color: #5c7488;
    font-size: 1.05rem;
    line-height: 1.75;
}

.legal-shell--impressum-clean .legal-document-grid {
    display: block;
    max-width: 980px;
    padding: 64px 28px 104px;
}

.legal-shell--impressum-clean .legal-document {
    padding: clamp(30px, 5vw, 62px);
    border: 1px solid rgba(31, 79, 119, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 22px 65px rgba(28, 64, 97, 0.07);
}

.legal-shell--impressum-clean .legal-section {
    grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 58px);
    padding: clamp(38px, 6vw, 60px) 0;
}

.legal-shell--impressum-clean .legal-section:first-of-type {
    padding-top: 28px;
}

.legal-shell--impressum-clean .legal-section-copy {
    font-size: 0.9375rem;
    line-height: 1.78;
}

.legal-shell--impressum-clean .legal-notice {
    margin: 28px 0;
    border-radius: 12px;
    box-shadow: none;
}

@media (max-width: 720px) {
    .legal-shell--impressum-clean .legal-hero {
        padding: 34px 20px 58px;
    }

    .legal-shell--impressum-clean .legal-document-grid {
        padding: 32px 16px 72px;
    }

    .legal-shell--impressum-clean .legal-document {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .legal-shell--impressum-clean .legal-section {
        display: block;
        padding: 36px 0;
    }

    .legal-shell--impressum-clean .legal-section-heading {
        margin-bottom: 22px;
    }
}
