/* RS CPT Shared CSS — Article + Profile-Strip + RS-CTA Block
 * Für CPT-Singles (report, knowledge, crew) — gemeinsame Styles aller 50 CPT-Posts.
 * Per-page CSS (2024.css etc.) enthält nur Hero-BG + RS-CTA-BG URLs.
 */

/* CPT Color Vars (anders als Home: --dark/--text/--muted statt --black/--white/--grey) */
.rs-cpt-vars {
  --dark: #181818;
  --darker: #111;
  --card: #1e1e1e;
  --text: #e8e8e8;
  --muted: #888;
  --border: rgba(255, 255, 255, 0.07);
}

/* Body override für CPT-Pages */
body.single-report, body.single-knowledge, body.single-crew {
  background: #181818;
  color: #e8e8e8;
  font-family: 'Raleway', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── ARTICLE HERO ── */
.article-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 48px 80px;
  overflow: hidden;
}
.article-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center 65%;
  background-size: cover;
  background-repeat: no-repeat;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,.96) 0%, rgba(17,17,17,.55) 50%, rgba(17,17,17,.25) 100%);
}
.article-hero-content {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color .2s, gap .2s;
}
.article-back:hover { color: #FE5000; gap: 14px; }
.article-back::before { content: '←'; }
.article-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #FE5000;
  margin-bottom: 8px;
  line-height: 1;
}
.article-title {
  font-family: 'League Gothic', sans-serif;
  font-size: clamp(72px, 12vw, 140px);
  line-height: .88;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}
.article-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  max-width: 620px;
  font-weight: 300;
  margin-bottom: 32px;
}
.article-meta {
  display: flex;
  gap: 24px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* ── ARTICLE BODY ── */
.article-body {
  padding: 96px 48px;
  background: #181818;
}
.article-inner {
  max-width: 760px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}
.article-inner > div[style*="space-between"] {
  max-width: 100%;
  box-sizing: border-box;
}
.article-inner p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #e8e8e8;
  margin-bottom: 24px;
  font-weight: 300;
}
.article-inner p.article-lead {
  font-size: 1.25rem !important;
  line-height: 1.65 !important;
  color: #fff !important;
  margin-bottom: 48px !important;
  font-weight: 400;
}
.article-inner h2 {
  font-family: 'League Gothic', sans-serif !important;
  font-size: clamp(36px, 4.5vw, 52px) !important;
  line-height: 1 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase;
  color: #fff;
  margin: 64px 0 24px !important;
}
.article-inner h2:first-child { margin-top: 0 !important; }
.article-inner blockquote {
  font-family: 'League Gothic', sans-serif !important;
  font-size: clamp(28px, 3.5vw, 42px) !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
  color: #FE5000 !important;
  border-left: 3px solid #FE5000 !important;
  padding: 8px 0 8px 32px !important;
  margin: 48px 0 !important;
  font-weight: normal !important;
  letter-spacing: .02em !important;
}

/* ── ARTICLE IMG + CAPTION ── */
.article-img {
  width: 100%;
  height: 400px;
  overflow: hidden;
  display: block;
  margin: 48px 0 0;
  background: #000;
}
.article-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
  display: block !important;
  max-width: none !important;
}
.article-img-caption {
  font-size: .68rem !important;
  font-weight: 600 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.7) !important;
  margin: 12px 0 56px !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

/* ── SLIDESHOW ── */
.article-slideshow {
  margin: 56px 0;
  position: relative;
  overflow: hidden;
  height: 520px;
  background: #111;
}
.story-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.story-slide.active { opacity: 1; }
.story-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.55);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: background .2s;
}
.slide-arrow:hover { background: #FE5000; }
.slide-prev { left: 16px; }
.slide-next { right: 16px; }
.slide-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.slide-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ── PHOTO GRIDS ── */
.article-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 56px 0;
}
.article-photo-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.article-photo-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 56px 0;
}
.article-photo-grid-3 img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* ── ARTICLE STATS ── */
.article-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: 72px 0 0;
}
.article-stat {
  background: #262626;
  padding: 32px 24px;
  text-align: center;
}
.article-stat-num {
  font-family: 'League Gothic', sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: #FE5000;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  word-break: break-word;
}
.article-stat-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #888;
  margin-top: 8px;
}

