/* The homepage continues the terrace hero's warm paper and green ink. */
body[data-page="home"] .home-page {
  --ink: #263b32;
  --ink-800: #263b32;
  --ink-700: #43564c;
  --ink-500: #626b61;
  --ink-400: #788575;
  --ink-300: #85917e;
  --line: #e0e3d8;
  --line-strong: #cfd7c7;
  --bg-soft: #f1f2e9;
  --accent: #c84704;
  --accent-600: #b63e04;
  --accent-700: #a9400d;
  --accent-soft: #f5ece1;
  color: var(--ink);
  background: #f8f7f2;
}

body[data-page="home"] .home-page .section__title { color: #263b32; }
body[data-page="home"] .home-page .section__lead { color: #626b61; }
body[data-page="home"] .home-page .kicker-pill {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #a34d25;
  background: transparent;
  line-height: 1.5;
}

body[data-page="home"] .home-page .btn {
  min-height: 54px;
  max-width: 100%;
  padding: .875rem 1.25rem;
  border: 1px solid #c84704;
  border-radius: 11px;
  color: #fff;
  font-size: var(--text-primary-action);
  background: var(--home-cta-gradient);
  box-shadow: none;
}
body[data-page="home"] .home-page .btn:hover {
  color: #fff;
  background: var(--home-cta-gradient-hover);
  border-color: #b63e04;
  box-shadow: none;
}
body[data-page="home"] .home-page :is(.btn, .chip, .model-row, .model-more, .link-arrow):focus-visible,
body[data-page="home"] .home-page .home-faq-item summary:focus-visible {
  outline: 2px solid #b94005;
  outline-offset: 4px;
}
body[data-page="home"] .home-page :is(.link-arrow, .faq-more a) { color: #a9400d; }
body[data-page="home"] .home-page :is(.link-arrow, .faq-more a):hover { color: #843b18; }

/* Quiet product rows keep the catalogue readable through the last item. */
body[data-page="home"] .home-page #produkte {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  background: #f8f7f2;
}
body[data-page="home"] .home-page .chip {
  min-height: 44px;
  padding-inline: 1.15rem;
  border-color: #d4dccc;
  color: #53634f;
  background: transparent;
  box-shadow: none;
}
body[data-page="home"] .home-page .chip:hover {
  color: #263b32;
  border-color: #b8c6ad;
  background: #eeeee5;
  box-shadow: none;
  transform: none;
}
body[data-page="home"] .home-page .chip.is-active {
  color: #263b32;
  border-color: #aebca3;
  background: #e6ebde;
}
body[data-page="home"] .home-page .model-list .model-row { opacity: 1; }
body[data-page="home"] .home-page .model-row:hover { border-bottom-color: #bdcbb1; }
body[data-page="home"] .home-page .model-row__title { color: #43564c; }
body[data-page="home"] .home-page .model-row__go { color: #536b4a; background: #ecede3; }
body[data-page="home"] .home-page .model-row:hover .model-row__go { color: #263b32; background: #dde5d4; }
body[data-page="home"] .home-page .model-more {
  border: 1px solid #cfd7c7;
  border-radius: 11px;
  color: #435d3d;
  background: transparent;
}
body[data-page="home"] .home-page .model-more:hover { border-color: #aebca3; background: #eeeee5; }

/* Product families lead to the published catalogue before detailed choices. */
.home-families__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.home-family { display: flex; flex-direction: column; min-width: 0; }
.home-family__image { display: flex; position: relative; align-items: center; justify-content: center; aspect-ratio: 3 / 2; border-radius: 0; background: transparent; }
.home-family__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-family__image > span { position: absolute; right: .25rem; bottom: 0; color: #788575; font-size: .6875rem; }
.home-family h3 { margin: 1.25rem 0 .75rem; font-size: var(--fs-h3); }
.home-family h3 a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: #263b32; text-decoration: none; }
.home-family h3 a:hover { color: #a9400d; }
.home-family h3 .icon { flex: none; }
.home-family > p { flex: 1; margin: 0; color: #626b61; font-size: var(--text-reading); line-height: var(--leading-body); }
.home-family__roofs { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .75rem; }
.home-family__roofs a { display: inline-flex; align-items: center; min-height: 44px; color: #a9400d; font-size: var(--text-small); text-underline-offset: .2em; }
.home-family a:focus-visible { outline: 2px solid #b94005; outline-offset: 4px; }
.home-families__other { margin-top: 1.5rem; }
/* Compact planning links leave the detailed answers in their guides. */
/* Fit the complete search term without splitting the compound word. */
body[data-page="home"] .home-entry--offers #home-entry-title {
  font-size: clamp(1.55rem, 7.25vw, 3rem);
}
@media (min-width: 900px) {
  body[data-page="home"] .home-entry--offers #home-entry-title {
    font-size: clamp(1.875rem, 3.2vw, 3.5rem);
  }
}

body[data-page="home"] .home-costs { padding-block: clamp(2rem, 3.5vw, 3rem); border-block: 1px solid #e0e3d8; background: #f1f2e9; }
.home-costs__grid { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 2fr); gap: 1.25rem clamp(2rem, 4vw, 4rem); align-items: start; }
.home-costs h2 { max-width: 20ch; margin: 0; color: #263b32; font-size: var(--fs-h3); }
.home-costs__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.home-costs__link { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; min-width: 0; min-height: 44px; padding-left: 1rem; border-left: 1px solid #d2d8c9; color: #263b32; text-decoration: none; white-space: normal; }
.home-costs__link strong { display: block; font-size: 1rem; font-weight: 650; line-height: 1.35; }
.home-costs__link small { display: block; margin-top: .4rem; color: #626b61; font-size: var(--text-small); line-height: 1.5; }
.home-costs__link .icon { flex: none; margin-top: .2rem; color: #a9400d; }
.home-costs__link:hover strong { color: #a9400d; text-decoration: underline; text-underline-offset: .2em; }
.home-costs__link:focus-visible { outline: 2px solid #b94005; outline-offset: 4px; }
@media (max-width: 900px) {
  .home-costs__grid { grid-template-columns: minmax(0, 1fr); }
  .home-families__grid { gap: 1.25rem; }
}
@media (max-width: 700px) {
  .home-costs__links { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-costs__link { padding: .9rem 0; border-left: 0; border-top: 1px solid #d2d8c9; }
  .home-costs__link:first-child { padding-top: 0; border-top: 0; }
  .home-costs__link:last-child { padding-bottom: 0; }
  .home-families__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .home-families .section__heading { align-items: flex-start; }
}

/* FAQs stay light when opened, with the same ink and line colours. */
body[data-page="home"] .home-page .home-faq {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  background: #f8f7f2;
}
body[data-page="home"] .home-page .home-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.2fr);
  grid-template-areas: "intro questions";
  gap: 0 clamp(2rem, 5vw, 5rem);
  align-items: start;
}
body[data-page="home"] .home-page .home-faq__intro { grid-area: intro; }
body[data-page="home"] .home-page .home-faq .section__title { margin-bottom: 0; }
body[data-page="home"] .home-page .home-faq__questions { grid-area: questions; min-width: 0; }
body[data-page="home"] .home-page .home-faq .faq-more { margin: 1.5rem 0 0; }
body[data-page="home"] .home-page .home-faq-item {
  border-color: #dce1d3;
  border-radius: 12px;
  background: #fcfbf7;
  box-shadow: none;
}
body[data-page="home"] .home-page .home-faq-item:is(:hover, [open]) {
  border-color: #bfcbb3;
  background: #fcfbf7;
  box-shadow: none;
}
body[data-page="home"] .home-page .home-faq-item summary { color: #263b32; }
body[data-page="home"] .home-page .home-faq-item summary:hover { color: #45623a; }
body[data-page="home"] .home-page .home-faq-item__sign { color: #5d754f; background: #edf0e4; }
body[data-page="home"] .home-page .home-faq-item > p { color: #626b61; }

/* A light ending belongs to the homepage; other page footers keep their theme. */
body[data-page="home"] .footer-line {
  height: 1px;
  background: #dce1d2;
  clip-path: none;
}
body[data-page="home"] .site-footer {
  color: #53634f;
  background: #eeeee5;
}
body[data-page="home"] .site-footer__wordmark .brand-logo {
  content: url("../brand/pergolaguru-wordmark-light.svg");
}
body[data-page="home"] .site-footer__col-title {
  color: #263b32;
  border-color: #d5dccb;
}
body[data-page="home"] .site-footer__link { color: #53634f; }
body[data-page="home"] .site-footer__link:hover { color: #a9400d; }
body[data-page="home"] .site-footer__request {
  color: #fff;
  border-color: #c84704;
  background: var(--home-cta-gradient);
}
body[data-page="home"] .site-footer__request:hover {
  color: #fff;
  border-color: #b63e04;
  background: var(--home-cta-gradient-hover);
}
body[data-page="home"] .site-footer :is(a, button, summary):focus-visible {
  outline-color: #b94005;
}
body[data-page="home"] .site-footer__legal { border-color: #d5dccb; }
body[data-page="home"] .site-footer__legal :is(a, button) { color: #53634f; }
body[data-page="home"] .site-footer__legal :is(a, button):hover { color: #a9400d; }
body[data-page="home"] :is(.site-footer__disclaimer, .site-footer__bottom) {
  color: #626b61;
  border-color: #d5dccb;
}
body[data-page="home"] .site-footer__group { border-color: #d5dccb; }
body[data-page="home"] .site-footer__col:nth-child(2) .site-footer__group { border-top-color: #d5dccb; }
body[data-page="home"] .site-footer__expand,
body[data-page="home"] .site-footer__group[open] .site-footer__col-title { color: #526b45; }

@media (max-width: 900px) {
  body[data-page="home"] .home-page .home-faq__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "questions";
  }
  body[data-page="home"] .home-page .home-faq__intro { margin-bottom: 1.5rem; }
}

@media (max-width: 540px) {
  body[data-page="home"] .home-page #produkte .section__heading { align-items: flex-start; }
  body[data-page="home"] .home-page .model-row { gap: .75rem; }
  body[data-page="home"] .home-page .model-row__go { width: 2.25rem; height: 2.25rem; }
  body[data-page="home"] .home-page .model-more { padding-inline: .75rem; }
}
