/* Paket F – Geführte Anleitung: Hilfebox, Fachbegriffe, Fortschrittsliste, Assistent, Tour. Farben nur über Variablen. */

/* Hilfebox */
.hilfebox { background: var(--brand-soft); border: 1px solid var(--line-strong); border-left: 4px solid var(--brand); border-radius: var(--radius); margin: 0 0 1rem; max-width: 70rem; }
.hilfebox .hb-titel { margin: 0; font-size: 1rem; }
.hilfebox .hb-kopf { width: 100%; justify-content: flex-start; text-align: left; border: 0; background: transparent; padding: .55rem .9rem; font-weight: 600; font-size: .95rem; color: var(--text); min-height: 40px; border-radius: 0; }
.hilfebox .hb-kopf:hover { background: var(--panel-3); }
.hilfebox .hb-pfeil { display: inline-block; width: 1rem; }
.hilfebox .hb-inhalt { padding: 0 .9rem .7rem 2.1rem; }
.hb-liste { margin: 0; display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .35rem .9rem; }
.hb-liste dt { font-weight: 600; color: var(--text); }
.hb-liste dd { margin: 0; }
.hb-liste ol { margin: 0; padding-left: 1.2rem; }
.hb-beispiel { margin: .6rem 0 .4rem; padding: .45rem .7rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; }

/* Fachbegriffe */
.glossar-wrap { position: relative; display: inline; }
.glossar-term { display: inline; min-height: 0; padding: 0 .1rem; border: 0; border-bottom: 2px dotted var(--brand); border-radius: 0; background: transparent; color: var(--brand); font: inherit; font-weight: 600; cursor: help; }
.glossar-term:hover { background: var(--panel-3); }
.glossar-term[aria-expanded="true"] { background: var(--panel); border-bottom-style: solid; }
.glossar-pop { position: absolute; z-index: 40; left: 0; top: 100%; margin-top: .3rem; width: min(22rem, calc(100vw - 32px)); padding: .65rem .8rem; background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 400; text-align: left; line-height: 1.45; }
.glossar-pop p { margin: .3rem 0 0; }
.gl-liste { margin: 0; }
.gl-liste dt { font-weight: 600; margin-top: .8rem; scroll-margin-top: 1rem; }
.gl-liste dd { margin: .15rem 0 0; max-width: 60rem; }

/* Fortschrittsliste */
.fs-liste { list-style: none; margin: .5rem 0; padding: 0; border-top: 1px solid var(--line); }
.fs-zeile { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto auto; gap: .3rem .8rem; align-items: center; padding: .5rem .2rem; border-bottom: 1px solid var(--line); }
.fs-nr { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; color: var(--muted); }
.fs-man { display: flex; gap: .3rem; align-items: center; margin: 0; font-weight: 400; white-space: nowrap; }
.fs-man input { margin: 0; }
@media (max-width: 700px) {
  .fs-zeile { grid-template-columns: 2rem minmax(0, 1fr); }
  .fs-zeile .pill, .fs-zeile .fs-man { grid-column: 2; justify-self: start; }
}

/* Einrichtungsassistent (natives dialog-Element) */
dialog.assistent { width: min(40rem, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 1rem 1.3rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); color: var(--text); box-shadow: var(--shadow-lg); }
dialog.assistent::backdrop { background: rgba(0, 0, 0, .55); }
dialog.assistent h2 { margin-top: 0; }
.as-aktionen { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.as-aktionen #as-ab { margin-left: auto; }
.as-naechste li { margin-bottom: .5rem; }
@media (max-width: 520px) { .as-aktionen #as-ab { margin-left: 0; } }

/* Geführte Tour */
.tour { position: fixed; inset: 0; z-index: 60; }
.tour-spot { position: fixed; border-radius: 6px; outline: 3px solid #ffffff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .62); pointer-events: none; }
.tour-spot[hidden] { display: none; }
.tour:has(.tour-spot[hidden]) { background: rgba(0, 0, 0, .62); }
.tour-dialog { position: fixed; width: min(24rem, calc(100vw - 32px)); padding: .9rem 1.1rem; background: var(--panel); color: var(--text); border: 2px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.tour-dialog.mitte { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tour-dialog h2 { margin: .1rem 0 .4rem; font-size: 1.1rem; }
.tour-dialog p { margin: .2rem 0; }
.tour-dialog:focus { outline: none; }
.tour-dialog:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tour-aktionen { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.tour-aktionen #tour-ende { margin-left: auto; }
@media (max-width: 600px) {
  .tour-dialog, .tour-dialog.mitte { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; transform: none; max-height: 55vh; overflow-y: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .tour-spot { transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; }
}
@media (max-width: 700px) { .hb-liste { grid-template-columns: minmax(0, 1fr); gap: .1rem; } .hb-liste dd { margin-bottom: .5rem; } .hilfebox .hb-inhalt { padding-left: .9rem; } }
@media print { .hilfebox, .tour, .glossar-pop, .fs-man { display: none !important; } }
