/* IMMOROSSI: image zoom, action tiles and factual property highlights. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service-benefits .benefit-links > a,
  #immobilien-auswahl .im-home-brand-row > a {
    transition: transform 220ms ease, box-shadow 220ms ease, background 180ms ease, border-color 180ms ease;
  }
  .service-benefits .benefit-links > a:is(:hover, :focus-visible),
  #immobilien-auswahl .im-home-brand-row > a:is(:hover, :focus-visible) {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .13);
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-benefits .benefit-links > a,
  #immobilien-auswahl .im-home-brand-row > a {
    transform: none !important;
    transition: none !important;
  }
}

.im-home-entry .hero-visual,
.im-home-entry .im-home-reference-teaser__media,
.im-project-showcase .im-project-visual {
  overflow: hidden;
}
.im-home-entry .hero-visual > .im-home-valuation-badge,
.im-project-showcase .im-project-visual > figcaption {
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .im-home-entry .hero-visual > img,
  .im-home-entry .im-home-reference-teaser__media > img,
  .im-project-showcase .im-project-visual > img {
    transform-origin: center;
    transition: transform 450ms ease;
  }
  .im-home-entry .hero-visual:hover > img,
  .im-home-entry .im-home-reference-teaser:is(:hover, :focus-visible) .im-home-reference-teaser__photo,
  .im-project-showcase .im-project-visual:hover > img {
    transform: scale(1.04);
  }

  .im-home-entry .hero-cta.im-hero-actions-four.im-hero-refined > a.im-hero-service-link,
  .im-home-entry a.im-home-seeker-action,
  .im-home-entry .im-expertise-bundle > summary {
    position: relative;
    transform-origin: center;
    transition: transform 240ms ease, box-shadow 240ms ease, background 180ms ease, border-color 180ms ease;
  }
  .im-home-entry .hero-cta.im-hero-actions-four.im-hero-refined > a.im-hero-service-link:is(:hover, :focus-visible),
  .im-home-entry a.im-home-seeker-action:is(:hover, :focus-visible),
  .im-home-entry .im-expertise-bundle > summary:is(:hover, :focus-visible) {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14) !important;
    z-index: 2;
  }
}

/* Light action tiles; a small lift is the only movement on controls. */
.service-benefits .benefit-links > a,
.service-benefits .benefit-links > a:is(:visited, :hover, :focus-visible, :active),
.im-home-entry .hero-cta.im-hero-actions-four.im-hero-refined > a.im-lead-secondary,
.im-home-entry .hero-cta.im-hero-actions-four.im-hero-refined > a.im-lead-secondary:is(:visited, :hover, :focus-visible, :active),
.im-home-entry .im-expertise-bundle > summary,
.im-home-entry .im-expertise-bundle > summary:is(:hover, :focus-visible, :active) {
  box-sizing: border-box;
  background: #fff !important;
  border: 1px solid #000 !important;
  color: #000 !important;
  text-decoration: none !important;
}
.service-benefits .benefit-links > a *,
.service-benefits .benefit-links > a::after,
.im-home-entry .im-expertise-bundle > summary::after {
  color: inherit;
  text-decoration: none !important;
}
.service-benefits .benefit-links > a small {
  color: #555;
}
.im-home-entry .im-expertise-bundle {
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .im-home-entry .hero-visual > img,
  .im-home-entry .im-home-reference-teaser__media > img,
  .im-project-showcase .im-project-visual > img,
  .im-home-entry .hero-cta.im-hero-actions-four.im-hero-refined > a.im-hero-service-link,
  .im-home-entry a.im-home-seeker-action,
  .im-home-entry .im-expertise-bundle > summary {
    transform: none !important;
    transition: none !important;
  }
}

#alle-objekte.im-offers .property-highlight-photo,
#immobilien-auswahl .im-home-offer-photo {
  position: relative;
}
#alle-objekte.im-offers .property-highlight-photo > .im-offer-highlight,
#immobilien-auswahl .im-home-offer-photo > .im-offer-highlight,
.im-project-showcase .im-project-visual > .im-offer-highlight {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 35px;
  max-width: calc(100% - 28px);
  margin: 0;
  padding: 9px 14px;
  border: 0;
  border-radius: 4px;
  background: #c91f2e;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: break-word;
  pointer-events: none;
}

@media (max-width: 600px) {
  #alle-objekte.im-offers .property-highlight-photo > .im-offer-highlight,
  #immobilien-auswahl .im-home-offer-photo > .im-offer-highlight,
  .im-project-showcase .im-project-visual > .im-offer-highlight {
    top: 11px;
    left: 11px;
    max-width: calc(100% - 22px);
    padding: 8px 12px;
    min-height: 33px;
    font-size: 11px;
  }
}


/* IMMOROSSI fixed dark homepage benefit cards 2026-11-18 */
.service-benefits.im-home-benefits-dark .benefit-links > a,
.service-benefits.im-home-benefits-dark .benefit-links > a:is(:visited, :hover, :focus-visible, :active) {
  background: #000 !important;
  background-color: #000 !important;
  border: 1px solid #000 !important;
  color: #fff !important;
  text-decoration: none !important;
}
.service-benefits.im-home-benefits-dark .benefit-links > a *,
.service-benefits.im-home-benefits-dark .benefit-links > a small,
.service-benefits.im-home-benefits-dark .benefit-links > a::after {
  color: #fff !important;
}
.service-benefits.im-home-benefits-dark .benefit-links > a:is(:hover, :focus-visible) {
  background: #242424 !important;
  background-color: #242424 !important;
  border-color: #242424 !important;
}
.service-benefits.im-home-benefits-dark .benefit-links > a:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}
