body.home-page {
  --home-local-line: rgba(120, 143, 166, 0.22);
  --home-local-muted: rgba(39, 59, 85, 0.72);
}

body.home-page::before {
  background:
    linear-gradient(rgba(15, 138, 102, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 108, 191, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbf9 0%, #eef5f1 44%, #f6f9fb 100%);
  background-size: 4rem 4rem, 4rem 4rem, auto;
}

body.home-page::after,
body.home-page .home-main--local > .home-section::before,
body.home-page .home-main--local > .home-section::after {
  content: none;
}

body.home-page .home-style-loader {
  display: none;
}

body.home-page .hero.hero--platform .hero-surface--platform {
  min-height: clamp(28rem, 70svh, 39rem);
  height: auto;
  background:
    radial-gradient(circle at 18% 18%, rgba(69, 214, 181, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(125, 211, 252, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 -1px 0 var(--home-local-line);
}

body.home-page #hero-title,
body.home-page .hero-title {
  color: #122236;
  text-shadow: none;
}

body.home-page .hero-subtitle,
body.home-page .hero-copy {
  color: var(--home-local-muted);
}

body.home-page .home-main.home-main--local {
  width: min(100% - clamp(1.2rem, 4vw, 4rem), 76rem);
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3.8rem) 0 clamp(2.4rem, 5vw, 4.5rem);
}

body.home-page .home-main--local > .home-section--local,
body.home-page .home-main--local > #leistungen,
body.home-page .home-main--local > #preise,
body.home-page .home-main--local > #profil,
body.home-page .home-main--local > #faq {
  width: 100%;
  margin: 0;
  padding: clamp(1.7rem, 3.4vw, 3rem) 0;
  border: 0;
  border-top: 1px solid var(--home-local-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.home-page .home-main--local > #leistungen {
  display: block;
  border-top: 0;
  padding-top: 0;
}

body.home-page .home-main--local > #profil.home-about-contact {
  display: grid;
}

body.home-page .home-service-grid,
body.home-page .home-price-groups,
body.home-page .home-price-example-list,
body.home-page .home-about-contact {
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
}

body.home-page .home-service-item,
body.home-page .home-price-group,
body.home-page .home-price-example,
body.home-page .home-price-note,
body.home-page .home-about-card,
body.home-page .home-contact-area,
body.home-page .home-contact-link,
body.home-page .home-faq-item,
body.home-page .home-profile-facts--local div {
  border: 1px solid var(--home-local-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: none;
  backdrop-filter: none;
}

body.home-page .home-service-item,
body.home-page .home-price-group,
body.home-page .home-about-card,
body.home-page .home-contact-area {
  padding: clamp(1rem, 2.2vw, 1.55rem);
}

body.home-page .home-service-item:hover,
body.home-page .home-service-item:focus-within,
body.home-page .home-price-group:hover,
body.home-page .home-price-group:focus-within,
body.home-page .home-price-example:hover,
body.home-page .home-price-example:focus-within,
body.home-page .home-about-card:hover,
body.home-page .home-about-card:focus-within,
body.home-page .home-contact-link:hover,
body.home-page .home-contact-link:focus-visible,
body.home-page .home-faq-item:hover,
body.home-page .home-faq-item:focus-within {
  transform: none;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

body.home-page .home-section-lead {
  padding-top: clamp(0.7rem, 1.5vw, 1rem);
  color: var(--home-local-muted);
}

body.home-page .home-price-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.home-page .home-price-example-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.home-page .home-price-note {
  padding: 1rem;
}

body.home-page .home-price-note--important {
  border-color: rgba(242, 193, 78, 0.35);
  background: rgba(255, 248, 220, 0.55);
}

body.home-page .home-contact-simple {
  gap: 0.7rem;
}

body.home-page .home-contact-link {
  min-height: 4.7rem;
  padding: 1rem;
}

body.home-page .home-appointment-cta__button {
  min-height: 3rem;
  border-radius: 8px;
  box-shadow: none;
}

body.home-page .home-faq-list {
  display: grid;
  gap: 0.7rem;
}

body.home-page .home-faq-item {
  padding: 0;
  overflow: hidden;
}

body.home-page .home-faq-item summary {
  padding: 1rem 1.1rem;
}

body.home-page .home-faq-item p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--home-local-muted);
}

body.home-page footer.site-footer {
  border-top: 1px solid var(--home-local-line);
  background: rgba(248, 251, 249, 0.86);
  color: #263b52;
}

body.home-page footer.site-footer .footer-link {
  border: 0;
  background: transparent;
  color: #263b52;
  box-shadow: none;
}

@media (min-width: 768px) {
  body.home-page .hero.hero--platform .hero-surface--platform {
    grid-template-columns: clamp(13rem, 17vw, 17rem) minmax(0, 46rem);
    gap: clamp(1rem, 2vw, 2.3rem);
    padding-top: clamp(4rem, 7vh, 6rem);
    padding-bottom: clamp(2.2rem, 4vh, 3.5rem);
  }

  body.home-page .home-about-contact {
    grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
    align-items: stretch;
  }
}

@media (max-width: 767.98px) {
  body.home-page .home-main.home-main--local {
    width: min(100% - 1rem, 42rem);
    padding-top: 1.4rem;
  }

  body.home-page .hero.hero--platform .hero-surface--platform {
    min-height: auto;
    padding-top: calc(var(--topnav-offset, 3.8rem) + 1rem);
    padding-bottom: 1.4rem;
  }

  body.home-page .home-price-groups,
  body.home-page .home-price-example-list,
  body.home-page .home-main--local > #profil.home-about-contact {
    grid-template-columns: 1fr;
  }
}

/* Final homepage flattening pass: fewer cards, tighter hero, wider desktop flow. */
body.home-page {
  background: #f8fbf9;
}

body.home-page::before {
  background: linear-gradient(180deg, #f8fbf9 0%, #f1f7f4 46%, #f8fbf9 100%);
}

html[data-theme="light"] body.home-page::before,
html body.home-page::before {
  background: linear-gradient(180deg, #f8fbf9 0%, #f3f8f5 45%, #f8fbf9 100%);
  background-size: auto;
  opacity: 1;
}

html[data-theme="light"] body.home-page .page-shell,
html body.home-page .page-shell {
  background: transparent;
}

body.home-page .hero.hero--platform .hero-surface--platform {
  min-height: clamp(23rem, 52svh, 31rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18));
}

html[data-theme="light"] body.home-page .hero.hero--platform .hero-surface--platform,
html body.home-page .hero.hero--platform .hero-surface--platform {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 -1px 0 rgba(120, 143, 166, 0.22);
}

html[data-theme="light"] body.home-page .hero.hero--platform .hero-surface--platform::before,
html[data-theme="light"] body.home-page .hero.hero--platform .hero-surface--platform::after,
html body.home-page .hero.hero--platform .hero-surface--platform::before,
html body.home-page .hero.hero--platform .hero-surface--platform::after {
  content: none;
}

body.home-page .home-main.home-main--local {
  width: min(100% - clamp(1rem, 2.4vw, 2.2rem), 86rem);
  padding-top: clamp(1.1rem, 2.2vw, 2rem);
}

body.home-page .home-main--local > .home-section--local,
body.home-page .home-main--local > #leistungen,
body.home-page .home-main--local > #preise,
body.home-page .home-main--local > #profil,
body.home-page .home-main--local > #faq {
  padding-block: clamp(1.15rem, 2.2vw, 2.2rem);
}

body.home-page .home-price-group,
body.home-page .home-price-note,
body.home-page .home-about-card,
body.home-page .home-contact-area,
body.home-page .home-faq-item {
  background: transparent;
  border-color: rgba(120, 143, 166, 0.28);
}

html[data-theme="light"] body.home-page .home-service-item,
html[data-theme="light"] body.home-page .home-price-group,
html[data-theme="light"] body.home-page .home-price-example,
html[data-theme="light"] body.home-page .home-price-note,
html[data-theme="light"] body.home-page .home-about-card,
html[data-theme="light"] body.home-page .home-contact-area,
html[data-theme="light"] body.home-page .home-contact-link,
html[data-theme="light"] body.home-page .home-faq-item,
html[data-theme="light"] body.home-page .home-profile-facts--local div,
html body.home-page .home-service-item,
html body.home-page .home-price-group,
html body.home-page .home-price-example,
html body.home-page .home-price-note,
html body.home-page .home-about-card,
html body.home-page .home-contact-area,
html body.home-page .home-contact-link,
html body.home-page .home-faq-item,
html body.home-page .home-profile-facts--local div {
  box-shadow: none;
}

body.home-page .home-price-group,
body.home-page .home-about-card,
body.home-page .home-contact-area {
  padding: clamp(0.9rem, 1.65vw, 1.25rem);
}

body.home-page .home-price-note {
  padding: 0.85rem 0;
  border-width: 1px 0;
  border-radius: 0;
}

body.home-page .home-price-note--important {
  padding-inline: 0;
  background: transparent;
  border-color: rgba(120, 143, 166, 0.28);
}

body.home-page .home-price-example-list {
  gap: 0;
  border: 1px solid rgba(120, 143, 166, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

body.home-page .home-price-example {
  border-width: 0 1px 1px 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.22);
}

html[data-theme="light"] body.home-page .home-price-example,
html body.home-page .home-price-example,
html[data-theme="light"] body.home-page .home-service-item,
html body.home-page .home-service-item {
  background: transparent;
}

body.home-page .home-price-example:nth-child(3n) {
  border-right: 0;
}

body.home-page .home-price-example:nth-last-child(-n + 3) {
  border-bottom: 0;
}

body.home-page .home-faq-list {
  gap: clamp(0.55rem, 1.6vw, 0.85rem);
  border-top: 1px solid rgba(120, 143, 166, 0.24);
}

body.home-page .home-faq-item {
  border-width: 0 0 1px;
  border-radius: 0;
}

body.home-page .home-faq-item summary {
  padding-inline: clamp(1rem, 4vw, 1.35rem);
}

body.home-page .home-faq-item p {
  padding-inline: clamp(1rem, 4vw, 1.35rem);
}

body.home-page .home-faq-section .home-faq-item.motion-hover-lift,
body.home-page .home-faq-section .home-faq-item.motion-hover-lift:hover,
body.home-page .home-faq-section .home-faq-item.motion-hover-lift:focus-visible,
body.home-page .home-faq-section .home-faq-item.motion-hover-lift:focus-within,
body.home-page .home-faq-section .home-faq-item.motion-hover-lift[open] {
  transform: scale(1, 1);
}

body.home-page .home-service-grid {
  gap: 0;
  border: 1px solid rgba(120, 143, 166, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

body.home-page .home-service-item {
  border-width: 0 1px 1px 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.22);
}

body.home-page .home-service-item:nth-child(2n) {
  border-right: 0;
}

body.home-page .home-service-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

body.home-page .home-price-group:hover,
body.home-page .home-price-group:focus-within,
body.home-page .home-price-example:hover,
body.home-page .home-price-example:focus-within,
body.home-page .home-about-card:hover,
body.home-page .home-about-card:focus-within,
body.home-page .home-faq-item:hover,
body.home-page .home-faq-item:focus-within,
body.home-page .home-service-item:hover,
body.home-page .home-service-item:focus-within {
  background: rgba(255, 255, 255, 0.34);
}

@media (min-width: 1024px) {
  body.home-page .hero.hero--platform .hero-surface--platform {
    grid-template-columns: clamp(11rem, 13vw, 14rem) minmax(0, 50rem);
    gap: clamp(1rem, 1.8vw, 2rem);
    padding-top: clamp(3.4rem, 5.2vh, 4.8rem);
    padding-bottom: clamp(1.6rem, 3vh, 2.5rem);
  }

  body.home-page .home-price-groups {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  body.home-page .home-about-contact {
    grid-template-columns: minmax(18rem, 0.68fr) minmax(0, 1.32fr);
  }
}

@media (max-width: 767.98px) {
  body.home-page .home-service-item,
  body.home-page .home-price-example {
    border-right: 0;
  }

  body.home-page .home-service-item:nth-last-child(-n + 2),
  body.home-page .home-price-example:nth-last-child(-n + 3) {
    border-bottom: 1px solid rgba(120, 143, 166, 0.24);
  }

  body.home-page .home-service-item:last-child,
  body.home-page .home-price-example:last-child {
    border-bottom: 0;
  }
}
