/* ==========================================================================
   hilfeholen.at – Custom Styles
   Eigene Anpassungen, getrennt vom Casper-Standard.
   ========================================================================== */

/* ===== SCHRIFT: Nunito sitewide ===== */
:root {
    --font-sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
    --gh-font-heading: "Nunito", sans-serif;
    --gh-font-body: "Nunito", sans-serif;
}

body {
    font-family: var(--gh-font-body, var(--font-sans));
}

h1, h2, h3, h4, h5, h6,
.post-card-title,
.article-title,
.gh-content > [id] {
    font-family: var(--gh-font-heading, var(--font-sans));
}

.gh-content > p,
.gh-content > ul,
.gh-content > ol,
.gh-content > dl,
.gh-content > blockquote,
.post-card-excerpt,
.article-excerpt {
    font-family: var(--gh-font-body, "Nunito", sans-serif);
}

/* ===== BANNER (roter Hero) ===== */
.site-header-content .site-logo,
.site-header-content .site-title,
.site-header-content .site-description {
    display: none !important;
}

.site-header-cover {
    object-fit: contain !important;
    background-color: #C1121F !important;
}

.has-cover .site-header-content {
    min-height: 420px !important;
    align-items: center !important;
    padding-top: 6vmin !important;
    padding-bottom: 6vmin !important;
    background-color: #C1121F !important;
}

/* ===== HEADER-ANORDNUNG: Menü links, Lupe + Logo rechts ===== */
#gh-head.gh-head {
    background-color: #FFF8F0 !important;
}

#gh-head .gh-head-inner,
.is-head-left-logo #gh-head .gh-head-inner,
.is-head-middle-logo #gh-head .gh-head-inner,
.is-head-stacked #gh-head .gh-head-inner {
    display: flex !important;
    align-items: center !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    column-gap: 16px !important;
}

#gh-head .gh-head-menu {
    order: 1 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

#gh-head .gh-head-actions {
    order: 2 !important;
}

#gh-head .gh-head-brand {
    order: 3 !important;
    justify-content: flex-end !important;
}

/* Casper versteckt bei "Logo on cover" auf der Startseite das Header-Logo – wieder einblenden */
.is-head-left-logo.home-template .gh-head:not(.is-header-hidden) .gh-head-logo {
    display: block !important;
}

/* Logo-Größe */
#gh-head .gh-head-logo img,
.gh-head-logo img {
    height: 55px !important;
    max-height: none !important;
    width: auto !important;
}

/* Suche dunkel sichtbar */
#gh-head .gh-search svg {
    color: #1a1a1a !important;
    stroke: #1a1a1a !important;
}

/* ===== MENÜPUNKTE als orange Buttons ===== */
#gh-head .gh-head-menu .nav {
    gap: 6px !important;
}

#gh-head .gh-head-menu .nav li {
    margin: 0 3px !important;
}

#gh-head .gh-head-menu .nav li a {
    font-family: "Nunito", sans-serif !important;
    font-weight: 900 !important;
    font-size: 0.85em !important;
    color: #ffffff !important;
    background-color: #FF8A4C !important;
    border-radius: 12px !important;
    padding: 6px 12px 8px 12px !important;
    display: inline-block !important;
    line-height: 1.1 !important;
    transition: background-color 0.15s ease !important;
}

#gh-head .gh-head-menu .nav li a:hover {
    background-color: #E96B2A !important;
}

/* "..."-More-Punkte orange */
#gh-head .gh-head-menu .nav-more-toggle,
#gh-head .gh-head-menu .nav-more-toggle svg {
    color: #FF8A4C !important;
    fill: #FF8A4C !important;
}

/* ===== HAMBURGER (Mobil) orange ===== */
.gh-burger::before,
.gh-burger::after,
.has-cover .gh-burger::before,
.has-cover .gh-burger::after {
    background-color: #FF8A4C !important;
}

