/*
 * HLF refinements bundle
 * Consolidated for HLF 5.1.2 in the original cascade order.
 */

/* === Final design refinements (formerly hlf-final.css) === */
/*
 * HLF 3.1.1 – gestalterisches Grundsystem.
 * Bewusst als abschließende Gestaltungsebene geladen.
 */


body {
    color: var(--wp--preset--color--anthracite);
    font-size: var(--hlf-text-md);
    line-height: var(--hlf-leading-body);
}

.hlf-site-header {
    border-bottom-color: rgba(47, 23, 61, 0.09);
    box-shadow: 0 1px 0 rgba(38, 38, 38, 0.02);
}

.hlf-header-logo {
    width: clamp(10rem, 16vw, 13.5rem);
}

.hlf-language-switcher,
.hlf-menu-toggle {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
}

.hlf-section,
.hlf-home-section,
.hlf-about-section {
    scroll-margin-top: calc(var(--hlf-header-height) + 1.25rem);
}

.hlf-eyebrow {
    margin-bottom: 1.1rem;
    letter-spacing: 0.18em;
}

.hlf-home-hero {
    min-height: calc(84svh - var(--hlf-header-height));
    align-items: flex-end;
    padding: clamp(4rem, 7vw, 6.5rem) 0 2.5cm;
}

.hlf-home-hero__grid {
    align-items: end;
}

.hlf-home-hero__title,
.hlf-about-hero h1,
.hlf-contact-hero h1 {
    letter-spacing: -0.042em;
}

.hlf-home-hero__role {
    margin-top: 1.8rem;
}

.hlf-home-hero__actions {
    margin-top: 2.25rem;
}

.hlf-home-section {
    min-height: auto;
    padding: calc(clamp(5rem, 9vw, 8rem) + 26px) 0 clamp(5rem, 9vw, 8rem);
}

.hlf-home-contact {
    padding-top: calc(clamp(3.5rem, 6vw, 5.75rem) + 26px);
}

.hlf-home-heading,
.hlf-section-heading {
    margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}

.hlf-home-heading h2,
.hlf-home-contact h2,
.hlf-about-section h2,
.hlf-contact-form-wrap h2,
.hlf-contact-details h2,
.hlf-contact-map h2 {
    letter-spacing: -0.032em;
}

.hlf-button,
.hlf-header-cta,
.wp-element-button,
.wp-block-button__link {
    min-height: var(--hlf-button-height);
    padding-inline: var(--hlf-button-padding-inline);
    border-radius: var(--hlf-radius-button);
    letter-spacing: 0.105em;
}

.hlf-button--text,
.hlf-text-link {
    min-height: auto;
    padding: 0;
}

.hlf-home-services-grid,
.hlf-card-grid {
    gap: var(--hlf-card-gap);
}

.hlf-home-service-card,
.hlf-card {
    border-color: var(--hlf-color-border);
    box-shadow: none;
}

.hlf-home-service-card__body,
.hlf-card__body {
    padding: var(--hlf-card-padding);
}

.hlf-home-service-card:hover,
.hlf-card--interactive:hover,
.hlf-card--interactive:focus-within {
    transform: translateY(-3px);
    box-shadow: var(--hlf-shadow-soft);
}

.hlf-home-news-card,
.hlf-home-news-placeholder > div {
    padding: clamp(1.6rem, 2.6vw, 2rem);
    border-top-width: 1px;
}

.hlf-about-hero {
    padding-top: clamp(2rem, 4vw, 3.5rem);
}

.hlf-about-section {
    padding-block: clamp(5.5rem, 10vw, 9rem);
}

