/* === Overrides === */
h1, .demo-page h2, .demo-page h3, .demo-page h4, .demo-page h5 {
    margin: 0 0 0 0;
}

:root {
    --oo-font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    --oo-wdb-header-height: 56px;
    --oo-wdb-sidebar-width: 260px;
}

/* === WissensdatenbankLayout === */

.oo-wdb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--oo-color-background);
    border-bottom: var(--oo-border-width) solid var(--oo-color-border);
    z-index: var(--oo-z-dropdown);
    overflow: visible;
}

.oo-wdb-header > .oo-stack {
    height: var(--oo-wdb-header-height);
    padding: 0 var(--oo-space-3);
}

.oo-wdb-header__brand {
    font-weight: 600;
    font-size: var(--oo-font-size-lg);
}

.oo-wdb-header .spaces-select {
    min-width: 10rem;
}

    .oo-wdb-header .spaces-select .oo--fake-input {
        min-height: 0;
    }

.oo-wdb-sidebar {
    position: fixed;
    top: var(--oo-wdb-header-height);
    left: 0;
    bottom: 0;
    width: var(--oo-wdb-sidebar-width);
    overflow-y: auto;
    overflow-x: hidden;
    background: #3a474d;
    border-right: var(--oo-border-width) solid var(--oo-color-border);
    padding: var(--oo-space-2);
    scrollbar-width: thin;
    scrollbar-color: var(--oo-gray-300) transparent;
    z-index: 90;
}

    .oo-wdb-sidebar .oo-cnm,
    .oo-wdb-sidebar .oo-cnm__arrow,
    .oo-wdb-sidebar .oo-cnm__text,
    .oo-wdb-sidebar .oo-cnm__icon {
        color: #e8eaea;
    }

    .oo-wdb-sidebar .oo-cnm__item-header:hover {
        background: var(--oo-black-darker);
    }

.oo-wdb-body {
    box-sizing: border-box;
    background: var(--oo-neutral-lighter);
    margin-top: var(--oo-wdb-header-height);
    margin-left: var(--oo-wdb-sidebar-width);
    min-height: calc(100vh - var(--oo-wdb-header-height));
    padding: var(--oo-space-4);
}


body {
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--oo-color-text-subtle);
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* === General === */

/* Macht einen Button auf volle Breite mit zentriertem Inhalt */
.oo-btn-full-width {
    width: 100%;
    justify-content: center;
}

.oo-truncate {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}




.status-Online-panel,
.status-Online-button button {
    border-left: 0.15rem solid var(--oo-success) !important;
}

.status-Entwurf-panel,
.status-Entwurf-button button {
    border-left: 0.15rem solid var(--oo-warning) !important;
}

.status-Archiv-panel,
.status-Archiv-button button {
    border-left: 0.15rem solid var(--oo-danger) !important;
}

.subtle {
    color: var(--oo-gray-400);
}

.simple-card {
    padding: var(--oo-space-3) var(--oo-space-4) var(--oo-space-4);
    background: var(--oo-color-surface);
    border: var(--oo-border-width) solid var(--oo-color-border);
    border-radius: var(--oo-radius-md);
}

    .simple-card:hover {
        box-shadow: 0 2px 6px rgba(0,0,0,.08);
    }

.shadow-card {
    padding: var(--oo-space-3);
    border: 0.15rem solid var(--oo-gray-100);
    border-radius: var(--oo-radius-md);
    background: var(--oo-gray-50);
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

    .shadow-card:hover {
        border-color: var(--oo-gray-200);
    }

/* === List === */
.artikel-details-filter,
.artikel-list-filter {
    width: 320px;
}


/* === Details === */

/* Sticky Kopfzeile in der Detailansicht */
.artikel-details-header {
    position: sticky;
    z-index: 10;
    background: white;
    border-left: 0.25rem solid var(--oo-primary);
    padding: var(--oo-space-3);
    top: calc(var(--oo-space-4) * -1);
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}


/* === Edit === */
.artikel-edit-sidebar {
    width: 380px;
}