/*
Theme Name: 5MG Analyzer Pro Infoportal
Theme URI: https://forex-tool-vergleich.de/5mg-analyzer-pro/
Author: Team TradingWelt
Author URI: https://tradingwelt.de/
Description: Helles, modernes und SEO vorbereitetes Informationsportal für den originalen 5MG Analyzer Pro von Team TradingWelt.
Version: 1.2.6
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: analyzer-pro-info
*/

:root {
	--mg-ink: #12201c;
	--mg-muted: #566761;
	--mg-soft: #eef6f3;
	--mg-soft-2: #f6faf8;
	--mg-line: #dbe8e3;
	--mg-white: #ffffff;
	--mg-green: #08795f;
	--mg-green-dark: #075443;
	--mg-green-deep: #063b31;
	--mg-gold: #c99a36;
	--mg-gold-soft: #fff6df;
	--mg-blue: #245b78;
	--mg-danger: #8f392f;
	--mg-shadow: 0 18px 54px rgba(11, 55, 45, .10);
	--mg-shadow-soft: 0 10px 32px rgba(11, 55, 45, .07);
	--mg-radius: 22px;
	--mg-content: 1180px;
	--mg-reading: 790px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--mg-white);
	color: var(--mg-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 18px;
	line-height: 1.72;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--mg-green-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--mg-green); }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 12px;
	left: 12px;
	z-index: 9999;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: var(--mg-white);
	border-radius: 8px;
}

:focus-visible { outline: 3px solid rgba(8, 121, 95, .34); outline-offset: 3px; }

.mg-container { width: min(calc(100% - 40px), var(--mg-content)); margin-inline: auto; }
.mg-reading { width: min(calc(100% - 40px), var(--mg-reading)); margin-inline: auto; }
.mg-section { padding: clamp(70px, 8vw, 112px) 0; }
.mg-section.is-soft { background: var(--mg-soft-2); }
.mg-section.is-dark { background: var(--mg-green-deep); color: var(--mg-white); }
.mg-section + .mg-section { border-top: 1px solid rgba(219, 232, 227, .72); }

.mg-kicker {
	margin: 0 0 12px;
	color: var(--mg-green);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.4;
	text-transform: uppercase;
}

h1, h2, h3, h4 {
	margin-top: 0;
	color: var(--mg-ink);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.14;
}

