/*
 * MeinErfolgsShop 2026 design — header, footer, mobile drawer, homepage.
 * Ported from the external reference (shop-design-v2). Every rule is scoped
 * under .mes-header / .mes-footer-wrap / .mes-home so nothing outside these
 * three roots (checkout, cart, PDP body, other plugin UI) is touched.
 */

:root{
	--mes-blue:#0868bd;
	--mes-blue-dark:#07539a;
	--mes-ink:#14283d;
	--mes-muted:#586777;
	--mes-line:#dce4ec;
	--mes-pale:#edf5fb;
	--mes-radius:10px;
	--mes-max:1240px;
}

/* @font-face for "MES Roboto" (400/700/900) is injected inline by
   mes_enqueue_design_assets() in inc/custom-header-footer.php, because the
   woff2 files live under wp-content/uploads/omgf/ and need an absolute URL
   built with wp_upload_dir() rather than a path relative to this file. */

.mes-header,.mes-footer-wrap,.mes-home{font-family:"MES Roboto",Arial,sans-serif;color:var(--mes-ink)}
.mes-header *,.mes-footer-wrap *,.mes-home *{box-sizing:border-box}
/* Astra sets font-family directly on h1–h6 ("Barlow Semi Condensed" by
   default, via its Typography Customizer settings) — a rule that targets
   headings directly always wins over an inherited value from an ancestor,
   regardless of specificity. Every mes-* heading below was only getting
   "MES Roboto" through inheritance from its container, so it silently
   rendered in Astra's heading font instead — sitewide, not just one page.
   Re-declaring font-family directly on every heading selector, once, here,
   fixes it everywhere rather than patching each component file. */
