/* V32: final responsive audit.
   This file is deliberately loaded last on every page so that one coherent
   type and image system wins over older page-specific mobile overrides. */
:root {
  --mc32-green: #006b44;
  --mc32-ink: #10231a;
  --mc32-copy: #3f5147;
  --mc32-line: #d4e4d8;
  --mc32-title-1: clamp(40px, 4.35vw, 54px);
  --mc32-title-2: clamp(29px, 3.25vw, 40px);
  --mc32-title-3: clamp(20px, 2vw, 25px);
  --mc32-claim: clamp(30px, 2.75vw, 36px);
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* Consistent editorial hierarchy across old and new page templates. */
html body h1,
html body .home-hero .home-claim-final,
html body .mc31-workshop-hero h1,
html body .mc30-ki-hero h1,
html body .light-hero h1,
html body .pillar-hero h1,
html body .dossier-hero h1,
html body .article-hero h1 {
  color: var(--mc32-ink);
  font-size: var(--mc32-title-1) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
}

html body h2,
html body .rich h2,
html body .v11-section h2,
html body .light-section h2,
html body .mc23-section h2,
html body .mc29-case-head h2,
html body .mc30-trial-copy h2,
html body .mc30-yorizon-landing .partner-body > .wrap > h2,
html body .mc31-entry-copy h2,
html body .liebig-section > h2 {
  color: var(--mc32-ink);
  font-size: var(--mc32-title-2) !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em !important;
  text-wrap: balance;
}

html body h3 {
  line-height: 1.25;
}

html body .home-hero .home-claim-final,
html body .mc30-claim-thread strong,
html body .mc31-entry-copy h2,
html body #ansatz > .wrap > h2 {
  font-size: var(--mc32-claim) !important;
  line-height: 1.16 !important;
}

/* The menu should read like navigation, not like a wall of bold headlines. */
html body .menu-toggle-v15,
html body .drawer-main-v22,
html body .drawer-overview-v22,
html body .drawer-links-v15 a,
html body .drawer-subgroup-v22 a,
html body .drawer-contact-links-v22 a,
html body .drawer-legal-v22 a {
  font-weight: 400 !important;
}

html body .drawer-home-v15 {
  font-weight: 600 !important;
}

html body .drawer-group-v15 > h2,
html body .drawer-subgroup-v22 > h3,
html body .drawer-subgroup-v22 > h3 a {
  font-weight: 600 !important;
}

html body .drawer-group-v15 > h2 {
  font-size: 12px !important;
  line-height: 1.3 !important;
  letter-spacing: .1em !important;
}

html body .drawer-group-v15 > h2 a {
  color: inherit;
  font: inherit;
}

