/* =========================================================
   Sektionen, Produktkarten und Produktdetailseite
   Baut auf den Variablen und Komponenten aus style.css auf.
   ========================================================= */

.bg-white { background: var(--color-white); }

/* Zwei Sektionen mit gleichem Hintergrund hintereinander wirken wie ein Block */
.sec.sec-joined { padding-top: 0; }

.sec-head { max-width: 720px; margin: 0 0 44px; }
.sec-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.is-center .lead { margin-left: auto; margin-right: auto; }
.sec-head .lead > :last-child { margin-bottom: 0; }

.bg-primary .eyebrow { color: rgba(255, 255, 255, 0.85); }
.bg-primary .eyebrow::before { background: rgba(255, 255, 255, 0.85); }
.bg-primary .lead, .bg-primary .rich { color: rgba(255, 255, 255, 0.88); }
.bg-primary a:not(.btn) { color: #fff; text-decoration: underline; }

/* Formatierter Text aus dem Editor */
.rich > :last-child { margin-bottom: 0; }
.rich h3 { font-size: 1.2rem; margin-top: 1.4em; }
.rich h3:first-child { margin-top: 0; }
.rich ul, .rich ol { padding-left: 1.2em; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }
.rich blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--color-primary); color: var(--color-dark); font-size: 1.08rem; }

.sec-text { max-width: 780px; }
.sec-text.is-center { margin: 0 auto; text-align: center; }

.sec-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.sec-actions.is-center { justify-content: center; margin-top: 44px; }

.btn-white { background: #fff; color: var(--color-primary); box-shadow: var(--shadow-sm); }
.btn-white:hover { background: var(--color-primary-light); color: var(--color-primary-dark); transform: translateY(-2px); }

.tag {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* ---------- Text mit Bild ---------- */
.split.image-left .split-media { order: -1; }
.split-media:empty { display: none; }

.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.chip {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-weight: 700;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chip::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
  flex-shrink: 0;
}
.chip.is-wide { grid-column: 1 / -1; }
@media (max-width: 480px) { .chip-grid { grid-template-columns: 1fr; } }

.cert-badge {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 26px; padding: 12px 18px 12px 12px;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: 100px; box-shadow: var(--shadow-sm);
  color: var(--color-gray); font-size: 0.86rem; line-height: 1.35;
}
.cert-badge img { width: 48px; height: 48px; border-radius: 50%; filter: contrast(1.2) saturate(1.3); }

/* ---------- Großes Bild ---------- */
.sec-figure { margin: 0; }
.sec-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); max-height: 680px; object-fit: cover; }
.sec-figure figcaption { text-align: center; color: var(--color-gray); font-size: 0.92rem; margin-top: 14px; }

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: 16px; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .gallery.cols-3, .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr 1fr !important; gap: 10px; } }

