/* BAO Sicherheitscenter 2.0 RC1 */

:root {
    color-scheme: light dark;
    --bao-bg: #f4f1e6;
    --bao-panel: #ffffff;
    --bao-text: #20242b;
    --bao-muted: #68707c;
    --bao-border: #d9d4c4;
    --bao-gold: #c58a00;
    --bao-green: #1f8b4c;
    --bao-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bao-bg);
    color: var(--bao-text);
}

.bao-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto;
}

.bao-header,
.bao-panel {
    background: var(--bao-panel);
    border: 1px solid var(--bao-border);
    border-radius: 18px;
    box-shadow: var(--bao-shadow);
}

.bao-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    margin-bottom: 22px;
}

.bao-kicker {
    margin: 0 0 6px;
    color: var(--bao-gold);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .8rem;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.bao-subtitle,
.bao-panel-heading p,
.bao-tool-card small,
.bao-footer {
    color: var(--bao-muted);
}

.bao-overall-status {
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(31, 139, 76, .10);
    border: 1px solid rgba(31, 139, 76, .25);
}

.bao-overall-status small {
    display: block;
    margin-top: 3px;
}

.bao-status-dot {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border-radius: 50%;
    background: var(--bao-green);
    box-shadow: 0 0 0 6px rgba(31, 139, 76, .12);
}

.bao-panel {
    padding: 24px;
    margin-bottom: 22px;
}

.bao-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

.bao-panel-heading h2 {
    margin-bottom: 5px;
}

.bao-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.bao-tool-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 92px;
    padding: 17px;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--bao-border);
    border-radius: 14px;
    background: var(--bao-panel);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.bao-tool-card:hover,
.bao-tool-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--bao-gold);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
    outline: none;
}

.bao-tool-icon {
    font-size: 1.8rem;
}

.bao-tool-text {
    flex: 1;
    min-width: 0;
}

.bao-tool-text strong,
.bao-tool-text small {
    display: block;
}

.bao-tool-text small {
    margin-top: 4px;
    line-height: 1.35;
}

.bao-tool-arrow {
    font-size: 1.8rem;
    color: var(--bao-gold);
}

.bao-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.bao-status-card {
    padding: 18px;
    border: 1px dashed var(--bao-border);
    border-radius: 14px;
}

.bao-status-card span,
.bao-status-card strong {
    display: block;
}

.bao-status-card span {
    color: var(--bao-muted);
    margin-bottom: 5px;
}

.bao-footer {
    text-align: center;
    padding: 6px;
    font-size: .9rem;
}

@media (max-width: 820px) {
    .bao-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .bao-overall-status {
        width: 100%;
    }

    .bao-tool-grid,
    .bao-status-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .bao-shell {
        width: min(100% - 18px, 1180px);
        margin: 12px auto;
    }

    .bao-header,
    .bao-panel {
        border-radius: 14px;
        padding: 18px;
    }

    .bao-tool-grid,
    .bao-status-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bao-bg: #242834;
        --bao-panel: #303544;
        --bao-text: #f4f5f7;
        --bao-muted: #b9c0cc;
        --bao-border: #4b5262;
        --bao-gold: #fec34d;
        --bao-shadow: 0 12px 30px rgba(0, 0, 0, .24);
    }
}


/* Ergänzungen RC2 */

:root {
    --bao-yellow: #c47a00;
    --bao-red: #b42318;
}

.bao-status-warn {
    background: rgba(196, 122, 0, .11);
    border-color: rgba(196, 122, 0, .30);
}

.bao-status-warn .bao-status-dot {
    background: var(--bao-yellow);
    box-shadow: 0 0 0 6px rgba(196, 122, 0, .14);
}

.bao-status-danger {
    background: rgba(180, 35, 24, .11);
    border-color: rgba(180, 35, 24, .30);
}

.bao-status-danger .bao-status-dot {
    background: var(--bao-red);
    box-shadow: 0 0 0 6px rgba(180, 35, 24, .14);
}

.bao-message {
    margin: 0 0 22px;
    padding: 14px 17px;
    border-radius: 12px;
    font-weight: 700;
}

.bao-message-ok {
    background: rgba(31, 139, 76, .10);
    border: 1px solid rgba(31, 139, 76, .25);
}

.bao-message-danger {
    background: rgba(180, 35, 24, .10);
    border: 1px solid rgba(180, 35, 24, .25);
}

.bao-refresh {
    color: var(--bao-gold);
    font-weight: 700;
    text-decoration: none;
}

.bao-status-grid-four,
.bao-video-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bao-status-card small {
    display: block;
    margin-top: 5px;
    color: var(--bao-muted);
}

.bao-card-ok {
    border-style: solid;
    border-color: rgba(31, 139, 76, .30);
}

.bao-card-warn {
    border-style: solid;
    border-color: rgba(196, 122, 0, .40);
    background: rgba(196, 122, 0, .05);
}

.bao-card-danger {
    border-style: solid;
    border-color: rgba(180, 35, 24, .40);
    background: rgba(180, 35, 24, .05);
}

.bao-storage {
    padding: 4px 0;
}

.bao-storage-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.bao-progress {
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(128, 128, 128, .18);
}

.bao-progress-bar {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    transition: width .25s ease;
}

.bao-progress-ok {
    background: var(--bao-green);
}

.bao-progress-warn {
    background: var(--bao-yellow);
}

.bao-progress-danger {
    background: var(--bao-red);
}

.bao-storage-detail {
    margin: 10px 0 0;
    color: var(--bao-muted);
}

.bao-recommendation {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 13px;
    line-height: 1.5;
}

.bao-recommendation-ok {
    background: rgba(31, 139, 76, .09);
    border: 1px solid rgba(31, 139, 76, .24);
}

.bao-recommendation-warn {
    background: rgba(196, 122, 0, .09);
    border: 1px solid rgba(196, 122, 0, .28);
}

.bao-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.bao-actions form {
    margin: 0;
}

.bao-button {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
}

.bao-button-primary {
    background: #275a9f;
    color: #fff;
}

.bao-button-secondary {
    background: rgba(128, 128, 128, .17);
    color: inherit;
    border: 1px solid var(--bao-border);
}

.bao-details {
    margin-top: 18px;
    border: 1px solid var(--bao-border);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.bao-details summary {
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 750;
}

.bao-change-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 0 16px 16px;
}

.bao-change-columns h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.bao-change-columns code {
    display: block;
    margin: 6px 0;
    overflow-wrap: anywhere;
    color: var(--bao-muted);
}

@media (max-width: 900px) {
    .bao-status-grid-four,
    .bao-video-summary {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .bao-status-grid-four,
    .bao-video-summary,
    .bao-change-columns {
        grid-template-columns: 1fr;
    }

    .bao-storage-line {
        flex-direction: column;
        gap: 4px;
    }
}
