/*
Theme Name: MH-Theme
Theme URI: https://wordpress.org/
Author: MH
Description: Responsives Mehrseiten-Theme mit frei gestaltbaren Header-Reihen, Gutenberg-, Elementor- und Contact-Form-7-Unterstützung.
Version: 3.0.3
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: elisabeth-buchhaltung
Tags: custom-colors, custom-logo, custom-menu, featured-images, full-width-template, translation-ready
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --ebk-ink: #231f20;
    --ebk-ink-soft: #5f5d5d;
    --ebk-sage: #005d36;
    --ebk-gold: #005d36;
    --ebk-paper: #f3f3f1;
    --ebk-paper-deep: #e8e8e5;
    --ebk-white: #ffffff;
    --ebk-border: rgba(35, 31, 32, 0.14);
    --ebk-shadow: 0 20px 55px rgba(35, 31, 32, 0.08);
    --ebk-radius: 20px;
    --ebk-container: 1220px;
    --ebk-header-height: 176px;
    --ebk-font-heading: Georgia, "Times New Roman", serif;
    --ebk-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ebk-font-menu: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ebk-font-button: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ebk-font-footer: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ebk-font-header: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ebk-footer-font-size: 12px;
    --ebk-footer-text: #231f20;
    --ebk-footer-link: #231f20;
    --ebk-footer-background: #dededb;
    --ebk-header-font-size: 13px;
    --ebk-header-label-size: 10px;
    --ebk-header-text: #231f20;
    --ebk-header-label: #005d36;
    --ebk-header-background: #f3f3f1;
    --ebk-header-logo-width: 142px;
    --ebk-header-min-height: 126px;
    --ebk-menu-font-size: 13px;
    --ebk-menu-mobile-font-size: 20px;
    --ebk-menu-font-weight: 650;
    --ebk-menu-text: #231f20;
    --ebk-menu-hover-text: #005d36;
    --ebk-menu-background: #dededb;
    --ebk-menu-hover-background: #ededec;
    --ebk-menu-dropdown-background: #e8e8e5;
    --ebk-menu-min-height: 58px;
    --ebk-menu-item-gap: 7px;
    --ebk-menu-item-padding: 15px;
    --ebk-nav-button-background: #005930;
    --ebk-nav-button-text: #ffffff;
    --ebk-nav-button-hover-background: #004a2b;
    --ebk-nav-button-hover-text: #ffffff;
    --ebk-nav-button-border-color: #ffffff;
    --ebk-nav-button-border-width: 1px;
    --ebk-nav-button-border-radius: 7px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--ebk-header-height) + 24px);
}

body {
    margin: 0;
    color: var(--ebk-ink);
    background: var(--ebk-paper);
    font-family: var(--ebk-font-body);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--ebk-gold);
    outline-offset: 4px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    clip-path: inset(50%);
    border: 0;
}

.skip-link:focus {
    top: 14px;
    left: 14px;
    z-index: 99999;
    width: auto;
    height: auto;
    padding: 12px 18px;
    overflow: visible;
    color: var(--ebk-white);
    background: var(--ebk-ink);
    clip: auto;
    clip-path: none;
}

.ebk-container {
    width: min(calc(100% - 48px), var(--ebk-container));
    margin-inline: auto;
}

.ebk-section {
    position: relative;
    padding-block: 112px;
}

.ebk-section--white {
    background: var(--ebk-white);
}

.ebk-section--dark {
    overflow: hidden;
    color: var(--ebk-white);
    background: var(--ebk-ink);
}

.ebk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--ebk-sage);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ebk-eyebrow::before {
    width: 26px;
    height: 1px;
    background: currentColor;
    content: "";
}

.ebk-section--dark .ebk-eyebrow {
    color: var(--ebk-gold);
}

.ebk-heading {
    margin: 0;
    font-family: var(--ebk-font-heading);
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.ebk-heading em,
.ebk-hero__title em {
    color: var(--ebk-sage);
    font-style: italic;
}

.ebk-section--dark .ebk-heading em {
    color: var(--ebk-gold);
}

.ebk-lead {
    max-width: 620px;
    color: var(--ebk-ink-soft);
    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.85;
}

.ebk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    padding: 14px 25px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ebk-white);
    background: var(--ebk-ink);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.ebk-button:hover {
    transform: translateY(-2px);
    background: var(--ebk-sage);
}

.ebk-button--light {
    color: var(--ebk-ink);
    background: var(--ebk-white);
}

.ebk-button--light:hover {
    color: var(--ebk-ink);
    background: var(--ebk-paper-deep);
}

.ebk-button--ghost {
    border-color: var(--ebk-border);
    color: var(--ebk-ink);
    background: transparent;
}

.ebk-button--ghost:hover {
    border-color: var(--ebk-sage);
    color: var(--ebk-white);
    background: var(--ebk-sage);
}

.ebk-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: rgba(248, 246, 241, 0.9);
    backdrop-filter: blur(18px);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.admin-bar .ebk-site-header {
    top: 32px;
}

.ebk-site-header.is-scrolled {
    border-color: var(--ebk-border);
    box-shadow: 0 8px 32px rgba(24, 49, 73, 0.045);
}

.ebk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--ebk-header-height);
    gap: 28px;
}

.ebk-brand {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.ebk-brand__mark {
    display: grid;
    width: 41px;
    height: 41px;
    place-items: center;
    border: 1px solid rgba(126, 140, 113, 0.4);
    border-radius: 50%;
    color: var(--ebk-sage);
    font-family: var(--ebk-font-heading);
    font-size: 16px;
}

.ebk-brand__name {
    display: block;
    font-family: var(--ebk-font-heading);
    font-size: 19px;
    line-height: 1.15;
}

.ebk-brand__subtitle {
    display: block;
    margin-top: 3px;
    color: var(--ebk-ink-soft);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.custom-logo-link img {
    max-width: 240px;
    max-height: 62px;
    object-fit: contain;
}

.ebk-nav-wrap {
    display: flex;
    align-items: center;
    gap: 27px;
}

.ebk-primary-nav .menu,
.ebk-primary-nav .ebk-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ebk-primary-nav a {
    color: var(--ebk-ink-soft);
    font-size: 13px;
    font-weight: 550;
    text-decoration: none;
}

.ebk-primary-nav a:hover,
.ebk-primary-nav a.is-active {
    color: var(--ebk-ink);
}

.ebk-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--ebk-border);
    border-radius: 50%;
    background: transparent;
}

.ebk-menu-toggle svg {
    width: 22px;
    height: 22px;
}

.ebk-hero {
    position: relative;
    overflow: hidden;
    padding: 106px 0 86px;
}

.ebk-hero::before {
    position: absolute;
    top: 20px;
    right: -140px;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(126, 140, 113, 0.13);
    border-radius: 50%;
    content: "";
}

.ebk-hero-grid {
    display: grid;
    position: relative;
    z-index: 1;
    align-items: center;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.8fr);
    gap: 80px;
}

.ebk-hero__title {
    max-width: 760px;
    margin: 0;
    font-family: var(--ebk-font-heading);
    font-size: clamp(57px, 7.2vw, 91px);
    font-weight: 400;
    line-height: 0.99;
    letter-spacing: -0.065em;
}

.ebk-hero__description {
    max-width: 575px;
    margin: 27px 0 0;
    color: var(--ebk-ink-soft);
    font-size: 18px;
    line-height: 1.85;
}

.ebk-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 33px;
}

.ebk-hero__note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 0;
    color: var(--ebk-ink-soft);
    font-size: 13px;
}

.ebk-hero__note::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ebk-sage);
    content: "";
}

.ebk-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 495px;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 34px;
    background: linear-gradient(150deg, #efebe3 0%, #e9e5dc 60%, #e1e4da 100%);
    box-shadow: var(--ebk-shadow);
}

.ebk-hero-card::before,
.ebk-hero-card::after {
    position: absolute;
    border: 1px solid rgba(126, 140, 113, 0.17);
    border-radius: 50%;
    content: "";
}

.ebk-hero-card::before {
    right: -100px;
    bottom: 38px;
    width: 290px;
    height: 290px;
}

.ebk-hero-card::after {
    right: -58px;
    bottom: 80px;
    width: 206px;
    height: 206px;
}

.ebk-hero-card__label {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--ebk-ink-soft);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ebk-hero-card__quote {
    position: relative;
    z-index: 1;
    max-width: 310px;
    margin: 75px 0 0;
    font-family: var(--ebk-font-heading);
    font-size: 37px;
    font-weight: 400;
    line-height: 1.19;
    letter-spacing: -0.035em;
}

.ebk-hero-card__signature {
    position: absolute;
    z-index: 1;
    right: 38px;
    bottom: 40px;
    left: 38px;
    padding-top: 18px;
    border-top: 1px solid rgba(24, 49, 73, 0.16);
    color: var(--ebk-ink-soft);
    font-size: 13px;
}

.ebk-trustbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 83px;
    padding-top: 28px;
    border-top: 1px solid var(--ebk-border);
}

.ebk-trustbar__item {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ebk-ink-soft);
    font-size: 13px;
}

.ebk-trustbar__item svg {
    flex: 0 0 19px;
    color: var(--ebk-sage);
}

.ebk-section-intro {
    display: grid;
    align-items: end;
    grid-template-columns: 1fr minmax(240px, 410px);
    gap: 60px;
    margin-bottom: 49px;
}

.ebk-section-intro .ebk-lead {
    margin: 0;
    font-size: 16px;
}

.ebk-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ebk-service-card {
    min-height: 273px;
    padding: 31px 28px;
    border: 1px solid var(--ebk-border);
    border-radius: 22px;
    background: var(--ebk-white);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ebk-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ebk-shadow);
}

.ebk-service-card__icon {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border-radius: 13px;
    color: var(--ebk-sage);
    background: rgba(126, 140, 113, 0.09);
}

.ebk-service-card__icon svg {
    width: 22px;
    height: 22px;
}

.ebk-service-card__title {
    margin: 24px 0 8px;
    font-family: var(--ebk-font-heading);
    font-size: 23px;
    font-weight: 400;
    line-height: 1.25;
}

.ebk-service-card__text {
    margin: 0;
    color: var(--ebk-ink-soft);
    font-size: 14px;
    line-height: 1.8;
}

.ebk-about-grid {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(280px, 0.83fr) minmax(0, 1fr);
    gap: 105px;
}

.ebk-about-portrait {
    display: flex;
    position: relative;
    min-height: 470px;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    border-radius: 220px 220px 24px 24px;
    background: linear-gradient(155deg, #e7e3d9 0%, #f2efe9 50%, #dce0d5 100%);
}

.ebk-about-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ebk-about-portrait__monogram {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(126, 140, 113, 0.37);
    font-family: var(--ebk-font-heading);
    font-size: 120px;
    letter-spacing: -0.09em;
}

.ebk-about-portrait__caption {
    position: relative;
    z-index: 1;
    width: calc(100% - 38px);
    margin: 0 0 19px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 254, 251, 0.86);
    backdrop-filter: blur(12px);
}

.ebk-about-portrait__caption strong,
.ebk-about-portrait__caption span {
    display: block;
}

.ebk-about-portrait__caption strong {
    font-family: var(--ebk-font-heading);
    font-size: 18px;
    font-weight: 400;
}

.ebk-about-portrait__caption span {
    color: var(--ebk-ink-soft);
    font-size: 12px;
}

.ebk-about-copy .ebk-lead {
    margin: 24px 0 26px;
    font-size: 16px;
}

.ebk-checklist {
    display: grid;
    gap: 10px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.ebk-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.ebk-checklist svg {
    flex: 0 0 18px;
    margin-top: 5px;
    color: var(--ebk-sage);
}

.ebk-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 27px;
    margin-top: 56px;
}

.ebk-process-step {
    padding-top: 23px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ebk-process-step__number {
    color: var(--ebk-gold);
    font-family: var(--ebk-font-heading);
    font-size: 33px;
}

.ebk-process-step__title {
    margin: 14px 0 8px;
    font-family: var(--ebk-font-heading);
    font-size: 25px;
    font-weight: 400;
}

.ebk-process-step__text {
    max-width: 310px;
    margin: 0;
    color: rgba(255, 254, 251, 0.7);
    font-size: 14px;
}

.ebk-contact-grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 0.87fr) minmax(330px, 1fr);
    gap: 86px;
}

.ebk-contact-copy .ebk-lead {
    margin: 22px 0 33px;
    font-size: 16px;
}

.ebk-contact-details {
    display: grid;
    gap: 21px;
    margin: 0;
}

.ebk-contact-details__item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.ebk-contact-details__item svg {
    flex: 0 0 20px;
    margin-top: 4px;
    color: var(--ebk-sage);
}

.ebk-contact-details__item strong,
.ebk-contact-details__item a,
.ebk-contact-details__item span {
    display: block;
}

.ebk-contact-details__item strong {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ebk-contact-details__item a,
.ebk-contact-details__item span {
    color: var(--ebk-ink-soft);
    font-size: 14px;
}

.ebk-form-card {
    padding: 34px;
    border: 1px solid var(--ebk-border);
    border-radius: 24px;
    background: var(--ebk-white);
    box-shadow: var(--ebk-shadow);
}

.ebk-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.ebk-form-field {
    display: grid;
    gap: 7px;
}

.ebk-form-field--wide {
    grid-column: 1 / -1;
}

.ebk-form-field label {
    font-size: 12px;
    font-weight: 650;
}

.ebk-form-field input,
.ebk-form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--ebk-border);
    border-radius: 10px;
    color: var(--ebk-ink);
    background: var(--ebk-paper);
    font-size: 14px;
}

.ebk-form-field textarea {
    min-height: 130px;
    resize: vertical;
}

.ebk-form-field input:focus,
.ebk-form-field textarea:focus {
    border-color: var(--ebk-sage);
    outline: 0;
}

.ebk-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    grid-column: 1 / -1;
    color: var(--ebk-ink-soft);
    font-size: 12px;
    line-height: 1.7;
}

.ebk-form-consent input {
    flex: 0 0 15px;
    margin-top: 4px;
    accent-color: var(--ebk-sage);
}

.ebk-form-submit {
    width: 100%;
    margin-top: 2px;
    cursor: pointer;
}

.ebk-form-note {
    margin: 12px 0 0;
    color: var(--ebk-ink-soft);
    font-size: 11px;
    text-align: center;
}

.ebk-form-message {
    margin: 0 0 20px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 13px;
}

.ebk-form-message--success {
    color: #315741;
    background: #e6eee5;
}

.ebk-form-message--error {
    color: #81483f;
    background: #f7eae6;
}

.ebk-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ebk-site-footer {
    padding-block: 30px;
    border-top: 1px solid var(--ebk-border);
    background: var(--ebk-footer-background);
}

.ebk-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ebk-footer-copy,
.ebk-footer-links a {
    font-family: var(--ebk-font-footer);
    font-size: var(--ebk-footer-font-size);
}

.ebk-footer-copy {
    margin: 0;
    color: var(--ebk-footer-text);
}

.ebk-footer-links {
    display: flex;
    gap: 20px;
}

.ebk-footer-links a {
    color: var(--ebk-footer-link);
}

.ebk-content-shell {
    max-width: 840px;
    padding-block: 80px 110px;
}

.ebk-content-shell > h1 {
    margin-bottom: 35px;
}

.ebk-content-shell .entry-content > * + * {
    margin-top: 1em;
}

.ebk-reveal,
.ebk-reveal.is-visible,
.no-js .ebk-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (max-width: 1050px) {
    .ebk-nav-wrap {
        gap: 17px;
    }

    .ebk-primary-nav .menu,
    .ebk-primary-nav .ebk-menu {
        gap: 16px;
    }

    .ebk-hero-grid,
    .ebk-about-grid,
    .ebk-contact-grid {
        gap: 45px;
    }

    .ebk-hero-card {
        min-height: 460px;
    }
}

@media (max-width: 860px) {
    :root {
        --ebk-header-height: 74px;
    }

    .ebk-section {
        padding-block: 86px;
    }

    .ebk-menu-toggle {
        display: inline-flex;
    }

    .ebk-nav-wrap {
        display: none;
        position: fixed;
        top: var(--ebk-header-height);
        right: 0;
        bottom: 0;
        left: 0;
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
        padding: 35px 24px;
        background: var(--ebk-paper);
    }

    .admin-bar .ebk-nav-wrap {
        top: calc(var(--ebk-header-height) + 32px);
    }

    .ebk-nav-wrap.is-open {
        display: flex;
    }

    .ebk-primary-nav .menu,
    .ebk-primary-nav .ebk-menu {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .ebk-primary-nav li {
        border-bottom: 1px solid var(--ebk-border);
    }

    .ebk-primary-nav a {
        display: block;
        padding: 15px 0;
        font-family: var(--ebk-font-heading);
        font-size: 22px;
    }

    .ebk-hero {
        padding-top: 80px;
    }

    .ebk-hero-grid,
    .ebk-about-grid,
    .ebk-contact-grid {
        grid-template-columns: 1fr;
    }

    .ebk-hero-card {
        min-height: 350px;
    }

    .ebk-hero-card__quote {
        margin-top: 45px;
    }

    .ebk-section-intro {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .ebk-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ebk-about-portrait {
        max-width: 460px;
        min-height: 480px;
    }

    .ebk-contact-grid {
        gap: 42px;
    }
}

/* --------------------------------------------------------------------------
   Frei belegbarer zweireihiger Header 2.0.21
   Reihe 1: mittige Trapezfläche mit der Neigung des E im Logo.
   Reihe 2: gerade, vollflächige Hintergrundfarbe.
   -------------------------------------------------------------------------- */

