/* QKULM — sub-pages B: Individuelle Klarheit & Begleitung · Methode · Referenzen.
   Contract §Files: one extra sheet for what styles.css has no class for. Nothing here
   overrides a shared component outside these three pages; every number is from
   spec/subpages-b.md (1366 px design width). */

/* ---------- shared: text column + ceramic object (p6 blocks, p8 head) ---------- */
/* spec 8.3 — one display scale across the three pages: H1 62, H2 48 */
main h1.h2 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.02; }
main h2.h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.02; }
.qb-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  margin: 0 0 34px;
}
.qb-intro + hr.rule { margin-top: 30px; }   /* breathing room under the page-7 subline */
.qb-intro__obj { justify-self: end; width: 100%; max-width: 320px; }
.qb-intro__obj img { width: auto; max-width: 100%; height: auto; }
.qb-intro .lead {                     /* intro copy is set in the serif (spec §Type) */
  font-family: var(--serif); font-size: 21px; line-height: 1.33;
  max-width: 770px; margin: 0;
}
.qb-lede {
  font-family: var(--serif); font-size: 24px; line-height: 1.3;
  margin: 22px 0 0; max-width: 661px;
}
.qb-tag {                     /* p6 half-page 2 breadcrumb, 12 px sans (spec 5.2.10) */
  font-family: var(--sans); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; margin: 12px 0 0;
}

/* ---------- page 5: the half-page blocks ---------- */
.qb-halfhead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin: 0 0 30px;
}
.qb-halfhead .eyebrow { margin: 0; }
.qb-back {
  display: inline-flex; align-items: center; gap: 20px; white-space: nowrap;
  font-family: var(--sans); font-size: 18px; text-decoration: none;
}
.qb-back:hover { color: var(--crimson); }
.qb-back span { color: var(--red-cta); }

/* the two anchor pills under the H1 (41 px high, 1.5 px red, round ends) */
.qb-anchors {
  display: flex; flex-wrap: wrap; gap: 37px;
  list-style: none; margin: 8px 0 0; padding: 0;
}
.qb-anchor {
  display: inline-flex; align-items: center; gap: 26px;
  min-height: 41px; padding: 0 26px 0 48px;
  border: 1.5px solid var(--red-cta); border-radius: 999px;
  font-family: var(--serif); font-size: 19px; text-decoration: none;
}
.qb-anchor:hover { background: #fdeceb; }

/* the six copy cards: #EEEEEE, radius 13, rose hairline under the title */
.qb-card {
  display: flex; flex-direction: column;
  background: var(--card-3); border-radius: 13px;
  padding: 21px 26px 26px;
}
.qb-card .card__title { font-size: 27px; font-weight: 800; line-height: 1.22; }
.qb-card .card__body { font-family: var(--serif); font-size: 21px; line-height: 1.38; margin: 14px 0 0; }
.qb-card .card__body + .card__body { margin-top: 29px; }
.qb-card .card__body:last-child { margin-bottom: 0; }
.qb-rule-rose {
  width: 101px; height: 2px; border: 0;
  background: #cc999f; margin: 16px 0 0;
}

/* closing row: sub-head + copy on the left, red pill on the right */
.qb-closing {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px); align-items: start;
}
.qb-closing h3 {
  font-family: var(--serif); font-size: 23px; font-weight: 800;
  margin: 0 0 17px;
}
.qb-closing p {
  font-family: var(--serif); font-size: 20px; line-height: 1.25;
  margin: 0; max-width: 706px;
}
.qb-closing .btn-red { margin-top: 7px; }

.qb-article__main { min-width: 0; }
.qb-article__side { min-width: 0; }

