/* ==========================================================================
   MÜLLER HAUSTECHNIK — "Werkstahl" industrial identity (fiktive Demo)
   Gußmann Webdesign · nur für die Müller-Seiten.
   Hard but professional: anthracite/graphite/steel base, ONE signal
   copper-orange trade accent, condensed uppercase display (Anton) over a
   sturdy industrial grotesk (Space Grotesk). Heavy rules, decisive grid.
   Motion is tasteful and honours prefers-reduced-motion.
   Design tokens live in :root at the top — swap there to re-skin.
   ========================================================================== */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  /* ---- Steel / anthracite base ---- */
  --steel-950: #0c0e11;
  --steel-900: #121519;
  --steel-880: #171b20;
  --steel-850: #1b1f25;
  --steel-800: #22272e;
  --steel-750: #2a3038;
  --steel-700: #333a44;
  --steel-600: #434c58;
  --steel-500: #576270;
  --steel-400: #737f8d;
  --steel-300: #96a1ad;
  --steel-200: #bcc4cd;
  --steel-150: #d3d9df;
  --steel-100: #e4e8ec;
  --steel-050: #eef1f3;
  --paper: #f5f6f8;
  --white: #ffffff;

  /* ---- Signal copper-orange (the ONE trade accent) ---- */
  --signal: #f26a1b;
  --signal-700: #c4530e;
  --signal-600: #db5c11;
  --signal-400: #ff8038;
  --signal-300: #ff9a5c;
  --signal-tint: rgba(242, 106, 27, 0.14);
  --signal-line: rgba(242, 106, 27, 0.42);

  /* ---- Semantic emergency red (used sparingly for Notdienst) ---- */
  --alarm: #e23b2e;
  --alarm-700: #b62a20;
  --alarm-tint: rgba(226, 59, 46, 0.14);

  /* ---- Text roles ---- */
  --ink: #12161b;          /* on light */
  --body-l: #3c4550;       /* body on light */
  --muted-l: #616c78;      /* muted on light */
  --on-dark: #eef1f4;      /* headings on dark */
  --body-d: #b5bec8;       /* body on dark */
  --muted-d: #869099;      /* muted on dark */

  --line: #d3d9df;
  --line-strong: #b7c0c8;
  --line-dark: #2b323b;
  --line-dark-soft: #232931;

  --font-display: "Anton", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 18px 40px rgba(8, 11, 15, 0.28);
  --shadow-card: 0 2px 0 rgba(0, 0, 0, 0.04), 0 12px 26px rgba(18, 22, 27, 0.10);
  --wrap: min(1240px, calc(100% - 44px));
  --wrap-narrow: min(940px, calc(100% - 44px));
  --header-h: 68px;
  --topbar-h: 38px;

  /* brushed-metal + hazard textures reused via var() */
  --brushed: repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.020) 0 2px,
      rgba(0, 0, 0, 0.020) 2px 4px);
  --hazard: repeating-linear-gradient(-45deg,
      var(--signal) 0 14px, #101317 14px 28px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
  /* clip (not hidden) so the off-canvas mobile nav never widens the page,
     without turning <html> into a scroll container (keeps sticky header ok) */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--body-l);
  background: var(--steel-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0;
}
p { margin: 0; }

::selection { background: var(--signal); color: #14100c; }

/* Focus: unmistakable, works on light + dark */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--signal-400);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 200;
  background: var(--signal);
  color: #14100c;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   TOP EMERGENCY BAR — persistent Notdienst (site-wide)
   ========================================================================== */
