/* =========================================================================
   Rokamat — Long-Form Content Page (pg-*)
   Used for: Unternehmen, Service, Geschichte, Umwelt, Messen, Informationen-
   Akkus, Highlights, CAS-Partner — Editorial layout, sticky TOC.
   ========================================================================= */

/* ----- HERO -------------------------------------------------------------- */
.pg-hero {
  background: #fff;
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--rok-gray-200);
}
.pg-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.pg-hero-text { max-width: 620px }
.pg-hero-text .v2-eyebrow { margin-bottom: 18px }
.pg-h1 {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -.005em;
  margin: 0 0 24px;
  color: var(--rok-ink);
}
.pg-h1 .ro {
  font-weight: 700;
  font-style: italic;
  color: var(--rok-orange);
}
.pg-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--rok-fg-muted);
  max-width: 540px;
  margin: 0;
}
.pg-hero-img {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--rok-gray-100);
  overflow: hidden;
}
.pg-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pg-hero-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--rok-orange);
  color: #fff;
  padding: 14px 18px;
  min-width: 140px;
}
.pg-hero-badge .big {
  font-weight: 900; font-style: italic;
  font-size: 32px; letter-spacing: -.02em;
  line-height: 1;
}
.pg-hero-badge .lab {
  font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .pg-hero-inner { grid-template-columns: 1fr; gap: 32px }
  .pg-hero-img { aspect-ratio: 16 / 10 }
}

/* ----- STATS BAND -------------------------------------------------------- */
.pg-stats {
  background: var(--rok-ink);
  color: #fff;
  padding: 40px 0;
}
.pg-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.pg-stat .num {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 900; font-style: italic;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.02em;
  line-height: 1;
  color: #fff;
}
.pg-stat .lab {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  margin-top: 8px;
}
.pg-stat + .pg-stat { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12) }
.pg-stat:first-child { padding-left: 0; border-left: none }

@media (max-width: 760px) {
  .pg-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px }
  .pg-stat:nth-child(3) { padding-left: 0; border-left: none }
}

/* ----- BODY GRID --------------------------------------------------------- */
.pg-body { padding: 80px 0 96px; background: #fff }
.pg-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 1000px) {
  .pg-grid { grid-template-columns: 1fr; gap: 32px }
  .pg-toc { position: static !important; max-height: none !important }
}

/* ----- TOC --------------------------------------------------------------- */
.pg-toc {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 24px);
  align-self: start;
  font-size: 13px;
}
.pg-toc-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rok-fg-muted);
  margin-bottom: 14px;
}
.pg-toc-list {
  list-style: none;
  padding: 0; margin: 0;
  border-left: 1px solid var(--rok-gray-200);
}
.pg-toc-list li { margin: 0 }
.pg-toc-list a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 16px;
  color: var(--rok-fg-muted);
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color .12s, border-color .12s, background .12s;
}
.pg-toc-list a:hover {
  color: var(--rok-ink);
  border-left-color: var(--rok-orange);
  background: var(--rok-gray-100);
}
.pg-toc-list .n {
  font-weight: 700; font-style: italic;
  font-size: 11px; letter-spacing: .04em;
  color: var(--rok-orange);
  flex: 0 0 auto;
}
.pg-toc-list .t { font-weight: 500 }

/* ----- SECTIONS ---------------------------------------------------------- */
.pg-text { max-width: 760px }
.pg-sec { margin-bottom: 80px; scroll-margin-top: calc(var(--nav-h, 72px) + 24px) }
.pg-sec:last-child { margin-bottom: 0 }

.pg-sec-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--rok-ink);
}
.pg-sec-num {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 900; font-style: italic;
  font-size: 14px; letter-spacing: .04em;
  color: var(--rok-orange);
}
.pg-sec h2 {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.005em;
  margin: 0;
  color: var(--rok-ink);
}

.pg-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--rok-fg);
  margin: 0 0 16px;
}
.pg-text p.lead {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--rok-ink);
  margin-bottom: 24px;
}
.pg-text h3 {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .01em;
  margin: 32px 0 10px;
  color: var(--rok-ink);
}

