/* ===========================================================
   MH WEBSOLUTION — GLOBALES DESIGN-SYSTEM
   Gilt für ALLE Seiten (index, preisrechner, agb, datenschutz, impressum)
=========================================================== */
:root {
  --mhw-black: #050505;
  --mhw-black-2: #0d0d0d;
  --mhw-black-3: #131313;
  --mhw-gold: #FFD700;
  --mhw-gold-light: #FFE666;
  --mhw-gold-pale: #FFF3B0;
  --mhw-gold-deep: #C9A600;
  --mhw-text-muted: #ababab;
  --mhw-border: rgba(255,215,0,0.18);
}

* { box-sizing: border-box; }
html, body { background: var(--mhw-black); margin: 0; padding: 0; width: 100%; min-height: 100%; overflow-x: hidden; }
body { font-family: 'Poppins', sans-serif; color: #fff; cursor: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }

@media (pointer: coarse) { body { cursor: auto; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Neutralisiert evtl. vorhandene Theme-/Server-Container (falls die Seite mal
   doch nicht pur, sondern eingebettet läuft) */
body #page, body #content, body .site-content { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }

.mhw-site { position: relative; z-index: 1; width: 100%; min-height: 100vh; overflow-x: hidden; }

/* ---------- SCROLL PROGRESS + CURSOR + CANVAS (sitewide) ---------- */
.mhw-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 300;
  background: linear-gradient(90deg, var(--mhw-gold-deep), var(--mhw-gold), var(--mhw-gold-pale));
  box-shadow: 0 0 12px rgba(255,215,0,0.6); }
/* Cursor: Position läuft komplett über transform (JS-Lerp) — daher KEINE left/top-Transition */
.mhw-cursor-dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; background: var(--mhw-gold);
  border-radius: 50%; z-index: 300; pointer-events: none; will-change: transform; }
.mhw-cursor-ring { position: fixed; top: 0; left: 0; width: 34px; height: 34px; border: 1px solid var(--mhw-gold);
  border-radius: 50%; z-index: 300; pointer-events: none; will-change: transform;
  transition: border-color .3s ease, background .3s ease; }
.mhw-cursor-ring.mhw-hover { background: rgba(255,215,0,0.08); border-color: var(--mhw-gold-pale); }
@media (pointer: coarse) { .mhw-cursor-dot, .mhw-cursor-ring { display: none; } }
#mhwBgCanvas { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; pointer-events: none; }

/* ---------- FILM GRAIN (Kino-Textur über der ganzen Seite) ---------- */
.mhw-grain { position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 290; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: mhwGrainShift 0.9s steps(4) infinite; }
@keyframes mhwGrainShift {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); } 75% { transform: translate(-1%, -1%); } 100% { transform: translate(2%, 2%); }
}
@media (prefers-reduced-motion: reduce) { .mhw-grain { animation: none; } }

/* ---------- PAGE TRANSITION OVERLAY (flüssige Seitenwechsel) ---------- */
.mhw-page-transition { position: fixed; inset: 0; z-index: 998; background: var(--mhw-black);
  transform: scaleY(0); transform-origin: top; pointer-events: none;
  transition: transform .45s cubic-bezier(.76,0,.24,1); }
.mhw-page-transition.mhw-leaving { transform: scaleY(1); transform-origin: bottom; pointer-events: auto; }

/* ---------- ANKER: fixer Header darf Sprungziele nicht verdecken ---------- */
section[id], div[id] { scroll-margin-top: 90px; }

/* ---------- MAGNETISCHE ELEMENTE ---------- */
.mhw-magnetic { will-change: transform; }

/* ---------- REVEAL mit Kino-Blur ---------- */
.mhw-reveal { filter: blur(6px); }
.mhw-reveal.mhw-in { filter: blur(0); }

.mhw-to-top { position: fixed; bottom: 26px; right: 26px; width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mhw-gold-light), var(--mhw-gold) 60%, var(--mhw-gold-deep));
  display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; z-index: 250;
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, box-shadow .3s ease; box-shadow: 0 8px 24px rgba(255,215,0,.25); }
.mhw-to-top.mhw-show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.mhw-to-top:hover { box-shadow: 0 12px 32px rgba(255,215,0,.4); transform: translateY(-3px) scale(1.05); }
.mhw-to-top svg { width: 20px; height: 20px; }