.ebk-site-header {
    display: grid;
    position: relative;
    top: auto;
    row-gap: var(--ebk-header-row-gap);
    border: 0;
    background: #fff;
    backdrop-filter: none;
}

.admin-bar .ebk-site-header {
    top: auto;
}

.ebk-header-row {
    position: relative;
    isolation: isolate;
    background: transparent;
}

.ebk-header-row::before {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.ebk-header-row--1 {
    min-height: var(--ebk-header-row-1-height);
}

.ebk-header-row--1::before {
    top: 0;
    bottom: 0;
    right: 0;
    left: var(--ebk-header-row-1-start);
    width: calc(100% - var(--ebk-header-row-1-start));
    background: var(--ebk-header-row-1-background);
    opacity: var(--ebk-header-row-1-opacity);
    transform: none;
    clip-path: polygon(0 0, 100% 0, 100% 100%, var(--ebk-header-row-1-slant) 100%);
}

.ebk-header-row--2 {
    min-height: var(--ebk-header-row-2-height);
    color: var(--ebk-header-row-2-text);
    font-family: var(--ebk-font-header-row-2);
    font-size: var(--ebk-header-row-2-font-size);
}

.ebk-header-row--2::before {
    inset: 0;
    background: var(--ebk-header-row-2-background);
    opacity: var(--ebk-header-row-2-opacity);
}

.ebk-header-row__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 2.4vw, 36px);
    padding-block: 8px;
}

