/* UhrHealth, mobile first in the site's three widths: S under 640px, M 640–1023px, L from 1024px (tokens.css), and
   no other breakpoints. The herb farm opens as the panorama band (/components/panorama/parallax.css), then the
   hero with the check-in illustration, the three areas (#verstehen), the data sources (#daten), places and
   observations (#orte, #hinweise, side by side from L), the coach (#coach) and the closing band (#beta). Type steps,
   rhythm, the section head, the text button and the closing band come from /design/; this sheet adds the page's own
   blocks only. */
html { scroll-behavior: smooth; }

/* The herb farm in the band: the farmhouse with its drying herbs (y 42–49 % of the picture) on the left, the spring
   basin (y 51–62 %) on the right and the lake between them under the wordmark. One framing serves every width; under
   640px the mobile file is the whole picture too (scripts/lib/panorama-scenes.mjs), so it frames alike. */
.uhrhealth-page .panorama { --panorama-position: center 42%; }

/* The hero starts at the band's edge; its own padding sets the distance (as on /uhrstark). The copy: the app's glyph,
   name and status, the h1 at the title step, the lead, the promise and the two actions; the check-in illustration
   below it on S and M and beside it from L. */
.uhrhealth-page main { padding-top: 0; overflow-wrap: break-word; }
.health-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-top: 1.5rem;
}
.health-wordmark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  font: 800 var(--fs-h3)/1.3 var(--font-ui);
}
.health-wordmark img { width: 48px; height: 48px; image-rendering: pixelated; }
.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--separator);
  background: var(--warm-tint);
  color: var(--warm-text);
  font: 700 var(--fs-small)/1.5 var(--font-ui);
  letter-spacing: .02em;
}
/* The second line is a block of its own, so it balances alone (Ein kurzer / Check-in.), never splitting the compound. */
.health-hero h1 { margin: 1rem 0 0; line-height: 1.1; }
.health-hero h1 span { display: block; color: var(--accent-text); }
.health-hero .lead { margin: 1rem 0 0; max-width: 54ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--text); }
.health-promise { margin: .75rem 0 0; max-width: 54ch; color: var(--text-secondary); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.health-button {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 48px;
  max-width: 100%;
  padding: .75rem 1.15rem;
  background: var(--action);
  color: var(--on-action);
  border: 2px solid var(--action);
  box-shadow: 3px 3px 0 var(--pixel-shadow);
  font: 750 var(--fs-body)/1.2 var(--font-ui);
  text-decoration: none;
  overflow-wrap: break-word;
  hyphens: auto;
  /* Only the lift: a colour transition would run on every theme switch. */
  transition: transform .18s ease-out;
}
.health-button > span { min-width: 0; }
.health-button .ua-icon { width: 1rem; height: 1rem; }
.platform-note { margin: 1rem 0 0; font-size: var(--fs-small); color: var(--text-secondary); }

/* The check-in as the homepage shows it (card, 2px border, the first answer marked), on the forest panel of the
   app pages' hero previews; an illustration, never a form. On S the panel runs from screen edge to screen edge, so the
   card keeps the content width and its three answers stay whole down to 320px. */
.health-preview { margin-inline: calc(var(--layout-gutter) * -1); padding: var(--layout-gutter); background: var(--scene-forest); }
.health-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: var(--pad);
  background: var(--surface-card);
  border: 2px solid var(--separator);
  box-shadow: 4px 4px 0 #9aad88;
}
.health-example p { margin: 0; }
.health-example-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--text-secondary); font-size: var(--fs-small); font-weight: 750; }
.health-example-head img { padding: 3px; background: var(--header-surface); image-rendering: pixelated; }
.health-example-title { font-size: var(--fs-h3); font-weight: 750; line-height: 1.4; }
.health-check-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.health-check-in li { min-width: 0; padding: .75rem 0; border: 2px solid var(--control-border); font-weight: 750; text-align: center; overflow-wrap: break-word; hyphens: auto; }
.health-check-in li:first-child { border-color: var(--action); background: var(--accent-tint); }
.health-observation { padding-block: .75rem; border-block: 1px solid var(--separator); }
.health-example figcaption { color: var(--text-secondary); font-size: var(--fs-small); line-height: 1.5; }

/* Sections follow at the section step; anchors land on their heads (the shared .section-head) under the header. */
.health-section { margin-top: var(--section); }
.uhrhealth-page .section-head p { color: var(--text-secondary); }
/* Two-sentence headings break between their sentences first (each wraps on its own only where it must, without
   balancing a word apart). */