.mh-topbar {
  position: relative;
  z-index: 60;
  background: var(--steel-950);
  border-bottom: 1px solid var(--line-dark);
  color: var(--steel-200);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.mh-topbar-inner {
  width: var(--wrap);
  margin: 0 auto;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.mh-topbar-meta { display: flex; gap: 18px; align-items: center; }
.mh-topbar-meta span { display: inline-flex; align-items: center; gap: 6px; }
.mh-topbar-meta .dot { color: var(--signal-400); }
.mh-topbar-hide { color: var(--muted-d); }
.mh-topbar-emergency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  margin: 4px 0;
  border-radius: var(--radius);
  background: var(--alarm);
  min-height: 30px;
}
.mh-topbar-emergency:hover { background: var(--alarm-700); }
.mh-topbar-emergency .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: mh-pulse 1.8s infinite;
}
@keyframes mh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) { .mh-topbar-emergency .pulse { animation: none; } }
@media (max-width: 640px) { .mh-topbar-meta { display: none; } }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.mh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 21, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.mh-header-inner {
  width: var(--wrap);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
.mh-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--on-dark);
  margin-right: auto;
}
.mh-logo .mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #14100c;
  background: var(--signal);
  border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 82% 100%, 0 100%);
}
.mh-logo b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.16rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.mh-logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--signal-400);
  text-transform: uppercase;
}
.mh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mh-nav a {
  color: var(--body-d);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: var(--radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.mh-nav a:hover { color: var(--white); background: var(--steel-800); }
.mh-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--signal); }
.mh-nav a.is-notdienst { color: var(--signal-400); }
.mh-nav a.is-notdienst:hover { color: #fff; background: var(--signal-700); }
.mh-nav .mh-nav-cta {
  background: var(--signal);
  color: #14100c;
  font-weight: 700;
  margin-left: 8px;
}
.mh-nav .mh-nav-cta:hover { background: var(--signal-400); color: #14100c; }
.mh-burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: var(--steel-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--on-dark);
  font-size: 1.3rem;
  cursor: pointer;
}
@media (max-width: 1024px) {
  .mh-burger { display: inline-flex; }
  .mh-nav {
    position: fixed;
    inset: calc(var(--header-h) + var(--topbar-h)) 0 0 auto;
    width: min(340px, 84vw);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px;
    background: var(--steel-900);
    border-left: 1px solid var(--line-dark);
    transform: translateX(105%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }
  .mh-nav.is-open { transform: translateX(0); }
  .mh-nav a { font-size: 0.95rem; padding: 14px 14px; }
  .mh-nav .mh-nav-cta { margin: 8px 0 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .mh-nav { transition: none; } }

.mh-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: var(--wrap);
  margin: 10px auto 0;
  color: var(--muted-d);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mh-back:hover { color: var(--signal-400); }

/* ==========================================================================
   SECTION PRIMITIVES
   ========================================================================== */
main { display: block; }
.mh-section { padding: clamp(56px, 8vw, 104px) 0; }
.mh-section > .wrap,
.wrap { width: var(--wrap); margin: 0 auto; }
.wrap-narrow { width: var(--wrap-narrow); margin: 0 auto; }

.on-dark { background: var(--steel-900); color: var(--body-d); }
.on-steel { background: var(--steel-880); color: var(--body-d); }
.on-light { background: var(--paper); color: var(--body-l); }
.on-light h1, .on-light h2, .on-light h3 { color: var(--ink); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-steel h1, .on-steel h2, .on-steel h3 { color: var(--on-dark); }

.mh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 16px;
}
.mh-kicker::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--signal);
}
.on-light .mh-kicker { color: var(--signal-700); }
.on-light .mh-kicker::before { background: var(--signal-700); }

.mh-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 46px); }
.mh-head h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.mh-head p { margin-top: 16px; font-size: 1.05rem; }
.mh-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.mh-head.center .mh-kicker { justify-content: center; }

.inline-link { color: var(--signal-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.on-dark .inline-link, .on-steel .inline-link { color: var(--signal-400); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, color 0.16s ease;
}
.btn-primary { background: var(--signal); color: #14100c; }
.btn-primary:hover { background: var(--signal-400); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  box-shadow: inset 0 0 0 2px var(--steel-600);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--signal); color: #fff; }
.on-light .btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-strong); }
.on-light .btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--signal-700); }
.btn-alarm { background: var(--alarm); color: #fff; }
.btn-alarm:hover { background: var(--alarm-700); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.mh-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ==========================================================================
   HERO (home) — video + copy + spec card
   ========================================================================== */
.mh-hero {
  position: relative;
  background: var(--steel-950);
  overflow: hidden;
  border-bottom: 3px solid var(--signal);
}
.mh-hero-media { position: absolute; inset: 0; z-index: 0; }
.mh-hero-media video,
.mh-hero-media .poster {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.mh-hero-media .poster {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.mh-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 12, 15, 0.94) 0%, rgba(10, 12, 15, 0.78) 42%, rgba(10, 12, 15, 0.34) 100%),
    linear-gradient(0deg, rgba(10, 12, 15, 0.8) 0%, rgba(10, 12, 15, 0) 40%);
}
.mh-hero-inner {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: end;
}
.mh-hero-copy .mh-kicker { color: var(--signal-400); }
.mh-hero-copy .mh-kicker::before { background: var(--signal-400); }
.mh-hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: 0.005em;
}
.mh-hero h1 .accent { color: var(--signal-400); }
.mh-hero-copy p.lead {
  color: var(--steel-150);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 44ch;
  margin-top: 22px;
}
.mh-hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px;
}
.mh-hero-badges span {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--steel-150);
  padding: 7px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 40px;
  background: rgba(20, 24, 29, 0.6);
}
.mh-hero-badges span b { color: var(--signal-400); font-weight: 700; }

.mh-spec {
  background: rgba(18, 21, 26, 0.86);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--signal);
  border-radius: var(--radius-lg);
  padding: 22px 22px 8px;
  backdrop-filter: blur(6px);
}
.mh-spec > strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.mh-spec-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark-soft);
}
.mh-spec-row .val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--signal-400);
  min-width: 5.5ch;
}
.mh-spec-row p { font-size: 0.9rem; color: var(--body-d); }

.mh-hero-play {
  position: absolute;
  right: 0; bottom: 22px;
  z-index: 2;
}
@media (max-width: 900px) {
  .mh-hero-inner { grid-template-columns: 1fr; align-items: start; }
  .mh-spec { max-width: 460px; }
}

/* Video toggle button (mute/play control on hero) */
.mh-video-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(18, 21, 26, 0.8);
  border: 1px solid var(--line-dark);
  color: var(--steel-150);
  font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 40px; cursor: pointer; min-height: 40px;
}
.mh-video-toggle:hover { border-color: var(--signal); color: #fff; }

/* ==========================================================================
   SUB-HERO (inner pages)
   ========================================================================== */
.mh-subhero {
  background: var(--steel-900);
  border-bottom: 3px solid var(--signal);
  position: relative;
  overflow: hidden;
}
.mh-subhero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--brushed);
  opacity: 0.5;
  pointer-events: none;
}
.mh-subhero-inner {
  position: relative;
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 88px) 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(26px, 5vw, 56px);
  align-items: center;
}
.mh-subhero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4rem); }
.mh-subhero p { color: var(--body-d); margin-top: 18px; font-size: 1.05rem; max-width: 52ch; }
.mh-subhero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  aspect-ratio: 4 / 3;
}
.mh-subhero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .mh-subhero-inner { grid-template-columns: 1fr; }
  .mh-subhero-media { max-height: 300px; }
}