/* ===== YouTube-Embeds (Ghost-eigene Cards) – abgerundete Ecken ===== */
.kg-embed-card iframe[src*="youtube.com"],
.kg-embed-card iframe[src*="youtube-nocookie.com"],
.kg-embed-card iframe[src*="player.vimeo.com"],
.gh-content iframe[src*="youtube.com"],
.gh-content iframe[src*="youtube-nocookie.com"] {
    border-radius: 16px;
    overflow: hidden;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #FFF8F0 !important;
    color: #1a1a1a !important;
}

.site-footer a,
.site-footer .site-footer-nav a,
.site-footer .copyright a {
    color: #C1121F !important;
}

.site-footer .copyright {
    color: #1a1a1a !important;
}

.site-footer svg {
    color: #C1121F !important;
    fill: #C1121F !important;
}

.site-footer a:hover {
    color: #9E0E18 !important;
}

/* "Erstellt mit Ghost" ausblenden */
.gh-powered-by {
    display: none !important;
}

/* ===== MOBIL: nicht alles in eine enge Zeile pressen ===== */
@media (max-width: 767px) {
    #gh-head .gh-head-inner,
    .is-head-left-logo #gh-head .gh-head-inner,
    .is-head-middle-logo #gh-head .gh-head-inner,
    .is-head-stacked #gh-head .gh-head-inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-areas: "brand" "menu" "actions" !important;
        row-gap: 12px !important;
    }

    #gh-head .gh-head-brand {
        grid-area: brand !important;
        order: initial !important;
        justify-content: space-between !important;
    }

    #gh-head .gh-head-menu {
        grid-area: menu !important;
        order: initial !important;
        margin-right: 0 !important;
    }

    #gh-head .gh-head-actions {
        grid-area: actions !important;
        order: initial !important;
    }

    #gh-head .gh-head-logo img,
    .gh-head-logo img {
        height: 46px !important;
    }

    #gh-head .gh-head-menu .nav li a {
        font-size: 16px !important;
        padding: 7px 12px 8px 12px !important;
    }

    .has-cover .site-header-content {
        min-height: 260px !important;
    }
}

/* ===== FIX: Menü sichtbar lassen =====
   Casper blendet Navigation kurz aus, bis das Dropdown-Script geladen ist.
   Bei dieser Header-Umbau-Variante darf das Menü am Desktop nicht unsichtbar bleiben. */
@media (min-width: 768px) {
    #gh-head .gh-head-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        transform: none !important;
    }

    #gh-head .gh-head-menu .nav {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body:not(.is-dropdown-loaded) #gh-head .gh-head-menu .nav > li,
    #gh-head .gh-head-menu .nav > li {
        visibility: visible !important;
        opacity: 1 !important;
    }
}


/* ===== FIX 2: Casper-Dropdown darf Menü nicht komplett wegschieben =====
   Das Dropdown-Script misst die Breite von .gh-head-menu.
   Wenn dieser Container nur so breit ist wie seine Links, werden alle Links in "..." verschoben. */
@media (min-width: 768px) {
    #gh-head .gh-head-inner {
        width: 100% !important;
    }

    #gh-head .gh-head-menu {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    #gh-head .gh-head-actions,
    #gh-head .gh-head-brand {
        flex: 0 0 auto !important;
    }

    #gh-head .gh-head-menu .nav {
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }
}

/* Share button feedback */
.gh-button-share.is-copied {
    border-color: #C1121F !important;
    color: #C1121F !important;
}

/* ===== TRENNLINIE / DIVIDER im Beitrag besser sichtbar ===== */
.gh-content hr,
.post-content hr {
    display: block !important;
    height: 2px !important;
    margin: 42px 0 !important;
    border: 0 !important;
    background: #E2D4C8 !important;
    opacity: 1 !important;
}

.gh-content hr::after,
.post-content hr::after {
    display: none !important;
}

/* ===== PRODUKT-KARTE: Button orange wie Menü ===== */
.gh-content .kg-product-card .kg-product-card-button,
.kg-product-card .kg-product-card-button,
.gh-content .kg-product-card a.kg-product-card-button,
.kg-product-card a.kg-product-card-button {
    background-color: #FF8A4C !important;
    color: #ffffff !important;
    border-color: #FF8A4C !important;
}

