/* =====================================================================
   PRODUCT DETAIL PAGE — V6 (PD V30 — Wide 4col)
   Scoped under body#item. Loads after style.css → overrides by source order.
   Palette: primary #2E6AAD · text #0D0D0D/#666/#6B7280/#999 · border #E8E8E8
            row-alt #FAFBFC · overlays #000000 80–99%. No border-radius.
   Fonts: Rubik (headings/price/buttons) · IBM Plex Sans (body/tables).
   ===================================================================== */

body#item {
  --pd-blue: #2E6AAD;
  --pd-ink: #0D0D0D;
  --pd-ink2: #666666;
  --pd-ink3: #6B7280;
  --pd-ink4: #999999;
  --pd-line: #E8E8E8;
  --pd-alt: #FAFBFC;
  --pd-gap: 24px;
  --pd-colA: 332px;
  --pd-colB: 688px;
  --pd-colD: 276px;
}

/* ---- container: 1440 outer / 1344 inner ---- */
body#item .container.primary {
  max-width: 1440px;
  padding: 0 48px 32px;
  flex-direction: column;
  align-items: stretch;
}

/* reset the old two-column flex shell */
body#item .data-box {
  display: block;
  align-items: stretch;
}

/* page background → white to match mockup */
body#item { background: #FFFFFF; }

/* breadcrumb row: align to content (1440/48) + bottom divider */
body#item .content { overflow-x: clip; }
body#item #breadcrumbs.container {
  max-width: 1440px;
  padding: 11px 48px;
  margin: 0 auto;
  align-items: center;
  position: relative;
}
/* full-bleed divider under breadcrumb (matches the full-width header divider above) */
body#item #breadcrumbs.container::after {
  content: "";
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100vw; border-bottom: 1px solid var(--pd-line);
  pointer-events: none;   /* decorative divider — never intercept breadcrumb clicks */
  background: none;        /* kill responsive.css #f5f5f5 scroll-fade (wrong on white bg) */
}
/* responsive.css adds left/right grey scroll-fade pseudos meant for the grey body bg;
   the item breadcrumb sits on white, so they read as a haze — disable them here */
body#item #breadcrumbs::before { display: none; }
body#item #breadcrumbs .bread-text {
  flex: 1 1 auto; min-width: 0; padding: 0; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
body#item #breadcrumbs .bread-text .breadcrumb { padding: 0; margin: 0; }
body#item #breadcrumbs .bread-text,
body#item #breadcrumbs .bread-text a,
body#item #breadcrumbs .bread-text span { font-family: "IBM Plex Sans", sans-serif; font-size: 13px; }
body#item #breadcrumbs .bread-text b { font-weight: 600; }
body#item #breadcrumbs .bread-text .home svg { width: 14px; height: 14px; vertical-align: -2px; }
/* Zurück / Weiter → plain text links with chevrons (no boxes) */
body#item #breadcrumbs .navlinks { display: flex; gap: 16px; align-items: center; }
body#item #breadcrumbs .navlinks a {
  border: 0; background: transparent; padding: 0; border-radius: 0; line-height: 1;
  color: var(--pd-ink2); font-family: "IBM Plex Sans", sans-serif; font-size: 13px; font-weight: 400;
  display: inline-flex; align-items: center; gap: 5px;
}
body#item #breadcrumbs .navlinks a:hover { color: var(--pd-blue); background: transparent; text-decoration: none; }
body#item #breadcrumbs .navlinks a i { font-size: 13px; font-weight: 900; }
body#item #breadcrumbs .navlinks a.prev i:before { content: "\f053"; }  /* fa-chevron-left */
body#item #breadcrumbs .navlinks a.next i:before { content: "\f054"; }  /* fa-chevron-right */

/* =====================================================================
   TITLE ROW
   ===================================================================== */
body#item #pd-title {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 16px;
}
body#item #pd-title .pd-title-main { min-width: 0; }
body#item #pd-title h1 {
  font-family: Rubik, sans-serif;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--pd-ink);
  margin: 0;
  padding: 0;
}
/* H1 + collapsible SEO-text toggle */
body#item #pd-title .pd-h1-row { display: flex; align-items: center; gap: 10px; }
body#item #pd-title .pd-seo-toggle {
  flex-shrink: 0; width: 22px; height: 22px; padding: 0; border: 0; background: transparent;
  color: var(--pd-ink4); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
