/* Rahmen — Kopfzeile, Reiter-Navigation, Panel-Container
   Teil von style.css (W2, Schnitt E — AK 60: keine Datei ueber 200 Zeilen).
   Einbindungsreihenfolge zaehlt: siehe index.html. */

/* ============ APP SHELL ============ */
.app-shell { display: none; }
.app-shell.active { display: block; }

/* ---- Header ---- */
.app-header {
    background: var(--bg-card);
    border-bottom: 2px solid var(--accent-dark);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    color: #0f172a;
}

.header-brand h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-brand .header-sub {
    font-size: 12px;
    color: var(--text-dim);
}

.app-header .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-badge {
    font-size: 11px;
    color: var(--text-dim);
    background: var(--bg-surface);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.btn-icon:hover { background: var(--bg-surface); color: var(--text-primary); }

/* ---- Tab Navigation (KRITIS-style pills) ---- */
.tab-nav {
    background: var(--bg-card);
    padding: 10px 24px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 62px;
    z-index: 99;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tab-btn:hover { background: var(--bg-surface); color: var(--text-primary); }

.tab-btn.active {
    background: var(--accent);
    color: #0f172a;
    font-weight: 600;
}

.tab-btn .tab-icon { font-size: 14px; }

/* ---- Panel Container ---- */
.panel-container {
    padding: 24px;
    min-height: calc(100vh - 130px);
}

.panel { display: none; }
.panel.active { display: block; animation: fadeIn 0.2s ease-out; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

