/* =========================================================
   Product page – aligned with news.php
   ========================================================= */

/* wrapper identisch zu news.php */
.product-wrap{
  max-width: 820px;
  margin: 0 auto;
}

/* back link */
.product-back{
  display:inline-block;
  margin-bottom:16px;
  opacity:.75;
}
.product-back:hover{ opacity:1; }

/* title = gleiche Skalierung wie .news-title */
.product-title{
  font-size: clamp(24px, 4vw, 36px);
  line-height:1.15;
  margin:0 0 6px;
}

/* title link */
.product-title-link{
  color: inherit;
  text-decoration: none;
}
.product-title-link:hover{
  color: var(--brand);
}
.product-title-link i{
  font-size:.65em;
  opacity:.85;
  margin-left:.35em;
}

/* meta identisch zu .news-meta */
.product-meta{
  font-size:13px;
  color: var(--muted);
  margin-bottom:12px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* small tagline under meta */
.product-tagline{
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255,255,255,.62);
  line-height: 1.5;
  max-width: 80ch;
}

/* intro line before description */
.product-intro{
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  max-width: 80ch;
}

/* content – same feeling as .news-content */
.product-content{
  font-size:16px;
  line-height:1.75;
  color: rgba(255,255,255,.88);
}
.product-content .am-rich{
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* ---------------------------------------------------------
   Coming soon block (subtle)
   --------------------------------------------------------- */
.coming{
  margin: 18px 0 22px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.coming h2{
  margin:0 0 4px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
}
.coming p{
  margin:0;
  font-size:14px;
  color: rgba(255,255,255,.68);
  line-height:1.6;
}

/* ---------------------------------------------------------
   Product News section (compact, editorial)
   --------------------------------------------------------- */
.pnews{
  margin-top: 28px;
}

/* tabs – lighter than default bootstrap */
.nav-tabs{
  border-bottom: 1px solid rgba(255,255,255,.08);
  gap:6px;
}
.nav-tabs .nav-link{
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  color: rgba(255,255,255,.72);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.nav-tabs .nav-link:hover{
  color: rgba(255,255,255,.92);
}
.nav-tabs .nav-link.active{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.10) rgba(255,255,255,.10) transparent;
  color: rgba(255,255,255,.95);
}

/* news list */
.pnews-list{
  display: grid;
  gap: 10px;
}

/* flatter cards */
.pnews-item{
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.015);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.pnews-item:hover{
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255,255,255,.02);
}

/* clickable card */
.pnews-card{
  display:block;
  padding:12px 12px;
  color: inherit;
  text-decoration: none;
}

/* title */
.pnews-title{
  margin:0 0 4px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -.01em;
}

/* excerpt */
.pnews-excerpt{
  margin:0;
  font-size: 14px;
  color: rgba(255,255,255,.66);
  line-height:1.55;
}

/* date */
.pnews-date{
  margin-top:8px;
  font-size:12px;
  color: rgba(255,255,255,.48);
}
/* pinned news */
.pnews-item.is-pinned{
  border-color: var(--brand);
  background: linear-gradient(
    180deg,
    rgba(255, 209, 0, .08),
    rgba(255, 255, 255, .02)
  );
  box-shadow: 0 0 0 1px rgba(255,209,0,.25);
}

/* optional badge/label */
.pnews-item.is-pinned::before{
  content: "PINNED";
  display: inline-block;
  margin: 8px 12px 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--brand);
}
/* reserved space -> kein Springen */
.pnews-alertslot{
  min-height: 92px; /* wenn du es kompakter willst: 76px */
  margin-bottom: 10px;
}

/* Bootstrap alert, aber mit Accent-Farbe */
.pnews-alert{
  margin: 0;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-left: 4px solid var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.pnews-alert-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  font-weight: 900;
}

.pnews-alert-text{
  margin-top: 6px;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
}

.pnews-alert-link{
  font-size: 12px;
  opacity: .85;
  text-decoration: none;
}
.pnews-alert-link:hover{ opacity: 1; color: var(--brand); }

/* =========================================================
   FEATURES – "MAGIC GLASS" + HOVER ANIMATION
   ========================================================= */

.pfeatures{
  margin-top: 22px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Card */
.pfeature{
  position:relative;
  border-radius: 18px;
  padding: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:center;

  /* Glass look */
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(900px 220px at 20% -20%, rgba(255,209,0,.12), transparent 55%),
    radial-gradient(700px 240px at 110% 120%, rgba(0,170,255,.10), transparent 55%),
    rgba(255,255,255,.02);
  box-shadow:
    0 18px 50px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
  will-change: transform;
}

/* subtle glow layer */
.pfeature::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  pointer-events:none;
  opacity:0;
  background:
    radial-gradient(420px 180px at 20% 30%, rgba(255,209,0,.22), transparent 60%),
    radial-gradient(380px 180px at 85% 70%, rgba(120,120,255,.18), transparent 60%);
  transition: opacity .18s ease;
}

