/* ─── PXA Referenzen: Filter ─── */
.pxa-filter-section {
  padding: 0 0 40px 0;
  display: block !important;
  width: 100% !important;
}

.pxa-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pxa-filter-btn {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #bbb !important;
  background: #161616 !important;
  border: 1px solid #2a2a2a !important;
  padding: 14px 24px;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0, 0, 1);
  position: relative;
  overflow: hidden;
  line-height: 1;
  text-indent: 0 !important;
  text-align: center;
}

.pxa-filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #e40713;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0, 0, 1);
  z-index: -1;
}

.pxa-filter-btn {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.pxa-filter-btn:hover {
  color: #fff !important;
  border-color: #e40713 !important;
}

.pxa-filter-btn:hover::before {
  transform: translateY(0);
}

.pxa-filter-btn.active {
  color: #fff !important;
  background: #e40713 !important;
  border-color: #e40713 !important;
}

.pxa-filter-btn.active::before {
  display: none;
}

/* Load More Button */
.pxa-load-more-wrap {
  text-align: center;
  padding: 40px 0 0;
}

.pxa-load-more-btn {
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #bbb !important;
  background: transparent !important;
  border: 1px solid #2a2a2a !important;
  padding: 16px 48px;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0, 0, 1);
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.pxa-load-more-btn:hover {
  color: #fff !important;
  border-color: #e40713 !important;
  background: #e40713 !important;
}

.pxa-load-more-btn.pxa-hidden {
  display: none;
}

/* ─── PXA Referenzen: Projects Grid ─── */
.pxa-projects-section {
  position: relative;
  width: 100% !important;
  display: block !important;
}

.pxa-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 100%;
}

.pxa-project-card {
  background: #fff;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.6s ease;
  opacity: 1;
  transform: scale(1);
}

.pxa-project-card.pxa-hidden {
  display: none;
}

.pxa-project-card.pxa-load-hidden {
  display: none;
}

.pxa-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e40713;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0, 0, 1);
  z-index: 3;
}

.pxa-project-card:hover::before {
  transform: scaleX(1);
}

.pxa-project-card::after {
  content: '';
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: #e40713;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.pxa-project-card:hover::after {
  opacity: 0.5;
}

.pxa-project-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.6s ease, transform 0.6s ease;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 50%, transparent 100%);
}

.pxa-project-card:hover .pxa-project-image {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.pxa-project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.9) 100%);
  z-index: 1;
  transition: background 0.4s ease;
}

.pxa-project-card:hover .pxa-project-overlay {
  background: linear-gradient(to bottom, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.2) 100%);
}

.pxa-project-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
}

.pxa-project-category {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e40713;
  background: rgba(228, 7, 19, 0.1);
  border: 1px solid rgba(228, 7, 19, 0.2);
  padding: 5px 10px;
  display: inline-block;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.pxa-project-card:hover .pxa-project-category {
  background: rgba(228, 7, 19, 0.15);
  border-color: rgba(228, 7, 19, 0.4);
}

.pxa-project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}

.pxa-project-name {
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
  color: #fff;
  margin: 0;
  transition: color 0.3s ease;
}

.pxa-project-year {
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 1px;
  color: #ccc;
  transition: color 0.3s ease;
  white-space: nowrap;
  margin-left: 12px;
}

.pxa-project-card:hover .pxa-project-year {
  color: #e40713;
}

/* ─── Kooperations-Badge ─── */
.pxa-project-collab {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.pxa-project-card:hover .pxa-project-collab {
  opacity: 1;
}

.pxa-project-collab-label {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #ccc;
  white-space: nowrap;
}

.pxa-project-collab-logo {
  height: 16px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.pxa-project-card:hover .pxa-project-collab-logo {
  opacity: 1;
}

/* ─── Scroll Reveal ─── */
.pxa-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0, 0, 1), transform 0.7s cubic-bezier(0.25, 0, 0, 1);
}

.pxa-reveal.pxa-visible {
  opacity: 1;
  transform: translateY(0);
}

.pxa-reveal-delay-1 { transition-delay: 0.1s; }
.pxa-reveal-delay-2 { transition-delay: 0.2s; }

/* ─── No Projects ─── */
.pxa-no-projects {
  text-align: center;
  color: #888;
  padding: 60px 20px;
  font-size: 16px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .pxa-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pxa-projects-grid {
    grid-template-columns: 1fr;
  }

  .pxa-filter-buttons {
    gap: 8px;
  }

  .pxa-filter-btn {
    padding: 10px 16px;
    font-size: 10px;
  }
}
