/* ============================================================
   Betriebsanleitung · Bona Vita® Portal · Schritt 7
   ============================================================ */

#handbuch {
  padding-bottom: 80px;
}

.hb-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4px;
  align-items: start;
}

/* Inhalts-Navigation links */
.hb-toc {
  position: sticky;
  top: 24px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  padding: 14px 10px;
  box-shadow: 0 1px 3px rgba(15, 29, 63, 0.04);
}
.hb-toc__title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6a3c;
  padding: 0 8px 8px;
  border-bottom: 1px solid #eef0f3;
  margin-bottom: 8px;
  font-weight: 600;
}
.hb-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hb-toc__list a {
  display: block;
  padding: 7px 10px;
  font-size: 0.88rem;
  color: #5a6170;
  text-decoration: none;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: all .15s ease;
  line-height: 1.35;
}
.hb-toc__list a:hover {
  background: #faf6ed;
  color: #0f1d3f;
}
.hb-toc__list a.is-active {
  background: #faf6ed;
  color: #0f1d3f;
  border-left-color: #b8945a;
  font-weight: 500;
}

/* Download-Button */
.hb-download {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: #0f1d3f;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease;
  justify-content: center;
}
.hb-download:hover { background: #1a2a55; }
.hb-download__icon {
  font-size: 0.95rem;
}

/* Haupt-Content */
.hb-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hb-section {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 1px 3px rgba(15, 29, 63, 0.04);
  scroll-margin-top: 20px;
}
.hb-section__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8945a;
  font-weight: 600;
  margin-bottom: 4px;
}
.hb-section h2 {
  margin: 0 0 8px;
  color: #0f1d3f;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.hb-section__lead {
  color: #5a6170;
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 68ch;
}
.hb-section h3 {
  margin: 22px 0 8px;
  color: #0f1d3f;
  font-size: 1.05rem;
  font-weight: 600;
}
.hb-section p {
  color: #2a3040;
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0 0 10px;
  max-width: 68ch;
}
.hb-section ul, .hb-section ol {
  color: #2a3040;
  font-size: 0.94rem;
  line-height: 1.65;
  padding-left: 22px;
  margin: 4px 0 14px;
}
.hb-section li { margin-bottom: 6px; }

/* Rollen-Chip */
.hb-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 500;
  border-radius: 12px;
  letter-spacing: 0.02em;
}
.hb-role-chip--all      { background: #eef0f3; color: #5a6170; }
.hb-role-chip--buyer    { background: #e8efff; color: #1f3d6b; }
.hb-role-chip--owner    { background: #f5ebd9; color: #8a6a3c; }
.hb-role-chip--architect{ background: #e8f0f8; color: #1f3d6b; }
.hb-role-chip--mgmt     { background: #e8f3ec; color: #2d7a4f; }
.hb-role-chip--notary   { background: #f4ebe4; color: #6b4522; }

.hb-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

/* Info/Hinweis-Box */
.hb-callout {
  border-left: 3px solid #b8945a;
  background: #faf6ed;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
}
.hb-callout--warning {
  border-left-color: #b83a3a;
  background: #fbeaea;
}
.hb-callout--tip {
  border-left-color: #2d7a4f;
  background: #e8f3ec;
}
.hb-callout__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f1d3f;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.hb-callout p:last-child { margin-bottom: 0; }

/* Schritt-für-Schritt */
.hb-steps {
  counter-reset: hb-step;
  list-style: none;
  padding-left: 0;
  margin: 12px 0 14px;
}
.hb-steps li {
  counter-increment: hb-step;
  position: relative;
  padding-left: 38px;
  margin-bottom: 10px;
  min-height: 28px;
}
.hb-steps li::before {
  content: counter(hb-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: #0f1d3f;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Definitions-Liste für FAQ */
.hb-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hb-faq details {
  border: 1px solid #eef0f3;
  border-radius: 8px;
  padding: 0;
  background: #fcfcfd;
  transition: background .15s ease;
}
.hb-faq details[open] {
  background: #fff;
  border-color: #dfe3ea;
}
.hb-faq summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 500;
  color: #0f1d3f;
  font-size: 0.94rem;
  list-style: none;
  position: relative;
  padding-right: 36px;
}
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary::after {
  content: '+';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #b8945a;
  font-weight: 400;
}
.hb-faq details[open] summary::after {
  content: '−';
}
.hb-faq details > div {
  padding: 0 16px 14px;
  color: #2a3040;
  font-size: 0.9rem;
  line-height: 1.6;
}
.hb-faq details > div p:last-child { margin-bottom: 0; }

/* Kontakt-Footer */
.hb-contact {
  margin-top: 18px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #0f1d3f 0%, #1f3d6b 100%);
  color: #fff;
  border-radius: 10px;
}
.hb-contact h3 {
  color: #e4c287;
  margin: 0 0 6px;
  font-size: 1rem;
}
.hb-contact p {
  color: #dfe3ea;
  margin: 0;
  font-size: 0.9rem;
}
.hb-contact a {
  color: #e4c287;
  text-decoration: none;
}
.hb-contact a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
  .hb-wrap {
    grid-template-columns: 1fr;
  }
  .hb-toc {
    position: static;
  }
  .hb-section {
    padding: 22px 20px;
  }
}