/* ==========================================================================
   TRUST NUMBERS BAND
   ========================================================================== */
.mh-stats {
  background: var(--steel-950);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.mh-stats-grid {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.mh-stats-grid > div {
  padding: clamp(26px, 3vw, 40px) 20px;
  border-left: 1px solid var(--line-dark);
  text-align: left;
}
.mh-stats-grid > div:first-child { border-left: 0; }
.mh-stats-grid .num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  color: #fff;
  line-height: 1;
}
.mh-stats-grid .num b { color: var(--signal-400); font-weight: 400; }
.mh-stats-grid .lbl {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-d);
}
@media (max-width: 900px) { .mh-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .mh-stats-grid > div:nth-child(4) { border-left: 0; } }
@media (max-width: 560px) { .mh-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mh-stats-grid > div:nth-child(odd) { border-left: 0; } }

/* ==========================================================================
   PROCESS — four pillars
   ========================================================================== */
.mh-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.mh-process-grid article {
  background: var(--steel-850);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--signal);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  position: relative;
}
.mh-process-grid .step {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--steel-700);
  line-height: 0.8;
}
.mh-process-grid h3 { color: #fff; font-size: 1.2rem; margin: 12px 0 8px; }
.mh-process-grid p { font-size: 0.92rem; color: var(--body-d); }
@media (max-width: 860px) { .mh-process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .mh-process-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   LEISTUNGEN — service cards
   ========================================================================== */
.mh-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mh-service {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.on-dark .mh-service, .on-steel .mh-service { background: var(--steel-850); border-color: var(--line-dark); }
.mh-service:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--signal); }
@media (prefers-reduced-motion: reduce) { .mh-service:hover { transform: none; } }
.mh-service-figure { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--steel-800); }
.mh-service-figure img { width: 100%; height: 100%; object-fit: cover; }
.mh-service-figure .no {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-display); font-size: 0.9rem;
  color: #14100c; background: var(--signal);
  padding: 3px 10px; border-radius: 3px;
}
.mh-service-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mh-service-body h3 { font-size: 1.28rem; }
.on-dark .mh-service h3, .on-steel .mh-service h3 { color: #fff; }
.mh-service-body p { font-size: 0.94rem; }
.on-dark .mh-service p, .on-steel .mh-service p { color: var(--body-d); }
.mh-service-body ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.mh-service-body li { font-size: 0.86rem; padding-left: 20px; position: relative; }
.mh-service-body li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 3px; background: var(--signal);
}
.mh-service .go {
  margin-top: auto; padding-top: 8px;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--signal-700);
}
.on-dark .mh-service .go, .on-steel .mh-service .go { color: var(--signal-400); }
@media (max-width: 900px) { .mh-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mh-services-grid { grid-template-columns: 1fr; } }

/* Compact info grid (facts / bullets) */
.mh-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mh-info-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mh-info-grid article {
  background: var(--steel-850);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}
.on-light .mh-info-grid article { background: var(--white); border-color: var(--line); }
.mh-info-grid .tag {
  font-family: var(--font-body); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-400);
}
.on-light .mh-info-grid .tag { color: var(--signal-700); }
.mh-info-grid h3 { font-size: 1.12rem; margin: 8px 0 8px; color: #fff; }
.on-light .mh-info-grid h3 { color: var(--ink); }
.mh-info-grid p { font-size: 0.9rem; color: var(--body-d); }
.on-light .mh-info-grid p { color: var(--body-l); }
@media (max-width: 900px) { .mh-info-grid, .mh-info-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mh-info-grid, .mh-info-grid.cols-3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   FEATURE PANEL (shared shell for Lösungsfinder / Rechner / Konfigurator)
   ========================================================================== */
.mh-tool {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}
.mh-tool-copy { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 20px); }
.mh-panel {
  background: var(--steel-850);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.on-light .mh-panel { background: var(--white); border-color: var(--line); }
.mh-panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: var(--steel-950);
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em;
  color: #fff; font-size: 0.95rem;
}
.mh-panel-head .led { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.mh-controls { display: grid; gap: 18px; padding: 22px 22px; }
.mh-controls label {
  display: grid; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--steel-200);
}
.on-light .mh-controls label { color: var(--muted-l); }
.mh-controls select,
.mh-controls input[type="text"],
.mh-controls input[type="email"],
.mh-controls input[type="tel"],
.mh-controls textarea,
.mh-form input, .mh-form select, .mh-form textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--on-dark);
  background: var(--steel-900);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}
.on-light .mh-controls select, .on-light .mh-form input,
.on-light .mh-form select, .on-light .mh-form textarea,
.on-light .mh-controls textarea, .on-light .mh-controls input[type="text"] {
  color: var(--ink); background: var(--white); border-color: var(--line-strong);
}
.mh-controls select:focus, .mh-form input:focus, .mh-form select:focus, .mh-form textarea:focus,
.mh-controls input:focus, .mh-controls textarea:focus { border-color: var(--signal); }
.mh-controls input[type="range"] { padding: 0; min-height: 30px; accent-color: var(--signal); }
.mh-range-val { font-family: var(--font-display); color: var(--signal-400); font-size: 1.1rem; }
.on-light .mh-range-val { color: var(--signal-700); }

