/* VADRIS – konsistente Typografie, Satzachse und Fokusstandorte */
:root {
  --vadris-body-size: 17px;
  --vadris-heading-size: clamp(2rem, 3.65vw, 3.2rem);
  --vadris-section-gutter: clamp(1.25rem, 5vw, 5.5rem);
}

/* Derselbe zentrierte Rahmen und dieselben Seitenabstände für alle Bereiche. */
#root .site-shell main > section,
#root .site-shell main > div {
  box-sizing: border-box;
}
#root .site-shell main .section-grid {
  width: min(100%, 1440px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--vadris-section-gutter);
  padding-right: var(--vadris-section-gutter);
}

/* Keine automatische Silbentrennung oder erzwungenen Binnenumbrüche. */
#root .site-shell main h1,
#root .site-shell main h2,
#root .site-shell main p,
#root .site-shell main li {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
#root .site-shell main h1,
#root .site-shell main h2 {
  max-width: 70rem;
}
#hero-title {
  max-width: 70rem;
  line-height: 1.06 !important;
}

/* Section-Headlines teilen sich Größe, Zeilenhöhe, Achse und Farblogik. */
#root .site-shell main h2 {
  color: #002723;
  font-size: var(--vadris-heading-size) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 0;
}
#root .site-shell main h2 em {
  color: #b8975a !important;
}
/* Überschriften auf dunklen Flächen bleiben kontrastreich. */
#root .site-shell main .record-section h2,
#root .site-shell main .team-section h2,
#root .site-shell main .commission-section h2 {
  color: #f7f5ef;
}
#root .site-shell main .record-section h2 em,
#root .site-shell main .team-section h2 em,
#root .site-shell main .commission-section h2 em {
  color: #b8975a !important;
}

/* Einheitlicher Fließtext auf der Startseite; Eyebrows und Metadaten bleiben Kleintext. */
#root .site-shell main section p:not(.eyebrow):not(.section-kicker p) {
  font-size: var(--vadris-body-size) !important;
  line-height: 1.65 !important;
}
#root .site-shell main section .eyebrow,
#root .site-shell main section .section-kicker,
#root .site-shell main section .section-kicker p,
#root .site-shell main section .section-kicker span,
#root .site-shell main section .metric span,
#root .site-shell main section .record-metrics span,
#root .site-shell main section .team-role,
#root .site-shell main section .hero-assurance {
  font-size: 13px !important;
  line-height: 1.55;
}
#root .site-shell main section .eyebrow { margin-bottom: 1.15rem !important; }

/* Gemeinsame vertikale Abstände der Label-/Headline-/Text-Gruppe. */
#root .site-shell main .architecture-lead,
#root .site-shell main .record-heading,
#root .site-shell main .process-heading {
  padding: 0 !important;
  margin: 0;
}
#root .site-shell main .architecture-lead h2,
#root .site-shell main .record-heading h2,
#root .site-shell main .process-heading h2,
#root .site-shell main .map-copy h2,
#root .site-shell main .buyer-copy h2,
#root .site-shell main .why-content h2,
#root .site-shell main .team-heading h2,
#root .site-shell main .insights-section h2,
#root .site-shell main .valuation-section h2,
#root .site-shell main .commission-section h2,
#root .site-shell main .faq-section h2,
#root .site-shell main .contact-aside h2 {
  max-width: 70rem;
}
#root .site-shell main .architecture-lead > p:first-of-type,
#root .site-shell main .record-heading > p:first-of-type,
#root .site-shell main .process-heading > p:first-of-type,
#root .site-shell main .map-copy > p:not(.eyebrow),
#root .site-shell main .buyer-copy > p:not(.eyebrow),
#root .site-shell main .contact-aside > p:not(.eyebrow) {
  margin-top: 1.25rem !important;
}
#root .site-shell main .architecture-lead > p + p,
#root .site-shell main .record-heading > p + p {
  margin-top: 0.9rem !important;
}

/* Section 02: exakt zweispaltige Headline, daneben eine nicht überlagernde Ostkarte. */
#root .site-shell main .map-section {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) !important;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem) !important;
}
#root .site-shell main #map-title {
  max-width: 34rem;
}
#root .site-shell main .germany-map {
  width: 100%;
  min-width: 0;
  min-height: 0 !important;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
}
#root .site-shell main .germany-map img {
  display: block;
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  height: auto;
  max-height: none !important;
  object-fit: contain;
  transform: none !important;
}

