/* Ausschließlich auf der neuen Arbeitsseite eingebunden. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.content {
    display: grid;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.site-footer {
    display: none;
}

.ki-server-arbeitsbereich {
    display: grid;
    grid-template-columns: min(15rem, 100%) minmax(0, 1fr);
    min-height: 0;
}

.ki-server-bereiche {
    grid-column: 1;
    min-height: 0;
    overflow-y: visible;
    padding: 1rem 1.25rem;
}

.ki-server-bereiche ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ki-server-bereiche li {
    margin: 0;
    padding: 0;
}

.ki-server-bereiche a {
    display: block;
    overflow-wrap: anywhere;
    padding: 0.5rem 0;
    color: inherit;
    font-size: inherit;
    line-height: 1.5;
    text-decoration: none;
}

.ki-server-bereiche a:hover,
.ki-server-bereiche a:focus-visible {
    text-decoration: underline;
}

.ki-server-bereiche a[aria-current="page"] {
    font-weight: 700;
}

.ki-server-module {
    min-width: 0;
    min-height: 0;
    overflow-y: visible;
    padding: 1rem 2rem;
}

.ki-server-module h2 {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 1rem;
    overflow-wrap: anywhere;
}

.ki-server-module h2 img {
    flex-shrink: 0;
    margin-top: 0.2em;
}

.ki-aufgaben-auswahl label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    cursor: pointer;
}

.ki-aufgaben-auswahl input {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
}

.ki-aufgaben-auswahl img {
    flex-shrink: 0;
    width: 48px;
    height: 62px;
}

.ki-aufgaben-auswahl span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ki-model-field { display: block; margin: 1rem 0; }
.ki-model-field input, .ki-model-field select { display: block; width: min(100%, 32rem); max-width: 100%; margin-top: 0.3rem; }
.ki-system-choice { display: block; font-weight: 600; }
.ki-language-row { margin: 1.25rem 0; }
.ki-language-row > header { font-weight: 600; overflow-wrap: anywhere; }
.ki-model-properties { width: 100%; table-layout: fixed; margin: 1rem 0; }
.ki-model-properties th, .ki-model-properties td { text-align: left; vertical-align: top; white-space: normal; overflow-wrap: anywhere; padding: 0.4rem 0.6rem 0.4rem 0; }
.ki-model-properties th { width: 40%; }
.ki-model-panel [data-gpu-warning] { font-weight: 600; }
.ki-server-module > [hidden] { display: none; }

@media (max-width: 640px) {
    .ki-model-properties tr { display: grid; }
    .ki-model-properties th, .ki-model-properties td { display: block; width: auto; }
    .ki-model-properties th { padding-bottom: 0; }
    .ki-server-arbeitsbereich {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
    }

    .ki-server-bereiche {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .25rem 1rem;
        padding: 0.5rem 1rem;
    }

    .ki-server-bereiche > a { grid-column: 1 / -1; }
    .ki-server-bereiche ul { display: block; }

    .ki-server-module {
        padding: 1rem;
    }

    .ki-aufgaben-auswahl img {
        width: 36px;
        height: 46.5px;
    }
}

@media (max-width: 1200px) {
    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: block;
    }
}

.ki-people-group { margin: 1rem 0; }
.ki-people-group > header { font-weight: 600; overflow-wrap: anywhere; }
.ki-person + .ki-person { margin-top: 2rem; }

.ki-usage-group { margin: 1rem 0; }
.ki-usage-group > header { font-weight: 600; overflow-wrap: anywhere; }
.ki-usage-row { margin: 2rem 0; overflow-wrap: anywhere; }
.ki-usage-row h3 { overflow-wrap: anywhere; }
.ki-usage-row [hidden] { display: none; }
.ki-usage-totals { width: 100%; table-layout: fixed; }
.ki-usage-totals th, .ki-usage-totals td { white-space: normal; overflow-wrap: anywhere; padding: 0.5rem; text-align: left; }
@media (max-width: 640px) { .ki-usage-totals { font-size: inherit; } .ki-usage-totals th, .ki-usage-totals td { padding: 0.25rem; } }

.ki-usage-totals[hidden] { display: none; }
@media (max-width: 640px) {
 .ki-usage-totals thead { display: none; }
 .ki-usage-totals tr { display: grid; margin: 1rem 0; }
 .ki-usage-totals td { display: block; font-size: 1rem; }
 .ki-usage-totals td::before { content: attr(data-label); display: block; font-weight: 600; }
}

.ki-storage-group, .ki-format-group { margin: 1rem 0; }
.ki-storage-group > header, .ki-format-group > header { font-weight: 600; overflow-wrap: anywhere; }
.ki-data-asset { margin: 2rem 0; }
.ki-data-asset h3, .ki-format-group li { overflow-wrap: anywhere; }
.ki-format-group li { margin: 0.5rem 0; }

.ki-storage-group[hidden] { display: none; }

.ki-access-matrix { width: 100%; table-layout: fixed; }
.ki-access-matrix th, .ki-access-matrix td { text-align: left; vertical-align: top; white-space: normal; overflow-wrap: anywhere; padding: 0.4rem 0.3rem; }
.ki-access-matrix th:first-child { width: 20%; }
.ki-access-matrix td[data-allowed="true"] { font-weight: 700; }
@media (max-width: 1000px) {
    .ki-access-matrix thead { display: none; }
    .ki-access-matrix tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1rem 0; }
    .ki-access-matrix th:first-child { grid-column: 1 / -1; width: auto; }
    .ki-access-matrix td::before { content: attr(data-label); display: block; font-weight: 600; }
}

#prozesse li { overflow-wrap: anywhere; }
#prozesse ol, #prozesse ul { padding-inline-start: 1.25rem; }

.ki-server-module { overflow-wrap: anywhere; }
.ki-workspace-group { margin: 0 0 var(--space-3, .75rem); }
.ki-workspace-group > summary { cursor: pointer; font-weight: 600; padding-block: var(--space-2, .5rem); }
.ki-workspace-group ul { padding-left: var(--space-3, .75rem); }
.ki-system-breadcrumb, .ki-system-views, .ki-system-detail-links { display: flex; flex-wrap: wrap; gap: var(--space-3, .75rem); align-items: center; }
.ki-system-breadcrumb { margin-bottom: var(--space-4, 1rem); }
.ki-system-views { border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-4, 1rem); }
.ki-system-views a { padding: var(--space-3, .75rem); text-decoration: none; border-bottom: 2px solid transparent; }
.ki-system-views a[aria-current=page] { border-color: var(--color-primary); font-weight: 700; }
.ki-system-budget { display: flex; flex-wrap: wrap; gap: var(--space-4, 1rem) var(--space-8, 2rem); margin-block: var(--space-4, 1rem) var(--space-6, 1.5rem); }
.ki-system-budget dt { font-weight: 400; color: var(--color-text-secondary); }
.ki-system-budget dd { margin: 0; font-weight: 600; }
.ki-system-layout { min-width: 0; }
.ki-system-layout.has-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: var(--space-6, 1.5rem); align-items: start; }
.ki-system-layout > *, .ki-system-detail { min-width: 0; }
[data-system-stage] { container: ki-system / inline-size; }
.ki-system-detail { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4, 1rem); }
.ki-system-detail > header { display: flex; gap: var(--space-3, .75rem); align-items: start; justify-content: space-between; }
.ki-system-detail h3 { display: flex; align-items: center; gap: var(--space-2, .5rem); margin: 0; }
.ki-system-detail h3 img { flex: none; }
.ki-system-detail button { display: inline-flex; padding: var(--space-2, .5rem); }
.ki-system-detail dt { font-weight: 600; }
.ki-system-detail dd { margin: var(--space-1, .25rem) 0 var(--space-4, 1rem); }
.ki-system-component-list { margin: 0; padding: 0; list-style: none; }
.ki-system-component-list > li { min-width: 0; margin: 0; padding: 0; }
.ki-system-component { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2, .5rem); padding: var(--space-2, .5rem); border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: inherit; text-decoration: none; overflow-wrap: anywhere; hyphens: auto; }
.ki-system-component img { flex: none; }
.ki-system-component > span { min-width: 0; flex: 1; }
.ki-system-component small { flex-basis: 100%; }
.ki-system-component[data-relation=selected] { border-color: var(--color-primary); background: var(--color-primary-10); font-weight: 600; }
.ki-system-component[data-relation=before], .ki-system-component[data-relation=after] { border-color: var(--color-primary); }
.ki-system-component:hover { text-decoration: underline; }
.ki-system-review { margin-top: var(--space-6, 1.5rem); }
@media (max-width: 1000px) { .ki-system-layout.has-detail { display: flex; flex-direction: column; } .ki-system-layout > * { width: 100%; } .ki-system-detail { order: -1; } }

.ki-model-field textarea { display: block; width: min(100%, 40rem); max-width: 100%; margin-top: 0.3rem; font: inherit; }
.ki-privacy-question { margin: 1.75rem 0; }
.ki-privacy-norms { padding-inline-start: 1.25rem; }
.ki-privacy-norms li { margin: 0.4rem 0; }
.ki-privacy-question[hidden] { display: none; }
#dsgvo-dokumente h3 { margin-top: 1.75rem; }
#dsgvo-dokumente li { margin: 0.6rem 0; }
.ki-server-module [hidden] { display: none !important; }
.ki-storage-group > header h2 { display: inline-flex; margin: 0; font-size: 1.2rem; }
[data-privacy-progress] { display: block; margin-left: 2rem; font-size: 0.9em; font-weight: 400; }
.ki-question-title { font-weight: 600; }
.ki-question-choice { display: block; margin: 0.5rem 0; }
.ki-question-help { margin: 0.6rem 0; font-size: 0.95em; }
.ki-server-module pre { max-width:100%; overflow:auto; padding:.75rem; background:#f5f5f5; font-size:.9em; }
.ki-server-module header h2 { display:inline-flex; align-items:center; gap:.5rem; margin:0; font-size:1em; }
.ki-server-module h2 img { flex:none; }
.ki-data-location { margin-block:1rem; }

.ki-route-filtered{display:none!important}

[data-script-view] > :not(header):not([data-component-scripts]) { display:none!important; }
.ki-script-lines > li { margin-block:1.5em; }
.ki-script-lines code { display:block; overflow-wrap:anywhere; white-space:pre-wrap; }
.ki-script-lines p { margin-block:.35em; }
[data-component-scripts] pre { overflow:auto; max-width:100%; }

.ki-retention.ki-route-active > header h2 { font-size: 1.5em; }
.ki-retention.ki-route-active > header h2 a { font: inherit; }
.ki-retention-settings { max-width: 68rem; }
.ki-retention-settings > section, .ki-retention-actions { margin-top: 2rem; }
.ki-retention-settings h3 { margin: 0 0 1rem; font-size: 1.1em; }
.ki-retention-settings [data-configuration-field] { margin-bottom: 1.5rem; }
.ki-retention-settings .ki-system-choice { display: flex; align-items: center; gap: .6rem; }
.ki-retention-settings input[type=checkbox] { width: 1.1rem; height: 1.1rem; margin: 0; flex: none; }
.ki-retention-settings .ki-model-field { margin-bottom: 0; }
.ki-retention-settings input[type=number] { width: 8rem; padding: .5rem; }
.ki-retention-help { max-width: 65ch; margin: .4rem 0 0; font-size: .95em; color: #444; }
.ki-retention-table { width: 100%; border-collapse: collapse; }
.ki-retention-table th, .ki-retention-table td { padding: .8rem 1rem .8rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid #ddd; }
.ki-retention-table th:first-child { width: 25%; }
.ki-retention-table td:last-child { width: 9rem; padding-right: 0; }
.ki-retention-table output { display: block; }
.ki-retention-actions ul { padding-left: 1.25rem; }
.ki-retention-actions li { margin: .6rem 0; }
@media (max-width: 640px) {
  .ki-retention-table thead { display: none; }
  .ki-retention-table tr { display: block; padding: 1rem 0; border-bottom: 1px solid #ddd; }
  .ki-retention-table th, .ki-retention-table td { display: block; padding: .3rem 0; border: 0; }
  .ki-retention-table th:first-child, .ki-retention-table td:last-child { width: auto; }
}
