/*
Theme Name: Vergleich-Sofortrente Ratgeber
Theme URI: https://www.vergleich-sofortrente.de/de/
Author: Finanzmanager24
Description: Schlankes Ratgeber-Theme im Design von vergleich-sofortrente.de. Nutzt Kopf, Menü, Footer und CSS aus /_inc und /assets der Hauptseite. Braucht weder Porto noch WPBakery.
Version: 1.4.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: vsr-ratgeber
*/

/* ---------- Übersicht ---------- */
.fm24wp-hero h1 { margin-bottom: .5rem; }
.fm24wp-search { max-width: 560px; margin-top: 18px; }
.fm24wp-searchform { display: flex; gap: 8px; }
.fm24wp-searchform .form-control { min-height: 48px; border-radius: 8px; }
.fm24wp-searchform .btn { min-width: 52px; border-radius: 8px; }
.fm24wp-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }

.fm24wp-cats a { text-decoration: none !important; padding: 7px 14px; border: 1px solid var(--fm24-border); border-radius: 999px; font-size: .88rem; color: var(--fm24-ink); text-decoration: none; background: #fff; }
.fm24wp-cats a:hover, .fm24wp-cats a[aria-current] { background: var(--fm24-primary); border-color: var(--fm24-primary); color: #fff; }
.fm24wp-card__cat { color: var(--fm24-primary); font-weight: 600; }
.fm24wp-card .fm24-card__img img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.fm24wp-empty { padding: 24px; background: var(--fm24-surface); border-radius: var(--fm24-radius); }
.fm24wp-pagination { margin-top: 32px; }
.fm24wp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fm24wp-pagination .page-numbers { min-width: 42px; padding: 8px 12px; text-align: center; border: 1px solid var(--fm24-border); border-radius: 8px; text-decoration: none; color: var(--fm24-ink); }
.fm24wp-pagination .page-numbers.current, .fm24wp-pagination a.page-numbers:hover { background: var(--fm24-primary); border-color: var(--fm24-primary); color: #fff; }
.fm24wp-archive__box { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; padding: 26px 30px; border: 1px solid var(--fm24-border); border-radius: var(--fm24-radius); background: var(--fm24-surface); }
.fm24wp-archive__box h2 { font-size: 1.3rem; margin-bottom: .3rem; }
.fm24wp-archive__box p:last-child { margin-bottom: 0; }

/* ---------- Beitrag ---------- */
.fm24wp-single__head { padding: 36px 0 8px; }

.fm24wp-single__head h1 { font-weight: 600; color: var(--fm24-ink); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.2; max-width: 860px; margin-bottom: 14px; }
.fm24wp-single__head .fm24-eyebrow a { text-decoration: none; }
.fm24wp-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9rem; color: var(--fm24-muted); margin: 0; }
.fm24wp-single__img { max-width: 860px; margin: 24px 0 8px; }
.fm24wp-single__img img { width: 100%; height: auto; border-radius: var(--fm24-radius); display: block; }
.fm24wp-entry { max-width: 860px; padding: 24px 0 8px; font-size: 1.05rem; line-height: 1.75; color: var(--fm24-text); overflow-wrap: break-word; }
.fm24wp-entry > * + * { margin-top: 1.1em; }
.fm24wp-entry h2 { font-size: 1.6rem; margin-top: 1.8em; color: var(--fm24-ink); }
.fm24wp-entry h3 { font-size: 1.3rem; margin-top: 1.5em; color: var(--fm24-ink); }
.fm24wp-entry h4 { font-size: 1.1rem; margin-top: 1.3em; }
.fm24wp-entry a { color: var(--fm24-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.fm24wp-entry ul, .fm24wp-entry ol { padding-left: 1.3em; }
.fm24wp-entry li { margin-bottom: .4em; }
.fm24wp-entry img { max-width: 100%; height: auto; border-radius: 8px; }
.fm24wp-entry figure { margin: 1.6em 0; }
.fm24wp-entry figcaption { font-size: .85rem; color: var(--fm24-muted); margin-top: 6px; }
.fm24wp-entry blockquote, .fm24wp-entry .wp-block-quote { border-left: 4px solid var(--fm24-primary); background: var(--fm24-primary-soft); padding: 14px 20px; margin: 1.6em 0; border-radius: 0 8px 8px 0; font-style: normal; }
.fm24wp-entry table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fm24wp-entry .wp-block-table { overflow-x: auto; }
.fm24wp-entry th, .fm24wp-entry td { border: 1px solid var(--fm24-border); padding: 9px 12px; text-align: left; vertical-align: top; }
.fm24wp-entry th, .fm24wp-entry thead td { background: var(--fm24-surface); color: var(--fm24-ink); font-weight: 600; }

.fm24wp-entry .wp-block-button__link, .fm24wp-entry .wp-block-button__link:visited { color: #fff !important; text-decoration: none !important; display: inline-block; background: var(--fm24-primary); color: #fff; text-decoration: none; border-radius: 8px; padding: 12px 22px; font-weight: 600; }
.fm24wp-entry .wp-block-button__link:hover { background: var(--fm24-primary-dark); }
.fm24wp-entry iframe, .fm24wp-entry video { max-width: 100%; }
.fm24wp-entry .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.fm24wp-entry .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.fm24wp-entry .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.fm24wp-entry::after { content: ""; display: table; clear: both; }
.fm24wp-tags { max-width: 860px; font-size: .9rem; }
.fm24wp-tags a { margin-right: 10px; }
@media (max-width: 575px) { .fm24wp-entry { font-size: 1rem; } .fm24wp-entry .alignleft, .fm24wp-entry .alignright { float: none; max-width: 100%; margin: 1em 0; } }


/* ---------- Fallback ohne /_inc ---------- */
.fm24wp-fallback-header, .fm24wp-fallback-footer { padding: 18px 0; border-bottom: 1px solid #ddd; }
.fm24wp-fallback-footer { border-top: 1px solid #ddd; border-bottom: 0; margin-top: 40px; }

.fm24wp-searchform .btn i { color: #fff; }
.fm24wp-hero .fm24wp-searchform .form-control { border: 0; }

/* ======================================================================
   Alte Inhalte ohne WPBakery/Porto (compat.php)
   ====================================================================== */
.fm24c-row { display: flex; flex-wrap: wrap; gap: 0 32px; }
.fm24c-col { flex: 1 1 100%; min-width: 0; }
@media (min-width: 768px) { .fm24c-col { flex: 0 0 calc(var(--fm24c-w, 100%) - 32px * (1 - var(--fm24c-w, 100%) / 100%)); } }
.fm24c-row > .fm24c-col > :first-child { margin-top: 0; }
.fm24c-text > * + * { margin-top: 1.1em; }
.fm24c-btnrow { margin: 1.4em 0; }
.fm24c-btnrow--center { text-align: center; }
.fm24c-btnrow--right { text-align: right; }
.fm24wp-entry .btn, .fm24wp-entry .btn:hover { text-decoration: none; color: #fff; }
.fm24c-cta { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; margin: 2em 0; padding: 24px 28px; border: 1px solid var(--fm24-border); border-left: 5px solid var(--fm24-primary); border-radius: var(--fm24-radius); background: var(--fm24-surface); }
.fm24c-cta__text { flex: 1 1 320px; }
.fm24c-cta__h { font-size: 1.25rem; font-weight: 600; color: var(--fm24-ink); margin: 0 0 .3em; }
.fm24c-cta__sub { margin: 0; color: var(--fm24-muted); }
.fm24c-toggles { margin: 1.6em 0; }
.fm24c-toggle { border: 1px solid var(--fm24-border); border-radius: 10px; background: #fff; margin: 0 0 10px; overflow: hidden; }
.fm24c-toggle > summary { list-style: none; cursor: pointer; position: relative; padding: 15px 52px 15px 20px; font-weight: 600; color: var(--fm24-ink); }
.fm24c-toggle > summary::-webkit-details-marker { display: none; }
.fm24c-toggle > summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; line-height: 1; color: var(--fm24-primary); }
.fm24c-toggle[open] > summary { color: var(--fm24-primary-dark); border-bottom: 1px solid var(--fm24-border); }
.fm24c-toggle[open] > summary::after { content: "–"; }
.fm24c-toggle__body { padding: 16px 20px; }
.fm24c-toggle__body > :last-child { margin-bottom: 0; }
.fm24c-sep { border: 0; border-top: 2px solid var(--fm24-primary); opacity: .35; margin: 2em 0; }
.fm24c-img img { border-radius: 8px; }

/* ======================================================================
   Bausteine aus den HTML-Beiträgen (früher im Porto-Customizer)
   ====================================================================== */
.fm24wp-entry .fm24-table { min-width: 0; display: block; overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--fm24-border); border-radius: var(--fm24-radius); }
.fm24wp-entry .fm24-table thead th { background: var(--fm24-ink); color: #fff; border-color: var(--fm24-ink); }
.fm24wp-entry .fm24-table td, .fm24wp-entry .fm24-table th { vertical-align: middle; }
@media (min-width: 768px) { .fm24wp-entry .fm24-table { display: table; } }
.fm24wp-entry .fm24-info-box, .fm24wp-entry .fm24-verdict, .fm24wp-entry .fm24-kurz-erklaert, .fm24wp-entry .fm24-kurzantwort, .fm24wp-entry .fm24-highlight, .fm24wp-entry .fm24-answer-box { border-left: 4px solid var(--fm24-primary) !important; background: var(--fm24-primary-soft, #f3f8fc) !important; padding: 16px 20px !important; border-radius: 0 10px 10px 0; margin: 1.6em 0; }
.fm24wp-entry .fm24-info-box h4 { color: var(--fm24-primary-dark); margin-top: 0; }
.fm24wp-entry .fm24-info-box > :last-child, .fm24wp-entry .fm24-verdict > :last-child, .fm24wp-entry .fm24-kurz-erklaert > :last-child { margin-bottom: 0; }
.fm24wp-entry .fm24-toc { border: 1px solid var(--fm24-border); border-radius: var(--fm24-radius); padding: 18px 22px; background: #fff; }
.fm24wp-entry .fm24-toc ul { columns: 2; column-gap: 2rem; margin-bottom: 0; }
@media (max-width: 800px) { .fm24wp-entry .fm24-toc ul { columns: 1; } }
.fm24wp-entry .fm24-pros-cons { display: grid; gap: 16px; }
@media (min-width: 768px) { .fm24wp-entry .fm24-pros-cons { grid-template-columns: 1fr 1fr; } }
.fm24wp-entry .fm24-pros-cons .pros, .fm24wp-entry .fm24-pros-cons .cons { border-radius: 10px; padding: 16px 18px; border: 1px solid var(--fm24-border); }
.fm24wp-entry .fm24-faq-container { margin: 1.6em 0; }
.fm24wp-entry .fm24-faq-item { border: 1px solid var(--fm24-border); border-radius: 10px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.fm24wp-entry .fm24-faq-item summary { list-style: none; cursor: pointer; position: relative; padding: 15px 52px 15px 20px; font-weight: 600; color: var(--fm24-ink); }
.fm24wp-entry .fm24-faq-item summary::-webkit-details-marker { display: none; }
.fm24wp-entry .fm24-faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; line-height: 1; color: var(--fm24-primary); }
.fm24wp-entry .fm24-faq-item[open] summary { color: var(--fm24-primary-dark); border-bottom: 1px solid var(--fm24-border); }
.fm24wp-entry .fm24-faq-item[open] summary::after { content: "–"; }
.fm24wp-entry .fm24-faq-content { padding: 16px 20px; }
.fm24wp-entry .fm24-faq-content > :last-child { margin-bottom: 0; }
.fm24wp-entry .fm24-datenstand, .fm24wp-entry .fm24-table-note { font-size: .88rem; color: var(--fm24-muted); }

/* CTA-Boxen in den Beiträgen */
.fm24wp-entry .fm24-cta, .fm24wp-entry .fm24-cta-box { background: linear-gradient(135deg, var(--fm24-ink) 0%, #0a4f7a 100%); color: #fff; border-radius: var(--fm24-radius); padding: 32px 28px; margin: 2.2em 0; }
.fm24wp-entry .fm24-cta__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.fm24wp-entry .fm24-cta__title, .fm24wp-entry .fm24-cta h2, .fm24wp-entry .fm24-cta h3 { color: #fff; font-size: 1.45rem; margin: 0 0 .5em; }
.fm24wp-entry .fm24-cta__subtitle, .fm24wp-entry .fm24-cta__text, .fm24wp-entry .fm24-cta p { color: rgba(255,255,255,.9); }
.fm24wp-entry .fm24-cta__benefits { list-style: none; padding: 0; margin: 1.2em auto; max-width: 560px; text-align: left; }
.fm24wp-entry .fm24-cta__benefits li { position: relative; padding-left: 28px; margin-bottom: .5em; color: #fff; }
.fm24wp-entry .fm24-cta__benefits li::before { content: "✓"; position: absolute; left: 0; color: #7fd0ff; font-weight: 700; }
.fm24wp-entry .fm24-cta__actions, .fm24wp-entry .fm24-cta__button-row, .fm24wp-entry .fm24-cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 1.4em 0 .8em; }
.fm24wp-entry .fm24-cta__btn, .fm24wp-entry .fm24-btn { display: inline-block; padding: 13px 24px; border-radius: 8px; font-weight: 600; text-decoration: none !important; transition: background-color .2s, color .2s; }
.fm24wp-entry .fm24-cta__btn--primary, .fm24wp-entry .fm24-btn--primary { background: var(--fm24-primary); color: #fff !important; }
.fm24wp-entry .fm24-cta__btn--primary:hover, .fm24wp-entry .fm24-btn--primary:hover { background: var(--fm24-primary-dark); }
.fm24wp-entry .fm24-cta__btn--ghost, .fm24wp-entry .fm24-btn--secondary { border: 2px solid rgba(255,255,255,.8); color: #fff !important; background: transparent; }
.fm24wp-entry .fm24-cta__btn--ghost:hover, .fm24wp-entry .fm24-btn--secondary:hover { background: #fff; color: var(--fm24-ink) !important; }
.fm24wp-entry .fm24-cta__fineprint, .fm24wp-entry .fm24-cta__note, .fm24wp-entry .fm24-cta__hint { font-size: .85rem; color: rgba(255,255,255,.75) !important; margin: 0; }
.fm24wp-entry .fm24-cta a:not([class]) { color: #fff; }
.fm24wp-entry p > small:only-child { display: block; line-height: 1.5; }
@media (max-width: 767px) { .fm24wp-entry table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* ---------- Seitenleiste (Themenmenü) ---------- */
.fm24wp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.fm24wp-main { min-width: 0; }
.fm24wp-layout .fm24wp-entry, .fm24wp-layout .fm24wp-single__img, .fm24wp-layout .fm24wp-tags { max-width: none; }
.fm24wp-side { align-self: stretch; padding-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.fm24wp-side__box { background: #fff; border: 1px solid var(--fm24-border, #e3e8ef); border-radius: 12px; padding: 18px 20px; }
.fm24wp-side__title { font-weight: 600; color: var(--fm24-ink, #1f2d3d); font-size: 1rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--fm24-primary, #0088cc); }
.fm24wp-side__list { list-style: none; margin: 0; padding: 0; font-size: .92rem; line-height: 1.4; }
.fm24wp-side__list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eef1f5; }
.fm24wp-side__list li:last-child { border-bottom: 0; }
.fm24wp-side__list a { color: var(--fm24-text, #444); text-decoration: none; }
body .fm24-content .fm24wp-side a:not(.btn) { text-decoration: none; }
body .fm24-content .fm24wp-side a:not(.btn):hover { text-decoration: underline; }
.fm24wp-side__list a:hover, .fm24wp-side__list .is-active > a, .fm24wp-side__list .current-menu-item > a { color: var(--fm24-primary, #0088cc); }
.fm24wp-side__list .is-active > a, .fm24wp-side__list .current-menu-item > a { font-weight: 600; }
.fm24wp-side__list li > span { color: #8a94a3; font-size: .8rem; white-space: nowrap; }
.fm24wp-side__list--posts li { flex-direction: column; gap: 2px; }
.fm24wp-side__contact { background: #f3f9fd; border-color: #cfe6f5; position: sticky; top: 100px; }
.fm24wp-side__contact p { font-size: .92rem; margin-bottom: 10px; }
.fm24wp-side__phone { display: block; font-size: 1.25rem; font-weight: 700; color: var(--fm24-ink, #1f2d3d); text-decoration: none; }
.fm24wp-side__small { font-size: .8rem !important; color: #6b7685; }
@media (max-width: 991px) {
  .fm24wp-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fm24wp-side { padding-top: 0; }
  .fm24wp-side__contact { position: static; }
}

/* Zusätzliche WPBakery-/Porto-Bausteine */
.fm24c-video { margin: 1.2em 0; }
.fm24c-bars { list-style: none; padding: 0; margin: 1em 0; }
.fm24c-bars li { display: grid; grid-template-columns: minmax(120px, 30%) 1fr 48px; gap: 10px; align-items: center; margin: 6px 0; font-size: .95rem; }
.fm24c-bars__bar { height: 10px; background: #e8eef4; border-radius: 6px; overflow: hidden; }
.fm24c-bars__bar span { display: block; height: 100%; background: var(--fm24-primary, #0088cc); }
.fm24c-recent { list-style: none; padding: 0; margin: 1em 0; }
.fm24c-recent li { padding: 8px 0; border-bottom: 1px solid #eef1f5; }
.fm24c-recent li span { color: #8a94a3; font-size: .85rem; }
