/* ═══════════════════════════════════════
   Projekte Detail — Figma 2189:3293
   Page-scoped styles only. Shared chrome stays in styles-v4.css.
   ═══════════════════════════════════════ */

.page-projekte-detail {
  background: var(--white);
}

.pd-hero {
  position: relative;
  min-height: 539px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(17deg, rgba(0, 0, 0, 1) 9%, rgba(0, 0, 0, 0) 58%),
    radial-gradient(circle at 82% 12%, rgba(255, 157, 124, 0.18), transparent 28%),
    linear-gradient(135deg, #000 0%, #0f1112 54%, #050505 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--color);
}

.pd-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.86) 100%),
    radial-gradient(ellipse at 20% 95%, rgba(255, 157, 124, 0.14), transparent 34%);
  pointer-events: none;
}

.pd-hero__inner {
  padding-top: 120px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 511px) minmax(0, 592px);
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  width: 100%;
  padding-bottom: 111px;
}

.pd-hero__title {
  color: var(--color);
}

.pd-hero__intro {
  max-width: 592px;
  color: var(--color);
}

.pd-content {
  padding: 73px 0 0;
}

.pd-content__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 73px;
}

.pd-accent {
  width: 198px;
  height: 5px;
  opacity: 0;
}

.pd-principles {
  width: 100%;
  display: grid;
  grid-template-columns: 355fr 349fr 365fr;
  gap: 24px;
  align-items: stretch;
}

.pd-principle {
  position: relative;
  min-height: 171px;
  display: flex;
  flex-direction: column;
  gap: 53px;
}

.pd-principle:not(:first-child)::before,
.pd-principle:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -13px;
  width: 1px;
  background: var(--color-2);
}

.pd-principle h2 {
  color: var(--black);
}

.pd-principle p,
.pd-history__body p {
  font-size: 16px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: -0.01em;
  color: var(--soft);
}

.pd-main-image {
  width: 100%;
  height: 793px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color);
}

.pd-main-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.pd-history {
  width: min(1021px, 100%);
  display: grid;
  grid-template-columns: 1fr 619px;
  gap: 10px;
  align-items: start;
  padding: 10px;
}

.pd-history__title {
  color: var(--black);
}

.pd-history__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-history__body img {
  width: 100%;
  height: 309px;
  max-width: none;
  object-fit: cover;
  border-radius: var(--radius);
}

.pd-section-heading {
  width: min(874px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pd-section-heading h2 {
  color: var(--black);
}

.pd-section-heading p:not(.pd-eyebrow),
.pd-next__copy p:not(.pd-eyebrow) {
  max-width: 690px;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.01em;
  color: var(--soft);
}

.pd-eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--main);
}

.pd-results {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 54px;
  border-radius: var(--radius);
  background: var(--color);
}

.pd-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pd-kpi-card {
  min-height: 268px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-left: 1px solid var(--color-2);
  background: var(--white);
}

.pd-kpi-card--dark {
  background: var(--black);
  border-color: rgba(255, 255, 255, 0.22);
}

.pd-kpi-card__label,
.pd-kpi-card__text {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 23px;
  letter-spacing: -0.01em;
  color: var(--soft);
}

.pd-kpi-card__value {
  margin: 0;
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--black);
}

.pd-kpi-card--dark .pd-kpi-card__label,
.pd-kpi-card--dark .pd-kpi-card__text {
  color: var(--color-2);
}

.pd-kpi-card--dark .pd-kpi-card__value {
  color: var(--main);
}

.pd-visual-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.38fr 1fr;
  grid-template-rows: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.pd-visual {
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color);
}

.pd-visual--large {
  grid-row: span 2;
  min-height: 548px;
}

.pd-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.pd-next {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
  justify-content: space-between;
  align-items: end;
  gap: 44px;
  padding: 58px 54px;
  border-radius: var(--radius);
  background: var(--black);
}

.pd-next__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pd-next__copy h2 {
  color: var(--color);
}

.pd-next__copy p:not(.pd-eyebrow) {
  color: var(--color-2);
}

.pd-next__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.pd-next__link {
  color: var(--color);
  border-color: rgba(255, 255, 255, 0.24);
}

.page-projekte-detail .footer {
  margin-top: 0;
}

@media (max-width: 1228px) {
  .pd-hero__inner,
  .pd-content__inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .pd-principles {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .pd-hero {
    min-height: 520px;
  }

  .pd-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 64px;
  }

  .pd-hero__intro {
    max-width: 720px;
  }

  .pd-principles {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pd-principle {
    min-height: auto;
    gap: 18px;
    padding-left: 24px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--color-2);
  }

  .pd-principle::before,
  .pd-principle:first-child::before,
  .pd-principle:not(:first-child)::before {
    left: 0;
  }

  .pd-main-image {
    height: min(66vw, 640px);
  }

  .pd-history {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 32px;
    padding: 0;
  }

  .pd-kpis,
  .pd-visual-grid,
  .pd-next {
    grid-template-columns: 1fr;
  }

  .pd-results,
  .pd-next {
    padding: 42px 34px;
  }

  .pd-visual-grid {
    grid-template-rows: none;
  }

  .pd-visual--large {
    grid-row: auto;
    min-height: min(62vw, 520px);
  }

  .pd-next {
    align-items: start;
  }

  .pd-next__actions {
    justify-content: flex-start;
  }

  .pd-history__body img {
    height: min(50vw, 420px);
  }
}

@media (max-width: 640px) {
  .pd-hero {
    min-height: 560px;
  }

  .pd-hero__inner,
  .pd-content__inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pd-hero__inner {
    padding-bottom: 46px;
  }

  .pd-content {
    padding-top: 48px;
  }

  .pd-content__inner {
    gap: 48px;
  }

  .pd-accent {
    display: none;
  }

  .pd-main-image {
    height: 320px;
  }

  .pd-results,
  .pd-next {
    padding: 30px 22px;
  }

  .pd-section-heading p:not(.pd-eyebrow),
  .pd-next__copy p:not(.pd-eyebrow) {
    font-size: 16px;
    line-height: 25px;
  }

  .pd-kpi-card {
    min-height: 232px;
    padding: 24px;
  }

  .pd-visual,
  .pd-visual--large,
  .pd-history__body img {
    min-height: 0;
    height: 230px;
  }

  .pd-next__actions,
  .pd-next__actions .btn {
    width: 100%;
  }

  .page-projekte-detail .footer {
    margin-top: 64px;
  }
}


/* ═══ Figma Desktop Parity Pass — Projekte Detail 2189:3293 ═══ */
@media (min-width: 1025px) {
  .pd-content { padding-top: 0; }
  .pd-content__inner { gap: 73px; }
  .pd-results,
  .pd-visual-grid { display: none !important; }
  .pd-main-image { height: 793px; order: 3; }
  .pd-principles { order: 2; }
  .pd-history { order: 4; }
  .pd-history + .pd-history { order: 5; }
  .pd-history + .pd-history + .pd-history { order: 6; }
  .pd-final-cta { order: 7; width: 1512px; max-width: none; min-height: 837px; margin-top: 0; display: flex; align-items: center; justify-content: center; background: var(--black); color: var(--white); }
  .pd-final-cta__inner { width: 1177px; display: flex; flex-direction: column; gap: 40px; align-items: stretch; }
  .pd-final-cta__title { margin: 0; color: var(--white); font-size: 68px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
  .pd-final-cta__title span { color: var(--color-2); }
  .pd-final-cta__actions { display: flex; gap: 20px; flex-wrap: wrap; }
}
