.as-knowledge,
.as-knowledge-admin {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

/* Einheitliches Backend-Grundlayout */
.as-knowledge-plugin { font-family: Arial, sans-serif; color: #222; }
.as-knowledge-header { padding: 12px 16px; background: #f7f9fb; border: 1px solid #cdd5dc; border-radius: 6px 6px 0 0; }
.as-knowledge-header h2 { margin: 0; color: #2e7fc1; font-size: 20px; }
.as-knowledge-layout { display: flex; gap: 14px; align-items: stretch; }
.as-knowledge-sidebar { flex: 0 0 220px; padding: 12px; background: #f7f9fb; border: 1px solid #cdd5dc; border-top: 0; }
.as-knowledge-sidebar ul { margin: 0; padding: 0; list-style: none; }
.as-knowledge-sidebar li { margin-bottom: 8px; }
.as-knowledge-nav-link { display: block; padding: 8px 10px; color: #263746; background: #e6ebef; border-radius: 4px; text-decoration: none; }
.as-knowledge-nav-link:hover, .as-knowledge-nav-link.active { background: #aad2ee; }
.as-knowledge-search-form input[type="search"] { box-sizing: border-box; width: 100%; margin-bottom: 6px; padding: 7px; border: 1px solid #aeb8c2; border-radius: 4px; }
.as-knowledge-content { flex: 1 1 auto; min-width: 0; padding: 14px; border: 1px solid #cdd5dc; border-top: 0; background: #fff; }
.as-knowledge-footer { margin-top: 10px; padding: 7px; color: #66717b; background: #f4f4f4; text-align: center; font-size: 12px; }
.as-knowledge-box { padding: 14px; margin-bottom: 14px; background: #fff; border: 1px solid #cdd5dc; border-radius: 6px; }
.as-knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.as-knowledge-button { display: inline-block; padding: 7px 11px; border: 1px solid #777; border-radius: 4px; cursor: pointer; text-decoration: none; }
.as-knowledge-button-primary { color: #fff; background: #2e7fc1; border-color: #2e7fc1; }
.as-knowledge-message-error { color: #842029; background: #f8d7da; border: 1px solid #f5c2c7; }
.as-knowledge-help li { margin-bottom: 8px; }

@media (max-width: 900px) {
    .as-knowledge-layout { display: block; }
    .as-knowledge-sidebar { border-right: 1px solid #cdd5dc; }
    .as-knowledge-grid { grid-template-columns: 1fr; }
}

.as-knowledge-settings-form { max-width: 1050px; }
.as-knowledge-settings-form fieldset { margin: 0 0 18px; padding: 16px; border: 1px solid #cdd5dc; border-radius: 6px; background: #f9fbfc; }
.as-knowledge-settings-form legend { padding: 0 7px; color: #2e7fc1; font-weight: bold; }
.as-knowledge-settings-form select { box-sizing: border-box; width: 100%; max-width: 620px; padding: 7px; margin: 6px 0 12px; border: 1px solid #aeb8c2; border-radius: 4px; background: #fff; }
.as-knowledge-settings-form select[multiple] { min-height: 160px; }
.as-knowledge-settings-form small { display: block; margin: -7px 0 10px; color: #59636d; }
.as-knowledge-option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 14px; margin: 8px 0 14px; }
.as-knowledge-option-grid label { display: flex; gap: 7px; align-items: flex-start; padding: 7px 9px; background: #fff; border: 1px solid #dbe1e6; border-radius: 4px; }
.as-knowledge-option-grid input { margin-top: 2px; }
.as-knowledge-permission-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.as-knowledge-permission-columns h4 { margin: 4px 0 8px; color: #34495e; }
@media (max-width: 800px) { .as-knowledge-permission-columns { grid-template-columns: 1fr; } }
.as-knowledge-permission-dropdown { position: relative; max-width: 680px; margin: 10px 0 14px; }
.as-knowledge-permission-dropdown summary { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border: 1px solid #aeb8c2; border-radius: 5px; background: #fff; cursor: pointer; list-style: none; }
.as-knowledge-permission-dropdown summary::-webkit-details-marker { display: none; }
.as-knowledge-permission-dropdown summary::after { content: '▾'; margin-left: auto; }
.as-knowledge-permission-dropdown[open] summary::after { content: '▴'; }
.as-knowledge-permission-dropdown summary span { color: #59636d; font-size: .92em; }
.as-knowledge-permission-menu { max-height: 360px; overflow-y: auto; padding: 10px 12px; border: 1px solid #aeb8c2; border-top: 0; border-radius: 0 0 5px 5px; background: #fff; box-shadow: 0 5px 14px rgba(0,0,0,.09); }
.as-knowledge-permission-menu h4 { margin: 8px 0 5px; color: #2e7fc1; }
.as-knowledge-permission-menu label { display: block; padding: 6px 4px; border-bottom: 1px solid #edf0f2; cursor: pointer; }
.as-knowledge-permission-menu label:hover { background: #f2f8fc; }
.as-knowledge-admin h2,
.as-knowledge h1 {
    margin-top: 0;
}
.as-knowledge-lead,
.as-knowledge-small,
.as-knowledge-breadcrumb,
.as-knowledge-meta,
.as-knowledge-source {
    color: #666;
}
.as-knowledge-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.as-knowledge-tabs a,
.as-knowledge-button,
.as-knowledge-more,
.as-knowledge-admin button {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #f3f3f3;
    text-decoration: none;
    color: #222;
    cursor: pointer;
}
.as-knowledge-tabs a.active,
.as-knowledge-button {
    background: #ddd;
    font-weight: bold;
}
.as-knowledge-grid,
.as-knowledge-article-layout,
.as-knowledge-front-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}
.as-knowledge-front-layout {
    grid-template-columns: 260px minmax(0, 1fr);
}
.as-knowledge-box,
.as-knowledge-front-nav,
.as-knowledge-infobox,
.as-knowledge-list-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    margin-bottom: 16px;
}
.as-knowledge-admin label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}
.as-knowledge-admin input[type="text"],
.as-knowledge-admin input[type="number"],
.as-knowledge-admin select,
.as-knowledge-admin textarea,
.as-knowledge-search input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    padding: 8px;
    border: 1px solid #bbb;
    border-radius: 5px;
}
.as-knowledge-check {
    font-weight: normal !important;
}
.as-knowledge-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.as-knowledge-table th,
.as-knowledge-table td {
    border: 1px solid #ddd;
    padding: 7px;
    vertical-align: top;
}
.as-knowledge-table th {
    background: #f0f0f0;
}
.as-knowledge-inline-form {
    display: inline-block;
    margin-left: 8px;
}
.as-knowledge-message {
    padding: 10px;
    border-radius: 6px;
    background: #eef6ff;
    border: 1px solid #b7d8f5;
    margin: 10px 0;
}
.as-knowledge-tree {
    list-style: none;
    margin: 0;
    padding-left: 16px;
}
.as-knowledge-tree li {
    margin: 5px 0;
}
.as-knowledge-tree a {
    text-decoration: none;
}
.as-knowledge-count {
    color: #777;
    font-size: .9em;
}
.as-knowledge-search {
    margin-top: 16px;
}
.as-knowledge-search button {
    margin-top: 6px;
}
.as-knowledge-infobox img,
.as-knowledge-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}
.as-knowledge-infobox table {
    width: 100%;
    border-collapse: collapse;
}
.as-knowledge-infobox th,
.as-knowledge-infobox td {
    border-bottom: 1px solid #ddd;
    padding: 6px;
    text-align: left;
    vertical-align: top;
}
.as-knowledge-infobox th {
    width: 42%;
    color: #555;
}
.as-knowledge-teaser {
    font-weight: bold;
    font-size: 1.08em;
}
.as-knowledge-tags span {
    display: inline-block;
    padding: 3px 7px;
    margin: 3px;
    border-radius: 12px;
    background: #eee;
}
.as-knowledge-frontend { box-sizing: border-box; width: 100%; max-width: 1080px; margin: 0 auto; color: #20262d; }
.as-knowledge-front-header { margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid #d9e0e7; background: transparent; }
.as-knowledge-front-header h1, .as-knowledge-front-header p { margin: 0; }
.as-knowledge-front-header h1 { font-size: 1.8rem; line-height: 1.2; }
.as-knowledge-front-header h1 a { color: #1f5f96; text-decoration: none; }
.as-knowledge-front-header p { margin-top: 5px; color: #65717d; }
.as-knowledge-search { margin: 0 0 26px; padding: 18px; border: 1px solid #cbd7e2; border-radius: 8px; background: #f5f8fb; }
.as-knowledge-search label { display: block; margin-bottom: 7px; font-weight: 700; }
.as-knowledge-search-row { display: flex; gap: 8px; align-items: stretch; }
.as-knowledge-search input[type="search"] { box-sizing: border-box; min-width: 0; flex: 1 1 auto; padding: 11px 12px; border: 1px solid #98a8b7; border-radius: 5px; background: #fff; font: inherit; }
.as-knowledge-search input[type="search"]:focus { outline: 3px solid rgba(46,127,193,.2); border-color: #2e7fc1; }
.as-knowledge-search button { margin: 0; padding: 10px 18px; border: 0; border-radius: 5px; color: #fff; background: #246da8; font: inherit; font-weight: 700; cursor: pointer; }
.as-knowledge-search button:hover { background: #195b91; }
.as-knowledge-search-reset { display: inline-flex; align-items: center; padding: 9px 12px; color: #425466; text-decoration: none; }
.as-knowledge-search-hint { margin: 8px 0 0; color: #65717d; font-size: .9rem; }
.as-knowledge-breadcrumb { margin: 0 0 10px; color: #59636d; font-size: .93em; }
.as-knowledge-breadcrumb a { color: #3366cc; }
.as-knowledge-back { display: inline-block; margin: 0 0 16px; padding: 8px 12px; border: 1px solid #bdc9d4; border-radius: 5px; color: #1f5f96; background: #fff; font-weight: 700; text-decoration: none; }
.as-knowledge-back:hover { border-color: #8da4b8; background: #f4f7f9; }
.as-knowledge-article-header { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #aeb8c2; }
.as-knowledge-article-header h1 { margin: 0 0 8px; font-size: 2rem; line-height: 1.2; }
.as-knowledge-article-meta { display: flex; flex-wrap: wrap; gap: 5px 18px; color: #65717d; font-size: .88rem; }
.as-knowledge-article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.as-knowledge-article-layout.no-infobox { grid-template-columns: minmax(0, 1fr); }
.as-knowledge-article-body { min-width: 0; }
.as-knowledge-text { line-height: 1.7; }
.as-knowledge-text h2 { margin: 30px 0 10px; padding-bottom: 5px; border-bottom: 1px solid #d6dde4; font-size: 1.45rem; }
.as-knowledge-text h3 { margin: 24px 0 8px; font-size: 1.2rem; }
.as-knowledge-text h4 { margin: 20px 0 6px; font-size: 1.05rem; }
.as-knowledge-text p { margin: 0 0 15px; }
.as-knowledge-teaser { margin: 0 0 18px; padding-left: 14px; border-left: 4px solid #7aa6c9; color: #33414d; font-size: 1.06rem; line-height: 1.55; }
.as-knowledge-toc { margin: 0 0 24px; padding: 14px 16px; border: 1px solid #cbd6df; border-radius: 6px; background: #f7f9fb; }
.as-knowledge-toc > strong { display: block; margin-bottom: 7px; font-size: 1.05rem; }
.as-knowledge-toc ol { margin: 0; padding-left: 22px; }
.as-knowledge-toc li { margin: 4px 0; }
.as-knowledge-toc li.level-3 { margin-left: 18px; }
.as-knowledge-toc li.level-4 { margin-left: 36px; font-size: .94em; }
.as-knowledge-toc a { color: #1f5f96; text-decoration: none; }
.as-knowledge-toc a:hover { text-decoration: underline; }
.as-knowledge-infobox { position: sticky; top: 12px; margin: 0; padding: 0; overflow: hidden; border-color: #b9c6d1; border-radius: 6px; box-shadow: none; }
.as-knowledge-infobox > h2 { margin: 0; padding: 10px 12px; color: #fff; background: #376d97; font-size: 1.05rem; text-align: center; }
.as-knowledge-infobox .as-knowledge-main-image { display: block; width: 100%; margin: 0; border-radius: 0; }
.as-knowledge-infobox table { margin: 0; }
.as-knowledge-infobox th, .as-knowledge-infobox td { padding: 8px 10px; font-size: .92rem; }
.as-knowledge-source, .as-knowledge-tags, .as-knowledge-related { margin-top: 28px; padding-top: 4px; border-top: 1px solid #d6dde4; }
.as-knowledge-source h2, .as-knowledge-tags h2, .as-knowledge-related h2 { margin: 12px 0 10px; font-size: 1.2rem; }
.as-knowledge-source p { overflow-wrap: anywhere; }
.as-knowledge-related ul { margin: 0; padding-left: 20px; }
.as-knowledge-related li { margin: 6px 0; }
.as-knowledge-related a { color: #1f5f96; }
.as-knowledge-tags a { display: inline-block; margin: 3px; padding: 3px 8px; border-radius: 12px; color: #23527c; background: #eef3f7; text-decoration: none; }
.as-knowledge-result-head { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-bottom: 4px; padding-bottom: 10px; border-bottom: 1px solid #d9e0e7; }
.as-knowledge-result-head h2 { margin: 0; font-size: 1.35rem; }
.as-knowledge-result-head p { margin: 0; color: #65717d; white-space: nowrap; }
.as-knowledge-list-item { margin: 0; padding: 17px 2px; border: 0; border-bottom: 1px solid #e1e6eb; border-radius: 0; background: transparent; box-shadow: none; }
.as-knowledge-list-item h3 { margin: 0 0 4px; font-size: 1.18rem; }
.as-knowledge-list-item h3 a { color: #1f5f96; text-decoration: none; }
.as-knowledge-list-item h3 a:hover { text-decoration: underline; }
.as-knowledge-result-meta { margin: 0 0 7px; color: #65717d; font-size: .88rem; }
.as-knowledge-result-excerpt { margin: 0; color: #333d46; line-height: 1.5; }
.as-knowledge-list-item mark { padding: 0 2px; border-radius: 2px; background: #ffec99; color: inherit; }
.as-knowledge-more { display: inline-block; margin-top: 8px; font-weight: 700; color: #1f5f96; text-decoration: none; }
.as-knowledge-pagination a { min-width: 24px; padding: 5px 7px; border: 1px solid #c8d0d8; border-radius: 4px; color: #2e63a3; background: #fff; text-align: center; text-decoration: none; }
.as-knowledge-pagination a.active { color: #fff; background: #2e7fc1; border-color: #2e7fc1; }
.as-knowledge-pagination { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; }
.as-knowledge-empty { padding: 16px; border: 1px dashed #aeb8c2; border-radius: 6px; background: #f8fafc; }
@media (max-width: 900px) {
    .as-knowledge-grid,
    .as-knowledge-article-layout {
        grid-template-columns: 1fr;
    }
    .as-knowledge-infobox { position: static; order: -1; max-width: 420px; }
}
@media (max-width: 560px) {
    .as-knowledge-search-row { flex-wrap: wrap; }
    .as-knowledge-search input[type="search"] { flex-basis: 100%; }
    .as-knowledge-search button { flex: 1 1 auto; }
    .as-knowledge-result-head { display: block; }
    .as-knowledge-result-head p { margin-top: 4px; white-space: normal; }
}

/* Backend-Aufbau nach AS-CMS-Verwaltungsstil */
.as-knowledge-admin-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.as-knowledge-admin-header h2 {
    margin: 0 0 4px 0;
    font-size: 1.35em;
}
.as-knowledge-admin-header .as-knowledge-lead {
    margin: 0;
}
.as-knowledge-admin-badge {
    white-space: nowrap;
    border: 1px solid #bbb;
    border-radius: 20px;
    padding: 6px 12px;
    background: #f3f3f3;
    font-size: .92em;
    font-weight: bold;
}
.as-knowledge-admin-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.as-knowledge-admin-sidebar {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.as-knowledge-sidebar-title {
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}
.as-knowledge-sidebar-button {
    display: block;
    padding: 9px 10px;
    margin-bottom: 8px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #f3f3f3;
    color: #222;
    text-decoration: none;
}
.as-knowledge-sidebar-button.active,
.as-knowledge-sidebar-button:hover {
    background: #ddd;
    font-weight: bold;
}
.as-knowledge-sidebar-hint {
    margin-top: 12px;
    font-size: .9em;
    color: #666;
    line-height: 1.4;
}
.as-knowledge-admin-main {
    min-width: 0;
}
.as-knowledge-admin-footer {
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #666;
    text-align: center;
    font-size: .9em;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
@media (max-width: 900px) {
    .as-knowledge-admin-header,
    .as-knowledge-admin-layout {
        display: block;
    }
    .as-knowledge-admin-sidebar {
        margin-bottom: 16px;
    }
    .as-knowledge-admin-badge {
        display: inline-block;
        margin-top: 10px;
    }
}

/* AS-CMS Backendstandard fuer AS Knowledge */
.as-knowledge-admin {
    width: 100%;
    box-sizing: border-box;
}
.as-knowledge-kopfzeile {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 10px 0;
    padding: 6px 10px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    background: #f5f5f5;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.3;
}
.as-knowledge-kopfzeile span {
    float: right;
    font-weight: normal;
    color: #666;
    font-size: 13px;
}
.as-knowledge-verwaltung {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-spacing: 0;
}
.as-knowledge-sidebar {
    display: table-cell;
    width: 210px;
    min-width: 210px;
    vertical-align: top;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    background: #eeeeee;
}
.as-knowledge-arbeitsbereich {
    display: table-cell;
    vertical-align: top;
    box-sizing: border-box;
    padding-left: 12px;
    min-width: 0;
}
.as-knowledge-sidebar-titel {
    margin: 0 0 10px 0;
    padding: 6px 8px;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    background: #ffffff;
    font-weight: bold;
    text-align: center;
}
.as-knowledge-sidebar-button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 8px 0;
    padding: 8px 10px;
    border: 1px solid #b8b8b8;
    border-radius: 4px;
    background: #ffffff;
    color: #222222;
    text-decoration: none;
    font-weight: bold;
}
.as-knowledge-sidebar-button:hover,
.as-knowledge-sidebar-button.aktiv {
    background: #dcdcdc;
    border-color: #999999;
    color: #000000;
}
.as-knowledge-sidebar-info {
    margin-top: 12px;
    padding: 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fafafa;
    color: #666666;
    font-size: 12px;
    line-height: 1.35;
}
.as-knowledge-fusszeile {
    box-sizing: border-box;
    width: 100%;
    margin: 10px 0 0 0;
    padding: 6px 10px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    background: #f5f5f5;
    color: #666666;
    font-size: 12px;
    text-align: center;
}
@media (max-width: 900px) {
    .as-knowledge-verwaltung,
    .as-knowledge-sidebar,
    .as-knowledge-arbeitsbereich {
        display: block;
        width: 100%;
    }
    .as-knowledge-arbeitsbereich {
        padding-left: 0;
        margin-top: 10px;
    }
    .as-knowledge-kopfzeile span {
        float: none;
        display: block;
        margin-top: 3px;
    }
}

/* AS-CMS Backendlayout nach Muster ToDo-Manager */
.as-knowledge-plugin {
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #222;
}

.as-knowledge-header {
    width: 100%;
    box-sizing: border-box;
    background: #333;
    color: #AAD2EE;
    padding: 8px 12px;
    margin: 0;
    border-radius: 4px 4px 0 0;
    min-height: 34px;
}

.as-knowledge-header h3 {
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 24px;
    color: #AAD2EE;
}

.as-knowledge-header-subtitle {
    position: absolute;
    right: 12px;
    top: 9px;
    font-size: 13px;
    color: #ffffff;
    font-weight: normal;
}

.as-knowledge-plugin .container-flex {
    display: flex;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    background: #F4F4F4;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
}

.as-knowledge-plugin .sidebar {
    width: 220px;
    min-width: 220px;
    box-sizing: border-box;
    background: #444;
    padding: 10px;
    color: #ffffff;
}

.as-knowledge-plugin .sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.as-knowledge-plugin .sidebar li {
    margin: 0 0 9px 0;
    padding: 0;
}

.as-knowledge-plugin .button-link,
.as-knowledge-plugin .btn-secondary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    background: #555;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none;
    border: 1px solid #777;
    border-radius: 4px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.as-knowledge-plugin .button-link:hover,
.as-knowledge-plugin .button-link.active {
    background: #AAD2EE;
    color: #222222 !important;
    border-color: #AAD2EE;
}

.as-knowledge-sidebar-note {
    margin-top: 14px !important;
    padding: 8px;
    background: #555;
    border: 1px solid #777;
    border-radius: 4px;
    color: #eeeeee;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.as-knowledge-plugin .content-area {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px;
    background: #ffffff;
}

.as-knowledge-footer {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cccccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    font-size: 12px;
    color: #555555;
}

.as-knowledge-plugin button,
.as-knowledge-plugin .as-knowledge-button {
    display: inline-block;
    padding: 8px 12px;
    background: #555;
    color: #ffffff !important;
    border: 1px solid #777;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

.as-knowledge-plugin button:hover,
.as-knowledge-plugin .as-knowledge-button:hover {
    background: #AAD2EE;
    color: #222222 !important;
    border-color: #AAD2EE;
}

@media (max-width: 900px) {
    .as-knowledge-plugin .container-flex {
        display: block;
    }

    .as-knowledge-plugin .sidebar {
        width: 100%;
        min-width: 0;
    }

    .as-knowledge-header-subtitle {
        position: static;
        display: block;
        margin-top: 4px;
    }
}


/* ============================================================
   Übernommenes Inline-CSS aus PHP-Datei
   Quelle: categories.php
   ============================================================ */

.as-knowledge-page-title {
    margin: 0 0 12px 0;
    padding: 10px 12px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-left: 4px solid #2E7FC1;
    border-radius: 4px;
}

.as-knowledge-page-title h3 {
    margin: 0;
    padding: 0;
    color: #2E7FC1;
    font-size: 18px;
}

.as-knowledge-page-title p {
    margin: 5px 0 0 0;
    color: #555;
    font-size: 13px;
}

.as-knowledge-category-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.as-knowledge-panel {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.as-knowledge-panel-title {
    padding: 8px 10px;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
    color: #333;
    font-weight: bold;
}

.as-knowledge-panel-body {
    padding: 10px;
}

.as-knowledge-form label {
    display: block;
    margin: 9px 0 4px 0;
    font-weight: bold;
    color: #333;
}

.as-knowledge-form input[type="text"],
.as-knowledge-form input[type="number"],
.as-knowledge-form select,
.as-knowledge-form textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.as-knowledge-form textarea {
    resize: vertical;
}

.as-knowledge-small {
    margin: 4px 0 0 0;
    color: #666;
    font-size: 12px;
}

.as-knowledge-check {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-weight: normal !important;
}

.as-knowledge-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.as-knowledge-save-button,
.as-knowledge-delete-button,
.as-knowledge-cancel-button,
.as-knowledge-abort-button {
    display: inline-block;
    padding: 7px 10px;
    border: none;
    border-radius: 4px;
    text-decoration: none !important;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
}

.as-knowledge-save-button {
    background: #2E7FC1;
    color: #fff !important;
}

.as-knowledge-save-button:hover {
    background: #1d5a91;
}

.as-knowledge-cancel-button {
    background: #e0e0e0;
    color: #333 !important;
}

.as-knowledge-abort-button {
    background: #f4f4f4;
    color: #333 !important;
    border: 1px solid #bbb;
}

.as-knowledge-abort-button:hover {
    background: #ddd;
}

.as-knowledge-delete-button {
    background: #b84545;
    color: #fff !important;
}

.as-knowledge-message-info,
.as-knowledge-message-error {
    margin: 0 0 10px 0;
    padding: 8px 10px;
    border-radius: 4px;
}

.as-knowledge-message-info {
    background: #eef8ff;
    border: 1px solid #aad2ee;
    color: #24587e;
}

.as-knowledge-message-error {
    background: #fff1f1;
    border: 1px solid #e0a0a0;
    color: #8a2f2f;
}

.as-knowledge-selected-root {
    padding: 0;
    margin: 0;
}

.as-knowledge-category-tree,
.as-knowledge-category-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.as-knowledge-category-tree {
    margin-top: 6px;
}

.as-knowledge-category-tree ul,
.as-knowledge-category-tree.level-1,
.as-knowledge-category-tree.level-2,
.as-knowledge-category-tree.level-3,
.as-knowledge-category-tree.level-4 {
    margin-left: 20px;
    border-left: 1px solid #d7e6f0;
    padding-left: 10px;
}

.as-knowledge-category-tree li {
    margin: 0;
    padding: 0;
}

.as-knowledge-category-row {
    display: grid;
    grid-template-columns: 24px minmax(160px, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    margin: 0 0 6px 0;
    padding: 7px 8px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.as-knowledge-category-row:hover {
    background: #eef8ff;
    border-color: #aad2ee;
}

.as-knowledge-root-row {
    background: #eef8ff;
    border-color: #aad2ee;
}

.as-knowledge-root-icon {
    color: #2E7FC1;
    font-weight: bold;
    text-align: center;
}

.as-knowledge-drag-handle {
    display: inline-block;
    min-width: 20px;
    color: #2E7FC1;
    font-weight: bold;
    cursor: grab;
    text-align: center;
    user-select: none;
}

.as-knowledge-drag-handle:active {
    cursor: grabbing;
}

.as-knowledge-category-list-item.as-drag-active > .as-knowledge-category-row {
    opacity: 0.55;
}

.as-knowledge-category-list-item.as-drop-before > .as-knowledge-category-row {
    border-top: 4px solid #2E7FC1;
}

.as-knowledge-category-list-item.as-drop-after > .as-knowledge-category-row {
    border-bottom: 4px solid #2E7FC1;
}

.as-knowledge-category-name {
    font-weight: bold;
    color: #333;
}

.as-knowledge-category-meta {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
}

.as-knowledge-category-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.as-knowledge-category-actions a {
    color: #2E7FC1 !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 12px;
}

.as-knowledge-category-actions a:hover {
    text-decoration: underline !important;
}

.as-knowledge-move-up,
.as-knowledge-move-down {
    display: inline-block;
    min-width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f4f4f4;
    color: #333;
    cursor: pointer;
    font-size: 11px;
    line-height: 20px;
}

.as-knowledge-move-up:hover,
.as-knowledge-move-down:hover {
    background: #aad2ee;
    border-color: #7daaca;
}

.as-knowledge-empty {
    padding: 14px;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #666;
    text-align: center;
}

@media (max-width: 1000px) {
    .as-knowledge-category-layout {
        grid-template-columns: 1fr;
    }

    .as-knowledge-category-row {
        grid-template-columns: 24px 1fr;
    }

    .as-knowledge-category-meta,
    .as-knowledge-category-actions {
        grid-column: 2 / 3;
    }

    .as-knowledge-category-meta {
        white-space: normal;
    }
}


/* ============================================================
   Übernommenes Inline-CSS aus PHP-Datei
   Quelle: list.php
   ============================================================ */

.as-knowledge-list-title {
    margin: 0 0 12px 0;
    padding: 10px 12px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-left: 4px solid #2E7FC1;
    border-radius: 4px;
}

.as-knowledge-list-title h3 {
    margin: 0;
    padding: 0;
    color: #2E7FC1;
    font-size: 18px;
}

.as-knowledge-list-title p {
    margin: 5px 0 0 0;
    color: #555;
    font-size: 13px;
}

.as-knowledge-list-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.as-knowledge-panel {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.as-knowledge-panel-title {
    padding: 8px 10px;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
    color: #333;
    font-weight: bold;
}

.as-knowledge-panel-body {
    padding: 10px;
}

.as-knowledge-category-picker label {
    display: block;
    margin: 0 0 5px 0;
    font-weight: bold;
    color: #333;
}

.as-knowledge-category-picker select,
.as-knowledge-category-picker input[type="text"] {
    width: 100%;
    padding: 6px;
    margin: 0 0 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.as-knowledge-category-picker .as-knowledge-button {
    width: 100%;
    text-align: center;
}

.as-knowledge-suggestion-box {
    display: none;
    margin: -4px 0 8px 0;
    padding: 0;
    border: 1px solid #aad2ee;
    border-radius: 4px;
    background: #fff;
    max-height: 260px;
    overflow-y: auto;
}

.as-knowledge-suggestion-item {
    display: block;
    width: 100%;
    padding: 6px 7px;
    border: 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    text-align: left;
    cursor: pointer;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.as-knowledge-suggestion-item:hover {
    background: #eef8ff;
    color: #2E7FC1;
}

.as-knowledge-suggestion-item.inactive {
    color: #888;
}

.as-knowledge-selected-category {
    margin-top: 8px;
    padding: 8px;
    background: #eef8ff;
    border: 1px solid #aad2ee;
    border-radius: 4px;
    color: #24587e;
    font-size: 13px;
}

.as-knowledge-message-info,
.as-knowledge-message-error {
    margin: 0 0 10px 0;
    padding: 8px 10px;
    border-radius: 4px;
}

.as-knowledge-message-info {
    background: #eef8ff;
    border: 1px solid #aad2ee;
    color: #24587e;
}

.as-knowledge-message-error {
    background: #fff1f1;
    border: 1px solid #e0a0a0;
    color: #8a2f2f;
}

.as-knowledge-empty {
    padding: 14px;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #666;
    text-align: center;
}

.as-knowledge-article-table {
    width: 100%;
    border-collapse: collapse;
}

.as-knowledge-article-table th,
.as-knowledge-article-table td {
    border: 1px solid #ccc;
    padding: 7px;
    vertical-align: top;
}

.as-knowledge-article-table th {
    background: #f0f0f0;
    color: #333;
    text-align: left;
}

.as-knowledge-article-table tr:nth-child(even) td {
    background: #f9f9f9;
}

.as-knowledge-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    border: 1px solid #ccc;
    background: #f4f4f4;
}

.as-knowledge-status.published {
    background: #e8f6e8;
    border-color: #9dcc9d;
    color: #2d6b2d;
}

.as-knowledge-status.draft {
    background: #fff7e6;
    border-color: #e0c078;
    color: #806000;
}

.as-knowledge-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.as-knowledge-button,
.as-knowledge-save-button,
.as-knowledge-danger-button,
.as-knowledge-warning-button,
.as-knowledge-cancel-button {
    display: inline-block;
    padding: 7px 10px;
    border: none;
    border-radius: 4px;
    text-decoration: none !important;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
}

.as-knowledge-button,
.as-knowledge-save-button {
    background: #2E7FC1;
    color: #fff !important;
}

.as-knowledge-button:hover,
.as-knowledge-save-button:hover {
    background: #1d5a91;
}

.as-knowledge-warning-button {
    background: #e0a742;
    color: #fff !important;
}

.as-knowledge-danger-button {
    background: #b84545;
    color: #fff !important;
}

.as-knowledge-cancel-button {
    background: #e0e0e0;
    color: #333 !important;
}

.as-knowledge-edit-form label {
    display: block;
    margin: 9px 0 4px 0;
    font-weight: bold;
    color: #333;
}

.as-knowledge-edit-form input[type="text"],
.as-knowledge-edit-form select,
.as-knowledge-edit-form textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.as-knowledge-edit-form textarea {
    resize: vertical;
}

.as-knowledge-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
}

.as-knowledge-check {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-weight: normal !important;
}

@media (max-width: 1000px) {
    .as-knowledge-list-layout,
    .as-knowledge-edit-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   Übernommenes Inline-CSS aus PHP-Datei
   Quelle: register.php
   ============================================================ */

.as-knowledge-register-title {
    margin: 0 0 12px 0;
    padding: 10px 12px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-left: 4px solid #2E7FC1;
    border-radius: 4px;
}

.as-knowledge-register-title h3 {
    margin: 0;
    padding: 0;
    color: #2E7FC1;
    font-size: 18px;
}

.as-knowledge-register-title p {
    margin: 5px 0 0 0;
    color: #555;
    font-size: 13px;
}

.as-knowledge-register-panel {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.as-knowledge-register-panel-title {
    padding: 8px 10px;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
    color: #333;
    font-weight: bold;
}

.as-knowledge-register-panel-body {
    padding: 10px;
}

.as-knowledge-register-form label {
    display: block;
    margin: 9px 0 4px 0;
    font-weight: bold;
    color: #333;
}

.as-knowledge-register-form input[type="text"],
.as-knowledge-register-form select,
.as-knowledge-register-form textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.as-knowledge-register-form textarea {
    resize: vertical;
}

.as-knowledge-register-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
}

.as-knowledge-small {
    margin: 4px 0 0 0;
    color: #666;
    font-size: 12px;
}

.as-knowledge-check {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-weight: normal !important;
}

.as-knowledge-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.as-knowledge-save-button,
.as-knowledge-reset-button {
    display: inline-block;
    padding: 7px 10px;
    border: none;
    border-radius: 4px;
    text-decoration: none !important;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
}

.as-knowledge-save-button {
    background: #2E7FC1;
    color: #fff !important;
}

.as-knowledge-save-button:hover {
    background: #1d5a91;
}

.as-knowledge-reset-button {
    background: #e0e0e0;
    color: #333 !important;
}

.as-knowledge-message-info,
.as-knowledge-message-error {
    margin: 0 0 10px 0;
    padding: 8px 10px;
    border-radius: 4px;
}

.as-knowledge-message-info {
    background: #eef8ff;
    border: 1px solid #aad2ee;
    color: #24587e;
}

.as-knowledge-message-error {
    background: #fff1f1;
    border: 1px solid #e0a0a0;
    color: #8a2f2f;
}

@media (max-width: 1000px) {
    .as-knowledge-register-grid {
        grid-template-columns: 1fr;
    }
}
