/* ==========================================================================
   tohelp.de - Zusatz-Design für Ratgeber-Artikel (wird nach tohelp.css geladen)
   ========================================================================== */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

/* In-Text Werbekarte: robust gegen Textüberlauf auf schmalen Bildschirmen */
.promo-card-info { min-width: 0; }
.promo-card-info > div:last-child { min-width: 0; }
.promo-card-info > div:last-child > div { overflow-wrap: break-word; word-break: break-word; }
@media (max-width: 560px) {
  .promo-card-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .promo-card-cta { width: 100%; text-align: center; }
}
@media (max-width: 360px) {
  .promo-card-row { padding: 20px 18px !important; }
  .promo-card-info > div:last-child > div:first-child { font-size: 0.95rem !important; }
}

.post-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 12px 22px 12px 18px;
  border-radius: 999px;
  border: 1.5px solid #D7DEEF;
  background: #F4F6FB;
  color: var(--blue-mid);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.post-backlink:hover { background: #EAEFFA; border-color: #C3CEE8; }
.post-backlink svg { flex: 0 0 auto; }

/* Glossar-Links */
.gloss { cursor: pointer; white-space: normal; overflow-wrap: break-word; }
@media (max-width: 640px) {
  /* Hover-Tooltips sind auf Touch-Geräten ohnehin nicht nutzbar -> auf Mobil deaktivieren. */
  .gloss::after, .gloss::before { display: none; }
}

/* ---------- Tabellen im Artikel ---------- */
.post-body .table-wrap { margin: 18px 0 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-body .table-wrap:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 2px; }
.post-body .table-hint { display: none; font-size: 0.8rem; font-weight: 600; color: #3C4568; margin: 0 0 18px; }
table.info-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.9rem; color: #3C4568; }
table.info-table th, table.info-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
table.info-table thead th { background: #F4F6FB; color: var(--navy); font-weight: 700; font-size: 0.85rem; }
table.info-table tbody tr:last-child td { border-bottom: none; }
@media (max-width: 560px) {
  /* Auf dem Handy bleibt die Tabelle in ihrer lesbaren Breite und lässt sich seitlich verschieben (keine Wörter mitten im Wort). */
  table.info-table { min-width: 470px; font-size: 0.84rem; }
  table.info-table th, table.info-table td { padding: 10px 10px; }
  table.info-table thead th { font-size: 0.8rem; }
  .post-body .table-hint { display: block; }
}
.post-body ol { color: #3C4568; font-size: 0.97rem; line-height: 1.7; padding-left: 24px; margin: 0 0 14px; }

/* ---------- Quellen und Stand ---------- */
.post-body .quellen-stand { font-size: 0.88rem; color: #55608A; }
.post-body .quellen-liste { font-size: 0.9rem; }
.post-body .quellen-liste a { color: var(--blue-mid); overflow-wrap: anywhere; }

/* ---------- Titelbild: Hinweis "KI-generiert" ---------- */
.post-hero-img, .card-img { position: relative; }
.ki-hinweis {
  position: absolute; right: 12px; bottom: 10px;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2px;
  color: #fff; background: rgba(1, 34, 125, 0.78); padding: 3px 9px; border-radius: 999px;
}
.card-img .ki-hinweis { right: 8px; bottom: 8px; font-size: 0.62rem; padding: 2px 8px; }

/* ---------- Leiste "Weitere Beiträge" ---------- */
.more-posts .container { max-width: 1160px; }
.more-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.more-head h2 { margin: 0; font-size: 1.35rem; color: var(--navy); }
.more-nav { display: flex; gap: 10px; flex: 0 0 auto; }
.more-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #D7DEEF; background: #fff;
  color: var(--blue-mid); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 0 3px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.more-btn[aria-disabled="false"]:hover { background: #EAEFFA; border-color: #C3CEE8; }
.more-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.more-btn:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 2px; }
.more-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 12px 12px 18px; margin: -12px -12px 0; scroll-padding-left: 12px; -webkit-overflow-scrolling: touch;
}
.more-track:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 2px; }
.more-track .blog-card { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; scroll-snap-align: start; }
.more-track .blog-card:hover { transform: translateY(-4px); }
.more-track .blog-card h3 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 900px) { .more-track .blog-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 600px) { .more-track .blog-card { flex-basis: 86%; } .more-track { gap: 16px; } }
@media (prefers-reduced-motion: reduce) {
  html, .more-track { scroll-behavior: auto; }
  .blog-card, .blog-card:hover { transition: none; transform: none; }
}
