/* ===========================================================================
   ASALEA – Objekttexte und 360-Grad-Rundgang
   Wird NACH immobilien.css geladen und korrigiert die Textdarstellung.
   Ablage: css/immobilien-text.css
   =========================================================================== */

/* ---------- Objektbeschreibung ---------- */
.im-text {
  white-space: normal;               /* ersetzt das alte pre-line */
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.8;
}
.im-text > :first-child { margin-top: 0; }
.im-text > :last-child { margin-bottom: 0; }
.im-text p { margin: 0 0 1.25em; }
.im-text br { line-height: 1.8; }

.im-text strong,
.im-text b {
  font-weight: 700;
  color: var(--navy);
}
.im-text em, .im-text i { font-style: italic; }
.im-text u { text-decoration: underline; text-underline-offset: 2px; }

.im-text h2,
.im-text h3,
.im-text h4 {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--navy);
  margin: 1.9em 0 0.6em;
  line-height: 1.4;
}

.im-text ul,
.im-text ol {
  margin: 0 0 1.25em;
  padding-left: 1.3em;
}
.im-text ul { list-style: none; padding-left: 0; }
.im-text ul li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.45em;
}
.im-text ul li::before {
  content: '';
  position: absolute;
  left: 0.25em;
  top: 0.75em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-dark);
}
.im-text ol li { margin-bottom: 0.45em; }

.im-text a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.im-text a:hover { color: var(--navy); }

/* ---------- Lagebeschreibung ---------- */
.im-loc-text { white-space: normal; }
.im-loc-text > :first-child { margin-top: 0; }
.im-loc-text > :last-child { margin-bottom: 0; }
.im-loc-text p { margin: 0 0 1em; }
.im-loc-text strong, .im-loc-text b { font-weight: 700; color: var(--navy); }
.im-loc-text ul { list-style: none; margin: 0 0 1em; padding: 0; }
.im-loc-text ul li { position: relative; padding-left: 1.3em; margin-bottom: 0.4em; }
.im-loc-text ul li::before {
  content: '';
  position: absolute;
  left: 0.2em;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-dark);
}

/* ---------- 360-Grad-Rundgang / Video ---------- */
.im-tour {
  margin-top: 56px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.im-tour + .im-tour { margin-top: 24px; }
.im-tour-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
}
.im-tour-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.im-tour-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.im-tour-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.im-tour-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-dark);
  white-space: nowrap;
}
.im-tour-link::after { content: ' \2197'; }
.im-tour-link:hover { color: var(--navy); }

/* Hinweis-Kachel in der Galerie, wenn ein Rundgang vorhanden ist */
.im-tour-jump {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 27, 42, 0.78);
  backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 22px;
  transition: background 0.2s ease, color 0.2s ease;
}
.im-tour-jump:hover { background: var(--gold); color: var(--navy); }
.im-tour-jump svg { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .im-tour { padding: 20px; margin-top: 44px; border-radius: 14px; }
  .im-tour-frame { aspect-ratio: 4 / 3; border-radius: 10px; }
  .im-tour-jump { bottom: 12px; left: 12px; font-size: 0.75rem; padding: 8px 13px; }
}

/* ---------------------------------------------------------------------------
   Immobilienberater – Karte direkt unter der Preisbox, auf dem Desktop
   zusammen mit ihr mitlaufend fixiert, am Handy direkt darunter.
   --------------------------------------------------------------------------- */
.im-advisor {
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
  box-shadow: 0 4px 22px rgba(13, 27, 42, 0.08);
}
.im-advisor-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.im-advisor-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.im-advisor-photo,
.im-advisor-ph {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--gold);
  box-shadow: 0 3px 14px rgba(13, 27, 42, 0.16);
}
.im-advisor-photo {
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.im-advisor-ph {
  background: var(--cream);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2.1rem;
}
.im-advisor-who { min-width: 0; }
.im-advisor-name {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}
.im-advisor-role {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 5px;
}
.im-advisor-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 15px 16px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 8px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.im-advisor-call:hover {
  background: var(--navy);
  color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 27, 42, 0.18);
}
.im-advisor-call svg { width: 19px; height: 19px; flex-shrink: 0; }

@media (max-width: 1000px) {
  /* Sidebar steht hier ueber dem Text: Preisbox, dann Berater, dann Beschreibung */
  .im-advisor { margin-top: 16px; }
}

@media (max-width: 760px) {
  .im-advisor { padding: 20px 20px 22px; border-radius: 14px; }
  .im-advisor-label { font-size: 0.66rem; margin-bottom: 14px; }
  .im-advisor-top { gap: 14px; }
  .im-advisor-photo,
  .im-advisor-ph { width: 82px; height: 82px; }
  .im-advisor-ph { font-size: 1.8rem; }
  .im-advisor-name { font-size: 1.05rem; }
  .im-advisor-role { font-size: 0.8rem; }
  .im-advisor-call { margin-top: 16px; padding: 16px; font-size: 1.05rem; }
}

@media (max-width: 360px) {
  .im-advisor-call { font-size: 0.95rem; gap: 8px; }
}

/* Objektseite ohne Brotkrumenleiste: der Abstand nach oben kam bisher von der
   Leiste, deshalb bekommt die Galerie ihn jetzt selbst. */
.im-detail .im-gallery { margin-top: 58px; }

@media (max-width: 760px) {
  .im-detail .im-gallery { margin-top: 30px; }
}
