/* quik Sites: Hilfe-Zentrum (public/js/hilfe.js). Präfix hz- für die Seite, sk- für die Skizzen der Oberfläche.
   Stil wie die übrige App (docs/GESTALTUNG.md Abschnitte 12 bis 14): hell, weiße Karten mit feiner Linie, keine Signalfarbe;
   der Akzent der Marke nur zart in den Skizzen. Wenig Text, das Bild trägt. Geprüft bei 1440, 1024 und 390. */

.hz { display: flex; flex-direction: column; }
.hz-body { display: flex; flex-direction: column; gap: 36px; }
.hz-kick { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.hz-x { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.4; }
.hz-go { display: inline-flex; flex: none; color: var(--ink-faint); transition: transform .3s var(--ease), color .2s; }
.hz-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--surface-3); font-size: var(--fs-xs); font-weight: 600; line-height: 22px; text-align: center; color: var(--ink-soft); }

/* ---------- Kopf der Startseite: Titel, große Suche, Szene ---------- */
.hz-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; padding: 32px 36px; margin-bottom: 36px; overflow: hidden; }
.hz-hero-t { min-width: 0; }
.hz-hero h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; margin-bottom: 6px; }
.hz-hero .lede { margin-bottom: 22px; }
.hz-hero-art { display: block; flex: none; width: 280px; margin: -12px 0; }
/* Ruhiger Kopf (GESTALTUNG Abschnitt 17): ohne Karte und Bild, Titel und Rundgang in einer Zeile, darunter die Suche */
.hz-hero.is-flat { display: block; padding: 0; margin-bottom: 28px; overflow: visible; }
.hz-hero-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hz-hero-h h1 { margin: 0; }
.hz-hero-h .hz-tour { width: auto; flex: none; gap: 8px; }
.hz-search { position: relative; display: flex; align-items: center; max-width: 560px; }
.hz-search > .ic { position: absolute; left: 18px; color: var(--ink-faint); pointer-events: none; }
.hz-q-in { width: 100%; height: 56px; padding: 0 52px 0 50px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); font: inherit; font-size: var(--fs-lg); color: var(--fg); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.hz-q-in::placeholder { color: var(--ink-faint); }
.hz-q-in::-webkit-search-cancel-button { display: none; }
.hz-q-in:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.hz-search:focus-within > .ic { color: var(--fg); }
.hz-q-x { position: absolute; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 99px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.hz-q-x:hover { background: var(--hover); color: var(--fg); }
.hz-q-x[hidden] { display: none; }
.hz-kbd { position: absolute; right: 16px; min-width: 24px; text-align: center; pointer-events: none; }
.hz-q-x:not([hidden]) + .hz-kbd, .hz-q-in:focus ~ .hz-kbd { display: none; }

/* ---------- Abschnitte ---------- */
.hz-sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hz-sec-h h2 { font-size: var(--fs-lg); letter-spacing: -.01em; }
.hz-sec-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); color: var(--ink-soft); }

