/* =====================================================
   IMMOBILIENBERATUNG — VARIATION 2
   Extends the shared design system (.za-ing) with
   page-specific sections: geographic grid, prose blocks,
   dark quote bands, dark stats, and strategy cards.
   Loaded on top of design-system.css via functions.php.
   ===================================================== */

/* -----------------------------------------------------
   GEO GRID — editorial portrait cards. The image is the
   hero; title + list sit over a dark bottom gradient.
----------------------------------------------------- */
.za-ing .geo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (min-width: 720px)  { .za-ing .geo-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.za-ing .geo-card {
  background: var(--color-ink);
  padding: 2rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  min-height: clamp(420px, 55vw, 540px);
  color: var(--color-paper);
}
.za-ing .geo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(26,26,28,0.18);
}

.za-ing .geo-card .geo-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  filter: grayscale(100%);
  transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
}
.za-ing .geo-card:hover .geo-card__image {
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* Override design-system.css: dark bottom-up gradient instead of
   the white top-down overlay used elsewhere. */
.za-ing .geo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26,26,28,0.10) 0%, rgba(26,26,28,0.30) 45%, rgba(26,26,28,0.92) 100%);
  pointer-events: none;
  transition: opacity 0.55s var(--ease);
}
.za-ing .geo-card:hover::before {
  background: linear-gradient(180deg, rgba(26,26,28,0.05) 0%, rgba(26,26,28,0.22) 45%, rgba(26,26,28,0.88) 100%);
}

.za-ing .geo-card > * { position: relative; z-index: 2; }

/* Push title + list to the bottom, leaving the image to breathe at top */
.za-ing .geo-card__num {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}

.za-ing .geo-card h3 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-variation-settings: "opsz" 72, "wght" 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  color: var(--color-paper);
}

.za-ing .geo-card__list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.za-ing .geo-card__list li {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  position: relative;
}
.za-ing .geo-card__list li:last-child { border-bottom: none; }

/* -----------------------------------------------------
   VERMITTLUNG — editorial layout
   Magazine-style: oversize title spans the full container,
   body copy flows in two columns underneath (lead in column
   one, supporting paragraphs in column two). A hairline rule
   under the title frames the head and gives the block a
   "chapter opener" feel.
----------------------------------------------------- */
.za-ing .vermittlung-section { padding-top: clamp(4rem, 7vw, 7rem); padding-bottom: clamp(4rem, 7vw, 7rem); }

.za-ing .vermittlung-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--color-line-strong);
}
.za-ing .vermittlung-head .meta-line { margin: 0; }

.za-ing .vermittlung-head__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "wght" 300;
  font-size: clamp(2.75rem, 7.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 16ch;
}
.za-ing .vermittlung-head__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 300;
  color: var(--color-stone);
}

.za-ing .vermittlung-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: clamp(3.5rem, 6vw, 5rem);
}
@media (min-width: 880px) {
  .za-ing .vermittlung-body {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.za-ing .vermittlung-body__lead {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "wght" 400;
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--color-ink);
  margin: 0;
}

.za-ing .vermittlung-body__prose p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-soft);
  margin: 0 0 1rem;
}
.za-ing .vermittlung-body__prose p:last-child { margin-bottom: 0; }

/* -----------------------------------------------------
   PROSE BLOCK — multi-paragraph body copy below a section-head
----------------------------------------------------- */
.za-ing .prose-block {
  max-width: 60ch;
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
}
.za-ing .prose-block p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-soft);
  margin: 0 0 1rem;
}
.za-ing .prose-block p:last-child { margin-bottom: 0; }

/* -----------------------------------------------------
   QUOTE BAND — dark, italic, large
----------------------------------------------------- */
.za-ing .quote-band {
  background: var(--color-ink);
  color: var(--color-paper);
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
}
.za-ing .quote-band::before {
  content: '\201E';
  position: absolute;
  top: clamp(2rem, 4vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 1;
  color: var(--color-stone);
  opacity: 0.25;
  pointer-events: none;
}
.za-ing .quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 300;
  font-size: clamp(1.625rem, 3.2vw, 2.625rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--color-paper);
  max-width: 36ch;
}
.za-ing .quote-band--right blockquote {
  margin-left: auto;
  text-align: right;
}

/* -----------------------------------------------------
   STATS — dark variant
   Override design-system .stats colours when on dark bg.
----------------------------------------------------- */
.za-ing .stats-section .section-head { margin-bottom: 0; }

.za-ing .stats--dark {
  border-color: rgba(255,255,255,0.12);
}
.za-ing .stats--dark .stat {
  border-color: rgba(255,255,255,0.12);
}
.za-ing .stats--dark .stat-num {
  color: var(--color-stone);
  font-variation-settings: "opsz" 144, "wght" 400;
}
.za-ing .stats--dark .stat-num em {
  color: rgba(255,255,255,0.45);
}
.za-ing .stats--dark .stat-label { color: rgba(217,217,217,1); }
.za-ing .stats--dark .stat-tag   { color: var(--color-stone); }

/* -----------------------------------------------------
   STRATEGY GRID — editorial cards anchored by a giant
   italic Fraunces numeral in the upper right corner.
----------------------------------------------------- */
.za-ing .strategy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (min-width: 880px) {
  .za-ing .strategy-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.za-ing .strategy-card {
  background: var(--color-paper);
  padding: 2.75rem 2rem 2.5rem;
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.5s var(--ease);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.za-ing .strategy-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-ink);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.za-ing .strategy-card:hover {
  border-color: var(--color-line-strong);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26,26,28,0.08);
}
.za-ing .strategy-card:hover::before { transform: scaleY(1); }
.za-ing .strategy-card:hover .strategy-card__num {
  color: rgba(26, 26, 28, 0.11);
  transform: translate(-4px, 4px);
}

.za-ing .strategy-card__num {
  position: absolute;
  top: -1rem;
  right: 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 300;
  font-size: clamp(6.5rem, 11vw, 9.5rem);
  line-height: 1;
  color: rgba(26, 26, 28, 0.07);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: color 0.5s var(--ease), transform 0.5s var(--ease);
}

.za-ing .strategy-card h3 {
  font-size: 1.4rem;
  font-variation-settings: "opsz" 48, "wght" 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  position: relative;
  z-index: 1;
}

.za-ing .strategy-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-soft);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Team image (optional, sits below the team prose-block) */
.za-ing .team-image {
  margin: 3rem 0 0;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--color-line);
}
.za-ing .team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
}
.za-ing .team-image:hover img { filter: grayscale(0%); transform: scale(1.02); }
