/* ─────────────────────────────────────────────────────────────
   PROJEKTE SUBPAGE
   ───────────────────────────────────────────────────────────── */

/* ─── PAGE HEADER (dynamischer Hero-Block, Optik s. css/style.css) ── */
body.subpage .pb-hero { --subpage-hero-bg: #DBD1C1; }

/* ─── FILTER BAR ───────────────────────────────────────────── */
:root { --proj-accent: #6E7F8E; }

.proj-filter-bar {
  background: #DBD1C1;
  padding: 0 0 40px;
}

/* ─── FILTER ROW ───────────────────────────────────────────── */
.proj-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* ─── FILTER GROUP (Dropdown) ──────────────────────────────── */
.proj-filter-group { position: relative; }

.proj-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  padding: 9px 14px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.proj-filter-btn:hover,
.proj-filter-btn[aria-expanded="true"] {
  background: rgba(255,255,255,0.15);
}

.proj-filter-btn.is-active {
  background: rgba(255,255,255,0.25);
}

.proj-filter-label { font-weight: 700; }

.proj-filter-value {
  font-weight: 400;
  opacity: 0.8;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proj-filter-chevron {
  width: 10px;
  height: 7px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.proj-filter-btn[aria-expanded="true"] .proj-filter-chevron {
  transform: rotate(180deg);
}

/* ─── DROPDOWN PANEL ───────────────────────────────────────── */
.proj-filter-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 12px 0;
  display: none;
  z-index: 50;
}

.proj-filter-dropdown.is-open { display: block; }

.proj-filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}

.proj-filter-check:hover { background: #f4f4f4; }

.proj-filter-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--proj-accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* ─── RESET BUTTON ─────────────────────────────────────────── */
.proj-filter-reset {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 9px 6px;
  transition: color 0.2s;
  text-decoration: underline;
  margin-left: 4px;
  display: none;
}

.proj-filter-reset:hover { color: var(--white); }
.proj-filter-reset.is-visible { display: inline; }

/* ─── ACTIVE FILTER CHIPS ──────────────────────────────────── */
.proj-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.proj-active-filters:empty { display: none; }

.proj-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 4px 10px 4px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.proj-filter-chip-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.proj-filter-chip-remove:hover { color: var(--white); }

/* ─── NO RESULTS ───────────────────────────────────────────── */
.proj-no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 48px 0;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .proj-filter-row { gap: 6px; }
  .proj-filter-btn { padding: 8px 11px; font-size: 0.68rem; }
}

/* ─── GRID SECTION ─────────────────────────────────────────── */
.proj-grid-section {
  background: #DBD1C1;
  padding: 0 0 100px;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proj-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ─── STANDARD CARD ────────────────────────────────────────── */
.proj-card {
  background: #F9F9F9;
  display: flex;
  flex-direction: column;
  border: 8px solid #ffffff;
  transition: box-shadow 0.3s ease;
}

.proj-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.proj-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.proj-card-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.proj-card:hover .proj-card-img-wrap img {
  transform: scale(1.05);
}

.proj-card-img-wrap--placeholder {
  aspect-ratio: 4/3;
  background: #c8c8c8;
}

.proj-card-img-wrap--tall {
  aspect-ratio: unset;
  height: 340px;
}

.proj-card-body {
  padding: 24px 28px 28px;
  flex: 1;
}

.proj-card-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
  text-wrap: pretty;
}

.proj-card-text {
  font-size: 0.88rem;
  color: #8D8D8D;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── CARD CTA (analog zu .news-card-cta) ─────────────────────── */
.proj-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 22px;
  border-top: 1px solid #e8e8e8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}

.proj-card:hover .proj-card-cta {
  background: #DBD1C1;
  color: var(--ink);
}

.proj-card-cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.proj-card:hover .proj-card-cta-arrow {
  transform: translateX(4px);
}

/* Badge (reuses global .badge styles, but scoped here for proj grid) */
.proj-card .badge {
  position: absolute;
  top: 0; left: 0;
  padding: 6px 14px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--white);
  color: var(--blue);
  z-index: 1;
}

/* ─── WIDE CARD ────────────────────────────────────────────── */
.proj-card--wide {
  grid-column: span 2;
}

/* ─── PROMO CARD ───────────────────────────────────────────── */
.proj-card--promo {
  background: #F9F9F9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border: 8px solid #ffffff;
}

.proj-promo-inner {
  text-align: center;
  padding: 32px 24px;
}

.proj-promo-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--creme);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.proj-promo-title {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

/* ─── KONTAKT CTA ──────────────────────────────────────────── */
.proj-cta {
  background: #DBD1C1;
  padding: 64px 0;
}

.proj-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.proj-cta-heading {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.3;
  font-style: italic;
}

.proj-cta-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proj-cta-contact .contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proj-cta-contact .contact-icon {
  filter: brightness(0) invert(1);
}

.proj-cta-contact .contact-row a {
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.proj-cta-btn-wrap {
  display: flex;
  justify-content: center;
}

.proj-cta-btn {
  white-space: nowrap;
  border-color: var(--white);
  color: var(--white);
}

.proj-cta-btn:hover {
  background: var(--white);
  color: var(--ink);
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-card--wide { grid-column: span 2; }
  .proj-cta-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card--wide { grid-column: span 1; }
}
