/* Sage 100 Handbuch (/sage-100/handbuch/): Übersichten und Maskenseiten */

.hb-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.hb-hero h1 {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.8rem;
}
.hb-hero p {
  max-width: 760px;
  opacity: 0.88;
  font-size: 1.1rem;
  margin: 0;
}
.hb-eyebrow,
.hb-crumbs a {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.hb-eyebrow:hover,
.hb-crumbs a:hover { text-decoration: underline; }
.hb-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.hb-crumbs span { opacity: 0.5; }
.hb-hero-seite h1 { font-size: 2.1rem; }
.hb-menupfad strong { font-weight: 600; }

.hb-section { padding: 3rem 0 4rem; }

/* Einstieg */
.hb-lead {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.hb-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.hb-module {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.hb-module h2 { font-size: 1.35rem; margin: 0 0 0.25rem; }
.hb-module h2 a { color: var(--primary-color); text-decoration: none; }
.hb-module h2 a:hover { color: var(--accent-dark); }
.hb-module-meta { color: var(--text-light); font-size: 0.92rem; margin: 0 0 1rem; }

.hb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hb-chips a {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-color);
  text-decoration: none;
  background: var(--bg-muted);
}
.hb-chips a:hover { border-color: var(--accent-color); color: var(--accent-dark); }
.hb-jump { margin: 1rem 0 2rem; }

/* Suche und Filter */
.hb-search,
.hb-filter { max-width: 640px; }
.hb-search label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.hb-search input,
.hb-filter input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-color);
  font: inherit;
}
.hb-search input:focus,
.hb-filter input:focus { outline: 2px solid var(--accent-color); outline-offset: 1px; }
.hb-filter { display: flex; align-items: center; gap: 1rem; }
.hb-filter-count { color: var(--text-light); font-size: 0.9rem; white-space: nowrap; }
.hb-results { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.hb-results li { border-bottom: 1px solid var(--border-color); }
.hb-results a { display: block; padding: 0.55rem 0.2rem; text-decoration: none; color: var(--text-color); }
.hb-results a:hover strong { color: var(--accent-dark); }
.hb-results small { display: block; color: var(--text-light); }

/* Modulseite */
.hb-gruppe { margin-top: 2.5rem; scroll-margin-top: 90px; }
.hb-gruppe h2 {
  font-size: 1.4rem;
  padding-top: 1rem;
  border-top: 2px solid var(--accent-color);
  display: inline-block;
}
.hb-unter h3 { font-size: 1rem; margin: 1.2rem 0 0.4rem; color: var(--text-light); }
.hb-links {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 3 260px;
  column-gap: 2rem;
}
.hb-links li { break-inside: avoid; padding: 0.2rem 0; }
.hb-links a { color: var(--text-color); text-decoration: none; }
.hb-links a:hover { color: var(--accent-dark); text-decoration: underline; }
.hb-links span { color: var(--text-light); font-size: 0.8rem; }
.hb-links span::after { content: " Bilder"; }

.hb-footnote {
  margin-top: 3rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Maskenseite */
.hb-article { max-width: 1100px; }
.hb-zweck { max-width: 760px; font-size: 1.08rem; line-height: 1.7; }
.hb-hinweis {
  max-width: 760px;
  background: var(--bg-light);
  border-left: 3px solid var(--accent-color);
  padding: 0.8rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
}
.hb-fakten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.hb-fakten dt { color: var(--text-light); font-size: 0.8rem; }
.hb-fakten dd { margin: 0; font-weight: 500; }

.hb-toc h2 { font-size: 1.05rem; margin: 2rem 0 0.5rem; }
.hb-toc ol { columns: 2 280px; column-gap: 2rem; margin: 0; padding-left: 1.4rem; }
.hb-toc a { color: var(--text-color); }

.hb-shot { margin: 3rem 0 0; scroll-margin-top: 90px; }
.hb-shot h2 { font-size: 1.2rem; margin: 0 0 0.75rem; }
.hb-anker {
  color: var(--accent-color);
  text-decoration: none;
  margin-right: 0.4rem;
  opacity: 0.5;
}
.hb-shot:hover .hb-anker,
.hb-anker:focus { opacity: 1; }
.hb-bild {
  display: block;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}
.hb-bild img { display: block; width: 100%; height: auto; }
.hb-shot figcaption {
  max-width: 820px;
  margin-top: 0.75rem;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hb-verwandt { margin-top: 3.5rem; }
.hb-verwandt h2 { font-size: 1.15rem; }

.hb-blaettern {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.hb-blaettern a {
  max-width: 48%;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.92rem;
}
.hb-blaettern a span { display: block; color: var(--text-light); font-size: 0.8rem; }
.hb-blaettern a:hover { color: var(--accent-dark); }
.hb-next { text-align: right; margin-left: auto; }

.hb-hilfe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.hb-hilfe p { margin: 0; max-width: 640px; }

@media (max-width: 700px) {
  .hb-hero { padding: 2.5rem 0 2rem; }
  .hb-hero h1, .hb-hero-seite h1 { font-size: 1.7rem; }
  .hb-filter { flex-direction: column; align-items: stretch; gap: 0.4rem; }
  .hb-blaettern { flex-direction: column; }
  .hb-blaettern a { max-width: none; }
  .hb-next { text-align: left; margin-left: 0; }
}

/* Versionsauswahl (nur bei mehreren Versionen eines Menüpunkts) */
.hb-versionwahl {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hb-versionwahl label { font-weight: 600; font-size: 0.95rem; }
.hb-versionwahl select {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-color);
  font: inherit;
}
