/*
Theme Name:   maxgreger
Theme URI:    https://www.maxgreger.de/
Author:       Dr. Max Greger
Description:  Schlankes, eigenständiges Theme für maxgreger.de im Design „C1 · Hell & ruhig“. Kein Parent-Theme, kein jQuery, Schriften lokal (ohne Google). Kompatibel zu den Inhalten, Seitenvorlagen, Menüs, Widgets und Shortcodes des bisherigen Themes „revenue pro Greger“.
Version:      1.3.17
Requires at least: 6.3
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:  maxgreger
*/

/* ==========================================================================
   1. Schriften (lokal, OFL-Lizenz, siehe assets/fonts)
   ========================================================================== */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/inter-latin-wght-italic.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-display: swap;
	font-weight: 300 700;
	src: url("assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Design-Variablen – hier zentral Farben, Schriften und Abstände ändern
   ========================================================================== */
:root {
	--mg-navy: #0d2d5c;
	--mg-navy-deep: #081d3d;
	--mg-navy-2: #143a72;
	--mg-yellow: #eaef00;
	--mg-paper: #f7f8f4;
	--mg-mist: #e7ecf4;
	--mg-white: #ffffff;
	--mg-ink: #1d3358;
	--mg-ink-2: #33476a;
	--mg-slate: #4a5a75;
	--mg-rule: #d5dbe5;
	--mg-rule-light: #e3e7ee;
	--mg-rule-dark: #2b4c80;
	--mg-on-navy: #d9e0ec;
	--mg-on-navy-muted: #b9c5d8;
	--mg-red: #b8143e;
	--mg-red-bg: #fbeef1;
	--mg-radius: 4px;
	--mg-font-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
	--mg-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
	--mg-wrap: 1240px;
	--mg-gutter: clamp(20px, 4vw, 56px);
	--mg-section: clamp(72px, 9vw, 112px);
}

/* ==========================================================================
   3. Grundlagen
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--mg-white);
	color: var(--mg-navy);
	font-family: var(--mg-font-body);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--mg-navy); }
a:hover { color: var(--mg-navy-deep); }
:focus-visible { outline: 3px solid var(--mg-yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--mg-navy); }
h1, h2, h3, h4, h5, h6 { font-family: var(--mg-font-head); color: inherit; margin: 0; line-height: 1.15; overflow-wrap: break-word; }
/* Nur sehr lange Wörter trennen (z. B. „Überraschungsrechnung“), normale Wörter bleiben ganz. */
h1, h2, h3, .mg-h2, .mg-topic__name, .site-footer__cta-title, .mg-newsletter__title, .mg-after__title { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 14 6 6; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--mg-yellow); clip: auto !important; clip-path: none; color: var(--mg-navy); display: block;
	font-weight: 600; height: auto; left: 8px; padding: 12px 20px; top: 8px; width: auto; z-index: 100000;
}
.wrap { max-width: var(--mg-wrap); margin: 0 auto; padding-left: var(--mg-gutter); padding-right: var(--mg-gutter); }
.hd { font-family: var(--mg-font-head); }

/* ==========================================================================
   4. Bausteine: Labels, Buttons, Links, Markierung
   ========================================================================== */
.mg-kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mg-slate); }
.mg-h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.mk {
	background: linear-gradient(180deg, transparent 60%, var(--mg-yellow) 60%, var(--mg-yellow) 94%, transparent 94%);
	-webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 4px;
}
.mg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 58px; padding: 0 28px; border: 0; border-radius: var(--mg-radius);
	background: var(--mg-yellow); color: var(--mg-navy); font-weight: 600; font-size: 18px; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: filter .15s;
}
.mg-btn:hover { color: var(--mg-navy); filter: brightness(.95); }
.mg-btn svg { flex: none; }
.mg-btn--sm { min-height: 50px; padding: 0 22px; font-size: 16px; }
.mg-btn--dark { background: var(--mg-navy); color: var(--mg-white); }
.mg-btn--dark:hover { color: var(--mg-white); filter: brightness(1.15); }
.mg-btn--outline { background: transparent; color: var(--mg-navy); box-shadow: inset 0 0 0 2px var(--mg-navy); }
.mg-link {
	font-weight: 600; font-size: 17px; color: var(--mg-navy);
	text-decoration: underline; text-decoration-color: var(--mg-yellow); text-decoration-thickness: 4px; text-underline-offset: 6px;
}
.mg-small { font-size: 15px; color: var(--mg-slate); }

/* ==========================================================================
   5. Hinweisleiste und Kopfbereich
   ========================================================================== */
.mg-notice { display: block; background: var(--mg-yellow); color: var(--mg-navy); text-decoration: none; font-size: 15px; font-weight: 600; text-align: center; padding: 10px 20px; }
.mg-notice:hover { color: var(--mg-navy); text-decoration: underline; }

.site-header { position: relative; z-index: 50; background: var(--mg-white); border-bottom: 1px solid var(--mg-rule-light); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; padding-top: 14px; padding-bottom: 14px; }
.site-logo { display: flex; align-items: center; flex: none; }
.site-logo img { display: block; height: 34px; width: auto; }
@media (max-width: 600px) { .site-logo img { height: 30px; } }
.site-nav { display: flex; align-items: center; gap: 20px; }
.menu-primary { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.menu-primary li { position: relative; }
.menu-primary > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; color: var(--mg-navy); text-decoration: none; font-size: 15px; font-weight: 500; }
.menu-primary > li.current-menu-item > a,
.menu-primary > li.current-menu-ancestor > a,
.menu-primary > li.current-page-ancestor > a { font-weight: 600; box-shadow: inset 0 -3px 0 var(--mg-yellow); }
.menu-primary > li > a:hover { box-shadow: inset 0 -3px 0 var(--mg-yellow); }
.menu-primary .sub-menu {
	list-style: none; margin: 0; padding: 10px 0; position: absolute; left: -16px; top: 100%; min-width: 260px;
	background: var(--mg-white); border: 1px solid var(--mg-rule-light); border-radius: var(--mg-radius);
	box-shadow: 0 16px 40px rgba(13, 45, 92, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.menu-primary .sub-menu .sub-menu { left: 100%; top: -10px; }
.menu-primary li:hover > .sub-menu,
.menu-primary li:focus-within > .sub-menu,
.menu-primary li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu-primary .sub-menu a { display: block; padding: 9px 18px; color: var(--mg-navy); text-decoration: none; font-size: 15px; }
.menu-primary .sub-menu a:hover, .menu-primary .sub-menu .current-menu-item > a { background: var(--mg-paper); }
.menu-primary .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin-left: 4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg);
}
.submenu-toggle { display: none; }
.site-nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--mg-navy); cursor: pointer; border-radius: var(--mg-radius); }
.icon-btn:hover { background: var(--mg-paper); }
.nav-toggle { display: none; }
.header-cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
.header-search { display: none; border-top: 1px solid var(--mg-rule-light); background: var(--mg-paper); }
.header-search.is-open { display: block; }
.header-search .wrap { padding-top: 18px; padding-bottom: 18px; }

