/* ==========================================================
   RTA Gebäudeservice – Mobile hotfix 2026-06-02
   Fixes:
   - no artificial German word hyphenation on smartphones
   - local service cards stack cleanly on mobile
   - German headings keep natural sentence case
   - scroll-to-top button no longer covers sticky CTA
   ========================================================== */

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

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.hero-title2,
.sec-title,
.page-title,
.local-card h3,
.location-link,
.service-card h3,
.service-card_title,
.box-title {
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-transform: none !important;
}

.page-hero .hero-title,
.page-hero h1 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  max-width: 100%;
}

.location-grid {
  align-items: stretch !important;
}

.location-link {
  text-align: center !important;
  justify-content: center !important;
}

@media (max-width: 991px) {
  .page-hero {
    padding-top: 96px !important;
    padding-bottom: 58px !important;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 104px !important;
  }

  .page-hero {
    padding-top: 72px !important;
    padding-bottom: 46px !important;
  }

  .page-hero .container,
  .space .container,
  .space-top .container,
  .space-bottom .container,
  .space-extra .container,
  .space-extra2 .container {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .page-hero .breadcrumb-list {
    display: none !important;
  }

  .page-hero .hero-title,
  .page-hero h1 {
    font-size: clamp(25px, 6.8vw, 29px) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 16px !important;
  }

  .page-hero .hero-text,
  .page-hero .hero-copy p {
    font-size: 18px !important;
    line-height: 1.72 !important;
    margin-bottom: 22px !important;
  }

  .page-hero .btn-group {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .page-hero .btn-group .th-btn {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    padding: 16px 18px !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  .local-card-grid,
  .location-grid,
  #einsatzgebiete .location-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .location-link,
  #einsatzgebiete .location-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 60px !important;
    padding: 15px 18px !important;
    border-radius: 16px !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    -webkit-hyphens: none !important;
    hyphens: none !important;
  }

  .sec-title,
  h2.sec-title,
  .title-area .sec-title {
    font-size: clamp(28px, 8.2vw, 34px) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
  }

  .sub-title {
    line-height: 1.35 !important;
  }

  .space,
  .space-top {
    padding-top: 58px !important;
  }

  .space,
  .space-bottom {
    padding-bottom: 58px !important;
  }

  .local-card {
    padding: 22px 18px !important;
  }

  .local-card h3 {
    font-size: 21px !important;
    line-height: 1.25 !important;
  }

  .local-cta {
    padding: 28px 22px 34px !important;
  }

  .local-cta h2,
  .cta-title,
  .cta-title h2 {
    text-transform: none !important;
  }

  .mobile-sticky-cta {
    display: flex !important;
    gap: 10px !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-sticky-cta a {
    min-height: 54px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  .scroll-top {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 430px) {
  .page-hero .hero-title,
  .page-hero h1 {
    font-size: clamp(24px, 6.4vw, 27px) !important;
    line-height: 1.2 !important;
  }

  .page-hero .hero-text,
  .page-hero .hero-copy p {
    font-size: 17px !important;
    line-height: 1.72 !important;
  }

  .sec-title,
  h2.sec-title,
  .title-area .sec-title {
    font-size: clamp(26px, 7.6vw, 31px) !important;
  }

  .location-link,
  #einsatzgebiete .location-link {
    font-size: 16px !important;
  }
}