.hlf-contact-hero {
    padding-block: clamp(4.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
}

.hlf-contact-main__grid {
    gap: clamp(3rem, 7vw, 7rem);
}

.hlf-contact-detail {
    padding-block: 1.2rem;
}

.hlf-contact-map__frame,
.hlf-contact-form-placeholder {
    border-color: var(--hlf-color-border);
}

.hlf-site-footer {
    padding-top: clamp(4.5rem, 8vw, 6.5rem);
}

.hlf-footer-grid {
    gap: clamp(3rem, 6vw, 6rem);
}

.hlf-footer-logo-link {
    width: min(100%, 17.5rem);
}

.hlf-footer-menu--stacked {
    gap: 0.72rem;
}

.hlf-footer-bottom {
    margin-top: clamp(3.5rem, 6vw, 5rem);
}

@media (max-width: 900px) {
    :root {
        --hlf-header-height: 5.4rem;
    }

    .hlf-home-hero {
        min-height: auto;
    }
}

@media (max-width: 620px) {
    :root {
        --hlf-gutter: 1.25rem;
        --hlf-header-height: 5rem;
    }

    .hlf-header-logo {
        width: 9.5rem;
    }

    .hlf-home-hero {
        padding: 4.25rem 0 2.5cm;
    }

    .hlf-home-hero__title,
    .hlf-about-hero h1 {
        white-space: normal;
    }

    .hlf-home-section,
    .hlf-about-section {
        padding-block: 4.5rem;
    }

    .hlf-button-group,
    .hlf-home-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hlf-home-hero__actions .hlf-button {
        width: 100%;
        min-width: 0;
    }

    .hlf-footer-grid {
        gap: 2.75rem;
    }
}

/*
 * HLF 3.2.0 – Header-Grundlayout.
 * Das bestehende Drei-Spalten-Konzept bleibt erhalten:
 * Sprachumschalter links, Logo mittig, Menüschalter rechts.
 */
.hlf-site-header {
    isolation: isolate;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.hlf-site-header__inner {
    height: var(--hlf-header-height);
    min-height: 0;
    padding-block: 0;
    grid-template-columns: minmax(3rem, 1fr) auto minmax(3rem, 1fr);
}

.hlf-site-branding,
.hlf-site-branding .custom-logo-link,
.hlf-header-logo {
    max-height: calc(var(--hlf-header-height) - 1.25rem);
}

.hlf-site-branding .custom-logo-link,
.hlf-header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hlf-site-branding .custom-logo,
.hlf-header-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(var(--hlf-header-height) - 1.25rem);
}

.hlf-language-switcher,
.hlf-menu-toggle {
    align-self: center;
}

.hlf-menu-toggle {
    width: 3rem;
    height: 3rem;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .hlf-site-header {
        background: #fff;
    }
}

@media (max-width: 900px) {
    .hlf-site-branding,
    .hlf-site-branding .custom-logo-link,
    .hlf-header-logo,
    .hlf-site-branding .custom-logo,
    .hlf-header-logo img {
        max-height: calc(var(--hlf-header-height) - 1.1rem);
    }
}

@media (max-width: 620px) {
    .hlf-site-header__inner {
        grid-template-columns: minmax(2.75rem, 1fr) auto minmax(2.75rem, 1fr);
    }

    .hlf-language-switcher {
        gap: 0.35rem;
    }

    .hlf-menu-toggle {
        width: 2.75rem;
        height: 2.75rem;
    }

    .hlf-site-branding,
    .hlf-site-branding .custom-logo-link,
    .hlf-header-logo,
    .hlf-site-branding .custom-logo,
    .hlf-header-logo img {
        max-height: calc(var(--hlf-header-height) - 1rem);
    }
}


/*
 * HLF 3.2.1.2 – Burger-Menü, minimal auf Basis von 3.2.0.
 * Keine zusätzliche Menüstruktur und kein zweites Logo im Markup.
 */
.hlf-site-branding {
    position: relative;
}

body.hlf-menu-open .hlf-site-branding img {
    opacity: 0;
}

body.hlf-menu-open .hlf-site-branding::after {
    position: absolute;
    inset: 0;
    content: "";
    background: url("../images/hischer-logo-white.svg") center / contain no-repeat;
    pointer-events: none;
}

.hlf-menu-toggle:focus-visible,
.hlf-language-switcher a:focus-visible,
.hlf-primary-navigation a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 0.35rem;
}

