/* ============================================
   contribYOUte — Projekt-Detailseite CSS
   Extends style-v3.css. Uses v3 CSS variables.
   ============================================ */


/* ============================================
   PROJEKT HERO
   ============================================ */

.pd-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 100px; /* account for fixed nav */
}

.pd-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

.pd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 36, 32, 0.25) 0%,
    rgba(0, 36, 32, 0.7) 100%
  );
  z-index: 1;
}

.pd-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
  padding-top: 60px;
}

/* Breadcrumb */
.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.85rem;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pd-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pd-breadcrumb a:hover {
  color: var(--v3-secondary);
}

.pd-breadcrumb span[aria-hidden] {
  color: rgba(255, 255, 255, 0.4);
}

.pd-breadcrumb [aria-current] {
  color: #ffffff;
  font-weight: 500;
}

/* Tags */
.pd-hero-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pd-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 16px;
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pd-new-badge {
  display: inline-flex;
  align-items: center;
  background: var(--v3-secondary);
  color: var(--v3-primary-dark);
  padding: 4px 12px;
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero Title */
.pd-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 28px 0;
  max-width: 700px;
}

/* Category Icons */
.pd-category-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-cat-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.pd-cat-icon:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pd-cat-icon i {
  font-size: 0.9rem;
  color: var(--v3-secondary);
}


/* ============================================
   BILDGALERIE
   ============================================ */

.pd-gallery-section {
  padding: 60px 0 40px;
  background: var(--v3-bg-light, #fafaf5);
}

.pd-gallery {
  position: relative;
  overflow: hidden;
  /* Begrenzte Breite + zentriert, damit das Bild nicht zum schmalen
     Vollbreit-Streifen wird */
  max-width: 1100px;
  margin: 0 auto;
  /* Festes Seitenverhältnis: Höhe skaliert immer mit der Breite mit,
     dadurch stimmen die Dimensionen auf jeder Bildschirmgröße */
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

.pd-gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.pd-gallery-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.pd-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gallery Navigation */
.pd-gallery-prev,
.pd-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 85, 80, 0.85);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pd-gallery-prev:hover,
.pd-gallery-next:hover {
  background: var(--v3-primary);
  transform: translateY(-50%) scale(1.05);
}

.pd-gallery-prev:focus-visible,
.pd-gallery-next:focus-visible {
  outline: 2px solid var(--v3-secondary);
  outline-offset: 2px;
}

.pd-gallery-prev {
  left: 16px;
}

.pd-gallery-next {
  right: 16px;
}

/* Gallery Dots */
.pd-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.pd-gallery-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--v3-primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.pd-gallery-dot.active,
.pd-gallery-dot:hover {
  background: var(--v3-primary);
}

.pd-gallery-dot:focus-visible {
  outline: 2px solid var(--v3-secondary);
  outline-offset: 2px;
}


/* ============================================
   PROJEKTBESCHREIBUNG + KENNZAHLEN
   ============================================ */

.pd-content-section {
  padding: var(--v2-section-py, 140px) 0;
  background: #ffffff;
}

.pd-content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

/* Description */
.pd-description {
  /*max-width: 680px;*/
}

.pd-desc-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--v3-text-dark);
  margin: 16px 0 32px;
}

.pd-desc-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v3-primary);
  margin: 36px 0 16px;
}

.pd-desc-text {
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--v3-text-mid, #4a4a4a);
  margin: 0 0 20px;
}

/* Factsheet */
.pd-factsheet {
  background: var(--v3-primary);
  color: #ffffff;
  padding: 36px 32px;
  position: sticky;
  top: 100px;
}

.pd-factsheet-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pd-fact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pd-fact-item:last-of-type {
  border-bottom: none;
}