/* ---------- HEADER (sitewide, transparent -> solide beim Scrollen) ---------- */
.mhw-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center;
  justify-content: space-between; padding: 24px 5%; background: transparent; backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent; transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease, padding .4s ease; }
.mhw-header.mhw-scrolled { background: rgba(5,5,5,.86); backdrop-filter: blur(16px); border-bottom: 1px solid var(--mhw-border); padding: 14px 5%; }
.mhw-logo-wrap { display: flex; align-items: center; gap: 12px; }
.mhw-logo-wrap img { height: 46px; width: auto; transition: height .4s ease; }
.mhw-header.mhw-scrolled .mhw-logo-wrap img { height: 36px; }
.mhw-nav { display: flex; align-items: center; gap: 34px; }
.mhw-nav a { color: #e8e8e8; text-decoration: none; font-size: 15px; font-weight: 500; position: relative; transition: color .3s ease; }
.mhw-nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--mhw-gold); transition: width .3s ease; }
.mhw-nav a:hover { color: var(--mhw-gold); }
.mhw-nav a:hover::after { width: 100%; }
.mhw-nav a.mhw-active { color: var(--mhw-gold); }
.mhw-nav-cta { background: linear-gradient(135deg, var(--mhw-gold-light), var(--mhw-gold) 60%, var(--mhw-gold-deep)); color: #000 !important; font-weight: 700 !important; padding: 10px 22px; border-radius: 8px; }
.mhw-nav-cta::after { display: none; }
.mhw-nav-partner { color: var(--mhw-gold) !important; font-size: 13.5px !important; opacity: 0.85; }
.mhw-nav-partner:hover { opacity: 1; }
.mhw-burger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; z-index: 96; padding: 6px; }
.mhw-burger span { width: 24px; height: 1px; background: var(--mhw-gold); transition: transform .3s ease, opacity .3s ease; }
.mhw-burger.active span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.mhw-burger.active span:nth-child(2) { opacity: 0; }
.mhw-burger.active span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
.mhw-mobile-nav { position: fixed; inset: 0; z-index: 199; background: rgba(5,5,5,.98); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 10% 8%; gap: 22px;
  transform: translateX(100%); transition: transform .45s cubic-bezier(.16,1,.3,1); }
.mhw-mobile-nav.mhw-open { transform: translateX(0); }
.mhw-mobile-nav a { color: #fff; font-size: 22px; font-weight: 500; text-decoration: none; }
@media (max-width: 880px) { .mhw-nav { display: none; } .mhw-burger { display: flex; } }

/* ---------- SEITEN-HERO (für Unterseiten: Preisrechner/AGB/Datenschutz/Impressum) ---------- */
.mhw-page-hero { position: relative; padding: 190px 24px 90px; text-align: center; overflow: hidden; }
.mhw-page-hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.mhw-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--mhw-gold); border: 1px solid var(--mhw-border);
  background: rgba(255,215,0,.05); border-radius: 999px; padding: 8px 20px; font-size: 12.5px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 26px; }
.mhw-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mhw-gold); animation: mhwPulse 1.8s ease-in-out infinite; }
@keyframes mhwPulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.mhw-page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.15; margin: 0 0 20px; }
.mhw-page-hero p { color: var(--mhw-text-muted); font-size: 16px; font-weight: 300; line-height: 1.7; max-width: 560px; margin: 0 auto; }

/* ---------- REVEAL SYSTEM ---------- */
.mhw-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.mhw-reveal.mhw-in { opacity: 1; transform: translateY(0); }
.mask { overflow: hidden; }

/* Seitliche Reveals (Service-Textspalte/Visual). Dienen zugleich als Fallback:
   Falls GSAP/ScrollTrigger nicht lädt, macht ein kleiner Beobachter in main.js sie via .mhw-in sichtbar. */