/* Bild einer Kachel oder eines Schritts: Skizze auf weicher Fläche bzw. Symbol */
.hz-pic { display: block; flex: none; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.hz-pic.is-ic { display: grid; place-items: center; }

/* Loslegen: Bildkacheln */
.hz-start { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hz-st { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--surface); color: var(--ink); overflow: hidden; transition: border-color .2s, transform .4s var(--ease); }
.hz-st:hover { text-decoration: none; border-color: var(--line-strong); transform: translateY(-2px); }
.hz-st > .hz-pic { border-bottom: 1px solid var(--line-soft); }
.hz-st-b { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; min-width: 0; }
.hz-st-b b { font-size: var(--fs-md); font-weight: 600; color: var(--fg); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hz-st-m { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink-faint); }
.hz-st-m .ic { transition: transform .3s var(--ease); }
.hz-st:hover .hz-st-m { color: var(--fg); }
.hz-st:hover .hz-st-m .ic { transform: translateX(3px); }

/* Themen: Kacheln mit Symbol, Titel, einer Zeile */
.hz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hz-tile { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 84px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.hz-tile:hover { text-decoration: none; border-color: var(--line-strong); }
.hz-tile.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.hz-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--ink-soft); transition: background .2s, color .2s; }
.hz-tile:hover .hz-ic, .hz-tile.is-active .hz-ic { background: var(--fg); color: var(--on-fg); }
.hz-tile-b { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hz-tile-b b { font-size: var(--fs-base); font-weight: 600; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hz-tile-b .hz-x { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hz-tile:hover .hz-go, .hz-tile.is-active .hz-go, .hz-tour:hover .hz-go { color: var(--fg); transform: translateX(3px); }
/* Lange Gruppen: „n weitere“ (ruhig.js mehrZeigen) unter dem Raster */
.hz-grid > .ru-mehr-k { grid-column: 1 / -1; justify-self: start; }
/* Kacheln einzeilig: Symbol und Titel, die Einleitung im Tooltip */
.hz-tile { min-height: 60px; padding-block: 10px; }
.hz-tile .hz-ic { width: 34px; height: 34px; border-radius: 10px; }
.hz-ic.is-lg { width: 52px; height: 52px; border-radius: 14px; }
/* Ansprechpartner als eine Zeile am Ende der Hilfe */
.hz-ct.is-line { padding: 12px 16px; }
.hz-ct.is-line .hz-av { width: 36px; height: 36px; font-size: var(--fs-sm); }
.hz-ct.is-line .hz-ct-b b { font-size: var(--fs-base); }

/* Einführung und Ansprechpartner nebeneinander */
.hz-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.hz-slot { display: flex; min-width: 0; }
.hz-slot:empty { display: none; }
.hz-slot > .hz-ct { flex: 1; }
.hz-ct, .hz-tour { display: flex; align-items: center; gap: 12px 16px; min-width: 0; text-align: left; }
.hz-ct { flex-wrap: wrap; }
.hz-tour { width: 100%; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s; }
.hz-tour:hover { border-color: var(--line-strong); }
.hz-ct-b { display: flex; flex-direction: column; gap: 2px; flex: 1 1 210px; min-width: 0; }
.hz-ct-b b { font-size: var(--fs-md); font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
.hz-ct-note { margin-top: 6px; font-size: var(--fs-sm); color: var(--ink); line-height: 1.5; max-width: 60ch; }
.hz-av { width: 56px; height: 56px; object-fit: cover; font-size: var(--fs-lg); }
.hz-ct-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hz-ct-acts .btn { max-width: 100%; }
.hz-ct-acts .btn > span { overflow: hidden; text-overflow: ellipsis; }
.hz-ct-acts .ic { flex: none; color: var(--ink-soft); }

/* Suche ohne Treffer */
.hz-none { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 24px; text-align: center; }
.hz-none b { font-size: var(--fs-lg); font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }

/* ---------- Eine Anleitung ---------- */
.hz-back { align-self: flex-start; margin-bottom: 16px; text-decoration: none; }
.hz-back:hover { text-decoration: underline; }
.hz-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 24px; padding: 24px 28px; margin-bottom: 20px; }
.hz-head-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hz-head h1 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; overflow-wrap: anywhere; }
.hz-head .lede { margin-top: 2px; }
.hz-head-a { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; min-width: 0; }
.hz-prog { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hz-prog[hidden] { display: none; }
.hz-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hz-links .btn { max-width: 100%; }
.hz-links .btn > span { overflow: hidden; text-overflow: ellipsis; }

/* Schritte als nummerierte Karten: oben die Skizze, darunter Nummer und ein Satz */
.hz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hz-step { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--surface); overflow: hidden; }
.hz-step > .hz-pic { border-bottom: 1px solid var(--line-soft); transition: opacity .2s; }
.hz-step-b { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px 18px; min-width: 0; }
.hz-step-b p { flex: 1; min-width: 0; font-size: var(--fs-base); line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.hz-num { position: relative; display: grid; place-items: center; flex: none; width: 26px; height: 26px; margin-top: -2px; padding: 0; border: 0; border-radius: 99px; background: var(--fg); color: var(--on-fg); font: 600 var(--fs-xs) var(--font); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .2s, color .2s; }
.hz-num-c { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.hz-num:hover .hz-num-n, .hz-step.is-done .hz-num-n { opacity: 0; }
.hz-num:hover .hz-num-c, .hz-step.is-done .hz-num-c { opacity: 1; }
/* Erledigtes wird ruhig, nicht grün */
.hz-step.is-done .hz-num { background: var(--surface-3); color: var(--ink-soft); }
.hz-step.is-done .hz-step-b p { color: var(--ink-faint); }
.hz-step.is-done > .hz-pic { opacity: .55; }
/* Überblick statt Ablauf (z. B. Rollen): flache Karten mit Symbol links, ohne Nummer */
.hz-steps.is-flat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hz-steps.is-flat .hz-step { flex-direction: row; align-items: center; border-radius: 16px; }
.hz-steps.is-flat .hz-pic { aspect-ratio: auto; width: 84px; align-self: stretch; border-bottom: 0; background: transparent; }
.hz-steps.is-flat .hz-step-b { padding: 14px 16px 14px 0; }
/* Beschriftung aus der App im Fließtext */
.hz-q { padding: 1px 6px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--surface-2); font-size: .93em; font-weight: 600; line-height: 1.35; color: var(--fg); display: inline-block; max-width: 100%; vertical-align: baseline; overflow-wrap: anywhere; }
.lede .hz-q { background: var(--surface-2); }

/* Hinweise: ruhige Info-Zeilen ohne Kasten */
.hz-notes { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding: 0 4px; }
.hz-note { display: flex; align-items: flex-start; gap: 10px; max-width: 86ch; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-soft); }
.hz-note > .ic { flex: none; margin-top: 2px; color: var(--ink-faint); }
.hz-topic > .hz-slot:not(:empty), .hz-topic > .hz-sec { margin-top: 32px; }

/* ---------- Skizzen (SVG 160 × 100) ---------- */
.sk { display: block; width: 100%; height: 100%; }
.sk-win { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.sk-soft { fill: var(--surface-2); }
.sk-bar { fill: var(--surface-3); }
.sk-barf { fill: color-mix(in srgb, var(--ink-faint) 32%, var(--surface)); }
.sk-ink { fill: var(--fg); }
.sk-inkb { fill: color-mix(in srgb, var(--ink) 58%, var(--surface)); }
.sk-on { fill: var(--on-fg); }
.sk-onf { fill: var(--on-fg); }
.sk-onb { fill: var(--on-fg); opacity: .72; }
.sk-i { color: var(--ink-soft); overflow: visible; }
.sk-oni { color: var(--on-fg); }
.sk-acc { fill: var(--accent-soft); }
.sk-accf { fill: var(--accent); }
.sk-sel { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; }
.sk-selb { stroke: var(--accent); stroke-width: 1.2; }
.sk-ring { fill: none; stroke: var(--accent); stroke-width: 1.1; stroke-dasharray: 3 3; opacity: .65; }
.sk-in { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.sk-open { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.sk-pop { fill: var(--surface); stroke: var(--line); stroke-width: 1; filter: drop-shadow(0 2px 3px rgba(var(--shadow-rgb), .12)); }
.sk-scrim { fill: var(--fg); opacity: .14; }
.sk-ln { fill: none; stroke: var(--line); stroke-width: 1; }
.sk-ln2 { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.sk-ul { fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; }
.sk-link { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 2.5 3; opacity: .8; }
.sk-dash { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 4 4; }
.sk-caret { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; }
.sk-chk { fill: none; stroke: var(--on-fg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sk-cur { fill: var(--fg); stroke: var(--surface); stroke-width: 1; stroke-linejoin: round; }
.sk-ok { fill: var(--green-dot); }
.sk-halo { fill: var(--accent-soft); }
.sk-ringf { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.sk-half { opacity: .35; }
.sk-big { color: var(--fg); }
.sk-plus { fill: none; stroke: var(--ink-faint); stroke-width: 1.4; stroke-linecap: round; opacity: .6; }
.sk text { font: 600 6.5px var(--font); letter-spacing: 0; }
.sk-t { fill: var(--ink); }
.sk text.sk-s { font-size: 5.6px; }
.sk text.sk-it { font-style: italic; }
.sk text.sk-xl { font-size: 18px; font-weight: 700; }

/* ---------- Schmaler: Tablet bzw. Fenster neben der Seitenleiste ---------- */
@media (max-width: 1099px) {
  .hz-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hz-grid, .hz-steps.is-flat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hz-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hz-hero-art { width: 220px; }
  .hz-head { grid-template-columns: auto minmax(0, 1fr); }
  .hz-head-a { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .hz-links { justify-content: flex-start; }
}
@media (min-width: 1100px) and (max-width: 1359px) { .hz-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .hz-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .hz-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 24px; }
  .hz-hero-art { display: none; }
}
/* ---------- Handy ---------- */
@media (max-width: 640px) {
  .hz-body { gap: 28px; }
  .hz-hero { padding: 20px 16px; margin-bottom: 28px; border-radius: 16px; }
  .hz-hero .lede { margin-bottom: 16px; }
  /* Drei Knöpfe im Kopf (Rundgang, Klick-Tutorial, Dokumentation): unter dem Titel in Reihen statt als Stapel daneben */
  .hz-hero-h { flex-wrap: wrap; }
  .hz-hero-a { width: 100%; }
  .hz-q-in { height: 52px; padding-right: 48px; } .hz-q-x { right: 6px; width: 40px; height: 40px; }
  .hz-kbd { display: none; }
  .hz-start { gap: 10px; }
  .hz-st { border-radius: 14px; }
  .hz-st-b { padding: 10px 12px 12px; }
  .hz-st-b b { font-size: var(--fs-base); white-space: normal; }
  .hz-grid, .hz-steps, .hz-steps.is-flat { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hz-ct, .hz-tour { padding: 16px; }
  .hz-ct-acts { flex-basis: 100%; }
  .hz-ct-acts .btn, .hz-links .btn { min-height: 44px; }
  .hz-back { min-height: 44px; margin-bottom: 4px; }
  .hz-head { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 16px; border-radius: 16px; }
  .hz-head > .illu { width: 64px !important; height: 64px !important; }
  .hz-links { width: 100%; }
  .hz-links .btn { flex: 1 1 auto; }
  /* Schritt als Zeile: Skizze links, Text rechts */
  .hz-step { flex-direction: row; align-items: stretch; border-radius: 14px; }
  .hz-step > .hz-pic { width: 116px; aspect-ratio: auto; min-height: 84px; border-bottom: 0; border-right: 1px solid var(--line-soft); display: grid; place-items: center; }
  .hz-step > .hz-pic > .sk { height: auto; }
  .hz-step-b { flex: 1; gap: 10px; padding: 12px; }
  .hz-steps.is-flat .hz-pic { width: 72px; min-height: 0; border-right: 0; }
  .hz-steps.is-flat .hz-step-b { padding: 12px 12px 12px 0; }
  .hz-num { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .hz-st, .hz-go, .hz-st-m .ic { transition: none; } .hz-st:hover { transform: none; } }
