/* Scoped to the two residential-facing pages. Shared forms, consent and navigation are untouched. */
.private-page #kontaktformular, .home-page #kontaktformular { scroll-margin-top: 144px; }
.res-button { gap: .8em; text-align: center; padding-block: 13px; line-height: 1.35; }
.res-button span { flex: 0 0 auto; }
.res-icon { color: var(--blue-2); flex: 0 0 auto; }
.res-hero { padding: 64px 0; border-bottom: 1px solid var(--line); }
.res-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4.5vw, 68px); align-items: center; }
.res-hero-copy { min-width: 0; }
.res-hero h1 { font-size: clamp(2.7rem, 4.1vw, 4.05rem); line-height: 1.05; letter-spacing: -.05em; margin-bottom: 26px; }
.res-hero h1 span { color: var(--blue-2); }
.res-lead { max-width: 44ch; color: var(--muted); font-size: 1.12rem; margin-bottom: 28px; }
.res-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.res-call { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; color: var(--muted); }
.res-call:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.res-region { margin: 22px 0 0; color: var(--muted); font-size: .82rem; letter-spacing: .02em; }
.res-home-photo, .home-residential-photo { min-width: 0; margin: 0; }
.res-home-photo img { width: 100%; height: 490px; object-fit: cover; object-position: 60% 54%; border-radius: 3px; }
.res-home-photo figcaption, .home-residential-photo figcaption { padding-top: 9px; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.res-home-photo figcaption a:hover, .home-residential-photo figcaption a:hover { text-decoration: underline; }
.res-section { padding: 76px 0; }
.res-section-head { margin-bottom: 28px; }
.res-section-head h2 { margin-bottom: 18px; font-size: clamp(2.15rem, 3.4vw, 3.25rem); line-height: 1.07; letter-spacing: -.045em; text-wrap: balance; }
.res-section-head p:not(.eyebrow) { max-width: 47ch; margin-bottom: 0; color: var(--muted); }
.res-problem-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; gap: 28px; margin: 0; padding: 0; }
.res-problem-grid li { border-top: 1px solid var(--line); padding-top: 22px; }
.res-problem-grid .res-icon { margin-bottom: 14px; }
.res-problem-grid h3 { font-size: 1.15rem; margin-bottom: 8px; line-height: 1.3; }
.res-problem-grid p { color: var(--muted); margin-bottom: 0; }
.res-bridge { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); color: var(--text); font-size: 1.15rem; font-weight: 650; }
.res-bridge span { max-width: 58ch; font-size: 1rem; color: var(--muted); font-weight: 400; }
.res-benefits { background: var(--surface); }
.res-benefits-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 50px; }
.res-benefits .res-section-head { margin-bottom: 0; }
.res-benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 26px; list-style: none; padding: 0; margin: 0; }
.res-benefit-grid li { display: flex; gap: 14px; min-width: 0; }
.res-benefit-grid .res-icon { margin-top: 2px; }
.res-benefit-grid h3 { font-size: 1.07rem; line-height: 1.4; margin-bottom: 8px; }
.res-benefit-grid p { margin-bottom: 0; color: var(--muted); }
.res-benefit-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.res-filter-note { max-width: 68ch; margin: 0; color: var(--muted); font-size: .875rem; }
.res-benefit-bottom .button { flex-shrink: 0; }
.res-work-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-bottom: 30px; }
.res-work-intro .res-section-head { margin-bottom: 0; }
.res-checks { list-style: none; padding: 0; margin: 0; }
.res-checks li { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.res-checks li::before { content: "✓"; color: var(--blue-2); }
.res-work-photos { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.res-work-photos figure { min-width: 0; margin: 0; }
.res-work-photos img { width: 100%; height: 300px; object-fit: cover; border-radius: 3px; }
.res-work-photos figure:nth-child(2) img { object-position: 50% 64%; }
.res-work-photos figcaption { color: var(--muted); margin-top: 12px; font-size: .88rem; }
.res-project-link { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; margin-top: 10px; font-size: .92rem; }
.private-page .inquiry-section { border-block: 1px solid var(--line); }
.res-contact-copy p { max-width: 44ch; }
.res-contact-copy .res-contact-reassurance { padding-left: 16px; border-left: 2px solid var(--blue); margin: 26px 0; }
.private-page .inquiry-phone { display: inline-flex; align-items: center; min-height: 44px; }
.res-faq-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 50px; }
.res-faq .faq-item { border-radius: 3px; margin-bottom: 8px; }
.res-faq .faq-item:last-child { margin-bottom: 0; }
.res-faq .faq-item summary { padding: 18px 22px; }
.res-faq .faq-item p { padding: 0 22px 20px; }
.res-faq .faq-item p a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }

