/* Formatierung TOC */
.toc_entry {
    padding-left: 0;
    padding-right: 0;
    line-height: 1.3em;
    list-style-type: none;
}

/* Farbwechsel fuer TOC Eintraege */
ul.toc_entry li:nth-child(odd) {
    background-color: rgb(117,127,154);
    color: white;
}

ul.toc_entry li:nth-child(even) {
    background-color: rgb(173,180,199) ;
    color: black;
}

/* Formatierung fuer Syntax-Box */
.syntax {
    font-family: 'Courier New';
    margin-left: 50px;
    font-weight: 600;
    line-height: 1.2;
}

/* Change the color of the active (expanded) accordion header */
.accordion-button:not(.collapsed) {
    background-color: #757f9a;

    /* your preferred background color */
    color: black;

    /* your preferred text color */
    box-shadow: none;

    /* optional: removes default shadow */
}

/* === Prism Line Height Control === */
pre[class*="language-"],
code[class*="language-"] {
    line-height: 1.4;

    /* ✅ Adjust this to change vertical spacing */
    font-size: 0.9rem;
    font-weight: 600;
    background: #f0f0ff;
}

/* Ensure line numbers match the same height */
pre.line-numbers > code {
    line-height: inherit;
}

pre.line-numbers .line-numbers-rows > span {
    line-height: 1.4;

    /* ✅ Match this to keep alignment */
}

/* Change background color of highlighted lines */
pre[data-line] .line-highlight {
    background-color: rgba(192, 192, 192, 0.1);

    /* light gray */
}

/* Tabelle mit angepasster Spaltenbreite */
.fit-content-table {
    table-layout: auto;
    width: 1px;

    /* Ensures the table shrinks to fit content */
    white-space: nowrap;

    /* kein autom. Zeilenumbruch */
    font-size: 0.9em;
    margin-left: auto;

    /* Tabelle auf der */
    margin-right: auto;

    /* Seite zentrieren */
}

/* Zeilenhoehe fuer Ausgabebox */
.ausgabe {
    line-height: 1.1em;
}

/* Abstand zum vorherigen Element fuer h2-Ueberschriften */
h2 {
    margin-top: 0rem;
}

/* ##### Beginn TOC Unterkapitel Formatierungen #### */
/* Button fuer TOC der Unterkapitel */
@media (hover: hover) and (pointer: fine) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;

        /* aligns menu right below button */
    }
}

/* Farbe des Buttons fuer TOC Unterkapitel */
.subch-btn {
    background-color: #D7DDE8;
    color: rgb(16, 16, 17);
}

/* Dropdown Menu unter Button zentrieren */
.dropdown {
    position: relative;
}

.dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
}

/* Zeilenhoehe der Dropdown Menu Eintraege */
.dropdown-menu .dropdown-item {
    line-height: 0.8;

    /* tighter line spacing */
    padding-top: 0.3rem;

    /* less vertical padding */
    padding-bottom: 0.3rem;
}

/* ##### Ende TOC Unterkapitel Formatierungen #### */}
