/* ==========================================================================
   MPTX Unified Header & Home Hero — Framework CSS
   Version 3.1.0 — Hammerer GmbH (Milltech / Primatech)
   Ein globaler Header (transparent auf der Startseite, sticky auf Unterseiten),
   4-Spalten-Hero mit Content-Slider, Flug-Logo-Übergang, Marken-Kontext,
   Desktop-Dropdowns, responsives Slide-Burger-Menü, WPML, Reduced-Motion.
   ========================================================================== */
:root{
  --mptx-brand-width:270px;
  --mptx-header-height:103px;
  --mptx-home-icon-width:66px;
  --mptx-header-rgb:59,69,81;
  --mptx-orange:#E74014;
  --mptx-blue:#0085C6;
  --mptx-panel:#2f3944;
  --mptx-panel-deep:#141f29;
  --mptx-line:rgba(255,255,255,.09);
  --mptx-ease:cubic-bezier(.22,.61,.36,1);
  --mptx-p:1;
}
.mptx-header *,.mptx-drawer *,.mptx-hero *{box-sizing:border-box}

/* ---------- offset for the fixed header (subpages) ---------- */
body.mptx-framework-active{--mptx-p:1}
body.mptx-framework-active:not(.mptx-is-front-page){padding-top:var(--mptx-header-height)}

