/* Header-Wrapper bei FAQ-Templates enger setzen */
body.archive-faq .site-content,
body.tax-faq_kategorie .site-content,
body.single-faq .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Freiraum oberhalb der Breadcrumbs bei FAQ-Templates entfernen */
body.archive-faq #yoast-breadcrumbs,
body.tax-faq_kategorie #yoast-breadcrumbs,
body.single-faq #yoast-breadcrumbs {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Breadcrumb letzte Ebene ausblenden */
body.single-faq #yoast-breadcrumbs span > span.breadcrumb_last,
body.tax-faq_kategorie #yoast-breadcrumbs span > span.breadcrumb_last {
  display: none !important;
  visibility: hidden !important;
}
body.single-faq #yoast-breadcrumbs { margin-bottom: 10px !important; }
body.single-faq h1.entry-title { margin-top: 0 !important; }

/* Kategorie-Chips */
.faq-category-list { margin: 10px 0 25px; }
.faq-category-items { display:flex; flex-wrap:wrap; gap:8px 12px; list-style:none; margin:0; padding:0; }
.faq-category-item a {
  padding:4px 8px;
  background:#f5f5f5;
  border:1px solid #e5e5e5;
  border-radius:4px;
  font-size:13px;
  color:#444;
  text-decoration:none;
  transition:.2s;
}
.faq-category-item a:hover { background:#e9e9e9; border-color:#dcdcdc; }
.faq-category-item.active a {
  background:#0073aa;
  color:#fff;
  border-color:#00608c;
  font-weight:600;
}

/* Grid */
.faq-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
@media (max-width:900px){ .faq-grid { grid-template-columns:1fr; } }

/* FAQ-Karte */
.faq-card {
  background:#fff;
  border:1px solid #eee;
  border-radius:8px;
  padding:16px;
  transition:.2s;
}
.faq-card:hover { box-shadow:0 6px 18px rgba(0,0,0,.06); transform:translateY(-2px); }
.faq-card-title { margin:0 0 6px; font-size:18px; color:#222; font-weight:600; }
.faq-card-excerpt { margin:0; color:#555; font-size:15px; line-height:1.6; }

/* Einheitliche Badge-Leiste */
.faq-card-badges,
.faq-sidebar-badges {
  margin:6px 0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  font-size:11px;
  line-height:1.4;
}

/* Einheitliche Badge-Styles */
.faq-badge {
  padding:2px 6px;
  border-radius:4px;
  background:#f5f7fa;
  color:#444;
  font-weight:500;
}
.faq-badge-new { background:#e0f7e9; color:#2e7d32; }
.faq-badge-updated { background:#f5f7fa; color:#555; }
.faq-badge-popular { background:#fff3cd; color:#856404; }
.faq-badge-views { background:#f5f7fa; color:#555; }

/* Layout für Single FAQ */
.faq-single-wrapper {
  display:grid;
  grid-template-columns:3fr 1fr; /* Content links, Sidebar rechts */
  gap:24px;
  max-width:1200px;
  margin:0 auto;
  padding:20px;
}
@media (max-width:900px) {
  .faq-single-wrapper { grid-template-columns:1fr; }
}

/* Header */
.faq-single-header { margin-bottom:20px; }
.faq-section-heading {
  margin:30px 0 15px;
  font-size:22px;
  font-weight:600;
  color:#222;
}

/* Antwort-Container */
.faq-answer {
  font-size:16px;
  line-height:1.7;
  color:#333;
  margin-top:20px;
}

/* Sidebar-Box */
.faq-sidebar-box {
  background:#fafafa;
  border:1px solid #e5e5e5;
  padding:16px 18px;
  margin-bottom:26px;
  border-radius:6px;
}
.faq-sidebar-title {
  font-size:17px;
  margin:0 0 12px 0;
  color:#333;
  font-weight:600;
}
.faq-sidebar-list { list-style:none; padding:0; margin:0; }
.faq-sidebar-item {
  border-left:3px solid #ddd;
  padding:6px 10px;
  margin-bottom:8px;
  font-size:14px;
  line-height:1.4;
}
.faq-sidebar-icon { margin-right:6px; }
.faq-sidebar-link { color:#333; text-decoration:none; }

/* Fix: Überschriften dürfen das Grid nicht sprengen */
.faq-answer h2.wp-block-heading {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal !important;
}

.faq-answer h2.wp-block-heading strong {
  white-space: normal !important;
}


/* Zähler Anzahl FAQs auf FAQ-Übersicht */
.faq-category-count {
  font-size: 14px;
  color: #777;
  margin-left: 6px;
  font-weight: 400;
}

.faq-category-more {
  margin: 8px 0 25px;
}

.faq-category-more a {
  font-size: 14px;
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.faq-category-more a:hover {
  text-decoration: underline;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}