/* Segmented button group (accessible radio-style) */
.mh-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.mh-seg button {
  flex: 1 1 auto;
  min-height: 46px; padding: 10px 14px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--steel-200);
  background: var(--steel-900);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  cursor: pointer;
}
.on-light .mh-seg button { color: var(--body-l); background: var(--white); border-color: var(--line-strong); }
.mh-seg button[aria-pressed="true"] { background: var(--signal); color: #14100c; border-color: var(--signal); }

.mh-result {
  padding: 22px;
  border-top: 1px dashed var(--line-dark);
  background:
    linear-gradient(180deg, rgba(242, 106, 27, 0.05), transparent 60%),
    var(--steel-880);
}
.on-light .mh-result { background: var(--steel-050); border-top-color: var(--line); }
.mh-result .rk { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal-400); }
.on-light .mh-result .rk { color: var(--signal-700); }
.mh-result h3 { font-size: 1.3rem; color: #fff; margin: 8px 0 8px; }
.on-light .mh-result h3 { color: var(--ink); }
.mh-result p { font-size: 0.94rem; color: var(--body-d); }
.on-light .mh-result p { color: var(--body-l); }
.mh-result ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.mh-result li { font-size: 0.88rem; padding-left: 22px; position: relative; color: var(--body-d); }
.on-light .mh-result li { color: var(--body-l); }
.mh-result li::before { content: "→"; position: absolute; left: 0; color: var(--signal-400); font-weight: 700; }
.on-light .mh-result li::before { color: var(--signal-700); }

.mh-meter { margin: 16px 0 4px; }
.mh-meter .track { height: 10px; border-radius: 40px; background: var(--steel-700); overflow: hidden; }
.on-light .mh-meter .track { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.mh-meter .fill {
  height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--signal), var(--signal-400));
  border-radius: 40px;
  transition: width 0.4s ease;
}
@media (prefers-reduced-motion: reduce) { .mh-meter .fill { transition: none; } }
.mh-meter .cap { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-d); }

.mh-figures { display: flex; gap: 28px; margin: 16px 0; flex-wrap: wrap; }
.mh-figures div .fv { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.05; color: var(--signal-400); }
.on-light .mh-figures div .fv { color: var(--signal-700); }
.mh-figures div .fl { display: block; margin-top: 4px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-d); }

@media (max-width: 860px) {
  .mh-tool { grid-template-columns: 1fr; }
  .mh-tool-copy { position: static; }
}

/* Prefill toast / helper note */
.mh-note {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.82rem; color: var(--body-d);
  background: var(--signal-tint); border: 1px solid var(--signal-line);
  border-radius: var(--radius); padding: 12px 14px; margin-top: 16px;
}
.mh-note b { color: var(--signal-400); }
.on-light .mh-note { color: var(--body-l); }
.on-light .mh-note b { color: var(--signal-700); }

/* ==========================================================================
   SCHADENS-MAP
   ========================================================================== */
.mh-damage {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}
.mh-damage-map {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at 30% 24%, rgba(242, 106, 27, 0.08), transparent 40%),
    var(--steel-900);
  overflow: hidden;
}
.mh-damage-map .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark-soft) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.6;
}
.mh-damage-map button {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  min-width: 46px; min-height: 46px;
  padding: 8px 14px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--steel-100);
  background: var(--steel-800);
  border: 1px solid var(--line-dark);
  border-radius: 40px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.mh-damage-map button::after {
  content: ""; position: absolute; inset: -6px; border-radius: 40px;
  border: 1px solid transparent;
}
.mh-damage-map button:hover { background: var(--steel-700); }
.mh-damage-map button.is-active {
  background: var(--signal); color: #14100c; border-color: var(--signal);
  transform: translate(-50%, -50%) scale(1.06);
}
@media (prefers-reduced-motion: reduce) { .mh-damage-map button { transition: none; } }
@media (max-width: 820px) { .mh-damage { grid-template-columns: 1fr; } }

/* ==========================================================================
   SERVICE RADIUS MAP
   ========================================================================== */
.mh-radius {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
}
.mh-radius-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  min-height: 340px;
  background: var(--steel-900);
}
.mh-radius-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(0.3) contrast(1.05); }
.mh-radius-ring {
  position: absolute; left: 50%; top: 50%;
  width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 2px dashed var(--signal);
  border-radius: 50%;
  background: rgba(242, 106, 27, 0.08);
  pointer-events: none;
}
.mh-radius-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 4px rgba(242, 106, 27, 0.3);
  pointer-events: none;
}
.mh-radius-cap {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(12, 14, 17, 0.85); color: var(--steel-100);
  font-size: 0.78rem; padding: 7px 12px; border-radius: 40px;
  border: 1px solid var(--line-dark);
}
.mh-zone-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.mh-zone-list button, .mh-zone-list span {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--steel-100); background: var(--steel-850);
  border: 1px solid var(--line-dark); border-radius: 40px;
  padding: 9px 15px; min-height: 40px; cursor: default;
}
@media (max-width: 820px) { .mh-radius { grid-template-columns: 1fr; } }