body#item #pd-title .pd-seo-toggle .pd-ico { width: 16px; height: 16px; display: block; transition: transform .2s ease; }
body#item #pd-title .pd-seo-toggle:hover { color: var(--pd-blue); }
body#item #pd-title .pd-seo-toggle.open .pd-ico { transform: rotate(180deg); }
/* collapsible region: grid-rows height animation; full-bleed divider on top */
body#item #pd-seo {
  position: relative;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .22s ease;
}
body#item #pd-seo.open { grid-template-rows: 1fr; }
/* full-bleed line between H1 and the SEO text (matches the breadcrumb divider above) */
body#item #pd-seo::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; border-top: 1px solid var(--pd-line);
  opacity: 0; transition: opacity .22s ease;
}
body#item #pd-seo.open::before { opacity: 1; }
body#item #pd-seo .pd-seo-clip { min-height: 0; overflow: hidden; }
body#item #pd-seo-text {
  padding: 16px 0;
  font-family: "IBM Plex Sans", sans-serif; font-size: 14px; line-height: 1.6; color: var(--pd-ink2);
}
body#item #pd-seo-text p { margin: 0 0 8px; }
body#item #pd-seo-text p:last-child { margin-bottom: 0; }
body#item #pd-title .pd-meta {
  display: flex;
  flex-wrap: wrap;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  color: var(--pd-ink4);
  margin: 8px 0 0;
}
body#item #pd-title .pd-meta span:not(:last-child):after {
  content: "\2022";
  margin: 0 6px;
}
body#item #pd-title .labels { display: flex; flex-wrap: wrap; margin: 10px 0 0; }
body#item #pd-title .labels > span {
  font-size: 12px; font-weight: 600; padding: 4px 8px; line-height: 14px;
  margin: 0 8px 0 0; white-space: nowrap; color: #fff; background: var(--pd-blue);
}
body#item #pd-title .labels > span.premium { background: #e4d51b; color: rgba(0,0,0,.8); }
body#item #pd-title .labels > span.expired,
body#item #pd-title .labels > span.sold { background: #171717; }

body#item #pd-title { position: relative; }
body#item #pd-title .pd-title-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
/* each action = icon + small label */
body#item #pd-title .pd-act,
body#item #pd-title .pd-act.fav a {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--pd-ink2); font-family: "IBM Plex Sans", sans-serif; font-size: 12px; line-height: 1;
  background: transparent; cursor: pointer;
}
body#item #pd-title .pd-act i,
body#item #pd-title .pd-act.fav a i { font-size: 16px; line-height: 1; }
body#item #pd-title .pd-act .pd-ico { width: 16px; height: 16px; display: block; }
body#item #pd-title .pd-act:hover,
body#item #pd-title .pd-act.fav a:hover { color: var(--pd-blue); text-decoration: none; }
body#item #pd-title .pd-act.fav a.fi_saved i,
body#item #pd-title .pd-act.fav a.active i,
body#item #pd-title .pd-act.fav a .fas.fa-heart { color: var(--pd-blue); }
/* vertical separator before Melden */
body#item #pd-title .pd-act-sep { width: 1px; height: 14px; background: #CCCCCC; }
/* report slightly lighter/smaller, like the mockup */
body#item #pd-title .pd-act.melden { color: var(--pd-ink4); font-size: 11px; }
body#item #pd-title .pd-act.melden i { font-size: 14px; }
/* QR popup */
body#item #pd-title .pd-qr-pop {
  position: absolute; right: 0; top: 100%; z-index: 6; background: #fff;
  border: 1px solid var(--pd-line); padding: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
body#item #pd-title .pd-qr-pop .qr-code { float: none; margin: 0; }

/* =====================================================================
   HERO GRID — 332 / 688 / 276
   ===================================================================== */
/* 2-zone layout: content (cols 1-2) + sticky sidebar (col 3) */
body#item #pd-body {
  display: grid;
  grid-template-columns: var(--pd-colA) minmax(0, 1fr) var(--pd-colD);
  column-gap: var(--pd-gap);
  align-items: start;
}
body#item #pd-hero { display: contents; }
body#item .pd-col { min-width: 0; }
body#item #pd-body > * { grid-column: 1 / 3; }            /* content blocks span cols 1-2 */
body#item #pd-buy { grid-column: 1 / 2; grid-row: 1; }
body#item #pd-gallery { grid-column: 2 / 3; grid-row: 1; }
body#item #pd-side {
  grid-column: 3 / 4; grid-row: 1 / 99;
  position: sticky; top: 84px; align-self: start;
  transition: top .25s ease;
}
/* header auto-hides on scroll-down (gets .header-hidden); when it's gone, pull the
   sticky column up to a small gap so there's no dead space above it */
body#item:has(header.header-hidden) #pd-side { top: 16px; }
body#item #pd-specs, body#item #pd-desc, body#item #pd-share, body#item #pd-loc { margin-left: 0; }
body#item #pd-loc { margin-top: 8px; }
body#item #pd-loc .pd-standort { max-width: 420px; }

/* ---- COL A: price + actions + grunddaten ---- */
body#item #pd-buy { display: flex; flex-direction: column; }
body#item #pd-buy .pd-price {
  font-family: Rubik, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pd-ink);
  margin: 0 0 4px;
  text-align: left;
  display: block;
}
body#item #pd-buy .pd-price .vat-rate,
body#item #pd-buy .pd-price .vat-netto { text-align: left; margin-left: 0; padding-left: 0; }
body#item #pd-buy .pd-price .vat-rate,
body#item #pd-buy .pd-price .vat-netto {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
body#item #pd-buy .pd-price .vat-rate { color: var(--pd-blue); margin-top: 4px; }
body#item #pd-buy .pd-price .vat-netto { color: var(--pd-ink4); }
body#item #pd-buy .mo-make-offer-price {
  margin: 8px 0 0; color: var(--pd-ink2); font-size: 14px; font-weight: 600;
  text-decoration: underline; align-self: flex-start;
}
body#item #pd-buy .mo-make-offer-price:hover { text-decoration: none; }

