/* Focused homepage structure; shared service cards retain their existing layout. */
#main.im-home-shortened .im-home-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
}
#main.im-home-shortened .im-home-quick-actions > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 56px;
  padding: 9px 10px;
  border: 1px solid #161616;
  border-radius: 5px;
  background: #161616;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
}
#main.im-home-shortened .im-home-quick-actions .im-home-quick-label {
  min-width: 0;
  max-width: 100%;
}
#main.im-home-shortened .im-home-quick-actions .im-home-quick-tail {
  white-space: nowrap;
}
#main.im-home-shortened .im-home-quick-actions .im-home-quick-arrow {
  display: inline;
  margin-left: 3px;
  color: inherit;
  font-size: 1em;
  line-height: inherit;
}
#main.im-home-shortened .im-home-quick-actions > a.im-home-quick-action-valuation {
  background: #c91f2e;
  border-color: #c91f2e;
  color: #fff;
}
#main.im-home-shortened .im-home-quick-actions > a.im-home-quick-action-valuation:hover {
  background: #aa1927;
  border-color: #aa1927;
  color: #fff;
}
#main.im-home-shortened .im-home-quick-actions > a:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 3px;
}
#main.im-home-shortened .im-home-entry--focused .owner-offers .owner-card-content p {
  overflow-wrap: break-word;
}
#main.im-home-shortened .im-home-entry--focused .owner-offers a.owner-card .im-owner-cta-button {
  display: block !important;
  min-height: 0 !important;
  padding: 3px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-decoration: none !important;
}
#main.im-home-shortened .im-home-entry--focused .owner-offers .im-owner-cta-button > span[aria-hidden="true"] {
  display: inline !important;
  margin-left: .25em;
  color: inherit !important;
  font-size: 18px !important;
  text-decoration: none !important;
}
#main.im-home-shortened .im-premium-package {
  padding: 34px 0 40px;
  background: #f6f6f4;
  border-block: 1px solid #e2e2df;
}
#main.im-home-shortened .im-premium-package .eyebrow {
  margin: 0 0 10px;
  color: #666;
  font-size: 11px;
  letter-spacing: .11em;
}
#main.im-home-shortened .im-premium-package h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -.025em;
}
#main.im-home-shortened .im-premium-package-intro {
  max-width: 780px;
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}
#main.im-home-shortened .im-premium-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 25px 0 20px;
  padding: 0;
  list-style: none;
}
#main.im-home-shortened .im-premium-steps > li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
}
#main.im-home-shortened .im-premium-step-number {
  flex: 0 0 auto;
  color: #777;
  font-size: 13px;
  line-height: 1.6;
}
#main.im-home-shortened .im-premium-steps h3 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.35;
}
#main.im-home-shortened .im-premium-steps p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
}
#main.im-home-shortened :is(.im-premium-package-link, .im-premium-seeker-link) {
  display: inline-block;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 0;
  border: 0 !important;
  background: transparent;
  color: #171717;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none !important;
  overflow-wrap: break-word;
}
#main.im-home-shortened :is(.im-premium-package-link, .im-premium-seeker-link) > span {
  display: inline;
  margin-left: .25em;
  text-decoration: none !important;
}
#main.im-home-shortened :is(.im-premium-package-link, .im-premium-seeker-link):focus-visible {
  outline: 2px solid #171717;
  outline-offset: 3px;
}
#main.im-home-shortened #im-home-more {
  padding: 30px 0 58px;
  border-top: 0;
}
#main.im-home-shortened .im-premium-seeker {
  padding: 0 0 23px;
  margin: 0 0 25px;
  border-bottom: 1px solid #dedede;
}
#main.im-home-shortened .im-premium-seeker h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.3;
}
#main.im-home-shortened .im-premium-seeker-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}
#main.im-home-shortened #im-home-more .im-home-more-intro {
  margin-bottom: 19px;
}
#main.im-home-shortened #im-home-more .im-home-more-intro h2 {
  margin: 0 0 8px;
  font-size: clamp(27px, 3vw, 36px);
}
/* Light, compact information groups; native details behaviour is retained. */
#main.im-home-shortened #im-home-more > .container > .im-home-deep-dive {
  margin: 0 0 12px;
  border: 1px solid #dedcd5;
  border-radius: 9px;
  background: #fff;
  color: #22221f;
  box-shadow: none;
}
#main.im-home-shortened #im-home-more > .container > .im-home-deep-dive > summary {
  min-height: 80px;
  padding: 17px 20px;
  gap: 16px;
  background: #f7f7f4;
  color: #22221f;
  border: 0;
}
#main.im-home-shortened #im-home-more > .container > .im-home-deep-dive > summary:hover {
  background: #efeee9;
}
#main.im-home-shortened #im-home-more > .container > .im-home-deep-dive[open] > summary {
  background: #f4f3ee;
  border-bottom: 1px solid #dedcd5;
}
#main.im-home-shortened #im-home-more > .container > .im-home-deep-dive > summary:focus-visible {
  background: #efeee9;
  outline: 2px solid #56564e;
  outline-offset: -4px;
}
#main.im-home-shortened #im-home-more .im-home-deep-dive__copy {
  gap: 5px;
}
#main.im-home-shortened #im-home-more .im-home-deep-dive__copy strong {
  color: #22221f;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
}
#main.im-home-shortened #im-home-more .im-home-deep-dive__copy small {
  color: #66645f;
  font-size: 13px;
  line-height: 1.45;
}
#main.im-home-shortened #im-home-more .im-home-deep-dive__plus {
  transform: none !important;
  transition: none !important;
  flex: 0 0 28px;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  border: 1px solid #d3d0c8;
  border-radius: 50%;
  background: transparent;
  color: #56564e;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