/* ==========================================================================
   REFERENZEN — before/after slider + facts
   ========================================================================== */
.mh-ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.mh-ref {
  background: var(--steel-850);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.on-light .mh-ref { background: var(--white); border-color: var(--line); }
.mh-ba {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.mh-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.mh-ba .after { clip-path: inset(0 0 0 var(--split, 50%)); }
.mh-ba .tag {
  position: absolute; top: 12px; z-index: 3;
  font-family: var(--font-body); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px; color: #fff;
  background: rgba(12, 14, 17, 0.78);
}
.mh-ba .tag.b { left: 12px; }
.mh-ba .tag.a { right: 12px; background: var(--signal); color: #14100c; }
.mh-ba .divider {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%);
  width: 2px; background: var(--signal); z-index: 4; transform: translateX(-1px);
}
.mh-ba .knob {
  position: absolute; top: 50%; left: var(--split, 50%);
  transform: translate(-50%, -50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--signal); color: #14100c;
  display: grid; place-items: center; font-weight: 700;
  border: 3px solid #14100c; box-shadow: var(--shadow);
}
.mh-ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; z-index: 6;
}
.mh-ref-body { padding: 18px 20px 22px; }
.mh-ref-body h3 { font-size: 1.24rem; color: #fff; }
.on-light .mh-ref-body h3 { color: var(--ink); }
.mh-ref-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.mh-ref-facts li {
  font-size: 0.78rem; color: var(--body-d);
  background: var(--steel-900); border: 1px solid var(--line-dark);
  border-radius: 40px; padding: 5px 12px;
}
.on-light .mh-ref-facts li { background: var(--paper); border-color: var(--line); color: var(--body-l); }
.mh-ref-facts li b { color: var(--signal-400); }
.on-light .mh-ref-facts li b { color: var(--signal-700); }
@media (max-width: 720px) { .mh-ref-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   MEDIATHEK — project video strip
   ========================================================================== */
.mh-media-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.mh-media-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-dark); aspect-ratio: 16 / 10;
  background: var(--steel-800); cursor: pointer;
}
.mh-media-card video, .mh-media-card .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mh-media-card .poster { background-size: cover; background-position: center; }
.mh-media-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 12, 15, 0.82), rgba(10, 12, 15, 0.05) 55%);
}
.mh-media-card .meta { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
.mh-media-card .meta strong { display: block; color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 1rem; }
.mh-media-card .meta span { color: var(--steel-200); font-size: 0.8rem; }
.mh-media-card .playicon {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(242, 106, 27, 0.92); color: #14100c;
  display: grid; place-items: center; font-size: 0.9rem;
}
@media (max-width: 820px) { .mh-media-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mh-media-strip { grid-template-columns: 1fr; } }

/* ==========================================================================
   PARTNER LOGOS
   ========================================================================== */
.mh-partners { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.mh-partners span {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  color: var(--steel-400);
  padding: 12px 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--steel-880);
}
.mh-partners span b { color: var(--steel-200); font-weight: 400; }

/* Seal / certificate row */
.mh-seals { display: flex; flex-wrap: wrap; gap: 12px; }
.mh-seal {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-lg);
  background: var(--steel-850); border: 1px solid var(--line-dark);
}
.on-light .mh-seal { background: var(--white); border-color: var(--line); }
.mh-seal .ico {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--signal-tint); color: var(--signal-400);
  font-size: 1.1rem; border: 1px solid var(--signal-line);
}
.mh-seal .txt strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; color: #fff; font-size: 0.95rem; }
.on-light .mh-seal .txt strong { color: var(--ink); }
.mh-seal .txt span { font-size: 0.8rem; color: var(--muted-d); }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.mh-voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mh-voice {
  background: var(--steel-850); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); padding: 18px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.on-light .mh-voice { background: var(--white); border-color: var(--line); }
.mh-voice .stars { color: var(--signal); letter-spacing: 2px; font-size: 0.9rem; }
.mh-voice .stars .dim { color: var(--steel-600); }
.mh-voice blockquote { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--body-d); }
.on-light .mh-voice blockquote { color: var(--body-l); }
.mh-voice cite { display: flex; align-items: center; gap: 12px; font-style: normal; margin-top: auto; }
.mh-voice .av {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--font-display);
  color: #14100c; background: var(--signal);
}
.mh-voice cite strong { display: block; color: #fff; font-size: 0.92rem; }
.on-light .mh-voice cite strong { color: var(--ink); }
.mh-voice cite small { color: var(--muted-d); font-size: 0.8rem; }
@media (max-width: 860px) { .mh-voices { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ (accordion)
   ========================================================================== */
.mh-faq { display: grid; gap: 12px; max-width: 900px; }
.mh-faq details {
  background: var(--steel-850); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); overflow: hidden;
}
.on-light .mh-faq details { background: var(--white); border-color: var(--line); }
.mh-faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; padding-right: 52px; position: relative;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em;
  color: #fff; font-size: 1.02rem; min-height: 44px; display: flex; align-items: center;
}
.on-light .mh-faq summary { color: var(--ink); }
.mh-faq summary::-webkit-details-marker { display: none; }
.mh-faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.5rem; color: var(--signal); line-height: 1;
}
.mh-faq details[open] summary::after { content: "–"; }
.mh-faq .a { padding: 0 22px 20px; color: var(--body-d); font-size: 0.95rem; }
.on-light .mh-faq .a { color: var(--body-l); }