.ebk-header-row--1 .ebk-header-row__inner {
    min-height: var(--ebk-header-row-1-height);
}

.ebk-header-row--2 .ebk-header-row__inner {
    min-height: var(--ebk-header-row-2-height);
}

.ebk-header-slot {
    display: flex;
    min-width: 0;
    align-items: center;
}

.ebk-header-slot--left {
    justify-content: flex-start;
}

.ebk-header-slot--center {
    justify-content: center;
    text-align: center;
}

.ebk-header-slot--right {
    justify-content: flex-end;
    text-align: right;
}

.ebk-header-slot .ebk-header-contact {
    margin-left: 0;
    transform: translateX(var(--ebk-header-contact-offset-x));
}

.ebk-header-slot--logo > .ebk-logo-link,
.ebk-header-slot--logo > .custom-logo-link {
    transform: translateX(var(--ebk-header-logo-offset-x));
}

.ebk-header-slot--center .ebk-header-contact > div {
    justify-items: center;
}

.ebk-header-slot--right .ebk-header-contact > div {
    justify-items: end;
}

.ebk-header-custom-text,
.ebk-header-custom-text p {
    margin: 0;
}

.ebk-header-row--2 .ebk-header-custom-text,
.ebk-header-row--2 .ebk-header-custom-text a,
.ebk-header-row--2 .ebk-header-contact span,
.ebk-header-row--2 .ebk-header-contact a {
    color: var(--ebk-header-row-2-text);
}

