/* ============================================================
   PROJEKTE-LISTE + PROJEKT-DETAIL — gemeinsames CSS
   ============================================================ */

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

/* ── Projekte Listenpage ─────────────────────────────────── */

/* Figma: "// Projekte" at top 153px, left 29px, 40px ExtraBold */
.projekte-title-wrap {
  padding-top: 153px;
  padding-left: 29px;
  padding-right: 29px;
}

.projekte-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  color: var(--dark);
  margin: 0;
}

/* Figma: first card at top 255px = padding-top 153 + title ~49px + gap 53px */
.projekte-list {
  padding: 54px 29px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;  /* Figma: 32px gap between cards */
}

/* Projekt-Card — identisch zu .project-card auf Homepage */
.projekte-card {
  display: block;
  text-decoration: none;
  color: var(--dark);
}

.projekte-card__img-wrap {
  width: 335px;
  height: 267px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.projekte-card__img-wrap--placeholder {
  background: #c9c9c9;
}

.projekte-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.projekte-card:hover .projekte-card__img {
  transform: scale(1.03);
}

.projekte-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 4px;
}

.projekte-card__type {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--grey);
  margin: 0;
}

/* "Mehr anzeigen" Button — Figma: centered */
.projekte-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding: 0 29px;
}

/* ── Projekt-Detail ──────────────────────────────────────── */

/* Figma: title "Begiesserlauf" top 270px, left 29px, 56px ExtraBold */
.pd-intro {
  padding: 270px 29px 0;
}

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

/* Figma: "Brand Identity" top 354px, gap from title bottom ≈ 270+56+28≈354 ✓ */
.pd-category {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  color: var(--grey);
  margin: 0;
}

/* Figma: hero image top 542, height 311px, full width */
/* Gap from intro bottom (354+29≈383) to hero (542) = 159px */
.pd-hero {
  margin-top: 159px;
  width: 100%;
}

.pd-hero__img {
  width: 100%;
  height: 311px;
  object-fit: cover;
  display: block;
}

/* Figma: "Leistungen" label top 901, gap from hero bottom (542+311=853) = 48px */
.pd-meta {
  padding: 48px 29px 0;
}

.pd-meta__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--grey);
  margin: 0 0 8px;
}

/* Two-column tags layout — Figma: col1 left 29, col2 left 185 (gap 156px) */
.pd-meta__tags {
  display: flex;
  gap: 0;
}

.pd-meta__col {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.pd-meta__col span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--dark);
  line-height: 1.35;
}

/* ── Text-Block mit Fade-out ─────────────────────────────── */
/* Figma: text top 1049, gap from meta bottom (901+3×21≈964) ≈ 85px */
.pd-text-section {
  padding: 0 29px;
  margin-top: 85px;
}

.pd-text-wrap {
  position: relative;
  max-height: 180px;   /* sichtbarer Bereich */
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pd-text-wrap.is-expanded {
  max-height: 1000px;
}

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

/* Gradient-Fade am unteren Rand — wie in Figma */
.pd-text__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(247, 246, 245, 0), var(--bg));
  pointer-events: none;
}

/* "Mehr lesen …" — Outline-Stil, Figma: 145×39px, border 1.8px, rounded 20px */
.pd-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 145px;
  height: 39px;
  border: 1.8px solid var(--dark);
  border-radius: 20px;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--dark);
  cursor: pointer;
  margin: 16px auto 0;
  transition: background 0.25s ease, color 0.25s ease;
}

.pd-btn-outline:hover {
  background: var(--dark);
  color: #fff;
}

/* ── Typewriter-Effekt beim Aufklappen ───────────────────── */
/* Jeder Paragraph wird von links nach rechts enthüllt (wie Tippen) */
@keyframes type-reveal {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
  }
}

.pd-text p.typing {
  animation: type-reveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Seiten-Einblendungen (Load + Scroll) ────────────────── */

/* Intro (Titel + Kategorie): Einblenden beim Laden */
@keyframes pd-intro-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.pd-title {
  animation: pd-intro-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.pd-category {
  animation: pd-intro-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

/* Hero-Bild: Einblenden beim Laden (leicht verzögert) */
@keyframes pd-hero-in {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}

.pd-hero {
  animation: pd-hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

/* Projekte-Listenpage: Titel */
.projekte-title-wrap {
  animation: pd-intro-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* ── Galerie ─────────────────────────────────────────────── */
/* Figma: images 335×245px, left 29px, gap 24px, first gallery at top 1520
   Gap from text-section bottom ≈ 24px nach button */
.pd-gallery {
  padding: 40px 29px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pd-gallery__item {
  width: 335px;
  height: 245px;
  border-radius: var(--radius);
  overflow: hidden;
}

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