/* Section 03: Label und Headline starten an derselben linken Kante. */
#root .site-shell main .architecture.section-grid {
  display: block !important;
}
#root .site-shell main .architecture .section-kicker {
  margin: 0 0 1.15rem;
}
#root .site-shell main .architecture-lead {
  max-width: 70rem;
}
#root .site-shell main .architecture-lead h2 {
  margin: 0;
}
#root .site-shell main .architecture-lead > p:first-of-type {
  max-width: 58rem;
}
#root .site-shell main .principles {
  margin-top: clamp(2.5rem, 4vw, 4rem) !important;
}
#root .site-shell main .principle p {
  font-size: var(--vadris-body-size) !important;
  line-height: 1.65 !important;
}

/* Kleinere Geräte: Karte folgt der Headline, lange Komposita passen weiterhin ungetrennt. */
@media (max-width: 900px) {
  #root .site-shell main .map-section {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem !important;
  }
  #root .site-shell main .germany-map img {
    width: min(100%, 460px) !important;
  }
}
@media (max-width: 720px) {
  #root .site-shell main h2 {
    font-size: clamp(1.8rem, 6.7vw, 2.35rem) !important;
    line-height: 1.14 !important;
  }
  #hero-title {
    font-size: clamp(1.7rem, 8vw, 2.6rem) !important;
    line-height: 1.08 !important;
  }
  #root .site-shell main .architecture-lead > p + p {
    margin-top: 0.8rem !important;
  }
}

/* Desktop-Folgekorrektur: alle bisher versetzten Sections an die gemeinsame Achse */
@media (min-width: 901px) {
  #root .site-shell main .record-content {
    display: flex !important; flex-direction: column !important; align-items: stretch; gap: 0;
    min-height: auto !important; padding-top: clamp(5rem, 8vw, 7.5rem); padding-bottom: clamp(4rem, 6vw, 5.5rem);
  }
  #root .site-shell main .record-heading { width: 100%; max-width: 70rem; align-self: flex-start; padding: 0 !important; margin: 0; }
  #root .site-shell main .record-heading > p { max-width: 70rem; margin-top: 1.25rem !important; }
  #root .site-shell main .record-heading > p + p { margin-top: 0.9rem !important; }
  #root .site-shell main .record-content > .metrics { width: 100%; margin: clamp(2.5rem, 4vw, 4rem) 0 0; }
  #root .site-shell main .metrics span { font-size: 13px !important; line-height: 1.55 !important; }

  #root .site-shell main .buyer-section { display: block !important; }
  #root .site-shell main .buyer-copy { width: 100%; max-width: 70rem; padding: 0 !important; margin: 0; }
  #root .site-shell main .buyer-copy > p:not(.eyebrow) { max-width: 70rem; margin-top: 1.25rem !important; }
  #root .site-shell main .buyer-copy .arrow-link { margin-top: 1.5rem; }
  #root .site-shell main .profile-note { grid-column: auto; width: 100%; max-width: 70rem; margin: 2rem 0 0 !important; }

  #root .site-shell main .process-section > .section-grid { display: block !important; grid-template-columns: 1fr !important; }
  #root .site-shell main .process-heading { width: 100%; max-width: 70rem; padding: 0 !important; margin: 1.15rem 0 0; }
  #root .site-shell main .process-heading h2 { max-width: 70rem; }
  #root .site-shell main .process-heading p { max-width: 70rem; margin-top: 1.25rem; }
  #root .site-shell main .process-section .process-cards {
    display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: min(100%, 1440px); margin: 2.5rem auto 0 !important;
    padding-left: var(--vadris-section-gutter); padding-right: var(--vadris-section-gutter); align-items: start;
  }
  #root .site-shell main .process-card, #root .site-shell main .process-card + .process-card {
    min-width: 0; border-top: 0; border-left: 1px solid #c0bfbf; padding: 1.4rem clamp(1rem, 2.8vw, 2.5rem);
  }
  #root .site-shell main .process-card:first-child { border-left: 0; padding-left: 0; }
  #root .site-shell main .process-card > p:last-child { max-width: none; }

  #root .site-shell main .why-section { display: block !important; }
  #root .site-shell main .why-content { width: 100%; max-width: 70rem; margin: 0 !important; padding: 0 !important; }
  #root .site-shell main .reason-list { width: 100%; max-width: 70rem; }

  #root .site-shell main .team-section > .section-grid { display: block !important; grid-template-columns: 1fr !important; }
  #root .site-shell main .team-heading { width: 100%; max-width: 70rem; padding: 0 !important; margin: 1.15rem 0 0; }
  #root .site-shell main .team-heading > p { max-width: 70rem; margin-top: 1.25rem; }
  #root .site-shell main .team-logo-row { display: block !important; margin-top: 2rem; }
  #root .site-shell main .team-logo-row .team-summary { width: 100%; max-width: 70rem; margin: 0 !important; padding: 0 !important; }

  #root .site-shell main .insights-section {
    display: grid !important; grid-template-columns: minmax(0, 1fr) !important; align-items: start; gap: 1.4rem !important;
  }
  #root .site-shell main .insights-signpost { display: none !important; }
  #root .site-shell main .insights-section > div:nth-child(2) { width: 100%; max-width: 70rem; }
  #root .site-shell main .insights-section h2 { max-width: 70rem; }
  #root .site-shell main .insights-form { width: 100%; max-width: 44rem; margin: 0; }
  #root .site-shell main .insights-form > p { max-width: 44rem; }

  #root .site-shell main .valuation-section {
    display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: clamp(2rem, 6vw, 6rem); row-gap: 0; align-items: start;
  }
  #root .site-shell main .valuation-section > div:first-child { display: contents; }
  #root .site-shell main .valuation-section > div:first-child > .eyebrow { grid-column: 1; }
  #root .site-shell main .valuation-section #valuation-title {
    grid-column: 1 / -1; width: 100%; max-width: 70rem; margin: 0 0 1.5rem;
  }
  #root .site-shell main .valuation-section .valuation-assurance { grid-column: 1; max-width: 38rem; margin: 0 0 1.1rem !important; }
  #root .site-shell main .valuation-section > .arrow-link { grid-column: 1; justify-self: start; margin-top: 0.4rem; }
  #root .site-shell main .valuation-points { grid-column: 2; grid-row: 3 / span 3; align-self: start; width: 100%; margin: 0; }
  #root .site-shell main .valuation-points > p,
  #root .site-shell main .valuation-points > div p { font-size: var(--vadris-body-size) !important; line-height: 1.65 !important; }

  #root .site-shell main .commission-section { display: block !important; }
  #root .site-shell main .commission-section > div:first-child,
  #root .site-shell main .commission-copy { width: 100%; max-width: 70rem; margin: 0; }
  #root .site-shell main .commission-copy p { font-size: var(--vadris-body-size) !important; line-height: 1.65 !important; margin-top: 1.25rem; }
  #root .site-shell main .commission-copy small { font-size: 12px !important; }
  #root .site-shell main .faq-section { display: block !important; }
  #root .site-shell main .faq-section > div:first-child { width: 100%; max-width: 70rem; }
  #root .site-shell main .faq-list { width: 100%; max-width: 70rem; margin-top: 1.4rem; }

  #root .site-shell main .contact-section {
    width: 100%; max-width: none; margin: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) !important;
    align-items: start;
    padding-left: max(var(--vadris-section-gutter), calc((100vw - 1440px) / 2 + var(--vadris-section-gutter)));
    padding-right: max(var(--vadris-section-gutter), calc((100vw - 1440px) / 2 + var(--vadris-section-gutter)));
    background: #e6ebe8 !important;
  }
  #root .site-shell main .contact-form-wrap { border-left: 0 !important; padding-left: clamp(2rem, 5vw, 4rem) !important; }
}

