/* Handbuch zum Struktogramm-Editor (/struct/handbuch) – ergänzt style.css und werkstatt.css */
.hb { --hb-gold: #EFCA16; --hb-line: rgba(139, 169, 190, 0.16); }
.hb-toc {
    max-width: 1200px; margin: 0 auto; padding: 1.6rem 3rem 0;
    display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem;
}
.hb-toc a {
    color: var(--snow); text-decoration: none; font-size: 0.92rem;
    border: 1px solid var(--hb-line); border-radius: 999px; padding: 0.35rem 0.9rem;
    transition: border-color .2s, color .2s;
}
.hb-toc a:hover, .hb-toc a:focus-visible { color: var(--hb-gold); border-color: var(--hb-gold); }
.hb-sec { scroll-margin-top: 90px; }
.hb-sec > p, .hb-el-text p { color: var(--snow); font-size: 1.05rem; line-height: 1.8; max-width: 68ch; margin-bottom: 1rem; }
.hb-sec strong { color: #fff; }
.hb-sec a.sub-link { font-weight: 600; }

/* Bilder: weisse Struktogramme auf dunklem Grund */
.hb-fig { margin: 1.5rem 0; }
.hb-fig img {
    display: block; max-width: 100%; height: auto;
    background: #fff; border-radius: 12px; padding: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.hb-shot img { padding: 0; border: 1px solid var(--hb-line); }
.hb-fig figcaption, .hb-cap { color: var(--mist); font-size: 0.95rem; line-height: 1.7; margin-top: 0.8rem; max-width: 68ch; }

/* Elemente: Text links, Bild rechts */
.hb-el {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem; align-items: center;
    padding: 2rem 0; border-top: 1px solid var(--hb-line);
}
.hb-el h3 { color: #fff; font-size: 1.45rem; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.6rem; }
.hb-el .hb-fig { margin: 0; }
.hb-el .hb-fig img { margin-left: auto; }
.hb-when { border-left: 3px solid var(--hb-gold); padding-left: 0.9rem; color: var(--snow); }
.hb-tip {
    color: var(--snow); background: rgba(15, 20, 25, 0.35); border: 1px solid var(--hb-line);
    border-radius: 12px; padding: 1rem 1.2rem; line-height: 1.7; max-width: 80ch; margin-top: 1.5rem;
}

.hb-list { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: 80ch; }
.hb-list li { color: var(--snow); line-height: 1.75; padding: 0.55rem 0 0.55rem 1.4rem; position: relative; }
.hb-list li::before { content: ''; position: absolute; left: 0; top: 1.15rem; width: 7px; height: 7px; border-radius: 2px; background: var(--hb-gold); }

kbd {
    display: inline-block; min-width: 1.6em; text-align: center;
    font-family: 'Manrope', system-ui, sans-serif; font-size: 0.82em; font-weight: 700; line-height: 1.5;
    color: var(--mountain-dark); background: #e9eef3; border-radius: 6px; padding: 0 0.4em;
    box-shadow: 0 2px 0 #9bb6d1;
}

.hb-pre {
    background: #0F1419; color: #d6e2ec; border: 1px solid var(--hb-line); border-radius: 12px;
    padding: 1.1rem 1.3rem; font-size: 0.95rem; line-height: 1.6; overflow-x: auto; max-width: 60ch;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.hb-table-wrap { overflow-x: auto; }
.hb-table { border-collapse: collapse; width: 100%; max-width: 900px; }
.hb-table th, .hb-table td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem; border-top: 1px solid var(--hb-line); line-height: 1.6; }
.hb-table th { color: #fff; font-weight: 600; white-space: nowrap; width: 1%; }
.hb-table td { color: var(--snow); }

@media (max-width: 860px) {
    .hb-toc { padding: 1.2rem 1.4rem 0; }
    .hb-el { grid-template-columns: 1fr; gap: 1.2rem; }
    .hb-el .hb-fig img { margin-left: 0; }
    .hb-table th { white-space: normal; }
}
