/* Shared typography refinement. Chapter geometry and media controls stay owned
   by their existing stylesheets. Keep this after the other head stylesheets. */

.hero h1 {
  font-size: clamp(24px, 1.8vw, 26px);
}

/* Long translated headings must not determine the minimum width of the hero
   grid or push the separate information tiles beyond a narrow viewport. */
.hero .hero-grid > div {
  min-width: 0;
}

.hero h1,
#services .service-trial-grid .service h3,
#services .service-trial-grid .service p,
#calculator .mv-cbm-card span {
  overflow-wrap: anywhere;
  hyphens: auto;
}

#calculator .mv-cbm-title-row .section-title-row h2 {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-width: 899px) {
  .hero .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-text-block p,
.service p,
.value p,
.process p,
.values-story-intro p,
.values-story-item p,
.values-callout span,
.process-story-intro p,
.process-story-item p,
.process-callout span,
#values .values-intro-block p,
#process .process-copy p:not(.process-lead) {
  font-size: 16px;
}

#values .values-intro-block h3 {
  font-size: 19px;
}

.about-copy h2 {
  font-size: 19px;
}

#contact .contact-location-address {
  font-size: 15px;
}

#contact .contact-location-address strong {
  font-size: 14px;
}

#contact .contact-location-primary,
#contact .contact-location-route {
  font-size: 13px;
}

.contact-form label,
.rfq-field,
.calculator-field,
#calculator .mv-cbm-app label,
#calculator .mv-cbm-card span,
#calculator .mv-cbm-recommendation span,
#calculator .mv-cbm-app th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: none;
}

.contact-form input,
.contact-form textarea,
.rfq-field input,
.rfq-field select,
.rfq-field textarea,
.calculator-field input,
.calculator-field select,
#calculator .mv-cbm-app input,
#calculator .mv-cbm-app select {
  font-size: 15px;
}

.calculator-note,
#calculator .mv-cbm-note {
  font-size: 14px;
}

#calculator .mv-cbm-app table {
  font-size: 14px;
}

#calculator .mv-cbm-section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: none;
}

/* Direct children are the legal links. The nested market-data controls retain
   their deliberately smaller lettering and existing position. */
.footer .footer-links > a,
html.marvalis-home-chapter body > .footer .footer-links > a {
  font-size: 12px;
}

/* Let the comparison table scroll inside its panel instead of imposing its
   minimum table width on the calculator's surrounding grid. */
#calculator .mv-cbm-panel {
  min-width: 0;
}

#calculator .mv-cbm-table-wrap {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1050px) {
  #datenschutz .legal-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  #datenschutz .legal-panel > *,
  #datenschutz .section-title-row > h2 {
    min-width: 0;
  }

  #datenschutz .section-title-row > h2 {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

@media (max-width: 760px) {
  #services h2[data-i18n="serviceTrialTitle"] {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hero h1 {
    font-size: 19px;
  }

  .contact-form input,
  .contact-form textarea,
  .rfq-field input,
  .rfq-field select,
  .rfq-field textarea,
  .calculator-field input,
  .calculator-field select,
  #calculator .mv-cbm-app input,
  #calculator .mv-cbm-app select {
    font-size: 16px;
  }
}

/* Keep the English hero words intact while retaining normal space wrapping. */
html[lang="en"] .hero h1 { hyphens: none; }