body#item #pd-buy .pd-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 0;
}
body#item #pd-buy .pd-grunddaten { margin-top: 32px; }
body#item #pd-buy .master-button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 14px; width: 100%; box-sizing: border-box;
  font-family: Rubik, sans-serif; font-size: 14px; font-weight: 600;
  background: var(--pd-blue); color: #fff; border: 1px solid var(--pd-blue);
  transition: .15s; box-shadow: none;
}
body#item #pd-buy .master-button:hover { background: #265a93; border-color: #265a93; text-decoration: none; }
body#item #pd-buy .master-button i { font-size: 15px; margin: 0; }
body#item #pd-buy .master-button.secondary,
body#item #pd-buy .master-button.email {
  background: #fff; color: var(--pd-ink); border: 1px solid var(--pd-line); font-weight: 500;
  font-family: "IBM Plex Sans", sans-serif;
}
body#item #pd-buy .master-button.secondary:hover,
body#item #pd-buy .master-button.email:hover { background: var(--pd-alt); border-color: #d7d7d7; }

/* =====================================================================
   GALLERY (cols B+C)
   ===================================================================== */
body#item #pd-gallery #item-image { width: 100%; margin: 0; }
body#item #pd-gallery .swiper-container { overflow: hidden; position: relative; }
body#item #pd-gallery .swiper-container:focus, body#item #pd-gallery .swiper-container:focus-visible { outline: none; }
body#item #pd-gallery .swiper-wrapper li { padding-top: 63.95%; } /* 440/688 */
body#item #pd-gallery .swiper-wrapper li.ratio1to1 { padding-top: 100%; }
body#item #pd-gallery .swiper-wrapper li.ratio16to9 { padding-top: 56.25%; }
body#item #pd-gallery .swiper-wrapper li.ratio2to1 { padding-top: 50%; }
/* white letterbox blends into the page — no dark bar/line on aspect-ratio mismatch */
body#item #pd-gallery #item-image li a img { border-radius: 0; background: #fff; }

/* nav buttons: 36x36 white square + soft shadow, chevron centered (matches recent-ads arrows) */
body#item #pd-gallery .swiper-button {
  top: 50%; margin-top: -18px; height: 36px; width: 36px; padding: 0;
  border-radius: 0; color: var(--pd-ink);
  background: rgba(255,255,255,.7); box-shadow: 0 2px 10px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
}
body#item #pd-gallery .swiper-button.swiper-prev { left: 12px; }
body#item #pd-gallery .swiper-button.swiper-next { right: 12px; left: auto; }
body#item #pd-gallery .swiper-button i {
  width: auto; height: auto; line-height: 1; border-radius: 0;
  background: none; box-shadow: none; font-size: 16px; color: var(--pd-ink);
}
body#item #pd-gallery .swiper-button:not(.swiper-button-disabled):hover { transform: none; color: var(--pd-ink); }
body#item #pd-gallery .swiper-button:not(.swiper-button-disabled):hover i { background: none; }

/* counter (fraction pagination) */
body#item #pd-gallery .swiper-pg {
  right: 12px; bottom: 12px; left: auto; top: auto; width: auto;
  background: rgba(0,0,0,.6); color: #fff; border-radius: 0;
  font-family: "IBM Plex Sans", sans-serif; font-size: 12px; font-weight: 500;
  padding: 5px 10px; line-height: 1.4; text-align: right;
}

/* thumbnails — horizontally scrollable strip; active auto-centers (JS) */
body#item #pd-gallery .swiper-thumbs ul {
  display: flex; flex-direction: row; flex-wrap: nowrap;
  gap: 8px; margin: 8px 0 0; width: 100%;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-behavior: smooth; scrollbar-width: none;
}
body#item #pd-gallery .swiper-thumbs ul::-webkit-scrollbar { display: none; }
body#item #pd-gallery .swiper-thumbs li {
  flex: 0 0 92px; width: 92px; height: 72px; cursor: pointer; position: relative; margin: 0;
}
/* no ring — current photo reads by brightness alone: idle dim, hover mid, active full */
body#item #pd-gallery .swiper-thumbs li img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0;
  opacity: .55; transition: opacity .15s;
}
body#item #pd-gallery .swiper-thumbs li:hover img { opacity: .8; }
body#item #pd-gallery .swiper-thumbs li.active img { opacity: 1; }

/* "Show all (N)" overlay button on the main image → opens the mosaic */
body#item #pd-gallery .pd-show-all {
  position: absolute; z-index: 3; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 0; cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif; font-size: 12px; font-weight: 500;
  padding: 5px 10px; line-height: 1.4;
}
body#item #pd-gallery .pd-show-all i { font-size: 12px; }
body#item #pd-gallery .pd-show-all:hover { background: rgba(0,0,0,.78); }

/* CTA slide — extra "contact" slide after the last photo (mobile.de style).
   Not a real photo: excluded from lightGallery (no direct li>a), the mosaic, and the N/N counter. */
