/* =========================================================
   abmelden.info – "Beliebte Themen" Startseiten-Sektion
   Einbindung: in assets/css/content.css einfügen (oder als
   eigene Datei assets/css/beliebte-themen.css anlegen und
   in functions.php per wp_enqueue_style() laden).
   Nutzt die bestehende Theme-Schriftart (kein font-family
   Override), Farben orientieren sich an der Marken-Palette
   Navy #141D30 / Gold #B8935A.
   ========================================================= */

.bt-section {
  --bt-navy: #141D30;
  --bt-navy-soft: #3B4562;
  --bt-gold: #B8935A;
  --bt-text: #3C4356;
  --bt-muted: #6B7080;
  --bt-border: #E6E4DD;
  --bt-bg-alt: #F7F6F3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  color: var(--bt-text);
  box-sizing: border-box;
}
.bt-section * { box-sizing: border-box; }

.bt-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bt-navy);
  text-align: center;
  margin: 0 0 32px;
}
.bt-heading .bt-icon {
  width: 24px;
  height: 24px;
  flex: none;
}
.bt-heading .bt-icon.bt-icon-gold { color: var(--bt-gold); }
.bt-heading .bt-icon.bt-icon-navy { color: var(--bt-navy); }

.bt-more-link {
  display: block;
  text-align: center;
  margin-top: 28px;
}
.bt-more-link a {
  color: var(--bt-navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bt-more-link a:hover { color: var(--bt-gold); }

/* ---------- 1. Beliebte Themen – Karten-Grid ---------- */

.bt-topics-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}
.bt-topic-card {
  background: #fff;
  border: 1px solid var(--bt-border);
  border-radius: 14px;
  padding: 28px 12px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--bt-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  flex: 0 0 calc(16.666% - 16px);
  max-width: calc(16.666% - 16px);
  margin: 0 8px 16px;
}
.bt-topic-card:hover {
  box-shadow: 0 10px 24px rgba(20, 29, 48, 0.09);
  border-color: var(--bt-navy);
  transform: translateY(-2px);
  color: var(--bt-navy);
}
.bt-topic-card .bt-icon {
  width: 30px;
  height: 30px;
  color: var(--bt-navy);
}
.bt-topic-card span {
  font-weight: 600;
  font-size: 0.98rem;
}

/* ---------- 2. Banner "Nichts vergessen?" ---------- */

.bt-banner {
  display: flex;
  align-items: center;
  gap: 48px;
  background: #FBF3E7;
  border-radius: 20px;
  padding: 40px;
  margin: 56px 0;
}
.bt-banner-media {
  flex: 0 0 340px;
  max-width: 340px;
}
.bt-banner-media img {
  width: 100%;
  height: auto;
  display: block;
}
.bt-banner-content h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--bt-navy);
  margin: 0 0 14px;
}
.bt-banner-content p {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--bt-text);
  margin: 0 0 22px;
  max-width: 46ch;
}
.bt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bt-navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 10px;
  transition: background .18s ease;
}
.bt-btn:hover { background: var(--bt-navy-soft); color: #fff; }

/* ---------- 3. Passend zu deinem Anliegen ---------- */

.bt-benefit-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}
.bt-benefit-card {
  border-radius: 16px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  margin: 0 10px 20px;
}
.bt-benefit-card .bt-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.bt-benefit-card .bt-icon-circle .bt-icon { width: 26px; height: 26px; }
.bt-benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bt-navy);
  margin: 0 0 6px;
}
.bt-benefit-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--bt-text);
  margin: 0 0 14px;
}
.bt-benefit-card a.bt-link {
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 16px;
}
.bt-benefit-card a.bt-link:hover { text-decoration: underline; }
.bt-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(20,29,48,0.08);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--bt-muted);
  width: fit-content;
}
.bt-partner-badge strong { color: var(--bt-navy); font-weight: 700; }

.bt-benefit-card.bt-green { background: #EAF6EC; }
.bt-benefit-card.bt-green .bt-icon-circle { background: #D7EEDA; color: #2F8F49; }
.bt-benefit-card.bt-green a.bt-link { color: #2F8F49; }

.bt-benefit-card.bt-blue { background: #E9F3FC; }
.bt-benefit-card.bt-blue .bt-icon-circle { background: #D7E8FA; color: #2D6CB4; }
.bt-benefit-card.bt-blue a.bt-link { color: #2D6CB4; }

.bt-benefit-card.bt-purple { background: #F3EAFB; }
.bt-benefit-card.bt-purple .bt-icon-circle { background: #E7D8F7; color: #7B3FBF; }
.bt-benefit-card.bt-purple a.bt-link { color: #7B3FBF; }

/* ---------- 4. Info-Hinweis ---------- */

.bt-notice {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: var(--bt-bg-alt);
  border-radius: 12px;
  padding: 18px 24px;
  margin: 40px 0;
  font-size: 0.92rem;
  color: var(--bt-muted);
  line-height: 1.55;
}
.bt-notice .bt-icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: #6B92C4;
}
.bt-notice a { color: var(--bt-navy); text-decoration: underline; font-weight: 600; }

/* ---------- 5. Schon gewusst? ---------- */

.bt-facts-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -14px;
}
.bt-fact {
  text-align: left;
  flex: 0 0 calc(25% - 28px);
  max-width: calc(25% - 28px);
  margin: 0 14px 24px;
}
.bt-fact .bt-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.bt-fact .bt-icon-circle .bt-icon { width: 24px; height: 24px; }
.bt-fact h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--bt-navy);
  margin: 0 0 8px;
  line-height: 1.35;
}
.bt-fact p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--bt-text);
  margin: 0 0 10px;
}
.bt-fact a.bt-link {
  font-weight: 600;
  color: var(--bt-navy);
  text-decoration: none;
  font-size: 0.92rem;
}
.bt-fact a.bt-link:hover { text-decoration: underline; }

.bt-fact.bt-tone-orange .bt-icon-circle { background: #FBEEDD; color: #C98A3E; }
.bt-fact.bt-tone-gray .bt-icon-circle { background: #E9ECF2; color: #4A5568; }
.bt-fact.bt-tone-gold .bt-icon-circle { background: #F6EAD4; color: #B8935A; }
.bt-fact.bt-tone-blue .bt-icon-circle { background: #E3EEFC; color: #2D6CB4; }

/* ---------- 6. Häufig gesucht Themen ---------- */

.bt-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.bt-tag {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--bt-border);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bt-navy);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.bt-tag:hover { border-color: var(--bt-navy); color: var(--bt-gold); }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .bt-topic-card { flex: 0 0 calc(33.333% - 16px); max-width: calc(33.333% - 16px); }
  .bt-benefit-card { flex: 0 0 calc(100% - 20px); max-width: calc(100% - 20px); }
  .bt-fact { flex: 0 0 calc(50% - 28px); max-width: calc(50% - 28px); }
  .bt-banner { gap: 32px; }
  .bt-banner-media { flex: 0 0 260px; max-width: 260px; }
}

@media (max-width: 640px) {
  .bt-section { padding: 36px 18px; }
  .bt-heading { font-size: 1.3rem; }
  .bt-topic-card { flex: 0 0 calc(50% - 16px); max-width: calc(50% - 16px); }
  .bt-banner {
    flex-direction: column;
    padding: 28px 24px;
    text-align: center;
  }
  .bt-banner-media { max-width: 220px; }
  .bt-banner-content p { max-width: none; }
  .bt-fact { flex: 0 0 calc(100% - 28px); max-width: calc(100% - 28px); text-align: center; }
  .bt-fact .bt-icon-circle { margin-left: auto; margin-right: auto; }
}
