/* Metall-Montagen page styles.
 * One long landing page (Home) + Kontakt page.
 * Scoped to classes prefixed mm- to avoid clashing with theme / Elementor.
 */

:root {
  --mm-font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mm-max-width: 1820px;
  --mm-blue: #7191d0;
  --mm-blue-soft: #aab8d5;
  --mm-cloud: #e9eef3;
  --mm-foreground: #0a0a0a;
  --mm-muted: #666666;
  --mm-workshop-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'><g fill='none' stroke='%23111418' stroke-opacity='0.16' stroke-width='1.4'><circle cx='30' cy='30' r='12'/><circle cx='30' cy='30' r='5'/><path d='M30 14 L30 18 M30 42 L30 46 M14 30 L18 30 M42 30 L46 30'/><circle cx='90' cy='90' r='16'/><circle cx='90' cy='90' r='7'/><path d='M90 70 L90 76 M90 104 L90 110 M70 90 L76 90 M104 90 L110 90'/><path d='M58 18 L62 22 L60 26 M64 24 L68 28 L66 32 M70 30 L74 34 L72 38'/><path d='M14 70 L18 74 M20 68 L24 72 M26 66 L30 70'/><rect x='50' y='80' width='22' height='10' rx='2'/><path d='M52 80 L52 70 M70 80 L70 70'/></g></svg>");
  color-scheme: light;
}

