/* IMMOROSSI — a quieter, compact homepage, 24 November 2026.
   Additive override, scoped to the four homepages. Content, links and native
   carousel sizing/scrolling remain in their existing components. */

body.im-home-page {
  --im-refined-ink: #191919;
  --im-refined-muted: #5b5b5b;
  --im-refined-line: #e2e2e2;
  --im-refined-red: #c91f2e;
  --im-refined-gutter: 32px;
  background: #fff;
  color: var(--im-refined-ink);
}

body.im-home-page #main.im-home-shortened {
  background: #fff;
  color: var(--im-refined-ink);
}

body.im-home-page #main.im-home-shortened .container {
  box-sizing: border-box;
  width: calc(100% - var(--im-refined-gutter) - var(--im-refined-gutter)) !important;
  max-width: 1180px !important;
  margin-inline: auto;
  padding-inline: 0;
}

body.im-home-page #main.im-home-shortened :is(h1, h2, h3, h4) {
  color: var(--im-refined-ink);
  text-wrap: pretty;
}

body.im-home-page #main.im-home-shortened .investment-section .eyebrow {
  color: #e5e5e5 !important;
}

body.im-home-page #main.im-home-shortened :is(
  .eyebrow, .savings-eyebrow, .im-home-network-kicker,
  .im-home-proof-kicker, .im-home-faq-eyebrow
) {
  color: var(--im-refined-muted) !important;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.5;
}

body.im-home-page #main.im-home-shortened :is(
  .im-home-team, .im-home-external, .im-premium-package,
  .im-provision-comparison, .property-highlights,
  .im-home-more-wrap, .im-home-faq
) {
  background: #fff !important;
  border-color: var(--im-refined-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* The same familiar identity, without a shadow under the pinned header. */
body.im-home-page .im-site-head,
body.im-home-page .im-site-head.im-head-pinned {
  background: #fff !important;
  border-bottom-color: var(--im-refined-line) !important;
  box-shadow: none !important;
}

body.im-home-page .im-site-head .im-head-actions .im-head-fee {
  border-radius: 4px !important;
  box-shadow: none !important;
}

/* A short valuation entry: three clear choices, separated by fine rules. */
body.im-home-page #main.im-home-shortened > .im-front-valuation {
  padding-block: 30px !important;
  background: #fff !important;
  border-bottom: 1px solid var(--im-refined-line);
}

body.im-home-page #main.im-home-shortened .im-front-valuation__inner {
  gap: 22px 40px;
}

body.im-home-page #main.im-home-shortened #im-front-valuation-title {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(25px, 2.5vw, 33px);
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -.025em;
}

body.im-home-page #main.im-home-shortened .im-front-valuation__eyebrow {
  margin-bottom: 8px;
  color: var(--im-refined-muted);
}

body.im-home-page #main.im-home-shortened .im-front-valuation__intro {
  margin-top: 10px;
  color: var(--im-refined-muted);
  font-size: 15px;
}

body.im-home-page #main.im-home-shortened .im-front-valuation__choices {
  gap: 0;
}

body.im-home-page #main.im-home-shortened a.im-front-valuation__card {
  min-height: 108px;
  gap: 8px;
  padding: 12px 12px 8px;
  border: 0;
  border-left: 1px solid var(--im-refined-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--im-refined-ink);
}

body.im-home-page #main.im-home-shortened a.im-front-valuation__card:hover {
  background: #fafafa;
  box-shadow: none;
}

body.im-home-page #main.im-home-shortened .im-front-valuation__icon {
  width: 42px;
  height: 42px;
}

body.im-home-page #main.im-home-shortened .im-front-valuation__label {
  min-height: 2.5em;
  font-size: 14px;
}

/* The hero section also contains the rest of the homepage: only its entry
   grid is given a two-column composition. */
body.im-home-page #main.im-home-shortened > .im-home-entry.im-home-entry--focused {
  padding-top: 42px !important;
  background: #fff !important;
}

