/* Exposé Immo – öffentliche Immobilien-Seite. Schrift kommt vom Theme, Farben aus der Exposé-Gestaltung. */
.eimo-pub { --eimo-accent: #f4a51c; --eimo-bullet: #862b37; --eimo-line: rgba(127,127,127,.22); --eimo-soft: rgba(127,127,127,.07);
  max-width: 1280px; margin-left: auto; margin-right: auto; box-sizing: border-box; line-height: 1.6; }
.eimo-pub *, .eimo-pub *::before, .eimo-pub *::after { box-sizing: border-box; }
.eimo-pub img { max-width: 100%; height: auto; display: block; margin: 0; }
.eimo-pub button { font: inherit; }
.eimo-pub-empty { padding: 32px 0; opacity: .75; }

/* Volle Breite: per CSS vorbereitet, per JavaScript exakt auf die Fensterbreite ausgerichtet */
.eimo-pub.eimo-wide { width: min(1280px, calc(100vw - 64px)); max-width: none !important; position: relative; left: 50%; transform: translateX(-50%); }
.eimo-pub.eimo-wide.is-placed { left: auto; transform: none; }

/* ------------------------------ Übersicht ------------------------------ */
.eimo-pub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; padding: 8px 0 40px; }
.eimo-card { display: flex; flex-direction: column; text-decoration: none !important; color: inherit !important; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.65); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.07); transition: transform .18s, box-shadow .18s; }
.eimo-card:hover, .eimo-card:focus-visible { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(0,0,0,.1), 0 18px 40px rgba(0,0,0,.13); }
.eimo-card-img { position: relative; aspect-ratio: 3 / 2; background: var(--eimo-soft); overflow: hidden; display: block; }
.eimo-card-img img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .5s; }
.eimo-card:hover .eimo-card-img img { transform: scale(1.04); }
.eimo-card.is-sold .eimo-card-img img { filter: grayscale(.6); }
.eimo-card-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.eimo-card-title { font-size: 1.12em; font-weight: 600; line-height: 1.35; }
.eimo-card-loc { opacity: .7; font-size: .93em; }
.eimo-card-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--eimo-line); font-weight: 600; font-size: 1.02em; }
.eimo-card-facts span { display: flex; flex-direction: column; }
.eimo-card-facts small { font-weight: 400; opacity: .65; font-size: .76em; }
.eimo-card-more { margin-top: auto; padding-top: 14px; color: var(--eimo-bullet); font-weight: 600; font-size: .94em; }
.eimo-status { position: absolute; left: 14px; top: 14px; background: var(--eimo-accent); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; z-index: 2; }
.eimo-status.s-sold { background: #444; }
.eimo-pub-head .eimo-status { position: static; display: inline-block; margin-bottom: 12px; }

/* ------------------------------ Detail ------------------------------ */
.eimo-pub-back { display: inline-block; margin: 0 0 18px; text-decoration: none !important; color: var(--eimo-bullet) !important; font-weight: 600; }
.eimo-pub-head { margin-bottom: 22px; max-width: 900px; }
.eimo-pub-title { margin: 0 0 6px; font-size: clamp(1.4em, 2.6vw, 2em); line-height: 1.28; font-weight: 400; }
.eimo-pub-loc { margin: 0; opacity: .72; font-size: 1.05em; }

/* Galerie: großes Foto + zwei Kacheln */
.eimo-gal { margin: 0 0 40px; }
.eimo-gal-top { display: grid; grid-template-columns: 1fr; gap: 10px; }
.eimo-gal.has-side .eimo-gal-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.eimo-gal-stage { position: relative; border-radius: 14px; overflow: hidden; background: #1b1b1b; height: clamp(300px, 46vw, 600px); }
.eimo-gal.has-side .eimo-gal-stage { border-radius: 14px 0 0 14px; }
.eimo-gal-main { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.eimo-gal-main img { width: 100%; height: 100% !important; object-fit: cover; }
.eimo-gal-side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(300px, 46vw, 600px); }
.eimo-gal-tile { position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--eimo-soft); }
.eimo-gal-tile:first-child { border-radius: 0 14px 0 0; } .eimo-gal-tile:last-child { border-radius: 0 0 14px 0; }
.eimo-gal-tile img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .4s; }
.eimo-gal-tile:hover img { transform: scale(1.04); }
.eimo-gal-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.42); color: #fff; font-weight: 700; font-size: 1.1em; letter-spacing: .02em; }
.eimo-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #222; font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); display: grid; place-items: center; padding: 0 0 4px; z-index: 2; }
.eimo-gal-nav:hover { background: #fff; }
.eimo-gal-nav.prev { left: 16px; } .eimo-gal-nav.next { right: 16px; }
.eimo-gal-count { position: absolute; right: 16px; bottom: 14px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 4px 11px; border-radius: 99px; }
.eimo-gal-cap { min-height: 1.4em; margin: 10px 2px 10px; font-size: .93em; opacity: .8; }
.eimo-gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.eimo-gal-thumb { flex: none; width: 110px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 7px; overflow: hidden; cursor: pointer; background: var(--eimo-soft); opacity: .7; scroll-snap-align: start; }
.eimo-gal-thumb img { width: 100%; height: 100% !important; object-fit: cover; }
.eimo-gal-thumb:hover { opacity: 1; }
.eimo-gal-thumb.on { border-color: var(--eimo-accent); opacity: 1; }

/* Inhalt + Kontakt */
.eimo-pub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.eimo-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0 0 16px; padding: 0; }
.eimo-facts div { background: var(--eimo-soft); border-radius: 12px; padding: 16px 20px; border-left: 4px solid var(--eimo-accent); }
.eimo-facts dt { font-size: .86em; opacity: .7; margin: 0 !important; padding: 0 !important; font-weight: 400; }
.eimo-facts dd { margin: 3px 0 0 !important; padding: 0 !important; font-weight: 600; font-size: 1.08em; line-height: 1.4; white-space: nowrap; overflow-wrap: normal; }
.eimo-sec { padding: 36px 0; border-top: 1px solid var(--eimo-line); }
.eimo-sec h2 { margin: 0 0 18px; font-size: clamp(1.25em, 2vw, 1.55em); font-weight: 400; line-height: 1.3; }
.eimo-sec h3 { margin: 16px 0 8px; font-size: 1em; font-weight: 600; }
.eimo-sec h3:first-child { margin-top: 0; }
.eimo-sec-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.eimo-sec-body > :first-child { margin-top: 0; }
.eimo-list { list-style: none; margin: 0 0 14px; padding: 0; columns: 2; column-gap: 40px; }
.has-photos .eimo-list { columns: 1; }
.eimo-list li { position: relative; padding-left: 22px; margin: 0 0 10px; break-inside: avoid; }
.eimo-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--eimo-bullet); transform: rotate(45deg); }
.eimo-small { font-size: .85em; opacity: .75; }
.eimo-table { border-collapse: collapse; width: 100%; max-width: 520px; margin: 0 0 14px; }
.eimo-table td { padding: 7px 0; border-bottom: 1px solid var(--eimo-line); }
.eimo-table td:last-child { text-align: right; padding-left: 24px; white-space: nowrap; }
.eimo-table tr.total td { font-weight: 700; border-bottom: 0; }