.gh-content .kg-product-card .kg-product-card-button:hover,
.kg-product-card .kg-product-card-button:hover,
.gh-content .kg-product-card a.kg-product-card-button:hover,
.kg-product-card a.kg-product-card-button:hover {
    background-color: #E96B2A !important;
    border-color: #E96B2A !important;
    color: #ffffff !important;
}

/* ===== POST-ÜBERSICHT: Karten mit leichtem Rahmen ===== */
.post-card {
    padding: 14px !important;
    border: 1px solid #E8DDD2 !important;
    border-radius: 18px !important;
    background: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

.post-card:hover {
    transform: translateY(-2px) !important;
    border-color: #FF8A4C !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08) !important;
}

.post-card-image-link,
.post-card-image {
    border-radius: 14px !important;
    overflow: hidden !important;
}

.post-card-content {
    padding: 16px 4px 2px 4px !important;
}

/* ===== POST-KARTEN: mehrere Tags sauber anzeigen ===== */
.post-card-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 8px !important;
    align-items: center !important;
}

.post-card-tags .post-card-primary-tag {
    display: inline-flex !important;
    align-items: center !important;
}


/* ===== POST-KARTEN: alle Tags aus Ghost anzeigen ===== */
.post-card-tags a,
.post-card-tags .post-card-primary-tag {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 8px !important;
    color: #8A8F98 !important;
    font-weight: 700 !important;
}

.post-card-tags a:hover {
    color: #C1121F !important;
}