/* ── HISTORIE STRIP (3-Bild-Grid für Story-Anfang) ── */
.historie-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 56px;
}
.historie-strip-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
}
.historie-strip-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: grayscale(70%) brightness(.78);
  transition: filter .35s, transform .35s;
  margin: 0 !important;
  display: block;
  aspect-ratio: auto !important;
}
.historie-strip-item:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.04);
}
.historie-strip-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.85);
  pointer-events: none;
}
.historie-strip-eyebrow {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #888;
  margin: 48px 0 14px;
}

/* ── BLOCKQUOTE (Story-Style) ── */
.article-inner blockquote {
  font-family: 'League Gothic', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  text-transform: uppercase;
  color: #FE5000;
  border-left: 3px solid #FE5000;
  padding: 8px 0 8px 32px;
  margin: 48px 0;
  font-weight: normal;
  letter-spacing: .02em;
}

/* ── SLIDE-ARROWS (Prev/Next Buttons im Slideshow) ── */
.article-slideshow .slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.55);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: background .2s;
}
.article-slideshow .slide-arrow:hover { background: #FE5000; }
.article-slideshow .slide-prev { left: 16px; }
.article-slideshow .slide-next { right: 16px; }
.article-slideshow .slide-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.article-slideshow .slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .25s, transform .25s;
  border: none;
  padding: 0;
}
.article-slideshow .slide-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ── MOBILE: historie-strip stays 3-col, smaller gaps ── */
@media (max-width: 768px) {
  .historie-strip { gap: 4px; margin-bottom: 40px; }
}

/* ── PROFILE STRIP ── */
.profile-strip {
  background: #1e1e1e;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.profile-strip-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 48px;
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.profile-tag {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  align-items: center;
}
.profile-tag-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #888;
}
.profile-tag-value {
  font-size: .92rem;
  font-weight: 500;
  color: #fff;
}

/* ── RS-CTA ── */
.rs-cta {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.rs-cta-bg {
  position: absolute;
  inset: 0;
  background-position: center 25%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.12);
  animation: cta-drift 12s ease-in-out infinite;
}
/* Default CTA backgrounds — selector matches per-page CSS specificity, per-page CSS wins via load order */
.single-report .rs-cta-bg { background-image: url('https://runningsociety.de/wp-content/uploads/2026/06/cta-racerecap.jpg'); }
@keyframes cta-drift {
  0% { transform: scale(1.12) translateX(0); }
  50% { transform: scale(1.12) translateX(-3%); }
  100% { transform: scale(1.12) translateX(0); }
}
.rs-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(254,80,0,.18) 0%, rgba(20,20,20,.82) 35%, rgba(20,20,20,.76) 100%);
}
.rs-cta-content {
  position: relative;
  z-index: 2;
}
.rs-cta-title {
  font-family: 'League Gothic', sans-serif;
  font-size: clamp(64px, 9vw, 116px);
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  margin-bottom: 40px;
  color: #fff;
}
.rs-cta-title em {
  color: #FE5000;
  font-style: normal;
}

/* ── ARTICLE FOOTER BAR ── */
.article-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 48px 0 0;
}
.article-footer-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin: 0;
}
.article-footer-date {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .article-hero { padding: 120px 24px 56px; min-height: 70vh; }
  .article-title { font-size: clamp(60px, 16vw, 96px); }
  .article-body { padding: 64px 24px; }
  .article-inner p { font-size: 1rem; }
  .article-inner p.article-lead { font-size: 1.1rem; margin-bottom: 36px; }
  .article-stats { margin-left: -24px; margin-right: -24px; grid-template-columns: repeat(2, 1fr); }
  .article-stats[style="grid-template-columns:repeat(1,1fr)"] { margin-left: 0; margin-right: 0; }
  .profile-strip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: 24px; justify-items: start; align-items: start; }
  .article-slideshow { height: 340px; }
  .article-photo-grid, .article-photo-grid-3 { grid-template-columns: 1fr; }
}
