/* ═══════════════════════════════════════════════════════════
   REPLIVO BLOG — CSS
   Helles Design, exakt wie Hauptseite (weiß/blau/#2563EB)
   ═══════════════════════════════════════════════════════════ */

/* ── Blog-Hero / Page-Header ─────────────────────────────── */
.blog-hero {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 80px 0 40px;
}
.blog-hero h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 12px; }
.blog-hero .blog-hero-sub { color: var(--text-muted); font-size: 1.0625rem; max-width: 560px; }

/* ── Category Filter ─────────────────────────────────────── */
.blog-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.blog-filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.blog-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.blog-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Blog Grid ───────────────────────────────────────────── */
.blog-main { padding: 56px 0 80px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  box-shadow: 0 8px 28px rgba(15,23,42,.09);
  transform: translateY(-2px);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.cat-sicherheit { background: #dbeafe; color: #1d4ed8; }
.cat-software { background: #ede9fe; color: #6d28d9; }
.cat-reinigung { background: #d1fae5; color: #065f46; }
.blog-read-time { font-size: 0.8125rem; color: var(--text-muted); }
.blog-card h2, .blog-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}
.blog-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.blog-card-link {
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.blog-card-link:hover { color: var(--accent-dark); }

/* ── Article Layout ──────────────────────────────────────── */
.article-hero {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 80px 0 40px;
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb svg { flex-shrink: 0; }
.article-hero h1 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 760px;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.article-meta-divider { width: 3px; height: 3px; background: var(--text-muted); border-radius: 50%; }

/* ── Article Body ────────────────────────────────────────── */
.article-body-wrap {
  padding: 56px 0 80px;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.article-content { min-width: 0; }
.article-content p {
  font-size: 1.0rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
}
.article-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 2px solid var(--border);
}
.article-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}
.article-content ul, .article-content ol {
  padding-left: 22px;
  margin-bottom: 18px;
  color: var(--text);
  line-height: 1.8;
}
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content a { color: var(--accent); }
.article-content a:hover { color: var(--accent-dark); }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: #f0f5ff;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ── Table of Contents ───────────────────────────────────── */
.article-sidebar { position: sticky; top: 100px; }
.toc-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.toc-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li {
  margin-bottom: 8px;
}
.toc-list a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.45;
  display: block;
  padding: 2px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color .15s, border-color .15s;
}
.toc-list a:hover, .toc-list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* ── Share Box ───────────────────────────────────────────── */
.share-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
}
.share-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.share-links { display: flex; flex-direction: column; gap: 8px; }
.share-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color .15s, color .15s;
}
.share-link:hover { border-color: var(--accent); color: var(--accent); }

/* ── CTA Box (end of article) ────────────────────────────── */
.article-cta-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 32px 36px;
  margin: 48px 0 40px;
}
.article-cta-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.article-cta-box p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}
.article-cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.article-cta-email {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.article-cta-email a { color: var(--accent); }

/* ── Related Articles ────────────────────────────────────── */
.related-articles {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  text-decoration: none;
  display: block;
  transition: box-shadow .15s ease;
}
.related-card:hover { box-shadow: 0 4px 16px rgba(15,23,42,.08); }
.related-card-cat {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.related-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ── Pillar / Kategorie Page ─────────────────────────────── */
.pillar-hero { background: #f8fafc; border-bottom: 1px solid var(--border); padding: 80px 0 40px; }
.pillar-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.pillar-hero p { color: var(--text-muted); max-width: 640px; line-height: 1.75; font-size: 1.0625rem; }
.pillar-intro { padding: 48px 0 0; }
.pillar-intro-text { max-width: 760px; line-height: 1.8; color: var(--text); margin-bottom: 40px; }
.pillar-intro-text p { margin-bottom: 14px; font-size: 1rem; }
.pillar-articles { padding: 0 0 80px; }
.pillar-articles h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; color: var(--text); }

/* ── FAQ Section in Articles ─────────────────────────────── */
.article-faq { margin: 40px 0; }
.article-faq h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 20px; }
.faq-item-art {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q:hover { background: #f0f5ff; }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.faq-item-art.open .faq-a { max-height: 400px; padding: 14px 20px 18px; }
.faq-item-art.open .faq-q { background: #fff; }
.faq-icon-art { font-size: 1.2rem; color: var(--accent); transition: transform .25s; flex-shrink: 0; }
.faq-item-art.open .faq-icon-art { transform: rotate(45deg); }

/* ── Responsive Blog ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 1.75rem; }
  .article-hero h1 { font-size: 1.5rem; }
  .article-cta-box { padding: 24px 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-content h2 { font-size: 1.25rem; }
}