.ebk-header-row .ebk-header-navigation {
    width: auto;
    min-height: var(--ebk-menu-min-height);
}

@media (min-width: 861px) and (max-width: 1150px) {
    .ebk-header-row--1 .ebk-header-row__inner {
        gap: 14px;
    }

    .ebk-header-row--1 .ebk-header-slot--contact .ebk-header-contact {
        display: none;
    }
}

@media (max-width: 860px) {
    .ebk-header-row__inner {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 10px;
    }

    .ebk-header-row--1::before {
        left: 0;
        width: 100%;
    }

    .ebk-header-slot .ebk-logo-link img,
    .ebk-header-slot .custom-logo-link img {
        width: min(var(--ebk-header-logo-width), 104px);
        max-width: min(var(--ebk-header-logo-width), 104px);
        max-height: 104px;
    }

    .ebk-header-slot .ebk-header-contact {
        display: none;
    }

    .ebk-header-slot .ebk-menu-toggle {
        margin-left: 0;
    }

    .ebk-header-row .ebk-nav-wrap {
        top: var(--ebk-header-total-height);
    }

    .admin-bar .ebk-header-row .ebk-nav-wrap {
        top: calc(var(--ebk-header-total-height) + 46px);
    }
}

@media (min-width: 783px) and (max-width: 860px) {
    .admin-bar .ebk-header-row .ebk-nav-wrap {
        top: calc(var(--ebk-header-total-height) + 32px);
    }
}

