:root{
    --bg: #0b0f17;
    --panel: #111827;
    --panel2:#0f172a;
    --border:#1f2a44;
    --text:#e5e7eb;
    --muted:#9ca3af;

    --btn:#1f2937;
    --btnHover:#273449;

    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
    margin:0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(900px 500px at 15% 0%, #132041 0%, transparent 60%),
    radial-gradient(900px 500px at 85% 0%, #0e1c2f 0%, transparent 60%),
    var(--bg);
    color: var(--text);
}

.container{
    width:min(1200px, 92vw);
    margin:0 auto;
}

.subtle{ color: var(--muted); }

.app-header{
    position: sticky;
    top:0;
    z-index:10;
    background: rgba(15, 23, 42, .7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 14px 0;
}
.brand{
    font-weight:700;
    letter-spacing:.2px;
}

.app-main{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 18px 0 24px;
}

.col{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.card{
    background: linear-gradient(180deg, rgba(17,24,39,.9), rgba(15,23,42,.9));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
}

.card-title{
    margin: 0 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #cbd5e1;
}

.card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.pill{
    background: rgba(31,41,55,.6);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 13px;
}

.stack{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.sep{
    border: none;
    border-top: 1px solid var(--border);
    margin: 14px 0;
}

.btn{
    width:100%;
    border: 1px solid var(--border);
    background: var(--btn);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    cursor:pointer;
    font-size: 14px;
    text-align:left;
}
.btn:hover{ background: var(--btnHover); }
.btn:active{ transform: translateY(1px); }

.btn-ghost{
    background: transparent;
}
.btn-ghost:hover{
    background: rgba(31,41,55,.35);
}

.btn-sm{
    width:auto;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 10px;
}

.log{
    display:flex;
    flex-direction:column;
    gap:8px;
    max-height: 320px;
    overflow:auto;
    padding-right: 4px;
}

.log .card{
    box-shadow:none;
}

.app-footer{
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, .55);
}
.footer-inner{
    display:flex;
    justify-content:space-between;
    padding: 14px 0;
}

/* Responsive: auf kleineren Screens untereinander */
@media (max-width: 980px){
    .app-main{ grid-template-columns: 1fr; }
}