#main.im-home-shortened #im-home-more .im-premium-close { display: none; }
#main.im-home-shortened #im-home-more .im-home-deep-dive[open] > summary .im-premium-open { display: none; }
#main.im-home-shortened #im-home-more .im-home-deep-dive[open] > summary .im-premium-close { display: inline; }
#main.im-home-shortened #im-home-more .im-home-deep-dive__content {
  min-width: 0;
  max-width: 100%;
}
#main.im-home-shortened #im-home-more .im-home-deep-dive__content > section {
  min-width: 0;
  max-width: 100%;
}
#main.im-home-shortened #im-home-more .im-home-deep-dive__content > section > .container {
  width: 100%;
  max-width: none;
  padding-inline: 26px;
  margin-inline: 0;
}
#main.im-home-shortened .im-premium-expertise { padding-block: 28px; }
#main.im-home-shortened .im-premium-expertise .im-bundle-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}
#main.im-home-shortened .im-premium-expertise .im-bundle-topic { min-width: 0; }
#main.im-home-shortened .im-premium-expertise .im-bundle-topic strong {
  font-size: 16px;
  line-height: 1.4;
}
#main.im-home-shortened .im-premium-expertise .im-bundle-topic p {
  margin: 7px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
}
#main.im-home-shortened .im-premium-expertise .im-home-detail-link { margin-top: 18px; }
#main.im-home-shortened :is(#im-360-heading, #hypothekenrechner, #fuer-kaeufer, #immobilien-auswahl, #neubau-schwarzmatt) {
  scroll-margin-top: 110px;
}
@media (max-width: 780px) {
  #main.im-home-shortened .im-home-quick-actions { gap: 8px; margin: 20px 0 0; }
  #main.im-home-shortened .im-home-quick-actions > a { padding: 8px 6px; min-height: 56px; }
  #main.im-home-shortened .im-home-entry--focused .owner-offers .owner-card-content p,
  #main.im-home-shortened .im-home-entry--focused .owner-offers a.owner-card .im-owner-cta-button {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
  #main.im-home-shortened .im-premium-package { padding: 27px 0 29px; }
  #main.im-home-shortened .im-premium-package-intro { font-size: 14px; }
  #main.im-home-shortened .im-premium-steps { grid-template-columns: minmax(0, 1fr); gap: 17px; margin-block: 21px 15px; }
  #main.im-home-shortened .im-premium-steps h3 { font-size: 16px; }
  #main.im-home-shortened #im-home-more { padding: 25px 0 50px; }
  #main.im-home-shortened #im-home-more > .container > .im-home-deep-dive > summary {
    min-height: 76px;
    padding: 15px;
    gap: 12px;
  }
  #main.im-home-shortened #im-home-more .im-home-deep-dive__copy strong { font-size: 17px; }
  #main.im-home-shortened #im-home-more .im-home-deep-dive__copy small { font-size: 12px; }
  #main.im-home-shortened #im-home-more .im-home-deep-dive__content > section > .container { padding-inline: 16px; }
  #main.im-home-shortened .im-premium-expertise .im-bundle-topics { grid-template-columns: minmax(0, 1fr); }
  #main.im-home-shortened .im-premium-seeker-links { gap: 0 22px; }
}
@media (max-width: 380px) {
  #main.im-home-shortened .im-home-quick-actions > a { padding-inline: 4px; font-size: clamp(12px, 3.75vw, 14px); }
}

/* A compact, dated Google score accompanies the completed-property proof. */
#main.im-home-shortened #google-bewertungen {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #dedede;
  max-width: 440px;
  scroll-margin-top: 110px;
}
#main.im-home-shortened .im-home-proof-reviews .im-google-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #171717;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

/* Preserve the complete work scene in the narrow partner-image column. */
#main.im-home-shortened #im-service-6 > img.im-service-team-photo {
  object-fit: contain !important;
  object-position: center !important;
  background: #e4dfd7 !important;
}
#main.im-home-shortened .im-home-proof-reviews .im-google-score b {
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: normal;
}
#main.im-home-shortened .im-home-proof-reviews .im-google-score img {
  width: 58px;
  height: auto;
  flex: 0 0 58px;
}
#main.im-home-shortened .im-home-proof-reviews .im-google-score:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 3px;
}


/* Quiet, unboxed step numerals accompany the existing text. */
#main.im-home-shortened .im-premium-package .im-premium-steps > li {
  align-items: flex-start;
  gap: 14px;
}
#main.im-home-shortened .im-premium-package .im-premium-steps > li > div {
  min-width: 0;
}
#main.im-home-shortened .im-premium-package .im-premium-step-number {
  display: block;
  flex: 0 0 68px;
  align-self: flex-start;
  width: 68px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  background: transparent;
  box-shadow: none;
  color: #3e594e !important;
  font-size: 52px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.04em;
}

/* Keep the text column comfortable on tablets and phones. */
@media (max-width: 1100px) {
  #main.im-home-shortened .im-premium-package .im-premium-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  #main.im-home-shortened .im-premium-package .im-premium-steps > li > div {
    max-width: 42ch;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 780px) {
  #main.im-home-shortened .im-premium-package .im-premium-steps > li {
    gap: 12px;
  }
  #main.im-home-shortened .im-premium-package .im-premium-step-number {
    flex-basis: 60px;
    width: 60px;
    font-size: 42px;
  }
}