body.im-home-page #main.im-home-shortened .im-home-entry--focused > .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  grid-template-areas: "copy portrait" "actions actions";
  align-items: center !important;
  gap: 28px 56px;
}

body.im-home-page #main.im-home-shortened .hero-copy .im-home-seller-eyebrow {
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--im-refined-muted);
  letter-spacing: .08em;
}

body.im-home-page #main.im-home-shortened .hero-copy h1.im-home-promise {
  max-width: 21ch;
  margin: 0 0 18px !important;
  font-size: clamp(34px, 3.8vw, 46px) !important;
  font-weight: 650;
  line-height: 1.13 !important;
  letter-spacing: -.035em;
}

body.im-home-page #main.im-home-shortened .hero-copy .im-home-intro {
  max-width: 62ch;
  margin-bottom: 0;
  color: #4f4f4f;
  font-size: 17px;
  line-height: 1.65;
}

body.im-home-page #main.im-home-shortened .hero-copy .im-provision-entry {
  margin-top: 18px;
  color: var(--im-refined-ink);
  font-size: 15px;
  line-height: 1.6;
}

body.im-home-page #main.im-home-shortened .im-home-portrait {
  display: block;
  max-width: 300px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.im-home-page #main.im-home-shortened .im-home-portrait > img {
  width: 100%;
  height: 250px;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center bottom;
  background: #fff;
}

body.im-home-page #main.im-home-shortened .im-home-portrait figcaption {
  gap: 3px;
  padding: 14px 0 0;
  border-top: 1px solid var(--im-refined-line);
  color: var(--im-refined-muted);
  font-size: 13px;
}

body.im-home-page #main.im-home-shortened .im-home-portrait figcaption strong {
  color: var(--im-refined-ink);
  font-size: 20px;
}

body.im-home-page #main.im-home-shortened .im-home-portrait figcaption a {
  min-height: 44px;
  margin-top: 0;
  font-size: 16px;
}

body.im-home-page #main.im-home-shortened .hero-grid > .im-home-quick-actions {
  gap: 0;
  margin-top: 0;
  border-block: 0;
}

body.im-home-page #main.im-home-shortened .im-home-quick-actions > a {
  min-height: 54px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--im-refined-line);
  border-radius: 0;
  background: #fff !important;
  color: var(--im-refined-ink) !important;
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
}

body.im-home-page #main.im-home-shortened .im-home-quick-actions > a:last-child { border-right: 0; }
body.im-home-page #main.im-home-shortened .im-home-quick-actions > a:hover { background: #fafafa !important; }
body.im-home-page #main.im-home-shortened .im-home-quick-actions > a.im-home-quick-action-primary { color: var(--im-refined-red) !important; }

/* Proof and references sit on the page, not in a second grey container. */
body.im-home-page #main.im-home-shortened .im-home-entry--focused > .im-home-proof-band {
  margin-block: 36px 0;
  padding: 28px 0 0;
  gap: 22px 44px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.im-home-page #main.im-home-shortened .im-home-proof-number {
  color: var(--im-refined-ink);
  font-size: 37px;
  line-height: 1.15;
  font-weight: 650;
}

body.im-home-page #main.im-home-shortened .im-home-proof-label {
  font-size: 19px;
  line-height: 1.35;
}

body.im-home-page #main.im-home-shortened .im-home-proof-copy {
  margin: 0 0 8px;
  color: var(--im-refined-muted);
  font-size: 16px;
  line-height: 1.6;
}

body.im-home-page #main.im-home-shortened .im-home-proof-reference {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--im-refined-ink);
  font-size: 15px;
}

body.im-home-page #main.im-home-shortened .im-home-proof-stories {
  padding-top: 26px;
  border-top-color: var(--im-refined-line);
}

body.im-home-page #main.im-home-shortened .im-home-proof-stories > h3 {
  margin-bottom: 20px;
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.22;
  font-weight: 650;
}

body.im-home-page #main.im-home-shortened .im-home-case {
  min-height: 0 !important;
  padding: 18px !important;
  border: 1px solid var(--im-refined-line);
  border-radius: 5px !important;
  background: #fff;
  box-shadow: none;
}