body#item #pd-gallery .pd-cta { position: absolute; inset: 0; overflow: hidden; background: #171717; display: flex; align-items: center; justify-content: center; }
body#item #pd-gallery .pd-cta-bg { position: absolute; inset: -8%; background-size: cover; background-position: center; filter: blur(10px) brightness(.5); }
body#item #pd-gallery .pd-cta-box { position: relative; z-index: 1; text-align: center; max-width: 86%; padding: 16px; }
body#item #pd-gallery .pd-cta-seller { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #fff; text-decoration: none; }
body#item #pd-gallery .pd-cta-seller img { position: static; width: 40px; height: 40px; min-height: 0; max-height: none; max-width: none; object-fit: cover; border: 1px solid rgba(255,255,255,.55); }
body#item #pd-gallery .pd-cta-seller span { font-family: Rubik, sans-serif; font-weight: 600; font-size: 15px; }
body#item #pd-gallery .pd-cta-seller:hover span { text-decoration: underline; }
body#item #pd-gallery .pd-cta-head { font-family: Rubik, sans-serif; font-weight: 700; font-size: 22px; color: #fff; margin: 0 0 8px; line-height: 1.2; }
body#item #pd-gallery .pd-cta-sub { font-family: "IBM Plex Sans", sans-serif; font-size: 14px; color: rgba(255,255,255,.85); margin: 0 0 20px; line-height: 1.5; }
body#item #pd-gallery .pd-cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
body#item #pd-gallery .pd-cta-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border: 0; cursor: pointer; font-family: "IBM Plex Sans", sans-serif; font-size: 14px; font-weight: 600; border-radius: 0; text-decoration: none; }
body#item #pd-gallery .pd-cta-btn.primary { background: var(--pd-blue); color: #fff; }
body#item #pd-gallery .pd-cta-btn.primary:hover { background: #27598f; color: #fff; }
body#item #pd-gallery .pd-cta-btn.secondary { background: #fff; color: var(--pd-ink); }
body#item #pd-gallery .pd-cta-btn.secondary:hover { background: var(--pd-alt); }
@media (max-width: 560px) {
  body#item #pd-gallery .pd-cta-box { max-width: 92%; padding: 10px; }
  body#item #pd-gallery .pd-cta-seller { margin: 0 0 8px; }
  body#item #pd-gallery .pd-cta-head { font-size: 17px; margin: 0 0 5px; }
  body#item #pd-gallery .pd-cta-sub { font-size: 12px; margin: 0 0 12px; }
  body#item #pd-gallery .pd-cta-btn { height: 38px; padding: 0 14px; font-size: 13px; }
}

/* fullscreen "all photos" mosaic (Booking-style); appended to <body> by JS */
.pd-mosaic { position: fixed; inset: 0; z-index: 100000; background: #fff; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pd-mosaic.open { display: block; }
.pd-mosaic-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--pd-line);
}
.pd-mosaic-title { font-family: Rubik, sans-serif; font-size: 15px; font-weight: 600; color: var(--pd-ink); }
.pd-mosaic-close {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 0; background: none; cursor: pointer; color: var(--pd-ink); font-size: 22px; line-height: 1;
}
.pd-mosaic-close:hover { color: var(--pd-blue); }
.pd-mosaic-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense;
  gap: 8px; max-width: 1100px; margin: 0 auto; padding: 20px;
}
.pd-mosaic-tile { position: relative; cursor: pointer; overflow: hidden; background: #f3f3f3; }
.pd-mosaic-tile.big  { grid-column: span 2; grid-row: span 2; }
.pd-mosaic-tile.wide { grid-column: span 2; }
.pd-mosaic-tile.tall { grid-row: span 2; }
.pd-mosaic-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.pd-mosaic-tile:hover img { transform: scale(1.04); }
@media (max-width: 860px) {
  .pd-mosaic-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .pd-mosaic-tile.tall { grid-row: span 1; }
}
@media (max-width: 520px) {
  .pd-mosaic-grid { gap: 6px; }
  .pd-mosaic-tile.big, .pd-mosaic-tile.wide { grid-column: span 2; }
  .pd-mosaic-tile.big { grid-row: span 2; }
}

/* mobile floating links on image */
body#item #pd-gallery .mlink {
  position: absolute; z-index: 2; left: 8px; top: 8px; width: 36px; height: 36px;
  background: rgba(0,0,0,.82); color: #f9f9f9; text-align: center; padding: 8px; border-radius: 0;
}
body#item #pd-gallery .mlink.share { right: 8px; left: auto; }
/* favorite heart overlay on the photo (icon-only) */
body#item #pd-gallery .mlink.fav { right: 52px; left: auto; padding: 0; }
body#item #pd-gallery .mlink.fav a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #f9f9f9; }
body#item #pd-gallery .mlink.fav a:hover { text-decoration: none; }
body#item #pd-gallery .mlink.fav i { font-size: 16px; }
body#item #pd-gallery .mlink.fav span { display: none; }
body#item #pd-gallery .mlink.fav a.fi_saved i,
body#item #pd-gallery .mlink.fav a.active i,
body#item #pd-gallery .mlink.fav .fas.fa-heart { color: #ff5a5f; }

/* =====================================================================
   COL D: seller / ad / safety
   ===================================================================== */