@media (max-width: 1100px) {
	.nav-toggle { display: inline-flex; }
	.site-nav__menu {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--mg-white); border-top: 1px solid var(--mg-rule-light); border-bottom: 1px solid var(--mg-rule-light);
		padding: 8px var(--mg-gutter) 20px; box-shadow: 0 16px 40px rgba(13, 45, 92, .12);
	}
	.site-nav__menu.is-open { display: block; }
	.menu-primary { flex-direction: column; align-items: stretch; gap: 0; }
	.menu-primary > li { border-bottom: 1px solid var(--mg-rule-light); }
	.menu-primary > li > a { padding: 14px 0; font-size: 17px; }
	.menu-primary .menu-item-has-children > a::after { display: none; }
	.menu-primary .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 14px; display: none; min-width: 0; }
	.menu-primary li.is-open > .sub-menu { display: block; }
	.submenu-toggle {
		display: inline-flex; position: absolute; right: 0; top: 4px; width: 44px; height: 44px; align-items: center; justify-content: center;
		border: 0; background: none; color: var(--mg-navy); cursor: pointer;
	}
	.submenu-toggle svg { transition: transform .15s; }
	li.is-open > .submenu-toggle svg { transform: rotate(180deg); }
	.header-cta { display: none; }
}

/* ==========================================================================
   6. Startseite
   ========================================================================== */
.mg-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); }
.mg-split > .mg-split__text:first-child { padding-left: max(clamp(20px, 5vw, 96px), calc((100vw - var(--mg-wrap)) / 2 + var(--mg-gutter))); }
.mg-split > .mg-split__text:last-child { padding-right: max(clamp(20px, 5vw, 96px), calc((100vw - var(--mg-wrap)) / 2 + var(--mg-gutter))); }
.mg-split__text { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 80px clamp(20px, 5vw, 96px); }
.mg-split__media img { display: block; width: 100%; height: 100%; min-height: 420px; max-height: 820px; object-fit: cover; object-position: 50% 30%; }
.mg-hero__title { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.mg-hero__lead { margin: 0; max-width: 520px; font-size: 20px; line-height: 1.55; color: var(--mg-ink-2); }
.mg-hero__cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mg-hero .mg-split__media img { height: 760px; }
/* Hero ab Desktop: Text und Foto in derselben Spalte wie Logo und Inhalt (links und rechts gleich viel Rand) */
@media (min-width: 1000px) {
	.mg-hero { max-width: var(--mg-wrap); margin: 0 auto; padding: 0 var(--mg-gutter); column-gap: 64px; }
	.mg-hero > .mg-split__text:first-child { padding-left: 0; padding-right: 0; }
	.mg-hero .mg-split__media { padding: 48px 0; }
	.mg-hero .mg-split__media img { height: 100%; min-height: 560px; max-height: 720px; border-radius: var(--mg-radius); }
}
@media (min-width: 1000px) { .mg-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } .mg-posthero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }

.mg-trust { border-bottom: 1px solid var(--mg-navy); }
.mg-trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; }
.mg-trust__item { padding: 26px 0; display: flex; flex-direction: column; gap: 2px; }
.mg-trust__item strong { font-family: var(--mg-font-head); font-size: 22px; font-weight: 700; }
.mg-trust__item span { font-size: 15px; color: var(--mg-slate); }

.mg-section { padding-top: var(--mg-section); padding-bottom: var(--mg-section); }
.mg-section--paper { background: var(--mg-paper); }
.mg-section--navy { background: var(--mg-navy); color: var(--mg-white); }
.mg-section--navy .mg-kicker { color: var(--mg-yellow); }
.mg-section .wrap { display: flex; flex-direction: column; gap: 48px; }
.mg-section__head { display: flex; flex-direction: column; gap: 14px; max-width: 780px; }

.mg-numlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); column-gap: 56px; border-top: 1px solid var(--mg-rule); }
.mg-numlist li { display: flex; gap: 22px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--mg-rule); font-size: 20px; font-weight: 500; }
.mg-numlist li > span:first-child { flex: none; width: 30px; font-family: var(--mg-font-head); font-weight: 600; font-size: 18px; color: var(--mg-slate); }
.mg-cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 30px; border-radius: var(--mg-radius); background: var(--mg-navy); color: var(--mg-white); }
.mg-cta-row strong { font-family: var(--mg-font-head); font-size: 22px; font-weight: 600; }

.mg-topics { display: flex; flex-direction: column; border-top: 1px solid var(--mg-rule-dark); }
.mg-topic { display: flex; flex-direction: column; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--mg-rule-dark); }
.mg-topic__link { display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--mg-white); text-decoration: none; }
.mg-topic__link:hover { color: var(--mg-yellow); }
.mg-topic__name { font-family: var(--mg-font-head); font-size: clamp(30px, 4vw, 54px); line-height: 1; font-weight: 700; }
.mg-topic__link svg { flex: none; color: var(--mg-yellow); }
.mg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-chips a { padding: 6px 12px; border-radius: var(--mg-radius); border: 1px solid var(--mg-rule-dark); font-size: 14px; color: var(--mg-white); text-decoration: none; }
.mg-chips a:hover { border-color: var(--mg-yellow); color: var(--mg-yellow); }

.mg-about .mg-split__text { gap: 26px; padding-top: 96px; padding-bottom: 96px; }
.mg-about .mg-split__media img { max-height: none; }
.mg-about p { margin: 0; font-size: 19px; line-height: 1.65; color: var(--mg-ink-2); }
.mg-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 20px; }
.mg-point { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 3px solid var(--mg-navy); }
.mg-point strong { font-family: var(--mg-font-head); font-size: 19px; font-weight: 600; }
.mg-point span { font-size: 16px; line-height: 1.55; color: var(--mg-slate); }

.mg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 40px; }
.mg-steps li { display: flex; flex-direction: column; gap: 14px; }
.mg-steps__num { display: flex; align-items: center; gap: 14px; }
.mg-steps__num span:first-child { width: 52px; height: 52px; flex: none; border-radius: 999px; background: var(--mg-yellow); color: var(--mg-navy); display: flex; align-items: center; justify-content: center; font-family: var(--mg-font-head); font-weight: 700; font-size: 22px; }
.mg-steps__num span + span { flex: 1; height: 2px; background: var(--mg-rule); }
.mg-steps strong { font-family: var(--mg-font-head); font-size: 23px; font-weight: 600; }
.mg-steps p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--mg-ink-2); }
.mg-steps-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid var(--mg-rule); }
.mg-steps-foot p { margin: 0; font-size: 16px; color: var(--mg-ink-2); max-width: 620px; }

.mg-limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 40px; }
.mg-limit { display: flex; flex-direction: column; gap: 12px; }
.mg-limit strong { font-family: var(--mg-font-head); font-size: 22px; font-weight: 600; }
.mg-limit p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--mg-ink-2); }

/* Beitragsliste (Startseite, Blog, Archive, Suche) */
.mg-postlist { display: flex; flex-direction: column; border-top: 1px solid var(--mg-rule); }
.mg-postrow { display: flex; gap: 28px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--mg-rule); }
.mg-postrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mg-postrow__meta { font-size: 14px; color: var(--mg-slate); }
.mg-postrow__title { font-family: var(--mg-font-head); font-size: 22px; line-height: 1.3; font-weight: 600; margin: 0; }
.mg-postrow__title a { color: var(--mg-navy); text-decoration: none; }
.mg-postrow__title a:hover { text-decoration: underline; text-decoration-color: var(--mg-yellow); text-decoration-thickness: 4px; text-underline-offset: 5px; }
.mg-postrow__excerpt { margin: 0; font-size: 17px; line-height: 1.6; color: var(--mg-ink-2); }
.mg-postrow__thumb { flex: none; width: 168px; }
.mg-postrow__thumb img { display: block; width: 168px; height: 168px; object-fit: cover; border-radius: var(--mg-radius); }
@media (max-width: 640px) { .mg-postrow__thumb { width: 96px; } .mg-postrow__thumb img { width: 96px; height: 96px; } .mg-postrow__excerpt { display: none; } }

