/* ═══════════════════════════════════════════════════
   PROJEKT-DETAIL — eine gemeinsame Bühne für ALLE
   Projekt-Unterseiten (gewerbepark, salurnerstrasse,
   villa-maria, kinkstrasse, egerbach, wohngebaeude-sparchen).

   Präsentations-orientiert (nicht verkaufend): die Projekte
   werden mit Ruhe, Klarheit und Stolz gezeigt.
   Designsprache identisch zu objekt-detail.css.
   Tokens kommen aus base.css (--navy, --gold, --cream …).
═══════════════════════════════════════════════════ */

body.pd { font-weight: 300; line-height: 1.7; background: var(--cream); }

/* ── Reveal (objekt-detail.js setzt .js-ready auf <html>) ── */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js-ready .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ── Wiederkehrende Bausteine ── */
.pd-section { padding: clamp(56px, 9vh, 104px) 0; }
.pd-eyebrow {
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.pd-h2 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 10px;
}
.pd-h2 em { font-style: italic; color: var(--gold); }
.pd-lead {
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.85;
  color: var(--muted);
  max-width: 64ch;
}
.pd-lead + .pd-lead { margin-top: 1.1em; }

/* ═══════════ HERO (Navy) ═══════════ */
.pd-hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(104px, 13vh, 150px) 0 clamp(96px, 13vh, 150px);
  position: relative;
  overflow: hidden;
}
.pd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 460px at 82% -12%, rgba(240,180,41,0.15), transparent 60%);
  pointer-events: none;
}
.pd-hero .container { position: relative; z-index: 1; }

.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: clamp(22px, 4vh, 38px);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pd-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.pd-back:hover { color: var(--gold-bright); transform: translateX(-4px); }

.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(240,180,41,0.14);
  border: 1px solid rgba(240,180,41,0.42);
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.pd-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 0 rgba(240,180,41,0.6);
  animation: pd-pulse 2.2s infinite;
}
.pd-badge--planning {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.9);
}
.pd-badge--planning .dot { background: rgba(255,255,255,0.85); box-shadow: none; animation: none; }
@keyframes pd-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(240,180,41,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(240,180,41,0); }
  100% { box-shadow: 0 0 0 0 rgba(240,180,41,0); }
}

.pd-hero .pd-eyebrow { color: var(--gold-bright); }
.pd-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.pd-title em { font-style: italic; color: var(--gold-bright); }
.pd-sub {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 2.4vw, 28px);
  color: rgba(255,255,255,0.82);
  max-width: 40ch;
}

.pd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.pd-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.pd-pill:hover { border-color: rgba(240,180,41,0.5); background: rgba(240,180,41,0.08); }
.pd-pill svg { width: 15px; height: 15px; stroke: var(--gold-bright); fill: none; stroke-width: 2.2; }

/* ═══════════ FEATURE-BILD (überlappt den Hero) ═══════════ */
.pd-feature {
  margin-top: clamp(-120px, -10vh, -80px);
  position: relative;
  z-index: 2;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  box-shadow: 0 40px 90px -40px rgba(11,28,53,0.6);
}
.pd-feature img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.pd-feature:hover img { transform: scale(1.03); }
.pd-feature-cap {
  margin: 14px 2px 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ═══════════ STORY (Cream) ═══════════ */
.pd-story { padding-top: clamp(48px, 7vh, 84px); }
.pd-story-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.pd-story-side {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: 0 30px 70px -40px rgba(11,28,53,0.32);
}
.pd-story-side::before {
  content: "";
  display: block;
  height: 4px;
  width: 54px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  margin-bottom: 22px;
}
.pd-side-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.pd-highlights { list-style: none; display: grid; gap: 14px; }
.pd-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--navy);
  line-height: 1.45;
}
.pd-check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.pd-check svg { width: 13px; height: 13px; stroke: var(--gold); fill: none; stroke-width: 2.6; }

