/* ============================================
   FT Sicherheitstechnik — Apple-Style Product Pages
   Works in both light & dark theme (uses theme.css vars)
   ============================================ */

/* ---- Reset spacing on product pages ----------------------------------- */
.ap-product { background: var(--color-bg); color: var(--color-text); }
.ap-product .section,
.ap-product .page-content { padding-top: 0; padding-bottom: 0; }

/* ---- Container ----- */
.ap-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.ap-container--wide { max-width: 1240px; }

/* ============================================
   HERO
   ============================================ */
.ap-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(80px, 12vh, 140px) var(--gutter) 60px;
  overflow: hidden;
  background: var(--grad-product-bg);
}

.ap-hero__eyebrow {
  font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-cta);
  margin-bottom: 10px;
}

.ap-hero__title {
  font-family: 'Clash Grotesk', 'SF Pro Display', system-ui, sans-serif;
  font-size: clamp(2.6rem, 4.5vw + 1rem, 6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 18px;
}

.ap-hero__tagline {
  font-size: clamp(1.25rem, 1rem + 1vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
  max-width: 760px;
  margin: 0 auto 18px;
  font-weight: 400;
}

.ap-hero__price-line {
  font-size: clamp(1rem, 0.85rem + 0.4vw, 1.15rem);
  color: var(--color-text-secondary);
  margin-bottom: 36px;
}
.ap-hero__price-line strong { color: var(--color-text); font-weight: 600; }

.ap-hero__cta-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.ap-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 980px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.ap-hero__cta--primary {
  background: var(--color-cta);
  color: var(--color-cta-text);
  box-shadow: 0 0 0 1px var(--color-cta);
}
.ap-hero__cta--primary:hover {
  background: var(--color-cta-hover);
  box-shadow: 0 0 0 1px var(--color-cta-hover), 0 8px 30px var(--color-cta-glow);
  transform: translateY(-1px);
}
.ap-hero__cta--ghost {
  background: transparent;
  color: var(--color-cta);
  box-shadow: inset 0 0 0 1px currentColor;
}
.ap-hero__cta--ghost:hover { color: var(--color-cta-hover); transform: translateY(-1px); }

.ap-hero__cta::after {
  content: '›';
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.2s ease;
  font-weight: 400;
  margin-left: 2px;
}
.ap-hero__cta:hover::after { transform: translateX(3px); }

.ap-hero__image-wrap {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0 20px;
}
.ap-hero__image {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35));
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .ap-hero__image { filter: drop-shadow(0 30px 60px rgba(0,0,0,0.18)); }
}
:root[data-theme="light"] .ap-hero__image { filter: drop-shadow(0 30px 60px rgba(0,0,0,0.18)); }

/* ============================================
   STORY SECTION — big alternating image/text blocks
   ============================================ */
.ap-section {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: var(--color-bg);
}
.ap-section--surface  { background: var(--color-surface); }
.ap-section--surface2 { background: var(--color-surface-2); }

.ap-section__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.ap-section__eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-cta);
  margin-bottom: 14px;
}

.ap-section__title {
  font-family: 'Clash Grotesk', 'SF Pro Display', system-ui, sans-serif;
  font-size: clamp(2rem, 2.5vw + 1rem, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 22px;
  max-width: 880px;
}
.ap-section__title em {
  font-style: normal;
  color: var(--color-text-secondary);
}

.ap-section__lead {
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 720px;
  margin: 0 0 36px;
}

/* Two-column split ----------------------------------------------------- */
.ap-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 900px) {
  .ap-split { grid-template-columns: 1.05fr 1fr; }
  .ap-split--reverse > :first-child { order: 2; }
}
.ap-split__media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-split__media img {
  width: 100%;
  max-width: 540px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(0,0,0,0.30));
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .ap-split__media img { filter: drop-shadow(0 25px 50px rgba(0,0,0,0.15)); }
}
:root[data-theme="light"] .ap-split__media img { filter: drop-shadow(0 25px 50px rgba(0,0,0,0.15)); }

