/* modellbau-geschenke.de – Site-Design (ergänzt Astra, ohne Theme-Dateien zu ändern) */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-var.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-700.woff2) format('woff2'); }

:root {
	--mg-ink: #17212b;
	--mg-text: #2b3540;
	--mg-muted: #5c6773;
	--mg-navy: #1d3550;
	--mg-navy-2: #26476b;
	--mg-accent: #e8641b;
	--mg-accent-dark: #b9480b;
	--mg-accent-soft: #fdf0e7;
	--mg-paper: #f6f4ef;
	--mg-paper-2: #efebe3;
	--mg-line: #e3ded3;
	--mg-white: #fff;
	--mg-green: #2c7a4b;
	--mg-red: #b23b26;
	--mg-radius: 14px;
	--mg-radius-sm: 9px;
	--mg-shadow: 0 1px 2px rgba(23, 33, 43, .06), 0 6px 22px rgba(23, 33, 43, .07);
	--mg-shadow-lg: 0 2px 6px rgba(23, 33, 43, .08), 0 18px 44px rgba(23, 33, 43, .13);
	--mg-head: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
	--mg-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--mg-wrap: 1200px;
}

/* Grundtypografie ------------------------------------------------------------------------------------- */
body, button, input, select, textarea, .ast-button, .ast-custom-button { font-family: var(--mg-body) !important; }
body { color: var(--mg-text); background: var(--mg-paper); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .entry-content :where(h1, h2, h3, h4), .site-title, .mg-card__title, .mg-cat__name {
	font-family: var(--mg-head) !important; color: var(--mg-ink); letter-spacing: .1px;
}
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--mg-ink) !important; }
h1, .entry-title { font-weight: 700 !important; line-height: 1.08 !important; }
.entry-content h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-weight: 700; line-height: 1.15; margin: 2.4em 0 .6em; padding-top: .2em; position: relative; }
.entry-content h2::before { content: ''; display: block; width: 46px; height: 4px; border-radius: 2px; background: var(--mg-accent); margin-bottom: .45em; }
.entry-content h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); font-weight: 700; line-height: 1.2; margin: 1.8em 0 .5em; }
.entry-content h4 { font-size: 1.2rem; font-weight: 700; margin: 1.5em 0 .4em; }
.entry-content p, .entry-content li { color: var(--mg-text); }
.entry-content a:not(.mg-btn):not(.mg-card__link):not(.mg-cat), .mg-breadcrumb a { color: var(--mg-accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:not(.mg-btn):not(.mg-card__link):not(.mg-cat):hover { color: var(--mg-navy); }
.entry-content ul, .entry-content ol { margin-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--mg-accent); font-weight: 700; }
.entry-content strong { color: var(--mg-ink); }
::selection { background: var(--mg-accent); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Header ---------------------------------------------------------------------------------------------- */
.ast-primary-header-bar, .main-header-bar { background: rgba(255, 255, 255, .97) !important; border-bottom: 1px solid var(--mg-line) !important; box-shadow: 0 1px 0 rgba(23, 33, 43, .02); }
.ast-primary-header-bar { -webkit-backdrop-filter: saturate(180%) blur(8px); backdrop-filter: saturate(180%) blur(8px); }
.site-header .ast-builder-grid-row { min-height: 76px; }
.mg-brand { margin: 0 !important; line-height: 1 !important; }
.mg-brand a { display: flex; align-items: center; gap: 11px; text-decoration: none !important; color: var(--mg-ink) !important; }
.mg-brand .mg-logo { width: 42px; height: 42px; flex: none; }
.mg-brand__text { display: flex; flex-direction: column; font-family: var(--mg-head); font-size: 27px; font-weight: 700; letter-spacing: .2px; line-height: .95; }
.mg-brand__text { white-space: nowrap; }
.mg-brand__text b { color: var(--mg-accent); font-weight: 700; display: contents; }
.mg-brand__text small { font-family: var(--mg-body); font-size: 11.5px; font-weight: 600; color: var(--mg-muted); letter-spacing: .6px; text-transform: uppercase; margin-top: 5px; }
.main-header-menu .menu-link, .ast-builder-menu-1 .menu-item > .menu-link { font-weight: 600 !important; font-size: 15.5px !important; color: var(--mg-ink) !important; }
@media (min-width: 922px) {
	.main-header-menu > .menu-item > .menu-link { position: relative; padding: 0 .7em !important; white-space: nowrap; }
	.main-header-menu { flex-wrap: nowrap !important; }
}
.ast-header-break-point .main-header-menu > .menu-item > .menu-link::after, #ast-mobile-header .menu-link::after { display: none; }
.main-header-menu > .menu-item > .menu-link::after { content: ''; position: absolute; left: .7em; right: .7em; bottom: 18px; height: 3px; border-radius: 2px; background: var(--mg-accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-header-menu > .menu-item:hover > .menu-link::after, .main-header-menu > .current-menu-item > .menu-link::after, .main-header-menu > .current-post-ancestor > .menu-link::after, .main-header-menu > .current-menu-parent > .menu-link::after { transform: scaleX(1); }
.main-header-menu .current-menu-item > .menu-link, .main-header-menu .menu-item:hover > .menu-link { color: var(--mg-accent-dark) !important; }
.ast-mobile-popup-drawer .ast-mobile-popup-inner, .ast-header-break-point .main-header-bar-navigation, #ast-mobile-header .ast-mobile-header-content { background: #fff !important; }
.ast-header-break-point .main-header-menu .menu-link, #ast-mobile-header .menu-link { border-bottom: 1px solid var(--mg-line) !important; padding: 14px 20px !important; font-size: 17px !important; }
.ast-mobile-menu-trigger-minimal, .menu-toggle { color: var(--mg-ink) !important; }
.ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg { fill: var(--mg-ink) !important; }

/* Layout / Inhaltsbereich -------------------------------------------------------------------------- */
.site-content > .ast-container { max-width: calc(var(--mg-wrap) + 40px); }
.single-post .site-content > .ast-container, .page:not(.home) .site-content > .ast-container { max-width: 900px; }
.single .entry-header, .page .entry-header { margin-bottom: 1.2em; }
.single .entry-title, .page .entry-title { font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem) !important; color: var(--mg-ink); }
.ast-separate-container .ast-article-single, .ast-separate-container .ast-article-post { background: transparent !important; padding: 0 !important; }
.ast-plain-container .site-content > .ast-container, .ast-separate-container .site-content > .ast-container { padding-left: 20px; padding-right: 20px; }
#primary { margin: 1.5em 0 4em !important; }
.entry-meta, .entry-meta * { color: var(--mg-muted) !important; font-size: 14px !important; }
.single .post-thumb-img-content, .single .ast-single-post-featured-section { margin-bottom: 1.6em; }
.single .post-thumb-img-content img, .single .ast-single-post-featured-section img { border-radius: var(--mg-radius); box-shadow: var(--mg-shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mg-credit { display: block; margin-top: .55em; font-size: 12.5px; color: var(--mg-muted); line-height: 1.45; }
.mg-credit a, .wp-element-caption a { color: var(--mg-muted) !important; }
.entry-content .wp-block-image { margin: 2em 0; }
.entry-content .wp-block-image img { border-radius: var(--mg-radius); box-shadow: var(--mg-shadow); }
.entry-content .wp-element-caption, .entry-content figcaption { font-size: 12.5px; color: var(--mg-muted); text-align: left; margin-top: .6em; line-height: 1.45; }

/* Breadcrumb */
.mg-breadcrumb { font-size: 14px; color: var(--mg-muted); margin: 0 0 1.2em; line-height: 1.5; }
.mg-breadcrumb a { color: var(--mg-muted) !important; text-decoration: none !important; }
.mg-breadcrumb a:hover { color: var(--mg-accent-dark) !important; }
.mg-breadcrumb .breadcrumb_last { color: var(--mg-ink); font-weight: 600; }

/* Tabellen */
.entry-content .wp-block-table { margin: 1.8em 0; overflow-x: auto; }
.entry-content table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15.5px; background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius-sm); overflow: hidden; }
.entry-content th, .entry-content td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--mg-line); text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--mg-navy); color: #fff; font-weight: 600; font-size: 14.5px; }
.entry-content tbody tr:nth-child(even) td, .entry-content tbody tr:nth-child(even) th { background: #faf8f4; }
.entry-content tbody tr:last-child td, .entry-content tbody tr:last-child th { border-bottom: 0; }

/* Buttons ---------------------------------------------------------------------------------------------- */
.mg-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .78em 1.35em; border-radius: 999px; background: var(--mg-accent); color: #fff !important; font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none !important; border: 2px solid var(--mg-accent); transition: background .15s ease, transform .15s ease, box-shadow .15s ease; box-shadow: 0 6px 16px rgba(232, 100, 27, .25); white-space: nowrap; }
.mg-btn:hover, .mg-btn:focus-visible { background: var(--mg-accent-dark); border-color: var(--mg-accent-dark); color: #fff !important; transform: translateY(-1px); }
.mg-btn .mg-icon { width: 20px; height: 20px; }
.mg-btn--small { padding: .5em 1em; font-size: 14.5px; box-shadow: none; }
.mg-btn--light { background: #fff; color: var(--mg-ink) !important; border-color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.mg-btn--light:hover { background: var(--mg-accent); border-color: var(--mg-accent); color: #fff !important; }
.mg-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .75); box-shadow: none; }
.mg-btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.mg-star { font-weight: 700; margin-left: 1px; }
.mg-aff { font-weight: 600; }
:focus-visible { outline: 3px solid var(--mg-accent); outline-offset: 2px; }
.mg-textlink { display: inline-flex; align-items: center; gap: .35em; font-weight: 650; color: var(--mg-accent-dark) !important; text-decoration: none !important; }
.mg-textlink .mg-icon { width: 18px; height: 18px; transition: transform .15s; }
.mg-textlink:hover .mg-icon { transform: translateX(3px); }

/* Werbehinweis + Inhaltsverzeichnis ------------------------------------------------------------------ */
.mg-disclosure { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius-sm); padding: 10px 14px; font-size: 14px; line-height: 1.5; color: var(--mg-muted) !important; margin: 0 0 1.6em; }
.mg-disclosure .mg-icon { width: 20px; height: 20px; flex: none; color: var(--mg-accent); margin-top: 1px; }
.mg-disclosure strong { color: var(--mg-ink); }
.mg-toc { background: #fff; border: 1px solid var(--mg-line); border-left: 4px solid var(--mg-navy); border-radius: var(--mg-radius-sm); margin: 2em 0; box-shadow: var(--mg-shadow); }
.mg-toc summary { cursor: pointer; padding: 14px 18px; font-family: var(--mg-head); font-size: 1.3rem; font-weight: 700; color: var(--mg-ink); display: flex; align-items: center; gap: 10px; list-style: none; }
.mg-toc summary::-webkit-details-marker { display: none; }
.mg-toc summary::after { content: ''; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--mg-muted); border-bottom: 2px solid var(--mg-muted); transform: rotate(45deg); transition: transform .2s; }
.mg-toc details[open] summary::after { transform: rotate(-135deg); }
.mg-toc summary .mg-icon { width: 22px; height: 22px; color: var(--mg-navy); }
.entry-content .mg-toc ol { margin: 0 18px 16px 2.6em; columns: 2 260px; column-gap: 2em; }
.mg-toc li { font-size: 15.5px; break-inside: avoid; margin-bottom: .4em; }
.entry-content .mg-toc a { text-decoration: none !important; color: var(--mg-text) !important; }
.entry-content .mg-toc a:hover { color: var(--mg-accent-dark) !important; }

/* Hinweisboxen ------------------------------------------------------------------------------------- */
.mg-note { position: relative; border-radius: var(--mg-radius-sm); padding: 18px 20px 16px 58px; margin: 1.8em 0; background: #fff; border: 1px solid var(--mg-line); box-shadow: var(--mg-shadow); }
.mg-note::before { content: ''; position: absolute; left: 18px; top: 19px; width: 26px; height: 26px; border-radius: 50%; background: var(--mg-navy) center / 15px no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E"); }
.mg-note--warn { background: #fff8f1; border-color: #f2d3bb; }
.mg-note--warn::before { background-color: var(--mg-accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v7M12 17h.01'/%3E%3C/svg%3E"); }
.mg-note--key { background: var(--mg-navy); border-color: var(--mg-navy); }
.mg-note--key::before { background-color: var(--mg-accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.entry-content .mg-note--key p, .entry-content .mg-note--key li, .entry-content .mg-note--key strong, .mg-note--key .mg-note__title { color: #fff !important; }
.entry-content .mg-note--key a { color: #ffd2b5 !important; }
.mg-note__title { display: block; font-family: var(--mg-head); font-size: 1.25rem; font-weight: 700; color: var(--mg-ink); margin-bottom: .3em; line-height: 1.2; }
.mg-note p { margin-bottom: .6em; }
.mg-note p:last-child, .mg-note ul:last-child { margin-bottom: 0; }
.entry-content .mg-note ul { margin: .2em 0 .6em 1.2em; }

/* FAQ ------------------------------------------------------------------------------------------------- */
.mg-faq { margin: 1.5em 0 2em; display: grid; gap: 10px; }
.mg-faq details { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius-sm); transition: box-shadow .2s; }
.mg-faq details[open] { box-shadow: var(--mg-shadow); }
.mg-faq summary { cursor: pointer; list-style: none; padding: 15px 52px 15px 18px; font-weight: 650; color: var(--mg-ink); position: relative; line-height: 1.45; }
.mg-faq summary::-webkit-details-marker { display: none; }
.mg-faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--mg-accent-soft); color: var(--mg-accent-dark); font-size: 20px; line-height: 25px; text-align: center; font-weight: 600; }
.mg-faq details[open] summary::after { content: '–'; }
.mg-faq__answer { padding: 0 18px 14px; }
.mg-faq__answer p { margin-bottom: .7em; }

/* Produktbox ------------------------------------------------------------------------------------- */
.mg-product { display: grid; grid-template-columns: 120px 1fr; gap: 22px; background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 24px; margin: 1.6em 0 1.2em; box-shadow: var(--mg-shadow); scroll-margin-top: 110px; }
.mg-product__icon { position: relative; align-self: start; aspect-ratio: 1; border-radius: 12px; background: linear-gradient(145deg, var(--mg-navy), var(--mg-navy-2)); display: grid; place-items: center; color: #fff; }
.mg-product__icon .mg-icon { width: 54px; height: 54px; stroke-width: 1.4; }
.mg-product__rank { position: absolute; top: -10px; left: -10px; width: 34px; height: 34px; border-radius: 50%; background: var(--mg-accent); color: #fff; font-family: var(--mg-head); font-weight: 700; font-size: 20px; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(232, 100, 27, .35); border: 3px solid #fff; }
.mg-product__badge { display: inline-block; background: var(--mg-accent-soft); color: var(--mg-accent-dark); font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 6px; }
.entry-content .mg-product__title { margin: 0 0 .35em !important; font-size: 1.55rem; }
.mg-product__text { margin-bottom: .9em !important; }
.mg-product__pc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; margin-bottom: 1em; }
.entry-content .mg-pros, .entry-content .mg-cons { list-style: none; margin: 0 !important; padding: 0; }
.mg-pros li, .mg-cons li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.45; margin-bottom: .45em; }
.mg-pros .mg-icon, .mg-cons .mg-icon { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke-width: 2.4; }
.mg-pros .mg-icon { color: var(--mg-green); }
.mg-cons .mg-icon { color: var(--mg-red); }
.mg-product__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap; border-top: 1px dashed var(--mg-line); padding-top: 14px; }
.mg-product__for { margin: 0 !important; font-size: 15px; color: var(--mg-muted) !important; flex: 1 1 280px; }
.mg-product__for strong { color: var(--mg-ink); }
.mg-missing { background: #fee; border: 1px dashed #c00; padding: 8px; }

/* Empfehlungen auf einen Blick */
.mg-picks { background: var(--mg-navy); border-radius: var(--mg-radius); padding: 20px; margin: 1.8em 0 2.2em; box-shadow: var(--mg-shadow-lg); }
.mg-picks__title { display: flex; align-items: center; gap: 8px; color: #fff !important; font-family: var(--mg-head); font-size: 1.35rem; font-weight: 700; margin: 0 0 14px !important; }
.mg-picks__title .mg-icon { color: var(--mg-accent); fill: var(--mg-accent); width: 22px; height: 22px; }
.mg-picks__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.mg-pick { background: #fff; border-radius: var(--mg-radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mg-pick__label { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--mg-accent-dark); }
.mg-pick__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--mg-paper); display: grid; place-items: center; color: var(--mg-navy); }
.mg-pick__icon .mg-icon { width: 26px; height: 26px; }
.entry-content .mg-pick__name { font-weight: 700; color: var(--mg-ink) !important; text-decoration: none !important; line-height: 1.3; flex: 1; }
.entry-content .mg-pick__name:hover { color: var(--mg-accent-dark) !important; }

/* Vergleichstabelle */
.mg-compare { overflow-x: auto; margin: 1.8em 0; border-radius: var(--mg-radius-sm); box-shadow: var(--mg-shadow); }
.entry-content .mg-compare table { margin: 0; min-width: 640px; font-size: 14.5px; }
.mg-compare caption { caption-side: top; text-align: left; font-weight: 700; color: var(--mg-ink); padding: 0 0 8px; font-size: 15px; }
.mg-compare tbody th { font-weight: 700; white-space: nowrap; }
.entry-content .mg-compare tbody th a { color: var(--mg-ink) !important; text-decoration: none !important; }
.mg-compare td:last-child { white-space: nowrap; }

/* Redaktionsbox + Weiterlesen ------------------------------------------------------------------------ */
.mg-author { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 20px 22px; margin: 3em 0 1em; }
.mg-author__icon { width: 44px !important; height: 44px !important; flex: none; padding: 9px; border-radius: 50%; background: var(--mg-accent-soft); color: var(--mg-accent-dark); }
.mg-author__title { font-family: var(--mg-head); font-weight: 700; font-size: 1.25rem; color: var(--mg-ink) !important; margin-bottom: .2em !important; }
.mg-author p { font-size: 15px; margin-bottom: 0; }
.mg-related { margin-top: 3em; }
.entry-content .mg-related__title { font-size: 1.8rem; margin-top: 0; }

/* Karten ------------------------------------------------------------------------------------------- */
.mg-cards { display: grid; gap: 22px; }
.mg-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mg-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .mg-cards--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .mg-cards--3, .mg-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mg-cards--3, .mg-cards--4 { grid-template-columns: 1fr; } }
.mg-card { background: #fff; border-radius: var(--mg-radius); overflow: hidden; border: 1px solid var(--mg-line); box-shadow: var(--mg-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.mg-card:hover { transform: translateY(-3px); box-shadow: var(--mg-shadow-lg); }
.mg-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none !important; color: inherit !important; }
.mg-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mg-paper-2); }
.mg-card__media--empty { display: grid; place-items: center; color: var(--mg-muted); }
.mg-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mg-card:hover .mg-card__img { transform: scale(1.04); }
.mg-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.mg-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--mg-accent-dark); }
.mg-card__title { font-size: 1.35rem; font-weight: 700; line-height: 1.15; color: var(--mg-ink); }
.mg-card__excerpt { font-size: 14.5px; line-height: 1.55; color: var(--mg-muted); flex: 1; }
.mg-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14.5px; color: var(--mg-accent-dark); margin-top: 4px; }
.mg-card__more .mg-icon { width: 17px; height: 17px; transition: transform .15s; }
.mg-card:hover .mg-card__more .mg-icon { transform: translateX(3px); }

/* Startseite --------------------------------------------------------------------------------------- */
.home #primary { margin: 0 !important; }
.home .site-content > .ast-container { max-width: 100%; padding: 0 !important; }
.home .entry-content > * { margin-bottom: 0; }
.mg-home { overflow: hidden; }
.mg-hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.mg-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mg-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 25, 38, .9) 0%, rgba(14, 25, 38, .72) 42%, rgba(14, 25, 38, .15) 100%), linear-gradient(0deg, rgba(14, 25, 38, .55), transparent 45%); }
.mg-hero__inner { width: 100%; max-width: var(--mg-wrap); margin: 0 auto; padding: 90px 20px 70px; }
.mg-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px !important; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mg-accent) !important; margin-bottom: 12px !important; }
.mg-kicker::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: currentColor; }
.entry-content .mg-hero__title { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: 1; font-weight: 700; color: #fff !important; max-width: 760px; margin: 0 0 .35em; text-wrap: balance; }
.mg-hero__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: rgba(255, 255, 255, .9) !important; max-width: 620px; line-height: 1.6; margin-bottom: 1.6em !important; }
.mg-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 2em; }
.entry-content .mg-hero__trust { list-style: none; margin: 0 !important; padding: 0; display: flex; gap: 10px 22px; flex-wrap: wrap; }
.entry-content .mg-hero__trust li { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .88) !important; font-size: 15px; font-weight: 550; margin: 0; }
.mg-hero__trust .mg-icon { width: 20px; height: 20px; color: var(--mg-accent); stroke-width: 2.2; }
.mg-hero__credit { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: rgba(255, 255, 255, .6); max-width: 60%; text-align: right; line-height: 1.3; }
.mg-hero__credit a { color: rgba(255, 255, 255, .75) !important; }