body#item #pd-side { display: flex; flex-direction: column; }
body#item #pd-side > .box {
  background: #fff; border: 1px solid var(--pd-line); border-radius: 0;
  padding: 16px; margin: 0 0 16px;
}
body#item #pd-side .seller-button,
body#item #pd-side .manage-button {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; width: 100%; box-sizing: border-box; margin: 0 0 8px;
  border: 1px solid var(--pd-line); border-radius: 0; background: #fff;
  font-family: "IBM Plex Sans", sans-serif; font-size: 13px; font-weight: 500;
  color: var(--pd-ink); transition: .15s;
}
body#item #pd-side .seller-button:hover { background: var(--pd-alt); border-color: #d7d7d7; text-decoration: none; }
body#item #pd-side .manage-button { background: #404040; color: #fff; border-color: #404040; }
body#item #pd-side .manage-button:hover { background: #202020; color: #fff; }
body#item #pd-side .manage-delimit { height: 1px; background: var(--pd-line); margin: 0 0 16px; }

/* seller card — match mockup company card */
body#item #pd-side #seller .line1 { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; }
body#item #pd-side #seller .line1 .img { width: 56px; height: 56px; min-width: 56px; margin: 0; position: relative; }
body#item #pd-side #seller .line1 .img img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; border: 1px solid var(--pd-line); }
body#item #pd-side #seller .line1 .img .online { display: none; }
body#item #pd-side #seller .line1 .data { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; min-width: 0; }
body#item #pd-side #seller .name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body#item #pd-side #seller .name-row .name { font-family: Rubik, sans-serif; font-weight: 600; font-size: 15px; color: var(--pd-ink); }
body#item #pd-side #seller .name-row .pro { padding: 1px 6px; background: var(--pd-blue); color: #fff; font-size: 10px; font-weight: 600; line-height: 1.5; text-transform: uppercase; }
body#item #pd-side #seller .items { color: var(--pd-ink2); font-size: 12px; margin-top: 2px; }
body#item #pd-side #seller .online-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pd-ink4); margin-top: 4px; }
body#item #pd-side #seller .online-status:before { content: ""; width: 8px; height: 8px; border-radius: 100px; background: #c0c0c0; }
body#item #pd-side #seller .online-status.on { color: #1a9c3e; }
body#item #pd-side #seller .online-status.on:before { background: #0ed000; }
body#item #pd-side #seller .line2 { display: none; }
body#item #pd-side #seller .line3 .address { margin: 8px 0 0; font-size: 12px; color: var(--pd-ink2); line-height: 1.4; }
body#item #pd-side #seller .line3 .address .addr-flag { width: 20px; height: 14px; object-fit: cover; border: 1px solid var(--pd-line); vertical-align: -2px; margin-right: 4px; }

/* manager cards (#seller-contacts) — match mockup Manager Section.
   Base .bpr-ic-* live in business_profile/css/user.css (UNLAYERED, shared with the
   public profile + contact popup). These overrides live here in product-v6.css —
   also unlayered — so ID specificity beats the plugin base without !important.
   (style.css can't override them: its @layer theme always loses to unlayered CSS.) */
#seller-contacts .bpr-ic-card { background: none; border: none; border-radius: 0; padding: 0; margin: 0; }
#seller-contacts .bpr-ic-card + .bpr-ic-card { border-top: 1px solid var(--pd-line); padding-top: 12px; margin-top: 12px; }
#seller-contacts .bpr-ic-head { gap: 12px; margin: 0 0 12px; align-items: center; }
#seller-contacts .bpr-ic-avatar,
#seller-contacts .bpr-ic-avatar-placeholder { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 0; box-sizing: border-box; }
#seller-contacts .bpr-ic-avatar img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; border: 1px solid var(--pd-line); box-sizing: border-box; }
#seller-contacts .bpr-ic-avatar-placeholder { background: var(--pd-alt); border: 1px solid var(--pd-line); color: var(--pd-ink4); font-size: 22px; }
#seller-contacts .bpr-ic-info { gap: 2px; }
#seller-contacts .bpr-ic-name { font-family: Rubik, sans-serif; font-size: 14px; font-weight: 700; color: var(--pd-ink); }
#seller-contacts .bpr-ic-title { font-family: "IBM Plex Sans", sans-serif; font-size: 12px; font-weight: 400; color: var(--pd-ink4); white-space: normal; }
#seller-contacts .bpr-ic-spec { font-family: "IBM Plex Sans", sans-serif; font-size: 12px; color: var(--pd-ink2); margin: 0 0 4px; line-height: 1.4; }
#seller-contacts .bpr-ic-langs { font-family: "IBM Plex Sans", sans-serif; font-size: 12px; color: var(--pd-ink2); margin: 0 0 12px; line-height: 1.4; }
#seller-contacts .bpr-ic-spec-label,
#seller-contacts .bpr-ic-langs-label { color: var(--pd-ink2); font-weight: 400; }
#seller-contacts .bpr-ic-phone-row { gap: 8px; margin: 0 0 8px; flex-wrap: wrap; }
#seller-contacts .bpr-ic-phone { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; height: 36px; gap: 6px; padding: 0 10px; border-radius: 0; background: var(--pd-blue); color: #fff; font-family: "IBM Plex Sans", sans-serif; font-size: 13px; font-weight: 600; }
#seller-contacts .bpr-ic-phone:hover { background: #27598f; color: #fff; }
#seller-contacts .bpr-ic-phone i { font-size: 13px; }
#seller-contacts .bpr-ic-phone span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#seller-contacts .bpr-ic-messengers { gap: 8px; flex-wrap: wrap; }
/* ≤2 messengers share the phone's row (mockup); 3+ → phone takes a full row, squares wrap below */
#seller-contacts .bpr-ic-phone-row:has(.bpr-ic-messengers > .bpr-ic-msg:nth-child(3)) .bpr-ic-phone { flex-basis: 100%; }
#seller-contacts .bpr-ic-msg { width: 36px; height: 36px; flex: 0 0 36px; display: flex; align-items: center; justify-content: center; background: currentColor; border-radius: 0; font-size: 18px; }
#seller-contacts .bpr-ic-msg i { color: #fff; }
#seller-contacts .bpr-ic-social { gap: 8px; margin: 0; }
#seller-contacts .bpr-ic-extra { display: none; }
#seller-contacts .bpr-ic-show-more { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 12px 0 0; font-family: "IBM Plex Sans", sans-serif; font-size: 13px; font-weight: 500; color: var(--pd-blue); cursor: pointer; user-select: none; }
#seller-contacts .bpr-ic-show-more i { font-size: 11px; }
#seller-contacts .bpr-ic-show-more:hover { color: #27598f; }

