/* Language homepage heroes only; shared navigation and footer retain their styles. */
body.home-body.anlexu-home-hero-page {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  background: #fff !important;
}

body.home-body.anlexu-home-hero-page .home.anlexu-home-main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: #fff !important;
  transform: none !important;
}

.anlexu-home-hero {
  box-sizing: border-box;
  display: flex;
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
  padding: 130px 0 76px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #111;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.anlexu-home-hero .anlexu-home-eyebrow {
  margin: 0;
  color: #6e6e73;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .08em;
}

.anlexu-home-hero #home-hero-title {
  max-width: 880px;
  margin: 16px 0 0;
  padding: 0;
  color: #111;
  font-size: clamp(41.8px, 5.13vw, 64.6px) !important;
  font-weight: 750;
  line-height: 1.06 !important;
  letter-spacing: -.048em !important;
  text-wrap: balance;
}

.anlexu-home-hero #home-hero-title span {
  display: block;
}

.anlexu-home-hero .anlexu-home-description {
  max-width: 710px;
  margin: 24px 0 0;
  color: #66666d;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  letter-spacing: normal;
  text-wrap: balance;
}

.anlexu-home-actions {
  display: flex;
  margin-top: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* German introduction: separate complete sentences, without forced no-wrap.
   The title and the hero's existing outer geometry stay unchanged. */
html:is([lang="de"], [lang="en"], [lang="pt-BR"]) .anlexu-home-hero .anlexu-home-description {
  width: 100%;
}

html:is([lang="de"], [lang="en"], [lang="pt-BR"]) .anlexu-home-description .anlexu-home-sentence {
  display: block;
}

@media (min-width: 1024px) {
  html:is([lang="de"], [lang="en"], [lang="pt-BR"]) .anlexu-home-hero .anlexu-home-description {
    max-width: 1180px;
    font-size: clamp(16px, 1.35vw, 17.5px);
  }
  /* Balance the long second sentence into two lines at normal desktop size.
     A bounded text measure still permits natural reflow at enlarged text. */
  html:is([lang="de"], [lang="en"], [lang="pt-BR"]) .anlexu-home-description .anlexu-home-sentence:last-child {
    max-width: 78ch;
    margin-inline: auto;
    text-wrap: balance;
  }
}

.anlexu-home-hero .anlexu-home-action {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 46px;
  padding: 11px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid #006edb;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.anlexu-home-hero .anlexu-home-action-primary {
  background: #006edb;
  color: #fff;
}

.anlexu-home-hero .anlexu-home-action-secondary {
  background: #fff;
  color: #006edb;
}

.anlexu-home-action:focus-visible {
  outline: 3px solid #006edb;
  outline-offset: 4px;
}

.anlexu-home-hero .anlexu-home-action:active {
  transition: none;
  background: #e5f0fc;
}

.anlexu-home-hero .anlexu-home-action-primary:active {
  background: #005fbd;
}

@media (hover: hover) and (pointer: fine) {
  .anlexu-home-hero .anlexu-home-action-primary:hover {
    border-color: #005fbd;
    background: #005fbd;
  }
  .anlexu-home-hero .anlexu-home-action-secondary:hover {
    background: #f0f6fd;
  }
}

@media (max-width: 600px) {
  .anlexu-home-hero {
    width: calc(100% - 32px);
    padding: calc(82px + env(safe-area-inset-top)) 0 max(48px, env(safe-area-inset-bottom));
  }
  .anlexu-home-hero .anlexu-home-eyebrow {
    font-size: 11px;
  }
  .anlexu-home-hero #home-hero-title {
    max-width: 390px;
    margin-top: 11px;
    font-size: clamp(26.6px, 7.22vw, 31.35px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
  }
  .anlexu-home-hero .anlexu-home-description {
    max-width: 385px;
    margin-top: 17px;
    font-size: 15.5px;
    line-height: 1.46;
  }
  .anlexu-home-actions {
    margin-top: 24px;
    gap: 8px;
  }
  .anlexu-home-hero .anlexu-home-action {
    min-inline-size: 7.5rem;
    min-height: 44px;
    padding: 10px 15px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anlexu-home-hero .anlexu-home-action {
    transition: none;
  }
}