body.hlf-menu-open .hlf-menu-toggle:focus-visible,
body.hlf-menu-open .hlf-primary-navigation a:focus-visible {
    outline-color: var(--wp--preset--color--purple-light);
}

/* HLF 3.2.2.8 – zentrale Korrektur abgeschnittener langer Überschriften.
 * Betrifft Seitentitel, Tätigkeitsbereich-Karten und Kontakt-CTA.
 * Keine Änderungen an Header-Markup oder Burger-JavaScript.
 */
.hlf-service-hero__inner,
.hlf-service-hero h1,
.hlf-services-overview .hlf-service-archive-card,
.hlf-services-overview .hlf-service-archive-card .hlf-card__full-link,
.hlf-services-overview .hlf-service-archive-card .hlf-card__body,
.hlf-services-overview .hlf-service-archive-card .hlf-card__title,
.hlf-cta__content,
.hlf-cta__content h2,
.hlf-service-cta h2 {
    min-width: 0;
    max-width: 100%;
}

.hlf-service-hero h1,
.hlf-services-overview .hlf-service-archive-card .hlf-card__title,
.hlf-cta__content h2,
.hlf-service-cta h2 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Die bisherige Display-Zeilenhöhe von .88 schneidet bei großen Titeln zu knapp. */
.hlf-service-hero h1 {
    font-size: clamp(2.65rem, 8vw, 7.25rem);
    line-height: 1.02;
    letter-spacing: -.035em;
}

/* Karten dürfen lange Titel nicht an ihrer Außenkante abschneiden. */
.hlf-services-overview .hlf-service-archive-card {
    overflow: visible;
}

.hlf-services-overview .hlf-service-archive-card .hlf-card__title {
    font-size: clamp(1.65rem, 2.8vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -.02em;
}

/* Kontaktabschluss auf den Tätigkeitsbereich-Unterseiten. */
.hlf-cta__content h2,
.hlf-service-cta h2 {
    line-height: 1.08;
}

@media (max-width: 800px) {
    .hlf-service-hero h1 {
        font-size: clamp(2.5rem, 12vw, 5rem);
        line-height: 1.05;
        letter-spacing: -.025em;
    }

    .hlf-services-overview .hlf-service-archive-card .hlf-card__title {
        font-size: clamp(1.55rem, 7vw, 2.45rem);
        line-height: 1.14;
    }

    .hlf-cta__content h2,
    .hlf-service-cta h2 {
        font-size: clamp(2rem, 9vw, 3.5rem);
        line-height: 1.1;
    }
}

@media (max-width: 420px) {
    .hlf-service-hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.4rem);
        line-height: 1.08;
        letter-spacing: -.02em;
    }

    .hlf-services-overview .hlf-service-archive-card .hlf-card__title {
        font-size: clamp(1.45rem, 6.8vw, 2rem);
        line-height: 1.16;
    }
}


/* === Button refinements (formerly hlf-buttons-4.3.1.css) === */
/*
 * HLF 4.3.1.2 – Globales Button-System
 * Vereinheitlicht primäre Buttons, Gutenberg-Buttons und Header-CTA.
 */
:root {
    --hlf-button-min-height: 2.8rem;
    --hlf-button-padding-y: 0.75rem;
    --hlf-button-padding-x: 1.35rem;
    --hlf-button-radius: 999px;
    --hlf-button-transition: 180ms ease;
}

.hlf-header-cta,
.hlf-button,
.wp-element-button,
.wp-block-button__link,
.button,
.btn,
.hlf-about-cta .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--hlf-button-min-height);
    padding: var(--hlf-button-padding-y) var(--hlf-button-padding-x);
    border: 1px solid var(--wp--preset--color--purple);
    border-radius: var(--hlf-button-radius);
    background: var(--wp--preset--color--purple);
    color: var(--wp--preset--color--white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background-color var(--hlf-button-transition),
        color var(--hlf-button-transition),
        border-color var(--hlf-button-transition),
        transform var(--hlf-button-transition);
}