/* ==========================================================================
   CTA BAND + NOTDIENST ALERT BAND
   ========================================================================== */
.mh-cta-band {
  position: relative;
  background:
    linear-gradient(120deg, var(--steel-950) 40%, rgba(242, 106, 27, 0.18) 120%),
    var(--steel-900);
  border-top: 3px solid var(--signal);
  border-bottom: 1px solid var(--line-dark);
}
.mh-cta-inner {
  width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding: clamp(34px, 5vw, 60px) 0;
}
.mh-cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
.mh-cta-inner p { color: var(--body-d); margin-top: 10px; max-width: 52ch; }
@media (max-width: 720px) { .mh-cta-inner { flex-direction: column; align-items: flex-start; } }

.mh-alert {
  background: var(--steel-950);
  border-top: 3px solid var(--alarm);
  border-bottom: 3px solid var(--alarm);
  position: relative; overflow: hidden;
}
.mh-alert::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background-image: var(--hazard); opacity: 0.9;
}
.mh-alert-inner {
  width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: clamp(28px, 4vw, 46px) 0;
}
.mh-alert strong { display: block; font-family: var(--font-display); text-transform: uppercase; color: #fff; font-size: clamp(1.3rem, 3vw, 2rem); letter-spacing: 0.02em; }
.mh-alert p { color: var(--body-d); margin-top: 6px; }
.mh-alert .phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: #fff; text-decoration: none;
  background: var(--alarm); padding: 14px 26px; border-radius: var(--radius);
  white-space: nowrap;
}
.mh-alert .phone:hover { background: var(--alarm-700); }
@media (max-width: 720px) { .mh-alert-inner { flex-direction: column; align-items: flex-start; } }

/* Big red notdienst hero (notdienst page) */
.mh-notdienst-hero {
  background:
    radial-gradient(circle at 80% -10%, rgba(226, 59, 46, 0.35), transparent 55%),
    var(--steel-950);
  border-bottom: 3px solid var(--alarm);
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.mh-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: var(--steel-850); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); padding: 24px;
}
.on-light .mh-form { background: var(--white); border-color: var(--line); }
.mh-form label { display: grid; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--steel-200); }
.on-light .mh-form label { color: var(--muted-l); }
.mh-form label.wide { grid-column: 1 / -1; }
.mh-form textarea { min-height: 120px; resize: vertical; }
.mh-form button { grid-column: 1 / -1; }
.mh-form .form-msg { grid-column: 1 / -1; font-size: 0.9rem; color: var(--signal-400); min-height: 1.2em; }
.on-light .mh-form .form-msg { color: var(--signal-700); }
.mh-form .form-msg.ok { color: #43c07a; }
.mh-form-hint { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted-d); }
@media (max-width: 560px) { .mh-form { grid-template-columns: 1fr; } }

/* Two-column generic split */
.mh-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
@media (max-width: 820px) { .mh-split { grid-template-columns: 1fr; } }