body.mm-home, body.mm-kontakt {
  background: #ffffff;
  color: var(--mm-foreground);
  font-family: var(--mm-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.mm-home a, body.mm-kontakt a { color: inherit; text-decoration: none; }

/* ===========================
   HERO
   =========================== */
.mm-hero {
  position: relative;
  height: 180vh;
  min-height: 1238px;
  overflow: clip;
  background: var(--mm-blue);
}
.mm-hero__bg {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--mm-top, #7191d0) 0%,
    var(--mm-mid, #aab8d5) 55%,
    var(--mm-bot, #e9eef3) 100%);
}
.mm-hero__bg-stars {
  position: absolute; inset: 0 0 auto;
  height: 210px;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgb(255 255 255 / 0.78) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgb(255 255 255 / 0.58) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgb(255 255 255 / 0.68) 0 1px, transparent 1.7px);
  background-position: 10% 24%, 38% 16%, 76% 32%;
  background-size: 180px 94px, 260px 120px, 340px 150px;
  opacity: 0.45;
  animation: mm-hero-twinkle 4.8s ease-in-out infinite alternate;
}
@keyframes mm-hero-twinkle {
  0%   { opacity: 0.18; filter: brightness(0.92); }
  50%  { opacity: 0.58; filter: brightness(1.12); }
  100% { opacity: 0.34; filter: brightness(1); }
}

.mm-hero__nav {
  position: fixed; top: 20px; left: 50%;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(180px, 1fr);
  align-items: center; gap: 32px;
  width: min(100% - 96px, var(--mm-max-width));
  margin: 0; padding: 22px 22px 18px;
  color: #fff;
  transform: translate3d(-50%, 0, 0);
  transition: background-color 300ms ease, color 300ms ease, transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease, padding 300ms ease, top 300ms ease;
  border: 1px solid transparent;
  border-radius: 40px;
}
.mm-hero__nav.is-scrolled {
  transform: translate3d(-50%, 12px, 0);
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #111;
  padding: 14px 24px;
  border-radius: 40px;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08), 0 4px 12px -5px rgba(0, 0, 0, 0.03);
}
.mm-hero__nav.is-scrolled .mm-brand__name { color: #111; }
.mm-hero__nav.is-scrolled .mm-brand__mark { background: #111; }
.mm-hero__nav.is-scrolled .mm-brand__mark::before { background: #fff; }

.mm-brand { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.mm-brand__mark {
  position: relative; display: grid; place-items: center;
  width: 29px; aspect-ratio: 1; overflow: hidden; border-radius: 50%;
  background: #fff; transition: background-color 300ms ease;
}
.mm-brand__mark::before {
  content: ""; position: absolute; inset: -8px;
  background: var(--mm-blue);
  clip-path: polygon(0 20%, 100% 8%, 100% 19%, 0 31%, 0 43%, 100% 31%, 100% 42%, 0 54%, 0 66%, 100% 54%, 100% 65%, 0 77%);
}
.mm-brand__name { color: #fff; font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; transition: color 300ms ease; }

.mm-hero__links { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 2.55vw, 44px); color: rgb(255 255 255 / 0.9); font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap; transition: color 300ms ease; }
.mm-hero__links a { transition: color 160ms ease; }
.mm-hero__links a:hover { color: #fff; }
.mm-hero__nav.is-scrolled .mm-hero__links { color: rgba(17, 17, 17, 0.8); }
.mm-hero__nav.is-scrolled .mm-hero__links a { color: inherit; }
.mm-hero__nav.is-scrolled .mm-hero__links a:hover { color: #111; }

.mm-hero__cta {
  position: relative; justify-self: end;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 168px; min-height: 50px; padding: 0 22px;
  border-radius: 999px;
  background-color: #111 !important;
  background-image: none !important;
  color: #fff !important;
  font-size: 14px; font-weight: 700; line-height: 20px;
  box-shadow: 0 6px 18px rgb(31 44 78 / 0.28);
  transition: background-color 160ms ease, transform 160ms ease, color 160ms ease;
}
.mm-hero__cta:hover { background-color: #2a2a2a !important; color: #fff !important; transform: translateY(-1px); }
.mm-hero__cta i, .mm-hero__cta i.ph { font-size: 18px; color: #fff !important; background: transparent !important; }
.mm-hero__nav.is-scrolled .mm-hero__cta { background: #111 !important; color: #fff !important; box-shadow: none; }

.mm-hero__content {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  height: 100vh; width: min(100%, var(--mm-max-width));
  margin: 0 auto; pointer-events: none;
}
.mm-hero__title {
  position: fixed; top: calc(50% - 56px - clamp(82px, 8vw, 126px)); left: 4%;
  z-index: 10; display: flex; flex-direction: column; align-items: flex-start;
  margin: 0; width: 96vw; color: #fff; font-weight: 300; letter-spacing: 0; line-height: 0.88;
  text-shadow: 0 4px 24px rgb(31 44 78 / 0.35);
  pointer-events: none;
  transform: translate3d(0, var(--mm-scroll-y, 0px), 0);
  will-change: transform, opacity;
}
.mm-hero__title span { display: block; font-size: clamp(144px, 18vw, 285px); white-space: nowrap; }
.mm-hero__title-row {
  position: fixed; top: calc(50% - 56px + clamp(50px, 4.5vw, 90px)); left: 4%;
  z-index: 6; display: flex; align-items: baseline;
  gap: clamp(112px, 12vw, 224px);
  color: #fff; font-weight: 400; pointer-events: none;
  text-shadow: 0 4px 28px rgb(31 44 78 / 0.55), 0 2px 8px rgb(31 44 78 / 0.4);
  transform: translate3d(15vw, var(--mm-scroll-y, 0px), 0);
  will-change: transform, opacity;
}
.mm-hero__title-row span { font-size: clamp(144px, 18vw, 285px); }
.mm-hero__title-row span:last-child { transform: translateX(112px); }
.mm-hero__visual {
  position: fixed; z-index: 3; left: 50%; top: -15px;
  width: auto; height: calc((100% + 15px) * 1.2);
  max-width: calc(100vw - 96px); max-height: 880px;
  aspect-ratio: 2 / 3;
  transform: translate3d(-50%, var(--mm-scroll-y, 0px), 0);
  will-change: transform, opacity;
  filter: drop-shadow(0 28px 34px rgb(26 31 42 / 0.22));
  pointer-events: none;
}
.mm-hero__visual img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: center bottom; }

.mm-hero__caption {
  position: fixed; z-index: 4; left: clamp(24px, 3.85vw, 78px); bottom: 48px;
  display: inline-flex; align-items: center; gap: 24px;
  max-width: min(170px, calc(50vw - 112px));
  margin: 0; color: rgb(42 42 42 / 0.58);
  font-size: 16px; font-weight: 400; line-height: 22px; letter-spacing: 0;
  transform: translate3d(0, var(--mm-scroll-y, 0px), 0);
  will-change: transform, opacity;
}
.mm-hero__caption::before { content: ""; display: block; width: 1px; height: 44px; background: rgb(42 42 42 / 0.32); }
.mm-hero.is-past .mm-hero__title,
.mm-hero.is-past .mm-hero__title-row,
.mm-hero.is-past .mm-hero__caption,
.mm-hero.is-past .mm-hero__visual { opacity: 0; pointer-events: none; }

@media (max-width: 1180px) {
  .mm-hero__nav { grid-template-columns: auto 1fr auto; width: min(100% - 48px, var(--mm-max-width)); }
  .mm-hero__links { gap: 20px; font-size: 14px; }
  .mm-brand__name { font-size: 22px; }
}
@media (max-width: 860px) {
  .mm-hero { height: 180vh; min-height: 1238px; }
  .mm-hero__nav { grid-template-columns: 1fr auto; padding-top: 22px; }
  .mm-hero__links { display: none; }
  .mm-hero__title span, .mm-hero__title-row span { font-size: clamp(102px, 31.5vw, 192px); }
  .mm-hero__title { top: calc(50% - 56px - clamp(58px, 14vw, 90px)); left: 5%; }
  .mm-hero__title-row { top: calc(50% - 56px + clamp(32px, 9vw, 63px)); left: 5%; transform: translate3d(10vw, var(--mm-scroll-y, 0px), 0); }
  .mm-hero__caption { right: 24px; bottom: 44px; max-width: min(170px, calc(100vw - 48px)); }
}
@media (max-width: 560px) {
  /* Header: more compact, ensure CTA stays visible */
  .mm-hero__nav { width: min(100% - 24px, var(--mm-max-width)); gap: 10px; padding: 14px 8px; }
  .mm-hero__nav.is-scrolled { padding: 10px 16px; }
  .mm-brand__mark { width: 22px; }
  .mm-brand__name { font-size: 15px; letter-spacing: -0.01em; }
  .mm-hero__cta { min-width: auto; min-height: 40px; padding: 0 14px; font-size: 12px; }

  /* Hero: reduce overall height so the title fits below the header */
  .mm-hero { min-height: 900px; height: 160vh; }
  .mm-hero__bg { height: 100vh; }
  .mm-hero__content { height: 100vh; }

  /* Title positioning: push down so it sits BELOW the fixed header */
  .mm-hero__title { top: calc(50% - 56px - clamp(40px, 18vw, 90px)); left: 5%; width: 90vw; }
  .mm-hero__title span { font-size: clamp(64px, 22vw, 130px); line-height: 0.95; }
  .mm-hero__title-row { top: calc(50% - 56px + clamp(80px, 26vw, 130px)); left: 5%; gap: clamp(48px, 16vw, 96px); transform: translate3d(8vw, var(--mm-scroll-y, 0px), 0); }
  .mm-hero__title-row span { font-size: clamp(64px, 22vw, 130px); line-height: 0.95; }
  .mm-hero__title-row span:last-child { transform: translateX(56px); }

  /* Visual: smaller, lower z-index so it never overlaps title */
  .mm-hero__visual { max-height: 60vh; top: 30vh; opacity: 0.4; }
}

/* ===========================
   MISSION
   =========================== */
.mm-mission {
  position: relative; z-index: 40; min-height: 100vh; margin-top: -12vh;
  background: #fff; color: #161616;
}
.mm-mission__inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 2fr);
  grid-template-rows: auto minmax(360px, 1fr);
  column-gap: clamp(56px, 8vw, 170px);
  row-gap: clamp(76px, 5vw, 104px);
  width: min(100% - 96px, var(--mm-max-width));
  min-height: 100vh; margin: 0 auto;
  padding: clamp(34px, 3vw, 54px) 0 clamp(32px, 4vw, 62px);
}
.mm-mission__eyebrow { grid-column: 1; grid-row: 1; align-self: start; margin: 0; color: #202020; font-size: clamp(13px, 0.9vw, 16.8px); font-weight: 700; line-height: 1.22; letter-spacing: 0; }
.mm-mission__statement { grid-column: 2; grid-row: 1; align-self: start; max-width: 1180px; }
.mm-mission__statement h2 { margin: 0; color: #141414; font-size: clamp(29px, 1.95vw, 41.3px); font-weight: 260; line-height: 1.18; letter-spacing: 0; }

.mm-mission__button {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: clamp(46px, 3.3vw, 72px);
  color: #171717;
  font-size: clamp(13.8px, 1vw, 18.3px); font-weight: 700; line-height: 1;
  cursor: pointer;
}
.mm-mission__button-icon {
  position: relative; display: inline-grid; place-items: center;
  width: clamp(58px, 3.65vw, 72px); aspect-ratio: 1;
  border-radius: 50%;
  background: #d8e8ff;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.mm-mission__button-icon i { position: relative; z-index: 1; font-size: clamp(22px, 1.5vw, 28px); color: #0a0a0a; }
.mm-mission__button:hover .mm-mission__button-icon { background: #c7dcfb; transform: rotate(22deg); }
.mm-mission__button span:last-child {
  display: inline-flex; align-items: center;
  min-height: clamp(58px, 3.65vw, 72px); padding: 0 clamp(18px, 1.35vw, 26px);
  border: 1px solid #c6c6c6; border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.04);
}

.mm-mission__support { grid-column: 1; grid-row: 2; align-self: start; max-width: 520px; margin: 0; color: #5f5f5f; font-size: clamp(23.7px, 1.56vw, 30.6px); font-weight: 370; line-height: 1.18; letter-spacing: 0; }
.mm-mission__media { grid-column: 2; grid-row: 2; align-self: start; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: transparent; }
.mm-mission__media video { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1180px) {
  .mm-mission__inner { grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.7fr); column-gap: clamp(36px, 5vw, 72px); width: min(100% - 48px, var(--mm-max-width)); }
}
@media (max-width: 860px) {
  .mm-mission { margin-top: -8vh; }
  .mm-mission__inner { display: flex; flex-direction: column; gap: 44px; width: min(100% - 48px, var(--mm-max-width)); min-height: auto; padding: 34px 0 40px; }
  .mm-mission__support { max-width: 640px; margin: 52px 0 0; }
  .mm-mission__media { margin-top: 8px; }
}

/* ===========================
   VERFAHREN (showcase - tabbed)
   =========================== */
.mm-verfahren { position: relative; z-index: 50; background: #0a0e14; color: #fff; overflow: hidden; }
.mm-verfahren__bg { position: absolute; inset: 0; z-index: 0; }
.mm-verfahren__bg video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mm-verfahren__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,20,0.55) 0%, rgba(10,14,20,0.78) 100%); pointer-events: none; }
.mm-verfahren__inner { position: relative; z-index: 1; padding: clamp(56px, 7vw, 110px) clamp(32px, 4.5vw, 80px); max-width: var(--mm-max-width); margin: 0 auto; }
.mm-verfahren__head { margin-bottom: clamp(40px, 5vw, 80px); max-width: 920px; }
.mm-verfahren__head h2 { margin: 0; font-size: clamp(38px, 4.4vw, 80px); font-weight: 200; line-height: 1.07; letter-spacing: -0.022em; color: #fff; }
.mm-verfahren__head p { max-width: 690px; margin: 22px 0 0; color: rgba(255,255,255,0.65); font-size: clamp(14px, 1.05vw, 18px); line-height: 1.6; }
.mm-verfahren__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr); gap: clamp(28px, 3vw, 80px); align-items: end; }
.mm-verfahren__panels { position: relative; min-height: 380px; }
.mm-verfahren__panel { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(16px); transition: opacity 380ms ease, transform 380ms ease; pointer-events: none; }
.mm-verfahren__panel.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.mm-verfahren__panel-num { display: block; margin: 0 0 clamp(12px, 1.1vw, 22px); color: rgba(255,255,255,0.45); font-size: clamp(11px, 0.78vw, 14px); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.mm-verfahren__panel h3 { margin: 0 0 clamp(14px, 1.3vw, 26px); font-size: clamp(38px, 4.4vw, 80px); font-weight: 200; line-height: 1.07; letter-spacing: -0.022em; color: #fff; }
.mm-verfahren__panel p { max-width: 560px; margin: 0; color: rgba(255,255,255,0.8); font-size: clamp(14px, 1.05vw, 18px); line-height: 1.6; }
.mm-verfahren__nav { display: flex; flex-direction: column; gap: clamp(10px, 0.9vw, 20px); align-self: end; padding-bottom: 8px; }
.mm-verfahren__nav button {
  background: transparent; border: 0; padding: 8px 0; cursor: pointer; color: rgba(255,255,255,0.5); text-align: left;
  font-size: clamp(16px, 1.15vw, 20px); font-weight: 600; letter-spacing: 0.04em; line-height: 1.3; transition: color 200ms ease;
  display: flex; align-items: center; gap: 14px;
}
.mm-verfahren__nav button:hover { color: rgba(255,255,255,0.8); }
.mm-verfahren__nav button.is-active { color: #fff; }
.mm-verfahren__nav button::before { content: ""; display: inline-block; width: 22px; height: 2px; background: currentColor; opacity: 0.45; transition: width 240ms ease, opacity 240ms ease; flex-shrink: 0; }
.mm-verfahren__nav button.is-active::before { width: 38px; opacity: 1; }

@media (max-width: 860px) {
  .mm-verfahren__grid { grid-template-columns: 1fr; align-items: start; }
  .mm-verfahren__nav { flex-direction: row; flex-wrap: wrap; gap: 14px 24px; padding-bottom: 0; }
  .mm-verfahren__panel h3 { font-size: clamp(30px, 8vw, 54px); }
}

/* ===========================
   CAPABILITIES
   =========================== */
.mm-capabilities { position: relative; z-index: 70; min-height: 100vh; padding: clamp(34px, 4vw, 72px) clamp(16px, 3.8vw, 72px); background: #f7f8f8; color: #111; }
.mm-capabilities__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; max-width: var(--mm-max-width); margin: 0 auto clamp(24px, 3vw, 42px); }
.mm-capabilities__intro { max-width: 860px; }
.mm-capabilities__intro h2 { max-width: 920px; margin: 0; color: #111; font-size: clamp(29px, 3.2vw, 54px); font-weight: 300; line-height: 1.08; }
.mm-capabilities__intro p { max-width: 760px; margin: 18px 0 0; color: #677070; font-size: clamp(14px, 1vw, 17px); line-height: 1.62; }
.mm-capabilities__btn {
  position: relative; flex: 0 0 auto; align-self: flex-start;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 22px 0 24px;
  border: 1px solid rgb(17 17 17 / 0.1); border-radius: 999px;
  background-color: rgb(255 255 255 / 0.86);
  background-image: var(--mm-workshop-svg);
  background-repeat: no-repeat; background-position: 92% center; background-size: 96px 96px;
  color: #111; font-size: 14px; font-weight: 700; line-height: 1;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), 0 18px 44px rgb(31 44 44 / 0.08);
  transition: transform 160ms ease, background-color 160ms ease;
  cursor: pointer;
}
.mm-capabilities__btn:hover { transform: translateY(-1px); background-color: #fff; }
.mm-capabilities__btn i { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #111; color: #fff; font-size: 16px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 4px 12px rgb(17 17 17 / 0.24); }
.mm-capabilities__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 1.25vw, 22px); max-width: var(--mm-max-width); margin: 0 auto; }
.mm-capabilities__col { display: grid; gap: clamp(14px, 1.25vw, 22px); min-width: 0; }
.mm-cap-card { position: relative; overflow: hidden; border: 1px solid rgb(18 35 35 / 0.09); border-radius: 18px; background: #fff; box-shadow: 0 22px 60px rgb(21 34 34 / 0.08); }
.mm-cap-card--video { color: #fff; }
.mm-cap-card--video video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.mm-cap-card--video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(5 12 14 / 0.3), transparent 34%), linear-gradient(0deg, rgb(5 12 14 / 0.78), transparent 48%); pointer-events: none; }
.mm-cap-card--video > * { position: relative; z-index: 1; }
.mm-cap-card__label { display: flex; align-items: center; justify-content: center; padding: 24px; color: rgba(255,255,255,0.78); font-size: 11px; font-weight: 760; letter-spacing: 0.18em; text-transform: uppercase; }
.mm-cap-card--video .mm-cap-card__label {
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 16px 24px !important;
  margin: 0 !important;
  width: 100% !important;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%) !important;
  background-color: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 3 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}
.mm-cap-card--quote .mm-cap-card__label,
.mm-cap-card--tools .mm-cap-card__label,
.mm-cap-card--contact .mm-cap-card__label {
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 14px 18px !important;
  margin: 0 !important;
  color: #111 !important;
  background-color: #f1f3f3 !important;
  background-image: none !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 760 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  align-self: flex-start !important;
  width: auto !important;
  display: inline-flex !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #111 !important;
}
.mm-cap-card__timeline { display: grid; gap: 12px; padding: 0 20px 20px; }
.mm-cap-card__timeline div { display: grid; grid-template-columns: 58px 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; color: rgba(255,255,255,0.76); font-size: 12px; line-height: 1.2; }
.mm-cap-card__timeline b { display: block; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.62); }
.mm-cap-card__timeline strong { color: #fff; font-size: clamp(13px, 0.95vw, 15px); font-weight: 650; }
.mm-cap-card__timeline em { color: rgba(255,255,255,0.58); font-style: normal; white-space: nowrap; }

.mm-cap-card--quote { padding: 24px; background: linear-gradient(135deg, rgb(255 255 255 / 0.72), rgb(238 244 244 / 0.86)), #edf2f2; display: flex; flex-direction: column; justify-content: space-between; }
.mm-cap-card--quote blockquote { margin: 24px 0 20px; color: #263030; font-size: clamp(15px, 1vw, 18px); line-height: 1.62; }
.mm-cap-card--quote p { margin: 0; color: #6b7676; font-size: 14px; line-height: 1.5; }
.mm-cap-card--quote strong { display: block; color: #111; font-size: 15px; }

.mm-cap-card--metric { min-height: 320px; color: #fff; }
.mm-cap-card__metric { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; text-align: center; text-shadow: 0 12px 32px rgb(0 0 0 / 0.3); }
.mm-cap-card__metric strong { position: absolute; top: 50%; left: 50%; font-size: clamp(82px, 7.4vw, 134px); font-weight: 220; letter-spacing: 0; line-height: 0.9; transform: translate(-50%, -50%); }
.mm-cap-card__metric span { position: absolute; right: 24px; bottom: 24px; left: 24px; color: rgba(255,255,255,0.82); font-size: clamp(14px, 1.05vw, 18px); line-height: 1.4; }

.mm-cap-card--tools { padding: 0 0 clamp(20px, 2vw, 28px); background: linear-gradient(135deg, rgb(255 255 255 / 0.72), rgb(231 238 238 / 0.9)), #eef3f3; min-height: 420px; }
.mm-cap-card--tools .mm-tool-marquee { display: grid; gap: 14px; overflow: hidden; padding: 26px 0 8px; mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); }
.mm-cap-card--tools .mm-tool-marquee__row { display: flex; width: max-content; gap: 12px; }
.mm-cap-card--tools .mm-tool-marquee__row span { display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 16px; border: 1px solid rgb(34 52 52 / 0.1); border-radius: 14px; background: rgb(255 255 255 / 0.78); color: #2c3838; font-size: 13px; font-weight: 700; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9); }
.mm-cap-card--tools .mm-tool-marquee__row i { font-size: 20px; }
.mm-cap-card--tools .mm-tool-marquee__row--left { animation: mm-marquee-left 24s linear infinite; }
.mm-cap-card--tools .mm-tool-marquee__row--right { animation: mm-marquee-right 28s linear infinite; }
@keyframes mm-marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mm-marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.mm-cap-card--contact { padding: 20px 76px 20px 24px; min-height: 118px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
.mm-cap-card--contact > div { display: flex; flex-direction: column; gap: 6px; }
.mm-cap-card--contact a:not(.mm-cap-card__icon-button) { display: inline-block; color: #111; font-size: clamp(18px, 1.45vw, 24px); font-weight: 360; letter-spacing: 0; line-height: 1.05; }
.mm-cap-card--contact p { margin: 0; color: #6b7676; font-size: 14px; }
.mm-cap-card__icon-button { position: absolute; top: 50%; right: 16px; z-index: 2; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(17 17 17 / 0.1); border-radius: 50%; background: #111; color: #fff; transform: translateY(-50%); }
.mm-cap-card__icon-button i { font-size: 19px; }

@media (max-width: 1080px) {
  .mm-capabilities__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mm-capabilities__header { flex-direction: column; }
  .mm-capabilities__grid { grid-template-columns: 1fr; }
}

/* ===========================
   STATS
   =========================== */
.mm-stats { position: relative; z-index: 80; min-height: 100vh; padding: clamp(44px, 5vw, 86px) clamp(16px, 3.8vw, 72px) clamp(54px, 5vw, 90px); background: radial-gradient(circle at 78% 18%, rgb(113 145 208 / 0.18), transparent 34%), radial-gradient(circle at 18% 88%, rgb(170 184 213 / 0.11), transparent 28%), linear-gradient(180deg, #111414 0%, #171a1a 100%); color: #f7f8f8; }
.mm-stats__header { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr); gap: clamp(32px, 6vw, 120px); max-width: var(--mm-max-width); margin: 0 auto clamp(34px, 4.5vw, 72px); }
.mm-stats__title-wrap h2 { max-width: 920px; margin: 0; color: #f7f8f8; font-size: clamp(29px, 3.2vw, 54px); font-weight: 300; line-height: 1.08; }
.mm-stats__summary { align-self: start; margin: 0; color: rgb(247 248 248 / 0.8); font-size: clamp(18px, 1.65vw, 28px); font-weight: 360; line-height: 1.34; opacity: 0; transform: translateY(14px); transition: opacity 420ms ease, transform 420ms ease; }
.mm-stats__summary.is-visible { opacity: 1; transform: none; }
.mm-stats__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: var(--mm-max-width); margin: 0 auto; border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.mm-stats__tabs button { position: relative; min-height: 58px; padding: 0 20px 18px 0; border: 0; background: transparent; color: rgb(247 248 248 / 0.5); font: inherit; font-size: clamp(14px, 1.22vw, 22px); font-weight: 430; letter-spacing: 0; text-align: left; cursor: pointer; transition: color 220ms ease; }
.mm-stats__tabs button::after { content: ""; position: absolute; right: 16px; bottom: -1px; left: 0; height: 4px; background: linear-gradient(90deg, var(--mm-blue), #aab8d5); transform: scaleX(0); transform-origin: left; transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1); }
.mm-stats__tabs button.is-active { color: #fff; }
.mm-stats__tabs button.is-active::after { transform: scaleX(1); }

.mm-stats__chart { position: relative; max-width: var(--mm-max-width); min-height: clamp(520px, 58vh, 680px); margin: clamp(28px, 3vw, 48px) auto 0; padding: 0 0 22px; overflow: hidden; border: 1px solid rgb(255 255 255 / 0.08); border-radius: 20px; background-color: rgb(255 255 255 / 0.025); background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(10% - 1px), rgb(255 255 255 / 0.07) calc(10% - 1px), rgb(255 255 255 / 0.07) 10%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 24px 70px rgb(0 0 0 / 0.18); }
.mm-stats__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(18px, 2vw, 28px); border-bottom: 1px solid rgb(255 255 255 / 0.08); background: rgb(255 255 255 / 0.025); }
.mm-stats__head span, .mm-stats__head strong { font-size: clamp(12px, 0.86vw, 14px); line-height: 1; text-transform: uppercase; }
.mm-stats__head span { color: #fff; font-weight: 760; letter-spacing: 0.16em; }
.mm-stats__head strong { color: rgb(247 248 248 / 0.48); font-weight: 620; letter-spacing: 0.12em; }
.mm-stats__bars { display: grid; gap: clamp(16px, 2vh, 26px); padding: clamp(26px, 3vw, 48px) clamp(24px, 2.4vw, 42px) 0; }
.mm-stats__row { display: grid; grid-template-columns: minmax(180px, 0.27fr) minmax(0, 1fr); align-items: center; gap: clamp(18px, 2vw, 34px); opacity: 0; transform: translateY(18px); }
.mm-stats__chart.is-ready .mm-stats__row { animation: mm-stats-row 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: var(--mm-bdelay); }
.mm-stats__label strong, .mm-stats__label span { display: block; }
.mm-stats__label strong { color: #fff; font-size: clamp(15px, 1.1vw, 19px); font-weight: 680; line-height: 1.2; }
.mm-stats__label span { margin-top: 5px; color: rgb(247 248 248 / 0.48); font-size: clamp(12px, 0.86vw, 14px); line-height: 1.35; }
.mm-stats__track { position: relative; height: clamp(48px, 5.4vh, 64px); overflow: hidden; background: rgb(255 255 255 / 0.055); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.075), 0 12px 32px rgb(0 0 0 / 0.16); }
.mm-stats__range { position: absolute; top: 9px; bottom: 9px; left: var(--mm-rstart); width: var(--mm-rwidth); border: 1px solid rgb(170 184 213 / 0.22); background: linear-gradient(90deg, rgb(113 145 208 / 0.05), rgb(170 184 213 / 0.14), rgb(113 145 208 / 0.05)); opacity: 0; transform: scaleX(0.6); transform-origin: left; }
.mm-stats__chart.is-ready .mm-stats__range { animation: mm-stats-range 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: calc(var(--mm-bdelay) + 60ms); }
.mm-stats__bar { position: relative; z-index: 1; width: var(--mm-bar); height: 100%; background: linear-gradient(90deg, rgb(113 145 208 / 0.62) 0%, #8fb0ef 62%, #d6e3ff 100%); box-shadow: 0 0 34px rgb(113 145 208 / 0.24); transform: scaleX(0); transform-origin: left; }
.mm-stats__chart.is-ready .mm-stats__bar { animation: mm-stats-fill 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: calc(var(--mm-bdelay) + 110ms); }
.mm-stats__value { position: absolute; z-index: 3; top: 50%; right: 18px; color: #fff; font-size: clamp(14px, 1vw, 18px); font-weight: 740; transform: translateY(-50%); }
.mm-stats__trace { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mm-stats__spark { position: absolute; top: var(--mm-py); left: var(--mm-px); width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / 0.95) 0 8%, rgb(214 227 255 / 0.42) 9% 22%, transparent 58%); opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
.mm-stats__chart.is-ready .mm-stats__spark { animation: mm-stats-spark 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: calc(var(--mm-bdelay) + 260ms + var(--mm-pdelay)); }

@keyframes mm-stats-row { to { opacity: 1; transform: none; } }
@keyframes mm-stats-fill { to { transform: scaleX(1); } }
@keyframes mm-stats-range { to { opacity: 1; transform: scaleX(1); } }
@keyframes mm-stats-spark { to { opacity: 0.86; transform: translate(-50%, -50%) scale(1); } }

.mm-stats__axis { display: grid; grid-template-columns: minmax(180px, 0.27fr) minmax(0, 1fr); gap: clamp(18px, 2vw, 34px); padding: 14px clamp(24px, 2.4vw, 42px) 0; color: rgb(247 248 248 / 0.42); font-size: clamp(11px, 0.84vw, 14px); }
.mm-stats__axis div { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); }
.mm-stats__axis div span { text-align: left; }
.mm-stats__axis div span:last-child { text-align: right; }

@media (max-width: 980px) {
  .mm-stats__header { grid-template-columns: 1fr; }
  .mm-stats__tabs { display: flex; overflow-x: auto; }
  .mm-stats__tabs button { flex: 0 0 min(260px, 76vw); }
  .mm-stats__row { grid-template-columns: 1fr; gap: 10px; }
  .mm-stats__axis { grid-template-columns: 1fr; }
  .mm-stats__axis > span { display: none; }
}

/* ===========================
   VIDEO STORIES
   =========================== */
.mm-stories { position: relative; z-index: 90; min-height: 100vh; padding: clamp(46px, 5vw, 88px) 0 clamp(44px, 4vw, 74px); overflow: hidden; background: #f7f8f8; color: #111; }
.mm-stories__header { width: min(100% - 96px, 900px); margin: 0 auto clamp(38px, 4vw, 74px); }
.mm-stories__header h2 { margin: 0; color: #111; font-size: clamp(38px, 4.4vw, 76px); font-weight: 300; line-height: 1.08; }
.mm-stories__header p { max-width: 720px; margin: 22px 0 0; color: #697272; font-size: clamp(16px, 1.25vw, 21px); font-weight: 420; line-height: 1.55; }
.mm-stories__rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(520px, 34vw); gap: clamp(28px, 3vw, 54px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 0 max(48px, calc((100vw - var(--mm-max-width)) / 2 + 48px)) 36px; scrollbar-width: none; }
.mm-stories__rail::-webkit-scrollbar { display: none; }
.mm-story-card { scroll-snap-align: center; min-width: 0; opacity: var(--mm-dim, 1); transform: translateY(10px); transition: opacity 260ms ease, transform 260ms ease; }
.mm-story-card:hover { opacity: 1 !important; transform: none; }
.mm-story-card video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 12px; background: #dfe5e6; object-fit: cover; box-shadow: 0 18px 48px rgb(21 34 34 / 0.1); }
.mm-story-card__content { padding: 24px 28px 0; }
.mm-story-card__content p { margin: 0 0 12px; color: #111; font-size: 15px; font-weight: 760; line-height: 1; }
.mm-story-card__content h3 { max-width: 680px; margin: 0; color: #252b2b; font-size: clamp(18px, 1.22vw, 24px); font-weight: 520; line-height: 1.38; }
.mm-story-card__content span { display: block; margin-top: 14px; color: #858d8d; font-size: 14px; line-height: 1.4; }
@media (max-width: 860px) {
  .mm-stories__header { width: min(100% - 48px, 900px); }
  .mm-stories__rail { grid-auto-columns: minmax(320px, 82vw); padding: 0 24px 30px; }
  .mm-story-card { opacity: 1 !important; transform: none; }
}

/* ===========================
   FOOTER
   =========================== */
.mm-footer { position: relative; z-index: 100; overflow: hidden; background: #000; color: #fff; }
.mm-footer__dots { position: relative; height: 120px; overflow: hidden; background: #000; }
.mm-footer__dots-line { position: absolute; left: 0; top: 50%; width: 200%; height: 70px; opacity: 0.75;
  background-image:
    radial-gradient(circle, rgb(255 255 255 / 0.55) 1.5px, transparent 2px),
    radial-gradient(circle, rgb(255 255 255 / 0.35) 1px, transparent 1.5px),
    radial-gradient(circle, rgb(255 255 255 / 0.45) 1.2px, transparent 1.8px);
  background-position: 0 8px, 24px 22px, 48px 14px;
  background-size: 72px 38px, 110px 44px, 160px 52px;
  animation: mm-footerDots 18s linear infinite;
  transform: translateY(-50%);
}
@keyframes mm-footerDots { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(-50%, -50%, 0); } }
.mm-footer__inner { width: min(100% - 96px, var(--mm-max-width)); margin: 0 auto; padding: clamp(34px, 4vw, 66px) 0 clamp(18px, 2vw, 34px); }
.mm-footer__top { display: grid; grid-template-columns: minmax(320px, 1.25fr) repeat(3, minmax(150px, 0.42fr)); gap: clamp(28px, 4vw, 76px); min-height: clamp(220px, 24vw, 330px); }
.mm-footer__top h2 { max-width: 680px; margin: 0; color: #fff; font-size: clamp(34px, 3.5vw, 62px); font-weight: 220; line-height: 1.06; }
.mm-footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 1.35vw, 22px); }
.mm-footer__nav a { color: rgba(255,255,255,0.88); font-size: 16px; font-weight: 650; line-height: 1.1; transition: color 180ms ease, transform 180ms ease; }
.mm-footer__nav a:hover { color: #fff; transform: translateX(3px); }
.mm-footer__brand-row { width: 100%; margin-top: clamp(18px, 3vw, 46px); }
.mm-footer__brand { display: flex; align-items: center; width: 100%; min-width: 0; color: #fff; }
.mm-footer__mark { position: relative; flex: 0 0 clamp(58px, 6.1vw, 118px); aspect-ratio: 1; margin-right: clamp(14px, 1.6vw, 28px); overflow: hidden; border-radius: 50%; background: #fff; }
.mm-footer__mark::before { content: ""; position: absolute; inset: -18%; background: #000; clip-path: polygon(0 20%, 100% 8%, 100% 19%, 0 31%, 0 43%, 100% 31%, 100% 42%, 0 54%, 0 66%, 100% 54%, 100% 65%, 0 77%); }
.mm-footer__brand span:last-child { display: block; flex: 1 1 auto; min-width: 0; font-size: clamp(58px, 11.1vw, 214px); font-weight: 800; letter-spacing: -0.055em; line-height: 0.78; white-space: nowrap; }
.mm-footer__legal { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 18px; margin-top: clamp(14px, 1.4vw, 24px); color: rgba(255,255,255,0.52); font-size: 9px; line-height: 1.35; }
.mm-footer__legal p { margin: 0; }
.mm-footer__legal a { color: inherit; }
.mm-footer__legal a:hover { color: #fff; }
@media (max-width: 980px) {
  .mm-footer__inner { width: min(100% - 48px, var(--mm-max-width)); }
  .mm-footer__top { grid-template-columns: 1fr 1fr; }
  .mm-footer__top h2 { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mm-footer__inner { width: min(100% - 32px, var(--mm-max-width)); }
  .mm-footer__top { grid-template-columns: 1fr; min-height: auto; }
  .mm-footer__nav a { font-size: 15px; }
  .mm-footer__mark { flex-basis: clamp(38px, 12vw, 58px); }
  .mm-footer__brand span:last-child { font-size: clamp(45px, 18vw, 84px); }
}

/* ===========================
   KONTAKT
   =========================== */
.mm-kontakt-page { background: #f7f8f8; color: #111; padding: clamp(46px, 5vw, 88px) clamp(16px, 3.8vw, 72px); }
.mm-kontakt-page__inner { max-width: 980px; margin: 0 auto; }
.mm-kontakt-page h1 { margin: 0 0 18px; font-size: clamp(38px, 4.4vw, 76px); font-weight: 300; line-height: 1.08; }
.mm-kontakt-page p { margin: 0 0 32px; color: #555; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; }
.mm-kontakt-page .wpforms-container { background: #fff; border: 1px solid #e1e4e4; border-radius: 18px; padding: clamp(20px, 2vw, 32px); box-shadow: 0 22px 60px rgb(21 34 34 / 0.08); }

/* ===========================
   LEGAL PAGES (Datenschutz / Impressum / AGB)
   =========================== */
.mm-legal-page .mm-kontakt-page__inner { max-width: 880px; }
.mm-legal-page h1 { font-size: clamp(34px, 4vw, 56px); margin-bottom: 12px; }
.mm-legal-page__meta { color: #888; font-size: 13px; margin: 0 0 32px; }
.mm-legal-page__body { background: #fff; border: 1px solid #e1e4e4; border-radius: 18px; padding: clamp(24px, 2.4vw, 40px); box-shadow: 0 22px 60px rgb(21 34 34 / 0.08); }
.mm-legal-page__body h2 { margin: 28px 0 12px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; color: #111; }
.mm-legal-page__body h2:first-child { margin-top: 0; }
.mm-legal-page__body h3 { margin: 22px 0 10px; font-size: 16px; font-weight: 700; color: #111; }
.mm-legal-page__body p, .mm-legal-page__body li { color: #2a2a2a; font-size: 15px; line-height: 1.7; }
.mm-legal-page__body ul, .mm-legal-page__body ol { margin: 0 0 16px; padding-left: 22px; }
.mm-legal-page__body li { margin-bottom: 6px; }
.mm-legal-page__body a { color: #1e6ba8; text-decoration: underline; }
.mm-legal-page__body a:hover { color: #111; }
.mm-legal-page__body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.mm-legal-page__body th, .mm-legal-page__body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e6e9e9; font-size: 14px; }
.mm-legal-page__body th { background: #f7f8f8; font-weight: 700; }
.mm-legal-page__back { margin-top: 24px; font-size: 14px; }
.mm-legal-page__back a { color: #111; text-decoration: underline; }
.mm-legal-page__back a:hover { color: #1e6ba8; }


/* ===========================
   SUBPAGE HEADER + FOOTER (Kontakt / Datenschutz / Impressum / AGB)
   =========================== */
.mm-subpage-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.mm-subpage-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  width: min(100% - 48px, var(--mm-max-width));
  margin: 0 auto;
  padding: 16px 0;
}
.mm-subpage-header .mm-brand__name { color: #111; }
.mm-subpage-header .mm-brand__mark { background: #111; }
.mm-subpage-header .mm-brand__mark::before { background: #fff; }
.mm-subpage-header__nav {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 2vw, 32px);
  font-size: 14px; font-weight: 600; line-height: 20px; color: rgba(17, 17, 17, 0.8);
  flex-wrap: wrap;
}
.mm-subpage-header__nav a { transition: color 160ms ease; color: inherit; }
.mm-subpage-header__nav a:hover { color: #111; }
.mm-subpage-header__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px;
  background: #111 !important; color: #fff !important;
  font-size: 14px; font-weight: 700; line-height: 20px;
  box-shadow: 0 4px 14px rgb(31 44 78 / 0.18);
  transition: background-color 160ms ease, transform 160ms ease;
}
.mm-subpage-header__cta:hover { background: #2a2a2a !important; transform: translateY(-1px); }
@media (max-width: 860px) {
  .mm-subpage-header__inner { grid-template-columns: 1fr auto; gap: 16px; }
  .mm-subpage-header__nav { display: none; }
}

/* Make sure post-content in the subpage wraps our mm-kontakt-page chrome. */
.mm-subpage-main { background: #f7f8f8; min-height: 70vh; }
.mm-subpage-main > .wp-block-group__inner-container { max-width: 100%; }

/* Footer stays the same as on home, but ensure it sits at the bottom of the body. */
body.mm-subpage { background: #f7f8f8; color: #111; font-family: var(--mm-font); -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
body.mm-subpage a { color: inherit; text-decoration: none; }


/* ===========================
   MOBILE FIXES (comprehensive)
   =========================== */
@media (max-width: 768px) {
  /* Capabilities: cards stack on tablet too */
  .mm-capabilities__grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .mm-capabilities__col { gap: 14px !important; }
  .mm-cap-card { border-radius: 14px !important; }
  .mm-cap-card--video { min-height: 280px; }
  .mm-cap-card__timeline div { grid-template-columns: 44px 12px minmax(0, 1fr) !important; }
  .mm-cap-card__timeline em { display: none; }
  .mm-cap-card--tools .mm-tool-marquee__row span { font-size: 12px; min-height: 44px; padding: 0 12px; }
  .mm-cap-card--contact { padding: 16px 60px 16px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .mm-cap-card__icon-button { width: 36px; height: 36px; right: 12px; }
  .mm-cap-card--contact > div { width: 100%; }
}

@media (max-width: 700px) {
  /* Verfahren: nav becomes 2x2 grid, panels stack vertically */
  .mm-verfahren__grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .mm-verfahren__nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding-bottom: 0 !important;
  }
  .mm-verfahren__nav button { font-size: 15px !important; padding: 12px !important; background: rgba(255,255,255,0.06); border-radius: 8px; }
  .mm-verfahren__nav button.is-active { background: rgba(255,255,255,0.16); }
  .mm-verfahren__nav button::before { width: 14px !important; }
  .mm-verfahren__nav button.is-active::before { width: 22px !important; }
  .mm-verfahren__panels { min-height: 340px; }
  .mm-verfahren__panel h3 { font-size: clamp(28px, 9vw, 44px) !important; }
}

@media (max-width: 860px) {
  /* Stats: simplify chart for mobile */
  .mm-stats__chart { min-height: auto !important; padding-bottom: 20px !important; }
  .mm-stats__bars { padding: 20px 18px 0 !important; gap: 14px !important; }
  .mm-stats__row { gap: 8px !important; }
  .mm-stats__label strong { font-size: 14px !important; }
  .mm-stats__label span { font-size: 12px !important; }
  .mm-stats__track { height: 36px !important; }
  .mm-stats__value { font-size: 13px !important; right: 12px !important; }
  .mm-stats__axis { display: none !important; }
  .mm-stats__head { padding: 14px 16px !important; flex-direction: column; align-items: flex-start; gap: 8px; }
  .mm-stats__head span, .mm-stats__head strong { font-size: 11px !important; }
}

@media (max-width: 560px) {
  /* Subpage header (Kontakt/Datenschutz/Impressum/AGB) */
  .mm-subpage-header__inner {
    grid-template-columns: auto 1fr !important;
    gap: 12px !important;
    padding: 12px 0 !important;
  }
  .mm-subpage-header .mm-brand__name { font-size: 15px !important; }
  .mm-subpage-header .mm-brand__mark { width: 22px; }
  .mm-subpage-header__nav { display: none !important; }
  .mm-subpage-header__cta { min-height: 40px !important; padding: 0 16px !important; font-size: 13px !important; }

  /* Hero main section padding for mobile */
  .mm-hero { min-height: 900px !important; height: 160vh !important; }
  .mm-hero__bg { height: 100vh !important; }
  .mm-hero__content { height: 100vh !important; }

  /* Hero title: ensure it does not overlap with header */
  .mm-hero__title {
    top: calc(50% - 56px - clamp(60px, 22vw, 110px)) !important;
    left: 5% !important;
    width: 90vw !important;
  }
  .mm-hero__title span { font-size: clamp(56px, 22vw, 110px) !important; line-height: 0.92 !important; }
  .mm-hero__title-row {
    top: calc(50% - 56px + clamp(60px, 24vw, 120px)) !important;
    left: 5% !important;
    gap: clamp(36px, 14vw, 80px) !important;
    transform: translate3d(6vw, var(--mm-scroll-y, 0px), 0) !important;
  }
  .mm-hero__title-row span { font-size: clamp(56px, 22vw, 110px) !important; line-height: 0.92 !important; }
  .mm-hero__title-row span:last-child { transform: translateX(40px) !important; }

  /* Visual: significantly reduce, push down behind text */
  .mm-hero__visual { max-height: 45vh !important; top: 40vh !important; opacity: 0.35 !important; }
  .mm-hero__caption { display: none !important; }

  /* Mission section */
  .mm-mission { min-height: auto !important; margin-top: -8vh !important; padding-top: 8vh; }
  .mm-mission__inner { gap: 32px !important; padding: 24px 0 32px !important; }
  .mm-mission__eyebrow { font-size: 12px !important; }
  .mm-mission__statement h2 { font-size: clamp(20px, 6vw, 28px) !important; line-height: 1.2 !important; }
  .mm-mission__button { margin-top: 24px !important; font-size: 13px !important; gap: 10px !important; }
  .mm-mission__button-icon { width: 44px !important; }
  .mm-mission__button span:last-child { min-height: 44px !important; padding: 0 14px !important; font-size: 13px; }
  .mm-mission__support { font-size: clamp(17px, 5vw, 22px) !important; line-height: 1.3 !important; margin-top: 0 !important; }
  .mm-mission__media { aspect-ratio: 4/3 !important; }

  /* Capabilities section */
  .mm-capabilities__header { flex-direction: column !important; align-items: flex-start !important; gap: 18px !important; margin-bottom: 24px !important; }
  .mm-capabilities__intro h2 { font-size: clamp(22px, 6vw, 30px) !important; }
  .mm-capabilities__intro p { font-size: 14px !important; }
  .mm-capabilities__btn { width: 100% !important; min-height: 48px !important; font-size: 13px !important; }
  .mm-capabilities { padding: 28px 16px !important; }
  .mm-cap-card__label { padding: 14px 16px !important; font-size: 10px !important; letter-spacing: 0.14em !important; }
  .mm-cap-card__timeline { padding: 0 14px 14px !important; gap: 8px !important; }
  .mm-cap-card__timeline strong { font-size: 12px !important; }
  .mm-cap-card--quote blockquote { font-size: 14px !important; line-height: 1.5 !important; margin: 16px 0 12px !important; }
  .mm-cap-card--metric { min-height: 240px !important; }
  .mm-cap-card__metric strong { font-size: clamp(64px, 18vw, 96px) !important; }
  .mm-cap-card__metric span { font-size: 13px !important; }
  .mm-cap-card--tools .mm-tool-marquee__row span { font-size: 11px !important; min-height: 38px !important; padding: 0 10px !important; }
  .mm-cap-card--contact a:not(.mm-cap-card__icon-button) { font-size: 18px !important; }
  .mm-cap-card--contact p { font-size: 13px !important; }

  /* Video stories */
  .mm-stories__header h2 { font-size: clamp(28px, 8vw, 44px) !important; }
  .mm-stories__header p { font-size: 15px !important; }
  .mm-stories__rail { grid-auto-columns: minmax(280px, 86vw) !important; gap: 18px !important; padding: 0 16px 24px !important; }
  .mm-story-card__content { padding: 14px 4px 0 !important; }
  .mm-story-card__content h3 { font-size: 17px !important; line-height: 1.35 !important; }
  .mm-story-card__content p { font-size: 13px !important; }

  /* Kontakt page */
  .mm-kontakt-page { padding: 32px 16px !important; }
  .mm-kontakt-page h1 { font-size: clamp(28px, 7vw, 40px) !important; }
  .mm-kontakt-page p { font-size: 15px !important; }

  /* Footer */
  .mm-footer__inner { width: min(100% - 24px, var(--mm-max-width)) !important; padding: 28px 0 18px !important; }
  .mm-footer__dots { height: 80px !important; }
  .mm-footer__top h2 { font-size: clamp(26px, 7vw, 38px) !important; }
  .mm-footer__brand-row { margin-top: 18px !important; }
  .mm-footer__brand span:last-child { font-size: clamp(38px, 16vw, 64px) !important; }
  .mm-footer__legal { font-size: 11px !important; gap: 6px 14px !important; }

  /* Subpage header on small screens: still visible, compact */
  .mm-subpage-header__inner { padding: 10px 0 !important; }
}

/* Force scroll on body when modal-style elements overflow */
body { overflow-x: hidden; }
