/* ==========================================================================
   CityFoundry AG — Article (Beitrag)
   Article header, lead image, long-form body, inline CTA, related posts.
   Requires: tokens.css, base.css, components.css, inner.css
   ========================================================================== */

/* --- Article header ------------------------------------------------------------ */
.cf-article-hero {
  background: var(--cf-ink);
  padding: 64px var(--cf-gutter) 80px;
}

.cf-article-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  animation: cf-fade .8s ease both;
}

.cf-article__breadcrumb {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--cf-muted-dark);
}

.cf-article__breadcrumb a {
  color: var(--cf-muted-dark);
  text-decoration: none;
}

.cf-article__title {
  margin: 0 0 24px;
  font-family: var(--cf-font-head);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.02;
  font-size: clamp(34px, 4.4vw, 58px);
  color: var(--cf-white);
}

.cf-article__standfirst {
  margin: 0 0 30px;
  font-size: 19px;
  line-height: 1.65;
  color: #a9c8c5;
}

.cf-byline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cf-byline img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.cf-byline__name {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--cf-white);
}

.cf-byline__meta {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--cf-muted-dark);
}

/* --- Lead image ------------------------------------------------------------------- */

/* Sits astride the boundary between the dark header and the white body. */
.cf-article-lead-section {
  background: var(--cf-white);
  padding: 0 var(--cf-gutter);
}

.cf-article__lead-image {
  max-width: 1100px;
  margin: -48px auto 0;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
}

.cf-article__lead-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Article body -------------------------------------------------------------------- */
.cf-article-body-section {
  background: var(--cf-white);
  padding: 64px var(--cf-gutter) 96px;
}

.cf-prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: #26494b;
}

/* Element rules are scoped to direct children so the inline CTA nested
   inside the article keeps its own typography. */
.cf-prose > .cf-prose__lead {
  margin: 0 0 26px;
  font-size: 21px;
  line-height: 1.7;
  color: var(--cf-ink);
}

.cf-prose > h2 {
  margin: 44px 0 16px;
  font-family: var(--cf-font-head);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.05;
  font-size: 30px;
  color: var(--cf-ink);
}

.cf-prose > p { margin: 0 0 22px; }

.cf-prose > ul {
  margin: 0 0 26px;
  padding-left: 22px;
}

.cf-prose > ul > li:not(:last-child) { margin-bottom: 12px; }

.cf-prose > blockquote {
  margin: 36px 0;
  padding: 32px;
  border-radius: 24px;
  background: var(--cf-surface-2);
  font-family: var(--cf-font-head);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.45;
  letter-spacing: -.02em;
  color: var(--cf-ink);
}

/* --- Inline CTA ------------------------------------------------------------------------ */
.cf-inline-cta {
  margin: 44px 0 0;
  padding: 32px;
  border-radius: 24px;
  background: var(--cf-surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.cf-inline-cta__text { max-width: 420px; }

.cf-inline-cta__title {
  margin: 0 0 6px;
  font-family: var(--cf-font-head);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  font-size: 20px;
}

.cf-inline-cta__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cf-muted);
}

/* --- Related posts ----------------------------------------------------------------------- */
.cf-related {
  background: var(--cf-surface);
  padding: 88px var(--cf-gutter);
}

.cf-related__title {
  margin: 0 0 36px;
  font-family: var(--cf-font-head);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.05;
  font-size: clamp(26px, 3vw, 38px);
}

/* --- Responsive ------------------------------------------------------------------------------ */
@media (max-width: 720px) {
  .cf-article-hero,
  .cf-article-lead-section,
  .cf-article-body-section,
  .cf-related {
    padding-left: var(--cf-gutter-sm);
    padding-right: var(--cf-gutter-sm);
  }
}
