/* ─────────────────────────────────────────
   PROJEKT DETAILSEITE
───────────────────────────────────────── */
.project-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 5rem) 5% 8rem;
}

/* ── Hero ── */
.pd-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.pd-hero-text {
  flex: 1;
}

/* .pd-hero-text h1 {
  line-height: 1.1;
  margin-bottom: 1.5rem;
} */

/* .pd-overview-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
} */

/* .pd-overview-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
} */

.pd-hero-image {
  flex: 0 0 480px;
}

.pd-hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ── Meta: Team / Rolle / Tools ── */
.pd-meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}

/* ── Prozess Flow ── */
.pd-flow {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 5rem;
}

.pd-flow-step {
  display: flex;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  border-radius: 60px;
  border: 2px solid #D6E5E1;
  font-size: 0.88rem;
  white-space: nowrap;
}

.pd-flow-arrow {
  flex-shrink: 0;
}

.pd-meta h3 {
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.pd-meta p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* ── Nummerierte Abschnitte ── */
.pd-section {
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
}

.pd-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.pd-section h2 {
  font-weight: 400;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
/* ── Tilt Animation ── */
.tilt-wrapper {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.tilt-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tilt-item:nth-child(2) {
  transform-origin: center top;
}

.tilt-animation {
  position: relative;
  width: 100%;
}

.tilt-animation {
  aspect-ratio: 3 / 1;
  cursor: pointer;
}

.tilt-caption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.tilt-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.tilt-1, .tilt-4 { animation: tilt-frame-1 4s infinite; }
.tilt-2, .tilt-5 { animation: tilt-frame-2 4s infinite; }
.tilt-3, .tilt-6 { animation: tilt-frame-3 4s infinite; }

.tilt-a { animation: tilt-2frame-a 2s infinite; }
.tilt-b { animation: tilt-2frame-b 2s infinite; }

@keyframes tilt-frame-1 {
  0%   { opacity: 1; }
  22%  { opacity: 1; }
  25%  { opacity: 0; }
  97%  { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes tilt-frame-2 {
  0%   { opacity: 0; }
  22%  { opacity: 0; }
  25%  { opacity: 1; }
  47%  { opacity: 1; }
  50%  { opacity: 0; }
  72%  { opacity: 0; }
  75%  { opacity: 1; }
  97%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes tilt-frame-3 {
  0%   { opacity: 0; }
  47%  { opacity: 0; }
  50%  { opacity: 1; }
  72%  { opacity: 1; }
  75%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes tilt-2frame-a {
  0%   { opacity: 1; }
  45%  { opacity: 1; }
  50%  { opacity: 0; }
  95%  { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes tilt-2frame-b {
  0%   { opacity: 0; }
  45%  { opacity: 0; }
  50%  { opacity: 1; }
  95%  { opacity: 1; }
  100% { opacity: 0; }
}
.pd-section p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 2rem;
}

.pd-section img {
  width: 100%;
  border-radius: 4px;
  display: block;
  margin-bottom: 1.5rem;
}

.pd-section img.img-half {
  width: 50%;
}

.pd-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.pd-images img {
  height: 260px;
  object-fit: cover;
  margin-bottom: 0;
}

/* ── Carousel ── */
.pd-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  cursor: grab;
}

.pd-carousel:active {
  cursor: grabbing;
}

.pd-carousel::-webkit-scrollbar {
  height: 4px;
}

.pd-carousel::-webkit-scrollbar-track {
  background: var(--color-border);
  border-radius: 2px;
}

.pd-carousel::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: 2px;
}

.pd-carousel-img {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 4px;
  scroll-snap-align: start;
}

/* Phone-Carousel: alle Items gleiche Höhe (Hochformat-Video als Referenz) */
.pd-carousel--phone .pd-carousel-img {
  height: 520px;
  width: auto;
  max-width: none;
}

/* ── Weitere Projekte ── */
.pd-more {
  border-top: 1px solid var(--color-border);
  padding: 6rem 0;
}

.pd-more-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

.pd-more h2 {
  margin-bottom: 3rem;
}

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

/* ── Zurück-Link ── */
.pd-back {
  display: none;
}

@media (max-width: 768px) {
  .pd-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    transition: color 0.2s;
  }

  .pd-back:hover {
    color: var(--color-text);
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .pd-hero {
    flex-direction: column;
  }

  .pd-hero-image {
    flex: none;
    width: 100%;
  }

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

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