/* ===== POST-KARTEN: Tag-Abstände kompakter / linksbündig ===== */
.post-card .post-card-tags {
    justify-content: flex-start !important;
    gap: 6px !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

.post-card .post-card-tags a,
.post-card .post-card-tags .post-card-primary-tag,
.post-card .post-card-tags .post-card-featured {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ===== POST-KARTEN: Tags als kleine Chips ===== */
.post-card .post-card-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.2 !important;
}

.post-card .post-card-tags a,
.post-card .post-card-tags .post-card-primary-tag {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 4px 9px 5px 9px !important;
    border-radius: 999px !important;
    background-color: #FFF8F0 !important;
    border: 1px solid #F2C8AE !important;
    color: #8A4D2E !important;
    font-size: 0.78em !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
}

.post-card .post-card-tags a:hover,
.post-card .post-card-tags .post-card-primary-tag:hover {
    background-color: #FF8A4C !important;
    border-color: #FF8A4C !important;
    color: #ffffff !important;
}

.post-card .post-card-featured {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 4px 9px 5px 9px !important;
    border-radius: 999px !important;
    background-color: #FFF1E8 !important;
    border: 1px solid #FFB58D !important;
    color: #C1121F !important;
    font-size: 0.78em !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

/* ===== POST-KARTEN: leeren Featured-Chip ausblenden ===== */
.post-card .post-card-featured:empty,
.post-card .post-card-tags a:empty {
    display: none !important;
}


/* ===== FIX: Tags in Karten sauber ohne leeren Chip ===== */
.post-card .post-card-tags {
    gap: 8px !important;
}

.post-card .post-card-tags .post-card-tag {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 4px 10px 5px 10px !important;
    border-radius: 999px !important;
    background-color: #FFF8F0 !important;
    border: 1px solid #F2C8AE !important;
    color: #8A4D2E !important;
    font-size: 0.78em !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
}

.post-card .post-card-tags .post-card-tag:hover {
    background-color: #FF8A4C !important;
    border-color: #FF8A4C !important;
    color: #ffffff !important;
}

.post-card .post-card-tags > :empty {
    display: none !important;
}

/* ===== FIX: Empfohlen-Chip mit sauberem Symbolabstand ===== */
.article-tag .post-card-featured,
.post-card-tags .post-card-featured {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px 5px 10px !important;
    border-radius: 999px !important;
    background-color: #FFF1E8 !important;
    border: 1px solid #FFB58D !important;
    color: #C1121F !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

.article-tag .post-card-featured svg,
.post-card-tags .post-card-featured svg {
    width: 16px !important;
    height: 17px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    position: static !important;
}


/* ===== FIX: Empfohlen in Post-Karten wieder anzeigen ===== */
.post-card .post-card-tags .post-card-featured {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 4px 10px 5px 10px !important;
    border-radius: 999px !important;
    background-color: #FFF1E8 !important;
    border: 1px solid #FFB58D !important;
    color: #C1121F !important;
    font-size: 0.78em !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

.post-card .post-card-tags .post-card-featured svg {
    width: 16px !important;
    height: 17px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    position: static !important;
}


/* ===== FIX: Empfohlen nur mit einem Rahmen ===== */
.post-card .post-card-tags .post-card-featured {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.post-card .post-card-tags .post-card-featured::before,
.post-card .post-card-tags .post-card-featured::after {
    content: none !important;
    display: none !important;
}

.post-card .post-card-tags .post-card-featured-inner {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 4px 10px 5px 10px !important;
    border-radius: 999px !important;
    background-color: #FFF1E8 !important;
    border: 1px solid #FFB58D !important;
    color: #C1121F !important;
    font-size: 0.78em !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.post-card .post-card-tags .post-card-featured-inner svg {
    width: 16px !important;
    height: 17px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    position: static !important;
}


/* ===== FINAL FIX: Empfohlen nur ein einziger Chip, kein Wrapper-Rahmen ===== */
.post-card .post-card-tags > .post-card-featured {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 4px 10px 5px 10px !important;
    border-radius: 999px !important;
    background-color: #FFF1E8 !important;
    border: 1px solid #FFB58D !important;
    color: #C1121F !important;
    font-size: 0.78em !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.post-card .post-card-tags > .post-card-featured::before,
.post-card .post-card-tags > .post-card-featured::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.post-card .post-card-tags > .post-card-featured svg {
    width: 16px !important;
    height: 17px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    position: static !important;
}

.post-card .post-card-tags .post-card-featured-inner {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

/* ===== FINAL: Tag-Chips einheitlich kräftig ===== */
.post-card .post-card-tags .post-card-tag,
.post-card .post-card-tags > .post-card-featured {
    font-family: "Nunito", sans-serif !important;
    font-size: 0.84em !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

/* ===== FOOTER: Social Icons ausblenden ===== */
.site-footer-social-links {
    display: none !important;
}

/* ===== KONTAKT-CALLOUT: Creme/Orange statt Blau ===== */
.gh-content .kg-callout-card.kg-callout-card-blue,
.kg-callout-card.kg-callout-card-blue {
    background-color: #FFF8F0 !important;
    border: 1px solid #F2C8AE !important;
    border-left: 6px solid #FF8A4C !important;
    border-radius: 12px !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
}

.gh-content .kg-callout-card.kg-callout-card-blue .kg-callout-emoji,
.kg-callout-card.kg-callout-card-blue .kg-callout-emoji {
    font-size: 0 !important;
    line-height: 1 !important;
}

.gh-content .kg-callout-card.kg-callout-card-blue .kg-callout-emoji::before,
.kg-callout-card.kg-callout-card-blue .kg-callout-emoji::before {
    content: "❤️" !important;
    font-size: 2.1rem !important;
    line-height: 1 !important;
}

.gh-content .kg-callout-card.kg-callout-card-blue .kg-callout-text,
.kg-callout-card.kg-callout-card-blue .kg-callout-text {
    font-family: "Nunito", sans-serif !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
}

/* ===== LINKS: keine automatische Unterstreichung ===== */
a,
.gh-content a,
.post-card a,
.site-footer a,
.gh-head a {
    text-decoration: none !important;
}

a:hover,
.gh-content a:hover,
.post-card a:hover,
.site-footer a:hover,
.gh-head a:hover {
    text-decoration: none !important;
}

/* ===== HERO-BANNER: Höhe kompakter =====
   Der rote Startseiten-Banner war auf Desktop und Mobil zu hoch.
   Das Bild bleibt vollständig sichtbar, aber der rote Leerraum wird reduziert. */
.has-cover .site-header-content {
    min-height: 320px !important;
    padding-top: 3.5vmin !important;
    padding-bottom: 3.5vmin !important;
}

.site-header-cover {
    object-fit: contain !important;
    object-position: center center !important;
}

@media (max-width: 767px) {
    .has-cover .site-header-content {
        min-height: 175px !important;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }
}

@media (max-width: 420px) {
    .has-cover .site-header-content {
        min-height: 165px !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
}

/* ===== HERO-BANNER MOBIL: Bild vertikal besser zentrieren =====
   Der Banner soll am Handy kompakt bleiben, aber nicht direkt oben kleben. */
@media (max-width: 767px) {
    .has-cover .site-header-content {
        min-height: 190px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .has-cover .site-header-cover {
        top: 18px !important;
        bottom: 18px !important;
        height: calc(100% - 36px) !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

@media (max-width: 420px) {
    .has-cover .site-header-content {
        min-height: 185px !important;
    }

    .has-cover .site-header-cover {
        top: 16px !important;
        bottom: 16px !important;
        height: calc(100% - 32px) !important;
    }
}

/* ===== HERO-BANNER MOBIL: unten weniger rote Fläche =====
   Oben bleibt etwas Luft, unten wird der rote Leerraum reduziert. */
@media (max-width: 767px) {
    .has-cover .site-header-content {
        min-height: 168px !important;
    }

    .has-cover .site-header-cover {
        top: 16px !important;
        bottom: 6px !important;
        height: calc(100% - 22px) !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

@media (max-width: 420px) {
    .has-cover .site-header-content {
        min-height: 160px !important;
    }

    .has-cover .site-header-cover {
        top: 14px !important;
        bottom: 4px !important;
        height: calc(100% - 18px) !important;
    }
}

/* ===== MOBIL: Hamburger-Menü deutlicher sichtbar ===== */
@media (max-width: 767px) {
    #gh-head .gh-burger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 46px !important;
        height: 38px !important;
        margin-right: 0 !important;
        border: 2px solid #FF8A4C !important;
        border-radius: 12px !important;
        background-color: #FFF1E8 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    }

    #gh-head .gh-burger::before,
    #gh-head .gh-burger::after,
    .has-cover #gh-head .gh-burger::before,
    .has-cover #gh-head .gh-burger::after {
        left: 10px !important;
        width: 24px !important;
        height: 3px !important;
        border-radius: 999px !important;
        background-color: #FF8A4C !important;
    }

    #gh-head .gh-burger::before {
        top: 12px !important;
    }

    #gh-head .gh-burger::after {
        bottom: 12px !important;
    }

    .gh-head-open #gh-head .gh-burger::before {
        top: 17px !important;
        transform: rotate(45deg) !important;
    }

    .gh-head-open #gh-head .gh-burger::after {
        bottom: 16px !important;
        transform: rotate(-45deg) !important;
    }
}

/* ===== FIX: Desktop-Hero nicht beschneiden =====
   Der Startseiten-Banner darf am Desktop nicht abgeschnitten werden.
   Mobile Regeln bleiben darunter/unabhängig erhalten. */
@media (min-width: 768px) {
    .home-template.has-cover .site-header-content,
    .has-cover .site-header-content {
        min-height: 390px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .home-template.has-cover .site-header-cover,
    .has-cover .site-header-cover {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: contain !important;
        object-position: center center !important;
        background-color: #C1121F !important;
    }
}

/* ===== FIX: Desktop-Hero kompakter, unten weniger rote Fläche =====
   Desktop-Banner oben ausrichten und unten rote Leerfläche wegschneiden. */
@media (min-width: 768px) {
    .home-template.has-cover .site-header-content,
    .has-cover .site-header-content {
        min-height: 320px !important;
        height: 320px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
        background-color: #C1121F !important;
    }

    .home-template.has-cover .site-header-cover,
    .has-cover .site-header-cover {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        background-color: #C1121F !important;
    }
}


/* ===== DESKTOP FIX: Header nicht über Banner legen ===== */
@media (min-width: 992px) {
    .home-template.has-cover #gh-head,
    .paged.has-cover:not(.tag-template):not(.author-template) #gh-head {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        z-index: 150 !important;
        background-color: #FFF8F0 !important;
        color: #1a1a1a !important;
    }

    .home-template.has-cover .site-header-content {
        min-height: 300px !important;
        height: 300px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    .home-template.has-cover .site-header-cover {
        object-fit: contain !important;
        object-position: center center !important;
        width: 100% !important;
        height: 100% !important;
    }
}


/* ===== DESKTOP FIX: Banner weniger rote Leerfläche ===== */
@media (min-width: 992px) {
    .home-template.has-cover .site-header-content {
        min-height: 280px !important;
        height: 280px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
    }

    .home-template.has-cover .site-header-cover {
        object-fit: cover !important;
        object-position: center center !important;
        width: 100% !important;
        height: 100% !important;
    }
}


/* ===== FINAL HERO FIX: Banner immer unter dem Menü und ausgewogen ===== */
.home-template.has-cover #gh-head {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: 150 !important;
    background-color: #FFF8F0 !important;
    color: #1a1a1a !important;
}

@media (min-width: 992px) {
    .home-template.has-cover .site-header-content {
        min-height: 250px !important;
        height: 250px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        background-color: #C1121F !important;
    }

    .home-template.has-cover .site-header-cover {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        bottom: 0 !important;
        object-fit: contain !important;
        object-position: center center !important;
        background-color: #C1121F !important;
    }
}

@media (max-width: 991px) {
    .home-template.has-cover .site-header-content {
        min-height: 172px !important;
        height: 172px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        background-color: #C1121F !important;
    }

    .home-template.has-cover .site-header-cover {
        position: absolute !important;
        inset: auto 0 auto 0 !important;
        top: 10px !important;
        bottom: 8px !important;
        width: 100% !important;
        height: calc(100% - 18px) !important;
        object-fit: contain !important;
        object-position: center center !important;
        background-color: #C1121F !important;
    }
}

@media (max-width: 420px) {
    .home-template.has-cover .site-header-content {
        min-height: 165px !important;
        height: 165px !important;
    }

    .home-template.has-cover .site-header-cover {
        top: 12px !important;
        bottom: 6px !important;
        height: calc(100% - 18px) !important;
    }
}


/* ===== MOBILE HERO TWEAK: weniger rote Leerfläche ===== */
@media (max-width: 767px) {
    .home-template.has-cover .site-header-content {
        min-height: 145px !important;
        height: 145px !important;
    }

    .home-template.has-cover .site-header-cover {
        top: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}

@media (max-width: 420px) {
    .home-template.has-cover .site-header-content {
        min-height: 138px !important;
        height: 138px !important;
    }

    .home-template.has-cover .site-header-cover {
        top: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}


/* ===== MOBILE HERO REFINE: Banner voll sichtbar, aber kompakter ===== */
@media (max-width: 767px) {
    .home-template.has-cover .site-header-content {
        min-height: 132px !important;
        height: 132px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
        background-color: #C1121F !important;
    }

    .home-template.has-cover .site-header-cover {
        top: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        background-color: #C1121F !important;
    }
}

@media (max-width: 420px) {
    .home-template.has-cover .site-header-content {
        min-height: 124px !important;
        height: 124px !important;
    }

    .home-template.has-cover .site-header-cover {
        top: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}


/* ===== MOBILE HERO FEINTUNING: etwas breiter bei gleicher Höhe ===== */
@media (max-width: 767px) {
    .home-template.has-cover .site-header-cover {
        transform: scale(1.06) !important;
        transform-origin: center center !important;
    }
}

@media (max-width: 420px) {
    .home-template.has-cover .site-header-cover {
        transform: scale(1.08) !important;
        transform-origin: center center !important;
    }
}


/* ===== MOBILE HERO FEINTUNING: noch breiter ===== */
@media (max-width: 767px) {
    .home-template.has-cover .site-header-cover {
        transform: scale(1.12) !important;
        transform-origin: center center !important;
    }
}

@media (max-width: 420px) {
    .home-template.has-cover .site-header-cover {
        transform: scale(1.15) !important;
        transform-origin: center center !important;
    }
}

/* ===== MOBILE MENU FIX: Kein roter Hintergrund oberhalb des Banners =====
   Beim geöffneten Handy-Menü soll nur der Banner rot bleiben.
   Der Header-/Menübereich bleibt cremefarben. */
@media (max-width: 767px) {
    .gh-head-open.has-cover #gh-head,
    .gh-head-open.has-cover #gh-head .gh-head-inner,
    .gh-head-open.has-cover #gh-head .gh-head-brand,
    .gh-head-open.has-cover #gh-head .gh-head-menu,
    .gh-head-open.has-cover #gh-head .gh-head-actions {
        background-color: #FFF8F0 !important;
        color: #1a1a1a !important;
    }

    .gh-head-open #gh-head {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding-bottom: 18px !important;
    }

    .gh-head-open #gh-head .gh-head-menu {
        padding-top: 18px !important;
        padding-bottom: 8px !important;
    }

    .gh-head-open #gh-head .gh-head-actions {
        display: none !important;
    }
}


/* ===== STARTSEITE: editierbarer Intro-Block unter dem Banner ===== */
.home-intro {
    margin-top: 42px !important;
    margin-bottom: 28px !important;
}

.home-intro-inner {
    max-width: 1120px !important;
}

.home-intro-card {
    background-color: #FFF8F0 !important;
    border: 1px solid #F2C8AE !important;
    border-left: 8px solid #FF8A4C !important;
    border-radius: 20px !important;
    padding: 28px 34px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04) !important;
}

.home-intro-content {
    color: #1a1a1a !important;
    font-size: 1.9rem !important;
    line-height: 1.55 !important;
}

.home-intro-content h1,
.home-intro-content h2,
.home-intro-content h3 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    font-family: "Nunito", sans-serif !important;
    font-weight: 900 !important;
    color: #1a1a1a !important;
}

.home-intro-content h1 { font-size: 3.4rem !important; }
.home-intro-content h2 { font-size: 3.0rem !important; }
.home-intro-content h3 { font-size: 2.4rem !important; }

.home-intro-content p {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.home-intro-content p:last-child,
.home-intro-content > *:last-child {
    margin-bottom: 0 !important;
}

.home-intro-content a {
    color: #C1121F !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.home-intro-content a:hover {
    color: #9E0E18 !important;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    .home-intro {
        margin-top: 30px !important;
        margin-bottom: 22px !important;
    }

    .home-intro-card {
        border-left-width: 6px !important;
        border-radius: 18px !important;
        padding: 22px 22px !important;
    }

    .home-intro-content {
        font-size: 1.7rem !important;
        line-height: 1.5 !important;
    }

    .home-intro-content h1 { font-size: 2.8rem !important; }
    .home-intro-content h2 { font-size: 2.5rem !important; }
    .home-intro-content h3 { font-size: 2.1rem !important; }
}


/* ===== STARTSEITE: Intro-Block an Post-Breite angleichen ===== */
.home-intro {
    margin-top: 36px !important;
    margin-bottom: 0 !important;
}

.home-intro .home-intro-inner {
    max-width: 1200px !important;
    width: 100% !important;
}

.home-intro-card {
    width: 100% !important;
    box-sizing: border-box !important;
}

.home-intro + .site-main .post-feed {
    padding-top: 24px !important;
}

@media (max-width: 767px) {
    .home-intro {
        margin-top: 26px !important;
        margin-bottom: 0 !important;
    }

    .home-intro + .site-main .post-feed {
        padding-top: 22px !important;
    }
}
