/* Datenbank, page 629. One central diagram explains the selection of comparable
   records. Its dots are schematic, never a plotted sample or a quantitative
   ratio; only the hero crowd counts (one figure per hundred records). */

/* Hero: the records as a crowd in the photo frame (lumen.js, initCrowd). The
   figures appear while the count runs up, then line up in the three groups of
   the fact list; the legend gives their shapes and colours. */
.efh-lu .lu-db-hero { column-gap: clamp(24px, 4vw, 64px); padding-top: calc(var(--lu-head-offset, 0px) + clamp(20px, 3svh, 40px)); }
/* Match the shared no-overlap hero rule, so its large bottom space is not kept. */
.efh-lu .lu-page:not(:has(.lu-talk:not([hidden]), .lu-trio:not(.lu-trio--flat))) > .lu-db-hero { padding-bottom: clamp(32px, 5svh, 56px); }
.efh-lu .lu-db-hero .lu-hero__title { max-width: 15ch; font-size: clamp(40px, 3.8vw, 56px); line-height: 1.08; }
.efh-lu .lu-db-hero .lu-hero__product { margin-bottom: 10px; }
.efh-lu .lu-db-hero .lu-lead { margin-top: 20px; }
.efh-lu .lu-db-hero .lu-actions { margin-top: 26px; }
.efh-lu .lu-db-hero .lu-hero__visual--frame { justify-self: end; width: min(100%, 560px, calc((100svh - var(--lu-head-offset, 0px) - 100px) * 1.18)); padding-block: 0; }
.efh-lu .lu-db-crowd { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; aspect-ratio: 1.18; padding: 26px 28px 20px; background: #fff; container-type: inline-size; }
.efh-lu .lu-db-crowd p { margin: 0; }
.efh-lu .lu-db-crowd__value { display: flex; align-items: center; gap: .3em; color: var(--lu-ink); font-size: 44px; font-size: clamp(30px, 10cqi, 54px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.efh-lu .lu-db-crowd__num { display: inline-block; }
.efh-lu .lu-db-crowd__label { margin-top: 2px; color: var(--lu-text); font-size: 17px; font-size: clamp(15px, 3.4cqi, 18px); font-weight: 700; line-height: 1.3; }
.efh-lu .lu-db-crowd__field { position: relative; min-height: 0; }
.efh-lu .lu-db-crowd__field canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.efh-lu .lu-db-crowd__caption { display: grid; gap: 4px; }
.efh-lu .lu-db-crowd__legend { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; padding: 0; list-style: none; }
.efh-lu .lu-db-crowd__group { --lu-in: 1; --lu-dim: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; margin: 0; color: var(--lu-ink); font-size: 13.5px; font-weight: 600; line-height: 1.3; opacity: calc(var(--lu-in) * var(--lu-dim)); transform: translateY(calc((1 - var(--lu-in)) * 6px)); }
.efh-lu .lu-db-crowd__group strong { font-weight: 800; }
.efh-lu .lu-db-crowd__group svg { flex: none; width: 10px; height: 20px; fill: none; stroke: var(--lu-c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.efh-lu .lu-db-crowd__group--still { --lu-c: #44b8be; }
.efh-lu .lu-db-crowd__group--walk { --lu-c: #86bc35; }
.efh-lu .lu-db-crowd__group--run { --lu-c: #1f6f9a; }
.efh-lu .lu-db-crowd.is-done .lu-db-crowd__group { transition: opacity .2s ease; }
.efh-lu .lu-db-crowd__legend.has-focus .lu-db-crowd__group:not(.is-focus) { --lu-dim: .4; }
.efh-lu .lu-db-crowd__note { color: var(--lu-meta); font-size: 12.5px; line-height: 1.4; }
/* Until the script takes over, count and legend wait a moment, so a slow start
   never shows the final state before the count runs up. Without the script
   they appear after that moment. */
.efh-lu .lu-db-crowd:not(.is-ready) :is(.lu-db-crowd__value, .lu-db-crowd__legend) { animation: lu-db-crowd-wait 1.6s step-end both; }
@keyframes lu-db-crowd-wait { from { opacity: 0; } }
/* The visual comes first when stacked; the reserved canvas height is present
   before JavaScript or fonts load, so the count never pushes the heading down. */
@media (max-width: 860px) {
    .efh-lu .lu-db-hero { row-gap: 24px; padding-top: calc(var(--lu-head-offset, 0px) + 20px); }
    .efh-lu .lu-db-hero .lu-hero__copy { max-width: 700px; }
    .efh-lu .lu-db-hero .lu-hero__title { max-width: 19ch; }
    .efh-lu .lu-db-hero > .lu-hero__copy { grid-row: 2; }
    .efh-lu .lu-db-hero .lu-hero__visual--frame { grid-row: 1; justify-self: center; width: min(100%, 460px); padding-block: 0; }
}
@media (max-width: 640px) {
    .efh-lu .lu-db-hero { row-gap: 20px; padding-top: calc(var(--lu-head-offset, 0px) + 18px); }
    .efh-lu .lu-db-hero .lu-hero__title { max-width: none; font-size: clamp(30px, 8vw, 36px); }
    .efh-lu .lu-db-hero .lu-hero__product { margin-bottom: 6px; }
    .efh-lu .lu-db-hero .lu-lead { margin-top: 16px; }
    .efh-lu .lu-db-hero .lu-actions { margin-top: 22px; }
    .efh-lu .lu-db-crowd { height: clamp(290px, 42svh, 350px); aspect-ratio: auto; gap: 10px; padding: 16px 18px 14px; }
    .efh-lu .lu-db-crowd__legend { gap: 0 14px; }
    .efh-lu .lu-db-crowd__group { min-height: 24px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .efh-lu .lu-db-hero .wp-block-button__link { transition: none; }
    .efh-lu .lu-db-crowd.is-done .lu-db-crowd__group { transition: none; }
}

/* Facts: an editorial list with shared rules, rather than six separate cards. */
.efh-lu .lu-db-foundation { padding-block: var(--lu-section); }
.efh-lu .lu-page > .lu-db-foundation[id] { scroll-margin-top: calc(var(--lu-head-offset, 0px) + 28px); }
/* Give the two sides of the desktop section boundary the same breathing room.
   The shorter shadow fades inside that space; visible overflow also preserves
   its faint tail instead of cutting it at the hero's background edge. */
@media (min-width: 861px) {
    .efh-lu .lu-page:has(> .lu-db-hero) { --lu-db-section-gap: clamp(48px, 4vw, 64px); }
    .efh-lu .lu-db-hero { overflow: visible; }
    .efh-lu .lu-page:not(:has(.lu-talk:not([hidden]), .lu-trio:not(.lu-trio--flat))) > .lu-db-hero { padding-bottom: var(--lu-db-section-gap, 64px); }
    .efh-lu .lu-db-foundation { padding-top: var(--lu-db-section-gap, 64px); }
    .efh-lu .lu-db-crowd { box-shadow: 0 0 0 10px rgba(255, 255, 255, .75), 0 0 0 11px rgba(68, 184, 190, .35), 0 24px 40px -24px rgba(20, 58, 64, .28); }
}
.efh-lu :is(.lu-db-foundation, .lu-db-meaning, .lu-db-parameters, .lu-db-comparison) .lu-head__title { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.16; overflow-wrap: break-word; }
.efh-lu .lu-db-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px clamp(32px, 5vw, 72px); margin-top: 32px; font-size: 17.5px; line-height: 1.75; }
.efh-lu .lu-db-intro > p { max-width: 65ch; }
.efh-lu .lu-db-intro > p:first-child { color: var(--lu-ink); font-size: clamp(19px, 1.55vw, 22px); line-height: 1.6; }
.efh-lu .lu-db-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 48px 0 0; padding: 0; list-style: none; }
.efh-lu .lu-db-facts > li { min-width: 0; margin: 0; padding: 26px 0; border-top: 1px solid var(--lu-line-strong); color: var(--lu-text); font-size: 15.5px; line-height: 1.5; }
.efh-lu .lu-db-facts > li > strong { font-weight: 600; }
.efh-lu .lu-db-facts__value { display: block; margin-bottom: 6px; color: var(--lu-turq-deep); font: 800 clamp(26px, 2.6vw, 38px)/1.15 var(--lu-sans); letter-spacing: -.025em; }
@media (max-width: 959px) {
    .efh-lu .lu-db-intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .efh-lu .lu-db-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-top: 32px; }
    .efh-lu .lu-db-facts > li { padding-block: 22px; font-size: 14px; }
    .efh-lu .lu-db-facts__value { font-size: clamp(23px, 6.3vw, 29px); }
}

/* The central element: 15 matching records stay recognisable after selection.
   The same SVG point group appears in the population and the result. */
.efh-lu .lu-db-match { margin: 40px 0 0; padding: clamp(24px, 3.5vw, 48px); border: 1.5px solid transparent; border-radius: 32px; background: linear-gradient(var(--lu-mist), var(--lu-mist)) padding-box, linear-gradient(135deg, var(--lu-turq), var(--lu-green)) border-box; }
.efh-lu .lu-db-match__caption { color: var(--lu-ink); font: 800 clamp(22px, 2.1vw, 30px)/1.25 var(--lu-sans); text-wrap: balance; }
.efh-lu .lu-db-match__flow { --lu-db-flow-gap: clamp(44px, 4.5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; gap: var(--lu-db-flow-gap); margin: 32px 0 0; padding: 0; list-style: none; }
.efh-lu .lu-db-match__stage { position: relative; display: grid; align-content: center; justify-items: center; gap: 10px; min-width: 0; margin: 0; text-align: center; }
.efh-lu .lu-db-match__stage:not(:last-child)::before { content: ""; position: absolute; top: calc(50% - 3px); left: calc(100% + 4px); width: calc(var(--lu-db-flow-gap) - 18px); height: 6px; background: linear-gradient(90deg, var(--lu-turq), var(--lu-green)); mask: radial-gradient(circle, #000 0 2px, transparent 2.4px) left center / 10px 6px repeat-x; }
.efh-lu .lu-db-match__stage:not(:last-child)::after { content: ""; position: absolute; top: calc(50% - 7px); left: calc(100% + var(--lu-db-flow-gap) - 16px); width: 12px; height: 14px; background: var(--lu-green); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.efh-lu .lu-db-match__name { color: var(--lu-ink); font: 800 clamp(18px, 1.5vw, 21px)/1.3 var(--lu-sans); }
.efh-lu .lu-db-match__text { max-width: 22ch; color: var(--lu-text); font-size: 15px; line-height: 1.5; }
.efh-lu .lu-db-cloud { display: block; width: min(100%, 240px); height: 164px; margin-bottom: 12px; overflow: visible; }
.efh-lu .lu-db-cloud__records { fill: var(--lu-turq); }
.efh-lu .lu-db-match__selected { opacity: 1; transition: opacity .75s var(--lu-ease); }
.efh-lu .lu-db-match__selected--result { transition-delay: .35s; }
.efh-lu .lu-db-match.is-armed:not(.is-in) .lu-db-match__selected { opacity: .2; transition-duration: 0s; transition-delay: 0s; }
.efh-lu .lu-db-match__factors { justify-content: center; gap: 9px; max-width: 290px; margin: 12px 0 0; }
.efh-lu .lu-db-match__factors > li { min-width: 0; margin: 0; padding: 8px 11px; background: #fff; font-size: 14px; line-height: 1.4; text-align: left; }
.efh-lu .lu-db-match__factors > li::before { flex: none; background: var(--lu-turq); }
.efh-lu .lu-db-target { display: grid; place-items: center; width: min(100%, 180px); height: 164px; margin-bottom: 12px; }
.efh-lu .lu-db-target__group { display: block; width: min(100%, 156px); height: auto; overflow: visible; }
.efh-lu .lu-db-match__note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--lu-line); color: var(--lu-text); font-size: 13px; line-height: 1.5; }
@media (max-width: 719px) {
    .efh-lu .lu-db-match__flow { --lu-db-flow-gap: 44px; grid-template-columns: minmax(0, 1fr); }
    .efh-lu .lu-db-match__stage { width: 100%; }
    .efh-lu .lu-db-match__stage:not(:last-child)::before { top: calc(100% + 4px); left: calc(50% - 3px); width: 6px; height: calc(var(--lu-db-flow-gap) - 18px); background: linear-gradient(var(--lu-turq), var(--lu-green)); mask: radial-gradient(circle, #000 0 2px, transparent 2.4px) center top / 6px 10px repeat-y; }
    .efh-lu .lu-db-match__stage:not(:last-child)::after { top: calc(100% + var(--lu-db-flow-gap) - 17px); left: calc(50% - 6px); width: 12px; height: 14px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
    .efh-lu .lu-db-match__stage--cluster { padding-block: 16px; border-block: 1px solid var(--lu-line-strong); }
    .efh-lu .lu-db-match__factors { max-width: 440px; }
    .efh-lu .lu-db-cloud, .efh-lu .lu-db-target { height: 120px; margin-bottom: 4px; }
    .efh-lu .lu-db-target__group { width: 120px; }
}
@media (max-width: 640px) {
    .efh-lu .lu-db-match { margin-top: 28px; padding: 26px 20px; border-radius: 26px; }
    .efh-lu .lu-db-match__flow { margin-top: 28px; }
    .efh-lu .lu-db-match__factors > li { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .efh-lu .lu-db-match .lu-db-match__selected, .efh-lu .lu-db-match.is-armed:not(.is-in) .lu-db-match__selected { opacity: 1; transition: none; }
}

/* Explanation: full photographs beside two short reading columns. */
.efh-lu .lu-db-meaning { padding-block: var(--lu-section); background: var(--lu-mist); }
.efh-lu .lu-db-story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 5vw, 80px); margin-top: 44px; }
.efh-lu .lu-db-story + .lu-db-story { margin-top: clamp(56px, 7vw, 96px); }
.efh-lu .lu-db-story__copy { display: grid; gap: 22px; min-width: 0; max-width: 66ch; font-size: 17.5px; line-height: 1.75; }
.efh-lu .lu-db-story__copy strong { color: var(--lu-ink); font-weight: 700; }
.efh-lu .lu-db-photo { width: 100%; min-width: 0; margin: 0; overflow: hidden; border-radius: 26px; }
.efh-lu .lu-db-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.efh-lu .lu-db-story--reverse { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.efh-lu .lu-db-story--reverse .lu-db-story__copy { grid-column: 2; grid-row: 1; }
.efh-lu .lu-db-story--reverse .lu-db-photo { grid-column: 1; grid-row: 1; }
@media (max-width: 959px) {
    .efh-lu .lu-db-story { grid-template-columns: minmax(0, 1fr); }
    .efh-lu .lu-db-story--reverse .lu-db-story__copy, .efh-lu .lu-db-story--reverse .lu-db-photo { grid-column: auto; grid-row: auto; }
    .efh-lu .lu-db-photo { max-width: 660px; }
}
@media (max-width: 640px) {
    .efh-lu .lu-db-story { margin-top: 32px; }
    .efh-lu .lu-db-photo { border-radius: 20px; }
}

/* The original concluding statement becomes the heading for the method. */
.efh-lu .lu-db-method { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 32px clamp(32px, 5vw, 80px); padding-block: clamp(64px, 8vw, 112px); }
.efh-lu .lu-db-method__title { max-width: 28ch; color: var(--lu-ink); font-size: clamp(25px, 2.5vw, 35px); line-height: 1.3; }
.efh-lu .lu-db-method__copy { max-width: 68ch; font-size: 17.5px; line-height: 1.75; }
@media (max-width: 959px) {
    .efh-lu .lu-db-method { grid-template-columns: minmax(0, 1fr); }
    .efh-lu .lu-db-method__title { max-width: 36ch; }
}

/* The complete ten-factor source image has a native, accessible text alternative. */
.efh-lu .lu-db-parameters { padding-block: var(--lu-section); background: var(--lu-mist); }
.efh-lu .lu-db-parameters > .lu-head { max-width: 960px; }
.efh-lu .lu-db-parameters__intro { display: grid; gap: 22px; max-width: 76ch; margin-top: 28px; font-size: 17.5px; line-height: 1.75; }
.efh-lu .lu-db-parameters__intro strong { color: var(--lu-ink); }
.efh-lu .lu-db-parameters__frame { position: relative; margin-top: 36px; padding: clamp(18px, 3vw, 40px); border: 1px solid var(--lu-line); border-radius: 28px; background: #fff; }
.efh-lu .lu-db-parameters__image { width: min(100%, 886px); margin: 0 auto; }
.efh-lu .lu-db-parameters__image img { display: block; width: 100%; height: auto; object-fit: contain; }
.efh-lu .lu-db-parameters__factors { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.efh-lu .lu-db-parameters__factors > li { min-width: 0; max-width: 100%; padding: 9px 14px 9px 12px; background: var(--lu-mist); font-size: 15px; line-height: 1.4; }
.efh-lu .lu-db-parameters__factors > li::before { flex: none; background: var(--lu-turq); }
@media (min-width: 641px) {
    .efh-lu .lu-db-parameters__factors { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
}
@media (max-width: 640px) {
    .efh-lu .lu-db-parameters__frame { padding: 20px 16px; border-radius: 24px; }
    .efh-lu .lu-db-parameters__image { display: none; }
}

/* Comparison: the established lab/EFH cards, with the original cross and check. */
.efh-lu .lu-db-comparison { padding-block: var(--lu-section); }
.efh-lu .lu-db-comparison > .lu-head { max-width: 920px; }
.efh-lu .lu-db-comparison__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(24px, 3vw, 40px); margin-top: 40px; }
.efh-lu .lu-db-comparison__card { min-width: 0; gap: 26px; padding: clamp(24px, 3vw, 40px); }
.efh-lu .lu-db-comparison__head { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 16px; min-width: 0; }
.efh-lu .lu-db-comparison__symbol { width: 48px; margin: 0; }
.efh-lu .lu-db-comparison__symbol img { display: block; width: 100%; height: auto; }
.efh-lu .lu-db-comparison__head .lu-view__title { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.25; overflow-wrap: anywhere; }
.efh-lu .lu-db-comparison__list { margin: 0; padding: 0; list-style: none; }
.efh-lu .lu-db-comparison__list > li { position: relative; margin: 0; padding: 18px 0 18px 20px; border-top: 1px solid var(--lu-line-strong); color: var(--lu-text); font-size: 16.5px; line-height: 1.65; overflow-wrap: break-word; }
.efh-lu .lu-db-comparison__list > li::before { content: ""; position: absolute; top: 29px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--lu-meta); }
.efh-lu .lu-db-comparison__list > li:last-child { padding-bottom: 0; }
.efh-lu .lu-db-comparison__card.lu-view--efh .lu-db-comparison__list > li::before { background: var(--lu-turq-deep); }
.efh-lu .lu-db-comparison__list strong { color: var(--lu-ink); font-weight: 700; }
@media (max-width: 959px) {
    .efh-lu .lu-db-comparison__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .efh-lu .lu-db-comparison__card { padding: 26px 22px; border-radius: 26px; }
    .efh-lu .lu-db-comparison__head { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
    .efh-lu .lu-db-comparison__symbol { width: 40px; }
    .efh-lu .lu-db-comparison__list > li { font-size: 16px; }
}
