/* ==========================================================================
   CityFoundry AG — Blog archive (Ressourcen)
   Category filter and featured post. The post cards themselves are
   shared with the article template and live in components.css.
   Requires: tokens.css, base.css, components.css, inner.css
   ========================================================================== */

/* --- Category filter --------------------------------------------------------- */
.cf-filters {
  max-width: var(--cf-shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cf-filter {
  padding: 11px 20px;
  border-radius: var(--cf-radius-pill);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid rgba(4, 33, 31, .15);
  color: var(--cf-ink);
}

.cf-filter--active {
  border: 0;
  background: var(--cf-ink);
  color: var(--cf-white);
}

/* --- Featured post ------------------------------------------------------------ */
.cf-feature {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  border-radius: 30px;
  overflow: hidden;
  background: var(--cf-surface);
  text-decoration: none;
  color: var(--cf-ink);
  margin-bottom: 48px;
}

.cf-feature:hover { color: var(--cf-ink); }

.cf-feature__media {
  position: relative;
  min-height: 380px;
}

.cf-feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-feature__body {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.cf-feature__title {
  margin: 0;
  font-family: var(--cf-font-head);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.05;
  font-size: clamp(26px, 2.8vw, 38px);
}

.cf-feature__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--cf-muted);
}

.cf-feature__more {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
}

/* --- Responsive ----------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .cf-feature { grid-template-columns: 1fr; }
}