/* Team grid */
.mh-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mh-team article {
  background: var(--steel-850); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); overflow: hidden;
}
.on-light .mh-team article { background: var(--white); border-color: var(--line); }
.mh-team .ph { aspect-ratio: 4 / 5; background: var(--steel-800); overflow: hidden; }
.mh-team .ph img { width: 100%; height: 100%; object-fit: cover; }
.mh-team .bio { padding: 18px 20px 22px; }
.mh-team .bio h3 { font-size: 1.16rem; color: #fff; }
.on-light .mh-team .bio h3 { color: var(--ink); }
.mh-team .bio .role { color: var(--signal-400); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 6px 0 10px; }
.on-light .mh-team .bio .role { color: var(--signal-700); }
.mh-team .bio p { font-size: 0.9rem; color: var(--body-d); }
.on-light .mh-team .bio p { color: var(--body-l); }
.mh-team .bio ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.mh-team .bio li { font-size: 0.72rem; color: var(--steel-200); background: var(--steel-900); border: 1px solid var(--line-dark); border-radius: 40px; padding: 4px 10px; }
@media (max-width: 860px) { .mh-team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mh-team { grid-template-columns: 1fr; } }

/* Job cards (Karriere) */
.mh-jobs { display: grid; gap: 16px; }
.mh-job {
  display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center;
  background: var(--steel-850); border: 1px solid var(--line-dark);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius-lg); padding: 22px 24px;
}
.mh-job h3 { font-size: 1.3rem; color: #fff; }
.mh-job .job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.mh-job .job-meta span { font-size: 0.76rem; color: var(--body-d); background: var(--steel-900); border: 1px solid var(--line-dark); border-radius: 40px; padding: 5px 11px; }
.mh-job .job-meta span b { color: var(--signal-400); }
.mh-job p { margin-top: 12px; font-size: 0.92rem; color: var(--body-d); }
.mh-job .apply { align-self: center; white-space: nowrap; }
@media (max-width: 620px) { .mh-job { grid-template-columns: 1fr; } .mh-job .apply { justify-self: start; } }

/* Heat-pump 3D moment */
.mh-3d {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at 50% 40%, rgba(242, 106, 27, 0.10), transparent 60%),
    var(--steel-900);
  width: 100%;
  aspect-ratio: 5 / 4;
}
.mh-3d-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.mh-3d-canvas.is-live { opacity: 1; }
.mh-3d-poster { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.mh-3d-poster .ring { width: 120px; height: 120px; border-radius: 50%; border: 2px dashed var(--signal-line); display: grid; place-items: center; margin: 0 auto 16px; color: var(--signal-400); font-family: var(--font-display); font-size: 1.4rem; }
.mh-3d-poster p { color: var(--muted-d); font-size: 0.85rem; max-width: 32ch; margin: 0 auto; }
.mh-3d-hint {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--steel-200);
  background: rgba(12, 14, 17, 0.7); border: 1px solid var(--line-dark);
  padding: 7px 12px; border-radius: 40px;
}
.mh-3d-controls { position: absolute; right: 14px; top: 14px; z-index: 3; display: flex; gap: 8px; }
.mh-3d-controls button {
  min-height: 40px; padding: 8px 14px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--steel-100); background: rgba(18, 21, 26, 0.85);
  border: 1px solid var(--line-dark); border-radius: 40px;
}
.mh-3d-controls button[aria-pressed="true"] { background: var(--signal); color: #14100c; border-color: var(--signal); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.mh-footer { background: var(--steel-950); border-top: 3px solid var(--signal); color: var(--body-d); }
.mh-footer-main {
  width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px;
  padding: clamp(44px, 6vw, 72px) 0 40px;
}
.mh-footer .brand p { margin-top: 14px; font-size: 0.9rem; max-width: 40ch; }
.mh-footer-col strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; color: #fff; margin-bottom: 14px; font-size: 0.95rem; }
.mh-footer-col a, .mh-footer-col p { display: block; color: var(--body-d); text-decoration: none; font-size: 0.9rem; margin-bottom: 8px; }
.mh-footer-col a:hover { color: var(--signal-400); }
.mh-footer-col.notdienst a { color: var(--signal-400); font-weight: 700; }
.mh-footer-bottom {
  border-top: 1px solid var(--line-dark);
  width: var(--wrap); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0; font-size: 0.78rem; color: var(--muted-d);
}
.mh-footer-bottom a { color: var(--signal-400); text-decoration: none; }
@media (max-width: 860px) { .mh-footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .mh-footer-main { grid-template-columns: 1fr; } }

/* ==========================================================================
   SCROLL REVEAL (module adds .is-in)
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Grid children must be allowed to shrink below their content size, otherwise a
   long word / 1fr track can push a grid wider than its column and overflow. */
.mh-info-grid article, .mh-service, .mh-voice, .mh-team article, .mh-ref,
.mh-process-grid article, .mh-job, .mh-seal, .mh-media-card { min-width: 0; }
/* On phones every info-grid collapses to one column — even where an inline
   grid-template-columns was set for wider screens (inline would otherwise win). */
@media (max-width: 560px) {
  .mh-info-grid { grid-template-columns: 1fr !important; }
}

/* utility spacing */
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 30px; }
.divider-rule { height: 1px; background: var(--line-dark); border: 0; margin: 0; }

/* ==========================================================================
   FEEDBACK ROUND: pictograms, process flow with arrows, tool differentiation,
   secure upload, catchment map, gallery, Fließtext prose
   ========================================================================== */

/* Pictograms (inline SVG, stroke=currentColor) */
.mh-ico { display: inline-flex; width: 38px; height: 38px; color: var(--signal-400); flex: none; }
.on-light .mh-ico { color: var(--signal-700); }
.mh-ico svg { width: 100%; height: 100%; display: block; }
.mh-info-grid .mh-ico { margin-bottom: 12px; }
.mh-seal .ico .mh-ico { width: 22px; height: 22px; color: var(--signal-400); }

