.hs { display: grid; gap: var(--sp-3); min-width: 0; }
.hs-buehne { display: grid; min-width: 0; }
.hs-buehne > * { grid-area: 1 / 1; min-width: 0; }
.hs-buehne > .report-card { align-self: stretch; }
.hs-frame, .hs-schritte { display: none; }

.hs-frame {
  align-self: stretch;
  background: var(--c-surface);
  border: 1px solid var(--c-hairline);
  box-shadow: 0 10px 24px oklch(0.19 0.01 80 / .10), 0 2px 6px oklch(0.19 0.01 80 / .06);
  font-size: var(--fs--1);
  color: var(--c-text);
}
.hs-kopf {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: var(--rule-w) solid var(--c-text-strong);
  font-family: var(--font-mono);
}
.hs-kopf b { font-weight: 600; color: var(--c-text-strong); }
.hs-kopf span { color: var(--c-text-muted); }
.hs-inhalt { padding: var(--sp-4); display: grid; gap: var(--sp-3); }
.hs-hinweis { font-family: var(--font-mono); color: var(--c-text-muted); margin: 0; font-size: .75rem; line-height: 1.45; }

.hs-suche {
  display: flex; align-items: center; gap: var(--sp-2);
  border: 1px solid var(--c-hairline-strong); padding: .55rem .75rem;
  font-family: var(--font-mono); color: var(--c-text-strong); overflow: hidden; white-space: nowrap;
}
.hs-suche svg { flex: none; width: 1rem; height: 1rem; color: var(--c-text-muted); }
.hs-suche .hs-tippen { display: inline-block; min-width: 0; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.hs-treffer { display: grid; gap: .15rem; padding: var(--sp-2) 0; border-bottom: 1px dashed var(--c-hairline); }
.hs-treffer:last-child { border-bottom: 0; }
.hs-treffer .u { font-family: var(--font-mono); font-size: .75rem; color: var(--c-text-muted); }
.hs-treffer .t { color: var(--c-text-strong); font-weight: 600; line-height: 1.3; }
.hs-treffer .d { color: var(--c-text-muted); line-height: 1.4; }
.hs-treffer--blass .t, .hs-treffer--blass .d { color: transparent; background: var(--c-hairline); border-radius: 0; height: .7em; width: 80%; }
.hs-treffer--blass .d { width: 60%; }
.hs-treffer--ihr { position: relative; padding-inline: var(--sp-2); margin-inline: calc(-1 * var(--sp-2)); }
.hs-treffer--ihr::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: color-mix(in oklch, var(--marker-500) 42%, transparent);
  transform-origin: left center;
}
.hs-treffer--ihr > * { position: relative; z-index: 1; }