.gallery-item {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: var(--color-gray-light);
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(1, 40, 64, 0.7));
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-caption {
  position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1;
  color: #fff; font-weight: 600; font-size: 0.9rem;
  opacity: 0; transform: translateY(6px); transition: opacity var(--transition), transform var(--transition);
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; transform: none; }
@media (hover: none) { .gallery-item::after, .gallery-caption { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(1, 20, 32, 0.94);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
  padding: 60px 70px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox-caption { color: rgba(255, 255, 255, 0.85); margin-top: 16px; font-size: 0.95rem; text-align: center; min-height: 1.4em; }
.lightbox button {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.12); color: #fff;
  font-size: 1.5rem; cursor: pointer; transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }
@media (max-width: 600px) { .lightbox { padding: 60px 12px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 18px; transform: none; } }

/* ---------- Video ---------- */
.video-frame {
  max-width: 980px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: #000;
}
.video-frame video, .video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-consent {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-darker));
  background-size: cover; background-position: center; color: #fff; text-align: center; padding: 24px;
}
.video-consent::before { content: ""; position: absolute; inset: 0; background: rgba(1, 30, 50, 0.45); }
.video-consent > * { position: relative; }
.video-play {
  width: 88px; height: 88px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.18); transition: transform var(--transition), box-shadow var(--transition);
}
.video-play:hover { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.16); }
.video-play svg { width: 34px; height: 34px; margin-left: 5px; }
.video-note { max-width: 460px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.85); margin: 0; }
.video-note a { color: #fff; text-decoration: underline; }

/* ---------- Merkmale ---------- */
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 24px 22px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-check {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.feature-check svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.05rem; margin: 6px 0 6px; }
.feature p { color: var(--color-gray); margin: 0; font-size: 0.95rem; }
.bg-primary .feature { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }
.bg-primary .feature h3 { color: #fff; }
.bg-primary .feature p { color: rgba(255, 255, 255, 0.8); }

/* ---------- Technische Daten ---------- */
.spec-table {
  max-width: 880px; margin: 0 auto; background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden;
}
.spec-table table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 15px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table tr:nth-child(even) { background: #fafbfc; }
.spec-table th { width: 42%; color: var(--color-gray); font-weight: 600; font-size: 0.94rem; }
.spec-table td { color: var(--color-dark); font-weight: 600; }
@media (max-width: 560px) {
  .spec-table th, .spec-table td { display: block; width: auto; padding: 4px 18px; border: 0; }
  .spec-table th { padding-top: 14px; font-size: 0.82rem; }
  .spec-table td { padding-bottom: 14px; border-bottom: 1px solid var(--color-border); }
}

/* ---------- Downloads ---------- */
.download-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 920px; margin: 0 auto; }
@media (max-width: 680px) { .download-list { grid-template-columns: 1fr; } }
.download-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 16px 20px; color: var(--color-dark);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.download-item:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); color: var(--color-dark); }
.download-icon {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.download-icon svg { width: 24px; height: 24px; }
.download-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.download-text strong { overflow: hidden; text-overflow: ellipsis; }
.download-text small { color: var(--color-gray); }
.download-arrow { font-weight: 800; color: var(--color-primary); transition: transform var(--transition); }
.download-item:hover .download-arrow { transform: translateY(3px); }

/* ---------- Produktkarten ---------- */
.product-card { position: relative; padding: 22px 22px 26px; }
.product-card-media { display: block; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; background: var(--color-gray-light); }
.product-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card h3 { margin-bottom: 4px; }
.product-card h3 a { color: var(--color-dark); }
/* Ganze Karte klickbar */
.product-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.product-card h3 a:focus-visible { outline: none; }
.product-card:has(h3 a:focus-visible) { box-shadow: 0 0 0 3px var(--color-primary); }
.product-artno { color: var(--color-gray); font-size: 0.86rem; margin-bottom: 10px; }
.product-desc { color: var(--color-gray); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.product-load { font-size: 0.9rem; margin: 10px 0 0; color: var(--color-text); }
.product-card .specs { margin-top: 16px; padding-top: 16px; }
.product-more {
  margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--color-primary);
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
}
.product-more span { transition: transform var(--transition); }
.product-card:hover .product-more span { transform: translateX(4px); }

/* ---------- Hinweis-Box ---------- */
.highlight-box {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 30px 30px; box-shadow: var(--shadow-sm);
}
.highlight-box .card-icon { flex-shrink: 0; margin: 0; }
.highlight-box h3 { margin-bottom: 8px; }
.highlight-body .rich { color: var(--color-gray); }
@media (max-width: 560px) { .highlight-box { flex-direction: column; padding: 24px 20px; } }

.sec-timeline .timeline { max-width: 760px; margin: 0 auto; }
.sec-timeline .sec-head + .timeline { margin-top: 0; }

.sec-cta { max-width: 700px; margin: 0 auto; text-align: center; }

/* ---------- Produktdetailseite ---------- */
.product-hero { padding: 36px 0 88px; background: linear-gradient(180deg, var(--color-gray-light) 0%, #fff 100%); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; color: var(--color-gray); margin-bottom: 30px; }
.breadcrumb a { color: var(--color-gray); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span[aria-current] { color: var(--color-dark); font-weight: 600; }
.product-hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 60px; align-items: start; }
.product-hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .product-hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.product-hero-media a { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.product-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.product-hero-media a:hover img { transform: scale(1.03); }
.zoom-hint {
  position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.zoom-hint svg { width: 22px; height: 22px; }
.product-hero-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 6px; }
.product-hero-info .product-artno { font-size: 0.95rem; margin-bottom: 18px; }
.product-lead { font-size: 1.08rem; color: var(--color-gray); }
.key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 26px 0 0; }
.key-facts div { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px 18px; }
.key-facts dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-gray); font-weight: 700; }
.key-facts dd { margin: 4px 0 0; color: var(--color-dark); font-weight: 700; line-height: 1.35; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 30px; margin: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-primary-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23035a9c' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.product-hero .hero-actions { margin-top: 32px; }

.product-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.product-cta-inner h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.product-cta-inner p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.product-cta { padding: 64px 0; }

.preview-bar { background: #fff4d6; color: #7a5b00; text-align: center; padding: 10px 16px; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid #f0d78c; }
.page-hero-plain { padding: 120px 0; }
