/* wmfx Core – Komponenten der dynamischen Blöcke. Tokens kommen aus theme.json (Fallbacks für Fremd-Themes). */
:root {
	--wmfx-navy: var(--wp--preset--color--navy, #0C1830);
	--wmfx-primary: var(--wp--preset--color--primary, #2C6FD6);
	--wmfx-primary-dark: var(--wp--preset--color--primary-dark, #1F55AB);
	--wmfx-gold: var(--wp--preset--color--gold, #B5892B);
	--wmfx-up: var(--wp--preset--color--green-text, #059669);
	--wmfx-down: var(--wp--preset--color--red-text, #C42A44);
	--wmfx-red: var(--wp--preset--color--red, #E23A54);
	--wmfx-amber: var(--wp--preset--color--amber, #D9A62B);
	--wmfx-green: var(--wp--preset--color--green, #12C98F);
	--wmfx-text: var(--wp--preset--color--text, #26313F);
	--wmfx-muted: var(--wp--preset--color--muted, #4E5768);
	--wmfx-gray: var(--wp--preset--color--gray, #7A8291);
	--wmfx-gray-light: var(--wp--preset--color--gray-light, #9AA0AA);
	--wmfx-border: var(--wp--preset--color--border, #E3E3DC);
	--wmfx-page: var(--wp--preset--color--page, #F6F6F2);
	--wmfx-white: #fff;
	--wmfx-mono: var(--wp--preset--font-family--space-mono, 'Space Mono', ui-monospace, monospace);
	--wmfx-sans: var(--wp--preset--font-family--montserrat, 'Montserrat', sans-serif);
	--wmfx-radius: 6px;
}

/* ── Basis-Utilities ─────────────────────────────────────────── */
.wmfx-mono { font-family: var(--wmfx-mono); font-size: 10.5px; letter-spacing: .2px; }
.wmfx-muted { color: var(--wmfx-gray); }
.is-up { color: var(--wmfx-up); }
.is-down { color: var(--wmfx-down); }
.wmfx-label { display: inline-flex; align-items: center; gap: 9px; font-family: var(--wmfx-mono); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--wmfx-gray); }
.wmfx-label--primary { color: var(--wmfx-primary); margin-bottom: 16px; }
.wmfx-live { width: 7px; height: 7px; border-radius: 50%; background: var(--wmfx-green); animation: wmfxPulse 2s ease-out infinite; }
@keyframes wmfxPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(18,201,143,.45); } 70% { box-shadow: 0 0 0 7px rgba(18,201,143,0); } }
.wmfx-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.wmfx-more { font-size: 13px; font-weight: 600; color: var(--wmfx-primary); white-space: nowrap; }
.wmfx-arrow { display: inline-block; transition: transform .25s ease; }
.wmfx-more:hover .wmfx-arrow, .wmfx-card-link:hover .wmfx-arrow { transform: translateX(5px); }
.wmfx-spark { display: block; }
.wmfx-stars { color: var(--wmfx-amber); letter-spacing: 1px; }
.wmfx-badge { width: 42px; height: 42px; border-radius: 8px; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; font-family: var(--wmfx-sans); }
.wmfx-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--wmfx-navy); color: #fff; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; font-family: var(--wmfx-sans); }
.wmfx-avatar--lg { width: 52px; height: 52px; font-size: 15px; }
.wmfx-imgz { overflow: hidden; background: #ECECE6; }
.wmfx-imgz img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.wmfx-card-link:hover .wmfx-imgz img { transform: scale(1.04); }
.wmfx-img-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #ECECE6, #E3E3DC); }
.wmfx-card-link { display: block; color: inherit; text-decoration: none; }
.wmfx-card-link:hover { color: inherit; }
.wmfx-card-link h2, .wmfx-card-link h3 { transition: color .15s; }
.wmfx-card-link:hover h2, .wmfx-card-link:hover h3, .wmfx-card-link:hover .wmfx-row-card__title, .wmfx-news__title:hover { color: var(--wmfx-primary); }
.wmfx-cat { display: block; font-family: var(--wmfx-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.wmfx-meta { color: var(--wmfx-gray); font-size: 10px; }

/* Buttons (Brand Guide: Primär / Ghost / Dunkel) */
.wmfx-btn { display: inline-block; background: var(--wmfx-primary); color: #fff; font-family: var(--wmfx-sans); font-weight: 600; font-size: 14px; border: none; border-radius: var(--wmfx-radius); padding: 12px 20px; cursor: pointer; text-decoration: none; line-height: 1.2; transition: transform .15s ease, background .15s ease, color .15s ease; text-align: center; }
.wmfx-btn:hover { background: var(--wmfx-primary-dark); color: #fff; transform: translateY(-1px); }
.wmfx-btn--ghost { background: transparent; border: 1px solid var(--wmfx-navy); color: var(--wmfx-navy); font-size: 13px; padding: 11px 16px; }
.wmfx-btn--ghost:hover { background: var(--wmfx-navy); color: #fff; transform: none; }
.wmfx-btn--dark { background: var(--wmfx-navy); }
.wmfx-btn--dark:hover { background: var(--wmfx-primary); }
.wmfx-btn--block { display: block; width: 100%; }

/* ── Topbar / Logo ───────────────────────────────────────────── */
.wmfx-topbar__status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wmfx-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wmfx-navy); flex: none; }
.wmfx-logo svg { border-radius: 9px; flex: none; }
.wmfx-logo__word { font-weight: 800; font-size: 22px; letter-spacing: -.6px; font-family: var(--wmfx-sans); }
.wmfx-logo__word span { color: var(--wmfx-primary); }

/* ── Ticker ──────────────────────────────────────────────────── */
.wmfx-ticker { overflow: hidden; white-space: nowrap; padding: 9px 0; border-bottom: 1px solid var(--wmfx-border); background: rgba(255,255,255,.75); backdrop-filter: blur(8px); }
.wmfx-ticker__track { display: inline-flex; gap: 38px; padding-left: 38px; animation: wmfxTicker 40s linear infinite; will-change: transform; }
.wmfx-ticker:hover .wmfx-ticker__track { animation-play-state: paused; }
@keyframes wmfxTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wmfx-ticker__item { display: inline-flex; align-items: baseline; gap: 9px; font-family: var(--wmfx-mono); font-size: 11.5px; }
.wmfx-ticker__sym { color: var(--wmfx-gray); }
.wmfx-ticker__price { color: var(--wmfx-navy); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .wmfx-ticker__track { animation: none; } .wmfx-live { animation: none; } }

/* ── Kurse-Panel ─────────────────────────────────────────────── */
.wmfx-quotes__head { display: block; margin-bottom: 8px; }
.wmfx-quotes__row { display: grid; grid-template-columns: 1fr 64px auto auto; gap: 12px; align-items: center; padding: 11px 0 11px 6px; margin-left: -6px; border-bottom: 1px solid var(--wmfx-border); }
.wmfx-quotes__row:hover { background: #FBFBF8; }
.wmfx-quotes__sym { font-size: 13.5px; font-weight: 600; }
.wmfx-quotes__row .wmfx-spark { width: 64px; height: 22px; }
.wmfx-quotes__price { font-family: var(--wmfx-mono); font-size: 12.5px; font-weight: 700; }
.wmfx-quotes__chg { font-family: var(--wmfx-mono); font-size: 12px; min-width: 64px; text-align: right; }

/* ── Chart-Karte ─────────────────────────────────────────────── */
.wmfx-chart-card { background: #fff; border: 1px solid var(--wmfx-border); padding: 18px 18px 12px; }
.wmfx-chart-card__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.wmfx-chart-card__title { font-size: 14px; font-weight: 700; }
.wmfx-chart-card__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.wmfx-chart-card__value { font-family: var(--wmfx-mono); font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.wmfx-chart-card__chg { font-family: var(--wmfx-mono); font-size: 12px; }
.wmfx-chart-card svg { width: 100%; display: block; }
.wmfx-chart-card__axis { display: flex; justify-content: space-between; color: var(--wmfx-gray-light); margin-top: 6px; font-size: 9.5px; }

/* ── Briefing ────────────────────────────────────────────────── */
.wmfx-briefing__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.wmfx-briefing__title { font-size: 28px; font-weight: 700; letter-spacing: -.7px; line-height: 1.2; margin: 0 0 14px; text-wrap: balance; }
.wmfx-briefing__body { font-size: 15.5px; line-height: 1.65; color: var(--wmfx-muted); max-width: 700px; text-wrap: pretty; }
.wmfx-briefing__body p { margin: 0 0 12px; }
.wmfx-briefing__note { color: var(--wmfx-gray-light); margin: 14px 0 0; font-size: 10px; }
.wmfx-briefing .wmfx-chart-card { margin-top: 26px; padding: 18px 20px 14px; }
.wmfx-briefing .wmfx-chart-card__value { font-size: 20px; }

/* ── Newsstream ──────────────────────────────────────────────── */
.wmfx-news__list, .wmfx-events__list { list-style: none; margin: 0; padding: 0; }
.wmfx-news__item { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--wmfx-border); }
.wmfx-news__item:hover { background: #FBFBF8; }
.wmfx-news__src { flex: none; width: 92px; color: var(--wmfx-gray); }
.wmfx-news__title { font-size: 14.5px; font-weight: 500; letter-spacing: -.2px; line-height: 1.4; color: inherit; text-decoration: none; }

/* ── Termine ─────────────────────────────────────────────────── */
.wmfx-event { display: grid; grid-template-columns: 44px 40px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--wmfx-border); }
.wmfx-event:hover { background: #FBFBF8; }
.wmfx-event--full { grid-template-columns: 56px 44px 1fr auto auto; gap: 16px; padding: 14px 0; }
.wmfx-event__time { color: var(--wmfx-gray); font-size: 10.5px; }
.wmfx-event--full .wmfx-event__time { font-size: 12px; color: var(--wmfx-muted); }
.wmfx-event__cur { font-weight: 700; color: var(--wmfx-navy); font-size: 10.5px; }
.wmfx-event--full .wmfx-event__cur { font-size: 11px; }
.wmfx-event__title { font-size: 14px; font-weight: 500; letter-spacing: -.2px; }
.wmfx-event--full .wmfx-event__title { font-size: 14.5px; }
.wmfx-event__forecast { color: var(--wmfx-gray); text-align: right; min-width: 100px; font-size: 11px; }
.wmfx-impact { display: inline-flex; gap: 3px; }
.wmfx-impact i { width: 5px; height: 12px; background: var(--wmfx-border); display: block; }
.wmfx-event--full .wmfx-impact i, .wmfx-legend .wmfx-impact i { height: 14px; }
.wmfx-impact--3 i.on { background: var(--wmfx-red); }
.wmfx-impact--2 i.on { background: var(--wmfx-amber); }
.wmfx-impact--1 i.on { background: var(--wmfx-green); }
.wmfx-events--full { display: flex; flex-direction: column; gap: 36px; }
.wmfx-events__day-title { font-size: 15px; font-weight: 700; letter-spacing: -.3px; border-bottom: 1px solid var(--wmfx-navy); padding-bottom: 10px; margin: 0 0 2px; }
.wmfx-legend { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--wmfx-muted); }
.wmfx-legend > div { display: flex; align-items: center; gap: 12px; }

/* ── Anbieter ────────────────────────────────────────────────── */
.wmfx-providers__head, .wmfx-provider { display: grid; grid-template-columns: 32px minmax(0,1fr) 120px 110px 80px 140px; gap: 20px; align-items: center; }
.wmfx-providers__head { padding: 0 0 12px; border-bottom: 1px solid var(--wmfx-navy); color: var(--wmfx-gray); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; }
.wmfx-providers__ret-h, .wmfx-providers__min-h { text-align: right; white-space: nowrap; }
.wmfx-provider { padding: 22px 0; border-bottom: 1px solid var(--wmfx-border); }
.wmfx-provider:hover { background: #FBFBF8; }
.wmfx-provider__rank { font-size: 14px; color: var(--wmfx-gray-light); }
.wmfx-provider__id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wmfx-provider__id .wmfx-badge { width: 46px; height: 46px; }
.wmfx-provider__name { font-size: 17px; font-weight: 700; letter-spacing: -.3px; color: var(--wmfx-navy); text-decoration: none; }
.wmfx-provider__name:hover { color: var(--wmfx-primary); }
.wmfx-provider__type { color: var(--wmfx-gray); margin-top: 2px; font-size: 10px; }
.wmfx-provider__spark { width: 120px; height: 32px; }
.wmfx-provider__ret { font-size: 15px; font-weight: 700; text-align: right; }
.wmfx-provider__min { font-size: 14px; text-align: right; }
.wmfx-provider .wmfx-btn--ghost { min-width: 140px; }

/* ── Communities ─────────────────────────────────────────────── */
.wmfx-communities { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; }
.wmfx-community { background: #fff; border: 1px solid var(--wmfx-border); padding: 26px; min-width: 0; }
.wmfx-community__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.wmfx-community__name { font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.wmfx-community__rating { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; font-size: 11px; color: var(--wmfx-muted); }

/* ── Beitragskarten ──────────────────────────────────────────── */
.wmfx-card__img { height: 170px; margin-bottom: 16px; }
.wmfx-card__title { font-size: 18px; font-weight: 600; letter-spacing: -.4px; line-height: 1.3; margin: 0 0 8px; }
.wmfx-card__excerpt { font-size: 13.5px; line-height: 1.55; color: var(--wmfx-muted); margin: 0 0 10px; text-wrap: pretty; }
.wmfx-hero-card__title { font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; letter-spacing: -1.3px; line-height: 1.08; margin: 0 0 18px; text-wrap: balance; max-width: 720px; }
.wmfx-hero-card__excerpt { font-size: 17px; line-height: 1.6; color: var(--wmfx-muted); margin: 0 0 22px; max-width: 640px; text-wrap: pretty; }
.wmfx-hero-card .wmfx-meta { font-size: 11px; }
.wmfx-hero-card__img { margin-top: 28px; height: 380px; }
.wmfx-side-card { padding: 18px 0; border-bottom: 1px solid var(--wmfx-border); }
.wmfx-side-card__title { font-size: 16px; font-weight: 600; letter-spacing: -.3px; line-height: 1.35; margin: 6px 0 0; }
.wmfx-row-card { padding: 14px 0; border-bottom: 1px solid var(--wmfx-border); }
.wmfx-row-card .wmfx-card-link { display: flex; gap: 18px; align-items: baseline; }
.wmfx-row-card__title { font-size: 14.5px; font-weight: 500; }

/* ── Filter / Artikel-Meta / Autor ───────────────────────────── */
.wmfx-filter { display: flex; gap: 26px; flex-wrap: wrap; border-bottom: 1px solid var(--wmfx-border); margin-bottom: 36px; }
.wmfx-filter a { font-size: 14px; padding: 0 0 12px; color: var(--wmfx-muted); font-weight: 500; text-decoration: none; }
.wmfx-filter a:hover { color: var(--wmfx-navy); }
.wmfx-filter a.is-active { color: var(--wmfx-navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--wmfx-navy); }
.wmfx-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--wmfx-navy); border-bottom: 1px solid var(--wmfx-border); margin-bottom: 32px; }
.wmfx-article-meta__author { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.wmfx-article-meta__author > span:last-child { display: flex; flex-direction: column; }
.wmfx-article-meta__name { font-size: 14px; font-weight: 600; }
.wmfx-article-meta__right { margin-left: auto; color: var(--wmfx-gray); }
.wmfx-author-box { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--wmfx-border); padding: 24px; margin: 28px 0 0; }
.wmfx-author-box__name { font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.wmfx-author-box__name a { color: inherit; text-decoration: none; }
.wmfx-author-box p { font-size: 13.5px; line-height: 1.6; color: var(--wmfx-muted); margin: 8px 0 0; }
.wmfx-author-box__links { display: flex; gap: 14px; margin-top: 10px; }

/* ── Kurzmeldung ─────────────────────────────────────────────── */
.wmfx-news-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.wmfx-news-single .wp-block-post-title { font-size: clamp(26px, 3.4vw, 36px); }
.wmfx-news-single .wp-block-post-content { font-size: 17px; }

/* ── Newsletter (Fluent Forms Overrides) ─────────────────────── */
.wmfx-newsletter .fluentform .ff-el-group { margin-bottom: 12px; }
.wmfx-newsletter .fluentform input[type="email"] { width: 100%; font-family: var(--wmfx-sans); font-size: 15px; padding: 12px 14px; border: 1px solid var(--wmfx-border); border-radius: var(--wmfx-radius); background: #fff; color: var(--wmfx-navy); }
.wmfx-newsletter .fluentform input[type="email"]:focus { outline: 2px solid var(--wmfx-primary); outline-offset: 1px; border-color: var(--wmfx-primary); }
.wmfx-newsletter .fluentform .ff-btn-submit, .wmfx-newsletter .fluentform button[type="submit"] { background: var(--wmfx-primary) !important; color: #fff !important; font-family: var(--wmfx-sans) !important; font-weight: 600; font-size: 14px; border: none !important; border-radius: var(--wmfx-radius) !important; padding: 12px 22px !important; cursor: pointer; }
.wmfx-newsletter .fluentform .ff-btn-submit:hover { background: var(--wmfx-primary-dark) !important; }
.wmfx-newsletter .ff-el-tc, .wmfx-newsletter .ff_t_c, .wmfx-newsletter .ff-el-form-check-label { font-size: 12px; line-height: 1.5; color: var(--wmfx-gray); }
.wmfx-newsletter .ff-message-success { font-size: 14px; color: var(--wmfx-up); }
.wmfx-newsletter--compact .fluentform { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.wmfx-newsletter--compact .fluentform .wmfx-ff-consent { grid-column: 1 / -1; }
.wmfx-newsletter--compact .fluentform .ff-el-group:last-child { margin: 0; }

/* ── Mobil ───────────────────────────────────────────────────── */
@media (max-width: 782px) {
	.wmfx-hero-card__img { height: 220px; }
	.wmfx-briefing__title { font-size: 24px; }
	.wmfx-providers__head { display: none; }
	.wmfx-provider { grid-template-columns: 28px minmax(0,1fr); gap: 12px 14px; padding: 18px 0; }
	.wmfx-provider__spark { display: none; }
	.wmfx-provider__ret, .wmfx-provider__min { grid-column: 2; text-align: left; }
	.wmfx-provider__ret::before { content: 'Ø Rendite p.a. '; color: var(--wmfx-gray); font-weight: 400; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
	.wmfx-provider__min::before { content: 'Ab '; color: var(--wmfx-gray); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
	.wmfx-provider .wmfx-btn--ghost { grid-column: 2; width: 100%; }
	.wmfx-event--full { grid-template-columns: 48px 36px 1fr auto; gap: 10px; }
	.wmfx-event__forecast { display: none; }
	.wmfx-news__src { width: 80px; }
	.wmfx-article-meta__right { margin-left: 0; }
	.wmfx-filter { gap: 18px; }
	.wmfx-newsletter--compact .fluentform { grid-template-columns: 1fr; }
}
