/* ============================================================
   PROJEKT DETAIL PAGE
   ============================================================ */

body {
  background: var(--bg);
  max-width: var(--max-w);
  margin: 0 auto;
  overflow-x: hidden;
}

/* ── Intro Screen: genau 100vh ──────────────────────────────── */
/* Titel sitzt oben, Hero-Bild klebt unten am Viewport-Rand     */
.pd-intro-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* ── Title ──────────────────────────────────────────────────── */
/* Figma: Titel top:270px → padding-top damit Titel bei ~270px  */
.pd-title-wrap {
  padding: 210px 29px 0;
  flex-shrink: 0;
}

.pd-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--dark);
  margin: 0;
  white-space: nowrap;
}

.pd-category {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  color: #a5a5a5;
  margin: 4px 0 0;
}

/* ── Badge: Chrome Waber-Shimmer ────────────────────────────── */
.pd-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 0 18px;
  height: 32px;
  line-height: 32px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: #d8d8d8;
  white-space: nowrap;
  /* Schmaler, weicher Lichtstreifen der durch dunkles Chrom wabiert */
  background: linear-gradient(
    105deg,
    #1a1a1a 0%,
    #222    25%,
    #444    38%,
    #888    46%,
    #aaa    50%,
    #888    54%,
    #444    62%,
    #222    75%,
    #1a1a1a 100%
  );
  background-size: 350% 100%;
  /* Unregelmäßiges Wabern: langsam rein, kurz hold, schnell raus */
  animation: pd-chrome 4s ease-in-out infinite;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 3px rgba(0,0,0,0.5);
}

@keyframes pd-chrome {
  0%   { background-position: 160% 50%; }
  20%  { background-position: 100% 50%; }
  55%  { background-position: 40%  50%; }
  75%  { background-position: 10%  50%; }
  100% { background-position: 160% 50%; }
}

/* ── Hero Image: klebt am unteren Rand des Intro-Screens ─────── */
.pd-hero-img {
  flex-shrink: 0;
  width: 100%;
  height: 311px;
}

.pd-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Leistungen ─────────────────────────────────────────────── */
.pd-leistungen {
  padding: 40px 29px 0;
}

.pd-leistungen-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: #a5a5a5;
  margin: 0 0 8px;
}

.pd-leistungen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pd-leistungen-grid div p {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--dark);
  margin: 0;
  line-height: 2;
}

/* ── Zeilen-Einblend-Animation ──────────────────────────────── */
@keyframes pd-line-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.pd-line-reveal {
  opacity: 0;
  animation: pd-line-in 0.06s linear forwards;
}

/* ── Text Block ─────────────────────────────────────────────── */
.pd-text-block {
  position: relative;
  margin-top: 40px;
  padding: 0 29px;
}

.pd-text-inner {
  max-height: 344px;
  overflow: hidden;
}

.pd-text-inner p {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  color: #262626;
  margin: 0 0 12px;
}
.pd-text-inner p:last-child { margin-bottom: 0; }

.pd-text-gradient {
  position: absolute;
  bottom: 48px;
  left: 0;
  width: 100%;
  height: 138px;
  background: linear-gradient(to bottom, rgba(247, 246, 244, 0), #f7f6f5);
  pointer-events: none;
}

.pd-mehr-btn {
  display: block;
  margin: 16px auto 0;
  background: transparent;
  border: 1.8px solid #151516;
  border-radius: 20px;
  padding: 0 28px;
  height: 39px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: #151515;
  cursor: pointer;
  white-space: nowrap;
}

/* ── Gallery ─────────────────────────────────────────────────── */
.pd-gallery {
  margin-top: 32px;
  padding: 0 29px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pd-gallery-img {
  width: 335px;
  height: 245px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
