﻿/* E2ris V2 – Bereich wissen. Nur Tokens der Components Library, Klassen mit Präfix e2-. */

/* Wiki: Inhaltsverzeichnis links, Artikel rechts */
.e2-wiki {
    display: grid;
    grid-template-columns: minmax(14rem, 22rem) 1fr;
    gap: var(--oo-space-4);
    align-items: start;
}

.e2-wiki__baum {
    position: sticky;
    top: 0;
    max-height: calc(var(--oo-sbl-content-height, 100vh) - 2rem);
    overflow: auto;
}

.e2-wiki__artikel {
    display: flex;
    flex-direction: column;
    gap: var(--oo-space-4);
    min-width: 0;
}

.e2-wiki__text h1 {
    margin-top: 0;
    font-size: var(--oo-font-size-xl);
}

.e2-wiki__lead {
    font-size: var(--oo-font-size-lg);
    color: var(--oo-color-text-subtle);
}

@media (max-width: 63.99rem) {
    .e2-wiki {
        grid-template-columns: 1fr;
    }

    .e2-wiki__baum {
        position: static;
        max-height: 40vh;
    }
}

/* Glossar und FAQ */
.e2-glossar__abc {
    position: sticky;
    top: var(--oo-sbl-header-offset, 0);
    z-index: 4;
    padding: var(--oo-space-1) 0;
    background: var(--oo-color-surface);
}

.e2-glossar__buchstabe {
    margin: var(--oo-space-4) 0 var(--oo-space-1);
    font-size: var(--oo-font-size-lg);
    color: var(--oo-primary);
}

/* Statische Info-Inhalte (Rechtsupdates) */
.e2-info {
    overflow-x: auto;
    line-height: 1.55;
}

.e2-info table {
    border-collapse: collapse;
    max-width: 100%;
}

.e2-info td,
.e2-info th {
    border: 1px solid var(--oo-color-border);
    padding: var(--oo-space-1) var(--oo-space-2);
    vertical-align: top;
}

.e2-info .Bereich {
    margin-top: var(--oo-space-4);
    font-size: var(--oo-font-size-lg);
    font-weight: 700;
}

.e2-info .Ebene1 {
    margin-top: var(--oo-space-3);
    font-weight: 600;
}

.e2-info mark {
    background: var(--oo-warning-lighter);
}
