/* Glossar-Demo — seiten-lokale Styles (Demo-Modell, isoliert).
   Wird ueber glossar_demo.html (block head) eingehaengt, analog content.css. */

.glossar-pagenav {
    font-size: .9rem;
    margin: 0 0 1.5rem;
    padding: .6rem .8rem;
    background: var(--color-bg-warm, #f6f3ec);
    border: 1px solid var(--color-border, #d8d2c4);
    border-radius: 6px;
}
.glossar-pagenav strong { color: var(--color-text-strong, #5a4a2f); }

/* Tooltip-Kopplungs-Demo (Glossar) */
.demo-tip-demo {
    border: 1px solid var(--color-border, #d8d2c4);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    background: var(--color-bg-warm, #f6f3ec);
}
.demo-tip-demo .tip-popover {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    animation: none;
    min-width: 0;
    display: block; max-width: 340px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    background: #fff; border: 1px solid #d8d2c4; border-radius: 6px; padding: 0;
}
.demo-tip-demo .tip-popover::before { display: none; }
.demo-tip-demo .tip-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: .5rem .8rem; border-bottom: 1px solid #e7e2d6;
}
.demo-tip-demo .tip-title { margin: 0; font-size: 1rem; }
.demo-tip-demo .tip-body { padding: .6rem .8rem; font-size: .9rem; }
.demo-tip-demo .tip-link { display: inline-block; margin-top: .4rem; font-size: .85rem; }

/* Fallbeispiel-Karten (Tutorial) */
.demo-case {
    border: 1px solid var(--color-border, #d8d2c4);
    border-radius: 8px; padding: 1rem 1.2rem; margin: 1.5rem 0; background: #fff;
}
.demo-case h3 { margin-top: 0; }
.demo-case blockquote {
    font-style: italic; color: var(--color-text-muted, #5a5346);
    border-left: 3px solid var(--color-border, #d8d2c4);
    margin: .6rem 0; padding-left: .8rem;
}
.demo-case .roles { margin: .6rem 0 0; padding-left: 1.1rem; }
.demo-case .roles code { font-size: .92em; }
.demo-case .demo-xref { margin: .8rem 0 0; font-size: .95em; }

/* Technik-Seite */
.tech-codes { list-style: none; padding-left: 0; }
.tech-codes > li { margin: .4rem 0; }
.tech-codes code { background: #f0ede4; padding: .1rem .35rem; border-radius: 3px; }
.roleName-grid th, .roleName-grid td { vertical-align: top; }

/* Querverweis-Zeilen */
.demo-xref { font-size: .85rem; color: var(--color-text-muted, #6b6356); margin: 0 0 .5rem; }

/* Referenz-Zeilen am Eintrags-Ende (Verwandt / Weiterfuehrend / Literatur) */
.entry-refs {
    font-size: .85rem;
    line-height: 1.5;
    color: var(--color-text-muted, #6b6356);
    margin: .5rem 0 1.25rem;
    padding: .5rem .75rem;
    background: var(--color-bg-warm, #f0ece4);
    border-left: 3px solid var(--color-border-dark, #c8c2b8);
    border-radius: 4px;
}
.entry-refs strong { color: var(--color-text-strong, #5a4a2f); font-weight: 600; }

/* Inhalt (TOC): oberste Ebene (Abschnitte A-G) fett hervorheben */
.toc > ul > li > a { font-weight: 700; }

/* Redaktionsnotizen: im oeffentlichen Build verborgen, per ?dev=1 sichtbar */
.demo-editnote { border-left: 3px solid #e0a800; background: #fff8e1; padding: .5rem .8rem; margin: .6rem 0; font-size: .85rem; }
.dev-only { display: none !important; }
.dev-mode .dev-only { display: block !important; border: 2px solid #e0b000; background: #fffbe6; padding: .5rem .75rem; margin: .75rem 0; border-radius: 4px; }
