/* ==========================================================================
   pages/news.css — News listing
   ========================================================================== */

.news-wrap {
  padding-top: 100px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* HERO ===================================================================== */

.news-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}

.news-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 96px;
  line-height: 84px;
  color: var(--color-text-heading);
  margin: 0;
  white-space: pre-line;
  letter-spacing: -0.01em;
}

.news-hero__intro {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 19.2px;
  line-height: 26.88px;
  color: var(--color-text-heading);
  margin: 0;
  white-space: pre-line;
}

/* FEATURED ARTICLE ========================================================= */

.news-featured {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  background: var(--color-surface-muted);
  border-radius: 20px;
  overflow: hidden;
  height: 550px;
}

.news-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 38px;
  gap: 22px;
}

.news-featured__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 33px;
  line-height: 36px;
  color: var(--color-text-heading);
  margin: 0;
}

.news-featured__meta {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 20.8px;
  color: var(--color-text-heading);
  margin: 0;
}

.news-featured__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-primary);
  border-radius: 55px;
  padding: 5px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 18px;
  color: var(--color-text-heading);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.news-tag:hover {
  background: var(--color-primary);
  color: #fff;
}

.news-featured__media {
  height: 100%;
  min-height: 550px;
  background: url('../assets/about.webp') center/cover no-repeat, rgb(214,217,222);
}

/* MAIN GRID =============================================================== */

.news-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  align-items: start;
}

/* article rows */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.news-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 25px;
  align-items: flex-start;
}

.news-row__media {
  width: 360px;
  height: 250px;
  border-radius: 25px;
  overflow: hidden;
  background: rgb(214,217,222) center/cover no-repeat;
  flex: 0 0 auto;
}

.news-row__media--m1 { background-image: url('../assets/jobs-team-bar.png'); }
.news-row__media--m2 { background-image: url('../assets/hero-bg.webp'); }
.news-row__media--m3 { background-image: url('../assets/jobs-team-table.png'); }
.news-row__media--m4 { background-image: url('../assets/hero-bg.webp'); }
.news-row__media--m5 { background-image: url('../assets/about.webp'); }
.news-row__media--m6 { background-image: url('../assets/haushirsch-was-duerfen-wir-fuer-sie-tun.webp'); }

.news-row__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-row__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  color: var(--color-text-heading);
  margin: 0;
  white-space: pre-line;
}

.news-row__meta {
  font-family: var(--font-sans);
  font-size: 14.4px;
  line-height: 1.4;
  color: var(--color-text-heading);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.news-row__meta span { display: inline-flex; align-items: center; gap: 6px; }
.news-row__meta-sep { color: rgb(221, 221, 221); margin: 0 4px; }

.news-row__categories {
  font-family: var(--font-sans);
  font-size: 14.4px;
  line-height: 18px;
  color: var(--color-text-heading);
  margin: 20px 0 0;
}

/* sidebar */
.news-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.news-cats {
  background: var(--color-surface-muted);
  border-radius: 18px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-cats__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 33px;
  line-height: 32px;
  color: var(--color-text-heading);
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: none;
}

.news-cats__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-text-heading);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.news-cats__link:last-of-type { border-bottom: 0; }
.news-cats__link:hover { color: var(--color-text-heading); }

.news-cats__link span[aria-hidden] {
  display: inline-block;
  width: 16px;
  height: 14px;
  overflow: hidden;
  text-indent: -9999px;
  background: url('../assets/icons/icon-arrow.svg') center/contain no-repeat;
  flex-shrink: 0;
}

/* MORE BUTTON ============================================================== */

.news-more {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.news-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 55px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
}

/* RESPONSIVE ============================================================== */

@media (max-width: 1100px) {
  .news-hero { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .news-hero__title { font-size: 56px; line-height: 1.05; }
  .news-featured { height: auto; }
  .news-grid { grid-template-columns: 1fr; }
  .news-side { position: static; }
}

@media (max-width: 720px) {
  .news-wrap { gap: 40px; padding: 60px 0; }
  .news-hero__title { font-size: 42px; overflow-wrap: break-word; }
  .news-featured { grid-template-columns: 1fr; height: auto; }
  .news-featured__body { padding: 28px 24px; }
  .news-featured__title { font-size: 24px; line-height: 1.2; }
  .news-featured__media { min-height: 240px; order: -1; }
  .news-row { grid-template-columns: 1fr; gap: 16px; }
  .news-row__media { width: 100%; height: 220px; }
  .news-cats { padding: 24px; }
  .news-cats__title { font-size: 24px; }
  .news-cats__link { font-size: 16px; padding: 10px 0; }
}