body.im-home-page #main.im-home-shortened .im-home-case-visual {
  margin: -18px -18px 16px !important;
  width: calc(100% + 36px) !important;
  border-radius: 4px 4px 0 0 !important;
}

body.im-home-page #main.im-home-shortened .im-home-case-city {
  margin-bottom: 9px;
  color: var(--im-refined-muted);
  font-size: 12px !important;
  letter-spacing: .07em;
}

body.im-home-page #main.im-home-shortened .im-home-case h4 {
  min-height: 0;
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 650;
}

body.im-home-page #main.im-home-shortened .im-home-case :is(p, time, .im-home-case-status) {
  font-size: 14px !important;
  line-height: 1.5;
}

body.im-home-page #main.im-home-shortened .im-home-case-status {
  margin-top: 12px !important;
  padding-top: 8px;
  padding-right: 30px;
  color: #444;
}

body.im-home-page #main.im-home-shortened .im-home-case-arrow { color: var(--im-refined-ink); right: 18px; bottom: 20px; }

/* Reviews retain their full text and JS-measured viewport height. */
body.im-home-page #main.im-home-shortened .im-home-review-section {
  margin-top: 32px;
  padding: 24px 0 0 !important;
  border: 0;
  border-top: 1px solid var(--im-refined-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.im-home-page #main.im-home-shortened .im-home-review-heading {
  gap: 8px 24px;
  margin-bottom: 16px;
}

body.im-home-page #main.im-home-shortened .im-home-review-heading h3 {
  font-size: clamp(23px, 2.5vw, 29px);
  line-height: 1.25;
}

body.im-home-page #main.im-home-shortened .im-home-review-all-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--im-refined-ink) !important;
  font-size: 14px;
}

body.im-home-page #main.im-home-shortened .im-home-proof-reviews {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom-color: var(--im-refined-line);
}

body.im-home-page #main.im-home-shortened .im-home-reviews.im-home-side-navigation .im-home-reviews__slide {
  padding: 20px;
  border-color: var(--im-refined-line);
  border-radius: 5px;
  box-shadow: none;
}

body.im-home-page #main.im-home-shortened .im-home-client-voice :is(blockquote, .im-home-reviews__quote) {
  margin-block: 14px 18px;
  color: #2c2c2c;
  font-size: 18px;
  line-height: 1.6;
}

body.im-home-page #main.im-home-shortened .im-home-client-voice > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin-inline: auto !important;
  justify-self: center;
  text-align: center;
}

/* Compact property cards; native widths, snap points and chevrons are kept. */
body.im-home-page #main.im-home-shortened .im-home-entry--focused > #immobilien-auswahl {
  padding-block: 44px !important;
}

body.im-home-page #main.im-home-shortened #immobilien-auswahl .section-heading h2 {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
}

body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-row-title {
  color: var(--im-refined-ink);
  font-size: 24px;
  line-height: 1.3;
}

body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-row-header { margin-bottom: 18px; }
body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-offer-row + .im-home-offer-row { margin-top: 28px; padding-top: 28px; border-top-color: var(--im-refined-line); }

body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-offer-track > .im-home-offer-card {
  align-self: flex-start;
  min-height: 0;
  border-color: var(--im-refined-line);
  border-radius: 5px;
  box-shadow: none !important;
}

body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-offer-content {
  flex: 0 0 auto;
  min-height: 0;
  gap: 9px;
  padding: 18px;
}

body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-offer-type {
  color: var(--im-refined-muted);
  font-size: 13px;
  line-height: 1.5;
}

body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-offer-content :is(h3, h4) {
  color: var(--im-refined-ink);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 650;
}