.hlf-header-cta:hover,
.hlf-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.button:hover,
.btn:hover,
.hlf-about-cta .wp-block-button__link:hover {
    border-color: var(--wp--preset--color--anthracite, #262626);
    background: var(--wp--preset--color--anthracite, #262626);
    color: #fff;
    transform: translateY(-1px);
}

.hlf-header-cta:focus-visible,
.hlf-button:focus-visible,
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible,
.button:focus-visible,
.btn:focus-visible,
.hlf-about-cta .wp-block-button__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .hlf-header-cta,
    .hlf-button,
    .wp-element-button,
    .wp-block-button__link,
    .button,
    .btn,
    .hlf-about-cta .wp-block-button__link {
        transition: none;
    }

    .hlf-header-cta:hover,
    .hlf-button:hover,
    .wp-element-button:hover,
    .wp-block-button__link:hover,
    .button:hover,
    .btn:hover,
    .hlf-about-cta .wp-block-button__link:hover {
        transform: none;
    }
}


/* HLF 4.3.1.2: verbindliche Normalisierung gegen ältere Seitenspezialregeln. */
.hlf-about-cta .wp-block-button .wp-block-button__link,
.hlf-about-cta .wp-block-button__link {
    min-height: var(--hlf-button-min-height);
    padding: var(--hlf-button-padding-y) var(--hlf-button-padding-x);
    border: 1px solid var(--wp--preset--color--purple);
    border-radius: var(--hlf-button-radius);
    background: var(--wp--preset--color--purple);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    line-height: 1;
    text-transform: uppercase;
}

.hlf-about-cta .wp-block-button .wp-block-button__link:hover,
.hlf-about-cta .wp-block-button__link:hover,
.hlf-button--contact-primary:hover,
.hlf-service-cta .hlf-button:hover,
.hlf-services-overview-contact .hlf-button:hover {
    border-color: var(--wp--preset--color--anthracite, #262626);
    background: var(--wp--preset--color--anthracite, #262626);
    color: #fff;
}


/* === Component refinements (formerly hlf-components-4.3.2.css) === */
/**
 * HLF 4.3.2 – Karten- und CTA-Finalisierung
 * Wird nach den Seiten- und Button-Styles geladen.
 */

:root {
    --hlf-component-card-padding: clamp(1.6rem, 2.7vw, 2.15rem);
    --hlf-component-card-gap: clamp(.9rem, 1.8vw, 1.25rem);
    --hlf-component-card-lift: -3px;
    --hlf-component-cta-gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Einheitlicher Aufbau aller globalen Karten. */
.hlf-card {
    min-height: 100%;
}

.hlf-card__body {
    display: flex;
    min-height: 100%;
    flex: 1;
    flex-direction: column;
    gap: 0;
}

.hlf-card__title {
    margin-top: var(--hlf-component-card-gap);
    margin-bottom: 0;
}

.hlf-card__text,
.hlf-card__excerpt {
    margin-top: .9rem;
    margin-bottom: 0;
}

.hlf-card__footer {
    margin-top: auto;
    padding-top: clamp(1.25rem, 2vw, 1.65rem);
}

.hlf-card--interactive:hover,
.hlf-card--interactive:focus-within {
    transform: translateY(var(--hlf-component-card-lift));
}

/* Startseite: gleiche Innenabstände und vertikale Ausrichtung. */
.hlf-home-service-card.hlf-card,
.hlf-home-news-card,
.hlf-why-card {
    min-height: 100%;
}

.hlf-home-service-card.hlf-card .hlf-home-service-card__body {
    display: flex;
    min-height: 100%;
    flex: 1;
    flex-direction: column;
    padding: var(--hlf-component-card-padding);
}

.hlf-home-service-card .hlf-text-link,
.hlf-home-news-card .hlf-text-link,
.hlf-why-card .hlf-text-link {
    margin-top: auto;
    padding-top: clamp(1.2rem, 2vw, 1.6rem);
}

.hlf-home-news-card {
    display: flex;
    flex-direction: column;
    padding: var(--hlf-component-card-padding);
}

.hlf-home-news-card h3 {
    margin-top: var(--hlf-component-card-gap);
    margin-bottom: 0;
}

.hlf-home-news-card p:not(.hlf-home-news-card__meta) {
    margin-top: .9rem;
    margin-bottom: 0;
}

.hlf-why-card {
    padding: var(--hlf-component-card-padding);
}

.hlf-why-card h3 {
    margin-bottom: .9rem;
}

/* Tätigkeitsbereiche-Übersicht: identischer Innenaufbau bei langen Titeln. */
.hlf-services-overview .hlf-service-archive-card,
.hlf-services-overview .hlf-service-archive-card .hlf-card__full-link,
.hlf-services-overview .hlf-service-archive-card .hlf-card__body {
    min-height: 100%;
}

.hlf-services-overview .hlf-service-archive-card .hlf-card__body {
    display: flex;
    flex-direction: column;
}

.hlf-services-overview .hlf-service-archive-card .hlf-card__footer {
    margin-top: auto;
}

/* Globales CTA-System: Inhalt und Aktion folgen einem einheitlichen Rhythmus. */
.hlf-cta__inner {
    column-gap: clamp(2rem, 6vw, 6rem);
    row-gap: var(--hlf-component-cta-gap);
}

.hlf-cta__content {
    display: flex;
    max-width: 50rem;
    flex-direction: column;
    align-items: flex-start;
}

.hlf-cta__title,
.hlf-cta__text {
    margin-bottom: 0;
}

.hlf-cta__text {
    margin-top: clamp(1rem, 2vw, 1.4rem);
}

.hlf-cta__actions {
    align-self: end;
    margin: 0;
}

/* Einspaltige CTAs der Tätigkeitsbereichs-Unterseiten: Button stets unter Text. */
.hlf-service-cta--steuerstreit .hlf-cta__inner,
.hlf-service-cta--steuerstrafrecht .hlf-cta__inner,
.hlf-service-cta--unternehmenssteuerrecht .hlf-cta__inner,
.hlf-service-cta--private-vermoegensgestaltung .hlf-cta__inner {
    row-gap: var(--hlf-component-cta-gap);
}

.hlf-service-cta--steuerstreit .hlf-cta__actions,
.hlf-service-cta--steuerstrafrecht .hlf-cta__actions,
.hlf-service-cta--unternehmenssteuerrecht .hlf-cta__actions,
.hlf-service-cta--private-vermoegensgestaltung .hlf-cta__actions {
    align-self: start;
    margin-top: 0;
}

/* CTA auf „Über die Kanzlei“ bleibt linksbündig und kompakt. */
.hlf-about-cta {
    text-align: left;
}

.hlf-about-cta .wp-block-buttons,
.hlf-about-cta .hlf-cta__actions {
    justify-content: flex-start;
    margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (max-width: 800px) {
    :root {
        --hlf-component-card-padding: 1.45rem;
        --hlf-component-cta-gap: 1.5rem;
    }

    .hlf-cta__actions {
        align-self: start;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hlf-card--interactive:hover,
    .hlf-card--interactive:focus-within,
    .hlf-home-news-card:hover,
    .hlf-why-card:hover {
        transform: none;
    }
}


/* === Quality refinements (formerly hlf-quality-4.3.3.css) === */
/**
 * HLF 4.3.3 – Visueller Qualitätsdurchlauf
 * Abschließende, seitenübergreifende Konsolidierung ohne neue Funktionen.
 */

:root {
    --hlf-quality-focus-width: 2px;
    --hlf-quality-focus-offset: 3px;
    --hlf-quality-link-transition: 180ms ease;
}

/* Textlinks: einheitliche Bewegung, Unterstreichung und Tastaturfokus. */
.hlf-text-link {
    text-underline-offset: .22em;
    text-decoration-thickness: .08em;
    transition:
        color var(--hlf-quality-link-transition),
        text-decoration-color var(--hlf-quality-link-transition);
}

.hlf-text-link:hover {
    text-decoration: underline;
}

.hlf-text-link:focus-visible,
.entry-content a:focus-visible,
.hlf-footer a:focus-visible {
    border-radius: .15rem;
    outline: var(--hlf-quality-focus-width) solid currentColor;
    outline-offset: var(--hlf-quality-focus-offset);
}

/* Karten: Hover und Tastaturfokus erhalten dieselbe visuelle Gewichtung. */
.hlf-card--interactive {
    transition:
        transform var(--hlf-quality-link-transition),
        box-shadow var(--hlf-quality-link-transition),
        border-color var(--hlf-quality-link-transition);
}

.hlf-card--interactive:focus-within {
    outline: var(--hlf-quality-focus-width) solid var(--wp--preset--color--purple, #4a255f);
    outline-offset: var(--hlf-quality-focus-offset);
}

/* Verhindert doppelte Fokusrahmen bei vollständig verlinkten Karten. */
.hlf-card--interactive:focus-within .hlf-card__full-link:focus-visible {
    outline: none;
}

/* Breadcrumbs: lange Bezeichnungen dürfen auf kleinen Geräten sauber umbrechen. */
.hlf-breadcrumb__current {
    overflow-wrap: anywhere;
}

/* Einheitliche Abstände für CTA-Aktionsbereiche. */
.hlf-cta__actions,
.hlf-about-cta .wp-block-buttons {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .hlf-breadcrumb__list {
        align-items: flex-start;
    }

    .hlf-breadcrumb__current {
        overflow: visible;
        max-width: 100%;
        text-overflow: clip;
        white-space: normal;
    }

    .hlf-card--interactive:focus-within {
        outline-offset: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hlf-text-link,
    .hlf-card--interactive {
        transition: none;
    }
}


/* === HLF 5.2.2 – Tastatur und Fokus === */
.hlf-skip-link:focus,
.hlf-skip-link:focus-visible {
    top: 1rem;
    left: 1rem;
    z-index: 100001;
    display: inline-block;
    width: auto;
    height: auto;
    padding: .75rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    border: 2px solid currentColor;
    border-radius: .2rem;
    outline: 3px solid var(--wp--preset--color--purple, #4a255f);
    outline-offset: 3px;
    background: #fff;
    color: #262626;
    text-decoration: none;
}

#primary[tabindex="-1"]:focus {
    outline: none;
}

.hlf-menu-toggle:focus-visible,
.hlf-language-switcher a:focus-visible,
.hlf-primary-navigation a:focus-visible,
.hlf-site-branding a:focus-visible {
    outline-width: 3px;
    outline-style: solid;
    outline-offset: .35rem;
}

body.hlf-menu-open .hlf-menu-toggle:focus-visible,
body.hlf-menu-open .hlf-primary-navigation a:focus-visible {
    outline-color: var(--wp--preset--color--purple-light, #d8c4e2);
}

/* === HLF 5.2.3 – Kontrast und visuelle Zugänglichkeit === */
:root {
    --hlf-a11y-focus-light: #ffffff;
    --hlf-a11y-focus-dark: #262626;
}

/* Fokus bleibt auf hellen und dunklen Flächen klar erkennbar. */
:where(a, button, input, textarea, select, summary):focus-visible {
    outline-width: 3px;
    outline-style: solid;
    outline-color: var(--wp--preset--color--purple, #2f173d);
    outline-offset: 3px;
}

.hlf-home-section--dark :where(a, button):focus-visible,
.hlf-about-hero :where(a, button):focus-visible,
.hlf-about-section--approach :where(a, button):focus-visible,
body.hlf-menu-open :where(a, button):focus-visible {
    outline-color: var(--hlf-a11y-focus-light);
}

/* Links im Fließtext sind nicht ausschließlich über Farbe erkennbar. */
.entry-content p a,
.entry-content li a {
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

/* Lange Bezeichnungen bleiben auch bei Textvergrößerung vollständig lesbar. */
@media (max-width: 80rem) {
    .hlf-home-hero__title,
    .hlf-about-hero h1,
    .hlf-about-hero__statement p,
    .hlf-about-section--approach h2,
    .hlf-service-hero__title {
        overflow-wrap: anywhere;
        white-space: normal;
    }
}

/* Windows High Contrast / erzwungene Farben. */
@media (forced-colors: active) {
    :where(a, button, input, textarea, select, summary):focus-visible,
    .hlf-card--interactive:focus-within,
    .hlf-home-service-card:focus-within,
    .hlf-home-news-card:focus-within,
    .hlf-why-card:focus-within {
        outline: 3px solid Highlight;
        outline-offset: 3px;
    }

    .hlf-button,
    .hlf-header-cta,
    .wp-element-button,
    .wp-block-button__link {
        border: 1px solid ButtonText;
        forced-color-adjust: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    .hlf-menu-overlay,
    .hlf-menu-toggle,
    .hlf-menu a,
    .hlf-button,
    .wp-block-button__link,
    .hlf-card--interactive,
    .hlf-home-news-card,
    .hlf-why-card {
        animation: none !important;
        transition: none !important;
    }
}

/* HLF 5.4.2 – mobile Header vollständig im Viewport halten. */
@media (max-width: 782px) {
    .hlf-site-header {
        top: 0;
        overflow: visible;
    }

    .admin-bar .hlf-site-header {
        top: 46px;
    }

    .hlf-site-header__inner {
        height: auto;
        min-height: var(--hlf-header-height);
        padding-top: 0;
        padding-bottom: 0;
    }

    .hlf-site-branding,
    .hlf-site-branding .custom-logo-link,
    .hlf-header-logo {
        min-height: 0;
        overflow: visible;
    }

    .hlf-site-branding .custom-logo,
    .hlf-header-logo img {
        max-height: calc(var(--hlf-header-height) - 1rem);
        object-fit: contain;
    }
}

/* HLF 5.4.2.1 – kein doppelter Adminbar-Versatz im mobilen Sticky-Header. */
@media (max-width: 782px) {
    .admin-bar .hlf-site-header {
        top: 0;
    }

    .admin-bar .hlf-primary-navigation {
        top: 0;
        min-height: 100dvh;
    }
}

/* HLF 8.4.12 – gemeinsame kompakte Typografie für Impressum und Datenschutz. */
body.hlf-legal-page .hlf-entry-header h1,
body.hlf-legal-page .hlf-entry-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.25rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 1.5rem !important;
}

body.hlf-legal-page .hlf-entry-content h2,
body.hlf-legal-page .hlf-entry-content .wp-block-heading:is(h2) {
    font-size: clamp(1.35rem, 2.4vw, 1.65rem) !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    margin-top: 2rem !important;
    margin-bottom: 0.6rem !important;
    letter-spacing: 0 !important;
}

body.hlf-legal-page .hlf-entry-content h3,
body.hlf-legal-page .hlf-entry-content .wp-block-heading:is(h3) {
    font-size: clamp(1.15rem, 2vw, 1.3rem) !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    margin-top: 1.6rem !important;
    margin-bottom: 0.5rem !important;
}

body.hlf-legal-page .hlf-entry-content p,
body.hlf-legal-page .hlf-entry-content ul,
body.hlf-legal-page .hlf-entry-content ol {
    margin-bottom: 0.85rem;
}

body.hlf-legal-page .hlf-entry-content ul,
body.hlf-legal-page .hlf-entry-content ol {
    padding-left: 1.25rem;
}

body.hlf-legal-page .hlf-entry-content li + li {
    margin-top: 0.3rem;
}

@media (max-width: 600px) {
    body.hlf-legal-page .hlf-entry-content h2,
    body.hlf-legal-page .hlf-entry-content .wp-block-heading:is(h2) {
        margin-top: 1.65rem !important;
    }
}

/* HLF 8.1.8 – Hero-Buttons an Kontakt-Button angeglichen. */
.hlf-home-hero {
    padding-bottom: 1.8cm;
}

.hlf-home-hero__specialisation {
    margin-top: 0.15rem;
}

.hlf-home-hero__actions {
    gap: 0.93rem;
}

.hlf-home-hero__actions .hlf-button {
    min-width: 0;
}

@media (max-width: 620px) {
    .hlf-home-hero {
        padding-bottom: 1.8cm;
    }

    .hlf-home-hero__actions .hlf-button {
        min-width: 0;
    }
}


/* HLF 8.2.0 – Kontaktseite und Kanzlei-Abgleich. */
.hlf-contact-page,
.hlf-contact-hero,
.hlf-contact-main,
.hlf-contact-map {
    background: #fff;
}

.hlf-about-hero h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3.75rem);
}

.hlf-about-hero__role,
.hlf-about-hero__specialisation {
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 400;
}

/* HLF 8.2.1 – Kontakt-Button auf „Über die Kanzlei“ exakt wie auf der Startseite. */
.hlf-about-cta .wp-block-buttons,
.hlf-about-cta .wp-block-button {
    width: auto;
}

.hlf-about-cta .wp-block-button .wp-block-button__link,
.hlf-about-cta .wp-block-button__link {
    --hlf-button-bg: var(--wp--preset--color--purple);
    --hlf-button-color: #fff;
    --hlf-button-border: var(--wp--preset--color--purple);
    --hlf-button-hover-bg: transparent;
    --hlf-button-hover-color: var(--wp--preset--color--purple);
    --hlf-button-hover-border: var(--wp--preset--color--purple);

    width: auto;
    min-width: 0;
    min-height: var(--hlf-button-height);
    padding: 0.85rem var(--hlf-button-padding-inline);
    border: 1px solid var(--hlf-button-border);
    border-radius: var(--hlf-radius-button);
    background: var(--hlf-button-bg);
    color: var(--hlf-button-color);
    font-family: Arial, Helvetica, sans-serif;
    font-size: var(--hlf-font-button, var(--hlf-text-sm));
    font-weight: 600;
    letter-spacing: 0.105em;
    line-height: 1.15;
    text-transform: uppercase;
}

.hlf-about-cta .wp-block-button .wp-block-button__link:hover,
.hlf-about-cta .wp-block-button__link:hover {
    border-color: var(--hlf-button-hover-border);
    background: var(--hlf-button-hover-bg);
    color: var(--hlf-button-hover-color);
}


/* HLF 8.2.2 – Kanzlei-Kontaktbutton: doppelte Button-Formatierung am Gutenberg-Wrapper aufheben. */
.hlf-about-cta .wp-block-button.hlf-button,
.hlf-about-cta .wp-block-button.hlf-button--contact-primary {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
    line-height: normal;
    text-transform: none;
    transform: none;
}

.hlf-about-cta .wp-block-button.hlf-button:hover,
.hlf-about-cta .wp-block-button.hlf-button--contact-primary:hover {
    border: 0;
    background: transparent;
    color: inherit;
    transform: none;
}

/* Der eigentliche Link nutzt damit exakt das globale Button-System wie auf der Startseite. */
.hlf-about-cta .wp-block-button__link {
    width: auto;
    min-width: 0;
    box-sizing: border-box;
}

/* HLF 8.3.7 – Überschriften auf Unterseiten auf maximal 60 px begrenzen.
 * Das Vollbild-/Burgermenü bleibt ausdrücklich unverändert.
 */
body:not(.home) .hlf-service-hero h1 {
    font-size: clamp(2.75rem, 6vw, 60px);
}

body:not(.home) .hlf-service-prose h2,
body:not(.home) .hlf-service-split h2,
body:not(.home) .hlf-service-section-heading h2,
body:not(.home) .hlf-service-why h2,
body:not(.home) .hlf-service-cta h2,
body:not(.home) .hlf-section-heading h2,
body:not(.home) .hlf-lawyer h2,
body:not(.home) .hlf-contact-panel h2,
body:not(.home) .hlf-cta__title,
body:not(.home) .hlf-about-section h2 {
    font-size: clamp(2.4rem, 5vw, 60px);
}

body:not(.home) .hlf-contact-hero h1,
body:not(.home) .hlf-styleguide__hero h1 {
    font-size: clamp(3rem, 7vw, 60px);
}

body:not(.home) h1 {
    --hlf-text-h1: clamp(2.6rem, 5.2vw, 60px);
}
