/* help.css – Dixiplot Hilfesystem */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: Segoe UI, Arial, sans-serif;
    font-size: 13px;
}

/* ---- Layout ---- */

#layout {
    display: flex;
    height: 100vh;
}

#sidebar {
    width: 260px;
    min-width: 150px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    background: #f0f0f0;
    border-right: 1px solid #c8c8c8;
    overflow: hidden;
}

#sidebar-header {
    padding: 8px 12px;
    font-weight: bold;
    font-size: 14px;
    background: #FF6600;
    color: #000000;
    flex-shrink: 0;
}

#toc-container {
    overflow-y: auto;
    flex: 1;
    padding: 4px 0;
}

#splitter {
    width: 5px;
    cursor: col-resize;
    background: #c8c8c8;
    flex-shrink: 0;
    transition: background 0.15s;
}

#splitter:hover {
    background: #FF6600;
}

#content-frame {
    flex: 1;
    border: none;
    min-width: 0;
}

/* ---- TOC ---- */

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin: 0;
}

.toc-row {
    display: flex;
    align-items: baseline;
    padding: 2px 4px 2px 0;
}

/* Einrückung über depth-Klassen */
.depth-0 > .toc-item > .toc-row { padding-left:  0.2em; }
.depth-1 > .toc-item > .toc-row { padding-left:  1.5em; }
.depth-2 > .toc-item > .toc-row { padding-left:  2.7em; }
.depth-3 > .toc-item > .toc-row { padding-left:  3.9em; }

.toc-toggle {
    display: inline-block;
    width: 1em;
    text-align: center;
    color: #555;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1.5em;
    line-height: 1;
    user-select: none;
}

.toc-label {
    flex: 1;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.toc-link {
    cursor: pointer;
    color: #1a1a1a;
}

.toc-link:hover {
    background: #ffffff;
    color: #FF6600;
}

.toc-link.active {
    background: #FF6600;
    color: #000000;
    font-weight: bold;
}

.toc-group {
    cursor: default;
    color: #444;
    font-style: italic;
}

/* Gruppenüberschriften ohne Seite – klickbar zum Auf-/Zuklappen */
.toc-group.toc-link {
    font-style: normal;
    cursor: pointer;
}

.toc-children {
    /* display wird per JS gesetzt */
}

/* Scrollbar dezent */
#toc-container::-webkit-scrollbar { width: 6px; }
#toc-container::-webkit-scrollbar-thumb { background: #b0b0b0; border-radius: 3px; }
#toc-container::-webkit-scrollbar-track { background: transparent; }
