/* Project Showroom - Card Design */
.ps-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* Tabs Navigation */
.ps-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  justify-content: center;
}

.ps-tab {
  border: 2px solid #053D67;
  background: white;
  color: #053D67;
  padding: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border-top-left-radius: 15px;
  border-bottom-right-radius: 15px;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
  width: 187px;
  height: 38.97px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ps-tab:hover {
  background: #f0f8ff;
}

.ps-tab.is-active {
  background: #88D498;
  border-color: #88D498;
  color: white;
}

/* Cards Grid */
.ps-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Project Card */
.ps-project-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease;
}

.ps-project-card:hover {
  transform: translateY(-5px);
}

/* Card Image Container */
.ps-card-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow: hidden;
  height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Card Overlay */
.ps-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

/* Card Content (Bottom Right) */
.ps-card-content {
  position: relative;
  z-index: 2;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Tags */
.ps-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ps-tag {
  backdrop-filter: blur(10px);
  color: white;
  padding: 6px 14px;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  height: 28px;
  display: inline-flex;
  align-items: center;
}

/* Background color only on grid page (shortcode), not on single page */
.ps-wrap .ps-tag {
  background: #053D67;
}

/* Gesamtmassnahme Button */
.ps-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #88D498;
  color: #053D67;
  padding: 6px 14px;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border: 0.5px solid transparent;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
  height: 28px;
  min-width: 170px;
}

.ps-card-action:hover {
  background: #7FD67F;
  transform: scale(1.05);
}

/* Card Info (Below Image) */
.ps-card-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ps-card-title {
  color: #053D67;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  font-family: 'Roboto', sans-serif;
}

/* Read More Link */
.ps-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #053D67;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
  align-self: flex-start;
}

.ps-read-more:hover {
  color: #88D498;
  gap: 12px;
}

.ps-read-more svg {
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .ps-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .ps-project-card {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .ps-wrap {
    padding: 40px 20px;
  }

  .ps-tabs {
    gap: 12px;
  }

  .ps-tab {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .ps-grid-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ps-project-card {
    min-height: 380px;
  }
}

@media (max-width: 480px) {
  .ps-wrap {
    padding: 30px 16px;
  }

  .ps-tab {
    padding: 8px 20px;
    font-size: 0.85rem;
  }

  .ps-project-card {
    min-height: 350px;
  }

  .ps-card-content,
  .ps-card-footer {
    padding: 20px;
  }

  .ps-card-title {
    font-size: 1rem;
  }
}

/* Pagination */
.ps-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.ps-pagination a,
.ps-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #D0D5DD;
  border-radius: 8px;
  background: white;
  color: #344054;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

.ps-pagination a:hover {
  background: #F9FAFB;
  border-color: #98A2B3;
}

.ps-pagination span.current {
  background: #053D67;
  border-color: #053D67;
  color: white;
}

.ps-pagination .dots {
  border: none;
  background: transparent;
  color: #667085;
}

.ps-pagination a svg,
.ps-pagination span svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .ps-pagination {
    margin-top: 40px;
    gap: 6px;
  }

  .ps-pagination a,
  .ps-pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .ps-pagination {
    margin-top: 30px;
  }

  .ps-pagination a,
  .ps-pagination span {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
  }
}