/* ============================================
   PRODUCT DETAIL PAGE
   Passt zum Design der Products-Übersicht
   Grayscale + Accent Red #E31E24
   ============================================ */

:root {
  --bg: #0f0f0f;
  --panel: #1a1a1a;
  --panel-2: #2a2a2a;
  --border: rgba(255, 255, 255, 0.08);
  --muted: #b8bcc6;
  --text: #f5f7fa;
  --accent: #E31E24;
  --accent-soft: rgba(227, 30, 36, 0.18);
  --red: #E31E24;
}

/* ============================================
   PAGE LAYOUT
   ============================================ */

.product-detail-page {
  background: linear-gradient(180deg, #2a2a2a 0%, #242424 50%, #1a1a1a 100%);
  min-height: 100vh;
  padding-bottom: 4rem;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
  padding: 1.5rem 5%;
  background: #2a2a2a;
}

.breadcrumbs ol {
  display: flex;
  gap: 0;
  align-items: baseline;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: inline;
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--muted);
  font-weight: 400;
}

.breadcrumbs li:not(:last-child)::after {
  content: '>';
  margin: 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 400;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 400;
  display: inline;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs li[aria-current="page"] {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.2;
}

/* ============================================
   PRODUCT HERO
   ============================================ */

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 6vw, 5rem) 5%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   PRODUCT IMAGES
   ============================================ */

.product-images {
  position: relative;
}

.image-gallery {
  position: sticky;
  top: calc(var(--navbar-height, 7rem) + 2rem);
}

.main-image {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
}

.main-image img,
.main-image > span {
  width: 100% !important;
  height: 100% !important;
}

.main-image img {
  object-fit: contain !important;
  padding: 2rem;
  position: relative !important;
}

/* Image Navigation Buttons */
.image-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: white;
  font-size: 3rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.image-nav-btn:hover {
  color: var(--accent);
  transform: translateY(-50%) scale(1.2);
  text-shadow: 0 4px 12px rgba(227, 30, 36, 0.8);
}

.image-nav-btn.prev {
  left: 1rem;
}

.image-nav-btn.next {
  right: 1rem;
}

/* Image Counter */
.image-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10;
}

.thumbnail-strip {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--panel);
}

.thumbnail-strip::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-track {
  background: var(--panel);
  border-radius: 3px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.thumbnail-wrapper {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.thumbnail-wrapper.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(227, 30, 36, 0.3);
}

.thumbnail-wrapper:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.thumbnail-wrapper img {
  object-fit: contain !important;
  padding: 0.5rem;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
}

.no-image {
  aspect-ratio: 1;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1rem;
}

/* ============================================
   PRODUCT INFO
   ============================================ */

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-info .eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
}

.product-info h1 {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

.price-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.2rem 1.8rem;
  background: linear-gradient(135deg, var(--accent-soft), rgba(227, 30, 36, 0.08));
  border: 1px solid rgba(227, 30, 36, 0.3);
  border-radius: 12px;
  width: fit-content;
}