.pd-fact-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.pd-fact-label {
  display: block;
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.pd-fact-value {
  display: block;
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.pd-fact-status {
  color: var(--v3-secondary);
}

.pd-fact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--v3-secondary);
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pd-fact-link:hover {
  color: var(--v3-secondary-light, #8ed4d2);
  text-decoration: underline;
}

/* Downloads */
.pd-downloads {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pd-downloads-title {
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 14px;
}

.pd-download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pd-download-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.pd-download-btn:focus-visible {
  outline: 2px solid var(--v3-secondary);
  outline-offset: 2px;
}

.pd-download-btn i {
  color: var(--v3-secondary);
  font-size: 1.1rem;
}


/* ============================================
   VERWANDTE PROJEKTE (Abgeschlossen)
   ============================================ */

.pd-related-section {
  padding: var(--v2-section-py, 140px) 0;
}

.pd-related-completed {
  background: var(--v3-bg-creme, #F0F0E1);
}

.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pd-related-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pd-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.pd-related-img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.pd-related-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pd-related-card:hover .pd-related-img-wrap img {
  transform: scale(1.05);
}

.pd-related-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pd-related-location {
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v3-primary);
  margin-bottom: 8px;
}

.pd-related-location i {
  font-size: 0.72rem;
}

.pd-related-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--v3-text-dark);
  margin: 0 0 8px;
  line-height: 1.25;
}

.pd-related-text {
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--v3-text-mid, #4a4a4a);
  margin: 0 0 12px;
  flex: 1;
}

.pd-related-amount {
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--v3-primary);
}


/* ============================================
   AKTIVE FUNDRAISING PROJEKTE
   ============================================ */

.pd-related-active {
  background: #ffffff;
}

.pd-active-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pd-active-card {
  background: var(--v3-bg-light, #fafaf5);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pd-active-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pd-active-img-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.pd-active-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pd-active-card:hover .pd-active-img-wrap img {
  transform: scale(1.05);
}

.pd-active-body {
  padding: 20px;
}

.pd-active-location {
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v3-primary);
  margin-bottom: 6px;
  display: block;
}

.pd-active-location i {
  font-size: 0.72rem;
}

.pd-active-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--v3-text-dark);
  margin: 0 0 14px;
  line-height: 1.25;
}

.pd-active-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--v3-secondary);
  color: var(--v3-primary-dark);
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pd-active-cta:hover {
  background: var(--v3-secondary-dim, #4da8a6);
  color: #ffffff;
  transform: translateX(2px);
}

.pd-active-cta:focus-visible {
  outline: 2px solid var(--v3-primary);
  outline-offset: 2px;
}


/* ============================================
   SPENDEN-CTA BANNER
   ============================================ */

.pd-donate-banner {
  background: var(--v3-primary);
  padding: 80px 0;
}

.pd-donate-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.pd-donate-text {
  max-width: 560px;
}

.pd-donate-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.15;
}

.pd-donate-body {
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.pd-donate-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--v3-secondary);
  color: var(--v3-primary-dark);
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pd-donate-cta:hover {
  background: #ffffff;
  color: var(--v3-primary);
  transform: scale(1.03);
}

.pd-donate-cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}


/* ============================================
   NEWSLETTER
   ============================================ */

.pd-newsletter-section {
  padding: 80px 0;
  background: var(--v3-bg-creme, #F0F0E1);
}

.pd-newsletter-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.pd-newsletter-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--v3-text-dark);
  margin: 0 0 12px;
}

.pd-newsletter-body {
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--v3-text-mid, #4a4a4a);
  margin: 0 0 32px;
}

.pd-newsletter-input-group {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
}

.pd-newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--v3-primary);
  border-right: none;
  background: #ffffff;
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 1rem;
  color: var(--v3-text-dark);
  outline: none;
  transition: border-color 0.2s ease;
}

.pd-newsletter-input:focus {
  border-color: var(--v3-secondary);
}

