/* Herbano Ratgeber TOC Widget */

[x-cloak] { display: none !important; }
.herbano-toc + script,
  script[type="text/javascript"]:not([src]) { display: none !important; }
  [x-cloak] { display: none !important; }
  script[type="text/javascript"]:not([src]) { display: none !important; }

.herbano-toc {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid #E6E6E6;
  font-family: 'Open Sans', system-ui, sans-serif;
}

.herbano-toc .toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #004D24;
  margin: 0 0 8px;
}

.herbano-toc .toc-title svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.herbano-toc .toc-badge {
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: #E5F0EB;
  color: #006633;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.herbano-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.herbano-toc li {
  counter-increment: toc;
  border-top: 1px solid #F2F2F2;
}

.herbano-toc li:first-child {
  border-top: 0;
}

.herbano-toc a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0 12px 12px;
  margin-left: -12px;
  font-size: 14px;
  line-height: 1.4;
  color: #3D3D3D;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

.herbano-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #9AB99E;
  flex: 0 0 24px;
  letter-spacing: 0.04em;
}

.herbano-toc a:hover {
  color: #006633;
}

.herbano-toc a.is-active {
  color: #004D24;
  font-weight: 600;
  border-left-color: #004D24;
}

.herbano-toc a.is-active::before {
  color: #004D24;
}

.herbano-toc .toc-empty {
  font-size: 12px;
  color: #9B9B9B;
  font-style: italic;
  padding: 12px 0;
}

.herbano-toc .toc-progress {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #F2F2F2;
  font-size: 11px;
  color: #6B6B6B;
  display: flex;
  align-items: center;
  gap: 12px;
}

.herbano-toc .toc-progress .bar {
  flex: 1;
  height: 3px;
  background: #E6E6E6;
  border-radius: 2px;
  overflow: hidden;
}

.herbano-toc .toc-progress .fill {
  height: 100%;
  background: #006633;
  transition: width 0.2s ease;
}