/* Shared layout corrections. Component typography, colors and interactions
   remain in styles.css. This file owns section spacing and responsive layout. */
:root {
  --site-gutter: clamp(20px, 4.5vw, 80px);
  --site-width: 1600px;
  --section-pad: var(--section-y);
  --content-gap: clamp(48px, 5.5vw, 88px);
}

.site-container {
  width: min(var(--site-width), calc(100% - 2 * var(--site-gutter)));
  margin-inline: auto;
}

.section-space {
  margin-block: 0;
  padding-block: var(--section-y);
}

.faq-section { min-height: 0; }
.navbar { padding-inline: var(--site-gutter); }
.site-footer__inner { padding-top: var(--section-pad); }
.site-footer__column, .site-footer__brand { overflow-wrap: break-word; }
.site-footer__contact-item > :last-child { min-width: 0; }

.pv-compare__intro { margin-top: 0; }

/* Keep a clear baseline beneath each complete review, including attribution.
   layout.js joins these measured baselines on wide screens. */
.reviews-canvas {
  min-height: 0;
  margin-top: var(--content-gap);
  padding-bottom: 10px;
}
.review { padding-bottom: 36px; }
.review::before { bottom: 0; }
.review-node { top: auto; bottom: -4px; }
.review-stars { display: flex; gap: 8px; }
.reviews-footer { margin-top: 32px; align-items: end; }
.reviews-footer-line { margin-bottom: 8px; }
.reviews-footer > span:first-child { padding-bottom: 5px; }
.reviews-link-group {
  position: relative;
  width: max-content;
  max-width: 100%;
  padding-top: 76px;
  justify-self: end;
}
.reviews-link-group .reviews-note {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 70px;
  margin: 0;
}
.reviews-link-group .reviews-note svg {
  position: absolute;
  top: 22px;
  left: 0;
  width: 54px;
  height: 54px;
  margin: 0;
}
.reviews-link-group .reviews-note p {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  white-space: nowrap;
  letter-spacing: normal;
}
.reviews-link-group a { min-height: 24px; }

/* CTA outer spacing is owned by the section. Child padding no longer doubles it. */
.project-cta { min-height: 0; padding-block: var(--section-y); }
.project-cta__inner { min-height: 536px; }
.project-cta__copy { padding-block: 0; }
.project-cta__visual {
  top: calc(-1 * var(--section-pad));
  bottom: calc(-1 * var(--section-pad));
}

/* Restore the missing hero metadata rules without changing the desktop artwork. */
.hero-meta {
  position: absolute;
  z-index: 20;
  bottom: 30px;
  left: 5.5vw;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.meta-left { display: flex; align-items: center; gap: 11px; }
.meta-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

@media (max-width: 1180px) {
  .review::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 27px;
    height: 1px;
    background: var(--line);
  }
  .reviews-canvas { padding-left: 0; }
}

@media (min-width: 951px) and (max-width: 1100px) {
  /* Keep the two authored hero title lines intact without colliding with
     the absolute-positioned form at the narrow desktop breakpoint. */
  .hero-copy { width: 43vw; }
  .hero-title { font-size: clamp(2.85rem, 4.8vw, 3.3rem); }
  .hero .subtitle-mask,
  .hero-subtitle { max-width: 38ch; }
}

@media (max-width: 950px) {
  /* A real document-flow layout: text, landscape, form, then metadata.
     Form validation and every step can grow without clipping or overlap. */
  .hero { height: auto; min-height: 0; overflow: clip; }
  .hero-stage {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    padding: 122px 0 var(--section-y-m);
    overflow: visible;
  }
  .hero-copy {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    top: auto;
    left: auto;
    width: calc(100% - 2 * var(--site-gutter));
    max-width: 650px;
    margin-inline: auto;
  }
  .hero-copy { color: var(--ink); text-shadow: none; }
  .hero .eyebrow { color: var(--slate); }
  .hero .hero-title, .hero .hero-title .reveal { color: var(--ink); }
  .hero-subtitle { color: var(--slate-soft); text-shadow: none; }
  .hero-title {
    font-size: clamp(44px, 8.5vw, 72px);
    line-height: .97;
    letter-spacing: -.055em;
  }
  .hero-title .reveal { white-space: normal; }
  .hero .eyebrow { margin-bottom: 26px; font-size: 8px; letter-spacing: 2.4px; }
  .hero .subtitle-mask { margin-top: 18px; }
  .hero-subtitle { font-size: clamp(17px, 2.5vw, 21px); line-height: 1.5; letter-spacing: -.02em; }
  .hero-button-slot { margin-top: 26px; }
  .hero-button { min-width: 218px; height: 56px; }
  .hero-image-wrapper {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    inset: auto;
    height: clamp(300px, 76vw, 510px);
    margin-top: -20px;
  }
  .hero-image-parallax { inset: 0; width: 100%; height: 100%; }
  .hero-image {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 58%;
    transform-origin: center;
  }
  .hero-image-wrapper::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(to bottom, var(--background), transparent 25%, transparent 78%, var(--background));
  }
  .hero-haze { display: none; }
  .hero-form {
    position: relative;
    grid-column: 1;
    grid-row: 3;
    right: auto;
    bottom: auto;
    width: min(540px, calc(100% - 2 * var(--site-gutter)));
    min-width: 0;
    margin: -14px auto 0;
  }
  .hero-meta {
    position: relative;
    grid-column: 1;
    grid-row: 4;
    inset: auto;
    width: min(540px, calc(100% - 2 * var(--site-gutter)));
    margin: 30px auto var(--section-y-m);
    color: var(--muted);
    font-size: 7px;
    line-height: 1.6;
  }
  .hero-form input, .hero-form select { font-size: 16px; }
}

