/* guides-hub.css · Guides-Übersicht: Suchfeld, Kategorie-Leiste, Abschnitte je Kategorie.
   Nur von den Guides-Übersichten geladen (render_guides in scripts/build_pages.py), Version HUB_VERSION. */

.gh-tools { margin: -6px auto 8px; max-width: 900px; text-align: center; }

.gh-search { position: relative; max-width: 560px; margin: 0 auto 18px; text-align: left; }
.gh-search[hidden] { display: none; }
.gh-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.gh-search svg {
  position: absolute; left: 17px; top: 50%; width: 20px; height: 20px;
  transform: translateY(-50%); color: var(--muted); pointer-events: none;
}
.gh-search input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 18px 14px 48px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-soft); -webkit-appearance: none; appearance: none;
}
.gh-search input::placeholder { color: #8A94A0; }
.gh-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(168, 137, 78, .18); }

.gh-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gh-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--navy); font-weight: 600; font-size: .93rem; line-height: 1.2;
  transition: border-color .15s ease, background .15s ease;
}
.gh-chip:hover { text-decoration: none; border-color: var(--gold); background: #FFFDF8; }
.gh-n {
  min-width: 26px; padding: 3px 8px; border-radius: 999px; text-align: center;
  background: var(--bg-alt); color: #7A5F33; font-size: .78rem; font-weight: 700;
}
.gh-chip.is-empty { opacity: .45; }

.gh-status { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
.gh-status[hidden] { display: none; }

.gh-sec { margin-top: 56px; padding: 0; scroll-margin-top: 96px; }
.gh-sec-head {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 16px;
  margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.gh-sec-head h2 {
  margin: 0; font-family: var(--font-serif); font-weight: 700; color: var(--navy);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.2; text-wrap: balance;
}
.gh-sec-n { color: var(--muted); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.gh-sec-head p { grid-column: 1 / -1; margin: 0; max-width: 72ch; color: var(--muted); }

.gh-none {
  margin: 48px 0 0; padding: 28px 24px; text-align: center; color: var(--muted);
  background: var(--bg-alt); border-radius: var(--radius);
}
.gh-none[hidden], .gh-sec[hidden], .guide-card[hidden] { display: none; }

@media (max-width: 700px) {
  .gh-tools { margin-top: -10px; }
  .gh-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .gh-chip {
    justify-content: space-between; text-align: left; border-radius: 14px;
    font-size: .86rem; padding: 9px 8px 9px 12px; min-height: 48px;
  }
  .gh-sec { margin-top: 44px; scroll-margin-top: 76px; }
  .gh-sec-head { margin-bottom: 18px; }
}