/* ---------- HEADER (Elementor location: header) ---------- */
.elementor-location-header{position:fixed;top:0;left:0;right:0;z-index:9990}
.mptx-header{position:relative;height:var(--mptx-header-height);color:#fff;isolation:isolate;font-family:Roboto,Arial,sans-serif}
.mptx-header__surface{position:absolute;inset:0;z-index:-1;pointer-events:none;background:rgba(var(--mptx-header-rgb),1);border-bottom:1px solid rgba(255,255,255,.06);box-shadow:0 10px 32px rgba(0,0,0,.16)}
.mptx-nav{height:100%;display:flex;align-items:stretch}

.mptx-home-btn{flex:0 0 var(--mptx-home-icon-width);display:flex;align-items:center;justify-content:center;border-right:1px solid var(--mptx-line);color:rgba(255,255,255,.85);text-decoration:none;transition:background .2s,color .2s}
.mptx-home-btn:hover{background:rgba(255,255,255,.05);color:#fff}
.mptx-home-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.mptx-is-front-page .mptx-home-btn{display:none}

.mptx-brand{position:relative;flex:0 0 var(--mptx-brand-width);width:var(--mptx-brand-width);border-right:1px solid var(--mptx-line)}
.mptx-brand-link{height:100%;display:flex;align-items:center;gap:10px;padding:0 26px;text-decoration:none;background:linear-gradient(180deg,rgba(80,88,96,.28),rgba(40,50,60,.28))}
.mptx-brand--milltech .mptx-brand-link{box-shadow:inset 0 -3px 0 var(--mptx-orange)}
.mptx-brand--primatech .mptx-brand-link{box-shadow:inset 0 -3px 0 var(--mptx-blue)}
.mptx-brand-logo{height:30px;width:auto;max-width:172px;display:block;object-fit:contain;transition:filter .3s ease,opacity .3s ease}
.mptx-chevron{width:16px;height:16px;margin-left:auto;fill:none;stroke:rgba(255,255,255,.55);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s var(--mptx-ease),opacity .3s ease;flex:0 0 auto}
.mptx-brand:hover .mptx-chevron,.mptx-brand.is-open .mptx-chevron{transform:rotate(180deg)}

/* Marken-Kontext: aktive Marke voll + Balken, inaktive ausgegraut ohne Balken */
body.mptx-context-milltech .mptx-brand--primatech .mptx-brand-logo,
body.mptx-context-primatech .mptx-brand--milltech .mptx-brand-logo{filter:grayscale(1) opacity(.45)}
body.mptx-context-milltech .mptx-brand--primatech .mptx-brand-link,
body.mptx-context-primatech .mptx-brand--milltech .mptx-brand-link{box-shadow:none!important}
body.mptx-context-milltech .mptx-brand--primatech .mptx-chevron,
body.mptx-context-primatech .mptx-brand--milltech .mptx-chevron{opacity:.3}

.mptx-brand-dropdown{position:absolute;top:100%;left:0;width:max(100%,240px);background:var(--mptx-panel);border-top:2px solid var(--mptx-orange);box-shadow:0 26px 52px rgba(0,0,0,.32);padding:8px 0;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .22s var(--mptx-ease),transform .22s var(--mptx-ease),visibility .22s}
.mptx-brand--primatech .mptx-brand-dropdown{border-top-color:var(--mptx-blue)}
.mptx-brand:hover .mptx-brand-dropdown,.mptx-brand:focus-within .mptx-brand-dropdown,.mptx-brand.is-open .mptx-brand-dropdown{opacity:1;visibility:visible;transform:none}

.mptx-right{flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:32px;padding:0 46px 0 40px}
.mptx-divider{width:1px;height:30px;background:rgba(255,255,255,.16);flex:0 0 auto}
.mptx-language{display:flex;align-items:center;gap:9px;color:rgba(255,255,255,.78);font-size:14px;font-weight:600}
.mptx-language svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;flex:0 0 auto}

/* Menus (from WP nav menus via wp_nav_menu) */
.mptx-main-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:30px;white-space:nowrap}
.mptx-main-menu>li{position:relative;margin:0;padding:0}
.mptx-main-menu>li>a{position:relative;display:flex;align-items:center;color:rgba(255,255,255,.92);text-decoration:none;font-size:15px;font-weight:500;letter-spacing:.2px;padding:8px 0;line-height:1.2}
.mptx-main-menu>li>a::after{content:"";position:absolute;left:0;right:100%;bottom:-2px;height:2px;background:var(--mptx-orange);transition:right .25s var(--mptx-ease)}
.mptx-main-menu>li:hover>a::after,.mptx-main-menu>li.current-menu-item>a::after,.mptx-main-menu>li.current-menu-ancestor>a::after{right:0}
.mptx-main-menu>li.menu-item-has-children>a::before{content:"";width:7px;height:7px;margin-left:8px;border-right:2px solid rgba(255,255,255,.6);border-bottom:2px solid rgba(255,255,255,.6);transform:translateY(-2px) rotate(45deg);flex:0 0 auto}
.mptx-main-menu .sub-menu{list-style:none;margin:0;padding:8px 0;position:absolute;top:100%;left:-20px;min-width:220px;background:var(--mptx-panel);box-shadow:0 22px 46px rgba(0,0,0,.28);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s var(--mptx-ease),transform .2s var(--mptx-ease),visibility .2s}
.mptx-main-menu>li:hover>.sub-menu,.mptx-main-menu>li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.mptx-main-menu .sub-menu a{display:block;padding:12px 24px;text-decoration:none;color:rgba(255,255,255,.84);font-size:14.5px;font-weight:500;transition:background .15s,color .15s}
.mptx-main-menu .sub-menu a:hover{background:rgba(255,255,255,.06);color:#fff}

/* Brand dropdown menu (from WP nav menu) */
.mptx-brand-menu{list-style:none;margin:0;padding:0}
.mptx-brand-menu li{margin:0}
.mptx-brand-menu a{display:flex;justify-content:space-between;align-items:center;padding:12px 24px;text-decoration:none;color:rgba(255,255,255,.84);font-size:14.5px;font-weight:500;transition:background .15s,color .15s}
.mptx-brand-menu a::after{content:"›";color:var(--mptx-orange);opacity:.8}
.mptx-brand--primatech .mptx-brand-menu a::after{color:var(--mptx-blue)}
.mptx-brand-menu a:hover{background:rgba(255,255,255,.06);color:#fff}
.mptx-brand-menu .sub-menu{list-style:none;margin:0;padding:0}

/* Language switcher (WPML) reset */
.mptx-language .wpml-ls,.mptx-language .wpml-ls ul{margin:0!important;padding:0!important;border:0!important;list-style:none!important;background:transparent!important}
.mptx-language .wpml-ls a{background:transparent!important;border:0!important;color:rgba(255,255,255,.72)!important;padding:4px 6px!important}
.mptx-language .wpml-ls a:hover,.mptx-language .wpml-ls .wpml-ls-current-language>a{color:#fff!important}
.mptx-lang-fallback-wrap{display:inline-flex;gap:6px}
.mptx-lang-fallback{text-decoration:none;opacity:.62;font-weight:600;padding:2px 3px;color:#fff}
.mptx-lang-fallback.is-current,.mptx-lang-fallback:hover{opacity:1}

/* ---------- HOME STATE: header transparent over hero, fades on scroll ---------- */
body.mptx-is-front-page .mptx-header__surface{background:rgba(var(--mptx-header-rgb),var(--mptx-p));border-bottom-color:rgba(255,255,255,calc(.06*var(--mptx-p)));box-shadow:0 10px 32px rgba(0,0,0,calc(.16*var(--mptx-p)));-webkit-backdrop-filter:blur(calc(9px*var(--mptx-p)));backdrop-filter:blur(calc(9px*var(--mptx-p)))}
body.mptx-is-front-page .mptx-brand{border-right-color:rgba(255,255,255,calc(.09*var(--mptx-p)))}
body.mptx-is-front-page .mptx-brand-link{background:linear-gradient(180deg,rgba(80,88,96,calc(.28*var(--mptx-p))),rgba(40,50,60,calc(.28*var(--mptx-p))))}
body.mptx-is-front-page .mptx-brand--milltech .mptx-brand-link{box-shadow:inset 0 -3px 0 rgba(231,64,20,var(--mptx-p))}
body.mptx-is-front-page .mptx-brand--primatech .mptx-brand-link{box-shadow:inset 0 -3px 0 rgba(0,133,198,var(--mptx-p))}
body.mptx-is-front-page .mptx-brand-logo{opacity:0}
body.mptx-is-front-page.mptx-sticky .mptx-brand-logo{opacity:1}
body.mptx-is-front-page .mptx-chevron{opacity:clamp(0,calc((var(--mptx-p) - .55)*3),1)}
body.mptx-is-front-page .mptx-main-menu>li>a{text-shadow:0 1px 14px rgba(0,0,0,.45)}
body.mptx-is-front-page.mptx-sticky .mptx-main-menu>li>a{text-shadow:none}
body.mptx-is-front-page.mptx-context-milltech .mptx-brand--primatech .mptx-brand-logo,
body.mptx-is-front-page.mptx-context-primatech .mptx-brand--milltech .mptx-brand-logo{filter:grayscale(1) opacity(.45)}

/* ---------- HERO (Elementor section, class mptx-hero) ---------- */
.mptx-hero{position:relative!important;min-height:100dvh!important;overflow:hidden!important;isolation:isolate;background:#16222d;color:#fff;font-family:Roboto,Arial,sans-serif}
.mptx-hero>.e-con-inner{min-height:100dvh;width:100%;max-width:none}
/* slides = Elementor containers with class mptx-slide (own background image/video) */
.mptx-hero .mptx-slide{position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;height:auto!important;opacity:0;visibility:hidden;transition:opacity 1.1s ease,visibility 1.1s;z-index:1;padding:0!important;margin:0!important}
.mptx-hero .mptx-slide.is-active{opacity:1;visibility:visible;z-index:2}
.mptx-hero .mptx-slide__shade{position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,rgba(8,17,25,.42),rgba(8,17,25,.10) 52%,rgba(4,10,16,.40))}
.mptx-hero .mptx-slide__inner{position:absolute!important;inset:0!important;left:calc(var(--mptx-brand-width)*2)!important;width:auto!important;max-width:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:20px!important;padding:calc(var(--mptx-header-height) + 24px) 7vw 92px!important;z-index:1}
.mptx-hero .mptx-slide__inner>*{max-width:820px!important;margin:0!important;transform:translateY(18px);opacity:0;transition:opacity .6s var(--mptx-ease),transform .6s var(--mptx-ease)}
.mptx-hero .mptx-slide.is-active .mptx-slide__inner>*{transform:none;opacity:1}
.mptx-hero .mptx-slide.is-active .mptx-slide__inner>*:nth-child(1){transition-delay:.10s}
.mptx-hero .mptx-slide.is-active .mptx-slide__inner>*:nth-child(2){transition-delay:.20s}
.mptx-hero .mptx-slide.is-active .mptx-slide__inner>*:nth-child(3){transition-delay:.30s}
.mptx-hero .mptx-slide.is-active .mptx-slide__inner>*:nth-child(4){transition-delay:.40s}
.mptx-hero .mptx-slide__inner .elementor-heading-title{color:#fff!important;font-family:Roboto,Arial,sans-serif;font-weight:500;letter-spacing:-2px;line-height:1.02;font-size:clamp(52px,5.4vw,92px);text-shadow:0 2px 22px rgba(0,0,0,.34)}
.mptx-hero .mptx-slide__inner .mptx-hero-kicker .elementor-heading-title{font-size:12px!important;font-weight:700!important;letter-spacing:3px!important;text-transform:uppercase!important;color:rgba(255,255,255,.82)!important;text-shadow:none!important}
.mptx-hero .mptx-slide__inner .elementor-widget-text-editor{color:rgba(255,255,255,.85);font-size:18px;line-height:1.7;max-width:640px}
.mptx-hero .mptx-slide__inner .elementor-button{min-height:52px;padding:0 30px;display:inline-flex;align-items:center;justify-content:center;background:#1598d4;border-radius:2px;color:#fff;font-weight:700;font-size:13px;letter-spacing:.9px;text-transform:uppercase;box-shadow:0 14px 30px rgba(0,0,0,.2);transition:transform .2s,background .2s}
.mptx-hero .mptx-slide__inner .elementor-button:hover{background:#0e87c0;transform:translateY(-2px)}

/* brand columns overlay (left 2 columns), injected by [mptx_hero_overlay] */
.mptx-hero__grid{position:absolute;top:0;left:0;bottom:0;width:calc(var(--mptx-brand-width)*2);z-index:3;display:grid;grid-template-columns:var(--mptx-brand-width) var(--mptx-brand-width);pointer-events:none}
.mptx-hero__col{position:relative;height:100%;border-right:1px solid rgba(255,255,255,.08);pointer-events:auto}
.mptx-hero__col--milltech{background:rgba(59,69,81,.92)}
.mptx-hero__col--primatech{background:linear-gradient(180deg,rgba(23,86,120,.62),rgba(35,58,74,.72))}
.mptx-hero__brand{height:100%;display:flex;flex-direction:column;padding:calc(var(--mptx-header-height) + 74px) 28px 34px}
.mptx-hero__eyebrow{font-size:11px;font-weight:700;letter-spacing:3.5px;text-transform:uppercase;margin:0 0 22px;color:rgba(255,255,255,.55)}
.mptx-hero__col--milltech .mptx-hero__eyebrow{color:var(--mptx-orange)}
.mptx-hero__col--primatech .mptx-hero__eyebrow{color:var(--mptx-blue)}
.mptx-hero__brand .mptx-brand-menu a{padding:14px 0;border-bottom:1px solid rgba(255,255,255,.10);color:rgba(255,255,255,.9);font-size:15px}
.mptx-hero__brand .mptx-brand-menu a:hover{background:transparent;color:#fff}
.mptx-hero__logo{margin-top:auto;display:block}
.mptx-hero__logo img{height:27px;width:auto;max-width:165px;display:block}

/* slider controls (injected by JS or provided by [mptx_hero_overlay controls]) */
.mptx-hero__controls{position:absolute;z-index:6;right:6vw;bottom:34px;display:flex;align-items:center;gap:16px}
.mptx-hero__arrow{width:44px;height:44px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.06);color:#fff;border-radius:50%;font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:.2s}
.mptx-hero__arrow:hover{background:rgba(255,255,255,.16)}
.mptx-hero__dots{display:flex;gap:8px}
.mptx-hero__dots button{width:9px;height:9px;border-radius:50%;border:0;background:rgba(255,255,255,.35);cursor:pointer;padding:0;transition:.25s var(--mptx-ease)}
.mptx-hero__dots button.is-active{background:#fff;width:26px;border-radius:5px}

/* flying logo proxies */
.mptx-proxy{position:fixed;left:0;top:0;z-index:9995;pointer-events:none;will-change:transform,width,height;opacity:0}
.mptx-proxy img{display:block;width:100%;height:100%;object-fit:contain;object-position:left center}
body.mptx-proxy-active .mptx-hero__logo{visibility:hidden}

/* ---------- MOBILE BURGER + SLIDE DRAWER ---------- */
.mptx-mobile-slot{display:none;flex:0 0 auto;align-items:center;margin-left:auto;padding:0 22px}
.mptx-burger{width:46px;height:46px;border:0;background:transparent;cursor:pointer;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:0 10px}
.mptx-burger span{height:2px;background:#fff;border-radius:2px;transition:.25s var(--mptx-ease)}
.mptx-drawer-overlay{position:fixed;inset:0;z-index:99998;background:rgba(6,12,18,.55);opacity:0;visibility:hidden;transition:.28s}
body.mptx-drawer-open .mptx-drawer-overlay{opacity:1;visibility:visible}
.mptx-drawer{position:fixed;top:0;right:0;bottom:0;z-index:99999;width:min(400px,90vw);background:var(--mptx-panel-deep);color:#fff;transform:translateX(100%);transition:transform .32s var(--mptx-ease);display:flex;flex-direction:column;box-shadow:-24px 0 60px rgba(0,0,0,.4);font-family:Roboto,Arial,sans-serif}
body.mptx-drawer-open .mptx-drawer{transform:none}
.mptx-drawer__head{display:flex;align-items:center;justify-content:space-between;height:var(--mptx-header-height);padding:0 20px;flex:0 0 auto;border-bottom:1px solid var(--mptx-line)}
.mptx-drawer__icon{width:44px;height:44px;border:0;background:transparent;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:6px}
.mptx-drawer__icon:hover{background:rgba(255,255,255,.07)}
.mptx-drawer__icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mptx-drawer__stage{position:relative;flex:1 1 auto;overflow:hidden}
.mptx-panel{position:absolute;inset:0;overflow-y:auto;padding:22px 22px 40px;transform:translateX(100%);opacity:0;visibility:hidden;transition:transform .3s var(--mptx-ease),opacity .3s,visibility .3s}
.mptx-panel.is-active{transform:none;opacity:1;visibility:visible}
.mptx-panel.is-left{transform:translateX(-28%);opacity:0;visibility:hidden}
.mptx-panel__back{display:inline-flex;align-items:center;gap:8px;background:none;border:0;color:rgba(255,255,255,.7);cursor:pointer;font-size:14px;font-weight:600;padding:6px 0;margin-bottom:12px}
.mptx-panel__back svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.mptx-panel__kicker{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:rgba(255,255,255,.45);margin-bottom:4px}
.mptx-panel__title{font-size:22px;font-weight:700;margin:2px 0 18px;text-decoration:none;color:#fff;display:block}
.mptx-panel__title--logo img{height:26px;width:auto}
.mptx-brand-launch{width:100%;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.04);border:1px solid var(--mptx-line);border-radius:8px;padding:20px;margin-bottom:12px;cursor:pointer;color:#fff}
.mptx-brand-launch:hover{background:rgba(255,255,255,.08)}
.mptx-brand-launch--milltech{border-left:3px solid var(--mptx-orange)}
.mptx-brand-launch--primatech{border-left:3px solid var(--mptx-blue)}
.mptx-brand-launch img{height:24px;width:auto}
.mptx-mobile-list{list-style:none;margin:14px 0 0;padding:0}
.mptx-mobile-list li{border-bottom:1px solid rgba(255,255,255,.08);margin:0}
.mptx-mobile-row{width:100%;display:flex;align-items:center;justify-content:space-between;background:none;border:0;cursor:pointer;text-align:left;padding:15px 2px;color:rgba(255,255,255,.9);font-size:16px;font-weight:500;text-decoration:none}
.mptx-mobile-row:hover{color:#fff}
.mptx-mobile-row-arrow{font-size:20px;color:rgba(255,255,255,.5)}
.mptx-mobile-language-block{margin-top:26px;padding-top:20px;border-top:1px solid var(--mptx-line)}
.mptx-mobile-language-label{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:rgba(255,255,255,.45);margin-bottom:10px}
.mptx-mobile-language .wpml-ls{list-style:none;margin:0;padding:0;display:flex;gap:8px}
.mptx-mobile-language a,.mptx-mobile-language .mptx-lang-fallback{display:inline-block;padding:8px 14px;margin-right:8px;border:1px solid var(--mptx-line);border-radius:6px;text-decoration:none;color:rgba(255,255,255,.8);font-weight:600;font-size:14px}

/* ---------- RESPONSIVE ---------- */
@media(max-width:1420px){
  .mptx-right{display:none}
  .mptx-mobile-slot{display:flex}
  .mptx-hero__grid{display:none}
  .mptx-hero .mptx-slide__inner{left:0!important;align-items:flex-start!important;text-align:left!important;justify-content:flex-end!important;padding:0 26px 120px!important}
  .mptx-hero .mptx-slide__inner .elementor-heading-title{font-size:clamp(42px,9vw,68px);letter-spacing:-1px}
  .mptx-hero__controls{right:auto;left:26px;bottom:40px}
  body.mptx-is-front-page .mptx-brand{display:none}
}
@media(max-width:600px){
  :root{--mptx-home-icon-width:56px}
  .mptx-brand{flex-basis:150px;width:150px}
}
@media(prefers-reduced-motion:reduce){
  .mptx-proxy{display:none!important}
  body.mptx-is-front-page .mptx-brand-logo{opacity:var(--mptx-p)}
  .mptx-hero .mptx-slide{transition:opacity .4s ease}
  .mptx-hero .mptx-slide__inner>*{transition:opacity .3s ease}
}
