/* Smile4U · „Näher" phase C · block 08t-technik (_tools/v8_next/technik.py). The five steps of the old block 04,
   back after the Team block as a ledger (David 2026-11-17: the stage stays, the steps and their links return).
   Concept: an instrument maker's ledger, five entries on one line, each its picture over its numeral, title, line and
   reading. One device: the hairline every entry stands on. Paper ground, ink text; the pictures keep their own grounds.
   Desktop ≥ 1200: one row across the full width, every picture at one height, its column as wide as its picture wants
   (the X-ray screen is landscape, the renders portrait), so no frame is forced into a shape that cuts its subject.
   Tablet 810–1199: picture beside the text. Phone ≤ 809: picture first at 4:3, the text under it.
   Crops: object-position per step, set against each picture's subject (see the step rules). Motion: v8's rise only. */

.tq { background: var(--paper); color: var(--ink); padding: var(--sec-pad-dark) var(--side) 0; }   /* 08b below is paper and opens with its own gap */

.tq-h { font-size: clamp(56px, 7.2vw, 144px); line-height: .96; letter-spacing: -0.055em; font-weight: var(--fw-display); }
.tq-h a { color: inherit; text-decoration: none; }
.tq-h a::after { content: "→"; display: inline-block; margin-left: .18em; font-size: .4em; vertical-align: .5em; }
.tq-h a:hover { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 2px; }

.tq-steps { list-style: none; margin: clamp(28px, 2.4vw, 48px) 0 0; padding: 0; }
.tq-pic { margin: 0; overflow: hidden; border-radius: var(--r-sm); background: var(--mist); }
.tq-pic picture { display: contents; }
.tq-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* crops, each against its subject:
   01 render: glass block and planning line sit centred, the line's top at 13 %; centred keeps both
   02 photo: the hand and arm come in from the right over the screen; anchored right, only the monitor's left rim goes
   03 photo: scanner hand left, keyboard hand right edge; a touch left of centre keeps the scanner tip and both hands
   04 render: the crown on its block sits a little below centre
   05 photo: the doctor's face at 28–45 % of the height; anchored near the top, a crop only ever takes the chair and floor */
.tq-step--01 img { object-position: 50% 40%; }
.tq-step--02 img { object-position: 78% 50%; }
.tq-step--03 img { object-position: 35% 40%; }
.tq-step--04 img { object-position: 50% 62%; }
.tq-step--05 img { object-position: 30% 8%; }

.tq-num { display: block; font-size: clamp(56px, 4.4vw, 96px); line-height: .9; letter-spacing: -0.05em; font-weight: var(--fw-display); font-variant-numeric: tabular-nums; }
.tq-t { font-size: clamp(22px, 1.45vw, 30px); line-height: 1.2; letter-spacing: var(--ls-h5); font-weight: var(--fw-display); }
/* the title link keeps block 04's own link idiom (04-vom-bild-zur-krone.css), restated here so the ledger does not
   lean on the stylesheet of a block that has left the page */
.tq-t a { color: var(--ink); text-decoration: none; }
.tq-t a:hover, .tq-t a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.tq-t .tk-nb { white-space: nowrap; }                                  /* the title's last word keeps its arrow */
.tq-t .tk-arr { display: inline-block; width: .5em; height: .5em; margin-left: .22em; vertical-align: .08em; color: var(--blue-deep); transition: transform var(--dur-ui) var(--ease-ui); }
.tq-t .tk-arr svg { display: block; width: 100%; height: 100%; }
@media (hover: hover) { .tq-t a:hover .tk-arr { transform: translateX(4px); } }   /* purpose: the link answers the pointer */
.tq-line { max-width: 22em; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-75); }
.tq-extra { margin-top: 4px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink-64); }
/* the reading: qualifier above the value (absolute, so every value stands on one line whether it has one or not) */
.tq-mw { display: grid; gap: 6px; }
.tq-v { position: relative; display: block; padding-top: calc(var(--fs-ui) * var(--lh-ui)); font-size: clamp(28px, 1.9vw, 40px); line-height: 1.05; letter-spacing: var(--ls-figure); white-space: nowrap; }
.tq-q { position: absolute; left: 0; top: 0; font-size: var(--fs-ui); line-height: var(--lh-ui); letter-spacing: 0; color: var(--ink-64); }
.tq-l { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink-64); }

/* ---------- desktop: one row, the entries share their rows through subgrid ---------- */
@media (min-width: 1200px) {
  .tq-steps {
    --tq-ph: clamp(250px, 19vw, 400px);              /* the one picture height */
    display: grid; column-gap: clamp(20px, 1.7vw, 36px);
    grid-template-columns: minmax(200px, .7fr) minmax(300px, 1.5fr) minmax(230px, 1.04fr) minmax(210px, .74fr) minmax(210px, .84fr);
    grid-template-rows: auto auto auto auto auto;
  }
  .tq-steps::before {                                 /* the ledger's hairline, one line under all five pictures */
    content: ""; grid-row: 2; grid-column: 1 / -1; align-self: start; border-top: 1px solid var(--on-band-line);
  }
  .tq-step { grid-row: 1 / span 5; display: grid; grid-template-rows: subgrid; min-width: 0; }
  .tq-step--01 { grid-column: 1; } .tq-step--02 { grid-column: 2; } .tq-step--03 { grid-column: 3; }   /* placed, not auto: the hairline holds row 2 */
  .tq-step--04 { grid-column: 4; } .tq-step--05 { grid-column: 5; }
  .tq-pic { height: var(--tq-ph); margin-bottom: 20px; }       /* the pictures stand clear of the hairline */
  .tq-text { grid-row: 2 / span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; padding-top: 24px; }
  .tq-t { margin-top: 16px; }
  .tq-copy { margin-top: 12px; }
  .tq-mw { margin-top: 28px; }
}

/* ---------- tablet: picture beside its text, entries stacked ---------- */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .tq-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 40px; align-items: start; padding-top: 32px; border-top: 1px solid var(--on-band-line); }
  .tq-step + .tq-step { margin-top: 48px; }
  .tq-pic { aspect-ratio: 4 / 3; }
  .tq-t { margin-top: 12px; font-size: var(--fs-h4); }
  .tq-copy { margin-top: 12px; }
  .tq-mw { margin-top: 24px; }
}

/* ---------- phone: picture first, 4:3, then numeral beside title, line, reading ---------- */
@media (max-width: 809.98px) {
  .tq-h { font-size: var(--fs-h1); }
  .tq-step + .tq-step { margin-top: 56px; }
  .tq-pic { aspect-ratio: 4 / 3; max-height: 46svh; }
  .tq-step--01 img { object-position: 50% 32%; }     /* 4:3 window from the line's top to the block's foot */
  .tq-step--05 img { object-position: 50% 6%; }      /* head and microscope in, his face never at an edge */
  .tq-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: baseline; padding-top: 16px; }
  .tq-num { font-size: 56px; grid-row: 1; }
  .tq-t { grid-row: 1; grid-column: 2; font-size: var(--fs-h5); }
  .tq-copy, .tq-mw { grid-column: 1 / -1; }
  .tq-copy { margin-top: 12px; }
  .tq-mw { margin-top: 16px; }
  .tq-v { font-size: 32px; }
}
