/* HUNDREDHANDS: Suche über Erste Schritte und Academy (12.11.2026, Kundenwunsch Reto Winkler) */
.nav-suche{display:inline-flex;flex:none;align-items:center;gap:8px;height:38px;padding:0 13px 0 12px;margin:0;border:1px solid var(--hair);border-radius:999px;background:#fff;color:var(--muted);font:500 13px/1 var(--sans);cursor:pointer;white-space:nowrap;-webkit-appearance:none;appearance:none;transition:border-color .15s,color .15s}
.nav-suche:hover,.nav-suche:focus-visible{border-color:#cfa989;color:var(--ink)}
.nav-suche:focus-visible,.hhs-x:focus-visible,.hhs-mehr:focus-visible,.hhs-bar button:focus-visible{outline:2px solid var(--copper);outline-offset:2px}
.nav-suche svg{width:16px;height:16px;flex:none}
.nav-suche kbd{display:none;font:500 11px/1 var(--mono);border:1px solid var(--hair);border-radius:4px;padding:3px 6px;color:var(--muted);background:var(--paper)}
@media(hover:hover) and (min-width:1181px){.nav-suche kbd{display:inline-block}}
@media(max-width:1180px){.nav-suche{width:36px;height:36px;padding:0;justify-content:center;gap:0}.nav-suche span,.nav-suche kbd{display:none}.nav-suche svg{width:17px;height:17px}}
/* Tablet-Breite: Die Kopfzeile ist voll. Der Website-Link weicht der Suche (wie auf dem Handy ohnehin), das Logo führt weiter zur Startseite. */
@media(max-width:1000px){.navlinks .nav-home{display:none}}
/* Handy: Die Kopfzeile bleibt, wie sie ist. Die Suche sitzt als runder Knopf unten rechts und ist beim Lesen immer erreichbar. */
.hhs-fab{display:none}
@media(max-width:760px){
 .nav-suche{display:none}
 .hhs-fab{display:flex;align-items:center;justify-content:center;position:fixed;right:16px;bottom:calc(18px + env(safe-area-inset-bottom));z-index:72;width:50px;height:50px;padding:0;margin:0;border:1px solid #d9c4ae;border-radius:50%;background:#fff;color:var(--deep);box-shadow:0 12px 28px -12px rgba(34,30,26,.5);cursor:pointer;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;transition:bottom .2s}
 .hhs-fab svg{width:21px;height:21px}
 .hhs-fab:focus-visible{outline:2px solid var(--copper);outline-offset:3px}
 html.hhs-hat-bar .hhs-fab{bottom:calc(84px + env(safe-area-inset-bottom))}
 html:has(.kurs-weiterlesen:not([hidden])) .hhs-fab,html:has(.kurs-hinweis.zeigen) .hhs-fab{bottom:calc(92px + env(safe-area-inset-bottom))}
}
@media print{.nav-suche,.hhs-fab,.hhs-bar,.hhs-wrap,.hhs-hinweis{display:none!important}}

/* Suchfenster */
.hhs-wrap{position:fixed;inset:0;z-index:1000;display:flex;justify-content:center;align-items:flex-start;padding:9vh 20px 20px;background:rgba(34,30,26,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.hhs-wrap[hidden]{display:none}
.hhs-panel{width:100%;max-width:720px;max-height:min(78vh,760px);display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--hair);border-radius:8px;box-shadow:0 30px 70px -25px rgba(0,0,0,.55);overflow:hidden;font-family:var(--sans);color:var(--ink)}
.hhs-kopf{display:flex;align-items:center;gap:12px;padding:16px 16px 16px 20px;border-bottom:1px solid var(--hair);background:#fff}
.hhs-kopf>svg{width:20px;height:20px;flex:none;color:var(--copper)}
.hhs-input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:400 18px/1.4 var(--sans);color:var(--ink);padding:6px 0;margin:0;-webkit-appearance:none;appearance:none}
.hhs-input::placeholder{color:#a39b90}
.hhs-input::-webkit-search-cancel-button{display:none}
.hhs-x{flex:none;width:36px;height:36px;border:1px solid var(--hair);border-radius:999px;background:var(--paper);color:var(--muted);font:400 20px/1 var(--sans);cursor:pointer;padding:0}
.hhs-x:hover{color:var(--ink);border-color:#cfa989}
.hhs-liste{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px 0 10px}
.hhs-leer{padding:26px 24px 28px;color:var(--muted);font-size:15px;line-height:1.6;text-wrap:pretty}
.hhs-leer strong{display:block;color:var(--ink);font:500 21px/1.3 var(--serif);margin-bottom:6px;text-wrap:balance}
.hhs-bsp{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px;font-size:13px}
.hhs-bsp button{border:1px solid #cfa989;background:#fff;color:var(--deep);border-radius:999px;padding:7px 14px;font:500 13px/1 var(--sans);cursor:pointer}
.hhs-bsp button:hover{border-color:var(--deep);color:var(--ink)}
.hhs-gruppe{padding:6px 0 4px}
.hhs-gruppe+.hhs-gruppe{border-top:1px solid var(--hair);margin-top:6px;padding-top:10px}
.hhs-seite{display:flex;align-items:baseline;gap:10px;margin:0;padding:10px 24px 6px;font:500 12px/1.4 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--deep)}
.hhs-seite b{font-weight:500;color:var(--ink)}
.hhs-zahl{margin-left:auto;flex:none;color:var(--muted);letter-spacing:.04em}
.hhs-hit{display:block;padding:11px 24px 12px;text-decoration:none;color:var(--ink);border-left:3px solid transparent}
.hhs-hit:hover,.hhs-hit.aktiv{background:var(--soft);border-left-color:var(--copper)}
.hhs-sec{display:block;font:500 12.5px/1.4 var(--sans);color:var(--muted);margin-bottom:3px}
.hhs-snip{display:block;font-size:15px;line-height:1.6;color:#3d3832;text-wrap:pretty}
.hhs-hit.ist-titel .hhs-snip{font:500 17px/1.35 var(--serif);color:var(--ink)}
.hhs-wrap mark,mark.hhs-mark{background:#f3d9bd;color:inherit;border-radius:2px;padding:0 1px;box-shadow:0 0 0 1px #f3d9bd}
mark.hhs-mark.hier{background:#e7b17d;box-shadow:0 0 0 2px #e7b17d}
.hhs-mehr{display:block;margin:4px 24px 8px;padding:8px 0;border:0;background:none;color:var(--deep);font:500 13px/1.3 var(--sans);cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#cfa989}
.hhs-mehr:hover{color:var(--ink)}
.hhs-fuss{padding:10px 24px;border-top:1px solid var(--hair);background:#fff;color:var(--muted);font:400 12px/1.4 var(--sans);display:flex;gap:12px;justify-content:space-between}
@media(hover:none),(max-width:760px){.hhs-tasten{display:none}}
.hhs-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:760px){
 .hhs-wrap{padding:0;background:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none}
 .hhs-panel{max-width:none;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none}
 .hhs-kopf{padding:12px 12px 12px 16px}
 .hhs-seite{padding:10px 18px 6px;font-size:11px}
 .hhs-hit{padding:11px 18px 12px 15px}
 .hhs-leer{padding:24px 18px}
 .hhs-mehr{margin-left:18px}
 .hhs-fuss{padding:10px 18px calc(10px + env(safe-area-inset-bottom))}
}

/* Fundstelle auf der Seite */
[data-word].hhs-ziel,[data-suche].hhs-ziel{animation:hhs-blink 1.8s ease-out 1}
@keyframes hhs-blink{0%,35%{background-color:#f6e6d3;box-shadow:0 0 0 8px #f6e6d3}100%{background-color:transparent;box-shadow:0 0 0 8px transparent}}
@media(prefers-reduced-motion:reduce){[data-word].hhs-ziel,[data-suche].hhs-ziel{animation:none}}
.hhs-bar{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:75;display:flex;align-items:center;gap:6px;max-width:calc(100vw - 24px);background:#221e1a;color:#f4ece0;padding:8px 8px 8px 18px;border-radius:999px;box-shadow:0 20px 44px -18px rgba(0,0,0,.65);font:400 14px/1.3 var(--sans)}
.hhs-bar-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;margin-right:6px}
.hhs-bar-text b{font-weight:600}
.hhs-bar button{flex:none;width:34px;height:34px;border:0;border-radius:999px;background:#3a342d;color:#f4ece0;font:400 17px/1 var(--sans);cursor:pointer;padding:0}
.hhs-bar button:hover{background:var(--copper)}
.hhs-bar button[disabled]{opacity:.35;cursor:default;background:#3a342d}
html.hhs-hat-bar .kurs-weiterlesen{display:none!important}

/* Gesperrtes Kapitel über die Suche lesen (Fortschritt bleibt unberührt) */
html.kurs-nachschlagen.kurs-gesperrt .kurs-inhalt{display:block!important}
html.kurs-nachschlagen.kurs-gesperrt .kurs-sperre{display:none!important}
.hhs-hinweis{display:none}
html.kurs-nachschlagen.kurs-gesperrt .hhs-hinweis{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;justify-content:space-between;background:var(--soft);border:1px solid var(--hair);border-left:3px solid var(--copper);border-radius:4px;padding:14px 18px;margin:0 0 34px;font-size:14.5px;line-height:1.55;color:#4f4942;text-wrap:pretty}
.hhs-hinweis a{color:var(--deep);font-weight:600;text-decoration:none;border-bottom:1px solid #cfa989;white-space:nowrap}
@media(max-width:760px){.hhs-seite{flex-wrap:wrap;row-gap:1px}.hhs-seite b{order:3;flex:1 1 100%}}
