/* ═══════════════════════════════════════════════
   LEISTUNG.CSS — Sub-page styles (Detail-Seiten)
   Erweitert style.css. Tokens aus :root.
═══════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   PAGE BASE
───────────────────────────────────────────── */
body.leistung-page {
  background: var(--cream);
  color: var(--text);
}


/* Nav-Anpassung für Sub-Pages: Brand-Block bleibt statisch sichtbar */
.leistung-page .nav { background: rgba(255,255,255,0.78); backdrop-filter: blur(14px); }
.leistung-page .nav__center { display: flex; justify-content: center; align-items: center; }
.nav__brand-link {
  text-decoration: none;
  color: var(--text);
  text-align: center;
  display: inline-block;
}
.nav__brand-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.nav__brand-tag {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Back-Link (frei oben-links) */
.leistung__back {
  position: fixed;
  top: 6.2rem;
  left: 5vw;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  z-index: 50;
  transition: color 0.3s, transform 0.3s;
}
.leistung__back:hover { color: var(--text); transform: translateX(-3px); }
.leistung__back svg { transition: transform 0.3s; }
.leistung__back:hover svg { transform: translateX(-4px); }

/* ─────────────────────────────────────────────
   HERO — Cinematic Walk-In Canvas Scrubbing
───────────────────────────────────────────── */
.lhero--cinema {
  position: relative;
  height: 220vh; /* Scroll-Distanz für Frame-Scrubbing */
  background: #000;
}
.lhero__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.lhero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #1A1413;
}
.lhero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.18) 22%,
    rgba(0,0,0,0) 44%,
    rgba(0,0,0,0.48) 76%,
    rgba(0,0,0,0.84) 100%
  );
  pointer-events: none;
  z-index: 2;
}
.lhero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 14vh 5vw 8vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
  pointer-events: none;
}
.lhero__badge {
  align-self: flex-start;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
}
.lhero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7.2vw, 156px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  max-width: 14ch;
  text-shadow: 0 2px 40px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.45);
  hyphens: none;
  overflow-wrap: normal;
  word-break: keep-all;
  margin-top: auto;
}
.lhero__sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.3;
  color: rgba(255,255,255,0.8);
  max-width: 32ch;
  margin-top: 1.4rem;
  text-shadow: 0 1px 24px rgba(0,0,0,0.4);
}
.lhero__scroll-cue {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  z-index: 4;
}
.lhero__line {
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.lhero__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  animation: lhero-line 2.6s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}
@keyframes lhero-line {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

/* ─────────────────────────────────────────────
   MANIFESTO — Dunkel, wortweise Reveal
───────────────────────────────────────────── */
.manifesto {
  background: #1A1413;
  color: var(--cream);
  padding: 24vh 8vw;
  position: relative;
}
.manifesto__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 84px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 0 auto;
  text-align: left;
}
.manifesto__text em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.manifesto__word {
  display: inline-block;
  opacity: 0.18;
  transition: opacity 0.4s ease;
  margin-right: 0.24em;
}
.manifesto__word.is-active { opacity: 1; }

/* ─────────────────────────────────────────────
   STORY — Material-Erzählung 2-Spalten
───────────────────────────────────────────── */
.story {
  padding: 18vh 5vw;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8vh;
}
.story__intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4vw;
  align-items: end;
}
.story__intro .label { padding-bottom: 0.6rem; }
.story__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  hyphens: none;
  overflow-wrap: normal;
  word-break: keep-all;
}
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 6vw;
  align-items: start;
}
.story__copy {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-top: 1rem;
}
.story__copy p {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.65;
  color: var(--text);
}
.story__copy p:first-child {
  font-size: clamp(18px, 1.3vw, 22px);
  line-height: 1.5;
  font-weight: 500;
}
.story__pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding: 0;
}
.story__pills li {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.55rem 1rem;
  border: 1px solid var(--concrete);
  border-radius: 100px;
}
.story__media {
  margin: 0;
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
}
.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────────
   PROCESS — Pinned Sticky Step-Stack
───────────────────────────────────────────── */
.proc {
  padding: 14vh 5vw 8vh;
  border-top: 1px solid var(--concrete);
}
.proc__intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4vw;
  align-items: end;
  margin-bottom: 10vh;
}
.proc__intro .label { padding-bottom: 0.4rem; }
.proc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.proc__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.proc__step {
  padding: 5vh 0;
  border-top: 1px solid var(--concrete);
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 4vw;
  align-items: start;
}
.proc__step:last-child { border-bottom: 1px solid var(--concrete); }
.proc__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.proc__step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.proc__step-text {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 52ch;
}

/* ─────────────────────────────────────────────
   SPECS — Daten-Grid
───────────────────────────────────────────── */
.specs {
  padding: 14vh 5vw;
  background: var(--cream-2);
}
.specs__intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4vw;
  align-items: end;
  margin-bottom: 6vh;
}
.specs__intro .label { padding-bottom: 0.4rem; }
.specs__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--concrete);
  border: 1px solid var(--concrete);
}
.specs__item {
  background: var(--cream-2);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 140px;
  transition: background 0.3s;
}
.specs__item:hover { background: var(--cream); }
.specs__key {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.specs__val {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.3vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ─────────────────────────────────────────────
   CASES — Anwendungsbereiche
───────────────────────────────────────────── */
.cases {
  padding: 14vh 5vw;
}
.cases__intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4vw;
  align-items: end;
  margin-bottom: 8vh;
}
.cases__intro .label { padding-bottom: 0.4rem; }
.cases__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.cases__card {
  background: #1A1413;
  color: var(--cream);
  padding: 3rem 2rem 2.4rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.cases__card:hover { background: #211816; }
.cases__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: auto;
}
.cases__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.cases__desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  max-width: 30ch;
}

/* ─────────────────────────────────────────────
   CTA — Editorial mit Gold-Akzent
───────────────────────────────────────────── */
.lcta {
  background: #1A1413;
  color: var(--cream);
  padding: 22vh 5vw;
  text-align: center;
}
.lcta__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  align-items: center;
}
.lcta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.lcta__sub {
  font-size: clamp(15px, 1.1vw, 18px);
  color: rgba(255,255,255,0.65);
  max-width: 48ch;
}
.lcta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.2rem 2.4rem;
  background: var(--gold);
  color: #1A1413;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 100px;
  transition: transform 0.3s, background 0.3s;
}
.lcta__btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.lcta__btn svg { transition: transform 0.3s; }
.lcta__btn:hover svg { transform: translateX(4px); }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .story__grid { grid-template-columns: 1fr; gap: 6vh; }
  .proc__step { grid-template-columns: 60px 1fr; gap: 2vw; }
  .proc__step-text { grid-column: 2; }
  .specs__grid { grid-template-columns: repeat(2, 1fr); }
  .cases__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .leistung__back { top: 5rem; }
  .lhero--cinema { height: 180vh; }
  .lhero__overlay { padding: 12vh 6vw 6vh; }
  .lhero__title { font-size: clamp(40px, 11vw, 72px); }
  .manifesto { padding: 16vh 7vw; }
  .specs__grid { grid-template-columns: 1fr; }
  .proc__intro, .specs__intro, .cases__intro { grid-template-columns: 1fr; gap: 1.5rem; }
}