.mg-section { max-width: calc(var(--mg-wrap) + 40px); margin: 0 auto; padding: 72px 20px 0; }
.mg-section:last-child { padding-bottom: 80px; }
.mg-section__head { max-width: 720px; margin-bottom: 28px; }
.mg-section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.entry-content .mg-section__head h2 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); margin: 0 0 .25em; }
.mg-section__head h2::before { display: none; }
.mg-section__head p { color: var(--mg-muted) !important; font-size: 1.08rem; margin: 0; }

.mg-finder { margin-top: -46px; padding-top: 0; position: relative; z-index: 2; }
.mg-finder .mg-section__head { background: #fff; display: inline-block; padding: 20px 26px 4px; border-radius: var(--mg-radius) var(--mg-radius) 0 0; margin: 0; max-width: none; }
.mg-finder .mg-section__head h2 { font-size: 1.9rem; }
.mg-finder__grid { background: #fff; border-radius: 0 var(--mg-radius) var(--mg-radius) var(--mg-radius); padding: 18px 26px 26px; box-shadow: var(--mg-shadow-lg); display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.mg-finder__item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--mg-radius-sm); border: 1px solid var(--mg-line); background: var(--mg-paper); text-decoration: none !important; color: var(--mg-ink) !important; transition: border-color .15s, background .15s, transform .15s; }
.mg-finder__item:hover { border-color: var(--mg-accent); background: #fff; transform: translateY(-2px); }
.mg-finder__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--mg-navy); color: #fff; display: grid; place-items: center; flex: none; }
.mg-finder__icon .mg-icon { width: 26px; height: 26px; }
.mg-finder__item strong { display: block; font-size: 16.5px; line-height: 1.3; }
.mg-finder__item small { display: block; color: var(--mg-muted); font-size: 14px; line-height: 1.4; }
.mg-finder__arrow { width: 20px; height: 20px; margin-left: auto; color: var(--mg-accent); flex: none; }

.mg-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .mg-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mg-cat { position: relative; display: flex; align-items: flex-end; min-height: 270px; border-radius: var(--mg-radius); overflow: hidden; text-decoration: none !important; color: #fff !important; background: var(--mg-navy); isolation: isolate; box-shadow: var(--mg-shadow); }
.mg-cat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.mg-cat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 22, 34, .92) 0%, rgba(12, 22, 34, .55) 48%, rgba(12, 22, 34, .08) 100%); }
.mg-cat:hover .mg-cat__img { transform: scale(1.05); }
.mg-cat__body { display: flex; flex-direction: column; gap: 4px; padding: 22px; }
.mg-cat__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--mg-accent); display: grid; place-items: center; margin-bottom: 8px; }
.mg-cat__icon .mg-icon { width: 24px; height: 24px; }
.mg-cat__name { font-size: 1.75rem; font-weight: 700; line-height: 1.05; color: #fff; }
.mg-cat__desc { font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.mg-cat__count { font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #ffc59f; margin-top: 4px; }

.mg-promise { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.mg-promise { padding-left: 20px; padding-right: 20px; }
.mg-promise__text { background: var(--mg-navy); color: #fff; border-radius: var(--mg-radius); padding: 40px; position: relative; overflow: hidden; }
.mg-promise__text::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 40px; border: 18px solid rgba(255, 255, 255, .05); transform: rotate(20deg); }
.entry-content .mg-promise__text h2 { color: #fff !important; font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); margin: 0 0 .5em; }
.mg-promise__text h2::before { display: none; }
.entry-content .mg-promise__text p { color: rgba(255, 255, 255, .86) !important; }
.mg-promise__text .mg-textlink { color: #ffc59f !important; }
.entry-content .mg-promise__list { list-style: none; margin: 0 !important; padding: 0; display: grid; gap: 14px; }
.entry-content .mg-promise__list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius-sm); padding: 16px 18px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--mg-muted); }
.mg-promise__list .mg-icon { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--mg-accent-soft); color: var(--mg-accent-dark); flex: none; }
.mg-promise__list strong { display: block; color: var(--mg-ink); font-size: 16.5px; margin-bottom: 2px; }
.mg-home-faq .mg-faq { max-width: 860px; }

/* Archiv / Kategorie ------------------------------------------------------------------------------ */
.mg-archive-head { position: relative; border-radius: var(--mg-radius); overflow: hidden; background: var(--mg-navy); color: #fff; margin-bottom: 34px; min-height: 280px; display: flex; align-items: flex-end; isolation: isolate; }
.mg-archive-head__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mg-archive-head::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 25, 38, .92) 0%, rgba(14, 25, 38, .7) 55%, rgba(14, 25, 38, .25) 100%); }
.mg-archive-head__text { padding: 34px; max-width: 760px; }
.mg-archive-head h1 { color: #fff !important; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); margin: 0 0 .2em; }
.mg-archive-head p:not(.mg-kicker) { color: rgba(255, 255, 255, .88); font-size: 1.05rem; margin: 0; }
.archive .ast-archive-description, .archive .ast-author-box { display: none; }
.archive #main, .search #main, .blog #main { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.archive #main > .ast-pagination, .archive #main > nav, .search #main > .ast-pagination, .search #main > nav, .archive #main > .mg-breadcrumb { grid-column: 1 / -1; }
.archive .ast-row, .search .ast-row { display: contents; }
.archive article.post, .search article.post, .blog article.post { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; float: none !important; }
.archive .ast-article-inner, .search .ast-article-inner, .blog .ast-article-inner { background: #fff !important; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); overflow: hidden; height: 100%; box-shadow: var(--mg-shadow); transition: transform .2s, box-shadow .2s; }
.archive .ast-article-inner:hover, .search .ast-article-inner:hover { transform: translateY(-3px); box-shadow: var(--mg-shadow-lg); }
.archive .post-thumb-img-content img, .search .post-thumb-img-content img, .blog .post-thumb-img-content img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0 !important; }
.archive .post-thumb, .search .post-thumb, .blog .post-thumb { margin: 0 !important; }
.archive .entry-header, .archive .entry-content, .archive .ast-blog-single-element:not(.post-thumb), .search .entry-header, .search .entry-content, .blog .entry-header, .blog .entry-content { padding-left: 20px !important; padding-right: 20px !important; }
.archive .entry-title, .search .entry-title, .blog .entry-title { font-size: 1.5rem !important; line-height: 1.15 !important; margin-top: 14px !important; }
.archive .entry-title a, .search .entry-title a { color: var(--mg-ink) !important; text-decoration: none !important; }
.archive .entry-title a:hover { color: var(--mg-accent-dark) !important; }
.archive .entry-content p, .search .entry-content p { font-size: 15px; color: var(--mg-muted); line-height: 1.6; }
.archive .read-more a, .search .read-more a { font-weight: 650; color: var(--mg-accent-dark) !important; }
.ast-pagination { margin-top: 2em; }
.ast-pagination .page-numbers { border-radius: 8px; }
.ast-pagination .page-numbers.current { background: var(--mg-accent) !important; color: #fff !important; }

/* Seiten-Bausteine ------------------------------------------------------------------------------- */
.mg-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 1.6em 0 2em; }
.entry-content .mg-contact__item { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius-sm); padding: 18px 20px; text-decoration: none !important; box-shadow: var(--mg-shadow); }
.mg-contact__label { font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--mg-accent-dark); }
.mg-contact__value { font-size: 1.15rem; font-weight: 650; color: var(--mg-ink); }
.mg-sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 1.5em; }
.mg-sitemap__group { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 18px 22px; }
.entry-content .mg-sitemap__group h2 { font-size: 1.5rem; margin: 0 0 .5em; }
.mg-sitemap__group h2::before { display: none; }
.entry-content .mg-sitemap__group h2 a { color: var(--mg-ink) !important; text-decoration: none !important; }
.entry-content .mg-sitemap ul { margin: 0 0 0 1.1em; }
.mg-sitemap li { font-size: 15.5px; }
.entry-content .mg-credits { list-style: none; margin: 1.5em 0 0 !important; padding: 0; display: grid; gap: 12px; }
.mg-credits li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius-sm); padding: 10px; font-size: 14px; line-height: 1.5; }
.mg-credits img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
.mg-credits strong { display: block; color: var(--mg-ink); }

