/* Masttech — German (DE, LTR) Typography & Layout Guards */
html[lang^="de"],
html[lang^="de"] body,
html[lang^="de"] h1,
html[lang^="de"] h2,
html[lang^="de"] h3,
html[lang^="de"] h4,
html[lang^="de"] h5,
html[lang^="de"] h6,
html[lang^="de"] p,
html[lang^="de"] a,
html[lang^="de"] li,
html[lang^="de"] span,
html[lang^="de"] button,
html[lang^="de"] label,
html[lang^="de"] th,
html[lang^="de"] td {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

html[lang^="de"],
html[lang^="de"] body {
  overflow-x: clip !important;
  max-width: 100vw;
}

html[lang^="de"] h1,
html[lang^="de"] h2,
html[lang^="de"] h3,
html[lang^="de"] .elementor-heading-title {
  text-wrap: balance;
}

@media (max-width: 480px) {
  html[lang^="de"] h1.elementor-heading-title {
    font-size: clamp(1.35rem, 5.8vw, 1.85rem) !important;
  }
}

/* Fit home hero H1 inside 50% dark split column without right-edge clipping */
@media (min-width: 768px) and (max-width: 1700px) {
  html[lang^="de"] .elementor-element-a01e522 h1.elementor-heading-title {
    font-size: clamp(28px, 2.75vw, 44px) !important;
    line-height: 1.15 !important;
  }
}

/* Keep header navigation single-row on 1181–1920px screens with longer German labels */
@media (min-width: 1181px) {
  html[lang^="de"] header.elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu {
    flex-wrap: nowrap !important;
  }
  html[lang^="de"] header.elementor-location-header .elementor-nav-menu--main .elementor-item {
    white-space: nowrap !important;
  }
}

@media (min-width: 1181px) and (max-width: 1680px) {
  html[lang^="de"] header.elementor-location-header .elementor-nav-menu--main .elementor-item {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 13.5px !important;
  }
  html[lang^="de"] header.elementor-location-header .elementor-nav-menu--main .elementor-item::after {
    left: 7px !important;
    right: 7px !important;
  }
  html[lang^="de"] header.elementor-location-header .elementor-nav-menu--main li.mt-msa-item > a.elementor-item {
    padding: 7px 12px !important;
    font-size: 13px !important;
  }
  html[lang^="de"] header.elementor-location-header li.mt-lang {
    margin-left: 6px !important;
    padding-left: 8px !important;
    gap: 1px !important;
  }
  html[lang^="de"] header.elementor-location-header .mt-lang__item {
    padding: 5px 4px !important;
    font-size: 12px !important;
  }
}

/* Keep mobile footer legal links on a single row at 360px / 390px */
@media (max-width: 600px) {
  html[lang^="de"] .footer-legal {
    padding-inline: 12px !important;
    column-gap: 6px !important;
  }
  html[lang^="de"] .footer-legal a,
  html[lang^="de"] .footer-legal a bdi {
    font-size: clamp(9.5px, 2.75vw, 12px) !important; /* Clo: AR ile aynı alt sınır (9px altı metin yok) */
    gap: 3px !important;
    white-space: nowrap !important;
  }
  html[lang^="de"] .footer-legal__lang {
    font-size: 9px !important;
    padding: 1px 2px !important;
  }
}