/* Newsletter-Band */
.mg-newsletter { background: var(--mg-yellow); color: var(--mg-navy); }
.mg-newsletter .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.mg-newsletter__intro { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.mg-newsletter__intro .mg-newsletter__title { margin: 0; font-family: var(--mg-font-head); font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; font-weight: 700; }
.mg-newsletter__intro p { margin: 0; font-size: 18px; }
.mg-newsletter__form { flex: 1 1 460px; }
.mg-newsletter .widget { margin: 0; }
.mg-newsletter .widget-title { display: none; }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer { background: var(--mg-navy); color: #d5dbe5; }
.site-footer a { color: #d5dbe5; }
.site-footer a:hover { color: var(--mg-white); }
.site-footer a.mg-btn, .site-footer a.mg-btn:hover { color: var(--mg-navy); }
.site-footer .wrap { padding-top: 88px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 64px; }
.site-footer__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-bottom: 56px; border-bottom: 1px solid var(--mg-rule-dark); }
.site-footer__cta-title { margin: 0; font-family: var(--mg-font-head); max-width: 700px; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.06; font-weight: 700; color: var(--mg-white); }
.site-footer__cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.site-footer__cta-actions .mg-phone { color: var(--mg-white); font-size: 16px; font-weight: 600; text-decoration: none; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 36px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.55; }
.site-footer__brand img { display: block; height: 26px; width: auto; align-self: flex-start; }
.site-footer .widget-title, .site-footer__coltitle { font-family: var(--mg-font-head); font-size: 16px; font-weight: 600; color: var(--mg-white); margin: 0 0 12px; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer .widget a, .site-footer__social a { text-decoration: none; font-size: 15px; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer__social a { padding: 6px 12px; border-radius: var(--mg-radius); border: 1px solid var(--mg-rule-dark); color: var(--mg-white); font-size: 14px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--mg-rule-dark); font-size: 14px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }

/* ==========================================================================
   8. Seiten, Beiträge, Seitenleiste
   ========================================================================== */
/* Kopfband für Seiten – wie bei Beiträgen im Navy-Band */
.mg-pagehead { background: var(--mg-navy); color: var(--mg-on-navy); }
.mg-pagehead .wrap { padding-top: 56px; padding-bottom: 60px; display: flex; flex-direction: column; gap: 18px; }
.mg-pagehead h1, .mg-pagehead .mg-pagehead__title { margin: 0; max-width: 900px; color: var(--mg-white); font-family: var(--mg-font-head); font-size: clamp(36px, 4.4vw, 58px); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.mg-pagehead p { margin: 0; max-width: 760px; font-size: 20px; }
.mg-pagehead__sub { display: block; margin-top: 12px; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; font-weight: 500; letter-spacing: 0; color: var(--mg-on-navy); }
.mg-pagehead .mg-kicker { color: var(--mg-yellow); font-size: 15px; }
.mg-pagehead .mg-breadcrumbs, .mg-pagehead .mg-breadcrumbs a, .mg-pagehead #breadcrumbs, .mg-pagehead #breadcrumbs a { color: var(--mg-on-navy-muted); }
.mg-pagehead .mg-breadcrumbs a:hover, .mg-pagehead #breadcrumbs a:hover { color: var(--mg-white); }
.mg-pagehead .mg-family__label { color: var(--mg-on-navy-muted); }
.mg-pagehead .mg-family a { background: transparent; border-color: var(--mg-rule-dark); color: var(--mg-white); }
.mg-pagehead .mg-family a:hover { border-color: var(--mg-yellow); color: var(--mg-yellow); }
.mg-pagehead .mg-family a[aria-current="page"] { background: var(--mg-yellow); border-color: var(--mg-yellow); color: var(--mg-navy); }
.mg-family { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.mg-family__label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mg-slate); }
.mg-family ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mg-family a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--mg-radius); border: 1px solid var(--mg-rule); background: var(--mg-white); color: var(--mg-navy); font-size: 15px; font-weight: 500; text-decoration: none; }
.mg-family a:hover { border-color: var(--mg-navy); }
.mg-family a[aria-current="page"] { background: var(--mg-navy); border-color: var(--mg-navy); color: var(--mg-white); }
@media (max-width: 640px) { .mg-family ul { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--mg-gutter)); padding-right: var(--mg-gutter); scrollbar-width: none; } .mg-family a { white-space: nowrap; } }
.mg-breadcrumbs, #breadcrumbs { margin: 0; font-size: 15px; color: var(--mg-ink-2); }
.mg-breadcrumbs a, #breadcrumbs a { color: var(--mg-ink-2); }
.mg-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mg-breadcrumbs li + li::before { content: "›"; margin-right: 8px; }

.mg-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 64px; padding-top: 64px; padding-bottom: 104px; }
.mg-layout__main { flex: 999 1 560px; min-width: 0; max-width: 780px; }
.mg-layout--wide .mg-layout__main { max-width: none; }
.mg-aside { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 900px) { .mg-aside { max-width: none; } }

.mg-posthero { background: var(--mg-navy); color: var(--mg-on-navy); }
.mg-posthero .mg-split__text { gap: 22px; padding-top: 72px; padding-bottom: 72px; }
.mg-posthero h1 { color: var(--mg-white); font-size: clamp(36px, 3.8vw, 56px); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.mg-posthero .mg-kicker { color: var(--mg-yellow); }
.mg-posthero .mg-breadcrumbs, .mg-posthero .mg-breadcrumbs a, .mg-posthero #breadcrumbs, .mg-posthero #breadcrumbs a { color: var(--mg-on-navy-muted); }
.mg-posthero .mg-breadcrumbs a:hover, .mg-posthero #breadcrumbs a:hover { color: var(--mg-white); }
.mg-posthero .mg-byline { color: var(--mg-on-navy-muted); }
.mg-posthero .mg-byline strong { color: var(--mg-white); }
.mg-posthero .mg-byline img { box-shadow: 0 0 0 2px var(--mg-yellow); }
/* Beitragsbild nie beschneiden: Viele Beitragsbilder sind quadratische Grafiken mit Text bis an den Rand.
   Das Bild steht im eigenen Seitenverhältnis als Karte mit abgerundeten Ecken im Navy-Band. */
.mg-posthero .mg-split__media { display: flex; align-items: center; justify-content: flex-end; padding: 64px max(clamp(20px, 5vw, 96px), calc((100vw - var(--mg-wrap)) / 2 + var(--mg-gutter))) 64px 24px; }
.mg-posthero .mg-split__media img { width: min(100%, 460px); height: auto; min-height: 0; max-height: none; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
@media (max-width: 999px) {
	.mg-posthero .mg-split__text { padding-bottom: 28px; }
	.mg-posthero .mg-split__media { justify-content: center; padding: 0 var(--mg-gutter) 36px; }
	.mg-posthero .mg-split__media img { width: 100%; max-width: 560px; }
}
.mg-posthero--noimage { display: block; }
.mg-posthero--noimage > .mg-split__text:first-child { max-width: var(--mg-wrap); margin: 0 auto; padding-left: var(--mg-gutter); padding-right: var(--mg-gutter); }
.mg-byline { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--mg-slate); }
.mg-byline img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; object-position: 50% 28%; display: block; }
.mg-byline strong { display: block; color: var(--mg-navy); font-weight: 600; }