@media (max-width: 900px) {
  #root .site-shell main .valuation-section > div:first-child { display: block; }
  #root .site-shell main .valuation-section > div:first-child > .eyebrow,
  #root .site-shell main .valuation-section #valuation-title,
  #root .site-shell main .valuation-section .valuation-assurance,
  #root .site-shell main .valuation-section > .arrow-link,
  #root .site-shell main .valuation-points { grid-column: auto; grid-row: auto; }
  #root .site-shell main .valuation-section { display: block !important; }
  #root .site-shell main .valuation-points { margin-top: 2rem; }
}

/* Nachkorrektur 28.09.: volle Teamfotos, ganz sichtbare Deutschlandkarte und lesbarere Headlines */
:root { --vadris-heading-size: clamp(2.3rem, 4.2vw, 3.8rem); }
#root .site-shell main h2 {
  font-size: var(--vadris-heading-size) !important;
  line-height: 1.12 !important;
}

/* Die vorhandene Karte ist ein vollständiges Seitenverhältnis-Bild: nie zoomen oder beschneiden. */
#root .site-shell main .germany-map {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  overflow: visible !important;
}
#root .site-shell main .germany-map img {
  display: block;
  width: min(100%, 560px) !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  transform: none !important;
}

/* 4 Personen nebeneinander am Desktop; Bildrahmen im Original-Seitenverhältnis 4:5. */
@media (min-width: 901px) {
  #root .site-shell main .team-section > .team-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: start;
    gap: clamp(.9rem, 1.5vw, 1.25rem);
  }
  #root .site-shell main .team-section .team-person {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    width: auto !important;
    padding: 1.2rem 0 1.8rem !important;
    border-top: 0 !important;
    border-right: 1px solid #eef3f059 !important;
    border-left: 0 !important;
  }
  #root .site-shell main .team-section .team-person:first-child { padding-left: 0 !important; }
  #root .site-shell main .team-section .team-person:last-child { padding-right: 0 !important; border-right: 0 !important; }
}
#root .site-shell main .team-portrait {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 5 !important;
  overflow: hidden;
}
#root .site-shell main .team-portrait img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  transform: none !important;
}

