/* 0.43.48 · Visueller QA-Vertrag
   Lädt bewusst als letzte öffentliche Redesign-CSS-Datei.
   Ziel: Kontrastfehler, Fokus-Überschreibungen und zu kleine Pflichtinformationen
   verhindern, ohne die freigegebene Seitendramaturgie neu aufzubauen. */

body.amh-rm-master-preview{
  --amh-qa-text:#354943;
  --amh-qa-muted:#566963;
  --amh-qa-green:#173f37;
  --amh-qa-plum:#7a536d;
  --amh-qa-gold-text:#855d2d;
  --amh-qa-line:rgba(21,63,54,.14);
}

/* Bildzentrale ist die verbindliche Quelle für den sichtbaren Bildfokus.
   Ältere seitenbezogene object-position-Werte dürfen gespeicherte Werte nicht mehr überstimmen. */
body.amh-rm-master-preview .amh-master-page.amh-master-page img.amh-rm-managed-image.amh-rm-managed-image{
  object-position:var(--amh-img-x,50%) var(--amh-img-y,50%)!important;
}
@media (min-width:768px) and (max-width:1024px){
  body.amh-rm-master-preview .amh-master-page.amh-master-page img.amh-rm-managed-image.amh-rm-managed-image{
    object-position:var(--amh-img-x-tablet,var(--amh-img-x,50%)) var(--amh-img-y-tablet,var(--amh-img-y,50%))!important;
  }
}
@media (max-width:767px){
  body.amh-rm-master-preview .amh-master-page.amh-master-page img.amh-rm-managed-image.amh-rm-managed-image{
    object-position:var(--amh-img-x-mobile,var(--amh-img-x,50%)) var(--amh-img-y-mobile,var(--amh-img-y,50%))!important;
  }
}

/* Angehörige und weitere Rollout-Seiten: Die Bildkarte ist hell.
   Ihr Label darf deshalb nie den globalen --light-Vertrag erben. */
body.amh-rm-master-preview .amh-rollout-photo-band__card .amh-master-eyebrow,
body.amh-rm-master-preview .amh-rollout-photo-band__card .amh-master-eyebrow--light{
  color:var(--amh-plum,var(--amh-qa-plum))!important;
  opacity:1!important;
  text-shadow:none!important;
}
body.amh-rm-master-preview .amh-rollout-photo-band__card h2{
  color:var(--amh-green,var(--amh-qa-green))!important;
}
body.amh-rm-master-preview .amh-rollout-photo-band__card > p:not(.amh-master-eyebrow){
  color:#40564f!important;
  opacity:1!important;
}

/* Der Kartenrand bleibt sichtbar, ohne die ruhige Bildwirkung zu verlieren. */
body.amh-rm-master-preview .amh-rollout-photo-band__card{
  border:1px solid rgba(21,63,54,.11)!important;
  background:rgba(250,247,240,.97)!important;
  box-shadow:0 22px 58px rgba(7,29,24,.14)!important;
}

/* Gesetzliche Preisinfo und vergleichbare Pflichtzeilen bleiben auch auf großen Monitoren lesbar. */
body.amh-rm-master-preview .amh-price-tax-note:not(.amh-price-tax-note--dark){
  font-size:13.5px!important;
  line-height:1.62!important;
  color:var(--amh-qa-muted)!important;
  opacity:1!important;
  letter-spacing:0!important;
}
body.amh-rm-master-preview .amh-price-tax-note--dark{
  font-size:13.5px!important;
  line-height:1.62!important;
  color:rgba(255,255,255,.86)!important;
  opacity:1!important;
  letter-spacing:0!important;
}

/* Regionale Seiten: Gold bleibt Markenakzent. Als Text auf Naturweiß braucht es eine dunklere Stufe. */
body.amh-rm-master-preview--regional .amh-regional-hero__orientation>strong b{
  color:var(--amh-qa-gold-text)!important;
}

/* Bestehende helle Informationskarten erhalten eine etwas klarere Trennung.
   Es werden keine neuen Karten erzeugt und keine dunklen Innenflächen überschrieben. */
body.amh-rm-master-preview .amh-master-booking-value article,
body.amh-rm-master-preview .amh-counselling-value__grid article,
body.amh-rm-master-preview .amh-counselling-compare__grid article,
body.amh-rm-master-preview .amh-rollout-support__grid article,
body.amh-rm-master-preview .amh-family-situation__rows article,
body.amh-rm-master-preview .amh-family-together__grid article,
body.amh-rm-master-preview .amh-family-topics__list article{
  border-color:var(--amh-qa-line)!important;
}

/* Kleine erklärende Texte in hellen Karten werden nicht unter den Lesbarkeitswert gedrückt. */
body.amh-rm-master-preview .amh-master-booking-value article p,
body.amh-rm-master-preview .amh-counselling-value__grid article p,
body.amh-rm-master-preview .amh-counselling-compare__grid article p,
body.amh-rm-master-preview .amh-rollout-support__grid article p,
body.amh-rm-master-preview .amh-family-situation__rows article p,
body.amh-rm-master-preview .amh-family-together__grid article p,
body.amh-rm-master-preview .amh-family-topics__list article p{
  color:#40564f!important;
  opacity:1!important;
}

/* Tastaturfokus bleibt auf hellen und dunklen Flächen sichtbar. */
body.amh-rm-master-preview .amh-master-page a:focus-visible,
body.amh-rm-master-preview .amh-master-page button:focus-visible,
body.amh-rm-master-preview .amh-master-page summary:focus-visible{
  outline:3px solid #c99845!important;
  outline-offset:3px!important;
}

@media(max-width:680px){
  body.amh-rm-master-preview .amh-rollout-photo-band__card{
    padding:27px 24px!important;
    border-radius:20px!important;
  }
  body.amh-rm-master-preview .amh-price-tax-note,
  body.amh-rm-master-preview .amh-price-tax-note--dark{
    font-size:13px!important;
    line-height:1.62!important;
  }
}