.mes-header h1,.mes-header h2,.mes-header h3,
.mes-footer-wrap h1,.mes-footer-wrap h2,.mes-footer-wrap h3,
.mes-home h1,.mes-home h2,.mes-home h3,
.mes-pdp h1,.mes-pdp h2,.mes-pdp h3,
.mes-category h1,.mes-category h2,.mes-category h3,
.mes-checkout-skin h1,.mes-checkout-skin h2,.mes-checkout-skin h3,
.mes-magazine-head h1,.mes-magazine-head h2,
.mes-featured-post h1,.mes-featured-post h2,
.mes-post-grid h1,.mes-post-grid h2,
.mes-article-head h1,.mes-article-head h2,
.mes-article-body h1,.mes-article-body h2,.mes-article-body h3{
	font-family:"MES Roboto",Arial,sans-serif;
}
.mes-header img,.mes-footer-wrap img,.mes-home img{max-width:100%;height:auto}
.mes-header button,.mes-footer-wrap button,.mes-home button{cursor:pointer;font-family:inherit}
.mes-header a,.mes-footer-wrap a,.mes-home a{text-decoration:none;color:inherit}
.mes-header button:focus-visible,.mes-header a:focus-visible,.mes-header input:focus-visible,
.mes-footer-wrap button:focus-visible,.mes-footer-wrap a:focus-visible,
.mes-home button:focus-visible,.mes-home a:focus-visible{outline:3px solid #efb840;outline-offset:3px}

.mes-wrap{width:min(var(--mes-max),calc(100% - 80px));margin:0 auto}
.mes-skip{position:absolute;left:-999px;top:auto}
.mes-skip:focus{left:20px;top:10px;background:#fff;z-index:99;padding:8px 14px;border-radius:6px}

.mes-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;display:inline-block}

/* ---------- Header ---------- */
.mes-header{background:#fff;border-bottom:1px solid var(--mes-line)}
.mes-topline{background:#f4f7fa;border-bottom:1px solid #e8edf2;font-size:11px;letter-spacing:.15px;color:#526577}
.mes-topline .mes-wrap{display:flex;justify-content:space-between;padding:7px 0}
.mes-topline a{font-weight:700}
.mes-header-main{display:grid;grid-template-columns:270px minmax(200px,1fr) auto;align-items:center;gap:45px;padding:27px 0}
.mes-brand{width:270px;flex-shrink:0;display:block}
.mes-brand img{display:block;width:100%}
.mes-search{display:flex;align-items:center;min-width:0}
.mes-header-actions{display:flex;gap:25px;align-items:center}
.mes-header-action{display:flex;align-items:center;flex-direction:column;gap:6px;border:0;background:none;padding:3px;color:var(--mes-ink);font-size:11px}
.mes-header-action .mes-icon{width:23px;height:23px}
.mes-header-action:hover{color:var(--mes-blue)}
.mes-header-action.mes-cart-count{position:relative}
.mes-cart-badge{position:absolute;top:-4px;right:-10px;background:var(--mes-blue);color:#fff;border-radius:50%;min-width:16px;height:16px;font-size:10px;line-height:16px;text-align:center;padding:0 3px}
.mes-menu-btn{display:none}
.mes-menu-lines{font-size:22px;line-height:1}
.mes-nav-row{border-top:1px solid #edf0f3;display:flex;align-items:center;justify-content:space-between;gap:20px}
.mes-nav{display:flex;margin:0;gap:34px;font-size:14px;font-weight:700;list-style:none;padding:0}
.mes-nav li{margin:0}
.mes-nav a{display:block;padding:17px 0 16px;position:relative}
.mes-nav a:hover:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--mes-blue)}
/* Astra injects a dropdown-arrow <span> into every themed nav-menu item
   (for its own submenu UI); our categories have no submenus, so hide it. */
.mes-nav .ast-icon,.mes-drawer-links .ast-icon,.mes-footer-column .ast-icon{display:none}
.mes-nav-pick{font-size:12px;color:var(--mes-muted)}
.mes-nav-pick span{color:var(--mes-blue);margin-left:10px}
.mes-nav-feature{color:var(--mes-blue)!important;display:inline-flex;align-items:center;gap:6px}

/* FiboSearch (dgwt-wcas-*) real markup — the earlier .mes-search
   input[type=search]/.mes-search-submit rules above never matched anything
   (no element in the real DOM has those classes; FiboSearch's own "pirx"
   style skin bakes its grey, fully-rounded pill look directly onto
   input.dgwt-wcas-search-input: background #eee, border-radius 30px,
   height 54px). Target the plugin's actual classes directly instead, with
   the .mes-fibosearch ancestor class (already present on the wrapper) for
   enough specificity to beat that skin; !important only where the skin's
   own selector chain (multiple dgwt-wcas-* classes) would otherwise win. */
.mes-fibosearch.dgwt-wcas-search-wrapp{width:100%}
.mes-fibosearch .dgwt-wcas-search-input{
	background:#f5f7fa!important;
	border:1px solid #e2e8ee!important;
	border-radius:7px!important;
	height:40px!important;
	color:var(--mes-ink)!important;
	font-size:15px!important;
}
.mes-fibosearch .dgwt-wcas-search-input::placeholder{color:var(--mes-muted);opacity:1}
.mes-fibosearch .dgwt-wcas-icon-search,.mes-fibosearch .dgwt-wcas-icon-magnifier{color:var(--mes-muted)!important}
/* FiboSearchs Pirx-Skin setzt den Submit-Button als passives Lupen-Icon
   LINKS ins Feld (left:23px; top:21px; transparent; pointer-events:none) —
   blau eingefärbt stand er damit mitten auf dem Platzhaltertext. Für das
   Vorlagen-Layout (blauer Knopf rechts, wie .search-submit im Mockup)
   explizit nach rechts verankern und klickbar machen. */
.mes-fibosearch .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit,
.mes-fibosearch .dgwt-wcas-search-submit{
	left:auto!important;
	right:3px!important;
	top:50%!important;
	transform:translateY(-50%);
	width:34px!important;
	min-width:34px!important;
	height:34px!important;
	min-height:34px!important;
	padding:0!important;
	border-radius:5px!important;
	background:var(--mes-blue)!important;
	color:#fff!important;
	pointer-events:auto!important;
}
.mes-fibosearch .dgwt-wcas-search-input{padding-right:46px!important}
.mes-fibosearch .dgwt-wcas-search-submit svg,.mes-fibosearch .dgwt-wcas-search-submit path{fill:#fff!important}
.mes-fibosearch .dgwt-wcas-search-submit:hover{background:var(--mes-blue-dark)!important}
.mes-fibosearch.dgwt-wcas-search-wrapp:focus-within .dgwt-wcas-search-input{border-color:var(--mes-blue)!important;outline:none}

/* ---------- Mobile drawer ---------- */
.mes-drawer{border:0;padding:0;margin:0}
.mes-drawer:not([open]){display:none}
.mes-drawer[open]{display:flex;flex-direction:column;position:fixed;inset:0 0 0 auto;width:min(92vw,460px);height:100vh;height:100dvh;background:#fff;color:var(--mes-ink);box-shadow:-15px 0 65px rgba(16,37,57,.19);overflow:hidden;transform:translateX(101%);transition:transform .28s cubic-bezier(.22,.8,.25,1);z-index:100000}
.mes-drawer[open].mes-is-visible{transform:translateX(0)}
.mes-drawer::backdrop{background:rgba(16,37,57,0);transition:background .28s}
.mes-drawer.mes-is-visible::backdrop{background:rgba(16,37,57,.5)}
.mes-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:26px 25px;border-bottom:1px solid #e6edf3;flex-shrink:0}
.mes-drawer-head img{width:180px;max-width:calc(100% - 65px);height:auto}
/* !important needed: WooCommerce/Astra's global button CSS (padding:21px 70px,
   width:140px) otherwise overrides this scoped rule and stretches the circle
   into an oval. */
.mes-drawer-close{display:grid!important;place-items:center;width:44px!important;height:44px!important;min-width:44px;padding:0!important;margin:0;border-radius:50%;border:0;background:var(--mes-blue);color:#fff;font-size:28px;line-height:1;flex-shrink:0;box-shadow:0 3px 9px rgba(8,104,189,.22)}
.mes-drawer-close:hover{background:var(--mes-blue-dark)}
.mes-drawer-scroll{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:28px 28px max(28px,env(safe-area-inset-bottom));flex:1;min-height:0}
.mes-drawer-eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:700;color:#627688;text-transform:uppercase;margin:0 0 14px}
.mes-drawer h2{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:#627688;font-weight:700;margin:0 0 13px}
.mes-drawer-links,.mes-drawer-service{display:flex;flex-direction:column;gap:0;padding:24px 0 20px;border-bottom:1px solid var(--mes-line);list-style:none;margin:0}
.mes-drawer-links li,.mes-drawer-service li{margin:0}
.mes-drawer-links a{display:flex;justify-content:space-between;align-items:center;min-height:50px;padding:10px 0;font-weight:700;font-size:18px}
.mes-drawer-links a span{font-size:17px;font-weight:400;color:#91a7ba}
.mes-drawer a:hover{color:var(--mes-blue)}
.mes-drawer-service a{display:flex;align-items:center;gap:13px;padding:12px 0;min-height:44px;font-size:15px}
.mes-drawer-service .mes-icon{width:20px;height:20px;color:var(--mes-blue)}
.mes-drawer-bottom{display:flex;flex-wrap:wrap;gap:10px 18px;padding-top:22px;font-size:11px;color:#627688;list-style:none;margin:0}
.mes-drawer-bottom a{padding:4px 0}
@media(prefers-reduced-motion:reduce){.mes-drawer[open],.mes-drawer::backdrop{transition:none!important}}

@media(max-width:1100px){
	.mes-wrap{width:calc(100% - 48px)}
	.mes-header-main{grid-template-columns:235px minmax(180px,1fr) auto;gap:25px}
	.mes-brand{width:235px}
	.mes-header-actions{gap:16px}
	.mes-nav{gap:26px}
}
@media(max-width:800px){
	.mes-header-main{grid-template-columns:1fr auto;gap:18px;padding:20px 0}
	.mes-brand{width:220px}
	.mes-header-main .mes-search{grid-column:1/-1;grid-row:2;width:100%}
	.mes-menu-btn{display:flex}
	.mes-header-action.mes-account-action{display:none}
	.mes-nav-row{display:none}
}
@media(max-width:560px){
	.mes-wrap{width:calc(100% - 36px)}
	.mes-brand{width:195px}
	.mes-header-actions{gap:14px}
	.mes-drawer-head{padding:20px}
	.mes-drawer-scroll{padding:24px 22px}
	.mes-drawer-links a{font-size:17px}
}

/* ---------- Footer ---------- */
.mes-footer-wrap{background:#102539;padding:64px 0 25px}
.mes-footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:58px}
.mes-pay-logos{display:inline-flex;align-items:center;gap:7px;margin-left:4px}
.mes-pay-logos img{display:block;height:26px;width:auto;border-radius:4px;background:#fff;padding:2px}
/* light SVG logo sits directly on the dark footer — no white box */
.mes-footer-brand .mes-footer-logo{display:block;width:245px;padding:0;background:none;border-radius:0}
.mes-footer-brand .mes-footer-logo img{display:block;width:100%;height:auto}
.mes-footer-brand h2{font-size:22px;letter-spacing:-.4px;color:#fff;margin:22px 0 12px;font-weight:700}
.mes-footer-brand p{font-size:14px;color:#adbdcd;line-height:1.7;max-width:270px;margin:0 0 22px}
/* .mes-footer-wrap selector needed: ".mes-footer-wrap a{color:inherit}"
   (0,1,1) beats a lone class (0,1,0) — the link inherited the wrap's ink
   color and was invisible on the dark footer. */
.mes-footer-wrap .mes-contact-link{font-size:13px;color:#fff;border-bottom:1px solid #597083;padding-bottom:5px;display:inline-flex;gap:18px}
.mes-footer-wrap .mes-contact-link:hover{color:#fff;border-bottom-color:#8aa5bb}
.mes-footer-column{display:flex;flex-direction:column;gap:0;list-style:none;margin:0;padding:0}
.mes-footer-column h3{font-size:12px;color:#fff;font-weight:700;letter-spacing:1.3px;text-transform:uppercase;margin:4px 0 20px}
.mes-footer-column li{margin:0}
.mes-footer-column a{font-size:13px;color:#b9c7d5;padding:7px 0;line-height:1.45;display:inline-block}
.mes-footer-column a:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}
.mes-footer-assurance{margin-top:46px;padding:22px 0;border-top:1px solid rgba(255,255,255,.12);border-bottom:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px;color:#bdcbd8;flex-wrap:wrap}
.mes-footer-assurance>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mes-footer-assurance .mes-icon{width:22px;height:22px;color:#81b7e7}
.mes-payment-label{border:1px solid #526678;border-radius:4px;padding:5px 10px;font-size:12px;font-weight:700;color:#f0f6fc}
.mes-to-top{white-space:nowrap;color:#fff;font-size:12px;cursor:pointer;border:0;background:none}
.mes-footer-bottom{border:0;margin-top:22px;padding-top:0;font-size:11px;color:#91a7ba;display:flex;justify-content:center;text-align:center;gap:10px;flex-wrap:wrap}

@media(max-width:1100px){.mes-footer-grid{gap:30px;grid-template-columns:1.3fr 1fr 1fr 1fr}.mes-footer-brand .mes-footer-logo{width:210px}}
@media(max-width:800px){
	.mes-footer-grid{grid-template-columns:repeat(3,1fr);gap:30px}
	.mes-footer-brand{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:40px}
	.mes-footer-brand h2{grid-column:2;grid-row:1;margin:0;align-self:center}
	.mes-footer-brand p{grid-column:2;grid-row:2;max-width:none;margin:14px 0}
	.mes-footer-brand .mes-contact-link{grid-column:1;grid-row:2;align-self:start;margin-top:16px}
}
@media(max-width:560px){
	.mes-footer-wrap{padding:42px 0 24px}
	.mes-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 20px}
	.mes-footer-brand{display:block;grid-column:1/-1}
	.mes-footer-brand .mes-footer-logo{width:220px}
	.mes-footer-assurance{margin-top:30px;flex-direction:column;align-items:flex-start}
	.mes-footer-bottom{flex-direction:column}
}

/* ---------- Homepage ---------- */
.mes-home h1,.mes-home h2,.mes-home h3{font-weight:700;line-height:1.2;margin:0}
.mes-eyebrow{text-transform:uppercase;letter-spacing:1.6px;color:var(--mes-blue);font-size:11px;font-weight:700;margin:0 0 16px}
.mes-hero{background:linear-gradient(110deg,#f2f7fb 0%,#eaf3fa 56%,#e1edf5 100%);overflow:hidden}
.mes-hero-grid{display:grid;grid-template-columns:1.05fr 1fr;min-height:560px;align-items:center;gap:25px}
.mes-hero h1{font-size:clamp(34px,4vw,58px);line-height:1.1;letter-spacing:-1.8px;font-weight:900}
.mes-hero .mes-blue-text{color:var(--mes-blue)}
.mes-hero .mes-intro{font-size:18px;line-height:1.65;max-width:450px;color:var(--mes-muted);margin:22px 0 28px}
.mes-buttons{display:flex;gap:12px;flex-wrap:wrap}
/* .mes-home/.mes-header/.mes-footer-wrap a{color:inherit} (one class + one
   element = specificity 0,0,1,1) beats a lone .mes-btn class (0,0,1,0)
   whenever the button is an <a> inside one of those wrappers — the primary
   CTA rendered with the ink color instead of white even at rest, not just
   on hover. Match that selector's specificity (element + class) instead of
   reaching for !important, so the real link-button color actually wins. */
a.mes-btn,button.mes-btn{color:#fff}
.mes-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:15px 21px;border:1px solid var(--mes-blue);border-radius:5px;background:var(--mes-blue);font-size:14px;font-weight:700;transition:background .2s,transform .2s}
.mes-btn:hover{background:var(--mes-blue-dark);transform:translateY(-2px)}
a.mes-btn.mes-secondary,button.mes-btn.mes-secondary{background:#fff;color:var(--mes-ink)}
.mes-btn.mes-secondary{border-color:#cfdae5}
.mes-btn.mes-secondary:hover{background:#f3f7fb}
.mes-hero-art{position:relative;height:480px;display:flex;align-items:center;isolation:isolate}
.mes-hero-art:before{content:'';position:absolute;width:400px;height:400px;border-radius:50%;background:#d3e6f4;right:-15px;top:20px;z-index:-1}
.mes-hero-book{object-fit:contain;mix-blend-mode:multiply;position:absolute}
.mes-hero-book.mes-primary{width:64%;left:-3%;top:90px;z-index:2;transform:rotate(-5deg)}
.mes-hero-book.mes-back{width:47%;right:-1%;top:40px;transform:rotate(9deg)}

.mes-section{padding:72px 0}
.mes-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px;flex-wrap:wrap}
.mes-section-heading p:not(.mes-eyebrow){color:var(--mes-muted);margin:12px 0 0}
.mes-text-link{color:var(--mes-blue);font-size:14px;font-weight:700;white-space:nowrap}
.mes-text-link:hover{text-decoration:underline}

.mes-benefits{border-bottom:1px solid var(--mes-line);background:#fff}
.mes-benefit-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:24px 0;gap:20px}
.mes-benefit{display:flex;gap:12px;align-items:center}
.mes-benefit .mes-icon{color:var(--mes-blue);width:28px;height:28px}
.mes-benefit strong{font-size:13px;display:block}
.mes-benefit small{font-size:12px;color:var(--mes-muted);display:block;margin-top:3px}

.mes-products{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;list-style:none;margin:0;padding:0}
.mes-product-card{border:1px solid var(--mes-line);border-radius:var(--mes-radius);overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
.mes-product-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(25,57,87,.1)}
.mes-product-image{height:270px;background:#f3f6f8;padding:24px;display:flex;align-items:center;justify-content:center}
.mes-product-image img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.mes-product-body{padding:20px;display:flex;flex-direction:column;flex:1}
.mes-format-label{font-size:10px;text-transform:uppercase;letter-spacing:1.1px;color:var(--mes-blue);font-weight:700;margin-bottom:10px}
.mes-product-card h3{font-size:16px;line-height:1.35;margin:0 0 6px;letter-spacing:-.2px;font-weight:700}
.mes-product-card h3 a{color:inherit}
.mes-product-card .mes-author{font-size:13px;color:var(--mes-muted);margin:0 0 20px}
.mes-product-bottom{margin-top:auto}
.mes-price{font-size:19px;font-weight:700;margin-bottom:12px}
.mes-price .woocommerce-Price-amount{font-weight:700}
.mes-price del{font-weight:400;opacity:.6;margin-right:6px}
.mes-product-card .added_to_cart{display:block;font-size:12px;margin-top:8px;color:var(--mes-blue)}
.mes-product-card a.button,.mes-product-card a.add_to_cart_button{display:block;width:100%;padding:11px 7px;background:#fff;border:1px solid #bfd3e5;color:var(--mes-blue);border-radius:5px;font-weight:700;font-size:13px;text-align:center}
.mes-product-card a.button:hover,.mes-product-card a.add_to_cart_button:hover{background:var(--mes-pale)}

.mes-themes{background:var(--mes-pale)}
.mes-theme-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:28px}
.mes-theme{border:0;background:#fff;border-radius:8px;padding:24px;position:relative;color:var(--mes-ink);text-align:left;min-height:160px;display:block}
.mes-theme .mes-icon{color:var(--mes-blue);height:30px;width:30px;margin-bottom:16px}
.mes-theme h3{font-size:16px;margin:0 0 6px;font-weight:700}
.mes-theme p{color:var(--mes-muted);font-size:14px;margin:0;max-width:180px}
.mes-theme .mes-arrow{position:absolute;right:18px;top:24px;color:var(--mes-blue)}
.mes-theme:hover{box-shadow:0 8px 25px rgba(18,59,88,.1)}

.mes-formats{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.mes-format-card{border-radius:10px;overflow:hidden;background:#f4f7f9}
.mes-format-art{height:220px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#e9f0f5}
.mes-format-art img{height:84%;width:68%;object-fit:contain;mix-blend-mode:multiply;transform:rotate(-7deg)}
.mes-format-art.mes-books img:first-child{width:46%;transform:rotate(-10deg);margin-right:-38px}
.mes-format-art.mes-books img:last-child{width:42%;transform:rotate(8deg);margin-top:18px}
.mes-format-art.mes-audio img{width:52%;transform:rotate(5deg)}
.mes-headphones{position:absolute;width:160px;height:140px;border:16px solid #203448;border-bottom-color:transparent;border-radius:84px 84px 28px 28px;left:25px;top:44px;transform:rotate(-14deg)}
.mes-headphones:before,.mes-headphones:after{content:'';position:absolute;width:24px;height:54px;background:#152536;border:5px solid #344c61;border-radius:11px;top:68px;left:-20px}
.mes-headphones:after{left:auto;right:-20px}
.mes-laptop{width:78%;height:160px;border:9px solid #233847;border-bottom-width:16px;border-radius:9px;background:#122130;display:flex;align-items:center;justify-content:center;position:relative;transform:perspective(800px) rotateY(-9deg)}
.mes-laptop img{height:95%;width:65%;transform:none;mix-blend-mode:normal}
.mes-format-copy{padding:24px;background:#fff;border:1px solid var(--mes-line);border-top:0;border-radius:0 0 10px 10px}
.mes-format-copy h3{font-size:21px;margin:0 0 6px;font-weight:700}
.mes-format-copy p{font-size:14px;color:var(--mes-muted);margin:0 0 16px}

.mes-newsletter{background:#eaf3fb;color:var(--mes-ink);padding:46px 0}
.mes-newsletter .mes-wrap{display:flex;justify-content:space-between;align-items:center;gap:30px;flex-wrap:wrap}
.mes-newsletter h2{font-size:26px}
.mes-newsletter p{color:var(--mes-muted);max-width:420px;font-size:14px;margin:10px 0 0}
.mes-newsletter .mes-btn{background:var(--mes-blue);border-color:var(--mes-blue);color:#fff}
.mes-newsletter .mes-btn:hover{background:var(--mes-blue-dark)}

@media(max-width:1100px){
	.mes-hero-grid{min-height:500px}
	.mes-hero-art{height:420px}
	.mes-hero-art:before{width:320px;height:320px}
	.mes-product-image{height:220px}
	.mes-product-body{padding:15px}
	.mes-benefit-grid{gap:14px}
}
@media(max-width:800px){
	.mes-hero-grid{display:flex;flex-direction:column;align-items:stretch;padding-top:34px;gap:0;min-height:0}
	.mes-hero h1{font-size:36px;letter-spacing:-1.2px}
	.mes-hero-art{height:340px;width:400px;max-width:100%;margin:0 auto}
	.mes-hero-art:before{width:280px;height:280px}
	.mes-benefit-grid{grid-template-columns:repeat(2,1fr);gap:20px}
	.mes-products{grid-template-columns:repeat(2,1fr)}
	.mes-theme-grid{grid-template-columns:repeat(2,1fr)}
	.mes-formats{grid-template-columns:1fr;gap:14px}
	.mes-format-art{height:170px}
	.mes-section{padding:52px 0}
	.mes-newsletter .mes-wrap{align-items:flex-start}
}
@media(max-width:560px){
	.mes-hero h1{font-size:clamp(27px,8vw,33px);letter-spacing:-1px}
	.mes-hero-art{height:280px}
	.mes-hero-art:before{width:230px;height:230px}
	.mes-section{padding:40px 0}
	.mes-home h2{font-size:25px}
	.mes-products{gap:13px}
	.mes-product-image{height:190px;padding:14px}
	.mes-theme-grid{gap:12px;margin-top:22px}
	.mes-formats .mes-format-art{height:220px}
}

@media(prefers-reduced-motion:reduce){
	.mes-header *,.mes-footer-wrap *,.mes-home *{transition:none!important}
}

/* FunnelKit's floating cart icon (#fkcart-floating-toggler) is redundant now
   that the header "Warenkorb" link opens the same side-cart drawer directly
   (see inc/custom-header-footer.php, fkcart_trigger_slide_cart_class filter).
   Hidden via CSS rather than the plugin's own "Icon Visibility: None" admin
   setting, because that setting gates FKCart\Includes\Data::is_cart_enabled()
   — the master switch for the whole AJAX cart system, not just the icon —
   which would also break the header link's own drawer trigger. */
#fkcart-floating-toggler{display:none!important}

/* Side-cart line items: remove the DUPLICATE quantity + price that FunnelKit's
   own Germanized compatibility (cart-for-woocommerce/compatibilities/germanized.php
   forces fkcart_enable_mini_cart_widget_quantity_filter=true) prints as
   .fkcart_mini_cart_widget_quantity — a second quantity box AND a second price —
   on top of FunnelKit's own stepper (.fkcart-quantity-selector) and price
   (.fkcart-item-price). Keep exactly one of each:
   - the duplicate price always goes (FunnelKit prints its own);
   - the Germanized quantity box goes only where FunnelKit's editable stepper
     exists; on sold-individually products FunnelKit suppresses its stepper, so
     that box stays as the single quantity shown (hiding it would leave none). */
.fkcart--item .fkcart_mini_cart_widget_quantity .ast-mini-cart-price-wrap{display:none!important}
/* Robust, :has()-free: kill the editable duplicate quantity input (the spinner
   box) inside Germanized's widget. Non-sold-individually items render an
   <input type=number> here (the duplicate); sold-individually items render only
   plain "1" text (no input), so their single quantity stays. Works in every
   browser. */
.fkcart--item .fkcart_mini_cart_widget_quantity input{display:none!important}
/* Where :has() is supported, also drop the now-empty widget box on items that
   carry FunnelKit's own stepper, so no empty gap remains. */
.fkcart--item:has(.fkcart-quantity-selector) .fkcart_mini_cart_widget_quantity{display:none!important}

/* WooCommerce notices ("X wurde deinem Warenkorb hinzugefügt", coupon
   applied, validation errors, etc.) — default markup renders inline in the
   page flow as a plain grey bar; restyled as a floating toast card instead.
   mes-notices.js adds the close button and auto-dismiss timer. */
.woocommerce-message,.woocommerce-error,.woocommerce-info{
	font-family:"MES Roboto",Arial,sans-serif;
	position:fixed;
	top:24px;
	left:24px;
	z-index:9999;
	display:flex;
	align-items:center;
	gap:14px;
	max-width:420px;
	width:calc(100% - 48px);
	background:#fff;
	border:1px solid var(--mes-line);
	border-left:4px solid #3f8a5c;
	border-radius:8px;
	box-shadow:0 18px 40px rgba(20,40,61,.16);
	padding:18px 20px;
	margin:0;
	list-style:none;
	font-size:13px;
	line-height:1.6;
	color:var(--mes-ink);
	opacity:0;
	transform:translateY(-12px);
	transition:opacity .25s ease,transform .25s ease;
}
.woocommerce-error{border-left-color:#c0504d}
.woocommerce-info{border-left-color:var(--mes-blue)}
.woocommerce-message.mes-toast-visible,.woocommerce-error.mes-toast-visible,.woocommerce-info.mes-toast-visible{opacity:1;transform:translateY(0)}
.woocommerce-message:before,.woocommerce-error:before,.woocommerce-info:before{
	content:'';
	flex-shrink:0;
	width:22px;
	height:22px;
	border-radius:50%;
	background:#e9f4ed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23338357' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.woocommerce-error:before{background-color:#fbeceb;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0504d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E")}
.woocommerce-info:before{background-color:var(--mes-pale);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230868bd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='8' x2='12' y2='13'/%3E%3Ccircle cx='12' cy='16.5' r='.6' fill='%230868bd' stroke='none'/%3E%3C/svg%3E")}
.woocommerce-message .button.wc-forward{
	flex-shrink:0;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	padding:10px 15px;
	border-radius:5px;
	background:var(--mes-blue);
	border:1px solid var(--mes-blue);
	color:#fff;
	font-size:12px;
	font-weight:700;
	text-decoration:none;
	transition:background .2s;
}
.woocommerce-message .button.wc-forward:hover{background:var(--mes-blue-dark)}
.mes-toast-close{
	flex-shrink:0;
	border:0;
	background:none;
	padding:4px;
	margin:0 0 0 -4px;
	color:var(--mes-muted);
	cursor:pointer;
	line-height:1;
	font-size:16px;
}
.mes-toast-close:hover{color:var(--mes-ink)}
@media(max-width:560px){
	.woocommerce-message,.woocommerce-error,.woocommerce-info{top:12px;right:12px;left:12px;width:auto;max-width:none;flex-wrap:wrap}
}