/* Hover: float + glow */
.pfeature:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.14);
  box-shadow:
    0 24px 70px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,209,0,.12),
    inset 0 1px 0 rgba(255,255,255,.07);
}
.pfeature:hover::before{ opacity:1; }

/* Reverse via RTL trick */
.pfeature.is-reverse{ direction: rtl; }
.pfeature.is-reverse > *{ direction:ltr; }

/* Media */
.pfeature-media{ width:100%; }

.media-frame{
  position:relative;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.28);
  aspect-ratio: 16/10;

  box-shadow:
    0 12px 36px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);

  transform: translateZ(0);
}

/* image: premium grading */
.media-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;

  transform: scale(1.03);
  filter: saturate(1.06) contrast(1.06);
  transition: transform .25s ease, filter .25s ease;
}

/* Hover effect on image: tiny zoom + clarity */
.pfeature:hover .media-frame img{
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.08);
}

/* Soft highlight on image (adds “cinematic” feel) */
.media-frame::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 28%),
    radial-gradient(600px 220px at 15% 10%, rgba(255,209,0,.10), transparent 60%);
  mix-blend-mode: screen;
  opacity:.55;
}

/* Body */
.pfeature-body{
  padding: 10px 8px;
}

.pfeature-title{
  margin:0 0 8px;
  font-size: clamp(18px, 2.0vw, 26px);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.pfeature-text{
  color: rgba(255,255,255,.74);
  font-size: 14px;
  line-height: 1.7;
  max-width: 64ch;
}

/* Mobile */
@media (max-width: 991.98px){
  .pfeature{ grid-template-columns: 1fr; }
  .pfeature.is-reverse{ direction:ltr; }
}

/* =========================================================
   GALLERY – Bootstrap Carousel (clean, no blur, swipe)
   - big slide + arrows
   - thumbs as indicators (desktop only)
   ========================================================= */

.pgallery{ margin-top: 22px; }

/* carousel shell */
.pg-carousel{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
}

/* big image */
.pg-inner .carousel-item img{
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display:block;
  filter: saturate(1.06) contrast(1.06);
}

/* slide clickable (lightbox) */
.pg-slide{
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}

/* arrows – no blur, no fancy render */
.pg-control{
  width: 56px;
  opacity: 1;
}
.pg-control .carousel-control-prev-icon,
.pg-control .carousel-control-next-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background-color: rgba(0,0,0,.35);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
}
.pg-control:hover .carousel-control-prev-icon,
.pg-control:hover .carousel-control-next-icon{
  background-color: rgba(0,0,0,.46);
  border-color: rgba(255,255,255,.22);
}

/* thumb strip (desktop) */
.pg-indicators{
  position: relative;
  margin: 0;
  padding: 10px 18px 12px;
  display:flex;
  gap:10px;
  overflow:auto;
  justify-content:flex-start;
  align-items:center;
  bottom: 0;
}

.pg-indicators [data-bs-target]{
  width: auto;
  height: auto;
  text-indent: 0;
  border: 0;
  opacity: 1;
  margin: 0;
  background: transparent;
  padding: 0;
}

.pg-indicators button{
  flex: 0 0 auto;
  width: 150px;
  border-radius: 12px;
  overflow:hidden;
  cursor:pointer;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);

  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
  opacity: .82;
}
.pg-indicators button:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  opacity: .95;
}
.pg-indicators button.active{
  opacity: 1;
  border-color: rgba(255,209,0,.55);
  box-shadow: 0 12px 34px rgba(0,0,0,.45), 0 0 0 1px rgba(255,209,0,.18);
}

.pg-indicators img{
  width:100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display:block;
  filter: saturate(1.04) contrast(1.04);
}

/* hide scrollbar */
.pg-indicators{ scrollbar-width:none; }
.pg-indicators::-webkit-scrollbar{ display:none; }

/* ✅ Mobile: hide thumbs completely (too big / too cramped) */
@media (max-width: 991.98px){
  .pg-indicators{ display:none !important; }
}

/* =========================================================
   LITTLE POLISH – copy-link button hover (optional)
   ========================================================= */

.psec-title.product-title-link{
  transition: transform .15s ease, opacity .15s ease, color .15s ease;
  cursor: pointer;
}
.psec-title.product-title-link:hover{
  transform: translateY(-1px);
  color: var(--brand);
}
.psec-title.product-title-link.is-copied{
  opacity: .75;
}


/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 9999;
  padding: 18px;
}

.lb-img{
  max-width: min(1200px, 96vw);
  max-height: 88vh;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.2);
}

.lb-close{
  position:absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 26px;
  cursor:pointer;
}

.product-pills{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px; }
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255, 209, 0, .12);
}
.pill--ok{ border-color: rgba(255, 209, 0, .35);; }
.product-pills--inline{
  display:inline-flex;
  gap:6px;
  margin:0;
}

/* Trennpunkt etwas Luft */
.product-meta .meta-sep{
  opacity:.6;
}
.pblock{
  margin-top: 22px;
}

.pblock-content{
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,.88);
}