/* ============================================
   BIG STAT BAND (e.g. "8MP", "4K", "IP67")
   ============================================ */
.ap-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: clamp(60px, 8vw, 100px) 0;
  text-align: center;
}
@media (min-width: 700px) {
  .ap-stats { grid-template-columns: repeat(4, 1fr); gap: 40px; }
}
.ap-stat__value {
  font-family: 'Clash Grotesk', system-ui, sans-serif;
  font-size: clamp(2.2rem, 2vw + 1.5rem, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text);
  display: block;
  margin-bottom: 8px;
}
.ap-stat__value--cta { color: var(--color-cta); }
.ap-stat__value--accent { color: var(--color-accent); }
.ap-stat__label {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  letter-spacing: 0;
}

/* ============================================
   FEATURE GRID (3 cards in row, Apple-style icons)
   ============================================ */
.ap-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .ap-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ap-features { grid-template-columns: repeat(3, 1fr); } }

.ap-feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  padding: 36px 32px;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.ap-feature:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-medium);
}
.ap-feature__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--color-cta-glow);
  color: var(--color-cta);
  margin-bottom: 24px;
}
.ap-feature__icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ap-feature__title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--color-text);
}
.ap-feature__desc {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================================
   SPEC TABLE (Apple-style — clean, two-column)
   ============================================ */
.ap-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.ap-specs caption {
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 28px 0 16px;
}
.ap-specs tbody tr {
  border-top: 1px solid var(--color-border);
}
.ap-specs tbody tr:last-child {
  border-bottom: 1px solid var(--color-border);
}
.ap-specs th, .ap-specs td {
  padding: 18px 12px;
  text-align: left;
  vertical-align: top;
}
.ap-specs th {
  width: 42%;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.ap-specs td {
  color: var(--color-text);
  font-weight: 400;
}
@media (min-width: 700px) {
  .ap-specs th, .ap-specs td { padding: 22px 16px; }
}

/* Toggle "Alle technischen Daten" ------------------------------------- */
.ap-spec-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--color-cta);
  cursor: pointer;
  padding: 8px 0;
}
.ap-spec-toggle::after {
  content: '⌄';
  transition: transform 0.2s ease;
  font-size: 1.2em;
  line-height: 1;
}
.ap-spec-toggle.is-open::after { transform: rotate(180deg); }
.ap-spec-toggle:hover { color: var(--color-cta-hover); }

.ap-specs--hidden { display: none; }

/* ============================================
   COMPARE / CALLOUTS
   ============================================ */
.ap-callout {
  text-align: center;
  padding: clamp(60px, 8vw, 100px) var(--gutter);
  background: var(--color-surface);
}
.ap-callout__title {
  font-family: 'Clash Grotesk', system-ui, sans-serif;
  font-size: clamp(1.8rem, 1.5vw + 1rem, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--color-text);
  max-width: 820px;
  margin-inline: auto;
}
.ap-callout__desc {
  font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* ============================================
   DOWNLOAD CARD
   ============================================ */
.ap-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 18px 24px;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.ap-download:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}
.ap-download__icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-download__icon svg { width: 22px; height: 22px; }
.ap-download__text strong { display: block; font-weight: 500; }
.ap-download__text span { font-size: 0.9rem; color: var(--color-text-secondary); }

/* ============================================
   BREADCRUMB
   ============================================ */
.ap-breadcrumb {
  padding: 100px var(--gutter) 0;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.ap-breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.ap-breadcrumb a:hover { color: var(--color-cta); }
.ap-breadcrumb__sep { margin: 0 8px; opacity: 0.5; }

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.ap-related-title {
  font-family: 'Clash Grotesk', system-ui, sans-serif;
  font-size: clamp(1.6rem, 1.5vw + 0.8rem, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--color-text);
}