.uhrhealth-page .section-head h2 > span { display: inline-block; max-width: 100%; text-wrap: pretty; }
.health-section > p:not([class]) { max-width: 60ch; margin: 0; color: var(--text-secondary); }
/* Notes qualify what the section promises: small, on the subtle surface with an accent rule. */
.health-note {
  max-width: 60ch;
  margin: 1.5rem 0 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent-text);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* The three areas (#verstehen): cards with a line icon on an accent tile, stacked on S and M, side by side on L. */
.health-areas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.health-areas article {
  min-width: 0;
  padding: var(--pad);
  background: var(--surface-card);
  border: 1px solid var(--separator);
  border-top: 3px solid var(--accent-text);
}
.health-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent-tint);
  border: 2px solid var(--separator);
  color: var(--accent-text);
}
.health-icon .ua-icon { width: 24px; height: 24px; }
.health-areas h3 { margin: .75rem 0 .25rem; }
.health-areas p { margin: 0; color: var(--text-secondary); }

/* Data sources (#daten): one row per source between rules, the name beside its text from M. */
.health-sources { max-width: 60rem; margin: 0; }
.health-sources > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; padding-block: 1rem; border-top: 1px solid var(--separator); }
.health-sources > div:last-child { border-bottom: 1px solid var(--separator); }
.health-sources dt { font-weight: 750; }
.health-sources dd { margin: 0; color: var(--text-secondary); }

/* Places and observations (#orte, #hinweise): stacked sections on S and M, two columns from L. */
.health-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--section); margin-top: var(--section); }
.health-pair > .health-section { margin-top: 0; }

/* The coach's three steps (#coach), numbered under a rule: stacked on S, side by side from M. */
.health-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.health-steps li { display: grid; align-content: start; gap: .25rem; min-width: 0; padding-top: 1rem; border-top: 2px solid var(--separator); counter-increment: step; }
.health-steps li::before { content: counter(step, decimal-leading-zero); font: 750 var(--fs-small)/1.5 var(--font-ui); letter-spacing: .04em; color: var(--accent-text); }
.health-steps strong { font: 750 var(--fs-h3)/1.4 var(--font-ui); letter-spacing: -.02em; }
.health-steps span { color: var(--text-secondary); }

/* Closing band (components.css) for the private beta: the pixel heart, the title, the note, the status as an amber tag
   and the three information pages as parchment links (as the homepage's app links). */
.health-closing .closing-band-art { width: 48px; height: 48px; }
.health-closing .closing-band-note { margin-top: 1.25rem; }
.health-closing .status-tag { border-color: #e6dcc3; background: transparent; color: var(--signal-amber); }
.health-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .875rem; margin-top: 1.5rem; }
.health-links a {
  display: flex;
  flex: 0 1 17rem;
  align-items: center;
  justify-content: space-between;
  gap: .625rem;
  min-width: 0;
  min-height: 48px;
  padding: .5rem 1rem .5rem 1.15rem;
  background: var(--on-image);
  color: var(--image-label);
  border: 2px solid var(--on-image);
  box-shadow: 3px 3px 0 #0f1f1b;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  overflow-wrap: break-word;
  hyphens: auto;
  transition: transform .18s ease-out, background-color .18s ease-out;
}
.health-links a > span { min-width: 0; }
.health-links a:focus-visible { outline-color: var(--signal-amber); }
.uhrhealth-page main > .back { margin-top: 2rem; }

@media (min-width: 640px) {
  .health-hero { padding-top: 2rem; }
  .health-preview { width: min(100%, 34rem); margin-inline: 0; padding: var(--pad); }
  .health-sources > div { grid-template-columns: minmax(8rem, 1fr) 3fr; gap: 2rem; }
  .health-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .health-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 3rem; padding-top: 2.5rem; }
  .health-preview { justify-self: end; }
  .health-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .health-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
}

@media (hover: hover) {
  .health-button:hover { background: var(--action-hover); border-color: var(--action-hover); transform: translateY(-2px); }
  .health-links a:hover { background: var(--signal-amber); border-color: var(--signal-amber); transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .health-button, .health-links a { transition: none; }
  .health-button:hover, .health-links a:hover { transform: none; }
}
@media (forced-colors: active) {
  .health-button, .health-links a { border-color: ButtonText; box-shadow: none; }
}
