/* =============================================================================
   so-fixes.css · seooptimierung.de (astra-child)
   Nachträgliche Korrekturen:
     1) CTA-Banner – zweiter <span> als Subtitle statt zweitem Button
     2) Breadcrumbs auf Einzel-Blogposts (Optik)
     3) Blog-Übersicht – gleichmäßige Karten, Platzhalter bei fehlendem Bild
   ============================================================================= */

/* ── 1) CTA-Banner: Button mit Subtitle ───────────────────────────────────── */
.so-cta-band .so-btn-primary,
.so-cta-inner .so-btn-primary,
.so-cta-band-content .so-btn-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}
.so-cta-band .so-btn-primary > span:first-child,
.so-cta-band-content .so-btn-primary > span:first-child {
  font-weight: 700;
  font-size: 1.02rem;
}
.so-cta-band .so-btn-primary > span:last-child:not(:first-child),
.so-cta-band-content .so-btn-primary > span:last-child:not(:first-child) {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: .01em;
  opacity: .82;
  background: none;        /* falls Theme dem span einen eigenen Button-Hintergrund gibt */
  padding: 0;
  border: 0;
}

/* ── 2) Breadcrumbs auf Einzel-Blogposts ──────────────────────────────────── */
.so-bc {
  max-width: var(--container, 1200px);
  margin: 0 auto 1.2rem;
  padding: 0 20px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--n-500, #6b7280);
}
.so-bc a { color: var(--n-600, #4b5563); text-decoration: none; }
.so-bc a:hover { color: var(--c-magenta, #EC008C); }
.so-bc .separator { margin: 0 .4em; color: var(--n-300, #cbd2da); }
.so-bc p { margin: 0; }

/* ── 3) Blog-Übersicht: saubere, gleich hohe Karten ───────────────────────── */
.blog .site-main .ast-row,
.archive .site-main .ast-row,
.search-results .site-main .ast-row {
  gap: 28px;
}

.blog .site-main article.ast-article-post,
.archive .site-main article.ast-article-post,
.search-results .site-main article.ast-article-post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--n-150, #eef0f3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: box-shadow .2s ease, transform .2s ease;
  margin-bottom: 28px;
}
.blog .site-main article.ast-article-post:hover,
.archive .site-main article.ast-article-post:hover {
  box-shadow: 0 10px 28px rgba(16, 24, 40, .09);
  transform: translateY(-2px);
}

/* Einheitliches Titelbild-Verhältnis */
.blog .ast-article-post .post-thumb img,
.blog .ast-article-post .ast-blog-featured-section img,
.archive .ast-article-post .post-thumb img,
.archive .ast-article-post .ast-blog-featured-section img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Platzhalter-Verlauf, wenn ein Beitrag KEIN Titelbild hat → keine leere Fläche */
.blog .ast-article-post:not(.ast-article-image):not(.has-post-thumbnail) .ast-article-inner::before,
.archive .ast-article-post:not(.ast-article-image):not(.has-post-thumbnail) .ast-article-inner::before {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(90deg, var(--c-cyan, #00AEEF), var(--c-magenta, #EC008C) 55%, var(--c-yellow, #FFD200));
}

/* Innenabstand & Typo der Karten */
.blog .ast-article-post .ast-article-inner,
.archive .ast-article-post .ast-article-inner,
.search-results .ast-article-post .ast-article-inner {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.blog .ast-article-post .entry-title,
.archive .ast-article-post .entry-title {
  font-size: 1.18rem;
  line-height: 1.3;
  margin: .35rem 0 .5rem;
}
.blog .ast-article-post .ast-excerpt-container,
.archive .ast-article-post .ast-excerpt-container {
  color: var(--n-600, #4b5563);
  flex: 1 1 auto;
}
.blog .ast-article-post .read-more,
.archive .ast-article-post .read-more { margin-top: 14px; }

/* Archiv-Kopf (z. B. „Blog“) etwas luftiger */
.blog .ast-archive-description,
.archive .ast-archive-description {
  max-width: var(--container, 1200px);
  margin: 0 auto 1.5rem;
  padding: 0 20px;
}

/* ── 4) Sticky-Sidebar absichern: Astra-Wrapper dürfen das Kleben nicht brechen ─ */
.single .ast-container, .page .ast-container,
.single #primary, .page #primary,
.single .site-content, .page .site-content,
.single .entry-content, .page .entry-content { overflow: visible; }
.so-with-sidebar { align-items: start; }
.so-sidebar { position: sticky; top: 100px; align-self: start; }

/* ── 4) Kompakte Trust-Bar (Zahlen nebeneinander, klein & sauber) ──────────── */
.so-trustbar {
  max-width: var(--container, 1200px);
  margin: -0.5rem auto 2.5rem;
  padding: 0 20px;
}
.so-trustbar-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  background: linear-gradient(180deg, #fff, var(--n-50, #f7f9fb));
  border: 1px solid var(--n-150, #eef0f3);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  overflow: hidden;
}
.so-trustbar-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 22px;
  border-left: 1px solid var(--n-150, #eef0f3);
}
.so-trustbar-item:first-child { border-left: 0; }
.so-trustbar-item .num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--c-cyan, #00AEEF), var(--c-magenta, #EC008C));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.so-trustbar-item .lbl {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--n-500, #6b7280);
  line-height: 1.25;
}
@media (max-width: 600px) {
  .so-trustbar-item { border-left: 0; border-top: 1px solid var(--n-150, #eef0f3); }
  .so-trustbar-item:first-child { border-top: 0; }
}