.mg-authorbox { display: flex; gap: 18px; align-items: center; padding-top: 28px; margin-top: 40px; border-top: 1px solid var(--mg-rule); }
.mg-authorbox img { flex: none; width: 72px; height: 72px; border-radius: 999px; border: 3px solid var(--mg-yellow); object-fit: cover; object-position: 50% 28%; display: block; }
.mg-authorbox strong { display: block; font-family: var(--mg-font-head); font-size: 19px; font-weight: 600; }
.mg-authorbox strong a { color: inherit; text-decoration: underline; text-decoration-color: var(--mg-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.mg-authorbox strong a:hover { text-decoration-color: var(--mg-navy); }
.mg-authorbox span { font-size: 15px; color: var(--mg-slate); }
.mg-pagedate { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--mg-rule); font-size: 15px; color: var(--mg-slate); }

/* Inhaltsverzeichnis: Hauptpunkte nummeriert wie die Überschriften im Text (01, 02 …), Unterpunkte eingerückt ohne Nummer */
.mg-toc { display: flex; flex-direction: column; min-height: 0; }
.mg-toc__title { font-family: var(--mg-font-head); font-size: 17px; font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid var(--mg-navy); }
.mg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.mg-toc > ol, .mg-toc nav > ol { overflow: auto; min-height: 0; }
.mg-toc li { counter-increment: toc; margin: 0; padding: 0; }
.mg-toc li::before, .mg-toc li::after { content: none !important; }
.mg-toc a { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mg-rule); text-decoration: none; font-size: 15px; line-height: 1.45; color: var(--mg-navy); }
.mg-toc a::before { content: counter(toc) "."; flex: none; min-width: 22px; font-weight: 600; color: var(--mg-slate); }
.mg-toc ol ol a { padding: 7px 0 7px 34px; font-size: 14px; color: var(--mg-slate); }
.mg-toc ol ol a::before { content: counters(toc, "."); font-weight: 500; min-width: 30px; }
.mg-toc--plain a::before, .mg-toc--plain ol ol a::before { content: none; }
.mg-toc--plain ol ol a { padding-left: 18px; }
.mg-toc a:hover, .mg-toc a.is-active { text-decoration: underline; text-decoration-color: var(--mg-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.mg-toc a.is-active { font-weight: 600; }
.mg-toc.is-collapsible ol ol { display: none; }
.mg-toc.is-collapsible li.is-current > ol { display: block; }

/* Inline-Variante: aufklappbarer Kasten über dem Text */
.mg-toc--inline { margin: 0 0 40px; padding: 20px 24px 8px; background: var(--mg-paper); border: 1px solid var(--mg-rule); border-radius: var(--mg-radius); }
.mg-toc--inline > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; padding-bottom: 12px; margin-bottom: 4px; }
.mg-toc--inline > summary::-webkit-details-marker { display: none; }
.mg-toc--inline > summary::after { content: "–"; font-weight: 700; margin-left: auto; }
.mg-toc--inline:not([open]) > summary { border-bottom: 0; padding-bottom: 12px; margin-bottom: 0; }
.mg-toc--inline:not([open]) > summary::after { content: "+"; }
.mg-toc__count { font-family: var(--mg-font-body); font-size: 14px; font-weight: 400; color: var(--mg-slate); }
.mg-toc--inline li:last-child > a { border-bottom: 0; }
@media (min-width: 760px) { .mg-layout--wide .mg-toc--inline nav > ol { columns: 2; column-gap: 48px; } .mg-layout--wide .mg-toc--inline li { break-inside: avoid; } }

/* Mit Seitenleiste: am Desktop rechts (läuft beim Scrollen nicht mit), darunter über dem Text */
.mg-aside { align-self: stretch; }
.mg-aside__sticky { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1000px) {
	.mg-toc--mobile { display: none; }
}
@media (max-width: 999px) {
	.mg-aside { flex-basis: 100%; max-width: none; }
	.mg-aside .mg-toc { display: none; }
}

.mg-asidebox { padding: 26px; border-radius: var(--mg-radius); background: var(--mg-yellow); display: flex; flex-direction: column; gap: 14px; }
.mg-asidebox strong { font-family: var(--mg-font-head); font-size: 21px; line-height: 1.25; font-weight: 700; }
.mg-asidebox p { margin: 0; font-size: 16px; line-height: 1.55; }
.mg-asidebox--navy { background: var(--mg-navy); color: var(--mg-white); }
.mg-asidebox--navy p { color: var(--mg-on-navy); }
.mg-asidebox--navy a.mg-phone { color: var(--mg-white); font-weight: 600; text-decoration: none; font-size: 15px; }
.mg-subnav { padding: 24px; border-radius: var(--mg-radius); border: 1px solid var(--mg-rule); }
.mg-subnav strong { display: block; font-family: var(--mg-font-head); font-size: 18px; font-weight: 700; padding-bottom: 8px; }
.mg-subnav ul { list-style: none; margin: 0; padding: 0; }
.mg-subnav li a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-bottom: 1px solid #eef1f5; text-decoration: none; font-size: 16px; }
.mg-subnav li:last-child a { border-bottom: 0; }
.mg-subnav li a::after { content: "›"; }
.mg-subnav .current_page_item > a { font-weight: 600; box-shadow: inset 3px 0 0 var(--mg-yellow); padding-left: 10px; }

/* Widgets in der Seitenleiste */
.mg-aside .widget { margin: 0; }
.mg-aside .widget h2, .mg-aside .wp-block-heading, .mg-aside .wp-block-search__label,
.mg-aside .widget-title { font-family: var(--mg-font-head); font-size: 17px; font-weight: 700; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--mg-navy); }
.mg-aside .widget ul { list-style: none; margin: 0; padding: 0; }
.mg-aside .widget li { padding: 10px 0; border-bottom: 1px solid var(--mg-rule); font-size: 16px; }
.mg-aside .widget li a { text-decoration: none; }
.widget_posts_thumbnail li { display: flex; gap: 14px; align-items: center; }
.widget_posts_thumbnail .thumbnail-wrap { flex: none; width: 64px; }
.widget_posts_thumbnail .thumbnail-wrap img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--mg-radius); display: block; }
.widget_posts_thumbnail .entry-wrap a { font-weight: 600; font-size: 15px; line-height: 1.4; }
.widget_posts_thumbnail .entry-meta { font-size: 13px; color: var(--mg-slate); }
.widget_social_icons .social-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.widget_social_icons .social-icons a { padding: 6px 12px; border-radius: var(--mg-radius); border: 1px solid var(--mg-rule); text-decoration: none; font-size: 14px; }

/* Weitere Beiträge + Kommentare */
.mg-after { background: var(--mg-paper); }
.mg-after .wrap { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 64px; }
.mg-after__title { margin-top: 0; font-family: var(--mg-font-head); font-size: 34px; line-height: 1.1; font-weight: 700; margin-bottom: 18px; }

