/* =========================================================================
   Vermarktung – Objekte zum Kauf und zur Miete
   Page-CSS (Präfix .vm-). Läuft innerhalb von <main class="lp"> und erbt
   dessen Tokens aus leistungen.css. Karten-, Filter- und Badge-Muster sind
   an referenzen/referenzen.html angelehnt.
   ========================================================================= */

/* ============================ FILTER-PILLS ============================ */
.vm-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.vm-pill {
  appearance: none; border: 1px solid var(--lp-line); background: #fff;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--lp-navy);
  transition: background .25s, color .25s, border-color .25s;
}
.vm-pill:hover { border-color: var(--lp-navy-2); }
.vm-pill[aria-selected="true"] { background: var(--lp-navy-2); border-color: var(--lp-navy-2); color: #fff; }
.vm-pill__count { opacity: .65; font-weight: 500; margin-left: 4px; }

/* ============================== KARTEN ============================== */
.vm-grid {
  display: grid; gap: 28px; margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.vm-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius); overflow: hidden;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1);
}
.vm-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(15,23,42,.13); }
.vm-card[hidden] { display: none; }

.vm-card__media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 10; background: #eef0f3; border: 0; padding: 0;
  cursor: zoom-in; overflow: hidden;
}
.vm-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.vm-card__media:hover img { transform: scale(1.04); }

/* Platzhalter, solange für ein Objekt noch keine Fotos vorliegen */
.vm-card__media--beispiel { position: relative; display: block; overflow: hidden; }
.vm-card__media--beispiel img { object-position: center 60%; }
.vm-card__beispiel {
  position: absolute; left: 14px; bottom: 14px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(15, 23, 42, .72); color: #fff; backdrop-filter: blur(4px);
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
}
.vm-card__media--leer {
  display: grid; place-content: center; cursor: default;
  background: linear-gradient(145deg, #eef1f5 0%, #e3e7ed 100%);
  color: var(--lp-muted);
}
.vm-card__media--leer .material-symbols-outlined { font-size: 44px; }
.vm-card__media--leer span:last-child { font-size: .84rem; margin-top: 6px; display: block; }

.vm-card__count {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(15,23,42,.72); color: #fff; font-size: .78rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.vm-card__count .material-symbols-outlined { font-size: 15px; }

/* ---- Status-Badge: Verkauf vs. Vermietung farblich getrennt ---- */
.vm-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: #fff;
}
.vm-badge .material-symbols-outlined { font-size: 16px; }
.vm-badge--verkauf   { background: #1E6F50; box-shadow: 0 6px 18px rgba(30, 111, 80, .3); }
.vm-badge--vermietung{ background: #1E4E8C; box-shadow: 0 6px 18px rgba(30, 78, 140, .3); }

.vm-card__body { padding: 22px 24px; flex: 1; }
.vm-card__title { font-size: 1.28rem; font-weight: 700; letter-spacing: -.01em; }
.vm-card__ort {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px; color: var(--lp-muted); font-size: .92rem;
}
.vm-card__ort .material-symbols-outlined { font-size: 17px; }
.vm-card__text { margin-top: 12px; color: var(--lp-muted); font-size: .95rem; line-height: 1.65; }

.vm-card__facts {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--lp-line);
  font-size: .9rem;
}
.vm-card__fact { display: inline-flex; align-items: center; gap: 7px; }
.vm-card__fact .material-symbols-outlined { font-size: 19px; color: var(--lp-muted); }

.vm-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding: 18px 24px 24px; border-top: 1px solid var(--lp-line);
}
.vm-preis { font-weight: 700; color: var(--lp-navy); }
.vm-preis__value { font-size: 1.45rem; letter-spacing: -.02em; }
.vm-preis__unit  { font-size: .88rem; font-weight: 600; color: var(--lp-muted); }
.vm-preis__note  { display: block; font-size: .78rem; font-weight: 500; color: var(--lp-muted); margin-top: 2px; }

.vm-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--lp-navy-2); color: #fff;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--lp-navy-2); cursor: pointer;
  transition: background .25s, color .25s;
}
.vm-btn:hover { background: var(--lp-navy); }
.vm-btn--ghost { background: transparent; color: var(--lp-navy-2); }
.vm-btn--ghost:hover { background: var(--lp-navy-2); color: #fff; }
.vm-btn .material-symbols-outlined { font-size: 17px; }

/* ============================= LEERSTAND ============================= */
.vm-leer {
  grid-column: 1 / -1;
  padding: 44px 28px; text-align: center;
  background: #fff; border: 1px dashed var(--lp-line); border-radius: var(--lp-radius);
  color: var(--lp-muted);
}
.vm-leer .material-symbols-outlined { font-size: 38px; color: var(--lp-line); }
.vm-leer__title { margin-top: 10px; font-weight: 600; color: var(--lp-navy); }
.vm-leer__text  { margin-top: 6px; font-size: .94rem; line-height: 1.6; }

/* ============================== HINWEIS ============================== */
.vm-note {
  margin-top: 30px; padding: 18px 22px;
  background: #fff; border: 1px solid var(--lp-line);
  border-left: 3px solid var(--lp-navy-2); border-radius: 14px;
  font-size: .88rem; line-height: 1.65; color: var(--lp-muted);
}
.vm-note strong { color: var(--lp-navy); font-weight: 600; }

@media (max-width: 720px) {
  .vm-card__foot { flex-direction: column; align-items: flex-start; }
  .vm-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .vm-card, .vm-card__media img { transition: none; }
  .vm-card:hover { transform: none; }
  .vm-card__media:hover img { transform: none; }
}

/* Objektliste endet direkt über dem Vertrauensband – die Schräge bringt den Abstand mit */
.ah-section#objekte { padding-bottom: 40px; }

/* ---- Objektanfrage: Kontextbox im Modal (shared/contact-modal.* + vermarktung.js) ---- */
.vm-anfrage-objekt {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 12px 16px; border-radius: 14px;
  background: #f1f4f9; border: 1px solid #e3e8f0;
}
.vm-anfrage-objekt__icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--mz-navy, #183054); font-size: 22px;
}
.vm-anfrage-objekt__text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vm-anfrage-objekt__label { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6b7280; }
.vm-anfrage-objekt__titel { font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: normal; color: var(--mz-navy-deep, #0F172A); overflow-wrap: anywhere; }
.vm-anfrage-objekt__meta { font-size: .85rem; color: #5f5e5e; overflow-wrap: anywhere; }
.vm-anfrage-objekt__status {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; color: #fff; font-size: .8rem; font-weight: 600;
}
.vm-anfrage-objekt__status .material-symbols-outlined { font-size: 16px; }
.vm-anfrage-objekt--verkauf .vm-anfrage-objekt__status { background: #1E6F50; }      /* = Kartenbadge „Zum Verkauf“ */
.vm-anfrage-objekt--vermietung .vm-anfrage-objekt__status { background: #1E4E8C; }   /* = Kartenbadge „Zur Vermietung“ */
@media (max-width: 560px) {
  .vm-anfrage-objekt { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 8px 12px; }
  .vm-anfrage-objekt__status { grid-column: 2; justify-self: start; }
}