html body .drawer-subgroup-v22 > h3,
html body .drawer-subgroup-v22 > h3 a {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

/* Pale content surfaces always use dark text. This also fixes the former
   white, clipped reference-project heading. */
html body .mc29-case,
html body .mc29-case-head,
html body .mc29-case-head h2,
html body .mc23-section,
html body .mc23-section h2,
html body .mc31-entry,
html body .mc31-entry h2 {
  color: var(--mc32-ink) !important;
}

@media (max-width: 760px) {
  :root {
    --mc32-title-1: clamp(29px, 8.3vw, 33px);
    --mc32-title-2: clamp(24px, 6.9vw, 28px);
    --mc32-title-3: clamp(19px, 5.4vw, 22px);
    --mc32-claim: clamp(25px, 7.2vw, 28px);
  }

  html body .wrap {
    width: min(calc(100% - 36px), 1240px);
  }

  html body h1,
  html body .home-hero .home-claim-final,
  html body .mc31-workshop-hero h1,
  html body .mc30-ki-hero h1,
  html body .light-hero h1,
  html body .pillar-hero h1,
  html body .dossier-hero h1,
  html body .article-hero h1 {
    font-size: var(--mc32-title-1) !important;
    line-height: 1.1 !important;
    overflow-wrap: anywhere;
  }

  html body h2,
  html body .rich h2,
  html body .v11-section h2,
  html body .light-section h2,
  html body .mc23-section h2,
  html body .mc29-case-head h2,
  html body .mc30-trial-copy h2,
  html body .mc30-yorizon-landing .partner-body > .wrap > h2,
  html body .mc31-entry-copy h2,
  html body .liebig-section > h2 {
    font-size: var(--mc32-title-2) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
  }

  html body h3,
  html body .mc31-entry-panel h3,
  html body .mc30-pressure h3,
  html body .mc30-form-head h3,
  html body .mc23-service-group h3,
  html body .mc29-case-step h3 {
    font-size: var(--mc32-title-3) !important;
    line-height: 1.25 !important;
  }

  html body .home-hero .home-claim-final,
  html body .mc30-claim-thread strong,
  html body .mc31-entry-copy h2,
  html body #ansatz > .wrap > h2 {
    font-size: var(--mc32-claim) !important;
    line-height: 1.18 !important;
  }

  html body .lead,
  html body .mc23-intro,
  html body .mc31-entry-copy > p,
  html body .mc29-case-step p {
    font-size: 16px !important;
    line-height: 1.62 !important;
  }

  html body .kicker {
    font-size: 11px !important;
    line-height: 1.4 !important;
    letter-spacing: .09em !important;
  }

  html body .section,
  html body .rich,
  html body .deep,
  html body .v11-section,
  html body .light-section,
  html body .mc23-section,
  html body .mc29-case,
  html body .mc30-trial,
  html body .mc31-entry,
  html body .pillar-section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  /* Images remain useful but no longer dominate an entire phone viewport. */
  html body .page-visual,
  html body .pillar-hero-image,
  html body .topic-partner-visual,
  html body .topic-light-visual,
  html body .article-image,
  html body .editorial-image,
  html body .rich-image,
  html body .deep-img,
  html body .service-image,
  html body .expand-image-v13,
  html body .light-visual {
    min-height: 0 !important;
    height: 190px !important;
    max-height: 190px !important;
    background-position: center !important;
    background-size: cover !important;
  }

  html body .topic-partner-visual img,
  html body .topic-light-visual img,
  html body .light-visual img {
    width: 100%;
    height: 190px !important;
    object-fit: cover;
  }

  html body .liebig-figure {
    margin-bottom: 46px;
  }

  html body .liebig-figure img {
    width: 82%;
    height: auto !important;
    max-height: 240px;
    margin-inline: auto;
    object-fit: contain;
  }

  html body .liebig-figure-business img {
    width: 78%;
    max-height: 230px;
  }

  html body .mc29-case-head {
    margin-bottom: 32px;
  }

  html body .mc29-case-head h2 {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    color: var(--mc32-ink) !important;
  }

  html body .mc30-claim-thread .wrap {
    gap: 22px;
  }

  html body .mc30-method span {
    min-height: 58px;
    padding: 13px 12px;
    font-size: 13px;
  }

  html body .drawer-nav-v15 {
    padding: 10px 20px 28px !important;
  }

  html body .drawer-main-v22 {
    font-size: 14px;
  }

  html body .drawer-subgroup-v22 a,
  html body .drawer-contact-links-v22 a {
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  :root {
    --mc32-title-1: 29px;
    --mc32-title-2: 24px;
    --mc32-title-3: 19px;
    --mc32-claim: 25px;
  }

  html body .header-cta-v15 {
    width: 41px;
    min-width: 41px;
  }

  html body .page-copy,
  html body .pillar-hero-copy {
    padding: 38px 18px !important;
  }
}

/* Keep Andreas Mostafa's portrait fully visible at every breakpoint. */
html body .rich-image.andreas-portrait-full {
  background-color: #fff !important;
  background-position: center bottom !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

html body .mc23-about img.andreas-portrait-full-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 520px;
  justify-self: center;
  object-fit: contain;
  object-position: center;
}