/* Paginierung */
.mg-pagination { margin-top: 40px; }
.mg-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--mg-radius); border: 1px solid var(--mg-rule); text-decoration: none; font-weight: 600; }
.mg-pagination .page-numbers.current { background: var(--mg-navy); color: var(--mg-white); border-color: var(--mg-navy); }
.mg-pagination a.page-numbers:hover { border-color: var(--mg-navy); }

/* Formulare */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="password"], input[type="number"], textarea, select {
	width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #9aa6b8; border-radius: var(--mg-radius); background: var(--mg-white); color: var(--mg-navy); font-size: 16px;
}
textarea { min-height: 140px; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--mg-navy); }
input[type="submit"], button[type="submit"], .wp-block-button__link, .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 0; border-radius: var(--mg-radius);
	background: var(--mg-navy); color: var(--mg-white); font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none;
}
label { font-weight: 600; font-size: 15px; }

/* Contact Form 7: Meldungen, Pflichtfeld-Hinweise, Einwilligung (gilt für alle Formulare) */
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid { border-color: var(--mg-red) !important; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; color: var(--mg-red); font-size: 14px; font-weight: 600; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 12px 16px; border: 2px solid var(--mg-navy); border-radius: var(--mg-radius); background: var(--mg-white); color: var(--mg-navy); font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #1f7a4d; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: var(--mg-red); }
.wpcf7-acceptance .wpcf7-list-item, .wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.wpcf7-acceptance label, .wpcf7-checkbox label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.5; }
.wpcf7-acceptance input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 0; }
.wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; }

/* Newsletter-Band: Formular in C1-Größe (greift auch bei einfachem CF7-Markup ohne eigene Klassen) */
.mg-newsletter .wpcf7 p { margin: 0 0 14px; }
.mg-newsletter .wpcf7 label { font-size: 15px; font-weight: 600; }
.mg-newsletter input[type="text"], .mg-newsletter input[type="email"] { min-height: 52px; border: 2px solid var(--mg-navy); font-size: 17px; }
.mg-newsletter input[type="text"]:focus, .mg-newsletter input[type="email"]:focus { outline: 3px solid var(--mg-navy); outline-offset: 2px; }
.mg-newsletter input[type="submit"], .mg-newsletter button[type="submit"] { min-height: 52px; padding: 0 28px; background: var(--mg-navy); color: var(--mg-white); font-size: 17px; }
.mg-newsletter input[type="submit"]:hover, .mg-newsletter button[type="submit"]:hover { background: var(--mg-navy-deep); }
.mg-newsletter .wpcf7-acceptance label { font-size: 14px; font-weight: 400; }
.mg-newsletter .wpcf7-acceptance a { color: var(--mg-navy); font-weight: 600; }

/* Formular-Bausteine für CF7 (Vorlage in readme.txt): .mg-form, .mg-form__row, .mg-form__field, .mg-form__submit, .mg-form__note */
.mg-form br { display: none; }
.mg-form__row > p, .mg-form__submit > p { display: contents; } /* CF7 setzt automatisch <p> um Zeilen; die sollen das Raster nicht stören */
.mg-form p, .mg-newsletter .mg-form p { margin: 0; }
.mg-form { display: flex; flex-direction: column; gap: 14px; container-type: inline-size; }
.mg-form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.mg-form__field { display: flex; flex-direction: column; gap: 6px; line-height: 1.4; }
.mg-form__submit { position: relative; display: flex; align-items: center; }
.mg-form__submit .wpcf7-submit { width: 100%; }
.mg-form .wpcf7-spinner { position: absolute; right: 8px; top: 50%; margin: -12px 0 0; }
.mg-form__note { font-size: 14px; color: inherit; opacity: .85; }
/* Ist das Formular breit genug, stehen Felder und Button in einer Zeile. Der Button rückt um die Höhe
   der Feldbeschriftung nach unten, damit er auch bei Fehlermeldungen auf Höhe der Felder bleibt. */
@container (min-width: 560px) {
	.mg-form__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; }
	.mg-form__submit { padding-top: 27px; }
	.mg-form__submit .wpcf7-submit { width: auto; }
}
.search-form { display: flex; gap: 10px; max-width: 640px; }
.search-form label { flex: 1; }

/* Kommentare */
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--mg-rule); font-size: 16px; }
.comment-author { font-weight: 600; }
.comment-author img { border-radius: 999px; vertical-align: middle; margin-right: 8px; }
.comment-metadata { font-size: 13px; }
.comment-metadata a { color: var(--mg-slate); }
.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; font-size: 14px; }
.comment-reply-title { margin: 0 0 18px; font-family: var(--mg-font-head); font-size: 34px; line-height: 1.1; font-weight: 700; }

/* ==========================================================================
   9. Beitrags- und Seiteninhalt (.entry-content)
   Greift auf reines HTML aus dem Editor – Inhalte müssen nicht angepasst werden.
   ========================================================================== */