/* Fotos im Abschnitt: erstes groß, weitere daneben */
.eimo-sec-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eimo-sec-photos .eimo-sec-thumb:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.eimo-sec-photos.n1, .eimo-sec-photos.n2 { grid-template-columns: 1fr; }
.eimo-sec-photos.n1 .eimo-sec-thumb, .eimo-sec-photos.n2 .eimo-sec-thumb { aspect-ratio: 16 / 10; }
.eimo-sec-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 18px; }
.eimo-sec-thumb, .eimo-plan { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--eimo-soft); }
.eimo-sec-thumb { aspect-ratio: 4 / 3; }
.eimo-sec-thumb img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .35s; }
.eimo-sec-thumb:hover img { transform: scale(1.04); }
.eimo-plan { display: block; width: 100%; background: #fff; margin-bottom: 20px; border: 1px solid var(--eimo-line); }
.eimo-plan img { width: 100%; max-height: 560px; object-fit: contain; }

.eimo-pub-side { position: sticky; top: 32px; }
.eimo-contact { border-radius: 14px; padding: 26px; background: var(--eimo-soft); border-top: 4px solid var(--eimo-accent); }
.eimo-contact-logo { max-height: 70px; max-width: 220px; margin-bottom: 16px !important; }
.eimo-contact-kicker { margin: 0; font-size: .8em; text-transform: uppercase; letter-spacing: .07em; opacity: .65; }
.eimo-contact-name { margin: 2px 0 0; font-size: 1.2em; font-weight: 600; }
.eimo-contact-co { margin: 0 0 10px; opacity: .75; font-size: .93em; }
.eimo-contact-line { display: flex; flex-direction: column; text-decoration: none !important; color: inherit !important; padding: 10px 0; border-bottom: 1px solid var(--eimo-line); font-weight: 600; word-break: break-word; }
.eimo-contact-line span { font-weight: 400; font-size: .8em; opacity: .65; }
.eimo-btn { display: block; text-align: center; margin-top: 16px; padding: 13px 16px; border-radius: 9px; background: var(--eimo-bullet); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.eimo-btn:hover { filter: brightness(1.12); }
.eimo-btn.ghost { background: transparent; color: var(--eimo-bullet) !important; border: 2px solid var(--eimo-bullet); margin-top: 10px; }

/* Vollbild */
.eimo-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(10,10,10,.95); display: flex; flex-direction: column; color: #fff; touch-action: pan-y; }
.eimo-lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; }
.eimo-lb-close { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.eimo-lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 72px; }
.eimo-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.eimo-lb .eimo-gal-nav { background: rgba(255,255,255,.15); color: #fff; box-shadow: none; }
.eimo-lb .eimo-gal-nav:hover { background: rgba(255,255,255,.3); }
.eimo-lb-cap { text-align: center; padding: 12px 16px 18px; min-height: 48px; opacity: .85; }

/* Aufzählungszeichen wie im Exposé */
.b-dot .eimo-list li::before { border-radius: 50%; transform: none; }
.b-square .eimo-list li::before { transform: none; }
.b-dash .eimo-list li::before { height: 2px; width: 10px; transform: none; top: .75em; }
.b-arrow .eimo-list li::before, .b-check .eimo-list li::before { background: none; width: auto; height: auto; transform: none; top: 0; color: var(--eimo-bullet); font-weight: 700; }
.b-arrow .eimo-list li::before { content: '›'; font-size: 1.3em; line-height: 1.1; }
.b-check .eimo-list li::before { content: '✓'; }

/* Tablet */
@media (max-width: 1100px) {
  .eimo-pub-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
  .eimo-sec-grid { grid-template-columns: 1fr; gap: 20px; }
  .has-photos .eimo-list { columns: 2; }
}
/* Handy */
@media (max-width: 820px) {
  .eimo-pub.eimo-wide { width: calc(100vw - 32px); }
  .eimo-pub-list { grid-template-columns: 1fr; gap: 22px; }
  .eimo-gal.has-side .eimo-gal-top { grid-template-columns: 1fr; }
  .eimo-gal-side { display: none; }
  .eimo-gal.has-side .eimo-gal-stage { border-radius: 12px; }
  .eimo-gal-stage { height: 62vw; }
  .eimo-pub-grid { grid-template-columns: 1fr; gap: 8px; }
  .eimo-pub-side { position: static; }
  .eimo-list, .has-photos .eimo-list { columns: 1; }
  .eimo-gal-nav { width: 40px; height: 40px; font-size: 24px; }
  .eimo-lb-stage { padding: 0 8px; }
  .eimo-lb .eimo-gal-nav { display: none; }
  .eimo-sec { padding: 26px 0; }
}
.eimo-contact-person { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.eimo-contact-photo { width: 84px; height: 84px !important; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--eimo-accent); }
.eimo-contact-person p { margin: 0; }
.eimo-status.s-rented { background: #444; }
.eimo-card-type, .eimo-pub-type { font-size: .78em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--eimo-bullet); }
.eimo-pub-type { display: inline-block; margin: 0 12px 12px 0; }
.eimo-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.eimo-filter button { border: 2px solid var(--eimo-bullet); background: transparent; color: var(--eimo-bullet); border-radius: 99px; padding: 6px 18px; font-weight: 600; cursor: pointer; }
.eimo-filter button.on { background: var(--eimo-bullet); color: #fff; }
.eimo-card.is-hidden { display: none; }