h1 { font-size: clamp(38px, 5vw, 68px); }
h2 { font-size: clamp(29px, 3.3vw, 45px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
h4 { font-size: 20px; }
p { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .55em; }

.mg-section-heading { max-width: 790px; margin-bottom: 42px; }
.mg-section-heading p:not(.mg-kicker) { max-width: 720px; color: var(--mg-muted); font-size: 20px; }
.is-dark h2, .is-dark h3, .is-dark .mg-kicker { color: var(--mg-white); }
.is-dark p { color: #d6e7e1; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid rgba(219, 232, 227, .9);
	backdrop-filter: blur(16px);
}

.mg-header-inner {
	min-height: 82px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.mg-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--mg-ink); text-decoration: none; }
.mg-brand img { width: 42px; height: 42px; }
.mg-brand-copy { display: grid; line-height: 1.08; }
.mg-brand-copy strong { font-size: 17px; letter-spacing: .04em; }
.mg-brand-copy span { margin-top: 5px; color: var(--mg-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.mg-nav-wrap { display: flex; align-items: center; gap: 18px; }
.mg-nav ul { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.mg-nav a { display: block; padding: 12px 11px; color: var(--mg-ink); font-size: 15px; font-weight: 750; line-height: 1.25; text-decoration: none; border-radius: 10px; }
.mg-nav a:hover, .mg-nav .current-menu-item > a { color: var(--mg-green); background: var(--mg-soft); }
.mg-menu-toggle { display: none; padding: 10px 12px; background: var(--mg-white); color: var(--mg-ink); border: 1px solid var(--mg-line); border-radius: 10px; cursor: pointer; }

.mg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 50px;
	padding: 13px 21px;
	background: var(--mg-green);
	color: var(--mg-white);
	border: 1px solid var(--mg-green);
	border-radius: 12px;
	box-shadow: 0 9px 24px rgba(8, 121, 95, .18);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
	transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.mg-button:hover { color: var(--mg-white); background: var(--mg-green-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(8, 121, 95, .24); }
.mg-button.is-quiet { background: transparent; color: var(--mg-green-dark); border-color: #accdc2; box-shadow: none; }
.mg-button.is-quiet:hover { background: var(--mg-soft); color: var(--mg-green-dark); }
.mg-button.is-light { background: var(--mg-white); color: var(--mg-green-deep); border-color: var(--mg-white); }
.mg-button.is-light:hover { color: var(--mg-green); background: #f3faf7; }
.mg-button-arrow { font-size: 19px; line-height: 1; }

.mg-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(72px, 9vw, 128px) 0 84px;
	background:
		radial-gradient(circle at 92% 12%, rgba(201, 154, 54, .14), transparent 30%),
		radial-gradient(circle at 8% 88%, rgba(8, 121, 95, .12), transparent 30%),
		linear-gradient(135deg, #fbfefd 0%, #f1f8f5 58%, #fffaf0 100%);
}
.mg-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(8, 121, 95, .038) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 121, 95, .038) 1px, transparent 1px);
	background-size: 34px 34px;
	mask-image: linear-gradient(to bottom, #000, transparent 80%);
	pointer-events: none;
}
.mg-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr); align-items: center; gap: clamp(44px, 7vw, 88px); }
.mg-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 8px 12px; background: rgba(255,255,255,.82); color: var(--mg-green-dark); border: 1px solid #cfe3dc; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.mg-eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--mg-green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(8, 121, 95, .12); }
.mg-hero h1 { max-width: 760px; margin-bottom: 24px; }
.mg-hero-lead { max-width: 690px; margin-bottom: 27px; color: var(--mg-muted); font-size: clamp(20px, 2.1vw, 24px); line-height: 1.55; }
.mg-hero-clarity { max-width: 690px; margin: 0 0 31px; padding: 18px 20px; background: rgba(255,255,255,.9); border: 1px solid var(--mg-line); border-left: 4px solid var(--mg-green); border-radius: 0 14px 14px 0; color: #31423c; font-size: 17px; }
.mg-button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.mg-hero-note { margin: 18px 0 0; color: var(--mg-muted); font-size: 14px; }

.mg-hero-media { position: relative; }
.mg-hero-media::before { content: ""; position: absolute; inset: 9% -5% -8% 8%; z-index: 0; background: linear-gradient(145deg, rgba(8,121,95,.17), rgba(201,154,54,.13)); border-radius: 34px; transform: rotate(3deg); }
.mg-product-frame { position: relative; z-index: 1; overflow: hidden; padding: 12px; background: var(--mg-white); border: 1px solid rgba(219,232,227,.9); border-radius: 24px; box-shadow: var(--mg-shadow); }
.mg-product-frame img { width: 100%; border-radius: 16px; }
.mg-product-frame figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 14px 9px 5px; color: var(--mg-muted); font-size: 13px; line-height: 1.45; }
.mg-floating-badge { position: absolute; z-index: 2; right: -14px; bottom: 68px; width: 178px; padding: 15px 17px; background: var(--mg-white); border: 1px solid var(--mg-line); border-radius: 15px; box-shadow: var(--mg-shadow-soft); }
.mg-floating-badge span { display: block; color: var(--mg-green); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.mg-floating-badge strong { display: block; margin-top: 4px; font-size: 17px; line-height: 1.25; }

.mg-proof-strip { position: relative; margin-top: 70px; padding: 0; }
.mg-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; background: rgba(255,255,255,.88); border: 1px solid var(--mg-line); border-radius: 18px; box-shadow: var(--mg-shadow-soft); }
.mg-proof-item { padding: 23px 24px; }
.mg-proof-item + .mg-proof-item { border-left: 1px solid var(--mg-line); }
.mg-proof-item strong { display: block; color: var(--mg-green-dark); font-size: 23px; line-height: 1.2; }
.mg-proof-item span { display: block; margin-top: 6px; color: var(--mg-muted); font-size: 14px; line-height: 1.4; }

.mg-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mg-card { padding: 29px; background: var(--mg-white); border: 1px solid var(--mg-line); border-radius: var(--mg-radius); box-shadow: var(--mg-shadow-soft); }
.mg-card-number { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; background: var(--mg-soft); color: var(--mg-green); border-radius: 13px; font-size: 15px; font-weight: 900; }
.mg-card h3 { margin-bottom: 13px; }
.mg-card p { margin: 0; color: var(--mg-muted); font-size: 17px; }
.mg-card a { display: inline-flex; margin-top: 18px; font-weight: 800; }

.mg-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(44px, 7vw, 88px); }
.mg-split.is-reversed { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.mg-split-copy > p { color: var(--mg-muted); }
.mg-check-list { margin: 27px 0 0; padding: 0; list-style: none; }
.mg-check-list li { position: relative; padding-left: 34px; }
.mg-check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; background: var(--mg-soft); color: var(--mg-green); border-radius: 50%; font-size: 13px; font-weight: 900; }

.mg-editorial-figure { margin: 0; overflow: hidden; background: var(--mg-white); border: 1px solid var(--mg-line); border-radius: var(--mg-radius); box-shadow: var(--mg-shadow); }
.mg-editorial-figure img { width: 100%; }
.mg-editorial-figure figcaption { padding: 15px 20px 17px; color: var(--mg-muted); font-size: 14px; line-height: 1.5; }
.mg-image-source { display: block; margin-top: 5px; color: #6b7d76; font-size: 12px; }

.mg-process { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; gap: 16px; margin-top: 43px; }
.mg-process::before { content: ""; position: absolute; top: 29px; left: 10%; right: 10%; height: 2px; background: #bdd9cf; }
.mg-process-step { position: relative; z-index: 1; padding: 0 12px; text-align: center; }
.mg-process-step span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; background: var(--mg-white); color: var(--mg-green); border: 2px solid #bdd9cf; border-radius: 50%; font-size: 14px; font-weight: 900; }
.mg-process-step strong { display: block; margin-bottom: 6px; font-size: 18px; }
.mg-process-step small { display: block; color: var(--mg-muted); font-size: 14px; line-height: 1.5; }

.mg-engine-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mg-engine { position: relative; overflow: hidden; min-height: 220px; padding: 30px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; }
.mg-engine::after { content: attr(data-index); position: absolute; right: 18px; bottom: -24px; color: rgba(255,255,255,.07); font-size: 104px; font-weight: 900; line-height: 1; }
.mg-engine h3 { position: relative; z-index: 1; color: var(--mg-white); }
.mg-engine p { position: relative; z-index: 1; margin-bottom: 0; }
.mg-confidential { margin-top: 28px; padding: 21px 24px; background: rgba(255,255,255,.08); border-left: 4px solid var(--mg-gold); border-radius: 0 14px 14px 0; }
.mg-confidential strong { display: block; margin-bottom: 4px; color: #ffe4a3; }

.mg-research-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0; }
.mg-research-stat { padding: 24px 20px; background: var(--mg-white); border: 1px solid var(--mg-line); border-radius: 16px; text-align: center; }
.mg-research-stat strong { display: block; color: var(--mg-green); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; }
.mg-research-stat span { display: block; margin-top: 8px; color: var(--mg-muted); font-size: 14px; line-height: 1.4; }

.mg-comparison { overflow: hidden; background: var(--mg-white); border: 1px solid var(--mg-line); border-radius: 20px; box-shadow: var(--mg-shadow-soft); }
.mg-comparison-head, .mg-comparison-row { display: grid; grid-template-columns: minmax(170px,.75fr) repeat(2,minmax(230px,1fr)); }
.mg-comparison-head > div { padding: 20px 22px; background: var(--mg-green-deep); color: var(--mg-white); font-weight: 800; }
.mg-comparison-head > div:first-child { color: #b8d7cc; }
.mg-comparison-row > div { padding: 20px 22px; border-top: 1px solid var(--mg-line); }
.mg-comparison-row > div + div { border-left: 1px solid var(--mg-line); }
.mg-comparison-row > div:first-child { background: var(--mg-soft-2); font-weight: 800; }
.mg-comparison-row .is-original { color: var(--mg-green-dark); font-weight: 750; }

.mg-callout { padding: clamp(34px, 5vw, 58px); background: linear-gradient(135deg, var(--mg-green-deep), #0a6955); color: var(--mg-white); border-radius: 28px; box-shadow: var(--mg-shadow); }
.mg-callout-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 34px; }
.mg-callout h2 { margin-bottom: 14px; color: var(--mg-white); }
.mg-callout p { max-width: 760px; margin-bottom: 0; color: #d7ebe4; font-size: 18px; }

.mg-faq { display: grid; gap: 12px; }
.mg-faq details { background: var(--mg-white); border: 1px solid var(--mg-line); border-radius: 14px; }
.mg-faq summary { position: relative; cursor: pointer; padding: 21px 56px 21px 22px; font-weight: 800; line-height: 1.4; list-style: none; }
.mg-faq summary::-webkit-details-marker { display: none; }
.mg-faq summary::after { content: "+"; position: absolute; right: 21px; top: 50%; transform: translateY(-50%); color: var(--mg-green); font-size: 25px; font-weight: 500; }
.mg-faq details[open] summary::after { content: "×"; }
.mg-faq details p { padding: 0 22px 21px; margin: 0; color: var(--mg-muted); }

.mg-page-hero { padding: 72px 0 58px; background: linear-gradient(145deg, #f4faf7, #fffaf0); border-bottom: 1px solid var(--mg-line); }
.mg-page-hero .mg-reading { margin-left: max(20px, calc((100% - var(--mg-content)) / 2)); }
.mg-page-hero h1 { max-width: 920px; margin-bottom: 18px; font-size: clamp(36px, 4.5vw, 58px); }
.mg-page-hero p { max-width: 790px; margin-bottom: 0; color: var(--mg-muted); font-size: 20px; }
.mg-breadcrumbs { margin-bottom: 22px; color: var(--mg-muted); font-size: 14px; }
.mg-breadcrumbs a { color: var(--mg-muted); }

.mg-content-wrap { padding: 66px 0 92px; }
.mg-article { color: #273831; font-size: 19px; }
.mg-article > * { max-width: var(--mg-reading); margin-left: auto; margin-right: auto; }
.mg-article > .alignwide, .mg-article > .mg-wide, .mg-article > table { max-width: 1040px; }
.mg-article h2 { margin-top: 2.05em; margin-bottom: .72em; font-size: clamp(28px, 3vw, 39px); }
.mg-article h3 { margin-top: 1.65em; margin-bottom: .65em; }
.mg-article p, .mg-article li { line-height: 1.78; }
.mg-article a { font-weight: 700; }
.mg-article blockquote { padding: 23px 26px; background: var(--mg-soft); border-left: 4px solid var(--mg-green); border-radius: 0 14px 14px 0; color: var(--mg-green-deep); font-size: 20px; font-weight: 650; }
.mg-article .mg-info-box, .mg-info-box { padding: 24px 26px; background: var(--mg-soft); border: 1px solid #cfe5dc; border-radius: 16px; }
.mg-article .mg-info-box strong { display: block; margin-bottom: 6px; color: var(--mg-green-dark); font-size: 20px; }
.mg-article .mg-info-box p:last-child { margin-bottom: 0; }
.mg-article .mg-warning-box { padding: 24px 26px; background: var(--mg-gold-soft); border: 1px solid #ead19d; border-radius: 16px; }

.mg-article table { width: min(calc(100% - 40px), 1040px); margin-top: 30px; margin-bottom: 36px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--mg-white); border: 1px solid var(--mg-line); border-radius: 15px; font-size: 16px; line-height: 1.55; }
.mg-article th, .mg-article td { min-width: 160px; padding: 16px 18px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.mg-article th { background: var(--mg-green-deep); color: var(--mg-white); }
.mg-article tr:not(:last-child) td { border-bottom: 1px solid var(--mg-line); }
.mg-article td + td, .mg-article th + th { border-left: 1px solid var(--mg-line); }

.mg-toc { max-width: var(--mg-reading); margin: 0 auto 44px; padding: 22px 25px; background: var(--mg-soft-2); border: 1px solid var(--mg-line); border-radius: 15px; }
.mg-toc strong { display: block; margin-bottom: 8px; }
.mg-toc ol { margin: 0; columns: 2; column-gap: 42px; }
.mg-toc li { break-inside: avoid; margin: 0 0 6px; font-size: 15px; line-height: 1.5; }

.mg-post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--mg-muted); font-size: 14px; }
.mg-author-box { display: grid; grid-template-columns: 54px 1fr; gap: 17px; max-width: var(--mg-reading); margin: 54px auto 0; padding: 24px; background: var(--mg-soft-2); border: 1px solid var(--mg-line); border-radius: 17px; }
.mg-author-mark { display: grid; place-items: center; width: 54px; height: 54px; background: var(--mg-green); color: var(--mg-white); border-radius: 14px; font-weight: 900; }
.mg-author-box p { margin: 5px 0 0; color: var(--mg-muted); font-size: 15px; }

.mg-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mg-post-card { display: flex; flex-direction: column; overflow: hidden; min-height: 100%; background: var(--mg-white); border: 1px solid var(--mg-line); border-radius: 18px; box-shadow: var(--mg-shadow-soft); }
.mg-post-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mg-soft); }
.mg-post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mg-post-card:hover .mg-post-card-media img { transform: scale(1.025); }
.mg-post-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.mg-post-card h2, .mg-post-card h3 { margin-bottom: 12px; font-size: 23px; }
.mg-post-card h2 a, .mg-post-card h3 a { color: var(--mg-ink); text-decoration: none; }
.mg-post-card p { color: var(--mg-muted); font-size: 16px; }
.mg-post-card .mg-card-link { margin-top: auto; font-size: 15px; font-weight: 800; }

.mg-pagination { margin-top: 40px; }
.mg-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-pagination a, .mg-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--mg-line); border-radius: 9px; text-decoration: none; }
.mg-pagination .current { background: var(--mg-green); color: var(--mg-white); border-color: var(--mg-green); }

.mg-risk-note { padding: 24px 0; background: #f4f0e9; border-top: 1px solid #e4d9c7; color: #554b3c; font-size: 14px; line-height: 1.65; }
.site-footer { padding: 58px 0 28px; background: #0a211c; color: #d1e1db; }
.mg-footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, .8fr); gap: 42px; }
.site-footer h2, .site-footer h3 { color: var(--mg-white); font-size: 16px; letter-spacing: 0; }
.site-footer p, .site-footer a { color: #afc7be; font-size: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--mg-white); }
.mg-footer-brand { max-width: 360px; }
.mg-footer-brand .mg-brand { margin-bottom: 18px; }
.mg-footer-brand .mg-brand-copy strong { color: var(--mg-white); }
.mg-footer-brand .mg-brand-copy span { color: #8eada2; }
.mg-footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: #8eada2; font-size: 13px; }

.mg-empty { padding: 70px 0; text-align: center; }
.mg-search-form { max-width: 560px; margin: 28px auto 0; }
.mg-search-form label { display: block; margin-bottom: 8px; font-weight: 750; }
.mg-search-row { display: flex; }
.mg-search-form input { flex: 1; min-width: 0; padding: 13px 15px; border: 1px solid var(--mg-line); border-radius: 11px 0 0 11px; font: inherit; }
.mg-search-form button { border-radius: 0 11px 11px 0; }

@media (max-width: 1080px) {
	.mg-nav-wrap > .mg-button { display: none; }
	.mg-hero-grid { grid-template-columns: 1fr 440px; gap: 40px; }
	.mg-card-grid, .mg-post-grid { grid-template-columns: repeat(2, 1fr); }
	.mg-footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
	.mg-footer-grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 900px) {
	body.admin-bar .site-header { top: 46px; }
	.mg-menu-toggle { display: inline-flex; }
	.mg-nav { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 15px 20px 22px; background: var(--mg-white); border-bottom: 1px solid var(--mg-line); box-shadow: var(--mg-shadow-soft); }
	.mg-nav.is-open { display: block; }
	.mg-nav ul { width: min(100%, var(--mg-content)); margin: 0 auto; display: grid; }
	.mg-nav a { padding: 13px; font-size: 16px; }
	.mg-hero-grid, .mg-split, .mg-split.is-reversed { grid-template-columns: 1fr; }
	.mg-hero-copy { max-width: 760px; }
	.mg-hero-media { max-width: 680px; margin: 0 auto; }
	.mg-floating-badge { right: 16px; }
	.mg-proof-grid { grid-template-columns: repeat(2, 1fr); }
	.mg-proof-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--mg-line); }
	.mg-proof-item:nth-child(4) { border-top: 1px solid var(--mg-line); }
	.mg-process { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
	.mg-process::before { display: none; }
	.mg-research-grid { grid-template-columns: repeat(2, 1fr); }
	.mg-comparison { overflow-x: auto; }
	.mg-comparison-head, .mg-comparison-row { min-width: 760px; }
	.mg-callout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
	body { font-size: 17px; }
	.mg-container, .mg-reading { width: min(calc(100% - 28px), var(--mg-content)); }
	.mg-header-inner { min-height: 72px; }
	.mg-brand img { width: 38px; height: 38px; }
	.mg-brand-copy strong { font-size: 15px; }
	.mg-brand-copy span { font-size: 10px; }
	.mg-section { padding: 62px 0; }
	.mg-hero { padding: 58px 0 64px; }
	.mg-hero-grid { gap: 42px; }
	.mg-hero h1 { font-size: 38px; }
	.mg-hero-lead { font-size: 20px; }
	.mg-button-row { align-items: stretch; flex-direction: column; }
	.mg-button { width: 100%; }
	.mg-floating-badge { position: static; width: 100%; margin-top: 12px; }
	.mg-product-frame figcaption { display: block; }
	.mg-proof-strip { margin-top: 44px; }
	.mg-proof-grid { grid-template-columns: 1fr; }
	.mg-proof-item + .mg-proof-item { border-top: 1px solid var(--mg-line); border-left: 0; }
	.mg-card-grid, .mg-post-grid, .mg-engine-grid, .mg-research-grid, .mg-footer-grid { grid-template-columns: 1fr; }
	.mg-footer-grid > :last-child { grid-column: auto; }
	.mg-process { grid-template-columns: 1fr; }
	.mg-process-step { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; text-align: left; }
	.mg-process-step span { width: 48px; height: 48px; margin: 0; grid-row: 1 / span 2; }
	.mg-process-step strong { margin: 0; }
	.mg-article { font-size: 18px; }
	.mg-article table { display: block; overflow-x: auto; width: calc(100% - 28px); font-size: 16px; }
	.mg-toc ol { columns: 1; }
	.mg-footer-bottom { display: block; }
	.mg-footer-bottom > * + * { margin-top: 9px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Static proxy edition */
.mg-seo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.mg-seo-card{display:flex;flex-direction:column;padding:26px;background:#fff;border:1px solid var(--mg-line);border-radius:18px;box-shadow:var(--mg-shadow-soft)}.mg-seo-card h3{font-size:24px;margin-bottom:10px}.mg-seo-card p{color:var(--mg-muted);font-size:16px}.mg-seo-card .mg-card-link{margin-top:auto;font-weight:800}.mg-lab-highlight{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:32px auto;max-width:1040px}.mg-lab-highlight>div{padding:22px;background:var(--mg-soft);border:1px solid var(--mg-line);border-radius:14px;text-align:center}.mg-lab-highlight strong{display:block;color:var(--mg-green-dark);font-size:27px}.mg-lab-highlight span{display:block;margin-top:5px;color:var(--mg-muted);font-size:14px;line-height:1.45}@media(max-width:900px){.mg-seo-grid{grid-template-columns:1fr}.mg-lab-highlight{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.mg-lab-highlight{grid-template-columns:1fr}}


/* Logo Rebuild V1.2.1 */
.mg-brand--wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 0;
}
.mg-brand--wordmark img {
  display: block;
  width: clamp(210px, 22vw, 280px);
  height: auto;
  max-width: 100%;
}
.site-footer .mg-brand--wordmark img {
  width: clamp(220px, 22vw, 290px);
}
.mg-footer-brand .mg-brand--wordmark {
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .mg-brand--wordmark img {
    width: clamp(190px, 25vw, 250px);
  }
}
@media (max-width: 900px) {
  .mg-brand--wordmark img {
    width: clamp(185px, 46vw, 240px);
  }
  .site-footer .mg-brand--wordmark img {
    width: clamp(210px, 60vw, 270px);
  }
}
@media (max-width: 680px) {
  .mg-header-inner {
    min-height: 74px;
  }
  .mg-brand--wordmark img {
    width: clamp(168px, 54vw, 215px);
  }
  .site-footer .mg-brand--wordmark img {
    width: clamp(195px, 62vw, 245px);
  }
}

/* ==========================================================
   IMAGE SIZING FIX V1.2.2
   Verhindert, dass Screenshots und Hochformatbilder künstlich
   auf die volle Artikelbreite hochskaliert werden.
   ========================================================== */

.mg-editorial-figure {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

.mg-article > .mg-editorial-figure.mg-wide {
	width: min(100%, 860px);
	max-width: 860px;
	margin: 32px auto 38px;
}

.mg-editorial-figure > a {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f7faf8;
}

.mg-editorial-figure img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 620px;
	margin: 0 auto;
	object-fit: contain;
}

/* Kleine Hochformat-Screenshots bleiben bewusst in Originalnähe. */
.mg-editorial-figure img[src*="entry-engine.webp"] {
	width: auto;
	max-width: min(100%, 360px);
	max-height: 520px;
}

/* Das hohe Produktmotiv soll wie ein Produktbild wirken und nicht
   den kompletten Desktop füllen. */
.mg-editorial-figure img[src*="analyzer-pro-v3-product.webp"] {
	width: auto;
	max-width: min(100%, 610px);
	max-height: 670px;
}

/* Breite Software-Screenshots bekommen eine angenehme Lesebreite,
   werden aber nicht über ihre sinnvolle Größe hinaus aufgeblasen. */
.mg-article .mg-editorial-figure img[src*="analyzer-pro-overview.webp"],
.mg-article .mg-editorial-figure img[src*="analyzer-pro-macro.webp"],
.mg-article .mg-editorial-figure img[src*="analyzer-pro-research-results.webp"],
.mg-article .mg-editorial-figure img[src*="analyzer-pro-seasonality.webp"] {
	width: auto;
	max-width: min(100%, 820px);
}

/* Auf der Startseite bleiben Bilder in Split-Modulen flexibel,
   kleine Hochformatbilder werden aber ebenfalls nicht hochskaliert. */
.mg-split .mg-editorial-figure {
	width: 100%;
	max-width: 620px;
}

.mg-split .mg-editorial-figure img[src*="entry-engine.webp"] {
	max-width: min(100%, 344px);
	max-height: 560px;
}

@media (max-width: 900px) {
	.mg-editorial-figure,
	.mg-article > .mg-editorial-figure.mg-wide {
		width: min(100%, 760px);
		max-width: 760px;
	}

	.mg-editorial-figure img {
		max-height: 580px;
	}
}

@media (max-width: 680px) {
	.mg-article > .mg-editorial-figure.mg-wide {
		width: 100%;
		margin: 24px auto 30px;
	}

	.mg-editorial-figure img {
		max-height: 520px;
	}

	.mg-editorial-figure img[src*="entry-engine.webp"] {
		max-width: min(100%, 310px);
		max-height: 500px;
	}

	.mg-editorial-figure img[src*="analyzer-pro-v3-product.webp"] {
		max-width: min(100%, 520px);
		max-height: 620px;
	}
}

/* ==========================================================
   FINAL VISUAL FIX V1.2.3
   Cache-busted stylesheet. This section intentionally uses
   stronger specificity and !important for the portal images.
   ========================================================== */

/* Header wordmark: clearly readable, but still balanced against navigation. */
.site-header .mg-brand--wordmark {
    min-width: 250px !important;
    flex: 0 0 auto !important;
}
.site-header .mg-brand--wordmark img {
    width: 270px !important;
    height: auto !important;
    max-width: none !important;
    min-width: 270px !important;
}
.site-footer .mg-brand--wordmark img {
    width: 270px !important;
    height: auto !important;
    max-width: 100% !important;
}

/* Article imagery: never blow a source image up to the full desktop viewport. */
.mg-editorial-figure,
.mg-editorial-figure.mg-wide,
.mg-content-wrap > .mg-editorial-figure.mg-wide,
.mg-article .mg-editorial-figure,
.mg-article > .mg-editorial-figure.mg-wide {
    width: min(100%, 740px) !important;
    max-width: 740px !important;
    margin: 30px auto 38px !important;
}

.mg-editorial-figure > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background: #f7faf8 !important;
}

.mg-editorial-figure img,
.mg-editorial-figure a img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 560px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

/* Software screenshots: readable, but deliberately smaller than full page width. */
.mg-editorial-figure.mg-figure-screen,
.mg-editorial-figure.mg-figure-screen.mg-wide {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
}
.mg-editorial-figure.mg-figure-screen img {
    max-width: 720px !important;
    max-height: 470px !important;
}

/* Tall product artwork: product card size, not poster size. */
.mg-editorial-figure.mg-figure-product,
.mg-editorial-figure.mg-figure-product.mg-wide {
    width: min(100%, 540px) !important;
    max-width: 540px !important;
}
.mg-editorial-figure.mg-figure-product img {
    max-width: 520px !important;
    max-height: 570px !important;
}

/* TradingView Entry Engine portrait screenshot stays near its natural size. */
.mg-editorial-figure.mg-figure-entry,
.mg-editorial-figure.mg-figure-entry.mg-wide {
    width: min(100%, 370px) !important;
    max-width: 370px !important;
}
.mg-editorial-figure.mg-figure-entry img {
    max-width: 320px !important;
    max-height: 520px !important;
}

/* Editorial illustrations are decorative context, not full-screen banners. */
.mg-editorial-figure.mg-figure-editorial,
.mg-editorial-figure.mg-figure-editorial.mg-wide,
.mg-content-wrap > .mg-editorial-figure.mg-figure-editorial.mg-wide {
    width: min(100%, 760px) !important;
    max-width: 760px !important;
}
.mg-editorial-figure.mg-figure-editorial img {
    max-width: 760px !important;
    max-height: 430px !important;
}

/* Homepage split modules may use more of their column but not the whole viewport. */
.mg-split .mg-editorial-figure {
    width: min(100%, 560px) !important;
    max-width: 560px !important;
    margin: 0 auto !important;
}
.mg-split .mg-editorial-figure.mg-figure-entry {
    width: min(100%, 360px) !important;
    max-width: 360px !important;
}

@media (max-width: 1120px) {
    .site-header .mg-brand--wordmark {
        min-width: 220px !important;
    }
    .site-header .mg-brand--wordmark img {
        width: 230px !important;
        min-width: 230px !important;
    }
    .mg-nav-wrap { gap: 10px; }
    .mg-nav a { padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 900px) {
    .site-header .mg-brand--wordmark {
        min-width: 205px !important;
    }
    .site-header .mg-brand--wordmark img {
        width: 220px !important;
        min-width: 220px !important;
    }
    .mg-editorial-figure,
    .mg-editorial-figure.mg-wide,
    .mg-content-wrap > .mg-editorial-figure.mg-wide {
        width: min(100%, 680px) !important;
        max-width: 680px !important;
    }
}

@media (max-width: 680px) {
    .site-header .mg-brand--wordmark {
        min-width: 0 !important;
    }
    .site-header .mg-brand--wordmark img {
        width: 190px !important;
        min-width: 0 !important;
        max-width: 58vw !important;
    }
    .mg-editorial-figure,
    .mg-editorial-figure.mg-wide,
    .mg-content-wrap > .mg-editorial-figure.mg-wide,
    .mg-editorial-figure.mg-figure-screen,
    .mg-editorial-figure.mg-figure-editorial {
        width: 100% !important;
        max-width: 100% !important;
        margin: 22px auto 30px !important;
    }
    .mg-editorial-figure img,
    .mg-editorial-figure.mg-figure-screen img,
    .mg-editorial-figure.mg-figure-editorial img {
        max-width: 100% !important;
        max-height: 430px !important;
    }
    .mg-editorial-figure.mg-figure-product {
        width: min(100%, 460px) !important;
        max-width: 460px !important;
    }
    .mg-editorial-figure.mg-figure-product img {
        max-width: 100% !important;
        max-height: 520px !important;
    }
    .mg-editorial-figure.mg-figure-entry {
        width: min(100%, 340px) !important;
        max-width: 340px !important;
    }
    .mg-editorial-figure.mg-figure-entry img {
        max-width: min(100%, 300px) !important;
        max-height: 500px !important;
    }
}



/* ==========================================================
   RESPONSIVE LAYOUT FIX V1.2.5
   Entfernt feste Mindestbreiten, verhindert Seitenüberlauf und
   macht Navigation, Medien und Inhaltsmodule mobil belastbar.
   ========================================================== */

html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

@supports (overflow: clip) {
	html,
	body {
		overflow-x: clip;
	}
}

main,
.site-header,
.site-footer,
.mg-risk-note,
.mg-section,
.mg-page-hero,
.mg-content-wrap {
	max-width: 100%;
	min-width: 0;
}

.mg-container,
.mg-reading,
.mg-header-inner,
.mg-header-inner > *,
.mg-hero-grid > *,
.mg-split > *,
.mg-callout-grid > *,
.mg-footer-grid > *,
.mg-article,
.mg-article > * {
	min-width: 0;
}

.mg-container,
.mg-reading {
	max-width: calc(100% - 40px);
}

/* Eigener Lesebereich: Text und Artikelmodule berühren nie den Viewportrand. */
.mg-article {
	padding-inline: 20px;
}

.mg-article > * {
	width: 100%;
}

.mg-author-box {
	width: min(calc(100% - 40px), var(--mg-reading));
}

.site-header .mg-brand--wordmark {
	flex: 0 1 290px !important;
	width: min(290px, 42vw) !important;
	min-width: 0 !important;
	max-width: 290px !important;
}

.site-header .mg-brand--wordmark img,
.site-footer .mg-brand--wordmark img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

.site-footer .mg-brand--wordmark {
	width: min(290px, 100%);
	max-width: 100%;
}

.mg-nav-wrap {
	min-width: 0;
	margin-left: auto;
}

.mg-menu-toggle {
	align-items: center;
	justify-content: center;
	min-width: 66px;
	min-height: 44px;
	font-weight: 800;
	line-height: 1;
}

.mg-hero-media,
.mg-product-frame,
.mg-editorial-figure,
.mg-editorial-figure > a,
.mg-editorial-figure img,
.mg-product-frame img,
.mg-post-card-media,
.mg-post-card-media img {
	max-width: 100%;
	min-width: 0;
}

.mg-product-frame figcaption,
.mg-breadcrumbs,
.mg-eyebrow,
.mg-card,
.mg-engine,
.mg-seo-card,
.mg-callout,
.mg-faq summary,
.mg-footer-bottom,
.mg-article pre,
.mg-article code {
	overflow-wrap: anywhere;
	word-break: normal;
}

.mg-eyebrow {
	max-width: 100%;
	white-space: normal;
}

.mg-button {
	max-width: 100%;
	min-width: 0;
	white-space: normal;
	text-align: center;
}

.mg-comparison,
.mg-article table {
	max-width: 100%;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.mg-comparison:focus-visible,
.mg-article table:focus-visible {
	outline-offset: 2px;
}

.mg-article pre {
	max-width: 100%;
	overflow-x: auto;
}

@media (max-width: 1280px) {
	.mg-nav-wrap > .mg-button {
		display: none;
	}
}

/* Das vollständige Desktop-Menü wird nur angezeigt, wenn wirklich Platz da ist. */
@media (max-width: 1180px) {
	.site-header .mg-brand--wordmark {
		flex-basis: 250px !important;
		width: min(250px, 48vw) !important;
		max-width: 250px !important;
	}

	.mg-menu-toggle {
		display: inline-flex;
	}

	.mg-nav-wrap > .mg-button {
		display: none;
	}

	.mg-nav {
		display: none;
		position: absolute;
		top: calc(100% + 1px);
		left: 0;
		right: 0;
		max-height: calc(100svh - 82px);
		padding: 14px 20px 20px;
		overflow-y: auto;
		background: rgba(255, 255, 255, .99);
		border-bottom: 1px solid var(--mg-line);
		box-shadow: var(--mg-shadow-soft);
	}

	.mg-nav.is-open {
		display: block;
	}

	.mg-nav ul {
		display: grid;
		width: min(100%, var(--mg-content));
		margin: 0 auto;
		padding: 0;
	}

	.mg-nav a {
		padding: 13px 14px;
		font-size: 16px;
	}
}

@media (max-width: 680px) {
	.mg-container,
	.mg-reading {
		width: calc(100% - 40px);
		max-width: calc(100% - 40px);
	}

	.mg-header-inner {
		min-height: 68px;
		gap: 12px;
	}

	.site-header .mg-brand--wordmark {
		flex-basis: 190px !important;
		width: min(190px, 56vw) !important;
		max-width: 56vw !important;
	}

	.mg-nav {
		max-height: calc(100svh - 68px);
		padding-inline: 14px;
	}

	.mg-hero,
	.mg-page-hero {
		padding-top: 48px;
		padding-bottom: 52px;
	}

	.mg-page-hero .mg-reading {
		margin-left: auto;
		margin-right: auto;
	}

	.mg-hero h1,
	.mg-page-hero h1 {
		font-size: clamp(32px, 10vw, 40px);
		overflow-wrap: anywhere;
	}

	.mg-section-heading p:not(.mg-kicker),
	.mg-page-hero p {
		font-size: 18px;
	}

	.mg-card,
	.mg-seo-card,
	.mg-engine,
	.mg-research-stat {
		padding: 22px;
	}

	.mg-product-frame {
		padding: 8px;
		border-radius: 18px;
	}

	.mg-product-frame img {
		border-radius: 12px;
	}

	.mg-callout {
		padding: 26px 22px;
		border-radius: 20px;
	}

	.mg-faq summary {
		padding-left: 18px;
		padding-right: 48px;
	}

	.mg-faq details p {
		padding-right: 18px;
		padding-left: 18px;
	}

	.mg-toc {
		width: calc(100% - 40px);
		max-width: calc(100% - 40px);
		padding: 20px;
	}

	.mg-article table {
		width: 100%;
		margin-right: auto;
		margin-left: auto;
	}

	.mg-comparison-head,
	.mg-comparison-row {
		min-width: 680px;
	}

	.mg-footer-grid {
		gap: 30px;
	}

	.site-footer {
		padding-top: 46px;
	}
}

@media (max-width: 480px) {
	.mg-author-box {
		grid-template-columns: 1fr;
		padding: 20px;
	}

	.mg-author-mark {
		width: 48px;
		height: 48px;
	}

	.mg-proof-item,
	.mg-post-card-body {
		padding: 20px;
	}

	.mg-floating-badge {
		padding: 14px 16px;
	}
}

@media (max-width: 360px) {
	.mg-article {
		padding-inline: 18px;
	}

	.mg-container,
	.mg-reading,
	.mg-toc,
	.mg-author-box {
		width: calc(100% - 36px);
		max-width: calc(100% - 36px);
	}

	.site-header .mg-brand--wordmark {
		flex-basis: 162px !important;
		width: min(162px, 52vw) !important;
		max-width: 52vw !important;
	}

	.mg-menu-toggle {
		min-width: 60px;
		padding-inline: 10px;
	}

	.mg-hero h1,
	.mg-page-hero h1 {
		font-size: 30px;
	}
}
