/* Page-level polish for homepage, Leistungen and Kontakt. */

.page-index-polish {
  background: #f6f7f8;
}

.page-index-polish #home .hero-content {
  max-width: 820px;
  padding: 1rem;
}

.page-index-polish #home h1 {
  letter-spacing: 0;
  text-wrap: balance;
}

.page-index-polish main > section:nth-of-type(2) {
  padding-block: 4rem;
  background: linear-gradient(180deg, #fff 0%, #f6f7f8 100%);
}

.page-index-polish main > section:nth-of-type(3) {
  background: #26313a;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.page-index-polish main > section:nth-of-type(4) {
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding-block: 5.5rem;
}

.page-index-polish main > section:nth-of-type(4) > div:first-child {
  max-width: 760px;
  text-align: left;
  margin-inline: 0;
}

.page-index-polish main > section:nth-of-type(4) h2 {
  color: #2f3942;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.02;
}

.page-index-polish .service-card-enhanced {
  align-items: flex-start !important;
  text-align: left !important;
  border-radius: .9rem !important;
  box-shadow: 0 14px 34px rgba(18,27,35,.08) !important;
  min-height: 245px;
  justify-content: space-between;
}

.page-index-polish .service-card-enhanced > div:first-child {
  border-radius: .8rem !important;
}

.page-index-polish .service-card-enhanced h3 {
  font-size: 1.25rem !important;
}

.page-index-polish .service-cta-btn {
  margin-top: auto;
}

.page-index-polish main > section:nth-of-type(5) {
  background: #18222b;
  padding-block: 5rem;
}

.page-index-polish main > section:nth-of-type(5) > div {
  background: linear-gradient(135deg, #2f3942 0%, #18222b 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1rem;
}

.page-index-polish .contact-cta-enhanced {
  margin-top: 0;
}

.page-leistungen-polish .leistungen-preview-section {
  background: linear-gradient(180deg, #f7f8f9 0%, #fff 44%, #f4f6f7 100%) !important;
}

.page-leistungen-polish .leistungen-intro {
  align-items: center;
  margin-bottom: 2rem;
}

.page-leistungen-polish .leistungen-proof-card .bg-white {
  background: #2f3942 !important;
  color: #fff;
  border-color: rgba(251,187,33,.4) !important;
  box-shadow: 0 20px 48px rgba(18,27,35,.14);
}

.page-leistungen-polish .leistungen-proof-card .text-secondary-color {
  color: #fff !important;
}

.page-leistungen-polish .leistungen-rail {
  max-width: 100%;
  border-radius: .95rem;
}

.page-leistungen-polish .service-decision-panel {
  border-radius: 1.1rem;
  border-color: rgba(47,57,66,.1);
  box-shadow: 0 18px 46px rgba(18,27,35,.08);
}

.page-leistungen-polish .service-group-card {
  border-radius: .9rem;
  min-height: 285px;
}

.page-leistungen-polish .service-group-card.wide {
  min-height: 0;
}

.page-leistungen-polish .service-detail-sheets {
  padding-top: 5rem !important;
}

.page-leistungen-polish .service-detail-head {
  text-align: left;
  margin-inline: 0;
}

.page-leistungen-polish .service-sheet {
  border-radius: 1rem;
  box-shadow: 0 18px 46px rgba(18,27,35,.075);
}

.page-leistungen-polish .service-sheet-media {
  min-height: 300px;
}

.page-leistungen-polish .service-sheet-copy {
  padding: 1.8rem;
}

.page-kontakt-polish {
  background: #f6f7f8;
}

.page-kontakt-polish .leistungen-hero {
  height: auto !important;
  min-height: 72vh;
}

.page-kontakt-polish .leistungen-hero .hero-content {
  max-width: 820px;
  padding: 1rem;
}

.page-kontakt-polish .leistungen-hero h1 {
  font-size: clamp(2.75rem, 6vw, 5.25rem) !important;
  line-height: .98;
  text-wrap: balance;
}

.page-kontakt-polish main > section:nth-of-type(2) {
  padding-top: 5rem;
  padding-bottom: 5rem;
  gap: 1.5rem;
}

.page-kontakt-polish main > section:nth-of-type(2) > div:first-child {
  display: grid;
  gap: 1rem;
}

.page-kontakt-polish main > section:nth-of-type(2) > div:first-child > div {
  border-radius: 1rem !important;
  box-shadow: 0 16px 38px rgba(18,27,35,.08) !important;
  border-left: 0 !important;
  border-top: 4px solid var(--primary-color);
}

.page-kontakt-polish iframe {
  filter: saturate(.9) contrast(.95);
}

.page-kontakt-polish #contactForm {
  position: sticky;
  top: 5.5rem;
  border-top: 0 !important;
  border-radius: 1rem !important;
  box-shadow: 0 22px 55px rgba(18,27,35,.12) !important;
}

.page-kontakt-polish #contactForm h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.page-kontakt-polish #contactForm input,
.page-kontakt-polish #contactForm textarea {
  border-radius: .85rem !important;
  background: #f8f9fa;
}

.page-kontakt-polish main > section:nth-of-type(3) > div {
  border-radius: 1rem !important;
  background: #2f3942 !important;
  color: #fff;
  border-left: 0 !important;
  border-top: 4px solid var(--primary-color);
}

.page-kontakt-polish main > section:nth-of-type(3) h2 {
  color: #fff !important;
}

@media (max-width: 768px) {
  .page-index-polish main > section:nth-of-type(4) {
    padding: 3.5rem 1rem;
  }

  .page-index-polish main > section:nth-of-type(4) > div:first-child {
    text-align: center;
    margin-inline: auto;
  }

  .page-index-polish .service-card-enhanced {
    min-height: auto;
  }

  .page-kontakt-polish #contactForm {
    position: static;
  }

  .page-kontakt-polish main > section:nth-of-type(2) {
    padding-inline: 1rem;
  }
}