.hs-browser { position: relative; border: 1px solid var(--c-hairline-strong); background: var(--c-bg-alt, var(--c-surface)); }
.hs-browser-leiste { display: flex; align-items: center; gap: .3rem; padding: .35rem .5rem; border-bottom: 1px solid var(--c-hairline); font-family: var(--font-mono); font-size: .75rem; color: var(--c-text-muted); }
.hs-browser-leiste i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--c-hairline-strong); }
.hs-browser-leiste span { margin-left: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-browser img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 355; object-fit: cover; object-position: top center; }
.hs-haken { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.hs-haken li { display: flex; gap: .5rem; align-items: baseline; }
.hs-haken li::before { content: "✓"; font-weight: 700; color: var(--gruen-600); }

.hs-melder { display: grid; gap: var(--sp-2); }
.hs-meldung {
  display: grid; grid-template-columns: auto 1fr; gap: .1rem .65rem; align-items: start;
  border: 1px solid var(--c-hairline-strong); padding: .6rem .7rem; background: var(--c-surface);
}
.hs-meldung .i { grid-row: span 2; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; background: var(--tinte-950); color: #fff; font-family: var(--font-mono); font-size: .75rem; font-weight: 700; }
.hs-meldung .t { color: var(--c-text-strong); font-weight: 600; line-height: 1.3; }
.hs-meldung .d { color: var(--c-text-muted); font-family: var(--font-mono); font-size: .75rem; }

.hs-zeilen { display: grid; }
.hs-zeile { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3); align-items: baseline; padding-block: .45rem; border-bottom: 1px dashed var(--c-hairline); }
.hs-zeile:last-child { border-bottom: 0; }
.hs-zeile .v { font-family: var(--font-mono); font-weight: 700; color: var(--c-text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-zeile .v.ok { color: var(--gruen-600); }
.hs-zeile .v.luecke { color: var(--rot-600); }
.hs-zeilen--bwa .hs-zeile { grid-template-columns: 1fr 3.4rem 3.4rem; }
.hs-zeilen--bwa .hs-zeile .v { text-align: right; }
.hs-zeilen--bwa .hs-zeile .v.alt { color: var(--c-text-muted); font-weight: 400; }
.hs-zeilen--bwa .hs-zeile--kopf { font-family: var(--font-mono); font-size: .7rem; color: var(--c-text-muted); padding-block: 0 .3rem; border-bottom: 1px solid var(--c-hairline-strong); }
.hs-zeilen--bwa .hs-zeile--kopf span { text-align: right; }

.hs-balken { display: grid; gap: .55rem; }
.hs-balken-z { display: grid; grid-template-columns: 1fr auto; gap: .15rem var(--sp-3); }
.hs-balken-z .k { color: var(--c-text-strong); }
.hs-balken-z .v { font-family: var(--font-mono); color: var(--c-text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hs-balken-z .b { grid-column: 1 / -1; height: .45rem; background: var(--c-hairline); position: relative; overflow: hidden; }
.hs-balken-z .b::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--tinte-950); transform-origin: left center; }

.hs-bausteine { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.hs-baustein { border: 1px solid var(--c-hairline-strong); padding: .6rem .7rem; display: grid; gap: .1rem; }
.hs-baustein .t { color: var(--c-text-strong); font-weight: 600; }
.hs-baustein .d { color: var(--c-text-muted); font-size: .75rem; line-height: 1.35; }
.hs-baustein.is-an { border-color: var(--tinte-950); box-shadow: inset 0 0 0 1px var(--tinte-950); }

.hs-schritte { gap: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--c-hairline); }
.hs-schritt {
  appearance: none; background: none; border: 0; margin: 0; cursor: pointer;
  padding: .55rem .25rem .2rem; text-align: left;
  font: 400 .75rem/1.2 var(--font-mono); color: var(--c-text-muted);
  display: grid; gap: .35rem; min-height: 2.75rem; align-content: start; min-width: 0; overflow-wrap: anywhere; hyphens: auto;
}
.hs-schritt::before { content: ""; height: 2px; background: var(--c-hairline); background-image: linear-gradient(var(--tinte-950), var(--tinte-950)); background-repeat: no-repeat; background-size: 0% 100%; }
.hs-schritt[aria-current="step"] { color: var(--c-text-strong); font-weight: 600; }
.hs-schritt.is-durch::before { background-size: 100% 100%; }
.hs-schritt:focus-visible { outline: 2px solid var(--tinte-950); outline-offset: 2px; }
@media (hover: hover) { .hs-schritt:hover { color: var(--c-text-strong); } }

.js .hs-frame { display: block; visibility: hidden; opacity: 0; }
.js .hs-schritte { display: grid; visibility: hidden; }
.hs.is-bereit .hs-schritte { visibility: visible; }
.js .hs:not(.is-ende) .report-card { opacity: 0; pointer-events: none; }
.js .hs:not(.is-bereit):not(.is-ende) .report-card { animation: hs-notfall .3s linear 2.5s forwards; }
.hs.is-bereit .report-card { transition: opacity .55s var(--ease-house), translate .55s var(--ease-house); }
.hs.is-bereit:not(.is-ende) .report-card { opacity: 0; translate: 0 .5rem; pointer-events: none; }
.hs.is-bereit .hs-frame.is-aktiv { visibility: visible; opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .hs.is-bereit .hs-frame { transition: opacity .55s var(--ease-house), translate .55s var(--ease-house), visibility 0s linear .55s; translate: 0 .5rem; }
  .hs.is-bereit .hs-frame.is-aktiv { translate: 0 0; transition: opacity .55s var(--ease-house), translate .55s var(--ease-house), visibility 0s; }
  .hs.is-bereit.is-laeuft .hs-schritt[aria-current="step"]::before { animation: hs-fortschritt var(--hs-dauer, 3s) linear forwards; }
  .hs-frame.is-aktiv .hs-tippen { animation: hs-tippen 1.35s steps(24, end) .3s both; }
  .hs-frame.is-aktiv .hs-treffer--ihr::before { animation: hs-marker .75s var(--ease-house) 1.95s both; }
  .hs-frame.is-aktiv [data-hs-stufe] { animation: hs-auf .6s var(--ease-house) both; animation-delay: calc(var(--s, 0) * .8s + .35s); }
  .hs-frame.is-aktiv .hs-balken-z .b::after { animation: hs-balken 1s var(--ease-house) both; animation-delay: calc(var(--s, 0) * .8s + .5s); }
  .hs-frame.is-aktiv .hs-baustein[data-hs-an] { animation: hs-an .01s linear both; animation-delay: calc(var(--s, 0) * .8s + .85s); }
}
@keyframes hs-notfall { to { opacity: 1; pointer-events: auto; } }
@keyframes hs-fortschritt { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes hs-tippen { from { max-width: 0; } to { max-width: 100%; } }
@keyframes hs-marker { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hs-auf { from { opacity: 0; translate: 0 .45rem; } to { opacity: 1; translate: 0 0; } }
@keyframes hs-balken { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hs-an { from { border-color: var(--c-hairline-strong); box-shadow: none; } to { border-color: var(--tinte-950); box-shadow: inset 0 0 0 1px var(--tinte-950); } }

@media (prefers-reduced-motion: reduce) {
  .js .hs-frame, .js .hs-schritte { display: none; }
  .js .hs:not(.is-ende) .report-card { opacity: 1; translate: none; pointer-events: auto; }
}
