/* =========================================================================
   Rokamat — Catalogue page (.cat-*)
   Used by /service/katalog/ (DE) + /en/service/catalogue/ (EN).
   Layered on top of index.css + index_product.css + index_parts_list.css
   so the hero base (.pl-hero, .pl-h1, .pl-lead) stays consistent with the
   rest of the Service hub.
   ========================================================================= */

/* ----- HERO — split: copy left, cover card right ------------------------ */
/* The base .pl-hero has a bottom border separating it from the next light
 * section; on the catalogue page the next section is the dark Yumpu viewer,
 * so the line reads as a stray hairline against black. Strip it. */
.cat-hero { padding-bottom: 72px; border-bottom: 0; }
.cat-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 28vw, 420px);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.cat-hero-text { min-width: 0; }
.cat-h1 {
  /* The base .pl-h1 is sized for a single brand line — the catalogue title
   * is two words ("Rokamat Katalog") + an edition. Step it down a notch so
   * the split layout reads as a hero instead of overwhelming the cover. */
  font-size: clamp(48px, 5.6vw, 84px);
  margin-bottom: 22px;
  max-width: 720px;
}
.cat-lead {
  max-width: 560px;
  margin-bottom: 22px;
}
.cat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
/* Adopts the existing .art-tags .tag look (index_news_article.css): square,
 * 1px outline, white fill, 12px copy, 6×12 padding. Same visual vocabulary
 * the news article uses for its tag row — keeps the design system honest. */
.cat-meta li {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 12px;
  color: #444;
  letter-spacing: .02em;
}
.cat-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.cat-cta-primary { /* uses .v2-btn base — orange, uppercase */ }
.cat-cta-primary .arrow {
  display: inline-block;
  transform: translateY(1px);
}
.cat-cta-primary:hover .arrow { transform: translate(0, 4px); }
.cat-cta-secondary {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rok-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rok-ink);
  padding: 4px 0;
  transition: color .2s ease, border-color .2s ease;
}
.cat-cta-secondary:hover {
  color: var(--rok-orange);
  border-color: var(--rok-orange);
}
.cat-pdf-meta {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--rok-text-muted-accessible);
  letter-spacing: .06em;
}

/* ----- COVER CARD -------------------------------------------------------- */
.cat-cover-card {
  display: block;
  align-self: start;
  background: #ffffff;
  border: 1px solid var(--rok-gray-200);
  padding: 14px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, .04),
    0 18px 40px -20px rgba(0, 0, 0, .28);
  transition: transform .25s var(--rok-ease, ease), box-shadow .25s var(--rok-ease, ease);
  text-decoration: none;
}
.cat-cover-card img {
  display: block;
  width: 100%;
  height: auto;
}
.cat-cover-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, .04),
    0 28px 56px -22px rgba(0, 0, 0, .35);
}

/* ----- ONLINE BLÄTTERN (Yumpu viewer section) --------------------------- */
.cat-viewer-section {
  background: #0b0b0c;
  color: #f3f3f3;
  padding: 72px 0 80px;
}
.cat-viewer-head {
  margin-bottom: 28px;
  max-width: 720px;
}
.cat-viewer-head h2 {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.01em;
  margin: 0 0 12px;
  color: #ffffff;
}
.cat-viewer-head p {
  margin: 0;
  font-size: 14px;
  color: #9d9d9d;
  letter-spacing: .04em;
}

.epaper-viewer {
  width: 100%;
}
.epaper-viewer-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #1a1a1a;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}
.epaper-viewer-frame:fullscreen {
  background: #000;
  border: none;
}
.epaper-viewer-cover {
  object-fit: cover;
  filter: blur(14px) brightness(.45);
  transform: scale(1.08); /* hide blur edge artefacts */
}
.epaper-viewer-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.epaper-viewer-gate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}
.epaper-viewer-gate-card {
  background: rgba(11, 11, 12, .82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 28px 28px 24px;
  max-width: 480px;
  color: #fff;
  text-align: left;
}
.epaper-viewer-gate-card h3 {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 12px;
  color: #fff;
}
.epaper-viewer-gate-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #cfcfcf;
  margin: 0 0 18px;
}
.epaper-viewer-gate-card a {
  color: var(--rok-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.epaper-viewer-gate-card a:hover { color: #fff; }
.epaper-viewer-load {
  /* uses .v2-btn base */
  background: var(--rok-orange);
}

.epaper-viewer-actions {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.epaper-viewer-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.epaper-viewer-action:hover {
  background: #fff;
  color: #0b0b0c;
  border-color: #fff;
}
.epaper-viewer-action--muted {
  color: #8d8d8d;
  border-color: rgba(255, 255, 255, .08);
}
.epaper-viewer-action--muted:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
}

/* ----- RESPONSIVE ------------------------------------------------------- */
@media (max-width: 960px) {
  .cat-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cat-cover-card {
    max-width: 360px;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .cat-h1 { font-size: clamp(40px, 9vw, 56px); }
  .cat-cta { flex-direction: column; align-items: flex-start; gap: 14px; }
  .epaper-viewer-frame { aspect-ratio: 3 / 4; }
  .epaper-viewer-gate-card { padding: 22px 18px; }
}