/* ═══════════ CHRONIK / TIMELINE (optional, Navy) ═══════════ */
.pd-timeline-sec { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.pd-timeline-sec::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 360px at 100% 0%, rgba(240,180,41,0.12), transparent 60%);
  pointer-events: none;
}
.pd-timeline-sec .container { position: relative; z-index: 1; }
.pd-timeline-sec .pd-eyebrow { color: var(--gold-bright); }
.pd-timeline-sec .pd-h2 { color: var(--white); }
.pd-timeline-sec .pd-h2 em { color: var(--gold-bright); }
.pd-timeline {
  margin-top: clamp(34px, 5vh, 56px);
  max-width: 760px;
  padding-left: clamp(30px, 5vw, 54px);
  position: relative;
}
.pd-timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px;
  left: clamp(6px, 1.5vw, 14px);
  width: 2px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, rgba(201,151,42,0.12));
}
.pd-tl-item { position: relative; padding-bottom: clamp(30px, 5vh, 48px); }
.pd-tl-item:last-child { padding-bottom: 0; }
.pd-tl-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(30px, 5vw, 54px) + clamp(6px, 1.5vw, 14px) - 6px);
  top: 5px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold-bright);
  box-shadow: 0 0 0 4px var(--navy), 0 0 16px rgba(240,180,41,0.4);
}
.pd-tl-year {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 8px;
}
.pd-tl-text { font-size: 15.5px; color: rgba(255,255,255,0.78); line-height: 1.65; max-width: 52ch; }
.pd-tl-text b { color: var(--white); font-weight: 500; }

/* ═══════════ GALERIE ═══════════ */
.pd-gallery-sec { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pd-gallery {
  margin-top: clamp(28px, 4vh, 44px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(165px, 21vw, 252px);
  grid-auto-flow: dense;
  gap: 16px;
}
.pd-g {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  box-shadow: 0 22px 50px -30px rgba(11,28,53,0.5);
}
.pd-g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pd-g:hover img { transform: scale(1.05); }
.pd-g figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 18px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(0deg, rgba(11,28,53,0.78), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pd-g:hover figcaption { opacity: 1; transform: none; }
/* Span-Varianten */
.pd-g--a    { grid-column: span 4; grid-row: span 2; }
.pd-g--b    { grid-column: span 2; }
.pd-g--c    { grid-column: span 2; }
.pd-g--wide { grid-column: span 6; }
.pd-g--half { grid-column: span 3; }
.pd-g--tall { grid-column: span 2; grid-row: span 2; }

/* ═══════════ ECKDATEN ═══════════ */
.pd-facts { background: var(--cream); }
.pd-facts-grid {
  margin-top: clamp(28px, 4vh, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pd-fact {
  background: var(--white);
  padding: 26px 24px;
  transition: background var(--dur) var(--ease);
}
.pd-fact:hover { background: var(--cream); }
.pd-fact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.pd-fact-value {
  font-family: var(--ff-serif);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.18;
}

/* ═══════════ ABSCHLUSS-BAND (Navy, Präsentation) ═══════════ */
.pd-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: clamp(64px, 10vh, 112px) 0;
  position: relative;
  overflow: hidden;
}
.pd-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 380px at 50% 120%, rgba(240,180,41,0.16), transparent 60%);
  pointer-events: none;
}
.pd-band-inner { position: relative; z-index: 1; }
.pd-band .pd-eyebrow { color: var(--gold-bright); }
.pd-band h2 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  margin-bottom: 14px;
}
.pd-band h2 em { font-style: italic; color: var(--gold-bright); }
.pd-band p {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  max-width: 58ch;
  margin: 0 auto 30px;
}
.pd-band-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Buttons (dezent, präsentierend) */
.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-md);
  font-family: var(--ff-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pd-btn svg { width: 18px; height: 18px; flex: none; }
.pd-btn:hover { transform: translateY(-2px); }
.pd-btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--navy);
  box-shadow: 0 16px 32px -14px rgba(201,151,42,0.7);
}
.pd-btn--primary svg { fill: var(--navy); }
.pd-btn--primary:hover { box-shadow: 0 22px 40px -14px rgba(201,151,42,0.85); }
.pd-btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.32);
}
.pd-btn--ghost svg { fill: none; stroke: var(--gold-bright); stroke-width: 2; }
.pd-btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 980px) {
  .pd-story-grid { grid-template-columns: 1fr; }
  .pd-facts-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-feature { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .pd-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 38vw, 220px); }
  .pd-g--a, .pd-g--wide, .pd-g--half, .pd-g--tall { grid-column: span 2; grid-row: span 1; }
  .pd-g--b, .pd-g--c { grid-column: span 1; }
}
@media (max-width: 600px) {
  .pd-feature { aspect-ratio: 4 / 3; margin-top: clamp(-72px, -8vh, -52px); }
  .pd-facts-grid { grid-template-columns: 1fr; }
  .pd-gallery { grid-template-columns: 1fr; grid-auto-rows: clamp(200px, 56vw, 260px); }
  .pd-g--a, .pd-g--b, .pd-g--c, .pd-g--wide, .pd-g--half, .pd-g--tall { grid-column: span 1; grid-row: span 1; }
  .pd-band-btns { flex-direction: column; }
  .pd-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
  .pd-badge .dot { animation: none; }
}