.entry-content { font-size: 19px; line-height: 1.75; color: var(--mg-ink); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 22px; }
.entry-content p:empty { display: none; }
.entry-content a { color: var(--mg-navy); font-weight: 500; text-decoration: underline; text-decoration-color: var(--mg-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.entry-content a:hover { text-decoration-color: var(--mg-navy); }
.entry-content strong, .entry-content b { color: var(--mg-navy); }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { color: var(--mg-navy); scroll-margin-top: 24px; }
.entry-content h2 { clear: both; font-size: 32px; line-height: 1.2; font-weight: 700; margin: 48px 0 20px; padding-top: 28px; border-top: 1px solid var(--mg-rule); }
.entry-content h3 { font-size: 23px; line-height: 1.3; font-weight: 600; margin: 36px 0 12px; }
.entry-content h4 { font-size: 19px; font-weight: 600; margin: 28px 0 10px; }
.entry-content > h2:first-child { border-top: 0; padding-top: 0; }

/* Nummerierung der Zwischenüberschriften: standardmäßig aus (Customizer › Darstellung).
   Eingeschaltet: 1, 2, 3 vor H2 und 3.1, 3.2 vor H3 – genau wie im Inhaltsverzeichnis. */
.mg-numbered .entry-content { counter-reset: mgh2; }
.mg-numbered .entry-content > h2 { counter-increment: mgh2; counter-reset: mgh3; }
.mg-numbered .entry-content > h3 { counter-increment: mgh3; }
.mg-numbered .entry-content > h2::before { content: counter(mgh2) ". "; color: var(--mg-slate); }
.mg-numbered .entry-content > h3::before { content: counter(mgh2) "." counter(mgh3) " "; color: var(--mg-slate); }
.mg-numbered .entry-content > h2.no_counter, .mg-numbered .entry-content > h2.home_headings, .mg-numbered .entry-content > h3.no_counter { counter-increment: none; }
.entry-content .mg-anchor { scroll-margin-top: 24px; }
.entry-content .no_counter::before, .entry-content .home_headings::before, #no-numbers-wrap h2::before { content: none !important; }

/* Listen: gelbe Quadrate statt Punkte, nummerierte Listen mit Zahl in Grau */
.entry-content ul, .entry-content ol { margin: 0 0 24px; padding: 0; }
.entry-content ul { list-style: none; }
.entry-content ul > li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.entry-content ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; background: var(--mg-yellow); box-shadow: 0 0 0 1px rgba(13, 45, 92, .25); }
.entry-content ol { padding-left: 28px; }
.entry-content ol > li { margin-bottom: 12px; padding-left: 6px; }
.entry-content ol > li::marker { font-family: var(--mg-font-head); font-weight: 600; color: var(--mg-slate); }
.entry-content li > ul, .entry-content li > ol { margin: 12px 0 0; }

.entry-content blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--mg-yellow); font-size: 21px; line-height: 1.6; color: var(--mg-navy); font-weight: 500; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { border-radius: var(--mg-radius); }
.entry-content figure { margin: 32px 0; }
.entry-content figcaption, .entry-content .wp-caption-text { font-size: 15px; color: var(--mg-slate); margin-top: 8px; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content hr { border: 0; border-top: 1px solid var(--mg-rule); margin: 40px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 17px; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--mg-rule); text-align: left; vertical-align: top; }
.entry-content th { background: var(--mg-paper); font-weight: 600; }
.entry-content iframe { display: block; max-width: 100%; }
.alignleft { float: left; margin: 6px 28px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 28px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignnone { display: inline-block; }
@media (max-width: 700px) { .alignleft, .alignright { float: none; margin: 0 0 20px; } .entry-content img.alignleft, .entry-content img.alignright { width: 100%; } }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content details { background: var(--mg-paper); border: 1px solid var(--mg-rule); border-radius: var(--mg-radius); margin: 0 0 16px; }
.entry-content summary { padding: 16px 20px; font-weight: 600; cursor: pointer; }
.entry-content details > *:not(summary) { padding: 0 20px; }
.entry-content details .akkordeon-inhalt { padding: 0 20px 4px; }

/* ==========================================================================
   10. Shortcode-Bausteine und Klassen aus bestehenden Inhalten
   ========================================================================== */
.mg-box, .grey_box, .yellow_box, .red_box, .block { padding: 22px 24px; border-radius: var(--mg-radius); margin: 28px 0; clear: both; }
.mg-box > *:last-child, .grey_box > *:last-child, .yellow_box > *:last-child, .red_box > *:last-child { margin-bottom: 0; }
.grey_box { padding: 20px 24px; background: var(--mg-paper); border: 1px solid var(--mg-rule-light); border-left: 4px solid var(--mg-navy); }
.yellow_box { background: var(--mg-yellow); color: var(--mg-navy); }
.yellow_box li, .red_box li { font-weight: 600; }
.yellow_box h2, .red_box h2 { border-top: 0; padding-top: 0; margin-top: 0; text-align: center; }
.yellow_box h2::before, .red_box h2::before { content: none !important; }
.yellow_box ul > li::before { background: var(--mg-navy); box-shadow: none; }
.red_box { padding: 20px 24px; background: var(--mg-red-bg); border: 1px solid #f1d3db; border-left: 4px solid var(--mg-red); }
.red_box strong { color: var(--mg-red); }
.example_box { background: var(--mg-mist); padding: 18px 20px; border-radius: var(--mg-radius); margin: 0 0 20px; max-width: 360px; }
.example_box[style*="float:right"], .example_box[style*="float: right"] { margin-left: 24px; }
.example_box[style*="float:left"], .example_box[style*="float: left"] { margin-right: 24px; }
@media (max-width: 800px) { .example_box { float: none !important; max-width: none; } }
.content_button_wrap { display: flex; justify-content: center; margin: 24px 0; }
/* Sandgelbe Box: überall gleich, die Varianten grey/blue/white sehen bewusst identisch aus. */
.center_box_wrap { display: block; margin: 28px 0; }
.center_box, .center_box.grey, .center_box.blue, .center_box.white { max-width: 100%; padding: 20px 24px; background: var(--mg-paper); border: 1px solid var(--mg-rule-light); border-left: 4px solid var(--mg-yellow); border-radius: var(--mg-radius); box-shadow: none; }
.center_box > :last-child, .center_box ul:last-child { margin-bottom: 0; }
.center_box li { list-style: none; }
.center { text-align: center; }
.spacer { height: 20px; }
.link_box { background: var(--mg-navy); color: var(--mg-white); border-radius: var(--mg-radius); padding: 28px; margin: 28px 0; text-align: center; font-weight: 600; font-size: 20px; }
.link_box a { color: var(--mg-white); }
.line_wrap { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 24px; }
.line { width: 56px; height: 0; border-top: 2px solid var(--mg-rule); display: inline-block; }
.image_border { border: 2px solid var(--mg-rule); padding: 2px; }
.container_dotted { border: 2px dashed var(--mg-navy); border-radius: var(--mg-radius); }
.mg-icon { display: inline-block; vertical-align: -0.15em; }

/* Buttons aus Shortcodes ([button], [button_blue], [link_box], [calendly]) */
.entry-content a.mg-btn, .entry-content a.button, .entry-content a.content_button, .entry-content a.button_blue { text-decoration: none; font-weight: 600; color: var(--mg-navy); }
.entry-content a.mg-btn--dark { color: var(--mg-white); }

/* Termin-Kasten [calendly] */
.mg-ctabox { margin: 28px 0; padding: 32px; border-radius: var(--mg-radius); background: var(--mg-navy); color: var(--mg-on-navy); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-size: 16px; line-height: 1.6; clear: both; }
.entry-content .mg-ctabox a:not(.mg-btn) { color: var(--mg-white); text-decoration-color: var(--mg-yellow); }

/* Inhaltsverzeichnis-Plugin „Table of Contents Plus“ (solange es noch aktiv ist): keine Theme-Aufzählungszeichen,
   damit die Nummern des Plugins sichtbar bleiben */
.entry-content #toc_container ul > li { padding-left: 0; }
.entry-content #toc_container ul ul { padding-left: 24px; }
.entry-content #toc_container li::before, .entry-content #toc_container li::after { content: none; }

/* Listen-Varianten aus bestehenden Inhalten */
.entry-content .order_list, .entry-content .elementor_order_list { list-style: none; padding-left: 0; }
/* order_list allein: kein Zeichen, Text bündig. Mit check_list, stop_list, bulb_list oder dot_list kombiniert: deren Zeichen. */
.entry-content :is(.order_list, .elementor_order_list):not(.check_list, .stop_list, .bulb_list, .dot_list, .elementor_check_list, .elementor_stop_list) > li { padding-left: 0; }
.entry-content :is(.order_list, .elementor_order_list):not(.check_list, .stop_list, .bulb_list, .dot_list, .elementor_check_list, .elementor_stop_list) > li::before { content: none; }
/* Themenspalten: normale Listen ohne Zeichen (wie bisher), ul_check mit Haken */
.entry-content .themaspalte ul:not(.ul_check, .check_list, .stop_list, .bulb_list, .dot_list) > li { padding-left: 0; }
.entry-content .themaspalte ul:not(.ul_check, .check_list, .stop_list, .bulb_list, .dot_list) > li::before { content: none; }
.entry-content .check_list > li::before, .entry-content .elementor_check_list > li::before, .entry-content .ul_check > li::before,
.entry-content .stop_list > li::before, .entry-content .elementor_stop_list > li::before,
.entry-content .bulb_list > li::before, .entry-content .dot_list > li::before { box-shadow: none; }
.entry-content .check_list > li::before, .entry-content .elementor_check_list > li::before, .entry-content .ul_check > li::before {
	content: ""; width: 20px; height: 20px; top: .3em; left: 0; border-radius: 999px; background: var(--mg-yellow);
}
.entry-content .check_list > li::after, .entry-content .elementor_check_list > li::after, .entry-content .ul_check > li::after {
	content: ""; position: absolute; left: 7px; top: calc(.3em + 4px); width: 5px; height: 10px; border: solid var(--mg-navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.entry-content .check_list > li, .entry-content .elementor_check_list > li, .entry-content .ul_check > li { padding-left: 34px; }
.entry-content .stop_list > li::before, .entry-content .elementor_stop_list > li::before { content: "✕"; background: none; width: auto; height: auto; top: 0; color: var(--mg-red); font-weight: 700; }
.entry-content .bulb_list > li::before { content: "!"; background: var(--mg-yellow); width: 20px; height: 20px; top: .3em; border-radius: 999px; text-align: center; line-height: 20px; font-weight: 700; font-size: 14px; }
.entry-content .count_list { font-weight: 600; }
.mg-su-row { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 24px; }
.mg-su-row > .su-column { flex: 1 1 200px; min-width: 0; }
.mg-su-row > .themaspalte { height: auto; }
.themaspalte { background: var(--mg-paper); border: 1px solid var(--mg-rule); border-radius: var(--mg-radius); padding: 16px; height: 100%; }
.themaspalte_head { text-align: center; font-weight: 700; font-size: 1.2em; }
.su-row { margin-bottom: 2.5em; }
@media (min-width: 400px) { .testimonial_box { display: flex; justify-content: center; } }

/* Video-Container: wie im bisherigen Theme ausgeblendet (siehe readme.txt) */
.video-container-wrapper, .video-container { display: none; }
.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.embed-container-wrapper { max-width: 100%; width: 600px; margin: 0 auto 20px; }

/* Elementor: Inhalte dürfen die volle Breite nutzen */
.mg-elementor .entry-content { font-size: inherit; line-height: inherit; color: inherit; }
.mg-elementor .entry-content h2 { border-top: 0; padding-top: 0; margin: 0; }

/* ==========================================================================
   11. Sonstiges
   ========================================================================== */
.mg-404 { text-align: left; }
.mg-empty { padding: 40px 0; font-size: 19px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 9999; }
@media print {
	.mg-notice, .site-header, .mg-aside, .site-footer, .mg-newsletter, .mg-after { display: none !important; }
	.mg-layout { padding: 0; }
}

/* ==========================================================================
   Bestätigungsseite (Vorlage „Bestätigungsseite“): Danke-/Bestätigungsseiten als Karte
   ========================================================================== */
.mg-confirm { background: var(--mg-mist); padding: clamp(40px, 7vw, 96px) 0; }
.mg-confirm__card { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); background: var(--mg-white); border-radius: var(--mg-radius); box-shadow: 0 1px 2px rgba(13, 45, 92, .06), 0 12px 32px rgba(13, 45, 92, .08); }
.mg-confirm__icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 0 22px; border-radius: 50%; background: var(--mg-yellow); color: var(--mg-navy); }
.mg-confirm__card h1,
.mg-confirm__card .entry-content h1 { margin: 0 0 20px; font-size: clamp(32px, 4.4vw, 44px); line-height: 1.12; text-align: left !important; color: var(--mg-navy); }
.mg-confirm__card .entry-content > :first-child { margin-top: 0; }
.mg-confirm__card .entry-content > :last-child { margin-bottom: 0; }
.mg-confirm__card .entry-content p:empty { display: none; }
.mg-confirm__card .entry-content img.alignleft,
.mg-confirm__card .entry-content img.alignright { float: left; width: 112px !important; height: 112px !important; margin: 4px 24px 12px 0; border-radius: 50%; object-fit: cover; }
.mg-confirm__card .entry-content img:not(.alignleft):not(.alignright) { max-width: 180px; height: auto; }
.mg-confirm__card .entry-content h2 { clear: both; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--mg-rule-light); font-size: 24px; }
.mg-confirm__card .entry-content::after { content: ""; display: table; clear: both; }
.mg-confirm__next { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; margin: 28px auto 0; }
@media (max-width: 560px) {
	.mg-confirm__card .entry-content img.alignleft,
	.mg-confirm__card .entry-content img.alignright { width: 84px !important; height: 84px !important; margin-right: 16px; }
	.mg-confirm__next .mg-btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Über mich (Vorlage „Über mich (Profil)“)
   ========================================================================== */
.mg-profile { background: var(--mg-navy); box-shadow: 0 0 0 100vmax var(--mg-navy); clip-path: inset(0 -100vmax); color: var(--mg-on-navy); }
.mg-profile .mg-kicker { color: var(--mg-yellow); }
.mg-profile__title { color: var(--mg-white); }
.mg-profile .mg-btn--outline { color: var(--mg-white); background: transparent; box-shadow: inset 0 0 0 2px var(--mg-on-navy-muted); }
.mg-profile .mg-btn--outline:hover { color: var(--mg-yellow); box-shadow: inset 0 0 0 2px var(--mg-yellow); }
.mg-profile .mg-split__media { padding-top: 56px; padding-bottom: 56px; }
.mg-profile .mg-split__media img { border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.mg-profile .mg-split__text { gap: 24px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.mg-profile__title { margin: 0; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.mg-profile__intro { display: flex; flex-direction: column; gap: 14px; font-size: 19px; line-height: 1.6; color: var(--mg-on-navy); }
.mg-profile__intro strong { color: var(--mg-white); }
.mg-profile__intro p { margin: 0; }
.mg-profile__intro em { font-style: normal; }
.mg-profile__intro > p:first-child em:only-child { font-family: var(--mg-font-head); font-weight: 700; font-size: 24px; color: var(--mg-yellow); }
.mg-profile .mg-hero__cta { flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-start; margin-top: 4px; }
.mg-profile .mg-split__media img { width: 100%; height: 100%; object-fit: cover; }
.mg-profile__body { max-width: 760px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.mg-profile__body .entry-content > h2:first-child { margin-top: 0; }
.mg-profile__body .testimonial_box { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; margin: 32px 0; }
.mg-profile__body .testimonial_box > div { display: contents; }
.mg-profile__body .testimonial_box img { width: 100%; height: auto; margin: 0; border: 1px solid var(--mg-rule-light); border-radius: var(--mg-radius); box-shadow: 0 1px 2px rgba(13, 45, 92, .06), 0 10px 28px rgba(13, 45, 92, .08); background: var(--mg-white); }
.mg-profile__body .testimonial_box p { display: contents; }
.mg-profile__body .testimonial_box br { display: none; }
/* Bausteine für die Über-mich-Seite (auch in anderen Inhalten nutzbar): Karten und Zeitleiste */
.entry-content .mg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; margin: 24px 0 8px; }
.entry-content .mg-card { padding: 22px 22px 20px; background: var(--mg-paper); border: 1px solid var(--mg-rule-light); border-top: 4px solid var(--mg-yellow); border-radius: var(--mg-radius); }
.entry-content .mg-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.25; }
.entry-content .mg-card p { margin: 0; font-size: 16px; line-height: 1.55; }
.entry-content .mg-timeline { list-style: none; margin: 24px 0 8px; padding: 0; position: relative; }
.entry-content .mg-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--mg-rule); }
.entry-content .mg-timeline > li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 4px 20px; margin: 0 0 22px; padding: 0 0 0 36px; }
.entry-content .mg-timeline > li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--mg-yellow); box-shadow: 0 0 0 3px var(--mg-white), 0 0 0 4px var(--mg-navy); }
.entry-content .mg-timeline > li > strong { font-family: var(--mg-font-head); font-size: 18px; color: var(--mg-navy); }
@media (max-width: 560px) { .entry-content .mg-timeline > li { grid-template-columns: 1fr; } }
/* Zitat-Karten (Empfehlungen): <div class="mg-quotes"><blockquote class="mg-quote"><p>…</p><footer>…</footer></blockquote>…</div> */
.entry-content .mg-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin: 32px 0; }
.entry-content .mg-quote { position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 64px 26px 24px; border: 1px solid var(--mg-rule-light); border-top: 4px solid var(--mg-yellow); border-radius: var(--mg-radius); background: var(--mg-white); box-shadow: 0 1px 2px rgba(13, 45, 92, .06), 0 10px 28px rgba(13, 45, 92, .08); font-size: 17px; line-height: 1.6; font-weight: 400; color: var(--mg-ink); }
.entry-content .mg-quote::before { content: "\201C"; position: absolute; left: 24px; top: 14px; font-family: Georgia, "Times New Roman", serif; font-size: 64px; line-height: 1; font-weight: 700; color: var(--mg-navy); }
.entry-content .mg-quote p { margin: 0; }
.entry-content .mg-quote footer { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--mg-rule-light); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mg-slate); }