/* Profilangaben sind keine Bildunterschrift: Name/Ankaufsprofil bekommen lesbare Größe. */
#root .site-shell main section .profile-note p {
  font-size: clamp(1.55rem, 1.9vw, 1.8rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.015em !important;
}
#root .site-shell main .profile-note span {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

@media (min-width: 721px) {
  #root .site-shell main .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #root .site-shell main .metrics > div,
  #root .site-shell main .metrics > div + div {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: .7rem;
    min-width: 0;
    padding: 1.2rem clamp(.8rem, 1.8vw, 1.7rem) 1rem !important;
    border-bottom: 0 !important;
    border-right: 1px solid #eef3f059 !important;
  }
  #root .site-shell main .metrics > div:first-child { padding-left: 0 !important; }
  #root .site-shell main .metrics > div:last-child { border-right: 0 !important; padding-right: 0 !important; }
  #root .site-shell main .metrics strong { font-size: clamp(2rem, 3.2vw, 3.1rem) !important; line-height: 1 !important; }
  #root .site-shell main .metrics span { max-width: 100% !important; margin-top: 0 !important; }
}

@media (max-width: 900px) {
  #root .site-shell main h2 {
    font-size: clamp(1.85rem, 7.8vw, 2.65rem) !important;
    line-height: 1.14 !important;
  }
  #root .site-shell main .team-section > .team-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }
  #root .site-shell main .team-section .team-person,
  #root .site-shell main .team-section .team-person:nth-child(2n),
  #root .site-shell main .team-section .team-person:nth-child(n+3) {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    padding: 1.1rem 0 1.5rem !important;
    border-top: 1px solid #eef3f059 !important;
    border-right: 0 !important;
    border-left: 0 !important;
  }
  #root .site-shell main .team-section .team-person:first-child { border-top: 0 !important; }

  /* Stapele Kennzahl und Erläuterung vertikal, damit „Tausende“ nie in Text hineinragt. */
  #root .site-shell main .record-content > .metrics {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0;
    margin-top: 2.25rem !important;
  }
  #root .site-shell main .record-content > .metrics > div,
  #root .site-shell main .record-content > .metrics > div + div {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    min-width: 0;
    padding: 1rem 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #eef3f059 !important;
  }
  #root .site-shell main .record-content > .metrics > div:last-child { border-bottom: 0 !important; }
  #root .site-shell main .record-content > .metrics strong {
    font-size: clamp(1.9rem, 8vw, 2.35rem) !important;
    line-height: 1.05 !important;
  }
  #root .site-shell main .record-content > .metrics span {
    max-width: none !important;
    margin-top: .2rem !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    letter-spacing: .02em;
  }
  #root .site-shell main .germany-map img { width: min(100%, 500px) !important; }
  #root .site-shell main section .profile-note p { font-size: 1.65rem !important; }
  #root .site-shell main .profile-note span { font-size: 16px !important; }
}

#root .site-shell main section.buyer-section .profile-note > p {
  font-size: clamp(1.55rem, 1.9vw, 1.8rem) !important;
  line-height: 1.12 !important;
}
#root .site-shell main section.buyer-section .profile-note > span {
  font-size: 16px !important;
  line-height: 1.6 !important;
}
#root .site-shell main .insights-form [data-newsletter-status] {
  display: block;
  margin-top: .75rem;
  color: #31504a;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* Impressum und Datenschutz: eigenständige, ruhigere Rechtstypografie im VADRIS-Corporate-Design. */
#root .legal-page .legal-content h1 {
  color: #002723 !important;
  font-family: Newsreader, Georgia, serif !important;
  font-size: clamp(2.1rem, 3.2vw, 3rem) !important;
  font-weight: 400 !important;
  letter-spacing: -.025em;
  line-height: 1.08 !important;
}
#root .legal-page .legal-content h2 {
  color: #002723 !important;
  font-family: Newsreader, Georgia, serif !important;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem) !important;
  font-weight: 400 !important;
  letter-spacing: -.015em;
  line-height: 1.28 !important;
}
#root .legal-page .legal-content h2 em { color: #b8975a !important; }
#root .legal-page .legal-content .legal-kicker {
  color: #9f7f43 !important;
  font-size: 13px !important;
  letter-spacing: .12em;
  text-transform: uppercase !important;
}

#root .site-shell main .profile-note > p:not(.eyebrow):not(.section-kicker) {
  font-size: clamp(1.6rem, 1.9vw, 1.9rem) !important;
  line-height: 1.2 !important;
}
#root .site-shell main .profile-note > p > strong { font-weight: 500 !important; }
#root .site-shell main .insights-form .form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