/* safety */
body#item #pd-side #protection h2 { font-family: Rubik, sans-serif; font-size: 16px; font-weight: 700; color: var(--pd-ink); margin: 0 0 12px; }
body#item #pd-side #protection .point { display: flex; gap: 8px; margin: 0 0 8px; align-items: flex-start; }
body#item #pd-side #protection .point .icon { color: #F59E0B; font-size: 16px; line-height: 1.4; flex-shrink: 0; }
body#item #pd-side #protection .point span { font-family: "IBM Plex Sans", sans-serif; font-size: 13px; color: var(--pd-ink2); line-height: 1.4; }

/* =====================================================================
   UNIFIED TABLE STYLE (Grunddaten + spec sections) — used from phase 2/3
   ===================================================================== */
body#item .pd-table-block { display: flex; flex-direction: column; gap: 12px; }
body#item .pd-table-title { font-family: Rubik, sans-serif; font-size: 14px; font-weight: 600; color: var(--pd-ink); }
body#item .pd-table { border: 1px solid var(--pd-line); overflow: hidden; background: #fff; }
body#item .pd-table .pd-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
body#item .pd-table .pd-row:nth-child(odd) { background: var(--pd-alt); }
body#item .pd-table .pd-row .pd-k { font-family: "IBM Plex Sans", sans-serif; font-size: 13px; color: var(--pd-ink3); }
body#item .pd-table .pd-row .pd-v { font-family: "IBM Plex Sans", sans-serif; font-size: 13px; font-weight: 500; color: var(--pd-ink); text-align: right; }
/* boolean "feature" rows — single checkmark item instead of a duplicated key|value */
body#item .pd-table .pd-feature { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
body#item .pd-table .pd-feature:nth-child(odd) { background: var(--pd-alt); }
body#item .pd-table .pd-feature .pd-feat-ico { width: 16px; height: 16px; flex-shrink: 0; color: var(--pd-blue); }
body#item .pd-table .pd-feature span { font-family: "IBM Plex Sans", sans-serif; font-size: 13px; color: var(--pd-ink); line-height: 1.4; }

/* =====================================================================
   SPECS (CAP) — phase-1 fallback styling of hook output
   ===================================================================== */
body#item #pd-specs { margin: 32px 0 0; }
body#item #pd-specs .pd-specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: start; max-width: 1044px;
}
body#item #pd-specs .pd-specs-col { display: flex; flex-direction: column; gap: 24px; }
/* Standort now lives in its own #pd-loc block at the page end (see below) */
body#item #pd-loc .pd-standort .pd-standort-card { border: 1px solid var(--pd-line); padding: 16px; background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), #fff url(../images/standort-map-bg.webp) center / cover no-repeat; }
body#item #pd-loc .pd-standort-addr { font-family: "IBM Plex Sans", sans-serif; font-size: 13px; font-weight: 500; color: var(--pd-ink); line-height: 1.4; }
body#item #pd-loc .pd-standort-link { display: inline-block; margin-top: 8px; color: var(--pd-blue); font-weight: 500; font-size: 13px; }
body#item #pd-loc .pd-standort-link:hover { text-decoration: none; }
body#item #pd-specs .props.style { padding: 24px 0 0; border: 0; margin: 24px 0 0; }
body#item #pd-specs .props.style h2 { font-family: Rubik, sans-serif; font-size: 16px; font-weight: 600; color: var(--pd-ink); margin: 0 0 12px; }
body#item #pd-specs #item-hook:empty { display: none; }
body#item #pd-specs #item-hook { margin: 24px 0 0; }