.pd-newsletter-input::placeholder {
  color: var(--v3-text-muted, #7a7a6a);
}

.pd-newsletter-submit {
  padding: 14px 28px;
  background: var(--v3-primary);
  color: #ffffff;
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--v3-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.pd-newsletter-submit:hover {
  background: var(--v3-primary-dark);
  border-color: var(--v3-primary-dark);
}

.pd-newsletter-submit:focus-visible {
  outline: 2px solid var(--v3-secondary);
  outline-offset: 2px;
}

/* Consent checkbox */
.pd-newsletter-consent {
  text-align: left;
  margin-bottom: 16px;
}

.pd-newsletter-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--v3-text-mid, #4a4a4a);
  cursor: pointer;
}

.pd-newsletter-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pd-newsletter-checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--v3-primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pd-newsletter-checkbox-label input:checked + .pd-newsletter-checkbox-custom {
  background: var(--v3-primary);
  border-color: var(--v3-primary);
}

.pd-newsletter-checkbox-label input:checked + .pd-newsletter-checkbox-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  color: #ffffff;
}

.pd-newsletter-checkbox-label input:focus-visible + .pd-newsletter-checkbox-custom {
  outline: 2px solid var(--v3-secondary);
  outline-offset: 2px;
}

.pd-newsletter-checkbox-label a {
  color: var(--v3-primary);
  text-decoration: underline;
}

.pd-newsletter-checkbox-label a:hover {
  color: var(--v3-secondary);
}

/* Success / Error */
.pd-newsletter-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(102, 192, 190, 0.15);
  border: 1px solid var(--v3-secondary);
  color: var(--v3-primary);
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
}

.pd-newsletter-success i {
  color: var(--v3-secondary);
  font-size: 1.1rem;
}

.pd-newsletter-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid #dc3545;
  color: #dc3545;
  font-family: var(--v3-font-body, 'DM Sans', sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
}


/* ============================================
   RESPONSIVE — Tablet (768px)
   ============================================ */

@media (max-width: 1024px) {

  .pd-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pd-factsheet {
    position: static;
    max-width: 480px;
  }

  .pd-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-active-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  /* Hero */
  .pd-hero {
    min-height: 50vh;
    padding-top: 80px;
  }

  .pd-hero-content {
    padding-bottom: 40px;
    padding-top: 40px;
  }

  .pd-hero-title {
    font-size: 2rem;
  }

  .pd-cat-icon {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  /* Gallery — Höhe ergibt sich aus dem Seitenverhältnis (16:9) */
  .pd-gallery-prev,
  .pd-gallery-next {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .pd-gallery-prev {
    left: 8px;
  }

  .pd-gallery-next {
    right: 8px;
  }

  /* Content */
  .pd-content-section {
    padding: var(--v2-section-py-mobile, 80px) 0;
  }

  .pd-factsheet {
    max-width: 100%;
  }

  /* Related */
  .pd-related-section {
    padding: var(--v2-section-py-mobile, 80px) 0;
  }

  .pd-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
  }

  /* Active — horizontal scroll on mobile */
  .pd-active-grid {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .pd-active-card {
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  /* Donate Banner */
  .pd-donate-banner {
    padding: 60px 0;
  }

  .pd-donate-inner {
    flex-direction: column;
    text-align: center;
  }

  .pd-donate-text {
    max-width: 100%;
  }

  /* Newsletter */
  .pd-newsletter-section {
    padding: 60px 0;
  }

  .pd-newsletter-input-group {
    flex-direction: column;
  }

  .pd-newsletter-input {
    border-right: 2px solid var(--v3-primary);
    border-bottom: none;
  }

  .pd-newsletter-input:focus {
    border-color: var(--v3-secondary);
  }
}

@media (max-width: 480px) {

  .pd-hero-title {
    font-size: 1.7rem;
  }

  .pd-breadcrumb {
    font-size: 0.78rem;
  }

  .pd-related-grid {
    max-width: 100%;
  }

  .pd-active-card {
    min-width: 260px;
  }
}


/* ============================================
   SCREEN READER ONLY (if not in v3)
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