.mhw-reveal-l, .mhw-reveal-r { opacity: 0; transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.mhw-reveal-l { transform: translateX(-40px); }
.mhw-reveal-r { transform: translateX(40px); }
.mhw-reveal-l.mhw-in, .mhw-reveal-r.mhw-in { opacity: 1; transform: translateX(0); }
/* Auf der Startseite steuert die Pin-Zoom-Timeline die Sichtbarkeit des ganzen Blocks;
   damit die Inhalte dort nicht doppelt versteckt bleiben, sind sie innerhalb eines Pin-Targets sofort sichtbar. */
[data-pin-target] .mhw-reveal-l, [data-pin-target] .mhw-reveal-r { opacity: 1; transform: none; }

.mhw-d1 { transition-delay: .08s; }
.mhw-d2 { transition-delay: .16s; }
.mhw-d3 { transition-delay: .24s; }

/* ---------- BUTTONS ---------- */
.mhw-btn { position: relative; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; padding: 17px 38px;
  border-radius: 10px; text-decoration: none; display: inline-block; overflow: hidden; color: #000; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--mhw-gold-light), var(--mhw-gold) 60%, var(--mhw-gold-deep));
  box-shadow: 0 4px 18px rgba(255,215,0,.18); transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; }
.mhw-btn::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.mhw-btn:hover::after { left: 130%; }
.mhw-btn:hover { box-shadow: 0 14px 34px rgba(255,215,0,.3); }
/* Magnetische Buttons: Position steuert JS via transform — kein CSS-translateY, sonst Konflikt */
.mhw-magnetic { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; }
.mhw-magnetic:hover { transform: none; }
.mhw-btn-outline { background: linear-gradient(135deg, var(--mhw-gold), var(--mhw-gold-deep)); border: 1.5px solid var(--mhw-gold-pale); }

/* ---------- FOOTER (sitewide) ---------- */
.mhw-footer { position: relative; overflow: hidden; border-top: 1px solid var(--mhw-border); padding: 90px 24px 0; background: linear-gradient(180deg, transparent, rgba(255,215,0,.02)); }
.mhw-footer-glow { position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(ellipse, rgba(255,215,0,.08), transparent 70%); pointer-events: none; z-index: 0; }
.mhw-footer-inner, .mhw-footer-bottom { position: relative; z-index: 1; }
.mhw-footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 54px; }
.mhw-footer-brand img { height: 42px; margin-bottom: 16px; }
.mhw-footer-brand p { color: var(--mhw-text-muted); font-size: 14px; line-height: 1.7; max-width: 280px; }
.mhw-footer-col h4 { color: var(--mhw-gold); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 20px; }
.mhw-footer-col a { display: block; color: var(--mhw-text-muted); text-decoration: none; font-size: 14.5px; margin-bottom: 13px; transition: color .3s ease; }
.mhw-footer-col a:hover { color: var(--mhw-gold); }
.mhw-footer-bottom { max-width: 1180px; margin: 0 auto; border-top: 1px solid var(--mhw-border); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.mhw-footer-bottom p { color: #6d6a65; font-size: 12.5px; margin: 0; }
@media (max-width: 800px) { .mhw-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .mhw-footer-inner { grid-template-columns: 1fr; } }

/* ---------- COOKIE BANNER ---------- */
.mhw-cookie { position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 500; max-width: 560px; margin: 0 auto;
  background: linear-gradient(160deg, #111, #050505); border: 1px solid var(--mhw-border); border-radius: 16px; padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: translateY(140%); opacity: 0; transition: transform .6s cubic-bezier(.16,1,.3,1), opacity .6s ease; }
.mhw-cookie.mhw-show { transform: translateY(0); opacity: 1; }
.mhw-cookie-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,215,0,.1); border: 1px solid var(--mhw-gold);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.mhw-cookie h3 { color: #fff; font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.mhw-cookie p { color: var(--mhw-text-muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 20px; }
.mhw-cookie p a { color: var(--mhw-gold); text-decoration: underline; }
.mhw-cookie-row { display: flex; gap: 12px; flex-wrap: wrap; }
.mhw-cookie-btn { flex: 1; min-width: 120px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13.5px; padding: 12px; border-radius: 8px; text-align: center; cursor: pointer; border: none; transition: transform .25s ease, box-shadow .25s ease; }
.mhw-cookie-accept { background: linear-gradient(135deg, var(--mhw-gold-light), var(--mhw-gold) 60%, var(--mhw-gold-deep)); color: #000; }
.mhw-cookie-accept:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,215,0,.25); }
.mhw-cookie-reject { background: transparent; border: 1px solid rgba(255,255,255,.2) !important; color: #ccc; }
.mhw-cookie-reject:hover { border-color: #fff !important; color: #fff; }
@media (max-width: 500px) { .mhw-cookie { left: 12px; right: 12px; bottom: 12px; padding: 22px; } }

/* ---------- MARKETING POPUP ---------- */
.mhw-popup-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .4s ease; padding: 20px; }
.mhw-popup-overlay.mhw-show { opacity: 1; pointer-events: auto; }
.mhw-popup { position: relative; max-width: 460px; width: 100%; background: linear-gradient(160deg, #121212, #050505);
  border: 1px solid rgba(255,215,0,.35); border-radius: 20px; padding: 44px 36px; text-align: center;
  transform: scale(.85) translateY(20px); opacity: 0; transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .5s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
.mhw-popup-overlay.mhw-show .mhw-popup { transform: scale(1) translateY(0); opacity: 1; }
.mhw-popup::before { content: ""; position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 280px; height: 200px;
  background: radial-gradient(ellipse, rgba(255,215,0,.18), transparent 70%); pointer-events: none; }
.mhw-popup-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--mhw-border);
  background: rgba(255,255,255,.03); color: #ccc; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.mhw-popup-close:hover { color: #fff; border-color: var(--mhw-gold); }
.mhw-popup-badge { position: relative; z-index: 1; display: inline-block; background: linear-gradient(135deg, var(--mhw-gold-light), var(--mhw-gold)); color: #000;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; margin-bottom: 20px; }
.mhw-popup h3 { position: relative; z-index: 1; color: #fff; font-size: 26px; font-weight: 800; margin: 0 0 12px; line-height: 1.25; }
.mhw-popup h3 span { color: var(--mhw-gold); }
.mhw-popup p { position: relative; z-index: 1; color: var(--mhw-text-muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 26px; }
.mhw-popup-timer { position: relative; z-index: 1; display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; }
.mhw-popup-timer div { background: rgba(255,215,0,.06); border: 1px solid var(--mhw-border); border-radius: 8px; padding: 8px 12px; min-width: 56px; }
.mhw-popup-timer strong { display: block; color: var(--mhw-gold); font-size: 20px; font-weight: 800; }
.mhw-popup-timer span { display: block; color: #888; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.mhw-popup-note { position: relative; z-index: 1; color: #666; font-size: 11.5px; margin-top: 16px; }

/* ---------- LEGAL PAGES (AGB / Datenschutz / Impressum) ---------- */
.mhw-legal { max-width: 820px; margin: 0 auto; padding: 20px 24px 140px; }
.mhw-legal h2 { color: var(--mhw-gold); font-size: 22px; font-weight: 700; margin: 44px 0 16px; }
.mhw-legal h2:first-child { margin-top: 0; }
.mhw-legal h3 { color: #fff; font-size: 17px; font-weight: 600; margin: 26px 0 10px; }
.mhw-legal p, .mhw-legal li { color: #cfcfcf; font-size: 15px; line-height: 1.8; font-weight: 300; }
.mhw-legal ul, .mhw-legal ol { padding-left: 22px; }
.mhw-legal a { color: var(--mhw-gold); text-decoration: underline; }
.mhw-legal-placeholder { background: rgba(255,215,0,.05); border: 1px dashed var(--mhw-border); border-radius: 12px; padding: 20px 24px; margin: 20px 0; color: var(--mhw-gold-pale) !important; font-size: 14px !important; }
