/* === Page background === */
body { background: #f6f7f9; }

/* Wrapper */
.inserat-wrap { max-width: 1140px; margin: 0 auto; padding: 18px 10px; }

/* Card look */
.card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.card-pad{ padding:18px; }
.section-card{ margin-top:18px; }

/* Titles / meta */
.h-title{ font-size:24px; font-weight:800; line-height:1.15; margin:0 0 10px; }
.meta{ color:rgba(0,0,0,.60); font-size:13px; line-height:1.45; }
#zustand, #ort { color: rgba(0,0,0,.78); font-size:14px; line-height:1.55; }

.hr-soft{ border:0; height:1px; background:rgba(0,0,0,.08); margin:14px 0; }

/* Price */
.price-wrap .product-price-new{
  font-size:30px !important;
  font-weight:900 !important;
  letter-spacing:-.4px;
}
.price-wrap .product-price{
  color:rgba(0,0,0,.55);
  margin-left:8px;
}

/* Make old “product” styling less dated */
.product.product-single { background: transparent; }
.product-border{ border:0 !important; }
.product-image-area { border-radius: 12px; }

/* Buttons: modernize BS3 look */
.btn{ border-radius:12px; font-weight:700; padding:10px 14px; }
.btn-sm{ padding:8px 12px; border-radius:10px; }
.btn-primary{
  border:0;
  box-shadow:0 10px 18px rgba(0,0,0,.12);
}
.btn-default{
  border-color:rgba(0,0,0,.16);
  background:#fff;
}

/* Forms */
.form-control{
  border-radius:12px;
  border-color:rgba(0,0,0,.14);
  box-shadow:none;
}
.form-control:focus{
  border-color:rgba(0,0,0,.28);
  box-shadow:0 0 0 4px rgba(0,0,0,.06);
}

/* LightGallery thumbnails as grid */
.thumb-grid{ display:flex; flex-wrap:wrap; gap:10px; }
.thumb-grid a{
  display:block;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
}
.thumb-grid img{ display:block; width:100%; height:auto; }

/* sidebar thumbs: 2 columns on mobile, 1 column on desktop */
.thumb-grid--side a{ width: calc(50% - 5px); }
@media (min-width: 992px){
  .thumb-grid--side a{ width: 100%; }
}

/* Sticky sidebar on desktop (nice for contact button etc.) */
@media (min-width: 992px){
  .sticky-actions{ position: sticky; top: 18px; }
}

/* Reduce huge whitespace from template offsets (optional) */
.offset-top-41{ margin-top: 18px !important; }
.offset-top-34{ margin-top: 16px !important; }
.margintop20{ margin-top: 16px !important; }
.marginbot20{ margin-bottom: 12px !important; }
.marginbot40{ margin-bottom: 18px !important; }

/* “Weitere Inserate” grid cards look nicer */
.product-grid{
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 8px 20px rgba(0,0,0,.05);
  overflow:hidden;
  background:#fff;
}
.product-grid .product-image-area{
  width:100%;
  height:auto;
  display:block;
}

/* 1st image big, rest as thumbs */
.thumb-grid--side a { width: calc(50% - 5px); }
.thumb-grid--side a:first-child { width: 100%; }

@media (min-width: 992px){
  /* desktop: 1 big + 2-column thumbs */
  .thumb-grid--side a { width: calc(50% - 5px); }
  .thumb-grid--side a:first-child { width: 100%; }
}

/* make thumbs look uniform */
.thumb-grid a img{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display:block;
}


.section-card h3{ margin-top: 0; }
.section-card .btn{ width:100%; }
.section-card .btn + .btn{ margin-top: 10px; }

.section-card .btn-primary:hover{ transform: translateY(-1px); }
.section-card .btn-default:hover{ transform: translateY(-1px); }

.sticky-actions.card-pad{ padding:14px; }
.sticky-actions h3{ margin-top:0; margin-bottom:10px; }


/* Einheitlicher Bildrahmen in der Liste */
.product.product-list .product-image-area{
  width: 100%;
  height: 180px;
  object-fit: cover;     /* echte Fotos: schön füllen */
  background: #f3f4f6;
}

/* Placeholder: neutral, contained, mit Padding */
.product.product-list .product-image-area.is-placeholder{
  object-fit: contain;
  padding: 22px;
  background: #111827;
}

@media (min-width: 992px){
  .product.product-list .product-image-area{
    height: 210px;
  }
}


/* Placeholder-Thumb (Blur-Background + Overlay) */
.psc-thumb {
  position: relative;
  width: 100%;
  padding-top: 75%;           /* 4:3 Ratio */
  overflow: hidden;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0,0,0,0.06);
}

.psc-thumb--ph {
  filter: saturate(0.9);
}

/* zusätzlicher Blur via Pseudo-Layer */
.psc-thumb--ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: blur(10px);
  opacity: 0.55;
}

/* dunkler Verlauf oben drüber für Lesbarkeit */
.psc-thumb__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}

.psc-thumb__text {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Damit echte <img> auch “modern” wirken (optional) */
.product-image-area {
  border-radius: 10px;
}