/* Footer ----------------------------------------------------------------------------------------- */
.mg-footer { background: var(--mg-ink); color: rgba(255, 255, 255, .75); margin-top: 0; font-size: 15px; }
.mg-footer__inner { max-width: calc(var(--mg-wrap) + 40px); margin: 0 auto; padding: 60px 20px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.mg-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.mg-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mg-footer__logo { display: inline-flex !important; align-items: center; gap: 10px; font-family: var(--mg-head); font-size: 26px; font-weight: 700; color: #fff !important; margin-bottom: 12px; text-decoration: none !important; }
.mg-footer__logo b { color: var(--mg-accent); }
.mg-footer__brand p { line-height: 1.65; margin: 0; }
.mg-footer__head { font-family: var(--mg-head); font-size: 1.2rem; font-weight: 700; color: #fff; margin: 4px 0 12px; letter-spacing: .3px; }
.mg-footer ul { list-style: none; margin: 0; padding: 0; }
.mg-footer li { margin-bottom: 8px; }
.mg-footer__contact li { display: flex; align-items: center; gap: 9px; }
.mg-footer__contact .mg-icon { width: 18px; height: 18px; color: var(--mg-accent); flex: none; }
.mg-footer__note { font-size: 13px; line-height: 1.55; margin-top: 14px; color: rgba(255, 255, 255, .55); }
.mg-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.mg-footer__bar { max-width: none; padding: 18px 20px; display: flex; justify-content: center; gap: 10px 26px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .55); }
.mg-footer__bar nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.ast-scroll-to-top-right { background: var(--mg-accent) !important; border-radius: 50% !important; }

/* Cookie-Banner (Complianz) – Feinschliff passend zum Design ---------------------------------------- */
.cmplz-cookiebanner { font-family: var(--mg-body) !important; box-shadow: 0 18px 60px rgba(14, 25, 38, .28) !important; }
.cmplz-cookiebanner .cmplz-title { font-family: var(--mg-head) !important; font-size: 22px !important; font-weight: 700 !important; color: var(--mg-ink) !important; }
.cmplz-cookiebanner .cmplz-message { font-size: 14px !important; line-height: 1.55 !important; }
.cmplz-cookiebanner .cmplz-btn { font-weight: 650 !important; font-size: 14.5px !important; min-height: 44px; }
.cmplz-cookiebanner .cmplz-links .cmplz-link { font-size: 13px !important; }
.cmplz-cookiebanner .cmplz-logo:empty { display: none !important; }

/* Responsive ------------------------------------------------------------------------------------- */
@media (max-width: 921px) {
	.mg-footer__inner { grid-template-columns: 1fr 1fr; }
	.mg-promise { grid-template-columns: 1fr; gap: 20px; }
	.mg-brand__text { font-size: 24px; }
}
@media (max-width: 700px) {
	body { font-size: 16.5px; }
	.mg-product { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
	.mg-product__icon { width: 74px; }
	.mg-product__icon .mg-icon { width: 40px; height: 40px; }
	.mg-product__pc { grid-template-columns: 1fr; }
	.mg-product__foot .mg-btn { width: 100%; }
	.mg-hero { min-height: 0; }
	.mg-hero__inner { padding: 70px 18px 80px; }
	.mg-hero::after { background: linear-gradient(0deg, rgba(14, 25, 38, .94) 10%, rgba(14, 25, 38, .62) 100%); }
	.mg-hero__actions .mg-btn { width: 100%; }
	.mg-section { padding-top: 52px; }
	.mg-finder__grid, .mg-cats { grid-template-columns: 1fr; }
	.mg-finder .mg-section__head, .mg-finder__grid { padding-left: 16px; padding-right: 16px; }
	.mg-cat { min-height: 230px; }
	.mg-promise__text { padding: 28px 22px; }
	.mg-footer__inner { grid-template-columns: 1fr; gap: 26px; padding-top: 44px; }
	.mg-archive-head__text { padding: 24px 20px; }
	.mg-brand .mg-logo { width: 36px; height: 36px; }
	.mg-brand__text { font-size: 22px; }
	.mg-brand__text small { font-size: 10px; }
	.mg-author { flex-direction: column; }
	.mg-note { padding: 16px 16px 14px 52px; }
	.mg-note::before { left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

/* Complianz: schwebenden "Einwilligung verwalten"-Reiter ausblenden – Link "Cookie-Einstellungen" im Footer */
#cmplz-manage-consent .cmplz-manage-consent { display: none !important; }
.cmplz-cookiebanner .cmplz-close { border-radius: 50%; outline-offset: 0 !important; }
.cmplz-cookiebanner .cmplz-close:focus:not(:focus-visible), .cmplz-cookiebanner .cmplz-close:focus { outline: 2px solid var(--mg-line) !important; }
.mg-archive-head--paged { min-height: 0; }

.archive .post-content, .search .post-content { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.archive .ast-article-inner .post-thumb-img-content img { border-radius: 0 !important; }
.archive .read-more { padding-bottom: 20px; }