/* ==========================================================================
   Wissensseiten, Version 2 (Body-Klasse .mg-v2): alte Bausteine im Stil der Website
   ========================================================================== */
.mg-pagehero .mg-split__text { padding-top: 56px; padding-bottom: 56px; }
.mg-pagehero h1 { font-size: clamp(34px, 3.6vw, 52px); }
.mg-v2 .entry-content > p:first-child { font-size: 20px; line-height: 1.55; }
.mg-v2 .entry-content .example_box { max-width: 340px; padding: 18px 20px; background: var(--mg-mist); border-left: 4px solid var(--mg-navy); border-radius: var(--mg-radius); font-size: 16px; }
.mg-v2 .entry-content .yellow_box { padding: 22px 26px; border-radius: 10px; font-weight: 500; }
.mg-v2 .entry-content .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; margin: 20px 0 28px; }
.mg-v2 .entry-content .themaspalte { padding: 18px 20px; background: var(--mg-white); border: 1px solid var(--mg-rule); border-top: 4px solid var(--mg-yellow); border-radius: var(--mg-radius); transition: box-shadow .15s, transform .15s; }
.mg-v2 .entry-content .themaspalte:hover { box-shadow: 0 10px 24px rgba(13, 45, 92, .1); transform: translateY(-2px); }
.mg-v2 .entry-content .themaspalte_head { margin: 0; text-align: left; font-family: var(--mg-font-head); font-size: 18px; }
.mg-v2 .entry-content .themaspalte_head a { color: var(--mg-navy); text-decoration: none; background: none; }
.mg-v2 .entry-content .themaspalte_head a::after { content: " →"; color: var(--mg-slate); }
.mg-v2 .entry-content img.alignleft, .mg-v2 .entry-content img.alignright, .mg-v2 .entry-content img.aligncenter, .mg-v2 .entry-content .wp-caption img { border-radius: 10px; }
.mg-v2 .entry-content table { border: 1px solid var(--mg-rule); border-radius: var(--mg-radius); overflow: hidden; }
.mg-v2 .entry-content th { background: var(--mg-navy); color: var(--mg-white); }
.mg-v2 .entry-content tr:nth-child(even) td { background: var(--mg-paper); }

