/*
Theme Name: E-Rechnung Hilfe
Theme URI: https://erechnung-hilfe.de/
Author: E-Rechnung Hilfe
Description: Schlankes Block-Theme für ein deutschsprachiges Hilfeportal zu E-Rechnungsfehlern.
Version: 1.1.5
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: erechnung-hilfe
*/

:root {
    --eh-text: #17263a;
    --eh-primary: #223852;
    --eh-primary-hover: #315f84;
    --eh-accent: #38658c;
    --eh-page: #dfe7ee;
    --eh-surface: #f5f8fa;
    --eh-surface-muted: #e9eff4;
    --eh-border: #c6d2dc;
    --eh-white: #ffffff;
    --eh-link: #075b9a;
    --eh-radius: 10px;
    --eh-shadow: 0 10px 28px rgba(23, 38, 58, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--eh-text);
    background: var(--eh-page);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/*
 * Keep the footer at the bottom of the browser window on short pages.
 * The footer remains part of the normal document flow and is not fixed.
 */
.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wp-site-blocks > main {
    flex: 1 0 auto;
}

.wp-site-blocks > footer {
    flex: 0 0 auto;
    margin-top: auto;
}

body.admin-bar .wp-site-blocks {
    min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .wp-site-blocks {
        min-height: calc(100vh - 46px);
    }
}

a {
    color: var(--eh-link);
    text-underline-offset: 2px;
}

a:hover,
a:focus {
    color: #003e6b;
}

.site-header {
    background: #1f2b3a;
    color: var(--eh-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
    min-height: 80px;
    padding: 0 24px;
}

.site-brand,
.site-brand a {
    margin: 0;
    color: var(--eh-white) !important;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.site-brand a:hover,
.site-brand a:focus {
    color: #dfeaf4 !important;
}

.site-footer {
    background: #1f2b3a;
    color: #d9e3ec;
}

.site-footer__inner {
    min-height: 92px;
    padding: 24px;
}

.site-footer p {
    margin: 0;
    color: #d9e3ec;
    font-size: 14px;
}

.site-footer a {
    color: var(--eh-white);
}

.front-page-main,
.front-page-main .wp-block-post-content {
    margin: 0;
    padding: 0;
}

.front-page-main .alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

/* Suchfeld auf Startseite und 404-Seite */
.wp-block-search {
    width: 100%;
}

.wp-block-search__inside-wrapper {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

input[type="search"].wp-block-search__input,
input[type="search"].wp-block-search__input:hover,
input[type="search"].wp-block-search__input:focus,
input[type="search"].wp-block-search__input:focus-visible,
input[type="search"].wp-block-search__input:active {
    min-height: 54px;
    padding: 0 18px !important;
    color: var(--eh-text) !important;
    -webkit-text-fill-color: var(--eh-text) !important;
    caret-color: var(--eh-text) !important;
    background: var(--eh-white) !important;
    border: 1px solid #9aabba !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    font-size: 16px !important;
    -webkit-appearance: none;
}

input[type="search"].wp-block-search__input::placeholder {
    color: #66758a !important;
    opacity: 1;
}

input[type="search"].wp-block-search__input:focus,
input[type="search"].wp-block-search__input:focus-visible {
    border-color: var(--eh-primary) !important;
    outline: 3px solid rgba(34, 56, 82, 0.18) !important;
}

button.wp-block-search__button {
    min-width: 150px;
    min-height: 54px;
    margin: 0 !important;
    padding: 0 26px !important;
    color: var(--eh-white) !important;
    background: var(--eh-primary) !important;
    border: 1px solid var(--eh-primary) !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    cursor: pointer;
}

button.wp-block-search__button:hover,
button.wp-block-search__button:focus {
    color: var(--eh-white) !important;
    background: var(--eh-primary-hover) !important;
    border-color: var(--eh-primary-hover) !important;
}

/* Fehlerseiten */
.error-page-shell,
.standard-page-shell,
.archive-page-shell,
.search-page-shell,
.not-found-shell {
    padding: 44px 20px 70px;
}

.error-article,
.standard-page-card,
.not-found-card {
    overflow: hidden;
    background: var(--eh-surface);
    border: 1px solid var(--eh-border);
    border-top: 6px solid var(--eh-primary);
    border-radius: var(--eh-radius);
    box-shadow: var(--eh-shadow);
}

.error-article__header,
.standard-page-card__header {
    padding: 38px 54px 28px;
    background: var(--eh-surface-muted);
    border-bottom: 1px solid #cbd6df;
}

.error-article__header h1,
.standard-page-card__header h1 {
    margin: 0;
    color: var(--eh-text);
    font-size: clamp(31px, 4vw, 42px);
    line-height: 1.2;
}

.error-article__body,
.standard-page-card__body {
    padding: 42px 54px 62px;
}

.error-article__body > .wp-block-post-content,
.standard-page-card__body > .wp-block-post-content {
    max-width: 860px;
    margin: 0 auto;
}

.error-article__body h2,
.standard-page-card__body h2 {
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--eh-text);
    font-size: 31px;
    line-height: 1.25;
}

.error-article__body h3,
.standard-page-card__body h3 {
    margin-top: 30px;
    margin-bottom: 14px;
    color: var(--eh-text);
    font-size: 23px;
    line-height: 1.3;
}

.error-article__body p,
.error-article__body li,
.standard-page-card__body p,
.standard-page-card__body li {
    color: var(--eh-text);
    font-size: 17px;
    line-height: 1.75;
}

.error-article__body ul,
.error-article__body ol,
.standard-page-card__body ul,
.standard-page-card__body ol {
    padding-left: 28px;
}

.error-article__body li,
.standard-page-card__body li {
    margin-bottom: 7px;
}

.error-article__body .wp-block-group,
.standard-page-card__body .wp-block-group {
    border-radius: 7px;
}

.error-article__body table,
.standard-page-card__body table {
    width: 100% !important;
    margin: 22px auto 36px !important;
    color: var(--eh-text) !important;
    background: #f8fafb !important;
    border: 1px solid #c3d0da !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 7px !important;
    overflow: hidden;
}

.error-article__body th,
.error-article__body td,
.standard-page-card__body th,
.standard-page-card__body td {
    padding: 14px 16px !important;
    color: var(--eh-text) !important;
    background: #f8fafb !important;
    border: 0 !important;
    border-right: 1px solid #cbd6df !important;
    border-bottom: 1px solid #cbd6df !important;
    text-align: left !important;
    vertical-align: top;
    line-height: 1.55;
}

.error-article__body thead th,
.standard-page-card__body thead th {
    background: #dce6ee !important;
    font-weight: 700;
}

.error-article__body tbody td:first-child,
.standard-page-card__body tbody td:first-child {
    background: #e5edf3 !important;
    font-weight: 700;
}

.error-article__body tr:last-child td,
.standard-page-card__body tr:last-child td {
    border-bottom: 0 !important;
}

.error-article__body th:last-child,
.error-article__body td:last-child,
.standard-page-card__body th:last-child,
.standard-page-card__body td:last-child {
    border-right: 0 !important;
}

.error-article__body code,
.standard-page-card__body code {
    display: inline-block;
    padding: 3px 7px;
    color: #084b78 !important;
    -webkit-text-fill-color: #084b78 !important;
    background: #dce9f2 !important;
    border: 1px solid #bed0de;
    border-radius: 4px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

.error-article__body blockquote,
.standard-page-card__body blockquote {
    margin: 24px auto 34px;
    padding: 22px 26px;
    color: var(--eh-text);
    background: var(--eh-surface-muted);
    border: 0;
    border-left: 5px solid var(--eh-accent);
    border-radius: 0 6px 6px 0;
}

.error-article__body blockquote p,
.error-article__body blockquote cite,
.standard-page-card__body blockquote p,
.standard-page-card__body blockquote cite {
    color: var(--eh-text);
}

/* Suche */
.search-title-card,
.archive-title-card {
    margin-bottom: 30px;
    padding: 32px 40px;
    background: var(--eh-surface-muted);
    border: 1px solid var(--eh-border);
    border-top: 5px solid var(--eh-primary);
    border-radius: 9px;
    box-shadow: 0 8px 24px rgba(23, 38, 58, 0.08);
}

.search-title-card h1,
.archive-title-card h1 {
    margin: 0;
    color: var(--eh-text);
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.25;
}

.search-results-list,
.archive-results-list {
    margin: 0;
    padding: 0;
}

.search-result-card,
.archive-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 0;
    overflow: hidden;
    background: var(--eh-surface);
    border: 1px solid #bac9d6;
    border-left: 6px solid var(--eh-accent);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(23, 38, 58, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-result-card:hover,
.archive-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 26px rgba(23, 38, 58, 0.13);
}

.search-result-card h2,
.archive-result-card h2 {
    flex: 1;
    margin: 0;
}

.search-result-card h2 a,
.archive-result-card h2 a {
    display: block;
    padding: 22px 26px;
    color: var(--eh-text) !important;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.search-result-card h2 a:hover,
.search-result-card h2 a:focus,
.archive-result-card h2 a:hover,
.archive-result-card h2 a:focus {
    color: var(--eh-link) !important;
    text-decoration: underline;
}

.search-result-card .wp-block-read-more,
.archive-result-card .wp-block-read-more {
    flex: 0 0 auto;
    margin: 0 24px 0 0;
    padding: 11px 15px;
    color: var(--eh-white) !important;
    background: var(--eh-primary);
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.search-result-card .wp-block-read-more:hover,
.search-result-card .wp-block-read-more:focus,
.archive-result-card .wp-block-read-more:hover,
.archive-result-card .wp-block-read-more:focus {
    color: var(--eh-white) !important;
    background: var(--eh-primary-hover);
}

.no-results-card {
    padding: 32px;
    background: var(--eh-surface);
    border: 1px solid var(--eh-border);
    border-radius: 9px;
}

/* 404 */
.not-found-card {
    padding: 48px;
}

.not-found-card h1 {
    margin-top: 0;
    color: var(--eh-text);
}

/* Pagination */
.wp-block-query-pagination {
    margin-top: 30px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .current {
    padding: 8px 12px;
    border-radius: 4px;
}

@media (max-width: 700px) {
    .site-header__inner,
    .site-footer__inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .error-page-shell,
    .standard-page-shell,
    .archive-page-shell,
    .search-page-shell,
    .not-found-shell {
        padding: 18px 8px 38px;
    }

    .error-article__header,
    .standard-page-card__header {
        padding: 28px 20px 22px;
    }

    .error-article__body,
    .standard-page-card__body {
        padding: 28px 20px 40px;
    }

    .error-article__body h2,
    .standard-page-card__body h2 {
        margin-top: 38px;
        font-size: 26px;
    }

    .error-article__body p,
    .error-article__body li,
    .standard-page-card__body p,
    .standard-page-card__body li {
        font-size: 16px;
    }

    .error-article__body table,
    .standard-page-card__body table {
        display: block;
        overflow-x: auto;
    }

    .wp-block-search__inside-wrapper {
        flex-direction: column;
    }

    button.wp-block-search__button {
        width: 100%;
    }

    .search-title-card,
    .archive-title-card {
        padding: 25px 21px;
    }

    .search-result-card,
    .archive-result-card {
        display: block;
    }

    .search-result-card h2 a,
    .archive-result-card h2 a {
        padding: 20px;
        font-size: 20px;
    }

    .search-result-card .wp-block-read-more,
    .archive-result-card .wp-block-read-more {
        display: block;
        margin: 0 20px 20px;
        text-align: center;
    }

    .site-footer__inner {
        display: block !important;
    }

    .site-footer__inner p + p {
        margin-top: 10px;
    }
}

/* Dunkle Inhaltsbereiche: im Frontend und im Block-/Website-Editor weiße Schrift */
.wp-block-group.has-background[style*="background-color:#223852"],
.wp-block-group.has-background[style*="background-color: #223852"],
.wp-block-group.has-background[style*="background-color:rgb(34, 56, 82)"],
.wp-block-group.has-background[style*="background-color: rgb(34, 56, 82)"] {
    color: #ffffff !important;
}

.wp-block-group.has-background[style*="background-color:#223852"] :is(h1, h2, h3, h4, h5, h6, p, li, strong, span, a),
.wp-block-group.has-background[style*="background-color: #223852"] :is(h1, h2, h3, h4, h5, h6, p, li, strong, span, a),
.wp-block-group.has-background[style*="background-color:rgb(34, 56, 82)"] :is(h1, h2, h3, h4, h5, h6, p, li, strong, span, a),
.wp-block-group.has-background[style*="background-color: rgb(34, 56, 82)"] :is(h1, h2, h3, h4, h5, h6, p, li, strong, span, a) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* Header im Frontend und im Website-Editor identisch darstellen */
.site-header.wp-block-group,
.wp-site-blocks .site-header.wp-block-group,
.editor-styles-wrapper .site-header.wp-block-group,
.block-editor-block-list__layout .site-header.wp-block-group,
.wp-block-template-part .site-header.wp-block-group {
    background: #1f2b3a !important;
    background-color: #1f2b3a !important;
    color: #ffffff !important;
}

.site-header .site-brand,
.site-header .site-brand a,
.site-header .wp-block-site-title,
.site-header .wp-block-site-title a,
.editor-styles-wrapper .site-header .wp-block-site-title,
.editor-styles-wrapper .site-header .wp-block-site-title a,
.block-editor-block-list__layout .site-header .wp-block-site-title,
.block-editor-block-list__layout .site-header .wp-block-site-title a {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ================================================================
 * Version 1.1.0: Startseite, Hauptnavigation und Fehlercode-Suche
 * ================================================================ */

/* Hauptnavigation */
.site-header__inner {
    gap: 28px;
}

.site-header__inner > .wp-block-shortcode {
    margin: 0;
}

.eh-primary-nav {
    position: relative;
}

.eh-primary-nav__desktop {
    display: flex;
    align-items: center;
    gap: 5px;
}

.eh-primary-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 13px;
    color: #eaf1f7 !important;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
}

.eh-primary-nav__link:hover,
.eh-primary-nav__link:focus,
.eh-primary-nav__link[aria-current="page"] {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.eh-primary-nav__link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.eh-primary-nav__mobile {
    display: none;
}

/* Neue Startseite */
.eh-home-hero {
    padding: 78px 24px 82px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(31, 43, 58, 0.99), rgba(49, 95, 132, 0.94)),
        #223852;
}

.eh-home-hero__inner {
    margin: 0 auto;
    text-align: center;
}

.eh-home-eyebrow,
.eh-section-kicker {
    margin: 0 0 12px;
    color: #4d789b;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eh-home-hero .eh-home-eyebrow {
    color: #d7e7f3;
}

.eh-home-hero h1 {
    max-width: 840px;
    margin: 0 auto;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: clamp(40px, 6.2vw, 68px);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.eh-home-lead {
    max-width: 850px;
    margin: 24px auto 0;
    color: #e9f0f6 !important;
    -webkit-text-fill-color: #e9f0f6 !important;
    font-size: clamp(18px, 2.3vw, 22px);
    line-height: 1.65;
}

.eh-search-panel {
    max-width: 850px;
    margin: 38px auto 0;
    padding: 26px;
    color: var(--eh-text);
    background: rgba(245, 248, 250, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(9, 21, 34, 0.25);
    text-align: left;
    scroll-margin-top: 24px;
}

.eh-search-panel h2 {
    margin: 0 0 15px;
    color: var(--eh-text) !important;
    -webkit-text-fill-color: var(--eh-text) !important;
    font-size: 22px !important;
}

.eh-search-help {
    margin: 13px 0 0;
    color: #43556b !important;
    -webkit-text-fill-color: #43556b !important;
    line-height: 1.6;
}

.eh-search-help code {
    padding: 2px 5px;
    color: #084b78 !important;
    -webkit-text-fill-color: #084b78 !important;
    background: #dce9f2;
    border: 1px solid #bed0de;
    border-radius: 4px;
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.eh-home-section {
    padding: 72px 24px;
}

.eh-home-section__inner {
    margin: 0 auto;
}

.eh-home-steps-wrap,
.eh-home-trust-wrap {
    background: var(--eh-page);
}

.eh-home-guides-wrap {
    padding: 0 24px;
    background: var(--eh-page);
}

.eh-section-heading {
    max-width: 780px;
    margin: 0 auto 38px;
    text-align: center;
}

.eh-section-heading h2 {
    margin: 0;
    color: var(--eh-text);
    font-size: clamp(31px, 4.5vw, 43px);
    letter-spacing: -0.018em;
    line-height: 1.18;
}

.eh-section-heading > p:last-child {
    margin: 15px auto 0;
    color: #4a5d71;
    font-size: 18px;
    line-height: 1.65;
}

.eh-step-grid,
.eh-trust-grid {
    gap: 20px;
}

.eh-step-card {
    position: relative;
    min-height: 100%;
    margin: 0;
    padding: 30px 28px 28px;
    background: var(--eh-surface);
    border: 1px solid var(--eh-border);
    border-top: 5px solid var(--eh-accent);
    border-radius: 10px;
    box-shadow: 0 7px 22px rgba(23, 38, 58, 0.08);
}

.eh-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 0 20px;
    color: #ffffff;
    background: var(--eh-primary);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.eh-step-card h3 {
    margin: 0 0 12px;
    color: var(--eh-text);
    font-size: 23px;
    line-height: 1.25;
}

.eh-step-card p:last-child {
    margin-bottom: 0;
    color: #405267;
    line-height: 1.7;
}

/* Dynamisch eingeblendete, bereits veröffentlichte Ratgeber */
.eh-guides {
    padding: 68px 52px 54px;
    background: var(--eh-surface-muted);
    border: 1px solid var(--eh-border);
    border-radius: 12px;
    box-shadow: var(--eh-shadow);
}

.eh-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.eh-guide-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #c7d3dd;
    border-left: 5px solid var(--eh-accent);
    border-radius: 8px;
}

.eh-guide-card h3 {
    margin: 0 0 10px;
    color: var(--eh-text);
    font-size: 21px;
    line-height: 1.3;
}

.eh-guide-card h3 a {
    color: var(--eh-text);
    text-decoration: none;
}

.eh-guide-card h3 a:hover,
.eh-guide-card h3 a:focus {
    color: var(--eh-link);
    text-decoration: underline;
}

.eh-guide-card p {
    flex: 1 0 auto;
    margin: 0 0 18px;
    color: #4a5c70;
    line-height: 1.65;
}

.eh-guide-card__link {
    align-self: flex-start;
    font-weight: 750;
    text-decoration: none;
}

.eh-guide-card__link:hover,
.eh-guide-card__link:focus {
    text-decoration: underline;
}

.eh-trust-panel {
    padding: 58px 52px 44px;
    color: #ffffff;
    background: var(--eh-primary);
    border-radius: 12px;
    box-shadow: var(--eh-shadow);
}

.eh-trust-panel .eh-section-kicker {
    color: #c5dceb;
}

.eh-trust-panel .eh-section-heading h2,
.eh-trust-panel .eh-section-heading p,
.eh-trust-panel h3,
.eh-trust-panel p {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.eh-trust-grid > .wp-block-column {
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 8px;
}

.eh-trust-grid h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.eh-trust-grid p {
    margin: 0;
    color: #e6eef5 !important;
    -webkit-text-fill-color: #e6eef5 !important;
    line-height: 1.65;
}

.eh-home-disclaimer {
    margin: 34px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #dce8f1 !important;
    -webkit-text-fill-color: #dce8f1 !important;
    text-align: center;
}

/* Verbesserte Suchergebnisse */
.search-title-card > p {
    margin: 14px 0 20px;
    color: #43566b;
    line-height: 1.65;
}

.search-result-card__content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 21px 0 21px 26px;
}

.search-result-card__content h2 {
    margin: 0;
}

.search-result-card__content h2 a {
    padding: 0;
}

.search-result-card .wp-block-post-excerpt {
    margin: 9px 0 0;
}

.search-result-card .wp-block-post-excerpt__excerpt {
    margin: 0;
    color: #4b5e72;
    font-size: 15px;
    line-height: 1.6;
}

.no-results-card h2 {
    margin-top: 0;
}

.no-results-card ul {
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .site-header__inner {
        min-height: 72px;
    }

    .eh-primary-nav__desktop {
        display: none;
    }

    .eh-primary-nav__mobile {
        display: block;
    }

    .eh-primary-nav__mobile summary {
        padding: 9px 13px;
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 6px;
        font-size: 15px;
        font-weight: 750;
        list-style: none;
        cursor: pointer;
    }

    .eh-primary-nav__mobile summary::-webkit-details-marker {
        display: none;
    }

    .eh-primary-nav__mobile summary::after {
        content: " ☰";
        margin-left: 5px;
    }

    .eh-primary-nav__mobile[open] summary::after {
        content: " ×";
    }

    .eh-primary-nav__mobile-panel {
        position: absolute;
        z-index: 100;
        top: calc(100% + 10px);
        right: 0;
        display: grid;
        min-width: 235px;
        padding: 8px;
        background: #1f2b3a;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 8px;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    }

    .eh-primary-nav__mobile-panel .eh-primary-nav__link {
        width: 100%;
    }

    .eh-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .site-brand,
    .site-brand a {
        font-size: 20px;
    }

    .eh-home-hero {
        padding: 52px 16px 58px;
    }

    .eh-home-hero h1 {
        font-size: clamp(36px, 11vw, 50px);
    }

    .eh-home-lead {
        font-size: 18px;
    }

    .eh-search-panel {
        margin-top: 28px;
        padding: 20px;
    }

    .eh-home-section {
        padding: 50px 12px;
    }

    /*
     * Auf kleinen Bildschirmen bleibt die Startseite bewusst auf Fehlersuche
     * und den wichtigsten nächsten Schritten fokussiert. Die Ratgeber bleiben
     * über die mobile Hauptnavigation erreichbar.
     */
    .eh-home-guides-wrap {
        display: none;
    }

    .eh-step-grid,
    .eh-trust-grid {
        display: block;
    }

    .eh-step-grid > .wp-block-column,
    .eh-trust-grid > .wp-block-column {
        margin-bottom: 16px;
    }

    .eh-guides,
    .eh-trust-panel {
        padding: 40px 20px 30px;
    }

    .eh-guide-card {
        padding: 21px;
    }

    .search-result-card__content {
        padding: 20px;
    }

    .search-result-card__content h2 a {
        padding: 0;
    }
}