/* =====================================================================
   DESCRIPTION
   ===================================================================== */
body#item #pd-desc { margin: 32px 0 0; max-width: 1044px; }
body#item #pd-desc .description { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; }
body#item #pd-desc .description h2 { font-family: Rubik, sans-serif; font-size: 14px; font-weight: 600; color: var(--pd-ink); margin: 0 0 12px; }
body#item #pd-desc .description .text { font-family: "IBM Plex Sans", sans-serif; font-size: 14px; line-height: 1.6; color: var(--pd-ink2); width: 100%; }
body#item #pd-desc .description .text.hidden { display: none; }
body#item #pd-desc .description .text.visible .desc-text-raw { white-space: pre-line; }
body#item #pd-desc .description .read-more-desc { display: inline-block; font-weight: 600; margin-top: 12px; color: var(--pd-blue); }
body#item #pd-desc .description .desc-parts { display: flex; flex-direction: row; align-items: flex-start; }
body#item #pd-desc .description .desc-text { width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
body#item #pd-desc .location { margin: 20px 0 0; }
body#item #pd-desc .location h2 { font-family: Rubik, sans-serif; font-size: 14px; font-weight: 600; color: var(--pd-ink); margin: 0 0 6px; }
body#item #pd-desc .location .address { font-family: "IBM Plex Sans", sans-serif; font-size: 13px; color: var(--pd-ink); line-height: 1.4; }
body#item #pd-desc .location .directions { display: inline-block; margin-top: 8px; color: var(--pd-blue); font-weight: 500; font-size: 13px; }

/* =====================================================================
   SHARE ROW
   ===================================================================== */
body#item #pd-share { margin: 32px 0 0; }
body#item #pd-share #shortcuts {
  display: flex; flex-direction: row; align-items: center; gap: 16px;
  border-top: 1px solid var(--pd-line); margin: 0; padding: 20px 0 0;
  font-family: "IBM Plex Sans", sans-serif; font-size: 13px;
}
body#item #pd-share #shortcuts a { color: var(--pd-ink2); margin: 0; }
body#item #pd-share #shortcuts a:hover { color: var(--pd-blue); text-decoration: none; }
body#item #pd-share #shortcuts .item-share { display: flex; gap: 16px; }
body#item #pd-share #shortcuts .item-share a i { font-size: 15px; }
body#item #pd-share #shortcuts .report-inline { margin-left: auto; color: var(--pd-ink4); }
body#item #pd-share #shortcuts .report-inline i { margin-right: 4px; }

/* bottom SEO text (#sep-stext, rendered by seo_pro on the item_bottom hook).
   It lands in .content OUTSIDE the V6 container. Width is constrained two ways so it
   renders correctly WITH or WITHOUT the JS: (a) the JS wrapper .pd-seo-bottom, and
   (b) a self-constraint fallback for when #sep-stext is still a direct child of
   .content (cache / HTML-CSS version skew where the wrap JS didn't run). Clamp + fade
   are applied ONLY by JS (.is-clamped) — so without JS the full text shows, never the
   broken edge-stuck/faded state. */
body#item .pd-seo-bottom { max-width: 1440px; margin: 0 auto 40px; padding: 0 48px; box-sizing: border-box; }
body#item .content > #sep-stext { max-width: 1440px; margin: 40px auto 40px; padding: 24px 48px 0; box-sizing: border-box; }
body#item #sep-stext {
  position: relative; margin: 40px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--pd-line);
  font-family: "IBM Plex Sans", sans-serif; color: var(--pd-ink2);
}
body#item #sep-stext.is-clamped { max-height: 200px; overflow: hidden; transition: max-height .35s ease; }
body#item #sep-stext.is-clamped.expanded { max-height: 5000px; }
body#item #sep-stext::before { content: ""; display: block; width: 40px; height: 2px; background: var(--pd-blue); margin: 0 0 16px; }
body#item #sep-stext h2 { font-family: Rubik, sans-serif; font-size: 20px; font-weight: 700; color: var(--pd-ink); margin: 0 0 12px; line-height: 1.3; }
body#item #sep-stext h3 { font-family: Rubik, sans-serif; font-size: 16px; font-weight: 600; color: var(--pd-ink); margin: 20px 0 8px; line-height: 1.3; }
body#item #sep-stext h2:first-child, body#item #sep-stext h3:first-child { margin-top: 0; }
body#item #sep-stext p { font-size: 14px; line-height: 1.6; color: var(--pd-ink2); margin: 0 0 12px; }
body#item #sep-stext a { color: var(--pd-blue); text-decoration: none; }
body#item #sep-stext a:hover { text-decoration: underline; }
body#item #sep-stext.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%); pointer-events: none; transition: opacity .25s ease; }
body#item #sep-stext.is-clamped.expanded::after { opacity: 0; }
body#item .sep-expand-btn { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 8px 20px; background: #fff; border: 1px solid var(--pd-ink); border-radius: 0; font-family: "IBM Plex Sans", sans-serif; font-size: 13px; font-weight: 500; color: var(--pd-ink); cursor: pointer; line-height: 1; }
body#item .sep-expand-btn svg { width: 12px; height: 12px; transition: transform .2s ease; }
body#item .sep-expand-btn.expanded svg { transform: rotate(180deg); }
body#item .sep-expand-btn:hover { background: var(--pd-ink); color: #fff; }
body#item .sep-expand-btn:hover svg { fill: #fff; }