.price-badge .price {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.price-badge .unit {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.description {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.description p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0;
  font-size: 1.05rem;
}

.cta-section {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

/* ============================================
   SPECIFICATIONS SECTION
   ============================================ */

.specifications {
  padding: clamp(3rem, 6vw, 5rem) 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.specifications h2 {
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 2rem;
  text-align: center;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0;
}

.spec-item {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.spec-item:hover {
  border-color: rgba(227, 30, 36, 0.2);
  transform: translateY(-2px);
}

.spec-item dt {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.spec-item dd {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
}

/* ============================================
   USE CASES SECTION
   ============================================ */

.use-cases {
  padding: clamp(3rem, 6vw, 5rem) 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.use-cases h2 {
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 2rem;
  text-align: center;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.use-case-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.use-case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 30, 36, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.use-case-card:hover::before {
  opacity: 1;
}

.use-case-card h3 {
  color: var(--text);
  font-size: 1.3rem;
  margin: 0 0 0.8rem;
}

.use-case-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* ============================================
   REGIONAL INFO SECTION
   ============================================ */

.regional-info {
  padding: clamp(3rem, 6vw, 5rem) 5%;
  background: rgba(255, 255, 255, 0.02);
  max-width: 1400px;
  margin: 0 auto 2rem;
}

.regional-info h2 {
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 2rem;
  text-align: center;
}

.regional-info .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.regional-info .info-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.regional-info .info-card:hover {
  border-color: rgba(227, 30, 36, 0.15);
  transform: translateY(-3px);
}

.regional-info .info-card h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.regional-info .info-card h3::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.4rem;
}

.regional-info .info-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* ============================================
   RENTAL INFO SECTION
   ============================================ */

.rental-info {
  padding: clamp(3rem, 6vw, 5rem) 5%;
  background: rgba(255, 255, 255, 0.02);
  max-width: 1400px;
  margin: 2rem auto 0;
}

.rental-info h2 {
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 2rem;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: rgba(227, 30, 36, 0.15);
  transform: translateY(-3px);
}

.info-card h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card h3::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.4rem;
}

.info-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* ============================================
   RELATED PRODUCTS SECTION
   ============================================ */

.related-products {
  padding: clamp(3rem, 6vw, 5rem) 5%;
  max-width: 1400px;
  margin: 4rem auto 0;
  background: rgba(255, 255, 255, 0.02);
}

.related-products h2 {
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 2rem;
  text-align: center;
}

.related-products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.related-products .card.product {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.related-products .card.product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.related-products .card.product:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 30, 36, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(227, 30, 36, 0.1);
}

.related-products .card.product:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.25), transparent);
}

.related-products .card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.related-products .card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.related-products .card-img.fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.related-products .card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: transparent;
}

.related-products .card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 1.5em;
}

.related-products .card:hover h3 {
  color: var(--red);
}

.related-products .link-look {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.related-products .card:hover .link-look {
  color: var(--red);
}

/* ============================================
   RESPONSIVE FOR RELATED PRODUCTS
   ============================================ */

@media (max-width: 720px) {
  .related-products {
    padding: 2.5rem 5%;
  }

  .related-products .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
  }

  .related-products .card h3 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .related-products .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-products .card h3 {
    font-size: 1rem;
  }
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */

.final-cta {
  padding: clamp(4rem, 8vw, 6rem) 5%;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.final-cta h2 {
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 1rem;
}

.final-cta p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  color: #fff;
  font-family: var(--font-fam);
}

.btn.accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 15px 40px rgba(227, 30, 36, 0.25);
}

.btn.accent:hover {
  box-shadow: 0 20px 50px rgba(227, 30, 36, 0.35);
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn.large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .image-gallery {
    position: static;
  }

  .main-image {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 720px) {
  .breadcrumbs {
    padding: 1rem 5%;
  }

  .breadcrumbs li {
    font-size: 0.85rem;
  }

  .product-hero {
    padding: 2rem 5%;
  }

  /* Hide navigation arrows on mobile (swipe works) */
  .image-nav-btn {
    display: none;
  }

  .thumbnail-strip {
    gap: 0.5rem;
  }

  .thumbnail-wrapper {
    width: 70px;
    height: 70px;
  }

  .price-badge {
    padding: 1rem 1.5rem;
  }

  .price-badge .price {
    font-size: 1.6rem;
  }

  .specifications,
  .use-cases,
  .rental-info,
  .final-cta {
    padding: 2.5rem 5%;
  }

  .spec-list,
  .use-case-grid,
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .use-case-card,
  .info-card {
    padding: 1.5rem;
  }

  .cta-section {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main-image img {
    padding: 1rem;
  }

  .description {
    padding: 1.2rem;
  }

  .spec-item,
  .use-case-card,
  .info-card {
    padding: 1.2rem;
  }
}