/* ---------- page 6: the two-column article ---------- */
.qb-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(32px, 7.5vw, 103px);
  align-items: start;
}
.qb-article .h2 { margin-bottom: 44px; }
.qb-article .steps { gap: 44px; }
.qb-article .step { border-top: 0; padding-top: 0; }   /* the red rule replaces it */
.qb-article .step__title {
  font-family: var(--sans); font-weight: 800; font-size: 25px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.04em; margin: 0;
}
.qb-step-rule {                        /* 153 × 2 px, 32 px under the step title */
  width: 153px; height: 2px; border: 0;
  background: var(--red-cta); margin: 32px 0 0;
}
.qb-article .step__lead {
  font-family: var(--serif); font-weight: 800; font-size: 21px;
  line-height: 1.3; margin: 20px 0 22px; max-width: 506px;
}
.qb-article .step__body {
  font-family: var(--serif); font-size: 21px; line-height: 1.3;
}
.qb-article .step__body p { margin: 0 0 22px; }
.qb-article .step__body p:last-child { margin-bottom: 0; }
.qb-article .step__body ul { list-style: none; margin: 0 0 22px; padding: 0; }
.qb-article__side img {                /* red fold photograph, hard edges, 417 × 369 */
  width: 100%; max-width: 417px; margin: 0 auto; display: block;
  aspect-ratio: 417 / 369; object-fit: cover;
}
/* the fold plays as a loop; same box, same crop as the still it replaces */
.qb-article__media { max-width: 417px; margin: 0 auto; }
.qb-article__video {
  width: 100%; display: block; aspect-ratio: 417 / 369; object-fit: cover;
}
.qb-article__side .steps { margin-top: 68px; }
/* the action sits beneath the whole grid, not inside the media column */
.qb-article__action { margin-top: 48px; text-align: center; }

/* ---------- page 7: projects, testimonials, closing panel ---------- */
.qb-proj {
  background: var(--card-3); border-radius: 18px;
  padding: 26px 25px 28px;
}
.qb-proj__cat {
  font-family: var(--serif); font-size: 15px; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--crimson);
  margin: 0 0 24px; min-height: 36px;      /* two lines reserved so the titles line up */
}
.qb-proj .card__title { font-size: 30px; font-weight: 800; line-height: 1.12; }
.qb-proj dl { margin: 34px 0 0 13px; }
.qb-proj dt {
  font-family: var(--serif); font-weight: 800; font-size: 18px;
  line-height: 1; margin: 0;
}
.qb-proj dd {
  font-family: var(--serif); font-size: 18px; line-height: 1.2;
  margin: 8px 0 34px;
}
.qb-proj dd:last-of-type { margin-bottom: 0; }

.qb-quotes {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 63px);
}
.qb-quote {
  position: relative;
  background: var(--card-3); border-radius: 18px;
  padding: 40px 34px 24px; min-height: 202px;
}
.qb-quote__mark {                      /* the two red quote glyphs, ~90 px */
  position: absolute; left: 34px; top: 14px;
  font-family: var(--serif); font-size: 90px; line-height: 1;
  color: var(--red-cta);
}
.qb-quote .quote__text { font-size: 34px; line-height: 1.1; margin: 0 0 22px 81px; }
.qb-quote .rule { margin: 0 42px 20px 0; }
.qb-quote .quote__cite {
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: #999999; margin: 0;
}

.qb-panel {
  background: var(--card-3); border-radius: 19px;
  max-width: 1086px; margin: 0 auto;
  padding: 57px 40px 60px; text-align: center;
}
.qb-panel .h2 { font-size: 42px; line-height: 1.1; margin: 0 0 30px; }
.qb-panel .btn-red { min-height: 53px; padding: 0 34px; }

/* every red pill on these pages carries its label in the serif (spec 5.2.9 / 6.2.5) */
.qb-closing .btn-red,
.qb-article__side .btn-red,
.qb-panel .btn-red { font-family: var(--serif); font-size: 15px; letter-spacing: 0.07em; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .qb-intro,
  .qb-article,
  .qb-quotes,
  .qb-closing { grid-template-columns: minmax(0, 1fr); }
  .qb-intro__obj { justify-self: start; }
  .qb-article__side .steps { margin-top: 40px; }
  .qb-proj { min-height: 0; }
  .qb-quote .quote__text { font-size: 26px; }
  .qb-panel { padding: 40px 24px 44px; }
  .qb-panel .h2 { font-size: 32px; }
}
@media (max-width: 520px) {
  .qb-halfhead { flex-wrap: wrap; gap: 10px; }
  .qb-anchors { gap: 14px; }
  .qb-anchor { width: 100%; justify-content: space-between; padding-left: 26px; }
  .qb-quote { padding: 52px 22px 20px; }
  .qb-quote .quote__text { margin-left: 0; }
}