/* ==========================================================================
   Landingpage aus Sektionen (Vorlage „Landingpage (Sektionen)“, Body-Klasse .mg-lp)
   ========================================================================== */
.mg-lp-head { display: flex; align-items: center; gap: 20px; }
.mg-lp-head__phone { font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.mg-lp-head .mg-btn { white-space: nowrap; }
@media (max-width: 640px) { .mg-lp-head__phone { display: none; } .mg-lp-head .mg-btn svg { display: none; } .mg-lp .site-header__bar { gap: 12px; } .mg-lp-head .mg-btn { min-height: 42px; padding: 0 12px; font-size: 14px; } }
@media (max-width: 380px) { .mg-lp .site-logo img { height: 24px; } .mg-lp-head .mg-btn { padding: 0 10px; font-size: 13px; } }
.mg-lp-yellow { color: var(--mg-yellow); }
@media (max-width: 640px) { .mg-lp .mg-trust .wrap { grid-template-columns: 1fr 1fr; gap: 0 16px; } .mg-lp .mg-trust__item { padding: 16px 0; } .mg-lp .mg-trust__item strong { font-size: 18px; } }
.mg-lp-note { margin: 0; font-size: 15px; color: var(--mg-on-navy-muted); }
.mg-lp-hero .mg-hero__cta { margin-top: 0; }
.mg-lp-video { display: flex; align-items: center; }
.mg-lp-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--mg-navy-deep); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); object-fit: cover; }
@media (min-width: 1000px) {
	.mg-lp-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
	.mg-lp-hero .mg-split__media { padding-right: max(clamp(20px, 5vw, 96px), calc((100vw - var(--mg-wrap)) / 2 + var(--mg-gutter))); }
}
@media (max-width: 999px) { .mg-lp-hero .mg-split__media { padding: 0 var(--mg-gutter) 48px; } .mg-lp-hero .mg-split__text { padding-bottom: 32px; } }
.mg-lp-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--mg-ink-2); }
.mg-lp-points { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.mg-numlist li strong { font-weight: 700; }
.mg-lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.mg-lp-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--mg-rule-dark); border-top: 4px solid var(--mg-yellow); border-radius: var(--mg-radius); background: var(--mg-navy-2); }
.mg-lp-card strong { font-family: var(--mg-font-head); font-size: 20px; font-weight: 600; color: var(--mg-white); }
.mg-lp-card span { font-size: 16px; line-height: 1.55; color: var(--mg-on-navy); }
.mg-lp-price { margin: 0; font-family: var(--mg-font-head); font-size: 20px; font-weight: 600; color: var(--mg-yellow); }
.mg-lp .mg-about .mg-split__media img { max-height: 760px; object-position: 50% 6%; }
@media (min-width: 1000px) { .mg-lp .mg-about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.mg-lp-narrow > .entry-content, .mg-lp-narrow > .mg-lp-more { max-width: 860px; width: 100%; }
.mg-lp-hero .mg-profile__title { font-size: clamp(34px, 3.5vw, 52px); }
.mg-lp-narrow .entry-content details:last-child { margin-bottom: 0; }
.mg-lp-more { margin: 0; font-size: 17px; }
.mg-lp-more a { font-weight: 600; }
.mg-lp-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.mg-lp-contact__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.mg-lp-contact__text p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--mg-ink-2); }
.mg-lp-contact__form { padding: clamp(22px, 3vw, 32px); background: var(--mg-white); border: 1px solid var(--mg-rule-light); border-radius: var(--mg-radius); }
.mg-lp-contact__form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
.mg-lp-contact__form p { margin: 0; }
