
/* NH40 Shared-Element-Übergang v1 — Hero morpht aus der Startseiten-Karte */
.hero-bild { view-transition-name: vt-apt-catarina; }
@media (prefers-reduced-motion: reduce) { .hero-bild { view-transition-name: none; } }


/* Typo und Foto getrennt: Grid statt Text-ueber-Bild. Spaeter im Dokument
   als die Originalregeln -> gewinnt bei gleicher Spezifitaet. */
@media (min-width: 901px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: stretch;
    justify-content: initial;
    max-width: var(--inhalt-aussen);
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 3rem) var(--rand) 0;
    min-height: min(88vh, 56rem);
    overflow: visible;
  }
  .hero-content {
    order: 1; /* Typo links — der Name steht zuerst, dorthin morpht die Karte */
    display: flex; flex-direction: column; justify-content: center;
    margin: 0; padding-bottom: 3rem; max-width: none;
  }
  .hero-bild { order: 2; }
  .hero-wordmark { font-size: clamp(4rem, 9.5vw, 10rem); }
}
/* Das Fenster: Foto ungefiltert, Rahmen als Haarlinie am <picture> */
.hero-bild {
  position: relative; inset: auto; z-index: auto;
  display: flex; flex-direction: column;
  overflow: visible; background: transparent;
}
.hero-bild::after { content: none; } /* der Schleier faellt — ersatzlos */
.hero-bild picture {
  position: relative; flex: 1 1 auto; min-height: 0; display: block;
  overflow: hidden; border: 1px solid rgba(26,26,23,0.12);
  background: var(--sandstein);
}
.hero-bild img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
@media (min-width: 901px) { .hero-bild picture { min-height: 60vh; } }
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; justify-content: flex-start; min-height: 0; overflow: visible; padding-bottom: 0; }
  .hero-content { order: 1; }
  .hero-bild { order: 2; margin-top: 2.2rem; }
  .hero-bild picture { aspect-ratio: 4 / 5; flex: none; }
}

/* Lichtwort — Gold = Sonne (dieselbe Glut wie im Hausschnitt der Startseite) */

/* Kurzsatz — der beste Satz der Seite wandert in den Hero */
.v9-satz {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.4;
  color: var(--graphit-70, rgba(26,26,23,0.7)); max-width: 26ch; margin: 0 0 2rem;
}

/* Bildunterschrift unter dem Fenster */
/* flex-end statt baseline: bei zweizeiliger Caption klebt der Vermerk sonst
   an der ERSTEN Zeile und wirkt verrutscht. Unterkanten-Bündigkeit
   funktioniert bei ein- wie zweizeiliger Caption. */
.v9-fensterzeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.2rem; padding: 0.85rem 0.15rem 1.4rem; }
.v9-caption { flex: 1 1 auto; }
.v9-vermerk { flex: 0 0 auto; }
.v9-caption { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.95rem; color: var(--graphit-60); }
.v9-vermerk { font-family: 'Inter', sans-serif; font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--graphit-40, rgba(26,26,23,0.38)); white-space: nowrap; }

/* Hausschnitt-Locator — „Du bist hier im Haus" */
.v9-locator {
  position: absolute; top: 1.1rem; right: 1.1rem; z-index: 2;
  background: var(--alabaster); border: 1px solid rgba(26,26,23,0.14);
  padding: 0.55rem 0.7rem 0.45rem; display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.v9-locator svg { display: block; }
.v9-locator span { font-family: 'Inter', sans-serif; font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--graphit-60); }

/* V9.3: Morph-Ziel — Gegenstueck ist das Karten-Overlay der Startseite */
.hero-wordmark { view-transition-name: vt-wm-catarina; }