@media (max-width: 600px) {
    .ebk-container {
        width: min(calc(100% - 36px), var(--ebk-container));
    }

    .ebk-section {
        padding-block: 72px;
    }

    .ebk-brand__name {
        font-size: 16px;
    }

    .ebk-brand__subtitle {
        font-size: 9px;
    }

    .ebk-hero {
        padding-top: 63px;
    }

    .ebk-hero__title {
        font-size: clamp(52px, 14vw, 72px);
    }

    .ebk-hero-card {
        min-height: 325px;
        padding: 27px;
    }

    .ebk-hero-card__quote {
        font-size: 32px;
    }

    .ebk-hero-card__signature {
        right: 27px;
        bottom: 29px;
        left: 27px;
    }

    .ebk-trustbar,
    .ebk-service-grid,
    .ebk-process-grid,
    .ebk-form-grid {
        grid-template-columns: 1fr;
    }

    .ebk-trustbar {
        gap: 16px;
        margin-top: 56px;
    }

    .ebk-service-card {
        min-height: 225px;
    }

    .ebk-about-portrait {
        min-height: 410px;
    }

    .ebk-form-card {
        padding: 23px;
    }

    .ebk-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 782px) {
    .admin-bar .ebk-site-header {
        top: 46px;
    }

    .admin-bar .ebk-nav-wrap {
        top: calc(var(--ebk-header-height) + 46px);
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ebk-reveal {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Marken-Relaunch 2.0: Logogrün, schwarze Schrift, graue Flächen, Mehrseiten
   -------------------------------------------------------------------------- */

body {
    color: var(--ebk-ink);
    background: var(--ebk-paper);
}

:focus-visible {
    outline-color: var(--ebk-sage);
}

.ebk-section {
    padding-block: 94px;
}

.ebk-section--white {
    background: var(--ebk-white);
}

.ebk-section--soft {
    background: var(--ebk-paper-deep);
}

.ebk-eyebrow,
.ebk-heading em,
.ebk-hero__title em {
    color: var(--ebk-sage);
}

.ebk-heading,
.ebk-hero__title {
    color: var(--ebk-ink);
    font-style: normal;
}

.ebk-lead,
.ebk-hero__description,
.ebk-hero__note,
.ebk-service-row p,
.ebk-page-card__body > p,
.ebk-directory-card > p {
    color: var(--ebk-ink-soft);
}

.ebk-button {
    border-radius: 7px;
    color: #fff;
    background: var(--ebk-sage);
    box-shadow: 0 8px 22px rgba(0, 93, 54, 0.15);
}

.ebk-button:hover {
    color: #fff;
    background: #004a2b;
}

.ebk-button--ghost {
    border-color: var(--ebk-sage);
    color: var(--ebk-sage);
    background: transparent;
    box-shadow: none;
}

.ebk-button--ghost:hover {
    border-color: var(--ebk-sage);
    color: #fff;
    background: var(--ebk-sage);
}

.ebk-site-header {
    position: relative;
    top: auto;
    border-bottom: 0;
    background: var(--ebk-paper);
    backdrop-filter: none;
}

.admin-bar .ebk-site-header {
    top: auto;
}

.ebk-site-header.is-scrolled {
    border-color: transparent;
    box-shadow: none;
}

.ebk-brand-bar {
    background: var(--ebk-header-background);
}

.ebk-header-inner {
    min-height: var(--ebk-header-min-height);
    padding-block: 12px;
}

.ebk-logo-link,
.custom-logo-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    text-decoration: none;
}

.ebk-logo-link img,
.custom-logo-link img {
    width: var(--ebk-header-logo-width);
    max-width: var(--ebk-header-logo-width);
    max-height: var(--ebk-header-logo-width);
    object-fit: contain;
}

.ebk-header-contact {
    display: flex;
    align-items: center;
    gap: 52px;
    margin-left: auto;
}

.ebk-header-contact > div {
    display: grid;
    min-width: 245px;
    gap: 2px;
}

.ebk-header-contact span {
    color: var(--ebk-header-label);
    font-size: var(--ebk-header-label-size);
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ebk-header-contact strong,
.ebk-header-contact a {
    color: var(--ebk-header-text);
    font-size: var(--ebk-header-font-size);
    font-weight: 600;
    text-decoration: none;
}

.ebk-header-contact .ebk-header-contact__subheading {
    margin-top: 8px;
}

@media (min-width: 861px) {
    .ebk-brand-bar--left .ebk-header-inner,
    .ebk-brand-bar--center .ebk-header-inner,
    .ebk-brand-bar--right .ebk-header-inner {
        flex-direction: column;
        gap: 12px;
    }

    .ebk-brand-bar--left .ebk-header-inner {
        align-items: flex-start;
        text-align: left;
    }

    .ebk-brand-bar--center .ebk-header-inner {
        align-items: center;
        text-align: center;
    }

    .ebk-brand-bar--right .ebk-header-inner {
        align-items: flex-end;
        text-align: right;
    }

    .ebk-brand-bar--left .ebk-header-contact,
    .ebk-brand-bar--center .ebk-header-contact,
    .ebk-brand-bar--right .ebk-header-contact {
        margin-left: 0;
    }

    .ebk-brand-bar--center .ebk-header-contact > div {
        justify-items: center;
    }

    .ebk-brand-bar--right .ebk-header-contact > div {
        justify-items: end;
    }
}

.ebk-nav-wrap {
    display: flex;
    min-height: var(--ebk-menu-min-height);
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.ebk-primary-nav .menu,
.ebk-primary-nav .ebk-menu {
    gap: var(--ebk-menu-item-gap);
}

.ebk-primary-nav li {
    position: relative;
}

.ebk-primary-nav a {
    display: block;
    padding: 17px var(--ebk-menu-item-padding);
    color: var(--ebk-menu-text);
    font-size: var(--ebk-menu-font-size);
    font-weight: var(--ebk-menu-font-weight);
    line-height: 1.2;
}

.ebk-primary-nav a:hover,
.ebk-primary-nav a.is-active,
.ebk-primary-nav .current-menu-item > a,
.ebk-primary-nav .current_page_item > a {
    color: var(--ebk-menu-hover-text);
    background: var(--ebk-menu-hover-background);
}

.ebk-primary-nav .sub-menu {
    display: none;
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 7px;
    border: 1px solid var(--ebk-border);
    background: var(--ebk-menu-dropdown-background);
    box-shadow: var(--ebk-shadow);
    list-style: none;
}

.ebk-primary-nav li:hover > .sub-menu,
.ebk-primary-nav li:focus-within > .sub-menu {
    display: block;
}

.ebk-primary-nav .sub-menu a {
    padding: 12px 13px;
}

.ebk-hero {
    padding: 86px 0 46px;
    background: var(--ebk-paper);
}

.ebk-hero::before {
    display: none;
}

.ebk-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
    gap: 72px;
}

.ebk-hero__title {
    max-width: 720px;
    font-size: clamp(52px, 6.4vw, 82px);
    font-weight: 400;
    line-height: 1.02;
}

.ebk-hero__title em {
    font-style: normal;
}

.ebk-hero-media,
.ebk-page-hero__media {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    border: 1px solid var(--ebk-border);
    border-radius: var(--ebk-radius);
    background: #dededb;
}

.ebk-hero-media > img,
.ebk-page-hero__media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ebk-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: inherit;
    place-content: center;
    place-items: center;
    gap: 9px;
    padding: 30px;
    color: var(--ebk-ink-soft);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)),
        #dededb;
    text-align: center;
}

.ebk-image-placeholder svg {
    width: 39px;
    height: 39px;
    color: var(--ebk-sage);
}

.ebk-image-placeholder span {
    color: var(--ebk-ink);
    font-size: 14px;
    font-weight: 650;
}

.ebk-image-placeholder small {
    font-size: 11px;
}

