/*
Theme Name: Finanzmanager24 Ratgeber
Theme URI: https://www.finanzmanager24.de/ratgeber/
Author: Finanzmanager24
Description: Ratgeber-Theme im Design der Hauptseite finanzmanager24.de. Nutzt Kopf, Menü, Footer und CSS aus /_inc und /assets der Hauptseite.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: fm24-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; } }

/* WPBakery-Inhalte im alten Archiv: Zeilen nicht über die Inhaltsbreite laufen lassen */
.fm24wp-entry .vc_row { margin-left: 0; margin-right: 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; }
