/*
Theme Name: Sparkunst
Theme URI: https://sparkunst.ch/
Author: Sparkunst.ch
Description: Schlankes, eigenes Theme für Sparkunst.ch. Ersetzt Flatsome und unterstützt die bisher genutzten Flatsome-Shortcodes, damit bestehende Inhalte unverändert funktionieren.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: sparkunst
*/

/* ---------- Tokens ---------- */
:root {
  --brand: #ff7f66;
  --brand-dark: #e8664d;
  --brand-soft: #fff3ef;
  --brand-softer: #fef8f5;
  --ink: #1f1d1d;
  --ink-2: #4a4545;
  --muted: #7a7272;
  --line: #ece6e3;
  --bg: #ffffff;
  --footer: #2d2323;
  --ok: #2e9e4f;
  --bad: #d83131;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(45, 35, 35, .05), 0 8px 24px rgba(45, 35, 35, .06);
  --wrap: 1080px;
  --read: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--ink); }
p { margin: 0 0 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: var(--shadow); }

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 750; line-height: 1.22; letter-spacing: -.015em; margin: 1.8em 0 .6em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem); margin-top: 0; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.95rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.4rem); }
h4 { font-size: 1.12rem; }
h5, h6 { font-size: 1rem; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--read { width: min(100% - 40px, var(--read)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn, .button, .wp-block-button__link, input[type="submit"], button.submit {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.5em; border: 0; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff !important; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none !important; border-bottom: 0 !important; cursor: pointer; transition: background .2s, transform .1s;
}
.btn:hover, .button:hover, input[type="submit"]:hover { background: var(--brand-dark); color: #fff !important; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: #fff; color: var(--brand) !important; }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand) !important; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1001; background: var(--brand); color: #fff; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .12); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.site-logo { display: inline-flex; align-items: center; border: 0 !important; }
.site-logo img { display: block; height: 46px; width: auto; max-width: 200px; object-fit: contain; }
@media (max-width: 550px) { .site-logo img { height: 36px; } }
.site-logo__text { font-size: 1.5rem; font-weight: 900; letter-spacing: .02em; color: #fff; text-decoration: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a { display: block; padding: 10px 14px; color: #fff; text-decoration: none; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 8px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_parent > a { background: rgba(255, 255, 255, .16); color: #fff; }
.main-nav .menu-cta > a, .main-nav li:last-child > a[href*="meine-tools"] { background: #fff; color: var(--brand); margin-left: 8px; padding: 10px 18px; }
.main-nav .menu-cta > a:hover, .main-nav li:last-child > a[href*="meine-tools"]:hover { background: var(--brand-soft); color: var(--brand); }
.nav-toggle { display: none; background: transparent; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 8px; }
.nav-toggle svg { width: 28px; height: 28px; display: block; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; inset: 100% 0 auto 0; background: var(--brand); padding: 8px 20px 20px; display: none; box-shadow: 0 12px 24px rgba(0, 0, 0, .12); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 14px 12px; font-size: .95rem; }
  .main-nav .menu-cta > a, .main-nav li:last-child > a[href*="meine-tools"] { margin: 8px 0 0; text-align: center; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); margin: 0 0 18px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Content typography ---------- */
.entry-content { font-size: 1.125rem; line-height: 1.75; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p a:not(.btn):not(.button), .entry-content li a:not(.btn):not(.button), .entry-content td a:not(.btn):not(.button) {
  color: var(--brand); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--brand); padding-bottom: 1px; transition: color .15s, border-color .15s;
}
.entry-content p a:not(.btn):not(.button):hover, .entry-content li a:not(.btn):not(.button):hover, .entry-content td a:not(.btn):not(.button):hover { color: var(--ink); border-bottom-color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.entry-content li { margin: .35em 0; }
li::marker { color: var(--brand); }
.entry-content blockquote { margin: 1.8em 0; padding: 1em 1.4em; border-left: 4px solid var(--brand); background: var(--brand-softer); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.15rem; }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5em; }
.entry-content code { background: var(--brand-softer); padding: .1em .35em; border-radius: 5px; font-size: .92em; }

/* Tables: scrollbar on small screens */
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; margin: 1.6em 0; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content .table-wrap { margin: 1.6em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content .table-wrap > table { display: table; margin: 0; overflow: visible; }
@media (max-width: 640px) { .entry-content .table-wrap > table:has(th:nth-child(4)) { min-width: 560px; } }
.entry-content table thead th { background: var(--ink); color: #fff; text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.entry-content th, .entry-content td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content tbody tr:nth-child(even) td { background: #faf8f7; }

/* Bullet styles from Flatsome content (bullet-checkmark / bullet-cross) */
.entry-content ul li.bullet-checkmark, .entry-content ul li.bullet-cross, .entry-content ul li.bullet-arrow, .entry-content ul li.bullet-star { list-style: none; position: relative; padding-left: 1.6em; margin-left: -1.3em; }
.entry-content ul li.bullet-checkmark::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.entry-content ul li.bullet-cross::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 800; }
.entry-content ul li.bullet-arrow::before { content: "→"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.entry-content ul li.bullet-star::before { content: "★"; position: absolute; left: 0; color: #ff9529; }

/* ---------- Single post ---------- */
.post-hero { padding: 40px 0 8px; }
.post-kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); text-decoration: none; margin-bottom: 14px; }
.post-meta { display: flex; align-items: center; gap: 14px; margin: 22px 0 26px; color: var(--muted); font-size: .92rem; }
.post-meta img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.post-meta strong { color: var(--ink); display: block; font-size: 1rem; }
.post-meta__sep { opacity: .5; }
.post-thumb { margin: 0 0 32px; }
.post-thumb img { display: block; width: 100%; border-radius: var(--radius); }
.post-body { padding-bottom: 40px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0; font-size: .9rem; color: var(--muted); }
.share a, .share button { display: inline-flex; padding: 0; cursor: pointer; font: inherit; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); text-decoration: none; border: 0 !important; }
.share a:hover, .share button:hover { background: var(--brand); color: #fff; }
.share [hidden] { display: none !important; }
.share button { position: relative; }
.share button.is-copied::after { content: "Link kopiert"; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; padding: 5px 9px; border-radius: 6px; }
.share svg { width: 18px; height: 18px; }

.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px; margin: 40px 0; background: var(--brand-softer); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; flex: none; background: #fff; }
.author-box h2 { font-size: 1.1rem; margin: 0 0 4px; }
.author-box p { margin: 0 0 8px; font-size: .98rem; line-height: 1.6; color: var(--ink-2); }
.author-box a { font-weight: 700; color: var(--brand); }

/* ---------- Cards / blog grid ---------- */
.archive-hero { padding: 56px 0 28px; text-align: center; }
.archive-hero h1 { margin-bottom: .3em; }
.archive-hero p { color: var(--ink-2); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }
.cat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.cat-chips a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); text-decoration: none; font-weight: 700; font-size: .9rem; }
.cat-chips a:hover, .cat-chips .is-active a { background: var(--brand); color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; margin: 0; padding: 0; list-style: none; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .card-grid, .card-grid--2 { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--brand-soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.card:hover .card__img img { transform: scale(1.03); }
.card__body { padding: 16px 4px 6px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__meta { font-size: .8rem; color: var(--muted); font-weight: 600; }
.card__title { font-size: 1.15rem; line-height: 1.35; margin: 0; letter-spacing: -.01em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__excerpt { font-size: .97rem; line-height: 1.55; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card--featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; margin-bottom: 48px; }
.card--featured .card__img { aspect-ratio: 16 / 9; }
.card--featured .card__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; }
.card--featured .card__excerpt { -webkit-line-clamp: 4; font-size: 1.05rem; }
.card--featured .card__body { padding: 0; }
.badge { align-self: flex-start; display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 820px) { .card--featured { grid-template-columns: 1fr; gap: 16px; } }

.pagination { display: flex; justify-content: center; gap: 6px; margin: 48px 0 24px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--brand); color: #fff; }

.related { background: var(--brand-softer); padding: 56px 0; margin-top: 24px; }
.related h2 { margin: 0 0 28px; text-align: center; }

/* ---------- Comments ---------- */
.comments { padding: 8px 0 56px; }
.comments h2 { font-size: 1.4rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 1rem; background: #fff; }
.comment-form textarea { min-height: 140px; }
.comment-form p { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; }
.footer-main { background: #fff; border-top: 1px solid var(--line); padding: 36px 0; }
.footer-main__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo img { height: 30px; width: auto; display: block; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--brand); text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.footer-nav a:hover { color: var(--brand-dark); }
.footer-legal { background: var(--footer); color: rgba(255, 255, 255, .62); font-size: .85rem; line-height: 1.65; padding: 32px 0 40px; }
.footer-legal a { color: rgba(255, 255, 255, .85); }
.footer-legal a:hover { color: #fff; }
.footer-legal__top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; color: rgba(255, 255, 255, .85); }
.footer-legal__top nav { display: flex; gap: 18px; }
.footer-legal p { margin: 0 0 10px; max-width: 900px; }

/* ---------- Cookie hint ---------- */
.cookie-hint { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 560px; margin-inline: auto; display: none; align-items: center; gap: 16px; padding: 14px 18px; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); font-size: .88rem; line-height: 1.5; }
.cookie-hint.is-visible { display: flex; }
.cookie-hint p { margin: 0; }
.cookie-hint .btn { flex: none; padding: .6em 1.1em; font-size: .9rem; }

/* ===================================================================
   Flatsome compatibility layer (renders existing shortcodes cleanly)
   =================================================================== */
.fx-section { position: relative; padding: 48px 0; background-size: cover; background-position: center; }
.fx-section--overlay::before { content: ""; position: absolute; inset: 0; background: var(--fx-overlay, rgba(0, 0, 0, .35)); }
.fx-section > .fx-section__inner { position: relative; }
.fx-row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.wrap--read .fx-row, .entry-content .fx-row { margin: 0 -12px; }
.fx-row.fx-collapse { margin: 0; }
.fx-row.fx-collapse > .fx-col { padding: 0; }
.fx-row.fx-v-middle { align-items: center; }
.fx-row.fx-v-bottom { align-items: flex-end; }
.fx-row.fx-h-center { justify-content: center; }
.fx-row.fx-h-right { justify-content: flex-end; }
.fx-col { padding: 0 15px 24px; flex: 0 0 100%; max-width: 100%; }
.entry-content .fx-col { padding: 0 12px 20px; }
.fx-col__inner { height: 100%; }
.fx-col__inner.has-bg { padding: 22px; border-radius: var(--radius); }
@media (min-width: 850px) {
  .fx-col[data-span] { flex: 0 0 calc(var(--span) / 12 * 100%); max-width: calc(var(--span) / 12 * 100%); }
}
@media (min-width: 550px) and (max-width: 849px) {
  .fx-col[data-span-md] { flex: 0 0 calc(var(--span-md) / 12 * 100%); max-width: calc(var(--span-md) / 12 * 100%); }
  .fx-col[data-span]:not([data-span-md]) { flex: 0 0 calc(var(--span) / 12 * 100%); max-width: calc(var(--span) / 12 * 100%); }
}
@media (max-width: 549px) {
  .fx-col[data-span-sm] { flex: 0 0 calc(var(--span-sm) / 12 * 100%); max-width: calc(var(--span-sm) / 12 * 100%); }
}
.fx-text-center { text-align: center; }
.fx-text-right { text-align: right; }
.fx-img { margin: 0 0 1em; }
.fx-img img { display: block; width: 100%; height: auto; }
.fx-text-center .fx-img, .fx-img.fx-center { margin-inline: auto; }
.fx-gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; margin: 1.5em 0; }
.fx-gallery img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
@media (max-width: 549px) { .fx-gallery { grid-template-columns: 1fr; } }
.fx-gap { display: block; }
.fx-divider { width: 40px; height: 3px; background: var(--brand); border: 0; margin: 1em 0; }
.fx-btn-wrap { margin: .4em 0 1em; }

/* Banner / hero */
.fx-banner { position: relative; display: flex; align-items: center; min-height: var(--h, 420px); background: var(--bg-c, var(--brand-softer)); overflow: hidden; }
.fx-banner__media { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: min(40%, 460px); }
.fx-banner__media img { display: block; width: 100%; height: auto; }
.fx-banner__content { position: relative; z-index: 1; width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.fx-textbox { max-width: var(--tb-w, min(560px, 54%)); }
.fx-textbox h1 { margin-bottom: .35em; }
.fx-textbox .toptext { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 849px) {
  .fx-banner { min-height: 0; padding: 40px 0 0; flex-direction: column; }
  .fx-banner__media { position: static; transform: none; width: min(80%, 360px); margin: 16px auto 0; }
  .fx-textbox { max-width: var(--tb-w-md, 100%); }
}

/* Featured box (affiliate / code boxes) */
.fx-featured { display: flex; gap: 18px; align-items: flex-start; }
.fx-featured__img { flex: none; width: 64px; }
.fx-featured__img img { width: 100%; height: auto; display: block; }
.fx-featured__body { flex: 1; min-width: 0; }
.fx-featured__body p:last-child { margin-bottom: 0; }

/* Accordion */
.fx-accordion { margin: 1.5em 0; border-top: 1px solid var(--line); }
.fx-accordion details { border-bottom: 1px solid var(--line); }
.fx-accordion summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 750; font-size: 1.08rem; position: relative; }
.fx-accordion summary::-webkit-details-marker { display: none; }
.fx-accordion summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.fx-accordion details[open] summary::after { content: "−"; }
.fx-accordion__body { padding: 0 0 16px; }
.fx-accordion__body h4 { font-size: 1.05rem; margin: 1.2em 0 .4em; }

/* Brand logo strip (home) */
.brandlogo img { opacity: 1; filter: none; }
span.brands-white { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
span.eins-grey { display: block; font-size: inherit; font-weight: inherit; color: inherit; }

/* Visibility helpers */
@media (max-width: 549px) { .hide-for-small { display: none !important; } }
@media (min-width: 550px) { .show-for-small { display: none !important; } }
@media (max-width: 849px) { .hide-for-medium { display: none !important; } }
@media (min-width: 850px) { .show-for-medium { display: none !important; } }

/* Gutschein / referral code */
.gutschein-container { display: inline-flex; align-items: center; gap: 12px; position: relative; padding: 6px 6px 6px 18px; border: 2px dashed var(--brand); border-radius: var(--radius-sm); background: #fff; margin: .3em 0 .8em; }
.gutschein-code { font-size: 1.1rem; font-weight: 800; letter-spacing: .05em; color: var(--ink); user-select: all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-btn { background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: var(--brand-dark); }
.custom-tooltip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .8rem; padding: 4px 12px; border-radius: 6px; opacity: 0; visibility: hidden; transition: opacity .2s; white-space: nowrap; }
.gutschein-container.show-tooltip .custom-tooltip { opacity: 1; visibility: visible; }

/* Newsletter footer section (block content) */
.datenschutz-nl p { font-size: .85rem !important; line-height: 1.5 !important; }
.datenschutz-nl a { border-bottom: 0 !important; font-weight: 400; color: var(--ink); }
.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody { padding: 0 !important; }

/* "Zuletzt aktualisiert" legacy box */
.update-box { margin: 0 0 24px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.aut-name { color: var(--ink); font-size: 1rem; font-weight: 700; margin: 6px 0; }
.last-date-txt { font-size: .88rem; }

/* Mobile type scale */
@media (max-width: 549px) {
  body { font-size: 17px; }
  .entry-content { font-size: 1.06rem; }
  .post-hero { padding-top: 26px; }
  .fx-section { padding: 32px 0; }
}

@media print {
  .site-header, .site-footer, .share, .related, .comments, .cookie-hint { display: none !important; }
}

/* Row width handling */
.fx-row-outer { width: min(100% - 40px, var(--maxw, var(--wrap))); margin-inline: auto; }
.fx-col .fx-row-outer, .post-body .fx-row-outer, .fx-affiliate .fx-row-outer, .fx-banner .fx-row-outer { width: 100%; }
.builder > .fx-gap:first-child { display: none; }

/* Cards inside content must not inherit the in-text link style */
.entry-content .card a, .entry-content .card__title a { color: var(--ink); font-weight: inherit; border-bottom: 0; padding: 0; }
.entry-content .card__title a:hover { color: var(--brand); }
.entry-content .card-grid { padding-left: 0; }
.entry-content .card-grid > li { margin: 0; }

/* Legacy heading spans used in content */
span.eins, span.head-eins { display: block; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
span.zwei, span.head-zwei, span.zwei-grey { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); font-weight: 750; line-height: 1.25; }
span.drei, span.head-drei, span.drei-grey { font-size: 1.3rem; font-weight: 750; }

/* Newsletter footer section */
.footer-newsletter .fx-section { padding: 72px 0; }
.footer-newsletter .fx-col__inner.has-bg { padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.footer-newsletter p { margin-bottom: .8em; }

/* Layout tweaks: homepage tiles in 3 columns, 4 stat boxes as 2x2 */
.fx-text div[style*="minmax(240px"] { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 850px) { .fx-text div[style*="minmax(240px"] { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 550px) { .fx-text div[style*="minmax(240px"] { grid-template-columns: 1fr !important; } }
.entry-content .sk-stats:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 550px) { .entry-content .sk-stats:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; } }

/* Affiliate columns: equal-height, buttons aligned at the bottom */
.fx-btn-wrap { display: block; }
.fx-affiliate .fx-col__inner { display: flex; flex-direction: column; height: 100%; }
.fx-affiliate .fx-col__inner > .gutschein-container { align-self: flex-start; }
.fx-affiliate .fx-col__inner > .fx-btn-wrap:last-child { margin-top: auto; }

/* Equal-height cards in every grid */
.card-grid > * { height: 100%; }
.card-grid > :not(.card) { display: flex; }
.card-grid > :not(.card) > .card { flex: 1; }
.fx-featured__img { width: 48px; }

/* Rows with a column background (Flatsome col_bg): each column is its own card */
.fx-row--cards { align-items: stretch; }
.fx-row--cards > .fx-col > .fx-col__inner { background: var(--col-bg, #fff); padding: 26px 26px 28px; border-radius: var(--radius); border: 1px solid rgba(0, 0, 0, .05); height: 100%; display: flex; flex-direction: column; }
.fx-row--cards > .fx-col > .fx-col__inner > .gutschein-container { align-self: flex-start; }
.fx-row--cards > .fx-col > .fx-col__inner > .fx-btn-wrap:last-child { margin-top: auto; }
.post-body .fx-row--cards { margin-top: 40px; margin-bottom: 16px; }

/* Breadcrumbs inside page content look like the old site: bold coral link */
.fx-col__inner > span > span > a, .entry-content #breadcrumbs a { color: var(--brand); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--brand); }

/* The old in-content "Dom / Zuletzt aktualisiert" box duplicates the post header meta */
.post-body .update-box { display: none; }

/* Table of contents: calm, like the old site (no coral underline) */
.entry-content .wpj-jtoc { font-size: 1rem; }
.entry-content .wpj-jtoc a, .entry-content .wpj-jtoc li a { border-bottom: 0 !important; font-weight: 400 !important; padding-bottom: 0; }
.entry-content .wpj-jtoc a:hover { color: var(--brand) !important; }

/* Reading progress bar (single posts) */
.read-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }

/* ---------- Tool cards on pages (Meine Tools) ---------- */
body.page .fx-section:has(.fx-row--cards) { width: 100vw; margin-left: calc(50% - 50vw); padding: 56px 0 64px !important; background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%) !important; }
body.page .fx-section:has(.fx-row--cards) > .fx-row-outer,
body.page .fx-section:has(.fx-row--cards) .fx-row-outer:has(> .fx-row--cards) { width: min(100% - 40px, 1080px); margin-inline: auto; }
body.page .fx-row--cards { margin: 0 -10px; }
body.page .fx-row--cards > .fx-col { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 10px 20px; }
@media (max-width: 960px) { body.page .fx-row--cards > .fx-col { flex-basis: 50%; max-width: 50%; } }
@media (max-width: 620px) { body.page .fx-row--cards > .fx-col { flex-basis: 100%; max-width: 100%; } }
body.page .fx-row--cards > .fx-col > .fx-col__inner { gap: 14px; padding: 24px 22px 22px; border: 1px solid #f1e6e2; border-radius: 18px; box-shadow: 0 1px 2px rgba(45, 35, 35, .04), 0 8px 24px rgba(45, 35, 35, .06); transition: transform .2s, box-shadow .2s; }
body.page .fx-row--cards > .fx-col > .fx-col__inner:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(45, 35, 35, .05), 0 16px 36px rgba(45, 35, 35, .10); }
body.page .fx-row--cards .fx-gap, body.page .fx-row--cards .fx-divider { display: none; }
body.page .fx-row--cards .fx-text { font-size: 1rem; line-height: 1.5; }
body.page .fx-row--cards .fx-col__inner > .fx-text:first-child > p:first-child { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
body.page .fx-row--cards .fx-text h2, body.page .fx-row--cards .fx-text h3 { font-size: 1.55rem; line-height: 1.15; margin: 0 0 6px; }
body.page .fx-row--cards .fx-text p { margin: 0 0 6px; color: var(--muted); }
body.page .fx-row--cards .fx-text p strong { color: var(--ink); font-size: 1.15rem; }
body.page .fx-row--cards ul { margin: 0; padding: 14px 0 0; border-top: 1px solid #f1e6e2; font-size: .95rem; line-height: 1.45; }
body.page .fx-row--cards ul li { margin-bottom: 8px; }
body.page .fx-row--cards .gutschein-container { align-self: stretch !important; display: flex; justify-content: space-between; align-items: center; }
body.page .fx-row--cards .fx-btn-wrap { margin-top: auto; }
body.page .fx-row--cards .fx-btn-wrap .btn { width: 100%; }
html, body { overflow-x: clip; }

body.page .fx-row--cards ul li { margin-left: 0 !important; }
body.page .fx-row--cards .gutschein-container { margin-top: auto; }
body.page .fx-row--cards .gutschein-container ~ .fx-btn-wrap { margin-top: 0; }

.entry-content .wpj-jtoc a { color: #333 !important; }
.entry-content .wpj-jtoc a:hover { color: var(--brand) !important; }

/* ---------- Responsive Flatsome widths (image, text box, section, column) ---------- */
.fx-img { max-width: var(--w, 100%); }
@media (max-width: 849px) { .fx-img { max-width: var(--w-md, var(--w, 100%)); } }
@media (max-width: 549px) {
  .fx-img { max-width: var(--w-sm, var(--w-md, var(--w, 100%))); }
  .fx-textbox { max-width: var(--tb-w-sm, 100%); }
  .fx-section[style*="--pad-sm"] { padding-top: var(--pad-sm) !important; padding-bottom: var(--pad-sm) !important; }
  .fx-col[style*="--mt-sm"] { margin-top: var(--mt-sm); }
}

/* Hero typography like the old site: bold two-line title, calm dark text */
.fx-banner h1 { font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.05rem); line-height: 1.05; font-weight: 700; letter-spacing: -.015em; color: #333; }
.fx-banner .toptext { font-size: 1.25rem; line-height: 1.45; color: #333; }
@media (max-width: 549px) { .fx-banner .toptext { font-size: 1.1rem; } }

/* Post cards inside content: no link underline, coral only on hover */
.entry-content .card-grid li a:not(.btn):not(.button) { border-bottom: 0; padding-bottom: 0; color: var(--ink); font-weight: inherit; }
.entry-content .card-grid li a:not(.btn):not(.button):hover { color: var(--brand); border-bottom: 0; }

/* Meine Tools: intro, image and cards share the same width as the header */
body.page .builder .fx-row-outer:has(.fx-row--cards) { width: min(100% - 40px, var(--wrap)); }
body.page .builder .fx-row-outer:has(.fx-row--cards) .fx-col__inner > p { max-width: 820px; }

/* Round images (Flatsome class "circle") */
.fx-img.circle img { border-radius: 50%; }

/* Mobile hero: keep the pig image clear of the text */
@media (max-width: 549px) {
  .fx-col[style*="--mt-sm"] { margin-top: max(var(--mt-sm), 0px); }
  .fx-banner + .fx-section.show-for-small { padding-top: 20px !important; }
}

/* Mobile header like the old site: centered, larger logo, menu icon on the right */
@media (max-width: 860px) {
  .site-header__inner { justify-content: center; min-height: 70px; }
  .nav-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
}
@media (max-width: 550px) { .site-logo img { height: 46px; } }

/* Mobile spacing and heading size matched to the old site */
@media (max-width: 549px) {
  h1, .fx-banner h1 { font-size: 2.25rem; line-height: 1.12; }
  .fx-banner { padding-top: 28px; }
  .post-hero { padding-top: 20px; }
}

/* ---------- Homepage: our real savings ---------- */
.spk-proof { padding: 64px 0 56px; background: #fff; }
.spk-proof__kicker { margin: 0 0 8px; text-align: center; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.spk-proof h2 { margin: 0 auto 32px; max-width: 720px; text-align: center; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.2; }
.spk-proof__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.spk-proof__item { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 22px; border: 1px solid #f1e6e2; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(45, 35, 35, .04), 0 8px 24px rgba(45, 35, 35, .06); transition: transform .2s, box-shadow .2s; }
.spk-proof__item:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(45, 35, 35, .05), 0 16px 36px rgba(45, 35, 35, .10); color: var(--ink); }
.spk-proof__label { color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.spk-proof__value { white-space: nowrap; color: var(--brand); font-size: clamp(1.6rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.spk-proof__value small { margin-left: 2px; color: var(--muted); font-size: .95rem; font-weight: 600; letter-spacing: 0; }
.spk-proof__text { color: #4a4545; font-size: .95rem; line-height: 1.5; }
.spk-proof__text strong { color: var(--ink); }
.spk-proof__more { margin-top: auto; padding-top: 6px; color: var(--brand); font-size: .9rem; font-weight: 700; }
.spk-proof__note { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: .8rem; }
@media (max-width: 960px) { .spk-proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 549px) { .spk-proof { padding: 44px 0 40px; } .spk-proof__grid { grid-template-columns: 1fr; gap: 14px; } }
.spk-proof__intro { max-width: 640px; margin: -18px auto 28px; text-align: center; color: #4a4545; }

/* Hero kicker above the main title */
.hero-kicker { margin: 0 0 12px; color: var(--brand); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Accessibility: small coral text in a slightly deeper coral (contrast >= 4.5:1) */
.hero-kicker, .spk-proof__kicker, .post-kicker, .badge,
body.page .fx-row--cards .fx-col__inner > .fx-text:first-child > p:first-child,
.main-nav .menu-cta > a, .main-nav li:last-child > a[href*="meine-tools"] { color: #c0442a; }

/* Update / note box in posts */
.entry-content .spk-note { margin: 0 0 1.4em; padding: 16px 18px; background: #fff7df; border: 1px solid #f6e3a4; border-radius: 14px; font-size: 1rem; line-height: 1.6; }

/* ---------- Goldene-Gans-Box [gans] ---------- */
.entry-content .spk-gans { display: flex; gap: 16px; align-items: flex-start; margin: 1.8em 0; padding: 18px 20px; background: linear-gradient(135deg, #fff9e6 0%, #fff3d1 100%); border: 1px solid #f3dc95; border-radius: var(--radius); }
.spk-gans__icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50% !important; box-shadow: 0 4px 12px rgba(216, 143, 18, .25); }
.spk-gans__body { min-width: 0; font-size: 1rem; line-height: 1.6; }
.spk-gans__body > :last-child { margin-bottom: 0; }
.entry-content .spk-gans__title { margin: 2px 0 .35em; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9a6206; }
@media (max-width: 480px) { .entry-content .spk-gans { padding: 16px; gap: 12px; } .spk-gans__icon { flex-basis: 44px; width: 44px; height: 44px; } }

/* ---------- Affiliate-Box [deal] ---------- */
.entry-content .spk-deal { margin: 2em 0; padding: 24px 24px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(31, 29, 29, .06); position: relative; overflow: hidden; }
.entry-content .spk-deal::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--brand); }
.spk-deal__label { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c0442a; background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.entry-content .spk-deal__name { margin: .35em 0 .4em; font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: var(--ink); }
.entry-content .spk-deal__points { list-style: none; padding: 0; margin: 0 0 1em; font-size: 1rem; }
.entry-content .spk-deal__points li { position: relative; padding-left: 1.6em; margin: .3em 0; }
.entry-content .spk-deal__points li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.spk-deal__action { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.spk-deal__code { display: flex; flex-direction: column; gap: 4px; }
.spk-deal__bonus { font-size: .88rem; font-weight: 700; color: var(--ink); }
.spk-deal__code .gutschein-container { margin: 0; align-self: flex-start; }
.entry-content .spk-deal__btn { margin-left: auto; }
.entry-content .spk-deal__note { margin: 12px 0 0; font-size: .78rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 520px) { .spk-deal__code, .spk-deal__code .gutschein-container { width: 100%; } .spk-deal__code .gutschein-container { justify-content: space-between; } .entry-content .spk-deal__btn { margin-left: 0; width: 100%; text-align: center; } }
/* ---------- Reusable blocks: wrapper is neutral by default ---------- */
.spk-block { display: contents; }

/* ---------- Newsletter block (1209) in posts ---------- */
.entry-content .spk-block-1209 { display: block; position: relative; margin: 2.6em 0 2em; padding: 30px 28px 22px; text-align: center; background: linear-gradient(135deg, #fff4ef 0%, #ffe6dd 100%); border: 1px solid #ffd4c7; border-radius: 18px; overflow: hidden; }
.entry-content .spk-block-1209::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -70px; border-radius: 50%; background: rgba(255, 127, 102, .12); }
.entry-content .spk-block-1209 h3 { position: relative; margin: 0 0 .35em; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.25; color: var(--ink); }
.entry-content .spk-block-1209 h3::after { content: "Clevere Spar-Ideen und unser Weg zum passiven Einkommen. Kein Spam, jederzeit abmeldbar."; display: block; margin-top: .5em; font-size: .98rem; font-weight: 400; line-height: 1.5; color: #5d5656; }
.spk-block-1209 .fx-html { position: relative; }
.spk-block-1209 .ml-form-embedContainer, .spk-block-1209 .ml-form-embedWrapper, .spk-block-1209 .ml-form-embedBody { background: transparent !important; padding: 0 !important; margin: 0 auto !important; max-width: 520px !important; width: 100% !important; border: 0 !important; }
.spk-block-1209 .ml-form-embedContent { display: none !important; }
.spk-block-1209 form.ml-block-form { display: flex !important; gap: 10px; align-items: stretch; margin: 14px 0 0 !important; }
.spk-block-1209 .ml-form-formContent { flex: 1 1 auto; margin: 0 !important; padding: 0 !important; width: auto !important; }
.spk-block-1209 .ml-form-fieldRow, .spk-block-1209 .ml-field-group { margin: 0 !important; padding: 0 !important; }
.spk-block-1209 input.form-control { width: 100% !important; height: 50px !important; padding: 0 16px !important; font: inherit !important; font-size: 1rem !important; color: var(--ink) !important; background: #fff !important; border: 1px solid #f1c9bd !important; border-radius: 12px !important; box-shadow: none !important; }
.spk-block-1209 input.form-control:focus { outline: 2px solid var(--brand) !important; outline-offset: 1px; border-color: var(--brand) !important; }
.spk-block-1209 .ml-form-embedSubmit { flex: 0 0 auto; margin: 0 !important; width: auto !important; float: none !important; }
.spk-block-1209 .ml-form-embedSubmit button.primary { height: 50px !important; padding: 0 22px !important; width: auto !important; font: inherit !important; font-size: 1rem !important; font-weight: 800 !important; letter-spacing: .02em; text-transform: none !important; color: #fff !important; background: var(--brand) !important; border: 0 !important; border-radius: 12px !important; cursor: pointer; transition: background .15s; }
.spk-block-1209 .ml-form-embedSubmit button.primary:hover { background: var(--brand-dark) !important; }
.entry-content .spk-block-1209 .fx-html p { position: relative; margin: 12px 0 0; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.entry-content .spk-block-1209 .fx-html p a { font-weight: 600; border-bottom-width: 1px; }
.spk-block-1209 .fx-gap { display: none; }
@media (max-width: 520px) {
  .entry-content .spk-block-1209 { padding: 24px 18px 18px; }
  .spk-block-1209 form.ml-block-form { flex-direction: column; }
  .spk-block-1209 .ml-form-embedSubmit button.primary { width: 100% !important; }
}
/* ---------- Affiliate blocks in posts (895 Swissquote, 916 Yuh, 921 template) ---------- */
.entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) .fx-row-outer { margin: 2.2em 0; }
.entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) .fx-row--cards > .fx-col > .fx-col__inner { position: relative; overflow: hidden; padding: 26px 26px 22px; background: linear-gradient(135deg, #fff6d6 0%, #ffe9a3 100%) !important; border: 1px solid #f3d77a; border-radius: 18px; box-shadow: 0 12px 30px rgba(196, 150, 20, .14); }
.entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) .fx-row--cards > .fx-col > .fx-col__inner::after { content: ""; position: absolute; width: 170px; height: 170px; right: -60px; top: -70px; border-radius: 50%; background: rgba(255, 255, 255, .45); pointer-events: none; }
.entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) .fx-featured { position: relative; z-index: 1; gap: 18px; align-items: flex-start; }
.entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) .fx-featured__img { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(196, 150, 20, .22); }
.entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) .fx-featured__img img { width: 28px !important; height: 28px !important; border-radius: 0; }
.entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) .fx-featured__body::before { content: "Mein Tipp"; display: inline-block; margin-bottom: 10px; padding: 4px 10px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a5a00; background: rgba(255, 255, 255, .7); border-radius: 999px; }
.entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) .fx-featured__body p { font-size: 1rem; line-height: 1.65; color: #3a3330; }
.entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) .fx-gap { height: 12px !important; }
.entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) .gutschein-container { background: #fff; border-color: #e0a92a; }
.entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) p:has(> a[href*="/empfiehlt/"]) { margin: 6px 0 0; }
.entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) a[href*="/empfiehlt/"] { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .8em 1.4em !important; line-height: 1.2; font-size: .98rem; font-weight: 800; letter-spacing: .01em; color: #fff !important; background: var(--brand); border: 0 !important; border-radius: var(--radius-sm); text-decoration: none; box-shadow: 0 6px 16px rgba(255, 127, 102, .35); transition: background .15s, transform .15s; }
.entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) a[href*="/empfiehlt/"]:hover { background: var(--brand-dark); color: #fff !important; transform: translateY(-1px); }
@media (max-width: 520px) {
  .entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) .fx-row--cards > .fx-col > .fx-col__inner { padding: 20px 18px; }
  .entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) .fx-featured { flex-direction: column; gap: 10px; }
  .entry-content :is(.spk-block-895, .spk-block-916, .spk-block-921, .fx-row-outer:has(.fx-featured a[href*="/empfiehlt/"])) a[href*="/empfiehlt/"] { display: flex; justify-content: center; }
}

/* ---------- Startseite: Logos «Anbieter, die ich selbst nutze» ---------- */
.fx-col.brandlogo { padding: 18px 0 28px !important; }
.brandlogo .fx-row { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 34px; }
.brandlogo .fx-row > .fx-col { flex: 0 0 auto !important; width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.brandlogo .fx-img { max-width: none !important; margin: 0 !important; }
.brandlogo .fx-img img { width: 100px !important; height: 40px !important; max-width: 100px; object-fit: contain; opacity: .9; filter: none !important; transition: opacity .15s; }
.brandlogo .fx-img img:hover { opacity: 1; }
@media (max-width: 549px) {
  .brandlogo .fx-row { gap: 14px 26px; padding: 0 6px; }
  .brandlogo .fx-img img { width: 100px !important; height: 40px !important; max-width: 100px; }
  .fx-col.brandlogo { flex-basis: 100% !important; max-width: 100% !important; width: 100% !important; margin-top: 0 !important; padding: 14px 0 30px !important; }
  .fx-row:has(> .fx-col.brandlogo) { padding-left: 16px !important; padding-right: 16px !important; }
  .brandlogo .fx-row { gap: 12px 6px; padding: 0 !important; }
}
/* Startseite mobil: Button direkt unter dem Text, Gans kleiner */
@media (max-width: 549px) {
  .hero-btn-mobile .fx-section__inner { padding-top: 4px; padding-bottom: 8px; }
}

/* Kinderdepot-Rechner */
.spk-calc{margin:2em 0;padding:1.4em 1.2em 1.1em;border-radius:18px;background:#FFF8F3;border:1px solid #F3DCCF;box-shadow:0 6px 24px rgba(255,127,102,.08)}
.spk-calc__title{margin:0;font-weight:800;font-size:1.25em;color:#2b2b2b}
.spk-calc__sub{margin:.2em 0 1em;color:#6B6560;font-size:.95em}
.spk-calc__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8em}
.spk-calc__field{display:flex;flex-direction:column;justify-content:flex-end;gap:.3em;font-size:.88em;font-weight:600;color:#4a4540}
.spk-calc__input{display:flex;align-items:center;background:#fff;border:1.5px solid #E6DAD2;border-radius:10px;padding:0 .7em;transition:border-color .15s}
.spk-calc__input:focus-within{border-color:#FF7F66}
.spk-calc__input input{flex:1;min-width:0;border:0!important;background:none!important;box-shadow:none!important;padding:.6em 0!important;margin:0!important;font-size:1.05rem;font-weight:700;color:#2b2b2b;height:auto!important}
.spk-calc__input input:focus{outline:none}
.spk-calc__input em{font-style:normal;color:#7A8699;font-size:.9em;margin-left:.4em}
.spk-calc__check{display:flex;gap:.55em;align-items:flex-start;margin:1em 0 .2em;font-size:.92em;line-height:1.35;cursor:pointer}
.spk-calc__check input{margin:.15em 0 0;width:1.15em;height:1.15em;accent-color:#FF7F66;flex:none}
.spk-calc__res{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6em;margin:1.1em 0 .8em}
.spk-calc__tile{background:#fff;border-radius:12px;padding:.7em .8em;border:1px solid #F0E4DC}
.spk-calc__tile span{display:block;font-size:.8em;color:#6B6560;font-weight:600}
.spk-calc__tile strong{display:block;font-size:1.15em;color:#2b2b2b;font-variant-numeric:tabular-nums;white-space:nowrap}
.spk-calc__tile.is-main{background:#FF7F66;border-color:#FF7F66}
.spk-calc__tile.is-main span,.spk-calc__tile.is-main strong{color:#fff}
.spk-calc__chart{display:block;width:100%;height:auto;background:#fff;border-radius:12px;padding:6px 4px 0}
.spk-calc__legend{display:flex;gap:1.2em;justify-content:center;margin:.5em 0 0;font-size:.85em;color:#4a4540}
.spk-calc__legend span:before{content:"";display:inline-block;width:18px;height:4px;border-radius:2px;margin-right:.4em;vertical-align:middle;background:#FF7F66}
.spk-calc__legend .l-p:before{background:repeating-linear-gradient(90deg,#7A8699 0 6px,transparent 6px 10px)}
.spk-calc__goose{margin:.9em 0 0;padding:.7em .9em;background:#FFF1D6;border-radius:10px;font-size:.95em}
.spk-calc__goose:empty{display:none}
.spk-calc__note{margin:.7em 0 0;font-size:.78em;color:#7A8699;line-height:1.4}
@media (min-width:640px){.spk-calc{padding:1.6em 1.6em 1.2em}.spk-calc__grid,.spk-calc__res{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Zahlen-Kacheln + Schritt-Karten */
.spk-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7em;margin:1.2em 0 1.4em;padding:0;list-style:none}
.spk-tiles li{margin:0!important;padding:1em .9em;background:#FFF8F3;border:1px solid #F3DCCF;border-radius:16px;list-style:none}
.spk-tiles li:before{display:none!important}
.spk-tiles strong{display:block;font-size:1.55em;line-height:1.1;font-weight:800;color:#FF7F66;margin-bottom:.25em;font-variant-numeric:tabular-nums}
.spk-tiles span{display:block;font-size:.88em;line-height:1.35;color:#4a4540}
.spk-steps{counter-reset:spkstep;margin:1.2em 0 1.6em;padding:0;list-style:none;display:grid;gap:.8em}
.spk-steps>li{counter-increment:spkstep;position:relative;margin:0!important;padding:1em 1em 1em 3.6em;background:#fff;border:1px solid #EDE6E0;border-radius:16px;box-shadow:0 3px 14px rgba(0,0,0,.04);list-style:none}
.spk-steps>li:before{content:counter(spkstep);position:absolute;left:1em;top:1em;width:1.9em;height:1.9em;border-radius:50%;background:#FF7F66;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:.95em}
.spk-steps>li>strong:first-child{display:block;font-size:1.05em;margin-bottom:.2em;color:#2b2b2b}
.spk-steps>li p{margin:0;font-size:.95em;line-height:1.5}
@media (min-width:640px){.spk-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
.spk-calc{scroll-margin-top:90px}
.spk-calc__hint{margin:.5em 0 0;font-size:.85em;color:#C2492F;font-weight:600}
.spk-calc__hint:empty{display:none}
.spk-jump{margin:1.2em 0 1.6em;text-align:center}
.entry-content .spk-jump a{display:inline-flex;align-items:center;gap:.5em;padding:.8em 1.4em !important;border-radius:999px;background:#FF7F66;color:#fff !important;font-weight:800;text-decoration:none !important;line-height:1.2;box-shadow:0 6px 18px rgba(255,127,102,.3);border:0 !important}
.entry-content .spk-jump a:hover{background:#f26a50}
.spk-jump small{display:block;margin-top:.5em;color:#6B6560;font-size:.85em}

/* Tabellen: keine vertikalen Scrollbalken, responsive-table als Karten auf dem Handy */
.entry-content .table-wrap{overflow-y:hidden}
.entry-content table.responsive-table{font-size:.92em}
@media (max-width:640px){
.entry-content .table-wrap:has(> table.responsive-table){overflow:visible}
.entry-content table.responsive-table,.entry-content table.responsive-table tbody,.entry-content table.responsive-table tr,.entry-content table.responsive-table td{display:block;width:100%}
.entry-content table.responsive-table thead{display:none}
.entry-content table.responsive-table{width:100% !important;table-layout:auto}
.entry-content table.responsive-table tr{box-sizing:border-box;margin:0 0 .9em;border:1px solid #EDE6E0;border-radius:14px;overflow:hidden;background:#fff}
.entry-content table.responsive-table td{display:grid;box-sizing:border-box;grid-template-columns:38% minmax(0,1fr);overflow-wrap:anywhere;gap:.6em;padding:.55em .9em;border:0;border-bottom:1px solid #F3EEEA;text-align:left}
.entry-content table.responsive-table td:last-child{border-bottom:0}
.entry-content table.responsive-table td:before{content:attr(data-label);font-weight:700;color:#6B6560;font-size:.9em}
.entry-content table.responsive-table td:first-child{background:#FFF8F3;font-size:1.05em}
}

/* ETF-Steckbrief */
.spk-etf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5em;margin:.8em 0 1em;padding:.8em;background:#FFF8F3;border:1px solid #F3DCCF;border-radius:16px}
.spk-etf>div{background:#fff;border-radius:10px;padding:.55em .75em}
.spk-etf span{display:block;font-size:.78em;font-weight:600;color:#6B6560}
.spk-etf strong{display:block;font-size:.98em;line-height:1.35;color:#2b2b2b}
.spk-etf .spk-etf__wide,.spk-etf .spk-etf__full{grid-column:1/-1}
.entry-content .spk-etf__link{margin-top:-.2em;font-size:.92em}
@media (min-width:640px){.spk-etf{grid-template-columns:repeat(4,minmax(0,1fr))}.spk-etf .spk-etf__wide{grid-column:span 2}.spk-etf .spk-etf__full{grid-column:1/-1}}

/* Strategie-Leiter */
.spk-ladder{list-style:none;margin:1.2em 0;padding:0;display:grid;gap:.7em;counter-reset:none}
.spk-ladder>li{display:grid;grid-template-columns:auto 1fr;gap:.9em;align-items:start;margin:0!important;padding:1em;background:#fff;border:1px solid #EDE6E0;border-radius:16px;box-shadow:0 3px 14px rgba(0,0,0,.04)}
.spk-ladder>li:before{display:none!important}
.spk-ladder strong{display:block;font-size:1.02em;color:#2b2b2b}
.spk-ladder p{margin:.35em 0 0;font-size:.93em;line-height:1.5}
.spk-ladder__lvl{display:inline-flex;flex-direction:column-reverse;gap:3px;padding-top:.2em}
.spk-ladder__lvl i{display:block;width:14px;height:8px;border-radius:3px;background:#EDE6E0}
.spk-ladder__lvl[data-l="1"] i:nth-child(-n+1),.spk-ladder__lvl[data-l="2"] i:nth-child(-n+2),.spk-ladder__lvl[data-l="3"] i:nth-child(-n+3),.spk-ladder__lvl[data-l="4"] i:nth-child(-n+4),.spk-ladder__lvl[data-l="5"] i:nth-child(-n+5){background:#FF7F66}
.spk-ladder__lvl[data-l="1"] i:first-child,.spk-ladder__lvl[data-l="2"] i:nth-child(-n+2){background:#E0A92A}
.spk-chips{display:flex;flex-wrap:wrap;gap:.35em;margin-top:.4em}
.spk-chips em{font-style:normal;font-weight:800;font-size:.8em;letter-spacing:.02em;padding:.25em .65em;border-radius:999px;background:#FFF1EC;color:#C2492F}
.spk-ladder__legend{display:flex;align-items:center;gap:.6em;font-size:.85em;color:#6B6560}
.spk-ladder__legend .spk-ladder__lvl{flex-direction:row;padding:0}

.entry-content .spk-ladder,.entry-content .spk-steps{padding-left:0!important;margin-left:0!important}

.entry-content .spk-tiles{padding-left:0!important;margin-left:0!important}

/* Zitat-Banner, Vergleichskarte, Bei-uns-Box */
.entry-content .spk-quote{position:relative;margin:1.6em 0;padding:1.1em 1.3em 1.1em 3.1em;background:linear-gradient(135deg,#FF7F66 0%,#FF9E85 100%);color:#fff;border-radius:18px;font-size:1.15em;font-weight:700;line-height:1.45;box-shadow:0 10px 26px rgba(255,127,102,.25)}
.entry-content .spk-quote:before{content:"\201C";position:absolute;left:.35em;top:.05em;font:700 3.2em/1 Georgia,serif;opacity:.55}
.spk-vs{display:grid;grid-template-columns:1fr 1fr;gap:.7em;margin:1.6em 0}
.spk-vs__col{border-radius:16px;padding:1em .9em;border:1px solid #EDE6E0;background:#fff}
.spk-vs__col.is-k{background:#F5F6F8;border-color:#E3E6EC}
.spk-vs__col.is-i{background:#FFF8F3;border-color:#F3DCCF}
.entry-content .spk-vs__head{display:flex;align-items:center;gap:.45em;margin:0 0 .6em;font-weight:800;font-size:1.1em}
.spk-vs__col.is-k .spk-vs__head{color:#5E6878}.spk-vs__col.is-i .spk-vs__head{color:#E0573E}
.entry-content .spk-vs ul{list-style:none;margin:0!important;padding:0!important}
.entry-content .spk-vs li{margin:0 0 .5em!important;padding:0!important;font-size:.9em;line-height:1.4}
.entry-content .spk-vs li:before{display:none!important}
.spk-vs li strong{display:block;font-size:.8em;color:#6B6560;font-weight:700}
.spk-story{display:grid;grid-template-columns:52px 1fr;gap:.9em;align-items:start;margin:1.5em 0;padding:1em 1.1em;background:#FFF6E3;border:1px solid #F2DDA6;border-radius:16px}
.spk-story img{width:52px;height:52px;border-radius:50%;background:#fff;margin:0!important}
.spk-story__label{display:inline-block;margin-bottom:.3em;padding:.15em .6em;font-size:.72em;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8A5A00;background:#fff;border-radius:999px}
.entry-content .spk-story p{margin:0;font-size:.97em;line-height:1.55}
@media (max-width:480px){.spk-story{display:block}.spk-story img{float:left;width:40px!important;height:40px!important;margin:0 .6em .3em 0!important}.spk-story__label{margin-top:.55em}}
@media (max-width:400px){.spk-vs{gap:.5em}.spk-vs__col{padding:.85em .7em}}

.spk-tiles.is-3{grid-template-columns:1fr}
@media (min-width:640px){.spk-tiles.is-3{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Startseite 01.12.2026: Hero-Buttons, Denkweisen, Hier starten, Kategorie-Label */
.fx-banner__content .fx-btn-wrap{display:inline-block;margin:4px 10px 4px 0}
.hero-btn-mobile .fx-btn-wrap{display:block}.hero-btn-mobile .fx-btn-wrap+.fx-btn-wrap{margin-top:10px}
.fx-banner__content .btn--ghost,.hero-btn-mobile .btn--ghost{box-shadow:inset 0 0 0 2px var(--brand)}
.card__cat{align-self:flex-start;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--brand)}
.card__cat.is-investieren{color:#2F8F83}
.spk-mind{padding:64px 0 40px;background:#fff}
.spk-mind h2,.spk-start h2{margin:0 auto 12px;max-width:760px;text-align:center;font-size:clamp(1.6rem,1.2rem + 1.4vw,2.2rem);line-height:1.2}
.spk-mind__intro,.spk-start__intro{margin:0 auto 28px;max-width:640px;text-align:center;color:#4a4545}
.spk-mind__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.spk-mind__item{padding:22px;border:1px solid #f1e6e2;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(45,35,35,.06)}
.spk-mind__item.is-3{border-color:#FFC9BC;background:var(--brand-softer)}
.spk-mind__item strong{display:block;margin:12px 0 6px;font-size:1.05rem}
.spk-mind__item p{margin:0;color:#4a4545;font-size:.95rem;line-height:1.5}
.spk-mind__bar{display:block;height:8px;border-radius:99px;background:#EDE6E0;overflow:hidden}
.spk-mind__bar i{display:block;height:100%;border-radius:99px;background:#E0A92A}
.spk-mind__item.is-1 .spk-mind__bar i{width:20%}.spk-mind__item.is-2 .spk-mind__bar i{width:40%}.spk-mind__item.is-3 .spk-mind__bar i{width:100%;background:var(--brand)}
.spk-mind__lbl{display:block;margin-top:6px;color:var(--muted);font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.spk-mind__q{margin:26px auto 18px;text-align:center;font-size:1.1rem}
.spk-start{padding:56px 0;background:var(--brand-softer)}
.spk-start__grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.spk-start__col{padding:22px;border-radius:20px;background:#fff;border:1px solid #f1e6e2}
.spk-start__col h3{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:1.25rem}
.spk-start__col h3 span{font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:4px 10px;border-radius:99px;background:var(--brand-soft);color:var(--brand)}
.spk-start__col.is-i h3 span{background:#E6F4F1;color:#2F8F83}
.spk-start__col a.spk-start__link{display:flex;gap:14px;align-items:flex-start;padding:12px;margin:0 -12px;border-radius:14px;color:var(--ink);text-decoration:none;border:0!important}
.spk-start__col a.spk-start__link:hover{background:var(--brand-softer)}
.spk-start__col.is-i a.spk-start__link:hover{background:#F2FAF8}
.spk-start__ico{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--brand-soft);color:var(--brand)}
.spk-start__col.is-i .spk-start__ico{background:#E6F4F1;color:#2F8F83}
.spk-start__ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.spk-start__link strong{display:block;font-size:1rem}
.spk-start__link small{display:block;color:#5a5454;font-size:.9rem;line-height:1.4;margin-top:2px}
.spk-start__all{display:inline-block;margin-top:8px;font-weight:700;color:var(--brand);text-decoration:none;border:0!important}
.spk-start__col.is-i .spk-start__all{color:#2F8F83}
@media (max-width:820px){.spk-mind__grid,.spk-start__grid{grid-template-columns:1fr}.spk-mind{padding:44px 0 28px}.spk-start{padding:40px 0}}
/* Startseite: Newsletter-Hintergrund 3D (Medien 1354), Über-mich-Kacheln */
.footer-newsletter .fx-section{background-image:url(/wp-content/uploads/2026/12/image-26-1536x864.webp)!important;background-size:cover!important;background-position:70% 0%!important}
.footer-newsletter .fx-section--overlay::before{background:transparent!important}
.spk-about-tiles{margin:20px 0 6px!important}
.spk-about-tiles strong{font-size:1.12rem!important;line-height:1.25!important}
@media (max-width:700px){.footer-newsletter .fx-section{background-image:url(/wp-content/uploads/2026/12/image-26-1024x576.webp)!important;background-position:88% 30%!important}}
/* Ampel-Farben für Vermögensaufbau (wenig = rot, mittel = gelb, viel = grün) */
.entry-content ul.spk-tiles.spk-about-tiles li strong,.spk-tiles.spk-about-tiles strong{font-size:1.15rem!important;line-height:1.25!important;overflow-wrap:anywhere}
.spk-mind__item.is-1 .spk-mind__bar i{background:#E5604D}
.spk-mind__item.is-2 .spk-mind__bar i{background:#E0A92A}
.spk-mind__item.is-3 .spk-mind__bar i{background:#3FA37C}
.spk-mind__item.is-3{border-color:#BFE3CF;background:#F1F9F4}
.spk-ladder.is-good .spk-ladder__lvl[data-l="1"] i:nth-child(-n+1){background:#E5604D}
.spk-ladder.is-good .spk-ladder__lvl[data-l="2"] i:nth-child(-n+2){background:#E0A92A}
.spk-ladder.is-good .spk-ladder__lvl[data-l="5"] i{background:#3FA37C}

/* Sprungmarken nicht unter dem Sticky-Header */
.entry-content h2[id],.entry-content h3[id],.entry-content [id]{scroll-margin-top:96px}