@media (max-width: 900px) {
  .project-cta__inner { min-height: 0; }
  .project-cta__copy { padding: 0 0 430px; }
  .project-cta__visual { top: auto; bottom: calc(-1 * var(--section-pad)); }
}

@media (max-width: 760px) {
  .reviews-canvas { padding: 0; }
  .review { margin: 0; padding: 0 0 32px 25px; }
  .review + .review { margin-top: 36px; }
  .reviews-footer { margin-top: 32px; gap: 16px; }
  .reviews-link-group .reviews-note p { font-size: 14px; }
}

@media (max-width: 560px) {
  /* Scale the authored two-line title to the available measure instead of
     forcing either title wrapper to create a third line. */
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-stage { padding-top: 114px; }
  .hero-image-wrapper { height: 330px; }
  .hero-form .land-check__surface { padding-inline: 16px; }
  .hero-form .land-check__step-footer { flex-wrap: wrap; gap: 16px; }
  .hero-form .land-check__trust { flex: 1 1 90px; }
  .hero-form .land-check__submit { min-width: 0; }
  .project-cta__copy { padding-bottom: 330px; }
  .project-cta__meta { margin-top: 36px; }
}

@media (max-width: 360px) {
  .hero-form .land-check { padding-inline: 18px; }
  .hero-form .land-check__submit { width: 100%; }
  .reviews-footer { grid-template-columns: 1fr; gap: 16px; }
}


/* Unified section rhythm shared by index.html and investoren.html. */
main > section:not(.hero):not(.investor-hero) {
  margin-block: 0;
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

main > section:first-child {
  border-top: 0;
}

@media (max-width: 900px) {
  main > section:not(.hero):not(.investor-hero) {
    padding-block: var(--section-y-m);
  }

  .section-space {
    padding-block: var(--section-y-m);
  }

  .site-footer__inner {
    padding-top: var(--section-y-m);
  }
}

/* A single centered content boundary on every page. */
:root {
  --site-width: 1600px;
  --site-gutter: clamp(20px, 4.5vw, 80px);
  --section-pad: var(--section-y);
  --site-edge: max(var(--site-gutter), calc((100vw - var(--site-width)) / 2));
}
main .site-container,
.site-footer .site-container {
  width: min(var(--site-width), calc(100% - 2 * var(--site-gutter)));
  max-width: var(--site-width);
  margin-inline: auto;
}
main > section:not(.hero):not(.investor-hero):not(.projects-hero):not(.career-hero) {
  margin-block: 0;
  padding-block: var(--section-pad);
  padding-inline: 0;
}
main > .investor-hero,
main > .projects-hero,
main > .career-hero {
  padding: calc(var(--section-pad) + 72px) 0 var(--section-pad);
}
.navbar.navbar--editorial {
  left: var(--site-edge);
  width: min(var(--site-width), calc(100% - 2 * var(--site-gutter)));
}
@media (min-width: 951px) {
  .hero-copy, .hero-meta { left: var(--site-edge); }
  .hero-form { right: var(--site-edge); }
}
@media (max-width: 900px) {
  :root { --section-pad: var(--section-y-m); }
}


/* Mobile hero: keep only the soft top blend into the copy area.
   Do not fade the bottom edge of the hero video into white. */
@media (max-width: 767px) {
  .hero-image-wrapper::after {
    background: linear-gradient(to bottom, var(--background) 0%, transparent 25%);
  }
}


/* Reviews footer refinement — 2026-09-23 */
.reviews-footer {
  grid-template-columns: auto auto;
  justify-content: space-between;
  column-gap: 48px;
}
.reviews-footer-line {
  display: none !important;
}
.reviews-link-group {
  padding-top: 94px;
}
.reviews-link-group .reviews-note {
  height: 84px;
}
.reviews-link-group .reviews-note svg {
  top: 38px;
  left: -10px;
  width: 48px;
  height: 48px;
}
.reviews-link-group .reviews-note p {
  top: 0;
  right: 0;
}
.reviews-google-badge {
  cursor: pointer;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}
.reviews-google-badge:hover {
  transform: translateY(-2px);
}
.reviews-google-badge:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}

@media (max-width: 760px) {
  .reviews-footer {
    grid-template-columns: 1fr auto;
  }
  .reviews-link-group {
    padding-top: 82px;
  }
  .reviews-link-group .reviews-note {
    height: 72px;
  }
  .reviews-link-group .reviews-note svg {
    top: 34px;
    left: -6px;
    width: 44px;
    height: 44px;
  }
}
