/******** CAMINO – HEADER FIX (Frontend only) ********/
body:not(.wp-admin) {

  /* Blog-Meta & Kategorien aus */
  .ast-article-post .entry-header .cat-links,
  .ast-article-post .ast-post-category,
  .ast-article-post .ast-post-category a,
  .cat-links,
  .ast-article-post .entry-meta,
  .entry-meta, .posted-on, .byline, .comments-link { display:none !important; }

  /* Keine Menüs/Hamburger/Off-Canvas */
  .menu-toggle, .ast-mobile-menu-trigger, .off-canvas-toggle,
  .ast-off-canvas-wrap, .ast-off-canvas-overlay, .ast-mobile-popup-drawer {
    display:none !important; visibility:hidden !important;
  }
  .ast-off-canvas-active, .menu-toggle-active { overflow:visible !important; }

  /* Header-Grundlage */
  header.site-header, .ast-primary-header-bar {
    background:#ffffff !important;     /* Orange weg */
  }
  .ast-primary-header-bar {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:72px;
    padding:12px 16px;
  }

  /* Leere Header-Sektionen ausblenden */
  .site-header .site-header-section:empty,
  .ast-primary-header-bar .ast-builder-grid-row > .site-header-section:empty {
    display:none !important;
  }

  /* Branding wirklich sichtbar machen – alle Varianten von Astra abdecken */
  .ast-site-identity, .site-branding, .site-title-wrap, .ast-site-title-wrap {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px;
    visibility:visible !important;
    opacity:1 !important;
  }
  .custom-logo-link, .site-logo-img { display:inline-block !important; }

  /* Logo-Größe */
  .custom-logo-link img, .site-logo-img img, .site-logo img {
    max-height:70px !important; height:auto !important; width:auto !important;
    display:block !important;
  }

  /* Titel neben dem Logo */
  .site-title, .site-title a, .ast-site-title, .ast-site-title a {
    display:inline-block !important;
    margin-left:10px !important;
    font-size:1.35em !important;
    line-height:1.2;
    color:#111 !important;
    text-decoration:none !important;
    opacity:1 !important;
  }
}
body:not(.wp-admin) .ast-site-identity,
body:not(.wp-admin) .site-branding { visibility:visible!important; opacity:1!important; }

body:not(.wp-admin) .site-title,
body:not(.wp-admin) .site-title a { position:static!important; clip:auto!important; display:inline-block!important; }

body:not(.wp-admin) .custom-logo-link { display:inline-block!important; }
body:not(.wp-admin) .ast-site-identity { width:auto!important; }

/******** CAMINO – HEADER & META CLEANUP (Frontend only) ********/
body:not(.wp-admin) {

  /* --- A) Header: alle Navigationsbereiche komplett verstecken --- */
  .ast-primary-header-bar .main-header-bar-navigation,
  .ast-primary-header-bar .main-header-menu,
  .ast-header-navigation,
  .main-header-menu,
  .ast-mobile-popup-drawer,
  .ast-mobile-menu-trigger,
  .menu-toggle,
  .off-canvas-toggle,
  .ast-off-canvas-wrap,
  .ast-off-canvas-overlay {
    display: none !important;
    visibility: hidden !important;
  }

  /* Leere Header-Spalten entfernen & Header zentrieren/mit Luft */
  .ast-primary-header-bar .ast-builder-grid-row > .site-header-section:empty { display:none !important; }
  .ast-primary-header-bar {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:72px;
    padding:12px 16px;
    background:#ffffff !important; /* Orange ist weg */
  }

  /* Branding (Logo + Titel) sicher zeigen */
  .ast-site-identity, .site-branding, .site-title-wrap, .ast-site-title-wrap {
    display:flex !important; align-items:center !important; justify-content:center !important; gap:10px;
    visibility:visible !important; opacity:1 !important;
  }
  .custom-logo-link img { max-height:70px !important; height:auto !important; width:auto !important; display:block !important; }
  .site-title, .site-title a { display:inline-block !important; margin-left:10px !important; font-size:1.35em !important; line-height:1.2; color:#111 !important; text-decoration:none !important; }

  /* --- B) Blogkarten: Kategorie-Badge + Meta-Zeile ausblenden --- */
  .entry-header .cat-links,
  .ast-post-category,
  .ast-post-category a,
  .cat-links,
  .entry-meta,
  .ast-blog-meta,
  .posted-on,
  .posted-by,
  .byline,
  .comments-link,
  .entry-taxonomy {
    display: none !important;
  }

  /* Optional: Screenreader-Label "Main Menu" visuell verstecken (Zugänglichkeit bleibt ok) */
  .screen-reader-text { position:absolute !important; left:-999em !important; }
}
/* Jetpack "Ähnliche Beiträge" überall verstecken */
body:not(.wp-admin) .jp-relatedposts {
  display: none !important;
}
.single-post .ast-featured-image img {
    object-fit: contain;   /* Bild behält seine Proportionen */
    width: 100%;
    height: auto;
}
/* 1) IMG-Fall: erzwungene Höhen entfernen */
.single-post .ast-featured-image img,
.single-post .wp-post-image {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* 2) Hintergrund-Fall (wenn Astra das Beitragsbild als background-image setzt) */
.single-post .ast-featured-image .post-thumb-img-content,
.single-post .ast-single-post-featured-section {
  background-size: contain !important;   /* oder cover, wenn Zuschnitt ok ist */
  background-repeat: no-repeat !important;
  background-position: center center !important;
  min-height: auto !important;           /* evtl. feste Höhe entfernen */
}