.home-page {
  --home-heading-font: 'Marcellus', Georgia, serif;
  --home-text-font: 'Instrument Sans', system-ui, sans-serif;
  --home-edge: clamp(20px, 6vw, 88px);
  --home-spacing: clamp(48px, 7vw, 96px);
  background: var(--havelwert-white);
  color: var(--havelwert-navy);
  font-family: var(--home-text-font);
}

.home-page .hero { background: var(--cream); }

.homepage-regional-photos .hero-visual {
  background-image: linear-gradient(#0a1f3d0a, #0a1f3d20), url('/assets/kleinmachnow-haus.webp');
  background-position: center;
}

.home-page .hero h1 {
  font-size: clamp(2.15rem, 3.65vw, 3.6rem);
  font-weight: 400;
  text-wrap: balance;
}

.home-page .hero-copy { padding-inline: var(--home-edge); }
.home-page .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-page .button { max-width: 100%; text-align: center; white-space: normal; }
.home-page .home-secondary { background: var(--havelwert-white); border: 1px solid var(--navy); color: var(--navy); }
.home-page .home-secondary:hover { background: var(--cream); }

.home-hero-message {
  margin-block: 18px 12px;
  color: var(--havelwert-navy);
  border-inline-start: 3px solid var(--havelwert-gold);
  padding-inline-start: 14px;
  font: 400 clamp(1.2rem, 2vw, 1.65rem)/1.3 var(--home-heading-font);
}

.home-section {
  padding: var(--home-spacing) var(--home-edge);
  border-top: 1px solid var(--line);
}

.home-hero-message strong { font-weight: inherit; }

.home-section h2 {
  margin: 0 0 20px;
  font: 400 clamp(1.85rem, 3.4vw, 2.85rem)/1.15 var(--home-heading-font);
  text-wrap: balance;
}

.home-section h3 {
  margin: 0 0 10px;
  font: 400 1.3rem/1.2 var(--home-heading-font);
  overflow-wrap: anywhere;
}
.home-section p, .home-section li, .home-intro p { line-height: 1.65; }
.home-intro { max-width: 72ch; }
.home-tinted { background: var(--cream); }
/* The previous homepage used a navy band for the valuation CTA. */
.home-value {
  background: var(--havelwert-navy);
  color: var(--havelwert-white);
}

.home-value .home-emphasis { color: var(--havelwert-gold); }
.home-value .button {
  background: var(--havelwert-white);
  color: var(--havelwert-navy);
}
.home-value .button:hover { background: var(--cream); }
.home-emphasis { font-weight: 700; }

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-block: 28px;
}

.home-competencies { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-card { border: 1px solid var(--line); background: var(--havelwert-white); border-radius: 12px; overflow: hidden; }
.home-card-body { padding: clamp(16px, 2vw, 26px); }
.home-card-body p { margin: 0; }
.home-card-body .text-link { display: inline-block; margin-top: 16px; }
.home-icon { width: 28px; height: 28px; color: var(--havelwert-gold); margin: 24px 24px 0; }
.home-photo { margin: 0; position: relative; }
.home-selling img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.home-value, .home-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(20px, 5vw, 70px);
}

.home-profile { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.home-value img, .home-profile img { display: block; width: 100%; height: auto; border-radius: 12px; }
.home-profile img { max-width: 420px; }
.home-profile h3 { font-size: 1.35rem; }

.home-steps { padding-left: 0; list-style: none; counter-reset: home-step; }
.home-steps li { counter-increment: home-step; }
.home-steps li::before {
  content: counter(home-step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 22px 22px 0;
  background: var(--havelwert-navy);
  color: var(--havelwert-gold);
  border-radius: 50%;
  font-weight: 700;
}

.home-region ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-region li { border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; }
.home-faq { max-width: 800px; }
.home-faq details { border-bottom: 1px solid var(--line); }
.home-faq summary { cursor: pointer; min-height: 44px; padding: 16px 0; font-weight: 700; }
.home-faq summary:focus-visible { outline: 3px solid var(--havelwert-navy); outline-offset: 3px; }
.home-faq p { margin: 0 0 16px; }
.home-contact { background: var(--cream); border-top-color: var(--havelwert-gold); }
.home-address { margin-top: 30px; font-style: normal; line-height: 1.65; overflow-wrap: anywhere; }
.home-address a { text-decoration: underline; text-underline-offset: 3px; }
.home-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 1000px) {
  .home-competencies, .home-services, .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .hero-copy { padding-block: 36px 26px; }
}

@media (max-width: 680px) {
  .home-selling, .home-value, .home-profile { grid-template-columns: 1fr; }
  .home-page .hero h1 { font-size: clamp(1.85rem, 7vw, 2.5rem); }
  .home-page .hero-copy { padding-block: 26px 20px; }
}

@media (max-width: 450px) {
  .home-grid { grid-template-columns: 1fr; }
}