/* scroll-aware mobile contact bar — desktop hidden; the phone rules live in the 767 block */
#pd-stickybar { display: none; }

/* =====================================================================
   COMMENTS / RELATED / RECENT — keep below, light spacing
   ===================================================================== */
body#item #comments { margin: 32px 0 0; }
body#item #comments h2 { font-family: Rubik, sans-serif; font-size: 18px; font-weight: 600; color: var(--pd-ink); margin: 0 0 12px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media screen and (max-width: 1080px) {
  body#item .container.primary { padding: 0 24px 32px; }
  body#item #pd-breadcrumb-fix { padding: 0 24px; }
  body#item #pd-body { grid-template-columns: 1fr 1fr; }
  body#item #pd-body > * { grid-column: 1 / -1; }
  body#item #pd-buy { grid-column: 1; grid-row: 1; }
  body#item #pd-gallery { grid-column: 2; grid-row: 1; }
  body#item #pd-side { grid-column: 1 / -1; grid-row: auto; position: static; }
  body#item #pd-specs .pd-specs-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
}
@media screen and (max-width: 767px) {
  body#item .container.primary { padding: 0 12px 24px; }
  body#item #pd-title { flex-direction: column; padding: 16px 0 12px; }
  /* stack everything full-width: align-items:start (base grid rule) otherwise shrinks
     children to their content width, collapsing #pd-specs to ~162px */
  body#item #pd-body { display: flex; flex-direction: column; align-items: stretch; }
  /* mobile reading order: photos → price/CTA/Grunddaten → specs → description → seller → share */
  body#item #pd-gallery { order: 1; }
  body#item #pd-buy     { order: 2; }
  body#item #pd-specs   { order: 3; }
  body#item #pd-desc    { order: 4; max-width: none; }
  body#item #pd-side    { order: 5; }
  body#item #pd-share   { order: 6; }
  body#item #pd-loc     { order: 7; margin-top: 0; }
  body#item #pd-loc .pd-standort { max-width: none; }
  body#item #pd-specs .pd-specs-grid { grid-template-columns: 1fr; }
  /* bottom SEO text: drop the desktop 48px side padding on phones */
  body#item .pd-seo-bottom, body#item .content > #sep-stext { padding-left: 12px; padding-right: 12px; }
  /* top action row is redundant on phones: favorite lives on the photo, report sits
     in the bottom share row — so hide the whole strip under H1 */
  body#item #pd-title .pd-title-actions { display: none; }
  /* breadcrumb row: stack, align to content (12px), drop prev/next, and hide the
     trailing item-title crumb (it's the H1 right below) so it can't overflow/fade */
  body#item #breadcrumbs.container { flex-direction: column; align-items: stretch; gap: 4px; padding-left: 12px; padding-right: 12px; }
  body#item #breadcrumbs .navlinks { display: none; }
  body#item #breadcrumbs .breadcrumb li.last-child { display: none; }
  body#item #breadcrumbs .bread-text { white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  body#item #breadcrumbs .bread-text::-webkit-scrollbar { display: none; }

  /* scroll-aware contact bar (Kleinanzeigen pattern): slides up above the 48px nav
     only once the inline Call/Message buttons have scrolled out of view (JS toggles .show) */
  #pd-stickybar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 48px; z-index: 6;
    padding: 8px 12px; background: #fff;
    border-top: 1px solid var(--pd-line); box-shadow: 0 -4px 16px rgba(0,0,0,.12);
    transform: translateY(calc(100% + 48px)); transition: transform .25s ease;
    pointer-events: none;
  }
  #pd-stickybar.show { transform: translateY(0); pointer-events: auto; }
  #pd-stickybar .pd-sb-price { font-family: Rubik, sans-serif; font-weight: 700; font-size: 16px; color: var(--pd-ink); white-space: nowrap; line-height: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  #pd-stickybar .pd-sb-actions { margin-left: auto; display: flex; gap: 8px; flex: 0 0 auto; }
  #pd-stickybar .sticky-button {
    position: static; bottom: auto; left: auto; right: auto; top: auto; margin: 0; max-width: none;
    height: 42px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 16px; border-radius: 0; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; box-shadow: none;
  }
  #pd-stickybar .sticky-button i { float: none; margin: 0 6px 0 0; font-size: 14px; }
  #pd-stickybar .sticky-button.phone { background: var(--pd-blue); color: #fff; border: 0; }
  #pd-stickybar .sticky-button.contact { background: #fff; color: var(--pd-ink); border: 1px solid var(--pd-line); }
  #pd-stickybar .sticky-button.disabled { background: #d0d0d0; color: #999; }
  /* secondary (message) button is icon-only in the bar so the price + Anrufen always fit */
  #pd-stickybar .sticky-button.contact span { display: none; }
  #pd-stickybar .sticky-button.contact i { margin: 0; font-size: 16px; }
  #pd-stickybar .sticky-button.contact { padding: 0 14px; }
}