body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-offer-facts { color: var(--im-refined-muted); font-size: 15px; line-height: 1.55; }
body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-offer-price { margin-top: 10px; padding-top: 0; color: var(--im-refined-ink); font-size: 21px; }
body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-card-actions { margin-top: 4px; padding-top: 10px; border-top-color: var(--im-refined-line); }
body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-card-actions > a.im-home-offer-action { color: var(--im-refined-ink); font-size: 15px; }
body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-card-share-button { min-width: 44px; min-height: 44px; border-color: #d2d2d2; border-radius: 4px; background: #fff; color: var(--im-refined-ink); font-size: 14px; }
body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-card-share-button:hover { background: #f6f6f6; }
body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-row-all { margin-top: 10px !important; color: var(--im-refined-ink) !important; font-size: 15px; }
body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-channel-display { margin-top: 30px; }
body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-brand-row > a { min-height: 58px; padding: 8px 14px; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-brand-row > a + a { border-left: 1px solid var(--im-refined-line); }

body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-offer-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
}

body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-search-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--im-refined-ink);
  font-size: 15px;
  font-weight: 600;
}

/* Services and commission: rules and typographic hierarchy replace panels. */
body.im-home-page #main.im-home-shortened :is(.im-premium-package, .im-provision-comparison) {
  padding-block: 40px !important;
  border-block: 1px solid var(--im-refined-line);
}

body.im-home-page #main.im-home-shortened :is(.im-premium-package, .im-provision-comparison, .im-home-team, .im-home-external, .im-home-faq) h2 {
  margin-bottom: 14px;
  color: var(--im-refined-ink);
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -.025em;
}

body.im-home-page #main.im-home-shortened .im-premium-steps { gap: 24px; margin-block: 24px 16px; }
body.im-home-page #main.im-home-shortened .im-premium-steps > li { gap: 12px; padding: 0; border: 0; background: #fff; box-shadow: none; }
body.im-home-page #main.im-home-shortened .im-premium-step-number { font-size: 20px !important; font-weight: 600 !important; color: #777 !important; }
body.im-home-page #main.im-home-shortened .im-premium-steps h3 { font-size: 17px; line-height: 1.35; }
body.im-home-page #main.im-home-shortened .im-premium-steps p { color: var(--im-refined-muted); font-size: 15px; }
body.im-home-page #main.im-home-shortened .im-provision-comparison__inner { gap: 38px; }
body.im-home-page #main.im-home-shortened .im-provision-comparison__example { padding: 22px 0 22px 30px; border: 0; border-left: 1px solid var(--im-refined-line); border-radius: 0; background: #fff; box-shadow: none; }
body.im-home-page #main.im-home-shortened .im-provision-comparison__example :is(strong, dt, dd, small, input, .im-provision-comparison__sale, .im-provision-comparison__difference, .im-provision-comparison__note) { color: var(--im-refined-ink); }
body.im-home-page #main.im-home-shortened .im-provision-comparison__example :is(small, .im-provision-comparison__note) { color: var(--im-refined-muted); }
body.im-home-page #main.im-home-shortened .im-provision-comparison__difference { border-top-color: var(--im-refined-line); }
body.im-home-page #main.im-home-shortened .im-provision-comparison__cta { min-height: 44px; color: var(--im-refined-ink); }

/* People and partner services: compact image/text rows. */
body.im-home-page #main.im-home-shortened .im-home-team { padding-block: 42px 36px !important; }
body.im-home-page #main.im-home-shortened .im-home-external { margin-top: 0; padding-block: 36px 44px !important; }
body.im-home-page #main.im-home-shortened .im-home-external-intro { padding-top: 0; }

body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: auto;
  gap: 0 34px !important;
  margin-top: 22px;
  padding: 0 !important;
  overflow: visible !important;
}

body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card-grid > a.owner-card {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
  align-items: start;
  align-self: start;
  gap: 18px;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0;
  padding: 22px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--im-refined-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card > img {
  display: block;
  width: 104px !important;
  height: 128px !important;
  min-height: 0 !important;
  max-height: 128px;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 3px;
  object-fit: cover !important;
  object-position: center 22%;
}

body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px !important;
  min-width: 0;
  padding: 0 !important;
}

body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card > img.im-service-icon {
  object-fit: contain !important;
}

