
/* ========================================================
   HOLZBAU MOBILE TOC & TECHNICAL ARTICLE ENHANCEMENTS
   ======================================================== */
.toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toc__toggle-btn {
  display: none;
}

@media (max-width: 1080px) {
  .toc__toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(43, 109, 60, 0.10);
    color: var(--hb-green, #2B6D3C);
    border: 1px solid rgba(43, 109, 60, 0.22);
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all .2s ease;
  }
  .toc__toggle-btn:hover {
    background: var(--hb-green, #2B6D3C);
    color: #fff;
  }
  .toc__toggle-icon {
    transition: transform .25s ease;
    display: inline-block;
  }
  .toc.is-collapsed .toc__list {
    display: none !important;
  }
  .toc.is-open .toc__list {
    display: flex !important;
    max-height: 380px;
    overflow-y: auto;
  }
  .toc.is-open .toc__toggle-icon {
    transform: rotate(180deg);
  }
}

/* Figures & Images */
figure.article-image-figure,
.content figure {
  margin: 32px 0 36px;
  max-width: 940px;
}
figure.article-image-figure img,
.content figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 20px 46px rgba(23, 32, 27, 0.12);
  display: block;
}
.content figure.figure-diagram img,
.content figure img.diagram-cad,
.content img.diagram-cad {
  aspect-ratio: auto;
  max-height: 850px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(43, 109, 60, 0.18);
  padding: 6px;
}
figure.article-image-figure figcaption,
.content figure figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--hb-muted, #6f766f);
  text-align: center;
  line-height: 1.55;
  font-style: normal;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  figure.article-image-figure,
  .content figure {
    margin: 24px 0 28px;
  }
  figure.article-image-figure img,
  .content figure img {
    border-radius: 16px;
  }
  .table-wrapper {
    padding: 8px;
    border-radius: 16px;
  }
}
