:root {
	--body-bg: #FFFFFF;
	--body-color: #333333;
	/*3. Adjust Cassiopeia Color Scheme*/
	--cassiopeia-color-primary: #1D2E5E;
    --cassiopeia-color-link: #4472C4;
	--cassiopeia-color-hover: #E2AC09;
}


@media (min-width:0px) {
  .container-header .mod-menu {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }
}

h1 {clear:both;}
h2 {clear:both;}
h3 {clear:both;}

.footer_content {
	margin: auto;
}

.docu_menu {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

.container-topbar .mod-languages {
  position:absolute;
  right: 10px;
  float: right;
  justify-content: flex-end; 
}

.container-below-top {
  height: 75px
}

.header .mod-menu > li {
  position: relative;
}


.header .mod-menu li:hover > ul {
  background-color: #fff;
  border: 1px solid #dfe3e7;  
  border-radius: 5px;
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  padding: 16px;
}

.header .mod-menu li:hover > ul li {
  display: block;
}

.hoverdd .deeper.parent ul li.active a,
.hoverdd .deeper.parent ul li a:hover{color:#E2AC09}

/*.container-header .navbar-toggler {
}

.container-header .hoverdd li:hover > ul {
 display: block;
 background-color: #4472C4;
 position: absolute;
 top: 100%;
 min-width: 250px;
 padding: 1em;
 line-height: 1.3;
 border-radius: 5px; 
 opacity: 1;
}
.item-content .tags .list-inline-item{
 margin: 0 0.5rem 0.5rem 0;
}
.hoverdd .deeper.parent > a{padding-right:10px}
.hoverdd .deeper.parent > a:after,
.hoverdd .deeper.parent > a:before{
 content: “”;
 position: absolute;
 top: 50%;
 width: 7px;
 height: 2px;
 border-radius: 2px;
 background: #000;
}
.hoverdd .deeper.parent > a:after{transform: rotate(-50deg);right: -3px;}
.hoverdd .deeper.parent > a:before{transform: rotate(50deg);right: 0;}
.hoverdd .deeper.parent:hover > a:after{transform: rotate(50deg);}
.hoverdd .deeper.parent:hover > a:before{transform: rotate(-50deg);}
.hoverdd .deeper.parent ul li.active a,
.hoverdd .deeper.parent ul li a:hover{color:#ff822a}

/* Eltern dürfen Sticky nicht einsperren */
body.itemid-543 .site-grid,
body.itemid-543 .grid-child.container-sidebar-left,
body.itemid-543 .sidebar-left.card,
body.itemid-543 .sidebar-left .card,
body.itemid-543 .sidebar-left .card-body {
  overflow: visible !important;
}

/* Sidebar-Card selbst nicht sticky */
body.itemid-543 .sidebar-left.card {
  position: static !important;
}

/* Wrapper wird sticky (Breite übernimmt das Layout automatisch) */
body.itemid-543 #mod-custom162 .toc-wrapper {
  position: sticky;             /* wird unten per JS mit !important erzwungen */
  top: var(--toc-top, 96px);    /* wird per JS dynamisch gesetzt */
  align-self: start;
  z-index: 2;
}

/* TOC bekommt eigene Scrollbegrenzung → Scrollbar in der TOC, nicht in der Sidebar */
body.itemid-543 #mod-custom162 .toc-wrapper > .toc {
  max-height: calc(100vh - var(--toc-top, 96px) - 16px);
  overflow: auto;
  box-sizing: border-box;
  padding-right: 6px; /* Platz für Scrollbar */
}

/* Mobil: kein Sticky */
@media (max-width: 768px) {
  body.itemid-543 #mod-custom162 .toc-wrapper {
    position: static !important;
  }
  body.itemid-543 #mod-custom162 .toc-wrapper > .toc {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Ankerziele nicht unter den Header scrollen */
body.itemid-543 [id^="toc-heading-"] {
  scroll-margin-top: calc(var(--toc-top, 96px) + 6px);
}