/* ==========================================================================
   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;
}