/* Flowing text blocks (Fließtext) */
.mh-prose { max-width: 68ch; }
.mh-prose p { margin-top: 16px; font-size: 1.05rem; line-height: 1.75; }
.on-dark .mh-prose p, .on-steel .mh-prose p { color: var(--body-d); }
.on-light .mh-prose p { color: var(--body-l); }
.mh-prose p strong { color: inherit; font-weight: 700; }
.on-dark .mh-prose p strong { color: #fff; }

/* Process as a horizontal flow with arrows between the phases */
.mh-process-flow { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
.mh-process-flow article {
  flex: 1 1 0; min-width: 0;
  background: var(--steel-850);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--signal);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
.on-light .mh-process-flow article { background: var(--white); border-color: var(--line); border-top-color: var(--signal); }
.mh-process-flow article .step {
  font-family: var(--font-body); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-d);
}
.mh-process-flow h3 { color: #fff; font-size: 1.14rem; margin: 6px 0 8px; }
.on-light .mh-process-flow h3 { color: var(--ink); }
.mh-process-flow p { font-size: 0.9rem; color: var(--body-d); }
.on-light .mh-process-flow p { color: var(--body-l); }
.mh-flow-arrow {
  display: flex; align-items: center; justify-content: center; flex: none;
  color: var(--signal); font-size: 1.7rem; line-height: 1;
}
@media (max-width: 860px) {
  .mh-process-flow { flex-direction: column; }
  .mh-flow-arrow { transform: rotate(90deg); padding: 2px 0; }
}

/* Tool differentiation: same body chrome, distinct header hue + pictogram */
.mh-panel-head .mh-ico { width: 22px; height: 22px; }
.mh-panel-head .head-sub { font-family: var(--font-body); font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted-d); font-size: 0.78rem; margin-left: auto; }
.mh-panel.tool-a .mh-panel-head { background: linear-gradient(90deg, rgba(242, 106, 27, 0.20), var(--steel-950) 70%); }
.mh-panel.tool-b .mh-panel-head { background: linear-gradient(90deg, rgba(74, 120, 150, 0.22), var(--steel-950) 70%); }
.mh-panel.tool-b .mh-panel-head .led { background: #5fa8d0; box-shadow: 0 0 10px #5fa8d0; }
.mh-panel.tool-c .mh-panel-head { background: linear-gradient(90deg, rgba(150, 120, 80, 0.22), var(--steel-950) 70%); }
.mh-panel.tool-c .mh-panel-head .led { background: #cfa15a; box-shadow: 0 0 10px #cfa15a; }

/* Secure upload */
.mh-upload { grid-column: 1 / -1; display: grid; gap: 10px; }
.mh-upload-drop {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px dashed var(--line-dark); border-radius: var(--radius);
  padding: 14px 16px; min-height: 52px; cursor: pointer;
  color: var(--steel-200); font-weight: 600; font-size: 0.9rem;
  background: var(--steel-900);
}
.on-light .mh-upload-drop { background: var(--paper); border-color: var(--line-strong); color: var(--body-l); }
.mh-upload-drop:hover, .mh-upload-drop:focus-within { border-color: var(--signal); color: #fff; }
.on-light .mh-upload-drop:hover { color: var(--ink); }
.mh-upload-drop .mh-ico { width: 22px; height: 22px; }
.mh-upload-hint { font-size: 0.76rem; color: var(--muted-d); }
.mh-upload-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mh-upload-item { display: flex; align-items: center; gap: 12px; background: var(--steel-900); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 8px 10px; }
.on-light .mh-upload-item { background: var(--white); border-color: var(--line); }
.mh-upload-thumb { width: 46px; height: 46px; border-radius: 4px; overflow: hidden; flex: none; background: var(--steel-800); display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; color: var(--signal-400); }
.mh-upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mh-upload-thumb.is-doc { background: var(--signal-tint); }
.mh-upload-meta { flex: 1; min-width: 0; }
.mh-upload-meta strong { display: block; font-size: 0.84rem; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.on-light .mh-upload-meta strong { color: var(--ink); }
.mh-upload-meta small { color: var(--muted-d); font-size: 0.74rem; }
.mh-upload-remove { flex: none; width: 32px; height: 32px; border-radius: 4px; border: 1px solid var(--line-dark); background: transparent; color: var(--steel-200); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.mh-upload-remove:hover { border-color: var(--alarm); color: var(--alarm); }
.mh-upload-msg { font-size: 0.8rem; color: var(--muted-d); min-height: 1em; }
.mh-upload-msg.is-error { color: var(--alarm); }
.on-light .mh-upload-msg.is-error { color: var(--alarm-700); }

/* Catchment-area SVG map (replaces the misaligned OSM overlay) */
.mh-geo {
  position: relative; width: 100%;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-dark);
  background: radial-gradient(circle at 50% 45%, rgba(242,106,27,0.06), transparent 60%), var(--steel-900);
}
.mh-geo svg { width: 100%; height: auto; display: block; }
.mh-geo .town { cursor: pointer; }
.mh-geo .town-dot { fill: var(--steel-300); transition: fill 0.15s ease, r 0.15s ease; }
.mh-geo .town-label { fill: var(--steel-200); font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.mh-geo .town[aria-pressed="true"] .town-dot { fill: var(--signal); r: 8; }
.mh-geo .town[aria-pressed="true"] .town-label { fill: #fff; }
.mh-geo .town:hover .town-dot { fill: var(--signal-300); }
.mh-geo .town:focus-visible { outline: none; }
.mh-geo .town:focus-visible .town-dot { stroke: var(--signal-400); stroke-width: 3; }
@media (prefers-reduced-motion: reduce) { .mh-geo .town-dot { transition: none; } }

/* Gallery (Einblicke): static photos with a subtle hover life */
.mh-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mh-gallery figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-dark); aspect-ratio: 4 / 3; background: var(--steel-800); }
.mh-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mh-gallery figure:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .mh-gallery figure:hover img { transform: none; } }
.mh-gallery figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
.mh-gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,12,15,0.8), transparent 55%); }
.mh-gallery figcaption strong { position: relative; z-index: 2; display: block; color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 1rem; }
.mh-gallery figcaption span { position: relative; z-index: 2; color: var(--steel-200); font-size: 0.8rem; }
@media (max-width: 820px) { .mh-gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mh-gallery { grid-template-columns: 1fr; } }

/* Smaller testimonial avatar to match the reduced size */
.mh-voice .av { width: 36px; height: 36px; font-size: 0.85rem; }

/* Emergency actions (Notdienst): big, unmissable */
.mh-emergency-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mh-emergency-actions article {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--steel-880); border: 1px solid var(--line-dark);
  border-left: 4px solid var(--alarm); border-radius: var(--radius-lg);
  padding: 22px 22px;
}
.mh-emergency-actions .n {
  font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--alarm); flex: none;
}
.mh-emergency-actions h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.mh-emergency-actions p { color: var(--body-d); font-size: 0.95rem; }
@media (max-width: 640px) { .mh-emergency-actions { grid-template-columns: 1fr; } }
