/* V076 – gemeinsames Layout für vorhandene und zukünftige Hausdetailseiten.
   Die gleiche Body-Klasse (v050-hausidee-layout) gilt auf allen Hausideen.
   Bild und Überschrift bleiben auf Desktop auf einer Höhe; die Galerie wird
   NICHT mehr bis zur Unterkante des linken Merkmalsblocks auseinandergezogen.
   Das vorhandene JS v050-hausideen-ausrichtung.js bleibt für die einmalige
   Berechnung der Bild-Oberkante zuständig. Keine Änderungen an Bild- und
   Galerie-Funktionen erforderlich. */

/* Etwas mehr Platz für die Architektur, ohne die Textspalte zu schwächen. */
@media (min-width: 1191px) {
  .v050-hausidee-layout .v042-intro-grid {
    grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
    gap: clamp(32px, 3.5vw, 62px);
    align-items: start;
  }
  .v050-hausidee-layout .v042-intro-copy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .v050-hausidee-layout .v042-gallery {
    display: flex;
    flex-direction: column;
    align-self: start;
    padding-top: var(--v050-gallery-offset, 0px);
  }
  /* Altes margin-top:auto verursachte eine große Leerstelle IN der Galerie.
     Diese Regel hält die Vorschaubilder direkt bei der Fassadenauswahl. */
  .v050-hausidee-layout .v044-rail-head {
    margin-top: 14px;
  }
  .v050-hausidee-layout .v044-features {
    margin-top: 26px !important;
    margin-bottom: 0 !important;
    padding-top: 0;
  }
}

/* Auch bei kurzen Überschriften stets dieselbe Reihenfolge und Abstände. */
.v050-hausidee-layout .v042-gallery-controls {
  align-items: flex-start;
  gap: 14px;
  margin: 13px 0 9px;
}
.v050-hausidee-layout .v042-gallery-head h2 {
  margin: 0;
}
.v050-hausidee-layout .v044-rail-head {
  margin-top: 14px;
  margin-bottom: 8px;
}
.v050-hausidee-layout .v044-thumb-rail {
  margin-bottom: 0;
}
.v050-hausidee-layout .v044-thumb-rail > button {
  min-width: 0;
}
.v050-hausidee-layout .v044-thumb-rail > button img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
/* Der sichtbare Merkmalsblock enthält weiterhin alle acht Angaben.
   Schrift + Symbole bekommen etwas mehr Lesbarkeit. */
.v050-hausidee-layout .v044-features h2 {
  font-size: 16px;
  margin-bottom: 11px;
}
.v050-hausidee-layout .v044-feature {
  padding: 13px 3px 14px;
  gap: 5px;
}
.v050-hausidee-layout .v044-feature svg {
  width: 24px;
  height: 24px;
}
.v050-hausidee-layout .v044-feature strong {
  font-size: 12.5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.v050-hausidee-layout .v044-feature span {
  font-size: 10.5px;
  line-height: 1.36;
}
/* Gemeinsam genutzte Umschaltung: gleich große Optionen in einer Zeile.
   Fieldset/Legend bleiben semantisch und per Tastatur zugänglich. */
.v050-hausidee-layout .v042-facade {
  display: flex;
  flex-wrap: nowrap;
  width: min(100%, 208px);
  align-items: stretch;
}
.v050-hausidee-layout .v042-facade label {
  flex: 1 1 50%;
  min-width: 0;
}
.v050-hausidee-layout .v042-facade label span {
  display: flex;
  width: 100%;
  height: 39px;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 7px 9px;
}

@media (max-width: 1190px) {
  .v050-hausidee-layout .v044-feature strong { font-size: 12px; }
  .v050-hausidee-layout .v044-feature span { font-size: 10px; }
}
@media (max-width: 850px) {
  .v050-hausidee-layout .v042-intro-grid { gap: 26px; }
  .v050-hausidee-layout .v044-features { margin-top: 25px; }
  .v050-hausidee-layout .v042-gallery { padding-top: 0; }
}
@media (max-width: 640px) {
  .v050-hausidee-layout .v042-gallery-controls {
    align-items: flex-start;
    margin-bottom: 8px;
  }
  .v050-hausidee-layout .v042-facade { width: min(100%, 208px); }
  .v050-hausidee-layout .v044-rail-head { margin-top: 12px; }
}
@media (max-width: 480px) {
  .v050-hausidee-layout .v044-feature strong { font-size: 11.5px; }
  .v050-hausidee-layout .v044-feature span { font-size: 10px; }
  .v050-hausidee-layout .v044-feature { padding: 12px 4px; }
}