/* ----- TIMELINE ---------------------------------------------------------- */
.pg-timeline {
  margin-top: 32px;
  border-top: 1px solid var(--rok-gray-200);
}
.pg-tl-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rok-gray-200);
}
.pg-tl-year {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 900; font-style: italic;
  font-size: 28px;
  color: var(--rok-orange);
  letter-spacing: -.02em;
  line-height: 1;
}
.pg-tl-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--rok-ink);
}
.pg-tl-text p {
  margin: 0;
  font-size: 15px;
  color: var(--rok-fg-muted);
  line-height: 1.6;
}

/* ----- VALUES (4 cards) ------------------------------------------------- */
.pg-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--rok-gray-200);
  border-left: 1px solid var(--rok-gray-200);
}
.pg-value {
  border-right: 1px solid var(--rok-gray-200);
  border-bottom: 1px solid var(--rok-gray-200);
  padding: 28px 24px;
  background: #fff;
  transition: background .15s;
}
.pg-value:hover { background: var(--rok-gray-100) }
.pg-value .n {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 900; font-style: italic;
  font-size: 13px; letter-spacing: .04em;
  color: var(--rok-orange);
  margin-bottom: 14px;
}
.pg-value h4 {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--rok-ink);
}
.pg-value p {
  margin: 0;
  font-size: 14px;
  color: var(--rok-fg-muted);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .pg-values { grid-template-columns: 1fr }
}

/* ----- SPLIT (text + image) --------------------------------------------- */
.pg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 8px;
}
.pg-split-img img {
  width: 100%; height: auto;
  display: block;
  background: var(--rok-gray-100);
}
.pg-bullets {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.pg-bullets li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--rok-gray-200);
  font-size: 15px;
  line-height: 1.5;
}
.pg-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 8px; height: 8px;
  background: var(--rok-orange);
}
.pg-bullets strong { color: var(--rok-ink); margin-right: 4px }

@media (max-width: 760px) {
  .pg-split { grid-template-columns: 1fr; gap: 24px }
}

/* ----- CAS CARD ---------------------------------------------------------- */
.pg-cas-card {
  background: var(--rok-ink);
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  margin-top: 8px;
}
.pg-cas-text {
  padding: 40px 32px;
  display: flex; flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.pg-cas-text .v2-eyebrow {
  color: var(--rok-orange);
  margin-bottom: 14px;
}
.pg-cas-text h3 {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -.01em;
}
.pg-cas-text h3 em {
  font-weight: 900;
  font-style: italic;
  color: var(--rok-orange);
}
.pg-cas-text p {
  margin: 0 0 22px;
  color: rgba(255,255,255,.75);
  font-size: 15px;
  line-height: 1.65;
}
.pg-cas-img {
  background: var(--rok-gray-100);
  overflow: hidden;
  min-height: 280px;
}
.pg-cas-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 760px) {
  .pg-cas-card { grid-template-columns: 1fr }
}

/* ----- TABLE (Zahlen & Fakten) ------------------------------------------ */
.pg-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 15px;
}
.pg-table th {
  text-align: left;
  font-weight: 700;
  font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rok-fg-muted);
  padding: 14px 16px 14px 0;
  width: 220px;
  border-bottom: 1px solid var(--rok-gray-200);
  vertical-align: top;
}
.pg-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--rok-gray-200);
  color: var(--rok-ink);
  line-height: 1.5;
}

/* ----- CTA BAR ----------------------------------------------------------- */
.pg-sec-cta { padding-top: 8px }
.pg-cta-inner {
  background: var(--rok-gray-100);
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  border-left: 4px solid var(--rok-orange);
}
.pg-cta-inner h2 {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(26px, 3vw, 36px);
  margin: 8px 0 6px;
  color: var(--rok-ink);
  letter-spacing: -.005em;
}
.pg-cta-inner p {
  margin: 0;
  color: var(--rok-fg-muted);
  font-size: 15px;
  line-height: 1.55;
}
.pg-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.v2-btn.ghost {
  background: transparent;
  color: var(--rok-ink);
  border: 1px solid var(--rok-ink);
}
.v2-btn.ghost:hover {
  background: var(--rok-ink);
  color: #fff;
}

@media (max-width: 760px) {
  .pg-cta-inner { grid-template-columns: 1fr }
  .pg-cta-actions { justify-content: flex-start }
}