.ebk-hero-media__caption {
    display: grid;
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    gap: 4px;
    padding: 17px 19px;
    border-left: 4px solid var(--ebk-sage);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.ebk-hero-media__caption span {
    color: var(--ebk-sage);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ebk-hero-media__caption strong {
    color: var(--ebk-ink);
    font-family: var(--ebk-font-heading);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
}

.ebk-trustbar {
    margin-top: 58px;
    padding: 24px 0;
    border-top: 1px solid var(--ebk-border);
    border-bottom: 1px solid var(--ebk-border);
}

.ebk-trustbar__item,
.ebk-trustbar__item svg {
    color: var(--ebk-ink);
}

.ebk-trustbar__item svg {
    color: var(--ebk-sage);
}

.ebk-page-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ebk-page-card {
    overflow: hidden;
    border: 1px solid var(--ebk-border);
    border-radius: var(--ebk-radius);
    background: var(--ebk-paper);
}

.ebk-page-card__media {
    display: block;
    height: 245px;
    overflow: hidden;
    border-bottom: 1px solid var(--ebk-border);
    background: #dededb;
    text-decoration: none;
}

.ebk-page-card__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.ebk-page-card:hover .ebk-page-card__media > img {
    transform: scale(1.025);
}

.ebk-image-placeholder--small {
    min-height: 245px;
}

.ebk-page-card__body {
    padding: 28px;
}

.ebk-page-card__body .ebk-eyebrow {
    margin-bottom: 12px;
}

.ebk-page-card__body h2,
.ebk-directory-card h2 {
    margin: 0;
    color: var(--ebk-ink);
    font-family: var(--ebk-font-heading);
    font-size: 29px;
    font-weight: 400;
}

.ebk-page-card__body > p,
.ebk-directory-card > p {
    margin: 14px 0 20px;
    font-size: 14px;
}

.ebk-text-link {
    color: var(--ebk-sage);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

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

.ebk-service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--ebk-border);
    border-left: 1px solid var(--ebk-border);
}

.ebk-service-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
    min-height: 175px;
    padding: 28px;
    border-right: 1px solid var(--ebk-border);
    border-bottom: 1px solid var(--ebk-border);
    background: rgba(255, 255, 255, 0.46);
}

