/* Basis */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    background: #fff;
}

/* Scrollbar */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    display: none;
}

/* Grundgerüst */
.app {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 60px 1fr;
    grid-template-areas:
        "header header"
        "sidebar content";
    height: 100vh;
}

/* Header */
.header {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #000;
}

.header .left {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.header .right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    padding: 20px;
    border-right: 1px solid #000;
    overflow-y: auto;
}

/* Content */
.content {
    grid-area: content;
    padding: 20px;
    overflow-y: auto;
}

/* Links */
a {
    color: blue;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

a:hover {
    color: blue;
    text-decoration: none;
    border-bottom: 2px solid blue;
}

a:active {
    color: black;
    text-decoration: none;
    border-bottom: 2px solid blue;
}

/* Buttons */
button {
    color: blue;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    background: 0;
    border: 0;
}

button:hover {
    color: blue;
    text-decoration: none;
    border-bottom: 2px solid blue;
}

button:active {
    color: black;
    text-decoration: none;
    border-bottom: 2px solid blue;
}

/* Hilfsklassen */
.selected {
    border: 1px solid #333;
    padding: 2px;
    border-radius: 4px;
}

code {
    user-select: all;
    background: #edf;
    color: #333;
    padding: 5px;
    border-radius: 5px;
}

.cr {
    color: red;
}

.tal {
    text-align: left;
}

/* Tabellen */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

th {
    color: #333;
    background: #ccc;
}

/* Tablet */
@media (max-width: 900px) {
    .app {
        grid-template-columns: 200px 1fr;
    }

    .header,
    .sidebar,
    .content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Handy */
@media (max-width: 700px) {
    html, body {
        height: auto;
        -webkit-text-size-adjust: 100%;
    }

    .app {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .header {
        flex-wrap: wrap;
        gap: 8px;
        min-height: 60px;
        padding: 10px 15px;
    }

    .header .left,
    .header .right {
        margin: 0;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sidebar {
        padding: 12px 15px;
        border-right: 0;
        border-bottom: 1px solid #000;
        overflow-y: visible;
    }

    .content {
        flex: 1;
        padding: 15px;
        overflow-y: visible;
    }

    a,
    button {
        display: inline-block;
        padding: 6px 0;
    }

    input,
    select,
    textarea {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        padding: 10px;
        margin-bottom: 10px;
    }

    button {
        font-size: 16px;
    }

    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        padding: 6px;
        white-space: nowrap;
    }

    code {
        word-break: break-all;
    }
}

.badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    /* margin-right: 8px; */
    vertical-align: middle;
    border: 1px solid #555;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 3px rgba(0, 0, 0, 0.3);
}

.badge.running {
    color: #000;
    background: linear-gradient(to bottom, #c9f5ad, #5fc82c);
    border-color: #3f8a1c;
}

.badge.poweroff {
    color: #fff;
    background: linear-gradient(to bottom, #f6a094, #c8301f);
    border-color: #8f1f14;
}

.badge.saved,
.badge.partial {
    color: #000;
    background: linear-gradient(to bottom, #fff6b0, #f0c81e);
    border-color: #b59a10;
}

.banner {
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to bottom, #6a6a6a 0%, #474747 48%, #2a2a2a 50%, #141414 100%);
    padding: 10px;
    border: 1px solid #000;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 1px 3px rgba(0, 0, 0, 0.35);
}

.banner.running {
    color: #000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    background: linear-gradient(to bottom, #e2fbcf 0%, #b5f08a 48%, #7bd94c 50%, #a3ec78 100%);
    border: 1px solid #3f8a1c;
}

.banner.poweroff {
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to bottom, #f9bdb5 0%, #ee7a6e 48%, #d63a2b 50%, #e8665a 100%);
    border: 1px solid #8f1f14;
}

.banner.saved,
.banner.partial {
    color: #000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    background: linear-gradient(to bottom, #fffbd6 0%, #fff08c 48%, #ffd93a 50%, #ffe85f 100%);
    border: 1px solid #b59a10;
}

.cmd {
    width: 100%;
    height: 215px;
    color: #fff;
    background: #000;
    padding: 5px;
    border: 1px solid #5a6e8c;
    border-top-color: #3a4a63;
    box-shadow: inset 0 0 0 1px #1a1a1a, 0 0 0 1px #fff, 0 1px 4px rgba(0, 0, 0, 0.3);
    font-size: 10px;
    font-family: Consolas, 'JetBrains Mono', monospace;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.cmd.large {
    height: 700px;
}

.cmd.multi {
    height: 325px;
}

.cmd-a {
    color: lightblue;
}

.cmd-b {
    color: #fff;
}

.cmd-c {
    color: lime;
    font-weight: bold;
}

.cs {
    color: yellow;
    font-weight: bold;
}