body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card-content h3 { margin: 0; color: var(--im-refined-ink); font-size: 20px !important; line-height: 1.3 !important; font-weight: 650; }
body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card-content p { margin: 0; color: var(--im-refined-muted); font-size: 15px !important; line-height: 1.55 !important; }
body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .im-person-affiliation { margin-bottom: 2px; color: #666; font-size: 12px; line-height: 1.5; }
body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card-content .card-more { margin-top: 5px; color: var(--im-refined-ink) !important; font-size: 14px !important; line-height: 1.5; }
body.im-home-page #main.im-home-shortened .im-home-about { margin-top: 22px; padding-top: 24px; border-top: 1px solid var(--im-refined-line); }
body.im-home-page #main.im-home-shortened .im-home-about h3 { margin-bottom: 12px; font-size: 23px; }
body.im-home-page #main.im-home-shortened .im-home-about > p:not(.eyebrow) { max-width: 82ch; color: var(--im-refined-muted); }

/* Native details are compact ruled rows; all answers remain available. */
body.im-home-page #main.im-home-shortened #im-home-more { padding-block: 38px 40px; }
body.im-home-page #main.im-home-shortened .im-premium-seeker { margin-bottom: 28px; padding-bottom: 24px; border-bottom-color: var(--im-refined-line); }
body.im-home-page #main.im-home-shortened #im-home-more .im-home-more-intro { margin-bottom: 18px; }
body.im-home-page #main.im-home-shortened #im-home-more .im-home-more-intro h2 { font-size: 30px; }

body.im-home-page #main.im-home-shortened #im-home-more > .container > .im-home-deep-dive {
  margin-bottom: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--im-refined-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.im-home-page #main.im-home-shortened #im-home-more > .container > .im-home-deep-dive:last-child { border-bottom: 1px solid var(--im-refined-line) !important; }
body.im-home-page #main.im-home-shortened #im-home-more > .container > .im-home-deep-dive > summary { min-height: 80px; gap: 20px; padding: 18px 0; border: 0; border-radius: 0; background: #fff !important; color: var(--im-refined-ink) !important; }
body.im-home-page #main.im-home-shortened #im-home-more > .container > .im-home-deep-dive > summary:hover { background: #fafafa !important; }
body.im-home-page #main.im-home-shortened #im-home-more .im-home-deep-dive__copy { gap: 5px; }
body.im-home-page #main.im-home-shortened #im-home-more .im-home-deep-dive__copy strong { color: var(--im-refined-ink) !important; font-size: 20px; line-height: 1.35; }
body.im-home-page #main.im-home-shortened #im-home-more .im-home-deep-dive__copy small { color: var(--im-refined-muted) !important; font-size: 14px; line-height: 1.5; }
body.im-home-page #main.im-home-shortened #im-home-more .im-home-deep-dive__plus { flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--im-refined-ink) !important; font-size: 26px; }
body.im-home-page #main.im-home-shortened #im-home-more .im-home-deep-dive__content { padding-inline: 0; }
body.im-home-page #main.im-home-shortened #im-home-more .im-home-deep-dive__content .container { width: 100% !important; max-width: none !important; }

body.im-home-page #main.im-home-shortened > .im-home-faq { padding-block: 38px 44px; }
body.im-home-page #main.im-home-shortened .im-home-faq-heading { margin-bottom: 20px; }
body.im-home-page #main.im-home-shortened .im-home-faq-list { max-width: none; gap: 0; }
body.im-home-page #main.im-home-shortened .im-home-faq-list > details { border: 0; border-top: 1px solid var(--im-refined-line); border-radius: 0; background: #fff; }
body.im-home-page #main.im-home-shortened .im-home-faq-list > details:last-child { border-bottom: 1px solid var(--im-refined-line); }
body.im-home-page #main.im-home-shortened .im-home-faq-list > details > summary { min-height: 64px; padding: 18px 0; border-radius: 0; color: var(--im-refined-ink); font-size: 17px; }
body.im-home-page #main.im-home-shortened .im-home-faq-list > details > summary::after { border-color: #555; }
body.im-home-page #main.im-home-shortened .im-home-faq-answer { max-width: 85ch; padding: 0 30px 22px 0; color: var(--im-refined-muted); }
body.im-home-page #main.im-home-shortened .im-home-faq-answer a { color: var(--im-refined-ink); }

body.im-home-page > #anfrage.ir-contact { padding-block: 44px; background: #fff; color: var(--im-refined-ink); border-top: 1px solid var(--im-refined-line); }
body.im-home-page > #anfrage .ir-contact-grid { width: calc(100% - var(--im-refined-gutter) - var(--im-refined-gutter)); max-width: 1180px; margin-inline: auto; }
body.im-home-page > #anfrage :is(.ir-contact-info, .ir-contact-pane) { border-radius: 0; box-shadow: none; }
body.im-home-page > #anfrage h2 { color: var(--im-refined-ink); font-size: clamp(27px, 3vw, 36px); line-height: 1.2; }
body.im-home-page > #anfrage .ir-contact-info,
body.im-home-page > #anfrage .ir-contact-info :is(p, address, strong, dt, dd, a, .ir-channel-label) { color: var(--im-refined-ink) !important; }
body.im-home-page > #anfrage .ir-contact-info dt { color: var(--im-refined-muted) !important; }
body.im-home-page > #anfrage .ir-contact-info .ir-channel-buttons > a:hover { color: var(--im-refined-red) !important; }

/* Tablet: retain readable text columns and the existing side navigation. */
@media (max-width: 960px) {
  body.im-home-page { --im-refined-gutter: 24px; }
  body.im-home-page #main.im-home-shortened .im-home-entry--focused > .hero-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 24px 30px; }
  body.im-home-page #main.im-home-shortened .hero-copy h1.im-home-promise { font-size: 35px !important; }
  body.im-home-page #main.im-home-shortened .im-provision-comparison__example { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--im-refined-line); }
  body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Mobile: use the page width; keep every interactive target at least 44px. */
@media (max-width: 780px) {
  body.im-home-page { --im-refined-gutter: 16px; }
  body.im-home-page .im-site-head .im-menu-button { display: flex !important; flex-direction: column; justify-content: center; align-items: center; gap: 0; width: 44px !important; min-width: 44px !important; height: 44px !important; min-height: 44px !important; padding: 1px 0 !important; }
  body.im-home-page .im-site-head .im-menu-button svg { width: 24px !important; height: 24px !important; }
  body.im-home-page .im-site-head .im-menu-button span { display: block !important; margin: 0; color: #333; font: 500 12px/14px 'DM Sans', Arial, sans-serif; white-space: nowrap; }
  body.im-home-page #main.im-home-shortened > .im-front-valuation { padding-block: 24px !important; }
  body.im-home-page #main.im-home-shortened .im-front-valuation__inner { row-gap: 18px; }
  body.im-home-page #main.im-home-shortened #im-front-valuation-title { font-size: 27px; }
  body.im-home-page #main.im-home-shortened a.im-front-valuation__card { min-height: 99px; gap: 7px; padding: 9px 6px 5px; }
  body.im-home-page #main.im-home-shortened a.im-front-valuation__card:first-child { border-left: 0; }
  body.im-home-page #main.im-home-shortened .im-front-valuation__icon { width: 36px; height: 36px; }
  body.im-home-page #main.im-home-shortened .im-front-valuation__label { font-size: 13px; }
  body.im-home-page #main.im-home-shortened > .im-home-entry.im-home-entry--focused { padding-top: 30px !important; }
  body.im-home-page #main.im-home-shortened .im-home-entry--focused > .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "portrait" "actions"; gap: 22px; }
  body.im-home-page #main.im-home-shortened .hero-copy h1.im-home-promise { max-width: 23ch; font-size: clamp(29px, 7.4vw, 35px) !important; margin-bottom: 15px !important; }
  body.im-home-page #main.im-home-shortened .hero-copy .im-home-seller-eyebrow { margin-bottom: 12px; font-size: 11px; }
  body.im-home-page #main.im-home-shortened .hero-copy .im-home-intro { font-size: 16px; line-height: 1.6; }
  body.im-home-page #main.im-home-shortened .hero-copy .im-provision-entry { margin-top: 14px; font-size: 14px; }
  body.im-home-page #main.im-home-shortened .im-home-portrait { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; max-width: none; padding: 16px 0; border-block: 1px solid var(--im-refined-line); }
  body.im-home-page #main.im-home-shortened .im-home-portrait > img { width: 110px; height: 144px; min-height: 0; object-fit: contain; }
  body.im-home-page #main.im-home-shortened .im-home-portrait figcaption { align-self: center; padding: 0; border: 0; font-size: 13px; }
  body.im-home-page #main.im-home-shortened .im-home-portrait-kicker { font-size: 12px; }
  body.im-home-page #main.im-home-shortened .im-home-portrait figcaption strong { font-size: 19px; }
  body.im-home-page #main.im-home-shortened .im-home-portrait figcaption a { font-size: 16px; }
  body.im-home-page #main.im-home-shortened .hero-grid > .im-home-quick-actions { border-top: 0; }
  body.im-home-page #main.im-home-shortened .im-home-quick-actions > a { min-height: 52px; padding-inline: 6px; font-size: 13px; }
  body.im-home-page #main.im-home-shortened .im-home-entry--focused > .im-home-proof-band { margin-top: 28px; padding-top: 0; gap: 18px; }
  body.im-home-page #main.im-home-shortened .im-home-proof-number { font-size: 31px; }
  body.im-home-page #main.im-home-shortened .im-home-proof-label { font-size: 18px; }
  body.im-home-page #main.im-home-shortened .im-home-proof-stories { padding-top: 23px; }
  body.im-home-page #main.im-home-shortened .im-home-proof-stories > h3 { font-size: 24px; margin-bottom: 18px; }
  body.im-home-page #main.im-home-shortened .im-home-references.im-home-side-navigation .im-home-references__frame:not(.im-home-references__frame--single),
  body.im-home-page #main.im-home-shortened .im-home-reviews.im-home-side-navigation .im-home-reviews__frame:not(.im-home-reviews__frame--single) { width: calc(100% + 32px); margin-inline: -16px; padding-inline: 44px; }
  body.im-home-page #main.im-home-shortened .im-home-review-section { margin-top: 26px; padding-top: 22px !important; }
  body.im-home-page #main.im-home-shortened .im-home-reviews.im-home-side-navigation .im-home-reviews__slide { padding: 18px; }
  body.im-home-page #main.im-home-shortened .im-home-client-voice :is(blockquote, .im-home-reviews__quote) { font-size: 17px; line-height: 1.6; }
  body.im-home-page #main.im-home-shortened .im-home-entry--focused > #immobilien-auswahl { padding-block: 34px !important; }
  body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-row-title { font-size: 23px; }
  body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-offer-content { padding: 17px; }
  body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-offer-content :is(h3, h4) { font-size: 19px; }
  body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-brand-row > a { padding-inline: 9px; min-height: 54px; }
  body.im-home-page #main.im-home-shortened :is(.im-premium-package, .im-provision-comparison) { padding-block: 32px !important; }
  body.im-home-page #main.im-home-shortened .im-premium-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body.im-home-page #main.im-home-shortened .im-premium-steps > li { gap: 14px; }
  body.im-home-page #main.im-home-shortened .im-home-team { padding-block: 34px 28px !important; }
  body.im-home-page #main.im-home-shortened .im-home-external { padding-block: 28px 34px !important; }
  body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card-grid { margin-top: 16px; }
  body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card-grid > a.owner-card { grid-template-columns: 88px minmax(0, 1fr) !important; gap: 16px; padding-block: 18px !important; }
  body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card > img { width: 88px !important; height: 112px !important; min-height: 0 !important; max-height: 112px; }
  body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card-content h3 { font-size: 18px !important; }
  body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card-content p { font-size: 14px !important; line-height: 1.55 !important; }
  body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card-content .card-more { font-size: 13px !important; }
  body.im-home-page #main.im-home-shortened #im-home-more { padding-block: 30px 34px; }
  body.im-home-page #main.im-home-shortened #im-home-more > .container > .im-home-deep-dive > summary { min-height: 78px; padding-block: 16px; gap: 12px; }
  body.im-home-page #main.im-home-shortened #im-home-more .im-home-deep-dive__copy strong { font-size: 18px; }
  body.im-home-page #main.im-home-shortened #im-home-more .im-home-deep-dive__copy small { font-size: 13px; }
  body.im-home-page #main.im-home-shortened > .im-home-faq { padding-block: 32px 38px; }
  body.im-home-page > #anfrage.ir-contact { padding-block: 38px; }
}

@media (max-width: 360px) {
  body.im-home-page #main.im-home-shortened .im-home-portrait { grid-template-columns: 94px minmax(0, 1fr); gap: 14px; }
  body.im-home-page #main.im-home-shortened .im-home-portrait > img { width: 94px; height: 136px; }
  body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card-grid > a.owner-card { grid-template-columns: 76px minmax(0, 1fr) !important; gap: 13px; }
  body.im-home-page #main.im-home-shortened :is(.im-home-team, #externe-fachpartner) .owner-card > img { width: 76px !important; height: 100px !important; }
  body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-offer-content { padding: 15px; }
}

/* Strong keyboard indication survives the lighter surfaces. */
body.im-home-page #main.im-home-shortened :is(a, button, summary, input, select, textarea):focus-visible,
body.im-home-page .im-site-head :is(a, button, summary):focus-visible {
  outline: 2px solid var(--im-refined-ink);
  outline-offset: 3px;
}

body.im-home-page #main.im-home-shortened .im-home-case:focus-visible,
body.im-home-page #main.im-home-shortened #immobilien-auswahl .im-home-offer-photo:focus-visible {
  outline-offset: -3px;
}


/* Consistent homepage team portraits, 2026-11-24. */
body.im-home-page #main.im-home-shortened .im-home-team img.im-service-portrait {
  filter: grayscale(1) !important;
}
body.im-home-page #main.im-home-shortened .im-home-team .owner-card > .im-team-portrait-frame {
  display: block;
  position: relative;
  width: 104px;
  height: 128px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: #fdfdfd;
  align-self: start;
}
body.im-home-page #main.im-home-shortened .im-home-team .im-team-portrait-frame > img.im-service-portrait {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center top !important;
  transform: translateY(10%) scale(1.6) !important;
  transform-origin: 55% top;
}
@media (max-width: 780px) {
  body.im-home-page #main.im-home-shortened .im-home-team .owner-card > .im-team-portrait-frame {
    width: 88px;
    height: 112px;
  }
}
@media (max-width: 360px) {
  body.im-home-page #main.im-home-shortened .im-home-team .owner-card > .im-team-portrait-frame {
    width: 76px;
    height: 100px;
  }
}

/* Mobile homepage quick links: one aligned row per action, 2026-11-24. */
@media (max-width: 780px) {
  body.im-home-page #main.im-home-shortened .hero-grid > .im-home-quick-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    width: 100%;
    border: 0 !important;
    align-self: start;
  }

  body.im-home-page #main.im-home-shortened .im-home-quick-actions > a {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    box-sizing: border-box;
    width: 100%;
    height: auto !important;
    min-height: 52px !important;
    padding: 12px 0 !important;
    border: 0 !important;
    font-size: 16px !important;
    line-height: 1.5;
    text-align: left !important;
  }

  body.im-home-page #main.im-home-shortened .im-home-quick-actions .im-home-quick-label {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-right: 2rem;
    text-align: left;
    white-space: normal;
  }

  body.im-home-page #main.im-home-shortened .im-home-quick-actions .im-home-quick-tail {
    display: inline;
    white-space: normal;
  }

  body.im-home-page #main.im-home-shortened .im-home-quick-actions .im-home-quick-arrow {
    position: absolute;
    top: 50%;
    right: 0;
    margin: 0;
    transform: translateY(-50%);
  }
}