.ebk-service-row__number {
    color: var(--ebk-sage);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.ebk-service-row h3 {
    margin: 0 0 8px;
    color: var(--ebk-ink);
    font-family: var(--ebk-font-heading);
    font-size: 24px;
    font-weight: 400;
}

.ebk-service-row h2 {
    margin: 0 0 8px;
    color: var(--ebk-ink);
    font-family: var(--ebk-font-heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
}

.ebk-services-page {
    min-height: 620px;
}

.ebk-overview-page {
    min-height: 620px;
}

.ebk-section-intro--single {
    grid-template-columns: minmax(0, 820px);
}

.ebk-overview-list--three .ebk-service-row:last-child {
    grid-column: 1 / -1;
}

.ebk-service-row--compact {
    min-height: 125px;
    align-items: center;
}

.ebk-service-row p {
    margin: 0;
    font-size: 14px;
}

.ebk-section-action {
    margin-top: 32px;
}

.ebk-contact-cta {
    background: #d9d9d6;
}

.ebk-contact-cta__inner {
    display: grid;
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 80px;
}

.ebk-contact-cta__inner .ebk-lead {
    margin-bottom: 0;
}

.ebk-contact-cta__actions {
    display: grid;
    justify-items: start;
    gap: 15px;
}

.ebk-page-hero {
    padding-block: 78px;
    border-bottom: 1px solid var(--ebk-border);
    background: var(--ebk-paper);
}

.ebk-page-hero--compact {
    padding-block: 70px;
}

.ebk-page-hero__grid {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
    gap: 80px;
}

.ebk-page-hero__grid--legal {
    grid-template-columns: minmax(0, 820px);
}

.ebk-page-hero__copy .ebk-lead,
.ebk-page-hero--compact .ebk-lead {
    margin: 24px 0 0;
}

.ebk-page-hero__media {
    min-height: 390px;
}

.ebk-page-content-wrap {
    max-width: 930px;
    padding-block: 78px 105px;
}

.entry-content {
    color: var(--ebk-ink);
    font-size: 17px;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
    color: var(--ebk-ink);
    font-family: var(--ebk-font-heading);
    font-weight: 400;
    line-height: 1.2;
}

.entry-content h2 {
    margin-top: 2.1em;
    font-size: 36px;
}

.entry-content h3 {
    margin-top: 1.8em;
    font-size: 27px;
}

.entry-content a {
    color: var(--ebk-sage);
}

.ebk-contact-copy .entry-content {
    margin-bottom: 32px;
}

.ebk-form-card {
    border-radius: var(--ebk-radius);
    background: var(--ebk-paper);
}

.ebk-form-field input,
.ebk-form-field textarea {
    color: var(--ebk-ink);
    background: #fff;
}

.ebk-form-message--success {
    color: #003d23;
    background: #dce9e3;
}

.ebk-site-footer {
    background: var(--ebk-footer-background);
}

.ebk-footer-copy {
    color: var(--ebk-footer-text);
}

.ebk-footer-links a {
    color: var(--ebk-footer-link);
}

.ebk-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ebk-directory-card {
    padding: 29px;
    border: 1px solid var(--ebk-border);
    border-radius: var(--ebk-radius);
    background: var(--ebk-paper);
}

@media (max-width: 1050px) {
    .ebk-header-contact {
        gap: 24px;
    }

    .ebk-hero-grid,
    .ebk-page-hero__grid {
        gap: 42px;
    }

    .ebk-page-card__body {
        padding: 23px;
    }
}

@media (max-width: 860px) {
    :root {
        --ebk-header-height: 108px;
    }

    .ebk-site-header,
    .admin-bar .ebk-site-header {
        position: relative;
        top: auto;
    }

    .ebk-header-inner {
        min-height: 108px;
        padding-block: 8px;
    }

    .ebk-logo-link img,
    .custom-logo-link img {
        width: 104px;
        max-width: 104px;
        max-height: 104px;
    }

    .ebk-header-contact {
        display: none;
    }

    .ebk-menu-toggle {
        display: inline-flex;
        margin-left: auto;
        border-color: rgba(0, 93, 54, 0.35);
        color: var(--ebk-sage);
        background: #fff;
    }

    .ebk-nav-wrap {
        display: none;
        position: fixed;
        z-index: 60;
        top: 108px;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
        padding: 27px 24px;
        background: var(--ebk-menu-dropdown-background);
        overflow-y: auto;
    }

    .admin-bar .ebk-nav-wrap {
        top: 140px;
    }

    .ebk-nav-wrap.is-open {
        display: flex;
    }

    .ebk-primary-nav .menu,
    .ebk-primary-nav .ebk-menu {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .ebk-primary-nav li {
        border-bottom: 1px solid var(--ebk-border);
    }

    .ebk-primary-nav a {
        padding: 14px 7px;
        color: var(--ebk-menu-text);
        font-size: var(--ebk-menu-mobile-font-size);
    }

    .ebk-primary-nav .sub-menu {
        display: block;
        position: static;
        min-width: 0;
        padding: 0 0 7px 17px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .ebk-primary-nav .sub-menu li:last-child {
        border-bottom: 0;
    }

    .ebk-primary-nav .sub-menu a {
        font-size: calc(var(--ebk-menu-mobile-font-size) - 4px);
    }

    .ebk-hero {
        padding-top: 68px;
    }

    .ebk-hero-grid,
    .ebk-page-hero__grid,
    .ebk-contact-cta__inner {
        grid-template-columns: 1fr;
    }

    .ebk-hero-media {
        min-height: 430px;
    }

    .ebk-page-card-grid,
    .ebk-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ebk-contact-cta__inner {
        gap: 35px;
    }
}

@media (max-width: 600px) {
    .ebk-section {
        padding-block: 68px;
    }

    .ebk-hero__title {
        font-size: clamp(46px, 13vw, 64px);
    }

    .ebk-hero-media,
    .ebk-page-hero__media {
        min-height: 350px;
    }

    .ebk-page-card-grid,
    .ebk-service-list,
    .ebk-directory-grid {
        grid-template-columns: 1fr;
    }

    .ebk-service-list {
        border-left: 0;
    }

    .ebk-service-row {
        min-height: 0;
        border-left: 1px solid var(--ebk-border);
    }

    .ebk-page-hero {
        padding-block: 58px;
    }

    .ebk-page-content-wrap {
        padding-block: 58px 78px;
    }

    .entry-content h2 {
        font-size: 30px;
    }
}

@media (max-width: 782px) {
    .admin-bar .ebk-nav-wrap {
        top: 154px;
    }
}

/* Schriftbereiche aus dem Customizer. Diese Regeln stehen bewusst am Ende,
   damit die gewählte Menüschrift auch in der mobilen Navigation gilt. */
.ebk-primary-nav a,
.ebk-primary-nav .sub-menu a {
    font-family: var(--ebk-font-menu);
}

.ebk-header-contact {
    font-family: var(--ebk-font-header);
}

.ebk-button,
.ebk-text-link,
.ebk-menu-toggle {
    font-family: var(--ebk-font-button);
}

/* Ausrichtung des Footers aus dem Customizer. */
.ebk-site-footer--left .ebk-footer-inner,
.ebk-site-footer--center .ebk-footer-inner,
.ebk-site-footer--right .ebk-footer-inner {
    flex-direction: column;
}

.ebk-site-footer--left .ebk-footer-inner {
    align-items: flex-start;
    text-align: left;
}

.ebk-site-footer--center .ebk-footer-inner {
    align-items: center;
    text-align: center;
}

.ebk-site-footer--right .ebk-footer-inner {
    align-items: flex-end;
    text-align: right;
}

.ebk-footer-copy a {
    color: var(--ebk-footer-link);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

/* --------------------------------------------------------------------------
   Header-Navigation 2.0.21
   Die Navigation liegt direkt zwischen Logo und rechtem Header-Bereich.
   Ein separates Navigationsband existiert nicht mehr.
   -------------------------------------------------------------------------- */

.ebk-primary-nav a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 10px var(--ebk-menu-item-padding);
    border: var(--ebk-nav-button-border-width) solid var(--ebk-nav-button-border-color);
    border-radius: var(--ebk-nav-button-border-radius);
    color: var(--ebk-nav-button-text);
    background: var(--ebk-nav-button-background);
    text-align: center;
}

.ebk-primary-nav a:hover,
.ebk-primary-nav a.is-active,
.ebk-primary-nav .current-menu-item > a,
.ebk-primary-nav .current_page_item > a {
    border-color: var(--ebk-nav-button-border-color);
    color: var(--ebk-nav-button-hover-text);
    background: var(--ebk-nav-button-hover-background);
}

@media (min-width: 861px) {
    .ebk-brand-bar .ebk-header-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: clamp(18px, 2.4vw, 36px);
        text-align: initial;
    }

    .ebk-header-navigation {
        position: relative;
        width: 100%;
        min-height: var(--ebk-menu-min-height);
        justify-content: center;
        grid-column: 2;
    }

    .ebk-primary-nav {
        margin-inline: auto;
    }

    .ebk-header-navigation--left .ebk-primary-nav {
        margin-right: auto;
        margin-left: 0;
    }

    .ebk-header-navigation--right .ebk-primary-nav {
        margin-right: 0;
        margin-left: auto;
    }

    .ebk-header-navigation--split .ebk-primary-nav,
    .ebk-header-navigation--center .ebk-primary-nav {
        margin-inline: auto;
    }
}

@media (min-width: 861px) and (max-width: 1150px) {
    .ebk-brand-bar .ebk-header-inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ebk-header-contact {
        display: none;
    }
}

@media (max-width: 860px) {
    .ebk-primary-nav .menu,
    .ebk-primary-nav .ebk-menu {
        gap: 10px;
    }

    .ebk-primary-nav li {
        border-bottom: 0;
    }

    .ebk-primary-nav a {
        padding: 12px 14px;
    }

    .ebk-primary-nav .sub-menu {
        display: grid;
        gap: 8px;
        padding: 8px 0 0 17px;
    }

    .ebk-header-row .ebk-nav-wrap {
        top: var(--ebk-header-total-height);
    }

    .admin-bar .ebk-header-row .ebk-nav-wrap {
        top: calc(var(--ebk-header-total-height) + 46px);
    }
}

@media (min-width: 783px) and (max-width: 860px) {
    .admin-bar .ebk-header-row .ebk-nav-wrap {
        top: calc(var(--ebk-header-total-height) + 32px);
    }
}

/* Abschließende Header-Prioritäten gegenüber älteren Layoutregeln. */
.ebk-site-header {
    background: #fff;
}

.ebk-header-row--2 .ebk-header-custom-text,
.ebk-header-row--2 .ebk-header-contact,
.ebk-header-row--2 .ebk-primary-nav a,
.ebk-header-row--2 .ebk-primary-nav .sub-menu a {
    font-family: var(--ebk-font-header-row-2);
    font-size: var(--ebk-header-row-2-font-size);
}

.ebk-header-contact > .ebk-header-contact__items {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 34px);
}

.ebk-header-contact__item {
    display: grid;
    min-width: max-content;
    gap: 2px;
}

.ebk-header-slot--center .ebk-header-contact__items {
    justify-content: center;
}

.ebk-header-slot--left .ebk-header-contact__items {
    justify-content: flex-start;
}

@media (min-width: 861px) and (max-width: 1150px) {
    .ebk-header-row .ebk-header-contact {
        display: flex;
    }
}

@media (min-width: 861px) and (max-width: 1050px) {
    .ebk-header-row .ebk-header-contact {
        display: none;
    }
}

/* Responsive Absicherung für die vollständige Website. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

.wp-block-table,
.entry-content table {
    max-width: 100%;
    overflow-x: auto;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

@media (max-width: 860px) {
    .ebk-container {
        width: min(calc(100% - 32px), var(--ebk-container));
    }

    .ebk-header-row__inner {
        min-width: 0;
    }

    .ebk-header-custom-text {
        overflow-wrap: anywhere;
    }
}

/* Beide Header-Reihen bleiben gemeinsam am oberen Bildschirmrand sichtbar. */
.ebk-site-header.is-sticky,
.admin-bar .ebk-site-header.is-sticky {
    position: sticky;
    z-index: 100;
    top: 0;
}

.ebk-site-header:not(.is-sticky),
.admin-bar .ebk-site-header:not(.is-sticky) {
    position: relative;
    top: auto;
}

.admin-bar .ebk-site-header.is-sticky {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .ebk-site-header.is-sticky {
        top: 46px;
    }
}

@media (max-width: 480px) {
    .ebk-container {
        width: min(calc(100% - 22px), var(--ebk-container));
    }

    .ebk-header-row__inner {
        gap: 6px;
    }

    .ebk-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* HEADER 1 und HEADER 2 richten sich an der tatsächlichen Viewportbreite aus. */
.ebk-header-row__inner {
    width: 100%;
    max-width: none;
    padding-right: clamp(14px, 3.5vw, 72px);
    padding-left: clamp(14px, 3.5vw, 72px);
}

@media (max-width: 860px) {
    .ebk-header-row__inner {
        width: 100%;
        padding-right: clamp(11px, 4vw, 28px);
        padding-left: clamp(11px, 4vw, 28px);
    }
}

/* Direkt in WordPress oder Elementor gepflegte Seiteninhalte. */
.mh-page-content > * + * {
    margin-top: 1em;
}

.mh-page-content .wp-block-buttons {
    gap: 12px;
}

.mh-page-content--elementor,
.mh-page-content--elementor > *:first-child,
.mh-page-content--elementor > *:last-child {
    margin-top: 0;
    margin-bottom: 0;
}

.mh-cf7-form,
.mh-page-content .wpcf7 {
    width: min(100%, 820px);
    margin-inline: auto;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--ebk-border);
    border-radius: var(--ebk-radius);
    background: var(--ebk-white);
    box-shadow: var(--ebk-shadow);
}

.mh-cf7-form .wpcf7-form,
.mh-page-content .wpcf7-form {
    display: grid;
    gap: 16px;
}

.mh-cf7-form .wpcf7-form > p,
.mh-page-content .wpcf7-form > p {
    margin: 0;
}

.mh-cf7-form label,
.mh-page-content .wpcf7 label {
    display: grid;
    gap: 7px;
    font-weight: 650;
}

.mh-cf7-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.mh-cf7-form select,
.mh-cf7-form textarea,
.mh-page-content .wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.mh-page-content .wpcf7 select,
.mh-page-content .wpcf7 textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--ebk-border);
    border-radius: 10px;
    color: var(--ebk-ink);
    background: var(--ebk-paper);
}

