/*
Theme Name:   Astra Child GHVF
Theme URI:    https://www.ghvf.de
Description:  GHVF Handwerker GmbH - Child Theme für Astra
Author:       GHVF-Handwerker GmbH
Template:     astra
Version:      1.2.0
Text Domain:  astra-child-ghvf
*/

/* ── GHVF Grundfarben ─────────────────────────────────── */
:root {
  --ghvf-green:      #2e7d32;
  --ghvf-green-dark: #1b5e20;
  --ghvf-blue:       #1a365d;
  --ghvf-blue-light: #2b6cb0;
}

/* ── Suchbutton komplett ausblenden ──────────────────── */
.ast-search-menu-icon,
.ast-header-search,
.search-toggle,
.ast-search-icon,
#ast-search-form,
.header-search,
.astra-search-icon {
    display: none !important;
}

/* ── Site Title ausblenden ───────────────────────────── */
.site-title,
.ast-site-name-wrap .site-title {
    display: none !important;
}

/* ── Header schlanker ────────────────────────────────── */
.site-header, #masthead {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.main-header-bar {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* ── Logo Größe ──────────────────────────────────────── */
.custom-logo {
    max-height: 65px !important;
    width: auto !important;
}
.ast-site-identity { padding: 4px 0 !important; }

/* ── Navigation Links ────────────────────────────────── */
.main-header-menu .menu-item > a {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-weight: 600;
}

/* ── Navigation: aktiver Link & Hover ───────────────── */
.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a,
.main-header-menu .current_page_item > a {
    color: #2e7d32 !important;
}



/* ── Globale Links ───────────────────────────────────── */
a { color: #2e7d32; }
a:hover { color: #1b5e20; }

/* ── Überschriften ───────────────────────────────────── */
h1, h2, h3 { color: #1a365d; }
.entry-title { color: #1a365d !important; }
.entry-title a { color: #1a365d !important; }
.entry-title a:hover { color: #2e7d32 !important; }

/* ── Grüne Linie unter Seitenüberschriften ───────────── */
.entry-header::after,
.ast-single-post-order .entry-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2e7d32;
    margin: 10px 0 20px;
}

/* ── Beitrags-Meta ───────────────────────────────────── */
.entry-meta,
.posted-on,
.byline,
.ast-post-meta {
    color: #999 !important;
    font-size: 13px !important;
}
.entry-meta a { color: #2e7d32 !important; }

/* ── Blog-Karten ─────────────────────────────────────── */
.ast-article-post {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: box-shadow .25s;
}
.ast-article-post:hover { box-shadow: 0 6px 24px rgba(0,0,0,.13); }

/* ── Weiterlesen Button ──────────────────────────────── */
.ast-read-more,
a.read-more,
.more-link {
    background: #2e7d32 !important;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    display: inline-block !important;
    margin-top: 10px !important;
    transition: background .2s !important;
}
.ast-read-more:hover, a.read-more:hover {
    background: #1b5e20 !important;
    color: #fff !important;
}

/* ── Buttons global ──────────────────────────────────── */
.ast-button,
button[type="submit"],
input[type="submit"],
.wp-block-button__link {
    background: #2e7d32 !important;
    color: #fff !important;
    border-radius: 25px !important;
    border: none !important;
    padding: 10px 28px !important;
    font-weight: 700 !important;
    transition: background .2s !important;
}
.ast-button:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    background: #1b5e20 !important;
    color: #fff !important;
}

/* ── Jetpack Sharing Buttons: Häkchen ENTFERNEN ─────── */
.sd-content ul,
.sharedaddy ul,
.jetpack-sharedaddy ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}
.sd-content ul li::before,
.sharedaddy ul li::before,
.jetpack-sharedaddy ul li::before,
.sd-content li::before,
.sharedaddy li::before {
    display: none !important;
    content: none !important;
}
.sd-content ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.sd-content ul li::marker {
    display: none !important;
    content: none !important;
}
.sd-content .share-facebook a,
.sd-content .share-whatsapp a,
.sd-content .share-email a,
.sd-content .share-print a,
.sd-content .share-twitter a,
.sd-content .share-x a {
    border-radius: 20px !important;
    font-size: 13px !important;
    border: 1px solid #ddd !important;
    padding: 6px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    text-decoration: none !important;
    color: #333 !important;
}

/* ── Breadcrumbs ─────────────────────────────────────── */
.ast-breadcrumbs-wrapper { font-size: 13px; }
.ast-breadcrumbs a { color: #2e7d32 !important; }

/* ── FOOTER: Dunkles Blau ────────────────────────────── */
#colophon,
.site-footer,
.ast-small-footer,
footer.site-footer,
.ast-footer-overlay,
.site-below-footer-wrap,
.ast-builder-grid-row-container.site-below-footer-wrap {
    background: #1a365d !important;
    background-color: #1a365d !important;
    color: rgba(255,255,255,.80) !important;
    padding: 20px 0 !important;
    font-size: 14px !important;
}
.ast-small-footer a,
.site-footer a,
#colophon a,
.site-below-footer-wrap a {
    color: #a5d6a7 !important;
    text-decoration: none !important;
}
.ast-small-footer,
.site-below-footer-wrap,
.ast-footer-copyright {
    color: rgba(255,255,255,0.80) !important;
}
.ast-small-footer a:hover,
.site-footer a:hover,
#colophon a:hover {
    color: #fff !important;
}

/* ── Sidebar ─────────────────────────────────────────── */
.widget-title {
    color: #1a365d !important;
    border-bottom: 2px solid #2e7d32 !important;
    padding-bottom: 8px !important;
}

/* ── 404 Suchfeld ────────────────────────────────────── */
.search-form .search-submit {
    background: #2e7d32 !important;
    color: #fff !important;
}

/* ── Homepage: Vollbreite ohne Sidebar ───────────────── */
body.page-id-43 #primary.site-content {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    max-width: 100% !important;
}
body.page-id-43 #secondary.widget-area { display: none !important; }
body.page-id-43 .entry-content {
    padding: 0 !important;
    max-width: 100% !important;
}
body.page-id-43 .entry-header { display: none !important; }
body.page-id-43 .ast-container { max-width: 100% !important; padding: 0 !important; }
body.page-id-43 .site-content > .ast-container { padding: 0 !important; }
body.page-id-43 #content { padding-top: 0 !important; }

/* ── Innere Seiten: Abstand oben ─────────────────────── */
.ast-separate-container .site-content {
    padding-top: 30px !important;
}
