/* =====================================================================
   HL Services – News-Beiträge (Beitragstyp „post“, auf allen Beiträgen geladen)
   Aufbau: .hl-post-hero (Brotkrumen, Kategorie + Datum, H1, Beitragsbild)
           .hl-post-body (Einleitung, Fließtext, Bildergalerie, Verweise)
           danach Kontaktblock (.hl-contact aus hl-site.css).
   Schriftgrößen nur aus der Skala (--fs-h1, --fs-body, --fs-small, --fs-label).
   ===================================================================== */

/* Avada setzt über der Builder-Ausgabe das Beitragsbild als Slideshow (Theme-Option „featured_images_single“
   bzw. Beitrags-Option „show_first_featured_image“). Das Beitragsbild steht bereits im Kopf → ausblenden. */
.hl.single-post #content > .post > .fusion-post-slideshow{display:none!important}

/* ---------- Kopf ---------- */
.hl .hl-post-hero > .fusion-builder-row{display:block!important}
.hl .hl-post-hero > .fusion-builder-row > .fusion-layout-column{width:100%!important;margin-left:0!important;margin-right:0!important;margin-bottom:0!important;float:none}
.hl .hl-post-head .hl-sp-crumbs{margin-bottom:clamp(22px,2.4vw,32px)!important}
/* Kategorie (Pille wie .hl-label) + Datum in einer Zeile */
.hl .hl-post-meta{margin:0 0 22px!important}
.hl .hl-post-meta p{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.hl .hl-post-cat{display:inline-flex;align-items:center;gap:8px;font:700 var(--fs-label)/1 var(--ff);letter-spacing:.08em;text-transform:uppercase;color:var(--red-text);
  background:var(--red-soft);padding:8px 13px;border-radius:999px}
.hl .hl-post-cat::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 auto}
.hl .hl-post-meta time{font-size:var(--fs-small);font-weight:500;line-height:1.3;color:var(--ink-4)}
.hl .hl-post-h1 h1{max-width:22ch;text-wrap:balance}
/* Beitragsbild: volle Inhaltsbreite, ruhiges Querformat */
.hl .hl-post-hero > .fusion-builder-row > .hl-post-media{margin-top:var(--si)!important}
.hl .hl-post-media .fusion-image-element{margin:0}
.hl .hl-panel.hl-post-img{aspect-ratio:2/1;box-shadow:0 1px 0 #0000000a,0 40px 80px -40px #a8102f55}
.hl .hl-post-img img{object-position:50% 55%}

/* ---------- Beitragstext: lesefreundliche Spalte ---------- */
.hl .fusion-fullwidth.hl-post-body{--awb-padding-top:0px}
.hl .hl-post-body > .fusion-builder-row{display:block!important}
.hl .hl-post-body > .fusion-builder-row > .fusion-layout-column{width:100%!important;margin-left:0!important;margin-right:0!important;margin-bottom:0!important;float:none}
.hl .hl-post-text{max-width:68ch}
.hl .hl-post-lead{margin-top:0!important}
.hl .hl-post-lead p{max-width:68ch}
.hl .hl-post-copy{margin-top:1.1em!important}
.hl .hl-post-copy p{max-width:68ch;line-height:1.65}
.hl .hl-post-copy p + p{margin-top:1em}
/* Zwischenüberschriften in Beiträgen (falls vorhanden): Kachel-Titelgröße */
.hl .hl-post-copy :is(h2,h3){margin:1.6em 0 .5em;font-size:var(--fs-card);line-height:1.2;font-weight:700;color:var(--ink);letter-spacing:var(--ls)}
.hl .hl-post-copy :is(ul,ol){margin:1em 0 0 1.2em;padding:0}
.hl .hl-post-copy li{font-size:var(--fs-body);line-height:1.6;color:var(--ink-3)}
.hl .hl-post-copy li + li{margin-top:.4em}

/* ---------- Bildergalerie (Avada-Galerie, Lightbox von Avada) ---------- */
.hl .hl-post-body > .fusion-builder-row > .hl-post-gallery-col{margin-top:var(--si)!important}
.hl .hl-post-gallery .fusion-gallery-image{border-radius:20px;overflow:hidden;background:#ccc;box-shadow:0 1px 0 #0000000a,0 24px 48px -32px #0a141859}
.hl .hl-post-gallery .fusion-gallery-image a{display:block;aspect-ratio:4/3}
.hl .hl-post-gallery .fusion-gallery-image img{display:block;width:100%;height:100%;object-fit:cover;max-width:none;transition:transform .6s var(--ease)}
.hl .hl-post-gallery .fusion-gallery-image a:hover img{transform:scale(1.03)}
.hl .hl-post-gallery .fusion-gallery-image a:focus-visible{outline:3px solid var(--tl);outline-offset:-3px}

/* ---------- Verweise am Beitragsende ---------- */
.hl .hl-post-body > .fusion-builder-row > .hl-post-links{margin-top:var(--si)!important;padding-top:clamp(22px,2.4vw,30px);border-top:1px solid #0a141814}
.hl .hl-post-links > .fusion-column-wrapper{flex-flow:row wrap!important;align-items:center;column-gap:36px;row-gap:14px}
.hl .hl-post-links .hl-more{margin:0!important}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .hl .hl-panel.hl-post-img{aspect-ratio:3/2}
}
@media (max-width:620px){
  .hl .hl-panel.hl-post-img{aspect-ratio:4/3;border-radius:24px}
  .hl .hl-post-gallery .fusion-gallery-image{border-radius:16px}
  /* Avada wechselt erst am eigenen „Small“-Umbruch auf 1 Spalte – am Handy Bilder groß zeigen */
  .hl .hl-post-gallery .fusion-gallery-column{width:100%!important}
}

/* Beitragsbild im Hochformat (z. B. Weihnachtsbaum, Küche): unbeschnitten als 3:4, nicht ins Querformat gezwungen */
.hl .hl-panel.hl-post-img.hl-post-img-hoch{aspect-ratio:3/4;width:min(100%,520px)!important;max-width:520px}
.hl .hl-post-img-hoch img{object-position:50% 50%}
@media (max-width:620px){.hl .hl-panel.hl-post-img.hl-post-img-hoch{aspect-ratio:3/4;width:100%!important}}
/* Beitragsbild 4:3 (z. B. Küche): ganze Szene sichtbar statt 2:1-Ausschnitt */
.hl .hl-panel.hl-post-img.hl-post-img-quer{aspect-ratio:4/3;width:min(100%,900px)!important;max-width:900px}
.hl .hl-post-img-quer img{object-position:50% 50%}