.mh-cf7-form textarea,
.mh-page-content .wpcf7 textarea {
    min-height: 130px;
    resize: vertical;
}

.mh-cf7-form input[type="submit"],
.mh-page-content .wpcf7 input[type="submit"] {
    min-height: 46px;
    padding: 11px 22px;
    border: var(--ebk-nav-button-border-width) solid var(--ebk-nav-button-border-color);
    border-radius: var(--ebk-nav-button-border-radius);
    color: var(--ebk-nav-button-text);
    background: var(--ebk-nav-button-background);
    font-family: var(--ebk-font-button);
    font-weight: 700;
    cursor: pointer;
}

.mh-cf7-form input[type="submit"]:hover,
.mh-cf7-form input[type="submit"]:focus-visible,
.mh-page-content .wpcf7 input[type="submit"]:hover,
.mh-page-content .wpcf7 input[type="submit"]:focus-visible {
    color: var(--ebk-nav-button-hover-text);
    background: var(--ebk-nav-button-hover-background);
}

.mh-cf7-form .wpcf7-not-valid-tip,
.mh-page-content .wpcf7-not-valid-tip {
    margin-top: 5px;
}

.mh-cf7-form .wpcf7-response-output,
.mh-page-content .wpcf7-response-output {
    margin: 8px 0 0;
}
