/* ================================================================
   PDD – PRODUKTDETAILSEITEN  |  product-page.css
   Gemeinsame Styles für alle 21 Produktdetailseiten (Phase 7)
   Voraussetzung: style.css + shop.css bereits geladen
   ================================================================ */

/* ── 1. TRUST BAR ───────────────────────────────────────────────── */
.pdd-trust-bar {
  display: flex;
  flex-wrap: wrap;
  background: var(--pds-sky);
  border-top: 1px solid #dde5f8;
  border-bottom: 1px solid var(--pds-line);
}
.pdd-trust-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pdd-navy, #0f2d5e);
  flex: 1 1 160px;
  border-right: 1px solid #dde5f8;
}
.pdd-trust-bar-item:last-child { border-right: none; }
.pdd-trust-bar-item svg { flex-shrink: 0; color: var(--pdd-accent, #c9a34a); }

/* ── 2. VERFÜGBARKEIT & LIEFERZEIT ─────────────────────────────── */
.pdd-avail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.pdd-avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pds-ok);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 4px 12px;
}
.pdd-avail-badge svg { color: var(--pds-ok); }
.pdd-avail-delivery { font-size: 0.78rem; color: var(--pds-ink-3); }

/* ── 3. PRODUKTBILD (Einzelbild, ohne Galerie) ─────────────────── */
.pdd-product-img-single {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  margin: 0 auto;
}
.pdd-product-img-single img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── 4. PREMIUM SPEC TABLE ──────────────────────────────────────── */
.pdd-spec-table-prem {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.pdd-spec-table-prem tr:nth-child(even) { background: var(--pds-concrete); }
.pdd-spec-table-prem th {
  width: 42%;
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--pdd-navy, #0f2d5e);
  border-bottom: 1px solid var(--pdd-line, #e2e8f0);
  vertical-align: top;
}
.pdd-spec-table-prem td {
  padding: 11px 16px;
  color: var(--pdd-text, #475569);
  border-bottom: 1px solid var(--pdd-line, #e2e8f0);
}
.pdd-spec-table-prem tr:last-child th,
.pdd-spec-table-prem tr:last-child td { border-bottom: none; }

/* ── 5. VORTEILE GRID (6 Cards) ─────────────────────────────────── */
.pdd-benefits-6 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.pdd-benefit-v2 {
  background: var(--pds-paper);
  border: 1.5px solid var(--pdd-line, #e2e8f0);
  border-radius: 10px;
  padding: 20px 18px;
}
.pdd-benefit-v2-icon {
  width: 36px;
  height: 36px;
  background: var(--pdd-blue, #1a4fa3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #fff;
}
.pdd-benefit-v2 h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pdd-navy, #0f2d5e);
  margin: 0 0 6px;
}
.pdd-benefit-v2 p {
  font-size: 0.8rem;
  color: var(--pds-ink-3);
  margin: 0;
  line-height: 1.5;
}

/* ── 6. ZUBEHÖR / PASSENDE STEUERUNGEN GRID ────────────────────── */
.pdd-acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.pdd-acc-card {
  background: var(--pds-paper);
  border: 1.5px solid var(--pdd-line, #e2e8f0);
  border-radius: 10px;
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pdd-acc-card:hover {
  border-color: var(--pdd-blue, #1a4fa3);
  box-shadow: 0 4px 16px rgba(26, 79, 163, 0.1);
}
.pdd-acc-card-img {
  background: var(--pds-concrete);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}
.pdd-acc-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pdd-acc-card-body { padding: 12px 14px 14px; }
.pdd-acc-card-brand {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pds-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}
.pdd-acc-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pdd-navy, #0f2d5e);
  display: block;
  margin: 2px 0 4px;
}
.pdd-acc-card-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pdd-blue, #1a4fa3);
}

/* ── 7. MONTAGE SECTION (hell, Wolken-System) ───────────────────── */
.pdd-section-montage {
  background: linear-gradient(180deg, var(--pds-sky) 0%, var(--pds-ivory) 100%);
  color: var(--pds-ink-2);
  padding: 56px 24px;
}
.pdd-section-montage-inner { max-width: 800px; margin: 0 auto; }
.pdd-section-montage h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pds-ink);
  margin: 0 0 16px;
}
.pdd-section-montage p {
  color: var(--pds-ink-2);
  line-height: 1.7;
  margin: 0 0 16px;
}
.pdd-montage-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0 20px;
  margin: 28px 0 32px;
  border-top: 1px solid var(--pds-stone);
}
.pdd-montage-step {
  padding: 16px 0 0;
}
.pdd-montage-step-num {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pds-wood);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pdd-montage-step-label {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--pds-ink);
  line-height: 1.35;
}
.pdd-montage-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pds-blue);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  min-height: 48px;
  transition: background 0.15s;
}
.pdd-montage-cta:hover { background: var(--pds-blue-2); color: #fff; }

/* ── 8. SEO TEXTBLOCK ───────────────────────────────────────────── */
.pdd-section-seo {
  background: var(--pds-concrete);
  padding: 56px 24px;
}
.pdd-section-seo-inner { max-width: 800px; margin: 0 auto; }
.pdd-section-seo h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pdd-navy, #0f2d5e);
  margin: 0 0 16px;
}
.pdd-section-seo p {
  color: var(--pdd-text, #475569);
  line-height: 1.75;
  margin: 0 0 18px;
  font-size: 0.9rem;
}
.pdd-section-seo p:last-child { margin-bottom: 0; }

/* ── 9. FAQ ACCORDION ───────────────────────────────────────────── */
.pdd-section-faq {
  padding: 56px 24px;
  background: var(--pds-paper);
}
.pdd-section-faq-inner { max-width: 800px; margin: 0 auto; }
.pdd-section-faq h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pdd-navy, #0f2d5e);
  margin: 0 0 24px;
}
.pdd-faq-accordion details {
  border: 1.5px solid var(--pdd-line, #e2e8f0);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.pdd-faq-accordion details[open] {
  border-color: var(--pdd-blue, #1a4fa3);
}
.pdd-faq-accordion summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pdd-navy, #0f2d5e);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pdd-faq-accordion summary::-webkit-details-marker { display: none; }
.pdd-faq-accordion summary::after {
  content: '›';
  font-size: 1.2rem;
  color: var(--pds-ink-3);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.pdd-faq-accordion details[open] summary::after { transform: rotate(90deg); }
.pdd-faq-accordion details p {
  padding: 0 20px 18px;
  font-size: 0.86rem;
  color: var(--pds-ink-2);
  line-height: 1.7;
  margin: 0;
}

/* ── 10. INTERNE VERLINKUNG (Zurück + Ähnliche Produkte) ────────── */
.pdd-internal-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--pds-concrete);
  border-bottom: 1px solid var(--pdd-line, #e2e8f0);
}
.pdd-internal-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pdd-blue, #1a4fa3);
  text-decoration: none;
}
.pdd-internal-nav a:hover { text-decoration: underline; }
.pdd-internal-nav-sep {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.pdd-similar-section {
  padding: 48px 24px 56px;
  background: var(--pds-concrete);
  border-top: 1px solid var(--pdd-line, #e2e8f0);
}
.pdd-similar-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pds-ink);
  margin: 0 0 20px;
}

/* ── 11. PRODUKT HERO ERGÄNZUNGEN ───────────────────────────────── */
/* Farben, Typografie und Buttons des Produkt-Heros kommen aus shop.css (helle Fassung) und pdd-system.css.
   Hier nur noch die Abstände, die diese Seiten zusätzlich brauchen. */
.pdd-product-tagline { margin: 8px 0 16px; }
.pdd-product-cta-group { margin: 16px 0; }
.pdd-product-cta-primary { border: none; cursor: pointer; }
.pdd-product-specs-quick { margin-top: 16px; }
.pdd-product-spec-chip { white-space: nowrap; }
.pdd-product-hero-inner { max-width: 1140px; margin: 0 auto; }

/* ── 12. RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pdd-trust-bar-item {
    flex: 1 1 48%;
    border-right: none;
    border-bottom: 1px solid var(--pds-line);
  }
  .pdd-montage-steps { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .pdd-section-montage { padding: 40px 20px; }
  .pdd-section-seo { padding: 40px 20px; }
  .pdd-section-faq { padding: 40px 20px; }
  .pdd-similar-section { padding: 36px 20px 44px; }
  .pdd-benefits-6 { grid-template-columns: 1fr 1fr; }
  .pdd-acc-grid { grid-template-columns: 1fr 1fr; }
  .pdd-internal-nav { padding: 12px 20px; }
}
@media (max-width: 480px) {
  .pdd-benefits-6 { grid-template-columns: 1fr; }
  .pdd-acc-grid { grid-template-columns: 1fr 1fr; }
  .pdd-product-cta-group { flex-direction: column; }
  .pdd-product-cta-primary, .pdd-product-cta-secondary { justify-content: center; }
  .pdd-trust-bar-item { flex: 1 1 100%; }
}

/* ===== LAYOUT-FIX: Karten-Konsistenz (2026-07-01) ===== */

/* Fix: Verwandte-Produkte-Karten – Bild nie komprimiert */
.pdd-product-related-img {
  flex-shrink: 0;
}

/* Fix: Verwandte-Produkte-Karten – Name max 2 Zeilen */
.pdd-product-related-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Fix: Zubehör-Karten – Bild nie komprimiert */
.pdd-acc-card-img {
  flex-shrink: 0;
}

/* Fix: Zubehör-Karten – Name max 2 Zeilen */
.pdd-acc-card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
