/*
 * Premium-Platz (Startseite) und Angebot nach dem Veröffentlichen – Runde 11, inc/premium.php.
 * Nur Tokens. Marine auf boatmarket24, Petrol auf catamarket.
 */
.bm24-ps, .bm24-po { --ps-acc: var(--lake); --ps-on: var(--on-lake); }
body.bm24-site-cm .bm24-ps, body.bm24-site-cm .bm24-po { --ps-acc: var(--accent-cat); --ps-on: var(--on-accent-cat); }

/* Karte */
.bm24-pc { flex: none; width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; scroll-snap-align: start; }
.bm24-pc a { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.bm24-pc-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-sunken); }
.bm24-pc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bm24-pc-pill { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--ps-acc); color: var(--ps-on); font: var(--weight-semibold) 12.5px/1 var(--font-sans); }
.bm24-pc-pill svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.bm24-pc-body { display: flex; flex-direction: column; padding: 18px 20px 20px; min-width: 0; }
.bm24-pc-t { font: var(--weight-semibold) 21px/1.25 var(--font-display); letter-spacing: -0.01em; }
.bm24-pc-tag { margin-top: 2px; font-size: 15px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm24-pc-price { margin-top: 10px; font: var(--weight-semibold) 19px/1.2 var(--font-sans); font-variant-numeric: tabular-nums; }
.bm24-pc-meta { margin-top: 4px; font-size: 13.5px; line-height: 20px; color: var(--ink-muted); }
@media (hover: hover) { .bm24-pc a:hover .bm24-pc-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; } }
.bm24-pc a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Platz */
.bm24-ps { min-width: 0; }
.bm24-ps-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font: var(--weight-semibold) 14px/20px var(--font-sans); color: var(--ink-muted); }
.bm24-ps-head a { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.bm24-ps-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.bm24-ps-track::-webkit-scrollbar { display: none; }
.bm24-ps-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.bm24-ps-dots { display: flex; gap: 5px; align-items: center; }
.bm24-ps-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .2s; }
.bm24-ps-dots i.is-on { width: 18px; background: var(--ink); }
.bm24-ps-nav { display: flex; gap: 8px; }
.bm24-ps-nav button { width: 40px; height: 40px; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bm24-ps-nav button:hover { border-color: var(--ink); }
.bm24-ps-nav button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bm24-ps-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Eigene Werbung, solange es keine Premium-Inserate gibt */
.bm24-ps-ad { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-sunken); }
.bm24-ps-adtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.bm24-ps-adtop span { font: var(--weight-semibold) 14px/20px var(--font-sans); color: var(--ink-muted); }
.bm24-home .bm24-ps-adtop h2, .bm24-ps-adtop h2 { margin: 4px 0 0; font: var(--weight-semibold) 26px/1.15 var(--font-display); letter-spacing: -0.02em; }
.bm24-ps-adtop svg { flex: none; width: 72px; height: auto; fill: none; stroke: var(--ps-acc); stroke-width: 1.6; }
.bm24-ps-ad p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.bm24-ps-adfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.bm24-ps-adfoot span { font-size: 14.5px; line-height: 20px; color: var(--ink-muted); }
.bm24-ps-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: var(--radius-md); background: var(--ps-acc); color: var(--ps-on) !important; font: var(--weight-semibold) 16px/20px var(--font-sans); text-decoration: none !important; white-space: nowrap; }
.bm24-ps-btn:hover { background: var(--ink); }
.bm24-ps-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Startseite: Platz rechts neben dem Titel, über der Suche (Telefon: Streifen unter der Suche) */
.bm24-home .bm24-h-head .bm24-ps { flex: 0 1 460px; }
@media (max-width: 1023px) and (min-width: 768px) { .bm24-home .bm24-h-head .bm24-ps { flex-basis: 100%; max-width: 520px; } }
@media (max-width: 767px) {
  .bm24-home .bm24-h-head { display: contents; }
  .bm24-home .bm24-h-claim { order: 0; flex: none; margin-bottom: 8px; } /* sonst wird flex-basis 560px in der Spalte zur Höhe */
  .bm24-home .bm24-h-search { order: 1; }
  .bm24-home .bm24-h-morelink { order: 2; }
  .bm24-home .bm24-h-head .bm24-ps { order: 3; flex: none; margin-top: 16px; }
  .bm24-ps-head { color: var(--ink); font-size: 15px; }
  .bm24-ps-track { margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-right: max(16px, env(safe-area-inset-right, 0px)); scroll-padding-left: 0; }
  .bm24-ps.is-many .bm24-pc { width: 82%; }
  .bm24-pc-img { aspect-ratio: 3 / 2; }
  .bm24-pc-body { padding: 14px 16px 16px; }
  .bm24-pc-t { font-size: 18px; }
  .bm24-pc-price { font-size: 18px; }
  .bm24-ps-foot { justify-content: center; }
  .bm24-ps-nav { display: none; }
  .bm24-ps-ad { padding: 20px; }
  .bm24-ps-adtop h2, .bm24-home .bm24-ps-adtop h2 { font-size: 22px; }
  .bm24-ps-adtop svg { width: 56px; }
}

/* Angebot auf der Abschluss-Seite */
.bm24-po { margin-top: var(--space-6); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); }
.bm24-po-txt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bm24-po-kick { font: var(--weight-semibold) 14px/20px var(--font-sans); color: var(--ink-muted); }
.bm24-po h2 { margin: 0; font: var(--weight-semibold) 28px/1.15 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
.bm24-po p { margin: 0; font-size: 16px; line-height: 1.55; }
.bm24-po-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.bm24-po-alt { font: var(--weight-semibold) 15.5px/20px var(--font-sans); color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.bm24-po-card { min-width: 0; pointer-events: none; }
.bm24-po-card .bm24-pc-img { aspect-ratio: 3 / 2; }
.bm24-po-card .bm24-pc-body { padding: 14px 16px 16px; }
.bm24-po-card .bm24-pc-t, .bm24-po-card .bm24-pc-price { font-size: 18px; }
@media (max-width: 900px) {
  .bm24-po { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .bm24-po-card { max-width: 340px; }
  .bm24-po h2 { font-size: 24px; }
  .bm24-po .bm24-ps-btn { width: 100%; }
}
