/*
 * AV Andrea Vieten Immobilien – Designsystem v2
 *
 * Zentraler Gestaltungs-Layer für Impreza + WPBakery.
 * Die Seiteninhalte bleiben in normalen WPBakery-Zeilen, -Spalten,
 * Textblöcken, Bildern, Buttons und dynamischen ImmoManager-Blöcken editierbar.
 */

:root {
  --av-green: #173d2c;
  --av-green-dark: #10291e;
  --av-green-soft: #315845;
  --av-gold: #c7a35b;
  --av-gold-light: #e7d6ad;
  --av-ink: #27372e;
  --av-text: #596159;
  --av-paper: #fbfaf7;
  --av-sand: #f2eee4;
  --av-line: #ded9ce;
  --av-white: #ffffff;
  --av-radius: 0;
  --av-shadow: 0 18px 45px rgba(23, 61, 44, 0.09);
}

body {
  color: var(--av-text);
  font-size: 16px;
  line-height: 1.72;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--av-ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 5.3vw, 5rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  line-height: 1.08;
}

h3 {
  line-height: 1.22;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

a {
  text-underline-offset: 0.18em;
}

.l-header .w-nav-item.level_1 > .w-nav-anchor {
  padding-right: 0.55rem !important;
  padding-left: 0.55rem !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.l-header .w-btn {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.av-eyebrow {
  margin-bottom: 0.9rem;
  color: var(--av-green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.45;
  text-transform: uppercase;
}

.av-section-heading {
  max-width: 780px;
  margin-right: auto;
  margin-bottom: 3rem;
  margin-left: auto;
  text-align: center;
}

.av-section-heading h2::after {
  display: block;
  width: 46px;
  height: 2px;
  margin: 1.15rem auto 0;
  background: var(--av-gold);
  content: "";
}

.av-section-heading > p:last-child {
  max-width: 690px;
  margin-right: auto;
  margin-left: auto;
}

.av-home-hero {
  min-height: 680px;
  overflow: hidden;
}

.av-home-hero .l-section-img {
  background-position: 52% center !important;
}

.av-home-hero .l-section-h {
  z-index: 2;
}

.av-home-hero h1 {
  max-width: 760px;
  margin-bottom: 1.25rem;
  color: var(--av-white);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: clamp(3.1rem, 5.2vw, 5.2rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.av-home-hero .av-eyebrow,
.av-home-hero h4 {
  color: var(--av-gold-light);
}

.av-home-hero .av-hero-copy p:not(.av-eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.av-home-hero .w-btn {
  margin-top: 0.75rem;
  margin-right: 0.65rem;
}

.av-review-card > .vc_column-inner {
  max-width: 245px;
  margin-top: 18rem;
  margin-left: auto;
  padding: 1.65rem 1.55rem;
  border-top: 3px solid var(--av-gold);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--av-shadow);
  color: var(--av-text);
  text-align: center;
}

.av-review-card h3 {
  margin-bottom: 0.2rem;
  color: var(--av-gold);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.av-review-card h4 {
  margin-bottom: 0.55rem;
  color: var(--av-ink);
}

.av-review-card p {
  font-size: 0.86rem;
  line-height: 1.55;
}

.av-trust-strip {
  border-bottom: 1px solid var(--av-line);
  background: var(--av-white);
}

.av-trust-strip .g-cols,
.av-process-grid .g-cols,
.av-region-grid .g-cols {
  display: grid !important;
  gap: 0 !important;
}

.av-trust-strip .g-cols,
.av-process-grid .g-cols {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.av-region-grid .g-cols {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.av-trust-item > .vc_column-inner {
  min-height: 128px;
  padding: 1.2rem 0.7rem;
  border-left: 1px solid var(--av-line);
  text-align: center;
}

.av-trust-item:first-child > .vc_column-inner {
  border-left: 0;
}

.av-trust-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 0.55rem;
  place-items: center;
  color: var(--av-gold);
  font-size: 1.75rem;
  line-height: 1;
}

.av-trust-item strong {
  display: block;
  color: var(--av-ink);
  font-size: 0.78rem;
  line-height: 1.35;
}

.av-section-alt {
  background: var(--av-sand);
}

.av-editorial-image img {
  width: 100%;
  min-height: 470px;
  object-fit: cover;
  box-shadow: var(--av-shadow);
}

.av-editorial-copy {
  padding: 1rem 1.4rem;
}

.av-editorial-copy .av-signature {
  margin-top: 1.4rem;
  margin-bottom: 0.2rem;
  color: var(--av-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.05rem;
  font-style: italic;
}

.av-value-card > .vc_column-inner,
.av-card > .vc_column-inner,
.av-faq-card > .vc_column-inner,
.av-contact-card > .vc_column-inner {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--av-line);
  background: var(--av-white);
}

.av-value-card > .vc_column-inner {
  display: flex;
  min-height: 470px;
  background: var(--av-paper);
  box-shadow: var(--av-shadow);
  flex-direction: column;
  justify-content: center;
}

.av-property-types {
  display: grid;
  margin: 1.35rem 0;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.av-property-types span {
  display: grid;
  min-height: 108px;
  padding: 1rem 0.45rem;
  place-items: center;
  border: 1px solid var(--av-line);
  background: var(--av-white);
  color: var(--av-ink);
  text-align: center;
}

.av-property-types > br {
  display: none !important;
}

.av-property-types i {
  color: var(--av-green-soft);
  font-size: 1.75rem;
}

.av-property-types strong {
  font-size: 0.78rem;
}

.av-value-card .w-btn {
  width: 100%;
}

.av-value-note {
  margin: 0.8rem 0 0;
  color: var(--av-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.av-card h3,
.av-card h4,
.av-faq-card h3,
.av-contact-card h3 {
  margin-bottom: 0.7rem;
}

.av-card h3,
.av-faq-card h3,
.av-contact-card h3 {
  overflow-wrap: break-word;
  font-size: clamp(1.5rem, 2vw, 2rem);
  hyphens: auto;
  line-height: 1.15;
}

.av-card p,
.av-faq-card p,
.av-contact-card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.av-card-number {
  display: inline-grid;
  width: 43px;
  height: 43px;
  margin-bottom: 1rem;
  place-items: center;
  border: 1px solid var(--av-green-soft);
  color: var(--av-green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.av-reference-preview #wpi-main .row > article:nth-child(n + 4) {
  display: none !important;
}

.av-reference-preview #wpi-main,
.av-reference-preview #wpi-main .container-fluid,
.av-reference-preview #wpi-main .content-div,
.av-reference-preview #wpi-main .site-main {
  width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.av-reference-preview .search-container {
  display: none !important;
}

.av-reference-preview #wpi-main > section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.av-reference-preview #wpi-main .panel {
  margin-bottom: 0 !important;
}

.av-reference-preview .reference-list,
.av-reference-list .reference-list {
  padding-right: 0.65rem;
  padding-left: 0.65rem;
}

.av-reference-preview .list-sold-container,
.av-reference-list .list-sold-container {
  overflow: hidden;
  border: 1px solid var(--av-line);
  background: var(--av-white);
  box-shadow: 0 10px 30px rgba(23, 61, 44, 0.07);
}

.av-reference-preview .sold-text,
.av-reference-list .sold-text {
  background: rgba(23, 61, 44, 0.93) !important;
  color: var(--av-white) !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.av-reference-preview img,
.av-reference-list img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.av-reference-preview .reference-title,
.av-reference-list .reference-title {
  color: var(--av-ink) !important;
  font-weight: 700;
}

.av-reference-cta > .vc_column-inner {
  display: flex;
  min-height: 0;
  padding: 1.65rem 1.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--av-line);
  background: var(--av-sand);
  flex-direction: column !important;
  gap: 0.75rem;
  text-align: center;
}

.av-reference-intro > .l-section-h {
  padding-bottom: 1rem !important;
}

.av-reference-row > .l-section-h {
  padding-top: 0.75rem !important;
  padding-bottom: 1.75rem !important;
}

.av-reference-cta .wpb_text_column,
.av-reference-cta .w-btn-wrapper {
  width: 100%;
}

.av-reference-cta h3 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 1.8vw, 1.9rem);
  line-height: 1.12;
}

.av-reference-cta p {
  margin-bottom: 0;
}

.av-testimonials .w-grid-item-h {
  height: 100%;
  padding: 2rem !important;
  border: 1px solid var(--av-line);
  background: var(--av-white);
}

.av-testimonials .w-testimonial-rating {
  color: var(--av-gold);
}

.av-process-item > .vc_column-inner {
  min-height: 160px;
  padding: 1.2rem 0.9rem;
  text-align: center;
}

.av-process-item {
  position: relative;
}

.av-process-item:not(:last-child)::after {
  position: absolute;
  top: 1.9rem;
  right: -0.18rem;
  z-index: 2;
  color: var(--av-green-soft);
  content: "›";
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.av-process-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 0.25rem;
  place-items: center;
  color: var(--av-gold);
  font-size: 1.8rem;
  line-height: 1;
}

.av-process-number {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--av-green);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.av-process-item h5 {
  margin-bottom: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.av-region-item {
  text-align: center;
}

.av-region-item h4 {
  margin: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.av-page-hero {
  min-height: 430px;
  overflow: hidden;
}

.av-page-hero .g-cols {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
}

.av-page-hero .av-hero-copy {
  grid-column: 1;
}

.av-page-hero .l-section-img {
  background-position: center !important;
}

.av-page-hero h1,
.av-page-hero h2,
.av-page-hero h3,
.av-page-hero h4 {
  color: var(--av-white);
}

.av-page-hero p:not(.av-eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.av-page-hero .av-eyebrow {
  color: var(--av-gold-light);
}

.av-checklist ul,
.av-compact-list ul {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.av-checklist li,
.av-compact-list li {
  position: relative;
  margin-bottom: 0.65rem;
  padding-left: 1.45rem;
}

.av-checklist li::before,
.av-compact-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--av-gold);
  content: "✓";
  font-weight: 800;
}

.av-note {
  padding: 1.4rem 1.55rem;
  border-left: 3px solid var(--av-gold);
  background: var(--av-sand);
}

.av-iframe-card iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--av-line);
  background: var(--av-white);
}

.av-cta h2,
.av-cta h3,
.av-footer-cta h2,
.av-footer-cta h3 {
  color: var(--av-white);
}

.av-cta p,
.av-footer-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.av-footer-main h4 {
  color: var(--av-gold-light);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.av-footer-main a {
  color: rgba(255, 255, 255, 0.78);
}

.av-footer-main a:hover {
  color: var(--av-white);
}

.av-footer-main .av-footer-logo img {
  width: min(100%, 280px);
  height: auto;
}

.av-footer-copyright p {
  margin: 0;
  font-size: 0.76rem;
}

@media (max-width: 1100px) {
  .av-home-hero .l-section-img {
    background-position: 62% center !important;
  }

  .av-review-card > .vc_column-inner {
    margin-top: 15rem;
  }

  .l-header .w-nav-item.level_1 > .w-nav-anchor {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 900px) {
  .av-home-hero {
    min-height: 650px;
  }

  .av-page-hero .g-cols {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .av-home-hero .l-section-img {
    background-position: 68% center !important;
  }

  .av-home-hero .l-section-overlay {
    background: rgba(16, 41, 30, 0.76) !important;
  }

  .av-review-card > .vc_column-inner {
    max-width: 320px;
    margin-top: 1.5rem;
    margin-right: auto;
    margin-left: 0;
  }

  .av-trust-strip .g-cols,
  .av-process-grid .g-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .av-region-grid .g-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    row-gap: 1.2rem !important;
  }

  .av-trust-item:nth-child(4) > .vc_column-inner,
  .av-process-item:nth-child(4) > .vc_column-inner {
    border-left: 0;
  }

  .av-process-item:nth-child(3)::after {
    display: none;
  }

  .av-editorial-image img {
    min-height: 380px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .av-home-hero {
    min-height: 700px;
  }

  .av-home-hero .l-section-img {
    background-position: 66% center !important;
  }

  .av-home-hero .l-section-overlay {
    background: rgba(16, 41, 30, 0.8) !important;
  }

  .av-home-hero h1 {
    font-size: 2.05rem;
    letter-spacing: -0.025em;
    line-height: 1.04;
  }

  .av-home-hero .w-btn {
    display: block;
    width: 100%;
    margin-right: 0;
  }

  .av-trust-strip .g-cols,
  .av-process-grid .g-cols,
  .av-region-grid .g-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .av-trust-item:nth-child(odd) > .vc_column-inner,
  .av-process-item:nth-child(odd) > .vc_column-inner {
    border-left: 0;
  }

  .av-process-item::after {
    display: none !important;
  }

  .av-trust-item > .vc_column-inner {
    min-height: 118px;
  }

  .av-process-item > .vc_column-inner {
    min-height: 145px;
  }

  .av-section-heading {
    margin-bottom: 2rem;
  }

  .av-value-card > .vc_column-inner,
  .av-card > .vc_column-inner,
  .av-faq-card > .vc_column-inner,
  .av-contact-card > .vc_column-inner {
    padding: 1.55rem;
  }

  .av-page-hero {
    min-height: 390px;
  }
}