/* A compact home feature replaces the previous benefit list without changing the page order. */
.home-residential-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 5vw, 72px); }
.home-residential-photo img { width: 100%; height: 490px; border-radius: 3px; object-fit: cover; object-position: 60% 54%; }
.home-residential-copy { min-width: 0; }
.home-benefits .home-residential-copy h2 { font-size: clamp(2.2rem, 3.4vw, 3.25rem); margin-bottom: 20px; }
.home-residential-list { display: grid; gap: 19px; list-style: none; margin: 28px 0; padding: 0; }
.home-residential-list li { display: flex; gap: 15px; align-items: flex-start; }
.home-residential-list .res-icon { margin-top: 3px; }
.home-residential-list h3 { margin-bottom: 4px; font-size: 1.06rem; line-height: 1.4; }
.home-residential-list p { margin-bottom: 0; color: var(--muted); font-size: .96rem; max-width: 44ch; }
.home-page .home-tax-note { margin-top: var(--tax-note-gap); }

@media (max-width: 1000px) {
  .res-benefits-layout { grid-template-columns: 1fr; gap: 30px; }
  .res-work-intro { gap: 35px; }
  .res-benefit-bottom { align-items: flex-start; }
}
@media (max-width: 820px) {
  .res-hero { padding: 44px 0 48px; }
  .res-hero-grid, .home-residential-feature { grid-template-columns: 1fr; gap: 30px; }
  .res-hero h1 { max-width: 680px; font-size: clamp(2.5rem, 6vw, 3.6rem); }
  .res-home-photo img { height: 310px; object-position: 50% 57%; }
  .res-problem-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .res-work-intro, .res-faq-grid { grid-template-columns: 1fr; gap: 26px; }
  .res-faq .res-section-head { margin-bottom: 0; }
  .home-residential-copy { grid-row: 1; }
  .home-residential-photo img { height: 300px; object-position: 50% 57%; }
}
@media (max-width: 600px) {
  .res-section { padding: 52px 0; }
  .res-hero-grid { gap: 26px; }
  .res-hero h1 { font-size: clamp(2.3rem, 9.3vw, 3rem); margin-bottom: 20px; }
  .res-lead { font-size: 1.05rem; margin-bottom: 22px; }
  .res-actions { gap: 5px; align-items: flex-start; flex-direction: column; }
  .res-region { margin-top: 13px; }
  .res-home-photo img { height: auto; aspect-ratio: 16 / 10; }
  .res-section-head { margin-bottom: 22px; }
  .res-section-head h2 { font-size: clamp(2rem, 7.5vw, 2.5rem); }
  .res-problem-grid { gap: 24px 18px; }
  .res-problem-grid h3 { font-size: 1.02rem; }
  .res-problem-grid p { font-size: .95rem; }
  .res-problem-grid .res-icon { margin-bottom: 10px; }
  .res-bridge { grid-template-columns: 1fr; gap: 8px; margin-top: 26px; }
  .res-benefit-grid { grid-template-columns: 1fr; gap: 22px; }
  .res-benefit-grid h3 { margin-bottom: 4px; }
  .res-benefit-bottom { flex-direction: column; gap: 24px; }
  .res-work-photos { gap: 22px; grid-template-columns: 1fr; }
  .res-work-photos img { height: 230px; }
  .res-work-photos figcaption { margin-top: 8px; }
  .res-work-intro { margin-bottom: 24px; }
  .res-faq .faq-item summary { padding: 18px; }
  .res-faq .faq-item p { padding: 0 18px 18px; }
  .home-residential-photo img { height: auto; aspect-ratio: 16 / 10; }
  .home-benefits .home-residential-copy h2 { font-size: clamp(2.15rem, 8vw, 2.65rem); }
}
@media (max-width: 360px) {
  .res-problem-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .private-page .button, .home-page .button, .home-page .project-card img { transition: none; }
}
