/* Grid-Layout */
.pbmit-blog-classic-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  position: relative; /* wichtig, falls JS fixed braucht */
  overflow: visible; /* falls irgendwo versteckt */
}

/* ToC Wrapper: Standardzustand */
.toc-wrapper-js {
  align-self: start;
  height: fit-content;
  transition: all 0.2s ease;
}

.toc {
	max-width:200px;
	overflow:visible;
	font-weight:normal;
	  padding-left: 0.5em;
	    position: relative;
		background:white;
}
/* Liste clean */
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin: 1em 0;
  position: relative;
}

/* Wenn JS Sticky aktiviert: diese Klasse wird per JS gesetzt */
.toc.is-sticky {
  position: fixed !important;
  top: 0px;
  z-index: 999;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
/* Standardlink – dünner Balken */
.toc a {
  display: block;
  text-decoration: none;
  color: #555;
  font-size: 15px;
  padding-left: 0.5em;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

/* Aktiver Link – dicker, blauer Balken */
.toc a.active {
  font-weight: 600;
  color: #0055cc;
  border-left: 4px solid #0055cc;
  padding-left: 0.4em;
}

/* Optionale Hover-Verbesserung */
.toc a:hover {
  color: #222;
}

/* Responsiv: untereinander auf Mobile */
@media (max-width: 768px) {
  .pbmit-blog-classic-inner {
    display: block;
  }

  .toc-wrapper-js,
  .toc-wrapper-js.is-sticky {
    position: relative !important;
    top: auto;
    width: 100% !important;
    z-index: auto;
    box-shadow: none;
    margin-bottom: 2rem;
  }

}