/* ============================================================
   DGI — Apple Inspired Clean System
   ============================================================ */
:root {
  --bg-deep: #f5f5f7;
  --bg-panel: #ffffff;
  --line-subtle: #e5e5ea;
  --ink: #1d1d1f;
  --mist: #86868b;
  --accent: #0071e3; /* Apple Blue */
  --accent-hover: #0077ed;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --radius: 16px;
  --shadow-smooth: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Compact Hero */
.shop-header {
  padding: 2rem 0 1rem;
}

.shop-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

/* Kit Slider (Kompakt) */
.kit-carousel {
  position: relative;
  background: var(--bg-panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-smooth);
  overflow: hidden;
  margin-bottom: 2rem;
}

.kit-slide {
  display: none;
  padding: 1.5rem;
  align-items: center;
  gap: 2rem;
}

.kit-slide.active {
  display: flex;
}

.kit-images {
  display: flex;
  gap: 0.5rem;
  width: 40%;
  justify-content: center;
}

.kit-images img {
  max-height: 110px;
  object-fit: contain;
}

.kit-info {
  width: 60%;
}

.kit-info .eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.kit-info h2 {
  font-size: 1.25rem;
  margin: 0.2rem 0 0.4rem;
}

.kit-info p {
  font-size: 0.88rem;
  color: var(--mist);
  margin: 0 0 0.8rem;
}

.kit-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.4rem;
}

.kit-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-weight: bold;
}

/* Main Shop Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}

/* Desktop Sidebar Filter */
.shop-sidebar {
  background: var(--bg-panel);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-smooth);
  position: sticky;
  top: 5rem;
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mist);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--bg-deep);
  color: var(--accent);
  font-weight: 600;
}

/* Mobile Filter Bar */
.mobile-filters {
  display: none;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-smooth);
  border: none; /* Kein harter Rand mehr */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.product-card .thumb {
  aspect-ratio: 4 / 3;
  background: #ffffff; /* Reinweiß */
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .thumb img {
  max-height: 100%;
  object-fit: contain;
}

.product-card .info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  border-top: 1px solid var(--line-subtle);
}

.class-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mist);
  text-transform: uppercase;
}

.product-card h3 {
  font-size: 1.05rem;
  margin: 0.2rem 0 0.8rem;
}

.card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.price-tag {
  font-weight: 600;
  font-size: 0.95rem;
}

.price-tag small {
  font-size: 0.75rem;
  color: var(--mist);
  font-weight: 400;
}

/* Apple Blue Button */
.btn-buy {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-buy:hover {
  background: var(--accent-hover);
}

/* Responsive Switching */
@media (max-width: 768px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    display: none;
  }
  .mobile-filters {
    display: flex;
  }
  .kit-slide {
    flex-direction: column;
    text-align: center;
  }
  .kit-images, .kit-info {
    width: 100%;
  }
}


/* ============================================================
   Product Detail Page — same Apple-clean system as the shop
   ============================================================ */

/* Shared buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: 980px;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { display: block; width: 100%; }

/* Top nav */
.nav {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line-subtle);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-logo-block { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.nav-logo .dot { color: var(--accent); }
.nav-sub { font-size: 0.7rem; color: var(--mist); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* Footer */
footer { border-top: 1px solid var(--line-subtle); margin-top: 4rem; padding: 2rem 0; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: var(--mist); flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom a { color: var(--mist); }
.footer-bottom a:hover { color: var(--accent); }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--mist); }
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--line-subtle); }

/* Scroll-reveal (used by script.js) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Product layout */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.product-layout h1 { font-family: var(--font-display); color: var(--ink); }
.product-layout > div:last-child > p { color: var(--mist); }

/* Gallery */
.gallery-main {
  background: var(--bg-panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-smooth);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  overflow: hidden;
}
.gallery-main img, .gallery-main svg { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; overflow-x: auto; }
.gallery-thumb {
  width: 72px; height: 72px; flex-shrink: 0;
  background: var(--bg-panel);
  border-radius: 10px;
  box-shadow: var(--shadow-smooth);
  padding: 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease;
}
.gallery-thumb img { max-height: 100%; object-fit: contain; }
.gallery-thumb.active { border-color: var(--accent); }

/* Tag + price tiers */
.class-tag-group { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }
.tier-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.tier-list li { font-size: 0.92rem; color: var(--ink); padding-left: 1.2rem; position: relative; }
.tier-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Rental / booking card */
.rental-block { background: var(--bg-panel); border-radius: var(--radius); box-shadow: var(--shadow-smooth); padding: 1.5rem; }
.rental-block > label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.date-row { display: flex; gap: 0.75rem; }
.rental-block input[type="date"],
.rental-block input[type="number"] {
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line-subtle);
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.date-row input { flex: 1; }
.form-status { font-size: 0.82rem; color: var(--mist); margin: 0.6rem 0 0; }

.addon-mini {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line-subtle);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.addon-mini.selected { border-color: var(--accent); background: rgba(0, 113, 227, 0.06); }
.addon-mini .addon-name { flex: 1; font-size: 0.88rem; color: var(--ink); font-weight: 500; }
.addon-mini .addon-price { font-size: 0.85rem; color: var(--mist); font-weight: 600; }
.pilot-check { width: 18px; height: 18px; accent-color: var(--accent); }

.qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.qty-input { width: 80px; text-align: center; }

.price-summary { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line-subtle); }
.price-summary .row { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--mist); padding: 0.2rem 0; }
.price-summary .total {
  display: flex; justify-content: space-between;
  font-size: 1.1rem; font-weight: 700; color: var(--ink);
  margin-top: 0.5rem; padding-top: 0.5rem;
  border-top: 1px dashed var(--line-subtle);
}

/* Detail sections: specs + reviews */
.detail-section { margin-top: 4rem; border-top: 1px solid var(--line-subtle); padding-top: 2rem; }
.detail-section h2 { font-family: var(--font-display); color: var(--ink); font-size: 1.4rem; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--line-subtle); }
.spec-table td { padding: 0.75rem 0.5rem; font-size: 0.9rem; color: var(--ink); }

.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.review-card { background: var(--bg-panel); padding: 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow-smooth); }
.stars { color: var(--accent); margin-bottom: 0.5rem; font-size: 1.1rem; letter-spacing: 1px; }

#addReviewForm label { color: var(--mist); }
#addReviewForm input[type="text"],
#addReviewForm select,
#addReviewForm textarea {
  border: 1px solid var(--line-subtle);
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .date-row { flex-direction: column; }
  .review-grid { grid-template-columns: 1fr; }
  .nav-sub { display: none; }
}