/* Responsive page behavior. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible,
.gallery-track:focus-visible { outline: 2px solid #ffa31a; outline-offset: 4px; }
.clone-icon { flex-shrink: 0; vertical-align: middle; }
.clone-login { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.clone-login span { display: none; }
.clone-desktop-login { display: none; }
.clone-finance { max-width: 1440px; padding: 0 16px; margin: 0 auto 48px; }
.clone-courtage { max-width: 1440px; margin: 0 auto; }
.clone-courtage > div { padding: 24px 16px 56px; }
.clone-courtage h2 { font-family: "More Spaces Heading", Georgia, serif; font-size: 16px; font-weight: 700; line-height: 24px; margin: 0 0 12px; }
.clone-courtage p { font-size: 12px; line-height: 20px; margin: 0; }
.gallery { position: relative; }
.gallery-primary { position: relative; min-width: 0; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { display: block; position: relative; flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 2; scroll-snap-align: start; scroll-snap-stop: always; padding: 0; border: 0; background: #eee; }
.gallery-slide img, .gallery-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-new { position: absolute; top: 16px; left: 16px; background: #427300; color: #fff; padding: 5px 9px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; pointer-events: none; }
.gallery-ai { position: absolute; bottom: 16px; left: 16px; background: #272724b3; color: #fff; padding: 4px 8px; font-size: 12px; letter-spacing: 1px; }
.gallery-controls { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.gallery-count, .gallery-plan { height: 32px; min-width: 44px; padding: 5px 8px; background: #fff; color: #222; border: 0; box-shadow: 0 0 5px #0002; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.gallery-plan { display: none; }
.gallery-count svg { display: none; }
.gallery-previews { display: none; }
.gallery-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); width: 116px; display: flex; gap: 8px; overflow: hidden; scrollbar-width: none; }
.gallery-dots button { position: relative; padding: 0; border: 0; background: transparent; height: 12px; min-width: 24px; }
.gallery-dots button::after { content: ''; height: 2px; position: absolute; left: 0; right: 0; top: 6px; background: #ffffff60; }
.gallery-dots button[aria-current=true]::after { background: #fff; }
.floorplan-preview { width: 100%; max-width: 760px; border: 1px solid #eee; background: #fff; display: block; padding: 16px; margin-top: 24px; }
.floorplan-preview img { width: 100%; max-height: 420px; object-fit: contain; display: block; }
.floorplan-preview span { display: flex; justify-content: center; gap: 8px; align-items: center; padding-top: 12px; font-size: 14px; }
.clone-checkbox { appearance: none; width: 24px; height: 24px; border: 1px solid #444; border-radius: 0; margin: 0; flex: 0 0 24px; background: #fff; }
.clone-checkbox:checked { background: #ffa31a; border-color: #ffa31a; }
.clone-checkbox:checked::after { content: ''; display: block; width: 6px; height: 12px; border: solid white; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: 3px 8px; }
.clone-expand-consent { margin-top: 8px; font-size: 14px; padding: 0; border: 0; background: transparent; color: #222; text-align: left; }
.form-status { font-size: 16px; line-height: 1.5; padding: 16px; border-left: 3px solid #ffa31a; background: #f7f5f1; }
.contact-field-error { color: #ffa31a; margin: 6px 0 0; font-size: 14px; line-height: 20px; }
#contact-form input[data-form-error="true"],
#contact-form input[data-form-error="true"]:focus,
#contact-form input[data-form-error="true"]:hover { border-color: #ffa31a !important; }
[data-testid=expose-favorite-button][aria-pressed=true] svg,
[data-testid=search-components_result-card_favourite-button][aria-pressed=true] svg { fill: #ffa31a; stroke: #ffa31a; }
.clone-related-track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.clone-related-track > * { scroll-snap-align: start; }
.clone-related-track::-webkit-scrollbar { display: none; }
.related-gallery { position: relative; z-index: 2; aspect-ratio: 3 / 2; overflow: hidden; }
.related-images { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.related-images::-webkit-scrollbar { display: none; }
.related-images img { display: block; width: 100%; height: 100%; flex: 0 0 100%; object-fit: cover; scroll-snap-align: start; user-select: none; }
.related-gallery > button { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: none; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #0d0d0d; box-shadow: 0 4px 8px #0000003d; z-index: 3; }
.related-image-prev { left: 12px; }
.related-image-next { right: 12px; }
.related-image-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.related-image-dots button { width: 24px; height: 16px; padding: 0; border: 0; background: transparent; position: relative; }
.related-image-dots button::after { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: #ffffff70; }
.related-image-dots button[aria-current=true]::after { background: #fff; }
@media (min-width: 905px) { .related-gallery > button { display: flex; opacity: 0; transition: opacity .15s; } .related-gallery:hover > button, .related-gallery:focus-within > button { opacity: 1; } }
.clone-related-track ~ [class*="Slider-module__YU1cdG__arrowButton"] svg { transform: none; }
@media (max-width: 904px) {
  .clone-related-track ~ [class*="Slider-module__YU1cdG__arrowButton"] { display: none !important; }
}
.lightbox { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: #fff; background: #151515; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop, .menu-dialog::backdrop { background: #000b; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: max(12px, env(safe-area-inset-top)) 12px 12px; background: #222; z-index: 2; }
.lightbox-bar h2 { color: #fff; font-family: inherit; font-size: 14px; font-weight: 400; line-height: 20px; margin: 0; }
.lightbox-bar > div { display: flex; }
.lightbox button { color: #fff; background: transparent; border: 0; min-width: 44px; min-height: 44px; padding: 8px; }
#zoom-reset { font-size: 12px; white-space: nowrap; }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; user-select: none; }
.lightbox-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; will-change: transform; }
.lightbox-stage[data-zoomed=true] { cursor: grab; }
.lightbox-stage[data-dragging=true] { cursor: grabbing; }
.lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px max(12px, env(safe-area-inset-bottom)); background: #222; }
.lightbox-bottom p { margin: 0; font-size: 14px; line-height: 20px; text-align: center; }
#lightbox-prev svg { transform: rotate(180deg); }
.menu-dialog { position: fixed; inset: 0; margin: 0; border: 0; max-width: 380px; width: min(90vw, 380px); height: 100dvh; max-height: none; padding: 20px; }
.menu-dialog nav { display: flex; flex-direction: column; gap: 24px; margin-top: 56px; }
.menu-dialog nav a { color: #222; text-decoration: none; font-size: 18px; }
.menu-close { position: absolute; right: 16px; top: 16px; min-width: 44px; min-height: 44px; border: 0; background: #fff; }
.account-dialog { left: auto; right: 0; overflow-y: auto; }
.account-dialog nav button { border: 0; background: transparent; padding: 0; text-align: left; font-size: 18px; color: #222; }
.account-dialog nav button[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.account-content { margin-top: 32px; }
.account-content h2 { font-size: 26px; }
.account-content p { line-height: 1.5; }
.saved-property-list { list-style: none; padding: 0; margin: 16px 0 0; }
#saved-property { display: flex; align-items: center; gap: 4px; padding: 12px 0; border-bottom: 1px solid #eee; }
#saved-property button { background: transparent; border: 0; color: #222; padding: 0; }
#open-saved-property { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
#saved-property img { width: 80px; height: 64px; object-fit: cover; flex-shrink: 0; }
#saved-property strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 400; line-height: 1.4; }
#saved-property small { display: block; margin-top: 6px; font-size: 13px; }
#remove-saved-property { min-width: 32px; min-height: 44px; flex-shrink: 0; }
.clone-toast { position: fixed; bottom: calc(92px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 12px 20px; max-width: calc(100% - 32px); background: #222; color: #fff; z-index: 1000; font-size: 14px; text-align: center; }
body.modal-open { overflow: hidden; }
.clone-back-link svg { flex-shrink: 0; }
@media (max-width: 904px) {
  [data-testid="expose-action-bar"][data-sticky=true] .clone-back-link { display: flex; width: 40px; height: 40px; padding: 0; justify-content: center; }
  [data-testid="expose-action-bar"][data-sticky=true] .clone-back-link span { display: none; }
}
/* Reusable Exposé attributes: all catalog fields are always visible. */
.clone-feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
#ausstattung, #objektdetails, #energieausweis { scroll-margin-top: 76px; }
.clone-feature-list li { max-width: 100%; }
.clone-feature-chip { display: inline-flex; gap: 6px; align-items: center; max-width: 100%; }
.clone-feature-chip > .clone-icon { margin-left: 2px; }
.clone-feature-chip [class*="__label"] { white-space: normal; }
.clone-detail-label { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.clone-detail-label-text { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.clone-detail-label .clone-icon { margin-top: 2px; }
.clone-detail-label .clone-icon { color: #444; }
.clone-detail-value { min-width: 0; overflow-wrap: anywhere; }
.clone-energy-value { display: flex; align-items: center; gap: 8px; }
.energy-info { border: 0; color: #444; background: transparent; padding: 4px; min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.energy-grade { font-size: 14px; line-height: 22px; padding: 0 12px; font-weight: 600; background: #eee; }
.energy-legend { width: calc(100% - 32px); max-width: 540px; padding: 24px; border: 0; color: #222; }
.energy-legend::backdrop { background: #0008; }
.energy-legend-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.energy-legend h2 { font-family: "More Spaces Heading", Georgia, serif; font-size: 20px; line-height: 28px; margin: 0; }
.energy-legend p { font-size: 16px; line-height: 24px; margin: 16px 0; }
.energy-legend-close { padding: 8px; min-width: 44px; min-height: 44px; border: 0; color: #222; background: transparent; }
.energy-scale { list-style: none; display: flex; margin: 24px 0; padding: 0; width: 100%; }
.energy-scale-grade { min-width: 0; flex: 1; text-align: center; padding: 9px 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.energy-scale-grade[aria-current=true] { outline: 2px solid #222; outline-offset: 3px; z-index: 1; }
.energy-grade[data-grade="0"], .energy-scale-grade[data-grade="0"] { background: #78ae6b; }
.energy-grade[data-grade="1"], .energy-scale-grade[data-grade="1"] { background: #9fbd67; }
.energy-grade[data-grade="2"], .energy-scale-grade[data-grade="2"] { background: #bfce6e; }
.energy-grade[data-grade="3"], .energy-scale-grade[data-grade="3"] { background: #dfdf78; }
.energy-grade[data-grade="4"], .energy-scale-grade[data-grade="4"] { background: #f2e582; }
.energy-grade[data-grade="5"], .energy-scale-grade[data-grade="5"] { background: #efd18a; }
.energy-grade[data-grade="6"], .energy-scale-grade[data-grade="6"] { background: #eeb18b; }
.energy-grade[data-grade="7"], .energy-scale-grade[data-grade="7"] { background: #ffa31a; }
.energy-grade[data-grade="8"], .energy-scale-grade[data-grade="8"] { background: #ffa31a; }
.clone-floorplans { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.clone-floorplans .floorplan-card { flex: 0 0 100%; scroll-snap-align: start; }
.floorplan-card { position: relative; width: 100%; min-width: 0; border: 1px solid #e8e8e8; background: #fff; }
.floorplan-canvas { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; overflow: hidden; touch-action: none; user-select: none; }
.floorplan-canvas:focus-visible { outline: 2px solid #ffa31a; outline-offset: -2px; }
.floorplan-canvas img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; will-change: transform; transition: transform .2s ease-out; }
.floorplan-canvas[data-zoomed=true] { cursor: grab; }
.floorplan-canvas[data-dragging=true] { cursor: grabbing; }
.floorplan-canvas[data-dragging=true] img { transition: none; }
.plan-zoom-controls { position: absolute; right: 16px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; background: #fff; border-radius: 2px; box-shadow: 0 2px 4px #0003; }
.plan-zoom-controls[hidden] { display: none; }
.plan-control, .lightbox[data-mode=plan] .plan-zoom-controls button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 0; color: #404040; background: #fff; }
.plan-control:hover, .lightbox[data-mode=plan] .plan-zoom-controls button:hover { background: #f6f6f4; }
.plan-control:disabled, .lightbox[data-mode=plan] .plan-zoom-controls button:disabled { color: #b2b2b2; cursor: default; }
.plan-fullscreen { position: absolute; top: 16px; right: 16px; box-shadow: 0 2px 4px #0003; border-radius: 2px; }
.lightbox[data-mode=plan], .lightbox[data-mode=plan] .lightbox-bar, .lightbox[data-mode=plan] .lightbox-bottom { color: #0d0d0d; background: #fff; }
.lightbox[data-mode=plan] .lightbox-bar { justify-content: center; min-height: 72px; padding-inline: 60px; border-bottom: 1px solid #f6f6f4; }
.lightbox[data-mode=plan] .lightbox-bar h2 { color: #0d0d0d; padding: 12px 8px; border-bottom: 2px solid #ffa31a; }
.lightbox[data-mode=plan] #lightbox-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 16px; color: #0d0d0d; }
.lightbox[data-mode=plan] #zoom-reset { display: none; }
.lightbox[data-mode=plan] .lightbox-stage { margin: 16px; }
.lightbox[data-mode=plan] .lightbox-stage img { transition: transform .2s ease-out; }
.lightbox[data-mode=plan] .lightbox-stage[data-dragging=true] img { transition: none; }
.lightbox[data-mode=plan] .lightbox-bottom { padding-block: 12px max(16px, env(safe-area-inset-bottom)); }
.lightbox[data-mode=plan] .lightbox-bottom p { flex: 1; }
.lightbox[data-mode=plan] .lightbox-bottom button { background: #0d0d0d; border-radius: 50%; }
.lightbox[data-mode=plan] .lightbox-bottom button:not([hidden]) { position: absolute; top: 50%; z-index: 2; }
.lightbox[data-mode=plan] #lightbox-prev { left: 16px; }
.lightbox[data-mode=plan] #lightbox-next { right: 16px; }
@media (min-width: 905px) { .lightbox[data-mode=plan] .lightbox-stage { margin: 24px 64px; } }
@media (min-width: 905px) {
  .clone-desktop-login { display: flex; }
  .clone-finance { padding: 0 48px; }
  .clone-courtage > div { padding-inline: 48px; }
  .clone-login span { display: inline; }
  .gallery { display: grid; grid-template-columns: 2.065fr 1fr; gap: 16px; }
  .gallery-track { height: 100%; }
  .gallery-slide { height: 100%; }
  .gallery-previews { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-width: 0; }
  .gallery-preview { position: relative; aspect-ratio: 3 / 2; padding: 0; border: 0; min-height: 0; width: 100%; }
  .gallery-controls { right: calc(-48.43% - 16px); z-index: 2; }
  .gallery-count, .gallery-plan { height: 44px; }
  .gallery-plan { display: inline-flex; }
  .gallery-count { gap: 8px; }
  .gallery-count svg { display: inline; }
  .gallery-new { font-size: 14px; padding: 8px 16px; }
  .gallery-dots { display: none; }
  .lightbox-bar { padding: 16px 24px; }
  .lightbox-bar h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .gallery-dots, .gallery-controls, .lightbox, .menu-dialog, .clone-toast,
  [data-testid=sticky-footer_primary_request-expose] { display: none !important; }
  .gallery-track { overflow: hidden; }
}

/* Original circular shop portrait size. */
[data-testid='agent-shop-card_shop-image'] { width: 96px; height: 96px; object-fit: cover; clip-path: circle(50%); }
[data-testid='agent-shop-card_shop-image'] { object-position: center; }
[data-testid='agent-shop-card_shop-image-wrapper'] { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; }
[data-testid='agent-shop-card_shop-image-wrapper'] img { transform: none; }
.clone-related-track [data-testid="search-components_result-card_favourite-button"], .clone-related-track [class*="badgesContainer"] { z-index: 4; }
.saved-related-property { display: flex; align-items: center; gap: 4px; padding: 12px 0; border-bottom: 1px solid #eee; }
.saved-related-property button { background: transparent; border: 0; color: #222; padding: 0; }
.saved-related-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.saved-related-open img { width: 80px; height: 64px; object-fit: cover; flex-shrink: 0; }
.saved-related-open strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 400; line-height: 1.4; }
.saved-related-open small { display: block; margin-top: 6px; font-size: 13px; }
.saved-related-remove { min-width: 32px; min-height: 44px; flex-shrink: 0; }

.clone-related-track [class*='badgesContainer'] { pointer-events: none; }
.clone-related-track [data-testid='search-components_result-card_favourite-button'] { z-index: 5; }

.clone-related-track [data-testid='search-components_result-card_favourite-button'] { z-index: 5 !important; pointer-events: auto !important; }

.clone-footer-legal { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.clone-footer-legal p { margin: 0; }
/* Fixed-size SVG pattern tiles stay identical across viewport sizes. */
[data-testid="wavy-pattern"] {
  width: 100%;
  height: 250px;
  min-height: 250px;
  background-image: url('../assets/footer-muster.svg');
  background-size: 2000px 1000px;
  background-repeat: repeat;
  background-position: center 12.5px;
}

span.Breadcrumb-module___Tu0cW__link { cursor: default; }

#contact-form input[data-form-error='true']:focus { outline-color: #ffa31a !important; box-shadow: none !important; }
#contact-form [class*='StyledRootInputText']:has(input[data-form-error='true']) { border-color: #ffa31a !important; outline-color: #ffa31a !important; box-shadow: none !important; }

/* Direct vector logo, aligned to the reference header rows. */
.ms-ui-header-logo-container { padding-top: 8px; padding-bottom: 8px; }
.ms-ui-header-logo-container .fCTjEo { position: relative; top: 0; padding: 0; transform: none; }
.ms-ui-header-logo-container .chWXIW { display: block; width: 199.1666667px; height: 40px; margin: 0; overflow: visible; color: #000; }
.ms-ui-header-logo-container .cbzSDW { width: 58px; height: 40px; overflow: visible; color: #000; }
.ms-ui-header-logo-container .czMyzI,
.ms-ui-header-logo-container .czMyzI:hover,
.ms-ui-header-logo-container .czMyzI:active { background: transparent; box-shadow: none; filter: none; opacity: 1; }
@media (min-width: 600px) { .ms-ui-header-logo-container .chWXIW { width: 298.75px; height: 60px; } }
@media (min-width: 905px) {
  .ms-ui-header-logo-container { padding-top: 0; padding-bottom: 0; }
  .ms-ui-header-logo-container .chWXIW { margin-top: 2px; }
}
